+
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