update doc
This commit is contained in:
		| @@ -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) => { | ||||
|   | ||||
| @@ -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', | ||||
| 			}), | ||||
| 		], | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 hufeixiong
					hufeixiong