iep-ui
Version:
An enterprise-class UI design language and Vue-based implementation
34 lines (32 loc) • 793 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = {
methods: {
getFormat: function getFormat() {
var format = this.format;
var locale = this.locale,
timePicker = this.timePicker,
picker = this.picker;
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.$refs.rootInstance) {
this.$refs.rootInstance.focus();
}
},
saveFocusElement: function saveFocusElement(focusElement) {
this.focusElement = focusElement;
}
}
};
;