This commit is contained in:
lzp
2026-03-31 16:14:52 +08:00
parent 7553750ec4
commit a72953ec05

View File

@@ -13,7 +13,12 @@
>
<svg-icon :name="v.icon" :size="v.iconSize" />
</span>
<span class="more" v-if="v.child" @click="onClickMore(v)" :bind-id="v.name">
<span
class="more"
v-if="v.child"
@click="v.showChild = !v.showChild"
:bind-id="v.name"
>
<svg-icon name="dc-down_arrow2" size="7" />
</span>
<div
@@ -167,15 +172,8 @@
parent.icon = v.icon
parent.iconSize = v.iconSize * 1.23
}
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