UNPKG

birdpaper-ui

Version:

一个通用的 vue3 UI组件库。A common vue3 UI component library.

28 lines (27 loc) 1.22 kB
import _sfc_main from "./radio.vue2.js"; import { openBlock, createElementBlock, normalizeClass, createElementVNode, createCommentVNode, renderSlot } from "vue"; import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js"; function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { return openBlock(), createElementBlock("label", { class: normalizeClass([_ctx.name, _ctx.disabled ? `${_ctx.name}-disabled` : ""]), onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleInput && _ctx.handleInput(...args)) }, [ createElementVNode("input", { type: "radio", class: normalizeClass(`${_ctx.name}-inner`) }, null, 2), _ctx.type === "radio" ? (openBlock(), createElementBlock("span", { key: 0, class: normalizeClass([`${_ctx.name}-radio`, _ctx.isCheck ? `${_ctx.name}-check` : ""]) }, null, 2)) : createCommentVNode("", true), createElementVNode("span", { class: normalizeClass([`${_ctx.name}-label`, _ctx.isCheck ? `${_ctx.name}-check-label` : ""]) }, [ renderSlot(_ctx.$slots, "default") ], 2) ], 2); } const _radio = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]); export { _radio as default };