mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-06-03 14:39:19 +08:00
feat(editor): zoom 设置为button
This commit is contained in:
parent
fb64e078b9
commit
faa6c6d9fe
@ -4,9 +4,9 @@
|
|||||||
<div v-else-if="item.type === 'text'" class="menu-item-text">{{ item.text }}</div>
|
<div v-else-if="item.type === 'text'" class="menu-item-text">{{ item.text }}</div>
|
||||||
|
|
||||||
<template v-else-if="item.type === 'zoom'">
|
<template v-else-if="item.type === 'zoom'">
|
||||||
<m-icon :icon="ZoomIn" @click="zoomInHandler"></m-icon>
|
<el-button size="small" type="text"><m-icon :icon="ZoomIn" @click="zoomInHandler"></m-icon></el-button>
|
||||||
<span class="menu-item-text" style="margin: 0 5px">{{ parseInt(`${zoom * 100}`, 10) }}%</span>
|
<span class="menu-item-text" style="margin: 0 5px">{{ parseInt(`${zoom * 100}`, 10) }}%</span>
|
||||||
<m-icon :icon="ZoomOut" @click="zoomOutHandler"></m-icon>
|
<el-button size="small" type="text"><m-icon :icon="ZoomOut" @click="zoomOutHandler"></m-icon></el-button>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<el-tooltip
|
<el-tooltip
|
||||||
|
Loading…
x
Reference in New Issue
Block a user