Demo:去除节点样式的行高配置

This commit is contained in:
街角小林 2024-10-16 18:42:38 +08:00
parent 889ec13dbf
commit a0f88031c1
6 changed files with 1 additions and 32 deletions

View File

@ -1,6 +1,5 @@
import { import {
fontSizeList, fontSizeList,
lineHeightList,
colorList, colorList,
borderWidthList, borderWidthList,
borderRadiusList, borderRadiusList,
@ -155,7 +154,6 @@ const linearGradientDirList = {
export { export {
fontSizeList, fontSizeList,
lineHeightList,
borderWidthList, borderWidthList,
borderRadiusList, borderRadiusList,
lineWidthList, lineWidthList,

View File

@ -57,9 +57,6 @@ export const fontFamilyList = [
// 字号 // 字号
export const fontSizeList = [10, 12, 16, 18, 24, 32, 48] export const fontSizeList = [10, 12, 16, 18, 24, 32, 48]
// 行高
export const lineHeightList = [1, 1.5, 2, 2.5, 3]
// 颜色 // 颜色
export const colorList = [ export const colorList = [
'#4D4D4D', '#4D4D4D',

View File

@ -216,7 +216,6 @@ export default {
text: 'Text', text: 'Text',
fontFamily: 'Font family', fontFamily: 'Font family',
fontSize: 'Font size', fontSize: 'Font size',
lineHeight: 'Line height',
color: 'color', color: 'color',
addFontWeight: 'add font weight', addFontWeight: 'add font weight',
italic: 'Italic', italic: 'Italic',

View File

@ -214,7 +214,6 @@ export default {
text: '文字', text: '文字',
fontFamily: '字体', fontFamily: '字体',
fontSize: '字号', fontSize: '字号',
lineHeight: '行高',
color: '颜色', color: '颜色',
addFontWeight: '加粗', addFontWeight: '加粗',
italic: '斜体', italic: '斜体',

View File

@ -214,7 +214,6 @@ export default {
text: '文字', text: '文字',
fontFamily: '字型', fontFamily: '字型',
fontSize: '字型大小', fontSize: '字型大小',
lineHeight: '行高',
color: '顏色', color: '顏色',
addFontWeight: '粗體', addFontWeight: '粗體',
italic: '斜體', italic: '斜體',

View File

@ -13,6 +13,7 @@
<span class="name">{{ $t('style.fontFamily') }}</span> <span class="name">{{ $t('style.fontFamily') }}</span>
<el-select <el-select
size="mini" size="mini"
style="width: 100px"
v-model="style.fontFamily" v-model="style.fontFamily"
placeholder="" placeholder=""
@change="update('fontFamily')" @change="update('fontFamily')"
@ -27,8 +28,6 @@
</el-option> </el-option>
</el-select> </el-select>
</div> </div>
</div>
<div class="row">
<div class="rowItem"> <div class="rowItem">
<span class="name">{{ $t('style.fontSize') }}</span> <span class="name">{{ $t('style.fontSize') }}</span>
<el-select <el-select
@ -48,24 +47,6 @@
</el-option> </el-option>
</el-select> </el-select>
</div> </div>
<div class="rowItem">
<span class="name">{{ $t('style.lineHeight') }}</span>
<el-select
size="mini"
style="width: 80px"
v-model="style.lineHeight"
placeholder=""
@change="update('lineHeight')"
>
<el-option
v-for="item in lineHeightList"
:key="item"
:label="item"
:value="item"
>
</el-option>
</el-select>
</div>
</div> </div>
<div class="row"> <div class="row">
<div class="btnGroup"> <div class="btnGroup">
@ -474,7 +455,6 @@ import {
borderWidthList, borderWidthList,
borderDasharrayList, borderDasharrayList,
borderRadiusList, borderRadiusList,
lineHeightList,
shapeList, shapeList,
shapeListMap, shapeListMap,
linearGradientDirList linearGradientDirList
@ -497,7 +477,6 @@ export default {
fontSizeList, fontSizeList,
borderWidthList, borderWidthList,
borderRadiusList, borderRadiusList,
lineHeightList,
activeNodes: [], activeNodes: [],
style: { style: {
shape: '', shape: '',
@ -506,7 +485,6 @@ export default {
color: '', color: '',
fontFamily: '', fontFamily: '',
fontSize: '', fontSize: '',
lineHeight: '',
textDecoration: '', textDecoration: '',
fontWeight: '', fontWeight: '',
fontStyle: '', fontStyle: '',
@ -593,7 +571,6 @@ export default {
'color', 'color',
'fontFamily', 'fontFamily',
'fontSize', 'fontSize',
'lineHeight',
'textDecoration', 'textDecoration',
'fontWeight', 'fontWeight',
'fontStyle', 'fontStyle',