From 5fa6b1b52b71828dbf282b98994f5c2482b3380e Mon Sep 17 00:00:00 2001 From: Claire <1119518763@qq.com> Date: Mon, 20 Jun 2022 20:38:47 +0800 Subject: [PATCH 1/3] =?UTF-8?q?BI-106835=20style=EF=BC=9A=E8=A1=A8?= =?UTF-8?q?=E5=8D=95=E5=B7=A6=E4=BE=A7=E6=A0=87=E9=A2=98=E5=8F=AF=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E6=A0=B7=E5=BC=8F=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/component/form/form.field.js | 2 ++ src/component/form/form.js | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/component/form/form.field.js b/src/component/form/form.field.js index e6c11a924..0b67041b8 100644 --- a/src/component/form/form.field.js +++ b/src/component/form/form.field.js @@ -9,6 +9,7 @@ baseCls: "bi-form-field", label: "", el: {}, + headerCls: "", labelAlign: "right", // 文字默认右对齐 validate: function () { return true; @@ -69,6 +70,7 @@ textAlign: o.labelAlign, text: o.label, width: o.labelWidth, + cls: o.headerCls, rgap: 20 // 表单文字与右侧输入间距均为20px } }, field] : [field] diff --git a/src/component/form/form.js b/src/component/form/form.js index 27734455f..0d1d44f67 100644 --- a/src/component/form/form.js +++ b/src/component/form/form.js @@ -18,7 +18,8 @@ label: "", el: {} }], - labelWidth: "" + labelWidth: "", + headerCls: false, // 左侧文字样式 }, render: function () { @@ -44,6 +45,7 @@ height: item.el.height || 28, labelAlign: o.labelAlign, labelWidth: o.labelWidth, + headerCls: o.headerCls, el: item.el, label: item.label, tip: item.tip, From afa9d7b18f976a0c3b8a96e1ac33d16f144d5431 Mon Sep 17 00:00:00 2001 From: Claire <1119518763@qq.com> Date: Mon, 20 Jun 2022 20:45:41 +0800 Subject: [PATCH 2/3] =?UTF-8?q?BI-106835=20style=EF=BC=9A=E8=A1=A8?= =?UTF-8?q?=E5=8D=95=E5=B7=A6=E4=BE=A7=E6=A0=87=E9=A2=98=E5=8F=AF=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E6=A0=B7=E5=BC=8F=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/component/form/form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/component/form/form.js b/src/component/form/form.js index 0d1d44f67..de8caeaea 100644 --- a/src/component/form/form.js +++ b/src/component/form/form.js @@ -19,7 +19,7 @@ el: {} }], labelWidth: "", - headerCls: false, // 左侧文字样式 + headerCls: "", // 左侧文字样式 }, render: function () { From 59e0eec428f086b12fc92d45ecc3fd1b3d0820d3 Mon Sep 17 00:00:00 2001 From: data Date: Tue, 21 Jun 2022 10:45:01 +0800 Subject: [PATCH 3/3] auto upgrade version to 2.0.20220621104447 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d2dfa44c8..c2fbe6c97 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fineui", - "version": "2.0.20220621102335", + "version": "2.0.20220621104447", "description": "fineui", "main": "dist/fineui.min.js", "types": "dist/lib/index.d.ts",