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 CHANGED
@@ -3,6 +3,7 @@
3
3
  ---npm publish
4
4
 
5
5
  ## 更新日志
6
+ - 2.3.77:移动端表单内容始终上下居中显示
6
7
  - 2.3.76:表单的单选多选字段选项未换行显示全
7
8
  - 2.3.75:移动端表单能支持自定义上下边距
8
9
  - 2.3.74:移动端流程办理支持流程办理人增加由所选活动指定办理人员
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 [[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;}'].join('');
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 [[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;}'].join('');
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',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmui-base",
3
- "version": "2.3.76",
3
+ "version": "2.3.77",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",