保留 信息

This commit is contained in:
liaoxuezhi 2020-10-27 22:58:30 +08:00
parent 416582fea9
commit 70ef820324
6 changed files with 4 additions and 5 deletions

1
.gitignore vendored
View File

@ -23,3 +23,4 @@ node_modules
/coverage
/package-lock.json
/schema.json
/npm

View File

@ -23,3 +23,4 @@ fis-conf.js
/.travis.yml
/deploy-gh-pages.sh
/tsconfig.json
/npm

View File

@ -1,6 +1,6 @@
{
"name": "amis",
"version": "1.0.18-beta.11",
"version": "1.0.18-beta.12",
"description": "一种MIS页面生成工具",
"main": "lib/index.js",
"scripts": {

View File

@ -19,4 +19,4 @@ sed -i '' -e 's/\"name\": \"amis\"/\"name\": \"@fex\/amis\"/g' ./package.json
npm publish --registry=http://registry.npm.baidu-int.com
cd ..
rm -rf npm
# rm -rf npm

View File

@ -533,8 +533,6 @@ class SchemaRenderer extends React.Component<SchemaRendererProps, any> {
...schema
};
// @ts-ignore
delete schema.$ref;
path = path.replace(/(?!.*\/).*/, schema.type);
}

View File

@ -1212,7 +1212,6 @@ export default class Form extends React.Component<FormProps, object> {
...control,
...getExprProperties(control, store.data)
};
delete control.$ref;
} else {
subSchema.control = control = {
...control,