From 4777ab3e5858ca292737bd05ff39c9680875cc0a 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, 9 Jul 2024 15:57:46 +0800 Subject: [PATCH] =?UTF-8?q?Demo=EF=BC=9A=E6=94=AF=E6=8C=81=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E8=8A=82=E7=82=B9=E6=A0=87=E7=AD=BE=E8=BF=9B=E8=A1=8C?= =?UTF-8?q?=E6=96=87=E6=9C=AC=E5=92=8C=E9=A2=9C=E8=89=B2=E7=9A=84=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/config/zh.js | 2 +- web/src/lang/en_us.js | 4 + web/src/lang/zh_cn.js | 4 + web/src/pages/Edit/components/Edit.vue | 5 +- .../pages/Edit/components/NodeTagStyle.vue | 247 ++++++++++++++++++ 5 files changed, 260 insertions(+), 2 deletions(-) create mode 100644 web/src/pages/Edit/components/NodeTagStyle.vue diff --git a/web/src/config/zh.js b/web/src/config/zh.js index 4c64b5e0..756bfe6d 100644 --- a/web/src/config/zh.js +++ b/web/src/config/zh.js @@ -97,7 +97,7 @@ export const colorList = [ '#0C797D', '#0062B1', '#653294', - '#AB149E', + // '#AB149E', 'transparent' ] diff --git a/web/src/lang/en_us.js b/web/src/lang/en_us.js index 010a221a..4606f804 100644 --- a/web/src/lang/en_us.js +++ b/web/src/lang/en_us.js @@ -373,5 +373,9 @@ export default { boxStyle: 'Box style', boxColor: 'Box color', fillColor: 'Fill color' + }, + nodeTagStyle: { + placeholder: 'Please enter the tag content', + delete: 'Delete this tag' } } diff --git a/web/src/lang/zh_cn.js b/web/src/lang/zh_cn.js index dd420124..0ffec9cc 100644 --- a/web/src/lang/zh_cn.js +++ b/web/src/lang/zh_cn.js @@ -365,5 +365,9 @@ export default { boxStyle: '边框样式', boxColor: '边框颜色', fillColor: '填充颜色' + }, + nodeTagStyle: { + placeholder: '请输入标签内容', + delete: '删除此标签' } } diff --git a/web/src/pages/Edit/components/Edit.vue b/web/src/pages/Edit/components/Edit.vue index da946aba..b0d17042 100644 --- a/web/src/pages/Edit/components/Edit.vue +++ b/web/src/pages/Edit/components/Edit.vue @@ -37,6 +37,7 @@ +
+
+
+ +
+ + {{ $t('nodeTagStyle.delete') }} +
+
+
+ +
+
+ + + + +