yk-element-components-v2
Version:
78 lines (77 loc) • 1.96 kB
JavaScript
function v(n, e, r, c, a, s, l, u) {
var t = typeof n == "function" ? n.options : n;
e && (t.render = e, t.staticRenderFns = r, t._compiled = !0), c && (t.functional = !0), s && (t._scopeId = "data-v-" + s);
var i;
if (l ? (i = function(o) {
o = o || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !o && typeof __VUE_SSR_CONTEXT__ < "u" && (o = __VUE_SSR_CONTEXT__), a && a.call(this, o), o && o._registeredComponents && o._registeredComponents.add(l);
}, t._ssrRegister = i) : a && (i = u ? function() {
a.call(
this,
(t.functional ? this.parent : this).$root.$options.shadowRoot
);
} : a), i)
if (t.functional) {
t._injectStyles = i;
var h = t.render;
t.render = function(p, _) {
return i.call(_), h(p, _);
};
} else {
var f = t.beforeCreate;
t.beforeCreate = f ? [].concat(f, i) : [i];
}
return {
exports: n,
options: t
};
}
const g = {
name: "yk-tag",
props: {
text: String,
closable: Boolean,
type: String,
hit: Boolean,
disableTransitions: Boolean,
color: String,
size: String,
effect: {
type: String,
default: "light",
validator(n) {
return ["dark", "light", "plain"].indexOf(n) !== -1;
}
}
},
data() {
return {
switchValue: this.value
};
},
methods: {
close() {
this.$emit("close");
}
}
};
var m = function() {
var e = this, r = e._self._c;
return r("el-tag", { attrs: { text: e.text, closable: e.closable, type: e.type, hit: e.hit, disableTransitions: e.disableTransitions, color: e.color, size: e.size, effect: e.effect }, on: { close: e.close } }, [e._t("default")], 2);
}, C = [], b = /* @__PURE__ */ v(
g,
m,
C,
!1,
null,
null,
null,
null
);
const d = b.exports, S = {
install(n) {
n.component(d.name, d);
}
};
export {
S as default
};