UNPKG

yk-element-components-v2

Version:

170 lines (169 loc) 4.07 kB
function s(n, e, o, r, i, c, u, m) { var t = typeof n == "function" ? n.options : n; e && (t.render = e, t.staticRenderFns = o, t._compiled = !0), r && (t.functional = !0), c && (t._scopeId = "data-v-" + c); var l; if (u ? (l = function(a) { a = a || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !a && typeof __VUE_SSR_CONTEXT__ < "u" && (a = __VUE_SSR_CONTEXT__), i && i.call(this, a), a && a._registeredComponents && a._registeredComponents.add(u); }, t._ssrRegister = l) : i && (l = m ? function() { i.call( this, (t.functional ? this.parent : this).$root.$options.shadowRoot ); } : i), l) if (t.functional) { t._injectStyles = l; var v = t.render; t.render = function(p, d) { return l.call(d), v(p, d); }; } else { var _ = t.beforeCreate; t.beforeCreate = _ ? [].concat(_, l) : [l]; } return { exports: n, options: t }; } const g = { name: "yk-checkbox", props: { value: {}, label: {}, indeterminate: Boolean, disabled: Boolean, checked: Boolean, name: String, trueLabel: [String, Number], falseLabel: [String, Number], id: String, controls: String, border: Boolean, size: String }, data() { return { testValue: this.value }; }, watch: { value(n) { this.testValue = n; } }, methods: { change(n) { this.$emit("input", n), this.$emit("change", n); } } }; var k = function() { var e = this, o = e._self._c; return o("el-checkbox", { attrs: { label: e.label, indeterminate: e.indeterminate, disabled: e.disabled, checked: e.checked, name: e.name, border: e.border, trueLabel: e.trueLabel, falseLabel: e.falseLabel, size: e.size }, on: { change: e.change }, model: { value: e.testValue, callback: function(r) { e.testValue = r; }, expression: "testValue" } }, [e._t("default")], 2); }, x = [], $ = /* @__PURE__ */ s( g, k, x, !1, null, "b545a006", null, null ); const h = $.exports; const V = { name: "yk-checkbox-button", props: { value: {}, label: {}, disabled: Boolean, checked: Boolean, name: String, trueLabel: [String, Number], falseLabel: [String, Number] }, data() { return { editorValue: this.value }; }, watch: { value(n) { this.editorValue = n; } }, methods: { change(n) { this.$emit("input", n), this.$emit("change", n); } } }; var S = function() { var e = this, o = e._self._c; return o("el-checkbox-button", { attrs: { label: e.label, disabled: e.disabled, checked: e.checked, name: e.name, trueLabel: e.trueLabel, falseLabel: e.falseLabel }, on: { change: e.change }, model: { value: e.editorValue, callback: function(r) { e.editorValue = r; }, expression: "editorValue" } }, [e._t("default")], 2); }, C = [], L = /* @__PURE__ */ s( V, S, C, !1, null, "beecae19", null, null ); const b = L.exports; const y = { name: "yk-checkbox-group", props: { value: {}, disabled: Boolean, min: Number, max: Number, size: String, fill: String, textColor: String }, data() { return { editorValue: this.value }; }, watch: { value(n) { this.editorValue = n; } }, computed: {}, methods: { change(n) { this.$emit("input", n), this.$emit("change", n); } } }; var B = function() { var e = this, o = e._self._c; return o("el-checkbox-group", { attrs: { disabled: e.disabled, min: e.min, max: e.max, size: e.size, fill: e.fill, textColor: e.textColor }, on: { change: e.change }, model: { value: e.editorValue, callback: function(r) { e.editorValue = r; }, expression: "editorValue" } }, [e._t("default")], 2); }, N = [], R = /* @__PURE__ */ s( y, B, N, !1, null, "55cf2859", null, null ); const f = R.exports, z = { install(n) { n.component(h.name, h), n.component(b.name, b), n.component(f.name, f); } }; export { z as default };