UNPKG

song-ui-u

Version:

vue3 + js的PC前端组件库

59 lines (51 loc) 2.06 kB
import { openBlock, createBlock, resolveDynamicComponent, normalizeClass, withCtx, createElementVNode, renderSlot, computed } from 'vue'; import { useNamespace } from '../../../hook/use-namespace/index.mjs'; import { useParent } from '../../../hook/use-parent/index.mjs'; import 'song-ui-pro-icon'; import '../../../hook/use-zindex/index.mjs'; import _export_sfc from '../../../_virtual/_plugin-vue_export-helper.mjs'; const __default__ = { name: "x-checkbox" }; const _sfc_main = /*#__PURE__*/Object.assign(__default__, { props: { tag: { type: String, default: "label", }, }, setup(__props, { expose: __expose }) { __expose(); const ns = useNamespace("checkbox"); /** props */ const props = __props; const __returned__ = { ns, props, computed, get useNamespace() { return useNamespace }, get useParent() { return useParent } }; Object.defineProperty(__returned__, '__isScriptSetup', { enumerable: false, value: true }); return __returned__ } }); function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { return (openBlock(), createBlock(resolveDynamicComponent($props.tag), { class: normalizeClass([$setup.ns.b(), $setup.ns.is('disabled', true)]) }, { default: withCtx(() => [ createElementVNode("span", { class: normalizeClass([$setup.ns.e('input-wrapper')]) }, [ createElementVNode("input", { class: normalizeClass([$setup.ns.e('input')]), type: "checkbox", value: "111" }, null, 2 /* CLASS */), createElementVNode("span", { class: normalizeClass([$setup.ns.e('inner')]) }, null, 2 /* CLASS */) ], 2 /* CLASS */), createElementVNode("span", null, [ renderSlot(_ctx.$slots, "default") ]) ]), _: 3 /* FORWARDED */ }, 8 /* PROPS */, ["class"])) } var index = /*#__PURE__*/_export_sfc(_sfc_main, [['render',_sfc_render],['__file',"E:\\code\\my-code\\song-ui-ultra\\packages\\components\\checkbox\\src\\index.vue"]]); export { index as default }; //# sourceMappingURL=index.vue.mjs.map