diff --git a/web/src/lang/en_us.js b/web/src/lang/en_us.js index 1ee51a2b..4612cd57 100644 --- a/web/src/lang/en_us.js +++ b/web/src/lang/en_us.js @@ -26,7 +26,8 @@ export default { nodeBorderType: 'Node border style', nodeUseLineStyle: 'Use only has bottom border style', otherConfig: 'Other config', - enableFreeDrag: 'Enable node free drag', + enableFreeDrag: 'Enable node free drag(Beta)', + openPerformance: 'Enable performance mode', watermark: 'Watermark', showWatermark: 'Is show watermark', onlyExport: 'Only export', diff --git a/web/src/lang/zh_cn.js b/web/src/lang/zh_cn.js index 4c8b26ca..24204b4f 100644 --- a/web/src/lang/zh_cn.js +++ b/web/src/lang/zh_cn.js @@ -27,6 +27,7 @@ export default { nodeUseLineStyle: '是否使用只有底边框的风格', otherConfig: '其他配置', enableFreeDrag: '是否开启节点自由拖拽', + openPerformance: '开启性能模式(Beta)', watermark: '水印', showWatermark: '是否显示水印', watermarkDefaultText: '水印文字', diff --git a/web/src/pages/Edit/components/BaseStyle.vue b/web/src/pages/Edit/components/BaseStyle.vue index bad63318..d198a378 100644 --- a/web/src/pages/Edit/components/BaseStyle.vue +++ b/web/src/pages/Edit/components/BaseStyle.vue @@ -845,6 +845,20 @@
{{ $t('baseStyle.otherConfig') }}
+ +
+
+ {{ $t('baseStyle.openPerformance') }} +
+
@@ -1062,6 +1076,7 @@ export default { nodeUseLineStyle: false }, config: { + openPerformance: false, enableFreeDrag: false, mousewheelAction: 'zoom', mousewheelZoomActionReverse: false, @@ -1244,6 +1259,7 @@ export default { // 初始化其他配置 initConfig() { ;[ + 'openPerformance', 'enableFreeDrag', 'mousewheelAction', 'mousewheelZoomActionReverse',