birdpaper-ui
Version:
一个通用的 vue3 UI组件库。A common vue3 UI component library.
35 lines (34 loc) • 1.53 kB
JavaScript
;
const switch_vue_vue_type_script_lang = require("./switch.vue2.js");
const vue = require("vue");
const _pluginVue_exportHelper = require("../../_virtual/_plugin-vue_export-helper.js");
const _hoisted_1 = {
key: 0,
class: "switch-icon-loading ri-loader-4-line"
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return vue.openBlock(), vue.createElementBlock("div", {
class: vue.normalizeClass(_ctx.cls),
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
}, [
vue.createElementVNode("input", {
type: "checkbox",
class: vue.normalizeClass(`${_ctx.name}-inner`)
}, null, 2),
vue.createElementVNode("div", {
class: vue.normalizeClass([`${_ctx.name}-slider`, _ctx.isCheck ? `${_ctx.name}-check` : ""])
}, [
_ctx.checkText || _ctx.uncheckText ? (vue.openBlock(), vue.createElementBlock("span", {
key: 0,
class: vue.normalizeClass(`${_ctx.name}-slider-inner`)
}, vue.toDisplayString(_ctx.isCheck ? _ctx.checkText : _ctx.uncheckText), 3)) : vue.createCommentVNode("", true),
vue.createElementVNode("span", {
class: vue.normalizeClass(`${_ctx.name}-slider-dot`)
}, [
_ctx.loading ? (vue.openBlock(), vue.createElementBlock("i", _hoisted_1)) : vue.createCommentVNode("", true)
], 2)
], 2)
], 2);
}
const _switch = /* @__PURE__ */ _pluginVue_exportHelper(switch_vue_vue_type_script_lang, [["render", _sfc_render]]);
module.exports = _switch;