ZZY
ZZY
### 这个功能解决了什么问题 增加隐藏调色板功能,只允许从固定颜色中选择。部分场合下,使用预先设置的一组颜色,可以保证UI效果,如前景和背景对比色。 ### 你建议的方案是什么 增加隐藏调色板的配置项
尝试过在GridItem移动事件中,删除源GridLayout中的layout数组中的item,再插入到目标GridLayout的layout数组中,但这样会引发handleDrag中的异常: ``` if (!mouseInGrid) { let draggingIndex = layoutData.value[0].findIndex(ele => ele.i === itemId) let removed = layoutData.value[0].splice(draggingIndex, 1) console.log(layoutData.value[0], removed) } ``` 大概可以模仿drag-from-outside例子,但先要解决拖少源GridItem时从源数组上删除该项引发异常?
By studying the 'drag, drop from outside' example, I tried to implement this feature but failed. At first, the GridItem's move event doesn't expose the clientX and clientY of MouseEvent,...
尝试过在GridItem移动事件中,删除源GridLayout中的layout数组中的item,再插入到目标GridLayout的layout数组中,但这样会引发handleDrag中的异常: ``` if (!mouseInGrid) { let draggingIndex = layoutData.value[0].findIndex(ele => ele.i === itemId) let removed = layoutData.value[0].splice(draggingIndex, 1) console.log(layoutData.value[0], removed) } ``` 大概可以模仿drag-from-outside例子,但先要解决拖少源GridItem时从源数组上删除该项引发异常?