Browse Source

Pull request #79442: 无jira任务, master 合 feature/x

Merge in DEC/fineui from master to feature/x

* commit '59e0eec428f086b12fc92d45ecc3fd1b3d0820d3':
  auto upgrade version to 2.0.20220621104447
  BI-106835 style:表单左侧标题可支持样式定义
  BI-106835 style:表单左侧标题可支持样式定义
es6
Teller 3 years ago
parent
commit
e8ccb1564e
  1. 2
      package.json
  2. 2
      src/component/form/form.field.js
  3. 4
      src/component/form/form.js

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "fineui", "name": "fineui",
"version": "2.0.20220621102335", "version": "2.0.20220621104447",
"description": "fineui", "description": "fineui",
"main": "dist/fineui.min.js", "main": "dist/fineui.min.js",
"types": "dist/lib/index.d.ts", "types": "dist/lib/index.d.ts",

2
src/component/form/form.field.js

@ -9,6 +9,7 @@
baseCls: "bi-form-field", baseCls: "bi-form-field",
label: "", label: "",
el: {}, el: {},
headerCls: "",
labelAlign: "right", // 文字默认右对齐 labelAlign: "right", // 文字默认右对齐
validate: function () { validate: function () {
return true; return true;
@ -69,6 +70,7 @@
textAlign: o.labelAlign, textAlign: o.labelAlign,
text: o.label, text: o.label,
width: o.labelWidth, width: o.labelWidth,
cls: o.headerCls,
rgap: 20 // 表单文字与右侧输入间距均为20px rgap: 20 // 表单文字与右侧输入间距均为20px
} }
}, field] : [field] }, field] : [field]

4
src/component/form/form.js

@ -18,7 +18,8 @@
label: "", label: "",
el: {} el: {}
}], }],
labelWidth: "" labelWidth: "",
headerCls: "", // 左侧文字样式
}, },
render: function () { render: function () {
@ -44,6 +45,7 @@
height: item.el.height || 28, height: item.el.height || 28,
labelAlign: o.labelAlign, labelAlign: o.labelAlign,
labelWidth: o.labelWidth, labelWidth: o.labelWidth,
headerCls: o.headerCls,
el: item.el, el: item.el,
label: item.label, label: item.label,
tip: item.tip, tip: item.tip,

Loading…
Cancel
Save