dev: hotfix, added my-ui/checkboxes

This commit is contained in:
2025-12-08 07:59:56 +07:00
parent 008903efab
commit 108ec8e899
2 changed files with 55 additions and 0 deletions

No files matched your search

@@ -0,0 +1,14 @@
export interface Item {
value: string
label: string
checked?: boolean
}
export function checkItems(items: Item[], value: string[]) {
items.forEach((item, idx) => {
items[idx]!.checked = value.includes(item.value)
// item.checked = value.includes(item.value)
})
}
export { default as Checkboxes } from './checkboxes.vue'