From 124d451ff73bb1dc9282c6b72ac0b4f766426d4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=95=E9=87=91=E6=B3=BD?= <1098696801@qq.com> Date: Sat, 18 Jun 2022 22:50:11 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=B2=E6=AD=A2=E5=AD=97=E6=AE=B5=E6=B3=A8?= =?UTF-8?q?=E9=87=8A=E5=87=BA=E7=8E=B0=E6=8D=A2=E8=A1=8C=E5=BC=95=E5=8F=91?= =?UTF-8?q?=E7=9A=84=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- magic-boot-ui/src/scripts/gen/gen-mb-list.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/magic-boot-ui/src/scripts/gen/gen-mb-list.js b/magic-boot-ui/src/scripts/gen/gen-mb-list.js index a827c8a..dc4bd16 100644 --- a/magic-boot-ui/src/scripts/gen/gen-mb-list.js +++ b/magic-boot-ui/src/scripts/gen/gen-mb-list.js @@ -39,7 +39,7 @@ function gen(groupPath, data){ } html += ` ${d.columnName}: { - label: '${d.columnComment}', + label: '${d.columnComment.trim()}', ${d.component}${props} },` } @@ -66,7 +66,7 @@ function gen(groupPath, data){ html += ` { field: '${d.columnName}', - label: '${d.columnComment}'${type}${dictType} + label: '${d.columnComment.trim()}'${type}${dictType} },` } } @@ -135,12 +135,12 @@ function gen(groupPath, data){ messagePrefix = '请输入' } rules = `, - rules: [{ required: true, message: '${messagePrefix}${d.columnComment}', trigger: 'change' }]` + rules: [{ required: true, message: '${messagePrefix}${d.columnComment.trim()}', trigger: 'change' }]` } html += `{ span: 12, name: '${d.columnName}', - label: '${d.columnComment}', + label: '${d.columnComment.trim()}', ${d.component}${props}${rules} },` }