UNPKG

kui-vue

Version:

A high quality UI Toolkit built on Vue.js 2.0

17 lines 2.81 kB
## API | 属性 | 说明 | 类型 | 默认值 | | ------------ | ------------------------------------------------------------------------------------------------------------- | ------------------- | ---------- | | value | 默认时间值 | Date, Array, String | - | | mode | 使用 `mode` 属性,可以自定义日期显示类型,提供 `year`,`month`,`date`,`dateTime`,`dateRange`,`dateTimeRange`。 | String | date | | disabled | 是否禁用组件 | Boolen | false | | size | 按钮尺寸,可选值 `small`、`large`,默认不选 | String | - | | pickerSize | 值Ï为`small`时日期呈现小尺寸 | String | - | | clearable | 是否显示清除图标 | Boolean | true | | placeholder | 提示语 | String, Array | - | | disabledDate | 不可选择的日期 | Function | - | | disabledTime | 不可选择的时间 | Function | - | | format | 设置日期格式,为数组时支持多格式匹配,展示以第一个为准。配置参考 [dayjs](http://day.js.org/) | String | YYYY-MM-DD | | change | 默认值改变之后的回调,返回当前选择的时间,字符串 | Function(dayjs,dateString) | - | | theme | theme='light' 时呈现浅色主题 | String | - | | dateIcon | 自定义图标 | String | - | | shape | shape='circle' 时呈现圆角 | String | - |