ivue-material-plus
Version:
A high quality UI components Library with Vue.js
63 lines (60 loc) • 3.08 kB
JavaScript
import _sfc_main from './index.vue_vue_type_script_lang.mjs';
import { openBlock, createElementBlock, normalizeClass, createCommentVNode, createElementVNode, normalizeStyle, withDirectives, vModelCheckbox, Fragment, renderSlot, createTextVNode, toDisplayString } from 'vue';
import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
const _hoisted_1 = ["disabled", "value", "name"];
const _hoisted_2 = ["id", "disabled", "name", "checked"];
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return openBlock(), createElementBlock("label", {
class: normalizeClass(_ctx.wrapperClasses)
}, [
createCommentVNode(" \u65B9\u6846\u5916\u5C42 "),
createElementVNode("span", {
class: normalizeClass(_ctx.contentClasses)
}, [
createCommentVNode(" \u65B9\u6846 "),
createElementVNode("span", {
class: normalizeClass(_ctx.innerClasses),
style: normalizeStyle(_ctx.innerStyles)
}, null, 6),
createCommentVNode(" input \u6709\u7EC4\u5408 "),
_ctx.isGroup ? withDirectives((openBlock(), createElementBlock("input", {
key: 0,
type: "checkbox",
class: normalizeClass(_ctx.inputClasses),
disabled: _ctx.inputDisabled,
value: _ctx.label,
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.data.groupModel = $event),
name: _ctx.name,
onChange: _cache[1] || (_cache[1] = (...args) => _ctx.handleChange && _ctx.handleChange(...args)),
onFocus: _cache[2] || (_cache[2] = (...args) => _ctx.handleFocus && _ctx.handleFocus(...args)),
onBlur: _cache[3] || (_cache[3] = (...args) => _ctx.handleBlur && _ctx.handleBlur(...args))
}, null, 42, _hoisted_1)), [
[vModelCheckbox, _ctx.data.groupModel]
]) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
createCommentVNode(" input \u6CA1\u6709\u7EC4\u5408 "),
createElementVNode("input", {
type: "checkbox",
id: _ctx.inputId,
class: normalizeClass(_ctx.inputClasses),
disabled: _ctx.inputDisabled,
name: _ctx.name,
checked: _ctx.currentValue,
onChange: _cache[4] || (_cache[4] = (...args) => _ctx.handleChange && _ctx.handleChange(...args)),
onFocus: _cache[5] || (_cache[5] = (...args) => _ctx.handleFocus && _ctx.handleFocus(...args)),
onBlur: _cache[6] || (_cache[6] = (...args) => _ctx.handleBlur && _ctx.handleBlur(...args))
}, null, 42, _hoisted_2)
], 2112))
], 2),
createCommentVNode(" \u5185\u5BB9 "),
createElementVNode("span", {
class: normalizeClass(_ctx.textClasses)
}, [
renderSlot(_ctx.$slots, "default", {}, () => [
createTextVNode(toDisplayString(_ctx.label), 1)
])
], 2)
], 2);
}
var IvueCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\louise\\person\\project\\GitHub\\ivue-ui-plus\\src\\components\\ivue-checkbox\\index.vue"]]);
export { IvueCheckbox as default };
//# sourceMappingURL=index2.mjs.map