tass-ui
Version:
A high quality UI Toolkit built on Vue.js3+.
35 lines (34 loc) • 1.04 kB
JavaScript
;
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const vue = require("vue");
const event = require("../../../constants/event.js");
const _hoisted_1 = { class: "tas-checkbox-group" };
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
__name: "checkbox-group",
props: {
modelValue: {
type: Array,
default: void 0
}
},
emits: [event.UPDATE_MODEL_EVENT, event.CHANGE_EVENT],
setup(__props, { emit }) {
const props = __props;
let modelValue = vue.computed(() => props.modelValue);
const handlerChange = (val) => {
emit(event.UPDATE_MODEL_EVENT, val);
emit(event.CHANGE_EVENT, val);
};
vue.provide("TassCheckboxGroup", {
modelValue,
handlerChange,
name: "TassCheckboxGroup"
});
return (_ctx, _cache) => {
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
vue.renderSlot(_ctx.$slots, "default")
]);
};
}
});
exports.default = _sfc_main;