|
@@ -187,6 +187,30 @@
|
|
|
/>
|
|
|
</el-tooltip>
|
|
|
</div>
|
|
|
+ <div class="sand-tool-item">
|
|
|
+ <el-dropdown trigger="click" @command="(e)=>toolClickOptions('changeLineHeight',nodeTextDisable,e)"
|
|
|
+ placement="bottom">
|
|
|
+ <div :class="nodeTextDisable?'tool-disabled':''" class="dropdown-box">
|
|
|
+ <el-tooltip content="文本行高" placement="top" :open-delay="250">
|
|
|
+ <div class="dropdown-content" >
|
|
|
+ <img :src="nodeTextDisable?
|
|
|
+ require('@/assets/img/sand_new/tools/line-height-disabled.png'):
|
|
|
+ require('@/assets/img/sand_new/tools/line-height.png')"
|
|
|
+ style="vertical-align: middle;"/>
|
|
|
+ </div>
|
|
|
+ </el-tooltip>
|
|
|
+ <el-tooltip content="文本行高" placement="top" :open-delay="250">
|
|
|
+ <span v-show="nodeTextDisable" class="disabled-item" @click.stop="()=>{}"></span>
|
|
|
+ </el-tooltip>
|
|
|
+ </div>
|
|
|
+ <el-dropdown-menu slot="dropdown">
|
|
|
+ <el-dropdown-item v-for="s in lineHeightOptions" :command="s" :key="s"
|
|
|
+ :class="styleOptions.lineHeight==s?'style-acitve':''">
|
|
|
+ {{ s }}
|
|
|
+ </el-dropdown-item>
|
|
|
+ </el-dropdown-menu>
|
|
|
+ </el-dropdown>
|
|
|
+ </div>
|
|
|
<div class="sand-tool-item">
|
|
|
<el-dropdown trigger="click" @command="(e)=>toolClickOptions('changeTextAlign',nodeTextDisable,e)"
|
|
|
placement="bottom">
|