12345678910111213141516171819202122232425262728 |
- import { basicInputConfigureOptions } from '../../input-configure-options'
- export const viewTypeOptions = ['year', 'month', 'week', 'date', 'datetime']
- export default {
- ...basicInputConfigureOptions(),
- viewType: {
- label: '显示类型',
- type: 'select',
- options: viewTypeOptions //, 'dates'
- },
- isTimestamp: {
- label: '是否获取时间戳',
- type: 'switch'
- },
- defaultValue: {
- label: '是否使用当前时间做默认值',
- type: 'switch',
- inactiveValue: null,
- activeValue: String(new Date()) // 数据没有格式化,选中默认值会有问题
- },
- placeholder: {},
- formatter: {
- label: '展示格式',
- type: 'input'
- },
- required: {},
- requiredErrorMessage: {}
- }
|