mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-06 03:57:56 +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>
|
||||
|
||||
<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>
|
||||
<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>
|
||||
|
||||
<el-tooltip
|
||||
|
Loading…
x
Reference in New Issue
Block a user