sohelp-ele
Version:
SohelpEle Library
117 lines (116 loc) • 3.87 kB
JavaScript
(function() {
"use strict";
try {
if (typeof document != "undefined") {
var elementStyle = document.createElement("style");
elementStyle.appendChild(document.createTextNode(".sohelp-tags[data-v-6928b8cf]{\n display: inline-block;\n margin:0 10px 10px 0;\n}\n.sohelp-tags.ele-tag-round .el-tag[data-v-6928b8cf]{\n border-radius: 50%;\n}\n.sohelp-tags.ele-tag-round .el-tag--mini[data-v-6928b8cf]{ width: 20px;}\n.sohelp-tags.ele-tag-round .el-tag--small[data-v-6928b8cf]{ width: 24px;}\n.sohelp-tags.ele-tag-round .el-tag--medium[data-v-6928b8cf]{ width: 28px;}\n.sohelp-tags.ele-tag-round .el-tag--large[data-v-6928b8cf]{ width: 32px;}"));
document.head.appendChild(elementStyle);
}
} catch (e) {
console.error("vite-plugin-css-injected-by-js", e);
}
})();
;
var render = function() {
var _vm = this;
var _h = _vm.$createElement;
var _c = _vm._self._c || _h;
return _c("div", { staticClass: "sohelp-tags" }, [!_vm.input ? _c("el-tag", _vm._g(_vm._b({ model: { value: _vm.tags, callback: function($$v) {
_vm.tags = $$v;
}, expression: "tags" } }, "el-tag", _vm.$attrs, false), _vm.$listeners), [_vm._t("default")], 2) : _vm._e(), _vm.input ? _c("ele-tags-input", _vm._g(_vm._b({ model: { value: _vm.tags, callback: function($$v) {
_vm.tags = $$v;
}, expression: "tags" } }, "ele-tags-input", _vm.$attrs, false), _vm.$listeners)) : _vm._e()], 1);
};
var staticRenderFns = [];
var index_vue_vue_type_style_index_0_scoped_true_lang = "";
function normalizeComponent(scriptExports, render2, staticRenderFns2, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
if (render2) {
options.render = render2;
options.staticRenderFns = staticRenderFns2;
options._compiled = true;
}
if (functionalTemplate) {
options.functional = true;
}
if (scopeId) {
options._scopeId = "data-v-" + scopeId;
}
var hook;
if (moduleIdentifier) {
hook = function(context) {
context = context || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext;
if (!context && typeof __VUE_SSR_CONTEXT__ !== "undefined") {
context = __VUE_SSR_CONTEXT__;
}
if (injectStyles) {
injectStyles.call(this, context);
}
if (context && context._registeredComponents) {
context._registeredComponents.add(moduleIdentifier);
}
};
options._ssrRegister = hook;
} else if (injectStyles) {
hook = shadowMode ? function() {
injectStyles.call(
this,
(options.functional ? this.parent : this).$root.$options.shadowRoot
);
} : injectStyles;
}
if (hook) {
if (options.functional) {
options._injectStyles = hook;
var originalRender = options.render;
options.render = function renderWithStyleInjection(h, context) {
hook.call(context);
return originalRender(h, context);
};
} else {
var existing = options.beforeCreate;
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
}
}
return {
exports: scriptExports,
options
};
}
const __vue2_script = {
name: "SohelpTags",
props: {
data: Array,
input: {
type: Boolean,
default: false
}
},
data() {
return {
tags: this.data
};
},
mounted() {
}
};
const __cssModules = {};
var __component__ = /* @__PURE__ */ normalizeComponent(
__vue2_script,
render,
staticRenderFns,
false,
__vue2_injectStyles,
"6928b8cf",
null,
null
);
function __vue2_injectStyles(context) {
for (let o in __cssModules) {
this[o] = __cssModules[o];
}
}
var index = /* @__PURE__ */ function() {
return __component__.exports;
}();
module.exports = index;