update doc

This commit is contained in:
hufeixiong
2021-08-05 15:32:03 +08:00
parent 90a4ce0285
commit 6531d6c496
3 changed files with 6 additions and 8 deletions

View File

@@ -45,7 +45,6 @@ const MButton = new ComponentItemFactory(
createPannelOptions<FormMap, 'input'>('input', {
receive: 'text',
label: '文字',
text: 'yehuozhili',
}),
],
animate: [createPannelOptions<FormMap, 'animateControl'>('animateControl', {})],
@@ -54,6 +53,7 @@ const MButton = new ComponentItemFactory(
{
props: {
...
text:'yehuozhili'// input配置项组件接收的初始值
},
},
(data, context, store, config) => {

View File

@@ -22,7 +22,6 @@ export interface FormBaseType {
}
export interface FormInputType extends FormBaseType {
label: string;
text: string;
}
export interface FormActionButtonType {}
export interface FormAnimateControlType {}
@@ -34,7 +33,7 @@ export interface FormMap {
```
formMap的键名就是initFormComponents键名formMap的值对应组件需要收到的值。
以input组件为例FormInputType此时有3个属性label,text,receive。
以input组件为例FormInputType此时有2个属性label,receive。
那么在其开发该组件时props会收到
@@ -55,7 +54,6 @@ style: [
createPannelOptions<FormMap, 'input'>('input', {
receive: 'text',
label: '文字',
text: 'yehuozhili',
}),
],