Demo:基础样式配置连线支持显示箭头
This commit is contained in:
parent
80f8a357fe
commit
7b4bd6b0bb
@ -11,6 +11,7 @@ export default {
|
|||||||
width: 'Width',
|
width: 'Width',
|
||||||
style: 'Style',
|
style: 'Style',
|
||||||
lineOfOutline: 'Line of outline',
|
lineOfOutline: 'Line of outline',
|
||||||
|
showArrow: 'Is show arrow',
|
||||||
nodePadding: 'Node padding',
|
nodePadding: 'Node padding',
|
||||||
nodeMargin: 'Node margin',
|
nodeMargin: 'Node margin',
|
||||||
horizontal: 'Horizontal',
|
horizontal: 'Horizontal',
|
||||||
|
|||||||
@ -11,6 +11,7 @@ export default {
|
|||||||
width: '粗细',
|
width: '粗细',
|
||||||
style: '风格',
|
style: '风格',
|
||||||
lineOfOutline: '概要的连线',
|
lineOfOutline: '概要的连线',
|
||||||
|
showArrow: '是否显示箭头',
|
||||||
nodePadding: '节点内边距',
|
nodePadding: '节点内边距',
|
||||||
nodeMargin: '节点外边距',
|
nodeMargin: '节点外边距',
|
||||||
horizontal: '水平',
|
horizontal: '水平',
|
||||||
|
|||||||
@ -199,6 +199,19 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="rowItem">
|
||||||
|
<el-checkbox
|
||||||
|
v-model="style.showLineMarker"
|
||||||
|
@change="
|
||||||
|
value => {
|
||||||
|
update('showLineMarker', value)
|
||||||
|
}
|
||||||
|
"
|
||||||
|
>{{ $t('baseStyle.showArrow') }}</el-checkbox
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<!-- 概要连线 -->
|
<!-- 概要连线 -->
|
||||||
<div class="title noTop">{{ $t('baseStyle.lineOfOutline') }}</div>
|
<div class="title noTop">{{ $t('baseStyle.lineOfOutline') }}</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@ -857,6 +870,7 @@ export default {
|
|||||||
lineColor: '',
|
lineColor: '',
|
||||||
lineWidth: '',
|
lineWidth: '',
|
||||||
lineStyle: '',
|
lineStyle: '',
|
||||||
|
showLineMarker: '',
|
||||||
rootLineKeepSameInCurve: '',
|
rootLineKeepSameInCurve: '',
|
||||||
generalizationLineWidth: '',
|
generalizationLineWidth: '',
|
||||||
generalizationLineColor: '',
|
generalizationLineColor: '',
|
||||||
@ -975,6 +989,7 @@ export default {
|
|||||||
'backgroundColor',
|
'backgroundColor',
|
||||||
'lineWidth',
|
'lineWidth',
|
||||||
'lineStyle',
|
'lineStyle',
|
||||||
|
'showLineMarker',
|
||||||
'rootLineKeepSameInCurve',
|
'rootLineKeepSameInCurve',
|
||||||
'lineColor',
|
'lineColor',
|
||||||
'generalizationLineWidth',
|
'generalizationLineWidth',
|
||||||
@ -1030,9 +1045,11 @@ export default {
|
|||||||
// 初始化水印配置
|
// 初始化水印配置
|
||||||
initWatermark() {
|
initWatermark() {
|
||||||
let config = this.mindMap.getConfig('watermarkConfig')
|
let config = this.mindMap.getConfig('watermarkConfig')
|
||||||
;['text', 'lineSpacing', 'textSpacing', 'angle', 'onlyExport'].forEach(key => {
|
;['text', 'lineSpacing', 'textSpacing', 'angle', 'onlyExport'].forEach(
|
||||||
this.watermarkConfig[key] = config[key]
|
key => {
|
||||||
})
|
this.watermarkConfig[key] = config[key]
|
||||||
|
}
|
||||||
|
)
|
||||||
this.watermarkConfig.show = !!config.text
|
this.watermarkConfig.show = !!config.text
|
||||||
this.watermarkConfig.textStyle = { ...config.textStyle }
|
this.watermarkConfig.textStyle = { ...config.textStyle }
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user