import DSJBase from "../DSJBase/DSJBase"; export default class DSJDate extends DSJBase { size = "small"; //输入框尺寸 clearable = true; //是否显示清除按钮 placeholder = ""; //非范围选择时的占位内容 startPlaceholder = ""; //范围选择时开始日期的占位内容 endPlaceholder = ""; //范围选择时结束日期的占位内容 type = "date"; //显示类型 year/month/date/dates/datetime/ week/datetimerange/daterange/ monthrange format = "YYYY-MM-DD"; //显示在输入框中的格式 popperClass = ""; //DatePicker 下拉框的类名 rangeSeparator = "-"; //选择范围时的分隔符 valueFormat = "YYYY-MM-DD"; //可选,绑定值的格式。 不指定则绑定值为 Date 对象 unlinkPanels = false; // 在范围选择器里取消两个日期面板之间的联动 prefixIcon = "el-icon-date"; //自定义头部图标的类名 clearIcon = "el-icon-circle-close"; //自定义清空图标的类名 shortcuts = {}; //设置快捷选项,需要传入数组对象 disabled: boolean = false; //是否禁用 //是否禁用 change = () => {}; //用户确认选定的值时触发(组件绑定值) blur = () => {}; //在组件 Input 失去焦点时触发(组件实例) focus = () => {}; //在组件 Input 获得焦点时触发(组件实例) disabledDate = () => {}; constructor(opt?: any) { super(opt); this.update(opt); } }