UNPKG

yanzhen-design-vue

Version:

27 lines (26 loc) 861 B
import { defineComponent, openBlock, createBlock, unref, mergeProps } from "vue"; import { checkboxName, checkboxProps, checkboxEmits, checkboxOptions } from "./checkbox.mjs"; import { useCheckbox } from "./use-checkbox.mjs"; const _sfc_main = /* @__PURE__ */ defineComponent({ ...{ name: checkboxName }, __name: "checkbox", props: checkboxProps, emits: checkboxEmits, setup(__props, { expose: __expose, emit: __emit }) { const { ns } = checkboxOptions; const props = __props; const emit = __emit; const [{ _ref, proxyProps }, Checkbox] = useCheckbox(props, emit); __expose({ ref: _ref }); return (_ctx, _cache) => { return openBlock(), createBlock(unref(Checkbox), mergeProps({ class: [unref(ns).b()] }, unref(proxyProps)), null, 16, ["class"]); }; } }); export { _sfc_main as default };