画布增加的新功能
This commit is contained in:
@@ -101,7 +101,8 @@ onUnmounted(() => {
|
||||
:style="tool.style"
|
||||
@click="handleClick"
|
||||
>
|
||||
<SvgIcon :name="tool.icon.name" :size="tool.icon.size"></SvgIcon>
|
||||
<SvgIcon v-if="tool.icon" :name="tool.icon.name" :size="tool.icon.size"></SvgIcon>
|
||||
<span v-else>{{ tool.label }}</span>
|
||||
<teleport to="body" v-if="tipBody">
|
||||
<div class="tool-tooltip" :id="tipId">{{ t(tool.title) }}</div>
|
||||
</teleport>
|
||||
|
||||
Reference in New Issue
Block a user