chore: add props

This commit is contained in:
aalizzwell 2022-10-03 16:39:50 +08:00
parent 5ee4b35efc
commit f9906c4844
1 changed files with 41 additions and 6 deletions

View File

@ -11,12 +11,12 @@ export const comboListProps = {
id: Type(String),
/**
*
* false
* `false`
*/
disabled: Type({ default: false, type: Boolean }),
/**
*
* false
* `false`
*/
readonly: Type({ default: false, type: Boolean }),
/**
@ -39,7 +39,7 @@ export const comboListProps = {
enableTitle: Type({ default: true, type: Boolean }),
/**
*
* text | tagViewType.Text
* text | tag`ViewType.Text``text`
*/
viewType: EnumType(ViewType.Text, ViewType),
/**
@ -52,13 +52,48 @@ export const comboListProps = {
data: Type(Array),
/**
* id字段
* id
* `id`
*/
idField: Type({ default: 'id', type: String }),
/**
*
* id
* `id`
*/
valueField: Type({ default: 'id', type: String })
valueField: Type({ default: 'id', type: String }),
/**
*
* `label`
*/
textField: Type({ default: 'label', type: String }),
/**
*
* `false`
*/
multiSelect: Type({default: false, type: Boolean}),
/**
*
*/
uri: Type(String),
/**
*
* `200`
*/
maxHeight: Type({default: 200, type: Number}),
/**
*
* `false`
*/
remoteSearch: Type({default: false, type: Boolean}),
/**
*
* `true`
*/
hidePanelOnClear: Type({default: true, type: Boolean}),
/**
*
* `,`
*/
separator: Type({default: ',', type: Boolean}),
};
export type ComboListProps = ExtractPropTypes<typeof comboListProps>;