123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229 |
- function commonProps() {
- return {
- id: String,
- dropdownClassName: String,
- dropdownAlign: {
- type: Object
- },
- popupStyle: {
- type: Object
- },
- transitionName: String,
- placeholder: String,
- allowClear: {
- type: Boolean,
- default: undefined
- },
- autofocus: {
- type: Boolean,
- default: undefined
- },
- disabled: {
- type: Boolean,
- default: undefined
- },
- tabindex: Number,
- open: {
- type: Boolean,
- default: undefined
- },
- defaultOpen: {
- type: Boolean,
- default: undefined
- },
- /** Make input readOnly to avoid popup keyboard in mobile */
- inputReadOnly: {
- type: Boolean,
- default: undefined
- },
- format: {
- type: [String, Function, Array]
- },
- // Value
- // format: string | CustomFormat<DateType> | (string | CustomFormat<DateType>)[];
- // Render
- // suffixIcon?: VueNode;
- // clearIcon?: VueNode;
- // prevIcon?: VueNode;
- // nextIcon?: VueNode;
- // superPrevIcon?: VueNode;
- // superNextIcon?: VueNode;
- getPopupContainer: {
- type: Function
- },
- panelRender: {
- type: Function
- },
- // // Events
- onChange: {
- type: Function
- },
- 'onUpdate:value': {
- type: Function
- },
- onOk: {
- type: Function
- },
- onOpenChange: {
- type: Function
- },
- 'onUpdate:open': {
- type: Function
- },
- onFocus: {
- type: Function
- },
- onBlur: {
- type: Function
- },
- onMousedown: {
- type: Function
- },
- onMouseup: {
- type: Function
- },
- onMouseenter: {
- type: Function
- },
- onMouseleave: {
- type: Function
- },
- onClick: {
- type: Function
- },
- onContextmenu: {
- type: Function
- },
- onKeydown: {
- type: Function
- },
- // WAI-ARIA
- role: String,
- name: String,
- autocomplete: String,
- direction: {
- type: String
- },
- showToday: {
- type: Boolean,
- default: undefined
- },
- showTime: {
- type: [Boolean, Object],
- default: undefined
- },
- locale: {
- type: Object
- },
- size: {
- type: String
- },
- bordered: {
- type: Boolean,
- default: undefined
- },
- dateRender: {
- type: Function
- },
- disabledDate: {
- type: Function
- },
- mode: {
- type: String
- },
- picker: {
- type: String
- },
- valueFormat: String,
- /** @deprecated Please use `disabledTime` instead. */
- disabledHours: Function,
- /** @deprecated Please use `disabledTime` instead. */
- disabledMinutes: Function,
- /** @deprecated Please use `disabledTime` instead. */
- disabledSeconds: Function
- };
- }
- function datePickerProps() {
- return {
- defaultPickerValue: {
- type: [String, Object]
- },
- defaultValue: {
- type: [String, Object]
- },
- value: {
- type: [String, Object]
- },
- disabledTime: {
- type: Function
- },
- renderExtraFooter: {
- type: Function
- },
- showNow: {
- type: Boolean,
- default: undefined
- },
- monthCellRender: {
- type: Function
- },
- // deprecated Please use `monthCellRender"` instead.',
- monthCellContentRender: {
- type: Function
- }
- };
- }
- function rangePickerProps() {
- return {
- allowEmpty: {
- type: Array
- },
- dateRender: {
- type: Function
- },
- defaultPickerValue: {
- type: Array
- },
- defaultValue: {
- type: Array
- },
- value: {
- type: Array
- },
- disabledTime: {
- type: Function
- },
- disabled: {
- type: [Boolean, Array]
- },
- renderExtraFooter: {
- type: Function
- },
- separator: {
- type: String
- },
- ranges: {
- type: Object
- },
- placeholder: Array,
- mode: {
- type: Array
- },
- onChange: {
- type: Function
- },
- 'onUpdate:value': {
- type: Function
- },
- onCalendarChange: {
- type: Function
- },
- onPanelChange: {
- type: Function
- },
- onOk: {
- type: Function
- }
- };
- }
- export { commonProps, datePickerProps, rangePickerProps };
|