@@ -166,16 +171,10 @@
parent.name = v.name
parent.icon = v.icon
parent.iconSize = v.iconSize * 1.23
+ parent.showChild = false
}
- tools.value.forEach((v) => v.hasOwnProperty('showChild') && (v.showChild = false))
v.on ? v.on() : toolManager.setTool(v.name)
}
- const onClickMore = (v: any) => {
- tools.value.forEach((item) => {
- if (item.hasOwnProperty('showChild') && item.name !== v.name) item.showChild = false
- })
- v.showChild = !v.showChild
- }
const onImageClick = async () => {
const layer = await importLocalImage(false)
const id = layer?.info?.id