chore: add props
This commit is contained in:
parent
5ee4b35efc
commit
f9906c4844
|
@ -11,12 +11,12 @@ export const comboListProps = {
|
||||||
id: Type(String),
|
id: Type(String),
|
||||||
/**
|
/**
|
||||||
* 可选,是否禁用
|
* 可选,是否禁用
|
||||||
* 默认为false
|
* 默认为`false`
|
||||||
*/
|
*/
|
||||||
disabled: Type({ default: false, type: Boolean }),
|
disabled: Type({ default: false, type: Boolean }),
|
||||||
/**
|
/**
|
||||||
* 可选,是否只读
|
* 可选,是否只读
|
||||||
* 默认为false
|
* 默认为`false`
|
||||||
*/
|
*/
|
||||||
readonly: Type({ default: false, type: Boolean }),
|
readonly: Type({ default: false, type: Boolean }),
|
||||||
/**
|
/**
|
||||||
|
@ -39,7 +39,7 @@ export const comboListProps = {
|
||||||
enableTitle: Type({ default: true, type: Boolean }),
|
enableTitle: Type({ default: true, type: Boolean }),
|
||||||
/**
|
/**
|
||||||
* 可选,下拉列表值展示方式
|
* 可选,下拉列表值展示方式
|
||||||
* 支持text | tag,即文本或标签,默认为ViewType.Text,即文本方式
|
* 支持text | tag,即文本或标签,默认为`ViewType.Text`,即文本方式`text`
|
||||||
*/
|
*/
|
||||||
viewType: EnumType(ViewType.Text, ViewType),
|
viewType: EnumType(ViewType.Text, ViewType),
|
||||||
/**
|
/**
|
||||||
|
@ -52,13 +52,48 @@ export const comboListProps = {
|
||||||
data: Type(Array),
|
data: Type(Array),
|
||||||
/**
|
/**
|
||||||
* 可选,数据源id字段
|
* 可选,数据源id字段
|
||||||
* 默认为id
|
* 默认为`id`
|
||||||
*/
|
*/
|
||||||
idField: Type({ default: 'id', type: String }),
|
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>;
|
export type ComboListProps = ExtractPropTypes<typeof comboListProps>;
|
Loading…
Reference in New Issue