fmui-base 2.3.76 → 2.3.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/lib/form/form.js +4 -2
- package/lib/form/table.js +4 -2
- package/package.json +1 -1
package/README.md
CHANGED
package/lib/form/form.js
CHANGED
|
@@ -2128,14 +2128,16 @@ var PageHome = function (_React$Component) {
|
|
|
2128
2128
|
return n;
|
|
2129
2129
|
}
|
|
2130
2130
|
|
|
2131
|
-
/** 覆盖标签/内容区上下内边距,左右 padding
|
|
2131
|
+
/** 覆盖标签/内容区上下内边距,左右 padding 保持原样式;边距变小时保持垂直居中 */
|
|
2132
2132
|
|
|
2133
2133
|
}, {
|
|
2134
2134
|
key: 'buildFieldPaddingCss',
|
|
2135
2135
|
value: function buildFieldPaddingCss(scope, formStyleObj) {
|
|
2136
2136
|
var padding = this.normalizeFieldPadding(formStyleObj && formStyleObj.fieldPadding);
|
|
2137
2137
|
var px = padding + 'px';
|
|
2138
|
-
return [
|
|
2138
|
+
return [
|
|
2139
|
+
// 只改行容器垂直对齐,勿给 .t-field-multi 设 display:flex(会破坏 text-align:right)
|
|
2140
|
+
[scope + ' .t-field-box.t-FBH', scope + ' .t-field-content-box.t-FBH', scope + ' .t-field > .t-FBH'].join(',') + '{align-items:center;}', [scope + ' .t-field-layout-h-label', scope + ' .t-field-layout-v-label', scope + ' .t-field-layout-v-label-left'].join(',') + '{padding-top:' + px + ' !important;padding-bottom:' + px + ' !important;}', [scope + ' .t-field .t-field-layout-h-label+.t-field-multi', scope + ' .t-field-layout-h-label+.t-field-multi'].join(',') + '{padding-top:' + px + ' !important;padding-bottom:' + px + ' !important;box-sizing:border-box;}'].join('');
|
|
2139
2141
|
}
|
|
2140
2142
|
|
|
2141
2143
|
// 组装 CSS 声明;important=true 用于压过 SaltUI 固定字号
|
package/lib/form/table.js
CHANGED
|
@@ -498,14 +498,16 @@ var PageHome = function (_React$Component) {
|
|
|
498
498
|
return n;
|
|
499
499
|
}
|
|
500
500
|
|
|
501
|
-
/** 覆盖标签/内容区上下内边距,左右 padding
|
|
501
|
+
/** 覆盖标签/内容区上下内边距,左右 padding 保持原样式;边距变小时保持垂直居中 */
|
|
502
502
|
|
|
503
503
|
}, {
|
|
504
504
|
key: 'buildFieldPaddingCss',
|
|
505
505
|
value: function buildFieldPaddingCss(scope, formStyleObj) {
|
|
506
506
|
var padding = this.normalizeFieldPadding(formStyleObj && formStyleObj.fieldPadding);
|
|
507
507
|
var px = padding + 'px';
|
|
508
|
-
return [
|
|
508
|
+
return [
|
|
509
|
+
// 只改行容器垂直对齐,勿给 .t-field-multi 设 display:flex(会破坏 text-align:right)
|
|
510
|
+
[scope + ' .t-field-box.t-FBH', scope + ' .t-field-content-box.t-FBH', scope + ' .t-field > .t-FBH'].join(',') + '{align-items:center;}', [scope + ' .t-field-layout-h-label', scope + ' .t-field-layout-v-label', scope + ' .t-field-layout-v-label-left'].join(',') + '{padding-top:' + px + ' !important;padding-bottom:' + px + ' !important;}', [scope + ' .t-field .t-field-layout-h-label+.t-field-multi', scope + ' .t-field-layout-h-label+.t-field-multi'].join(',') + '{padding-top:' + px + ' !important;padding-bottom:' + px + ' !important;box-sizing:border-box;}'].join('');
|
|
509
511
|
}
|
|
510
512
|
}, {
|
|
511
513
|
key: 'buildFormCssDecls',
|