chore: declaration props

This commit is contained in:
aalizzwell 2022-10-03 13:42:14 +08:00
parent cd339fd254
commit 3f5c354384
1 changed files with 46 additions and 0 deletions

View File

@ -1,9 +1,55 @@
import { ExtractPropTypes } from "vue";
import { ViewType, enumTypeProp } from './types';
export const comboListProps = {
/**
*
*/
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 | tagViewType.Text
*/
viewType: enumTypeProp(ViewType.Text, ViewType),
};
export type ButtonProps = ExtractPropTypes<typeof comboListProps>;