(
dom: HTMLElement,
targetClassName = "layout-card-container",
actionClassName = "global-layout-card-dragover"
)
| 6 | const { deleteLayoutItem, insertLayoutItem, getIndexById } = useLayoutConfigStore(); |
| 7 | const { containerState } = useLayoutContainerStore(); |
| 8 | const addDragClass = ( |
| 9 | dom: HTMLElement, |
| 10 | targetClassName = "layout-card-container", |
| 11 | actionClassName = "global-layout-card-dragover" |
| 12 | ) => { |
| 13 | if (!dom) return; |
| 14 | const div = findParentWithClass(dom, targetClassName); |
| 15 | if (div) div.classList.add(actionClassName); |
| 16 | }; |
| 17 | const removeDragClass = ( |
| 18 | dom: HTMLElement, |
| 19 | targetClassName = "layout-card-container", |
no test coverage detected