mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-23 19:37:44 +08:00
Demo:去除节点样式的行高配置
This commit is contained in:
parent
889ec13dbf
commit
a0f88031c1
@ -1,6 +1,5 @@
|
||||
import {
|
||||
fontSizeList,
|
||||
lineHeightList,
|
||||
colorList,
|
||||
borderWidthList,
|
||||
borderRadiusList,
|
||||
@ -155,7 +154,6 @@ const linearGradientDirList = {
|
||||
|
||||
export {
|
||||
fontSizeList,
|
||||
lineHeightList,
|
||||
borderWidthList,
|
||||
borderRadiusList,
|
||||
lineWidthList,
|
||||
|
||||
@ -57,9 +57,6 @@ export const fontFamilyList = [
|
||||
// 字号
|
||||
export const fontSizeList = [10, 12, 16, 18, 24, 32, 48]
|
||||
|
||||
// 行高
|
||||
export const lineHeightList = [1, 1.5, 2, 2.5, 3]
|
||||
|
||||
// 颜色
|
||||
export const colorList = [
|
||||
'#4D4D4D',
|
||||
|
||||
@ -216,7 +216,6 @@ export default {
|
||||
text: 'Text',
|
||||
fontFamily: 'Font family',
|
||||
fontSize: 'Font size',
|
||||
lineHeight: 'Line height',
|
||||
color: 'color',
|
||||
addFontWeight: 'add font weight',
|
||||
italic: 'Italic',
|
||||
|
||||
@ -214,7 +214,6 @@ export default {
|
||||
text: '文字',
|
||||
fontFamily: '字体',
|
||||
fontSize: '字号',
|
||||
lineHeight: '行高',
|
||||
color: '颜色',
|
||||
addFontWeight: '加粗',
|
||||
italic: '斜体',
|
||||
|
||||
@ -214,7 +214,6 @@ export default {
|
||||
text: '文字',
|
||||
fontFamily: '字型',
|
||||
fontSize: '字型大小',
|
||||
lineHeight: '行高',
|
||||
color: '顏色',
|
||||
addFontWeight: '粗體',
|
||||
italic: '斜體',
|
||||
|
||||
@ -13,6 +13,7 @@
|
||||
<span class="name">{{ $t('style.fontFamily') }}</span>
|
||||
<el-select
|
||||
size="mini"
|
||||
style="width: 100px"
|
||||
v-model="style.fontFamily"
|
||||
placeholder=""
|
||||
@change="update('fontFamily')"
|
||||
@ -27,8 +28,6 @@
|
||||
</el-option>
|
||||
</el-select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="rowItem">
|
||||
<span class="name">{{ $t('style.fontSize') }}</span>
|
||||
<el-select
|
||||
@ -48,24 +47,6 @@
|
||||
</el-option>
|
||||
</el-select>
|
||||
</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 class="row">
|
||||
<div class="btnGroup">
|
||||
@ -474,7 +455,6 @@ import {
|
||||
borderWidthList,
|
||||
borderDasharrayList,
|
||||
borderRadiusList,
|
||||
lineHeightList,
|
||||
shapeList,
|
||||
shapeListMap,
|
||||
linearGradientDirList
|
||||
@ -497,7 +477,6 @@ export default {
|
||||
fontSizeList,
|
||||
borderWidthList,
|
||||
borderRadiusList,
|
||||
lineHeightList,
|
||||
activeNodes: [],
|
||||
style: {
|
||||
shape: '',
|
||||
@ -506,7 +485,6 @@ export default {
|
||||
color: '',
|
||||
fontFamily: '',
|
||||
fontSize: '',
|
||||
lineHeight: '',
|
||||
textDecoration: '',
|
||||
fontWeight: '',
|
||||
fontStyle: '',
|
||||
@ -593,7 +571,6 @@ export default {
|
||||
'color',
|
||||
'fontFamily',
|
||||
'fontSize',
|
||||
'lineHeight',
|
||||
'textDecoration',
|
||||
'fontWeight',
|
||||
'fontStyle',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user