dk-plus
Version:
18 lines (17 loc) • 425 B
JavaScript
import { toRaw as n } from "vue";
import { getSlotList as l } from "../public/get-slot-list/index.js";
const m = (c) => {
const o = n(c);
return {
refresh: (t, e) => {
const r = l(t, "DkCheckbox");
return o.max && e.length === o.max && r.forEach((s) => {
s.modelValue || (s.disabled = !0);
}), r;
},
getSlot: (t) => l(t, "DkCheckbox")
};
};
export {
m as getCheckboxGroupSlot
};