From 7b4bd6b0bba4ffeb554fedeb17109be055edb623 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A1=97=E8=A7=92=E5=B0=8F=E6=9E=97?= <1013335014@qq.com> Date: Tue, 26 Dec 2023 10:23:37 +0800 Subject: [PATCH] =?UTF-8?q?Demo=EF=BC=9A=E5=9F=BA=E7=A1=80=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E9=85=8D=E7=BD=AE=E8=BF=9E=E7=BA=BF=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E7=AE=AD=E5=A4=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/lang/en_us.js | 1 + web/src/lang/zh_cn.js | 1 + web/src/pages/Edit/components/BaseStyle.vue | 23 ++++++++++++++++++--- 3 files changed, 22 insertions(+), 3 deletions(-) diff --git a/web/src/lang/en_us.js b/web/src/lang/en_us.js index 5f4d2daf..31cd12de 100644 --- a/web/src/lang/en_us.js +++ b/web/src/lang/en_us.js @@ -11,6 +11,7 @@ export default { width: 'Width', style: 'Style', lineOfOutline: 'Line of outline', + showArrow: 'Is show arrow', nodePadding: 'Node padding', nodeMargin: 'Node margin', horizontal: 'Horizontal', diff --git a/web/src/lang/zh_cn.js b/web/src/lang/zh_cn.js index 316aabc3..5482a1e7 100644 --- a/web/src/lang/zh_cn.js +++ b/web/src/lang/zh_cn.js @@ -11,6 +11,7 @@ export default { width: '粗细', style: '风格', lineOfOutline: '概要的连线', + showArrow: '是否显示箭头', nodePadding: '节点内边距', nodeMargin: '节点外边距', horizontal: '水平', diff --git a/web/src/pages/Edit/components/BaseStyle.vue b/web/src/pages/Edit/components/BaseStyle.vue index cf93144a..6a2c7664 100644 --- a/web/src/pages/Edit/components/BaseStyle.vue +++ b/web/src/pages/Edit/components/BaseStyle.vue @@ -199,6 +199,19 @@ +
+
+ {{ $t('baseStyle.showArrow') }} +
+
{{ $t('baseStyle.lineOfOutline') }}
@@ -857,6 +870,7 @@ export default { lineColor: '', lineWidth: '', lineStyle: '', + showLineMarker: '', rootLineKeepSameInCurve: '', generalizationLineWidth: '', generalizationLineColor: '', @@ -975,6 +989,7 @@ export default { 'backgroundColor', 'lineWidth', 'lineStyle', + 'showLineMarker', 'rootLineKeepSameInCurve', 'lineColor', 'generalizationLineWidth', @@ -1030,9 +1045,11 @@ export default { // 初始化水印配置 initWatermark() { let config = this.mindMap.getConfig('watermarkConfig') - ;['text', 'lineSpacing', 'textSpacing', 'angle', 'onlyExport'].forEach(key => { - this.watermarkConfig[key] = config[key] - }) + ;['text', 'lineSpacing', 'textSpacing', 'angle', 'onlyExport'].forEach( + key => { + this.watermarkConfig[key] = config[key] + } + ) this.watermarkConfig.show = !!config.text this.watermarkConfig.textStyle = { ...config.textStyle } },