UNPKG

ant-design-vue

Version:

An enterprise-class UI design language and Vue-based implementation

32 lines (30 loc) 743 B
export default { methods: { getFormat: function getFormat() { var format = this.format; var locale = this.locale, timePicker = this.timePicker; if (!format) { if (timePicker) { format = locale.dateTimeFormat; } else { format = locale.dateFormat; } } return format; }, focus: function focus() { if (this.focusElement) { this.focusElement.focus(); } else if (this.rootInstance) { this.rootInstance.focus(); } }, saveFocusElement: function saveFocusElement(focusElement) { this.focusElement = focusElement; }, saveRoot: function saveRoot(root) { this.rootInstance = root; } } };