amis-editor 4.1.0-beta.21 → 4.1.0-beta.22
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/exports.min.js +1 -1
- package/dist/index.min.js +1 -1
- package/dist/plugin/Form/Switch.d.ts +2 -0
- package/package.json +1 -1
- package/src/component/schemaTpl.tsx +2 -0
- package/src/plugin/Form/Item.tsx +3 -1
- package/src/plugin/Form/Switch.tsx +3 -1
- package/src/plugin/Wizard.tsx +1 -1
- package/src/plugin/Wrapper.tsx +1 -1
package/package.json
CHANGED
package/src/plugin/Form/Item.tsx
CHANGED
@@ -73,6 +73,7 @@ export class ItemPlugin extends BasePlugin {
|
|
73
73
|
].indexOf(context.schema.type);
|
74
74
|
/** 不支持配置校验属性的组件 */
|
75
75
|
const ignoreValidator = !!~['input-group'].indexOf(context.schema.type);
|
76
|
+
const autoFillApi = context.schema.autoFillApi;
|
76
77
|
const renderer: any = context.info.renderer;
|
77
78
|
return [
|
78
79
|
getSchemaTpl('tabs', [
|
@@ -105,7 +106,8 @@ export class ItemPlugin extends BasePlugin {
|
|
105
106
|
getSchemaTpl('description'),
|
106
107
|
getSchemaTpl('placeholder'),
|
107
108
|
getSchemaTpl('remark'),
|
108
|
-
renderer.renderLabel !== false ? getSchemaTpl('labelRemark') : null
|
109
|
+
renderer.renderLabel !== false ? getSchemaTpl('labelRemark') : null,
|
110
|
+
autoFillApi ? getSchemaTpl('autoFillApi') : null
|
109
111
|
]
|
110
112
|
},
|
111
113
|
|
package/src/plugin/Wizard.tsx
CHANGED
@@ -24,7 +24,7 @@ export class WizardPlugin extends BasePlugin {
|
|
24
24
|
isBaseComponent = true;
|
25
25
|
description =
|
26
26
|
'表单向导,可以将复杂的多个表单项拆分成多个步骤,一步一步指引用户完成填写。';
|
27
|
-
docLink = '/amis/zh-CN/components/
|
27
|
+
docLink = '/amis/zh-CN/components/wizard';
|
28
28
|
tags = ['功能'];
|
29
29
|
icon = 'fa fa-list-ol';
|
30
30
|
|
package/src/plugin/Wrapper.tsx
CHANGED
@@ -14,7 +14,7 @@ export class WrapperPlugin extends BasePlugin {
|
|
14
14
|
name = '包裹';
|
15
15
|
isBaseComponent = true;
|
16
16
|
description = '类似于容器,唯一的区别在于会默认会有一层内边距。';
|
17
|
-
docLink = '/amis/zh-CN/components/
|
17
|
+
docLink = '/amis/zh-CN/components/wrapper';
|
18
18
|
tags = ['容器'];
|
19
19
|
icon = 'fa fa-square-o';
|
20
20
|
scaffold = {
|