chore: declaration props
This commit is contained in:
parent
cd339fd254
commit
3f5c354384
|
@ -1,9 +1,55 @@
|
||||||
import { ExtractPropTypes } from "vue";
|
import { ExtractPropTypes } from "vue";
|
||||||
|
import { ViewType, enumTypeProp } from './types';
|
||||||
|
|
||||||
export const comboListProps = {
|
export const comboListProps = {
|
||||||
/**
|
/**
|
||||||
* 组件标识
|
* 组件标识
|
||||||
*/
|
*/
|
||||||
id: String,
|
id: String,
|
||||||
|
/**
|
||||||
|
* 可选,是否禁用
|
||||||
|
* 默认为false
|
||||||
|
*/
|
||||||
|
disabled: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 可选,是否只读
|
||||||
|
* 默认为false
|
||||||
|
*/
|
||||||
|
readonly: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 最大输入长度
|
||||||
|
*/
|
||||||
|
maxLength: Number,
|
||||||
|
/**
|
||||||
|
* 占位符
|
||||||
|
*/
|
||||||
|
placeholder: String,
|
||||||
|
/**
|
||||||
|
* 可选,是否启用清空
|
||||||
|
* 默认启用
|
||||||
|
*/
|
||||||
|
enableClear: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 可选,鼠标悬停时是否显示控件值
|
||||||
|
* 默认显示
|
||||||
|
*/
|
||||||
|
enableTitle: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 可选,下拉列表值展示方式
|
||||||
|
* 支持text | tag,即文本或标签,默认为ViewType.Text,即文本方式
|
||||||
|
*/
|
||||||
|
viewType: enumTypeProp(ViewType.Text, ViewType),
|
||||||
};
|
};
|
||||||
export type ButtonProps = ExtractPropTypes<typeof comboListProps>;
|
export type ButtonProps = ExtractPropTypes<typeof comboListProps>;
|
Loading…
Reference in New Issue