diff --git a/web/src/config/en.js b/web/src/config/en.js index 8ab259f5..28f32f16 100644 --- a/web/src/config/en.js +++ b/web/src/config/en.js @@ -83,6 +83,10 @@ export const borderDasharrayList = [ { name: 'Dotted6', value: '1, 5' + }, + { + name: 'Dotted7', + value: '6, 4' } ] diff --git a/web/src/config/zh.js b/web/src/config/zh.js index 756bfe6d..ea976986 100644 --- a/web/src/config/zh.js +++ b/web/src/config/zh.js @@ -133,6 +133,10 @@ export const borderDasharrayList = [ { name: '虚线6', value: '1, 5' + }, + { + name: '虚线7', + value: '6, 4' } ] diff --git a/web/src/pages/Edit/components/BaseStyle.vue b/web/src/pages/Edit/components/BaseStyle.vue index d198a378..750ef714 100644 --- a/web/src/pages/Edit/components/BaseStyle.vue +++ b/web/src/pages/Edit/components/BaseStyle.vue @@ -469,6 +469,47 @@ +
+
+ {{ $t('style.style') }} + + + + + + + +
+
{{ $t('baseStyle.associativeLineText') }}
@@ -1003,7 +1044,8 @@ import { fontFamilyList, fontSizeList, rootLineKeepSameInCurveList, - lineStyleMap + lineStyleMap, + borderDasharrayList } from '@/config' import ImgUpload from '@/components/ImgUpload' import { storeConfig } from '@/api' @@ -1058,6 +1100,7 @@ export default { associativeLineColor: '', associativeLineWidth: 0, associativeLineActiveWidth: 0, + associativeLineDasharray: '', associativeLineActiveColor: '', associativeLineTextFontSize: 0, associativeLineTextColor: '', @@ -1168,6 +1211,9 @@ export default { }, showRootLineKeepSameInCurveLayouts() { return supportRootLineKeepSameInCurveLayouts.includes(this.currentLayout) + }, + borderDasharrayList() { + return borderDasharrayList[this.$i18n.locale] || borderDasharrayList.zh } }, watch: { @@ -1233,6 +1279,7 @@ export default { 'associativeLineColor', 'associativeLineWidth', 'associativeLineActiveWidth', + 'associativeLineDasharray', 'associativeLineActiveColor', 'associativeLineTextFontSize', 'associativeLineTextColor',