UNPKG

yanzhen-design-vue

Version:

37 lines (36 loc) 1.2 kB
import { defineComponent, useAttrs, openBlock, createBlock, unref, normalizeClass, createCommentVNode } from "vue"; import { Checkbox } from "ant-design-vue"; import { CheckOutlined } from "@ant-design/icons-vue"; const _sfc_main = /* @__PURE__ */ defineComponent({ ...{ name: "ContactsSelectedIcon" }, __name: "contacts-selected-icon", props: { multiple: Boolean, checked: Boolean, indeterminate: Boolean, disabled: Boolean, onClick: Function }, setup(__props) { const $attrs = useAttrs(); const props = __props; return (_ctx, _cache) => { return props.multiple ? (openBlock(), createBlock(unref(Checkbox), { key: 0, checked: props.checked, indeterminate: props.indeterminate, disabled: props.disabled, class: normalizeClass(unref($attrs).class), onChange: props.onClick }, null, 8, ["checked", "indeterminate", "disabled", "class", "onChange"])) : props.checked ? (openBlock(), createBlock(unref(CheckOutlined), { key: 1, class: normalizeClass(unref($attrs).class) }, null, 8, ["class"])) : createCommentVNode("", true); }; } }); export { _sfc_main as default };