yk-element-components-v2
Version:
154 lines (153 loc) • 4.65 kB
JavaScript
function m(a, e, l, i, o, s, c, g) {
var r = typeof a == "function" ? a.options : a;
e && (r.render = e, r.staticRenderFns = l, r._compiled = !0), i && (r.functional = !0), s && (r._scopeId = "data-v-" + s);
var t;
if (c ? (t = function(n) {
n = n || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !n && typeof __VUE_SSR_CONTEXT__ < "u" && (n = __VUE_SSR_CONTEXT__), o && o.call(this, n), n && n._registeredComponents && n._registeredComponents.add(c);
}, r._ssrRegister = t) : o && (t = g ? function() {
o.call(
this,
(r.functional ? this.parent : this).$root.$options.shadowRoot
);
} : o), t)
if (r.functional) {
r._injectStyles = t;
var h = r.render;
r.render = function(S, d) {
return t.call(d), h(S, d);
};
} else {
var u = r.beforeCreate;
r.beforeCreate = u ? [].concat(u, t) : [t];
}
return {
exports: a,
options: r
};
}
const _ = {
name: "yk-time-picker",
props: {
value: [Date, String],
readonly: Boolean,
disabled: Boolean,
editable: Boolean,
clearable: Boolean,
size: String,
placeholder: String,
startPlaceholder: String,
endPlaceholder: String,
isRange: String,
arrowControl: Boolean,
align: String,
popperClass: String,
pickerOptions: Object,
rangeSeparator: String,
valueFormat: String,
defaultValue: [Date, String],
name: String,
prefixIcon: String,
clearIcon: String
},
data() {
return {
timeSelectValue: JSON.parse(JSON.stringify(this.value))
};
},
methods: {
change(a) {
this.$emit("input", a), this.$emit("change", a);
},
blur() {
this.$emit("blur");
},
timeFocus() {
this.$emit("timeFocus");
},
focus() {
this.$refs.timeSelect.focus();
}
}
};
var b = function() {
var e = this, l = e._self._c;
return l("el-time-picker", { attrs: { readonly: e.readonly, disabled: e.disabled, editable: e.editable, clearable: e.clearable, size: e.size, placeholder: e.placeholder, startPlaceholder: e.startPlaceholder, endPlaceholder: e.endPlaceholder, isRange: e.isRange, arrowControl: e.arrowControl, align: e.align, popperClass: e.popperClass, pickerOptions: e.pickerOptions, rangeSeparator: e.rangeSeparator, valueFormat: e.valueFormat, defaultValue: e.defaultValue, name: e.name, prefixIcon: e.prefixIcon, clearIcon: e.clearIcon }, on: { change: e.change, blur: e.blur, focus: e.timeFocus }, model: { value: e.timeSelectValue, callback: function(i) {
e.timeSelectValue = i;
}, expression: "timeSelectValue" } });
}, v = [], C = /* @__PURE__ */ m(
_,
b,
v,
!1,
null,
null,
null,
null
);
const p = C.exports, $ = {
name: "yk-time-select",
props: {
value: [String, Number],
readonly: Boolean,
disabled: Boolean,
editable: Boolean,
clearable: Boolean,
size: String,
placeholder: String,
startPlaceholder: String,
endPlaceholder: String,
isRange: String,
arrowControl: Boolean,
align: String,
popperClass: String,
pickerOptions: Object,
rangeSeparator: String,
valueFormat: String,
defaultValue: [Date, String],
name: String,
prefixIcon: String,
clearIcon: String
},
data() {
return {
inputValue: JSON.parse(JSON.stringify(this.value))
};
},
methods: {
change(a) {
this.$emit("input", a), this.$emit("change", a);
},
blur() {
this.$emit("blur");
},
timeFocus() {
this.$emit("timeFocus");
},
focus() {
this.$refs.timeSelect.focus();
}
}
};
var V = function() {
var e = this, l = e._self._c;
return l("el-time-select", { ref: "timeSelect", attrs: { readonly: e.readonly, disabled: e.disabled, editable: e.editable, clearable: e.clearable, size: e.size, placeholder: e.placeholder, startPlaceholder: e.startPlaceholder, endPlaceholder: e.endPlaceholder, isRange: e.isRange, arrowControl: e.arrowControl, align: e.align, popperClass: e.popperClass, pickerOptions: e.pickerOptions, rangeSeparator: e.rangeSeparator, valueFormat: e.valueFormat, defaultValue: e.defaultValue, name: e.name, prefixIcon: e.prefixIcon, clearIcon: e.clearIcon }, on: { change: e.change, blur: e.blur, focus: e.timeFocus }, model: { value: e.inputValue, callback: function(i) {
e.inputValue = i;
}, expression: "inputValue" } });
}, F = [], k = /* @__PURE__ */ m(
$,
V,
F,
!1,
null,
null,
null,
null
);
const f = k.exports, O = {
install(a) {
a.component(p.name, p), a.component(f.name, f);
}
};
export {
O as default
};