koishijs / webui

WebUI plugins for Koishi
https://koishi.online
GNU Affero General Public License v3.0
29 stars 14 forks source link

Bug: 分组内插件拖动排序位置偏移 #312

Open H4M5TER opened 7 months ago

H4M5TER commented 7 months ago

复现方法:新建一个插件组,新增几个插件,拖动一个到另外两个插件之间,松开后插件没有移动到那两个插件之间,而是移动到更上方

boilerplate 自带的插件组内拖动是没有问题的,观察到新增的插件组发现多了一个 $label,猜测是这个导致的

shigma commented 7 months ago

maybe duplicate of https://github.com/koishijs/webui/issues/277

我猜并不是每个插件组都有这个问题,只有 console 会出现

H4M5TER commented 7 months ago

我猜并不是每个插件组都有这个问题,只有 console 会出现

不是每个插件组都有这个问题,console 有这个问题,我手动编辑复制过来的插件组没有问题,我在控制台新建的插件组有问题 控制台新建的插件组的 hash 是随机的,名字保存在 $label 里

maybe duplicate of #277

应该是