fmui-base 2.3.68 → 2.3.69

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.69:移动端批示意见字段落款支持表单上的自定义样式
6
7
  - 2.3.68:批示意见字段支持根据节点设置控制显示隐藏
7
8
  - 2.3.67:邮件转发按钮根据流程设置显示隐藏,办理缓急图标颜色支持自定义
8
9
  - 2.3.66:字段名带$报错转义
@@ -352,9 +352,17 @@ var PageHome = function (_React$Component) {
352
352
  // 落款无姓名且无签名图可挂靠时,单独补标识
353
353
  var needTrailingAddlots = addlotsLabel && !showUserName && !(hasSignImg && item.inscriptionShow.indexOf("signImg") >= 0);
354
354
  var replaceHtml = item.replacename && item.replacename != "" ? "(代" + (item.userName || "") + "办理)" : "";
355
+ // 落款字体/颜色与字段内容样式保持一致
356
+ var contentStyle = t.props.contentStyle || {};
357
+ var signStyle = Object.assign({
358
+ marginLeft: "auto",
359
+ textAlign: "right",
360
+ width: '100%',
361
+ position: 'relative'
362
+ }, contentStyle);
355
363
  return _react2.default.createElement(
356
364
  Box,
357
- { className: 'comment-html', style: { marginLeft: "auto", "text-align": "right", width: '100%', 'position': 'relative' } },
365
+ { className: 'comment-html', style: signStyle },
358
366
  _returnHtml,
359
367
  needTrailingAddlots ? addlotsOnlyHtml : null,
360
368
  replaceHtml
@@ -367,6 +375,7 @@ var PageHome = function (_React$Component) {
367
375
  key: 'render',
368
376
  value: function render() {
369
377
  var t = this;
378
+ var contentStyle = t.props.contentStyle || {};
370
379
  return _react2.default.createElement(
371
380
  'div',
372
381
  null,
@@ -374,8 +383,8 @@ var PageHome = function (_React$Component) {
374
383
  var commentType = item && item.type != null ? String(item.type) : '';
375
384
  return _react2.default.createElement(
376
385
  VBox,
377
- { className: 't-PB10 t-LH1_5 t-field t-FS14 t-PL10' },
378
- commentType.indexOf('image') < 0 ? _react2.default.createElement(Box, { className: 't-PR16', dangerouslySetInnerHTML: { __html: item.fullMessage == null ? "" : String(item.fullMessage).replace(/\r\n/g, '<br/>').replace(/\n/g, '<br/>').replace(/ /g, '&nbsp;') } }) : item.fullMessage == '' ? _react2.default.createElement(
386
+ { className: 't-PB10 t-LH1_5 t-field t-FS14 t-PL10', style: contentStyle },
387
+ commentType.indexOf('image') < 0 ? _react2.default.createElement(Box, { className: 't-PR16 comment-content', style: contentStyle, dangerouslySetInnerHTML: { __html: item.fullMessage == null ? "" : String(item.fullMessage).replace(/\r\n/g, '<br/>').replace(/\n/g, '<br/>').replace(/ /g, '&nbsp;') } }) : item.fullMessage == '' ? _react2.default.createElement(
379
388
  Box,
380
389
  null,
381
390
  '\'\''
@@ -398,7 +407,7 @@ var PageHome = function (_React$Component) {
398
407
  ) : null,
399
408
  _react2.default.createElement(
400
409
  Box,
401
- { vAlign: 'start', hAlign: 'end', id: 'commentSign-' + item.id, className: 't-FBH t-PR16' },
410
+ { vAlign: 'start', hAlign: 'end', id: 'commentSign-' + item.id, className: 't-FBH t-PR16', style: contentStyle },
402
411
  ' ',
403
412
  item.inscriptionShow ? t.getCommentSign(item) : "",
404
413
  _react2.default.createElement('i', { id: item.id + "_sucess", className: 'iconfont icon-checked t-PT10 t-PL3', style: { color: 'green', display: 'none' } }),
package/lib/form/form.js CHANGED
@@ -2182,7 +2182,7 @@ var PageHome = function (_React$Component) {
2182
2182
  // 月日自定义、意见、html 等非 SaltUI 标准内容节点
2183
2183
  scope + ' .t-FL', scope + ' .flex-comment .t-PT10', scope + ' .flex-comment .t-textarea-field-content',
2184
2184
  // 批示意见落款与内容字体颜色一致
2185
- scope + ' .comment-html', scope + ' .comment-html span', scope + ' .ueditor-content', scope + ' .t-FB1.t-FAL', scope + ' .t-FB1.t-omit', scope + ' .t-omit', scope + ' .t-LH1_4', scope + ' .t-FS16', scope + ' .t-field-box.t-FS16', scope + ' .t-field-box.t-FS16 .t-FB1', scope + ' .section-content .t-FB1'].join(',') + '{' + contentCss + '}');
2185
+ scope + ' .comment-html', scope + ' .comment-html span', scope + ' .comment-content', scope + ' .ueditor-content', scope + ' .t-FB1.t-FAL', scope + ' .t-FB1.t-omit', scope + ' .t-omit', scope + ' .t-LH1_4', scope + ' .t-FS16', scope + ' .t-field-box.t-FS16', scope + ' .t-field-box.t-FS16 .t-FB1', scope + ' .section-content .t-FB1'].join(',') + '{' + contentCss + '}');
2186
2186
 
2187
2187
  var placeholderCss = this.buildFormCssDecls(cs, { important: true, skipColor: true, withLineHeight: true });
2188
2188
  cssParts.push([scope + ' .t-text-field-placeholder', scope + ' .t-select-field-placeholder', scope + ' .t-datetime-field-placeholder', scope + ' .t-checkbox-field-placeholder'].join(',') + '{' + placeholderCss + '}');
package/lib/form/table.js CHANGED
@@ -542,7 +542,9 @@ var PageHome = function (_React$Component) {
542
542
  }
543
543
  if (this.hasFormStyleProps(cs)) {
544
544
  var contentCss = this.buildFormCssDecls(cs, { important: true, withLineHeight: true });
545
- cssParts.push([scope + ' .t-text-field-input', scope + ' .t-text-field-content-main', scope + ' .t-text-field-content-main span', scope + ' .t-field-content-box > .t-FB1', scope + ' .t-field-content-box > .t-FB1 span', scope + ' .t-field-multi', scope + ' .t-field-multi span', scope + ' .t-select-field-value', scope + ' .t-select-field-value span', scope + ' .t-radio-field-value', scope + ' .t-radio-field-value span', scope + ' .t-radio-field-value .t-FB1', scope + ' .t-radio-field-value .t-omit', scope + ' .t-datetime-field-value', scope + ' .t-datetime-field-value span', scope + ' .t-textarea-field-content', scope + ' .t-textarea-field-content textarea', scope + ' .t-checkbox-field-content', scope + ' .t-checkbox-field-label', scope + ' .t-checkbox-field-value-list', scope + ' .t-checkbox-field-value-list span', scope + ' .dd-select-input-option-text', scope + ' .t-popuser-value', scope + ' .t-popuser-value span', scope + ' .t-popuser-placeholder', scope + ' .t-poppage-value', scope + ' .t-poppage-value span', scope + ' .t-poppage-placeholder', scope + ' .t-FL', scope + ' .flex-comment .t-textarea-field-content', scope + ' .ueditor-content',
545
+ cssParts.push([scope + ' .t-text-field-input', scope + ' .t-text-field-content-main', scope + ' .t-text-field-content-main span', scope + ' .t-field-content-box > .t-FB1', scope + ' .t-field-content-box > .t-FB1 span', scope + ' .t-field-multi', scope + ' .t-field-multi span', scope + ' .t-select-field-value', scope + ' .t-select-field-value span', scope + ' .t-radio-field-value', scope + ' .t-radio-field-value span', scope + ' .t-radio-field-value .t-FB1', scope + ' .t-radio-field-value .t-omit', scope + ' .t-datetime-field-value', scope + ' .t-datetime-field-value span', scope + ' .t-textarea-field-content', scope + ' .t-textarea-field-content textarea', scope + ' .t-checkbox-field-content', scope + ' .t-checkbox-field-label', scope + ' .t-checkbox-field-value-list', scope + ' .t-checkbox-field-value-list span', scope + ' .dd-select-input-option-text', scope + ' .t-popuser-value', scope + ' .t-popuser-value span', scope + ' .t-popuser-placeholder', scope + ' .t-poppage-value', scope + ' .t-poppage-value span', scope + ' .t-poppage-placeholder', scope + ' .t-FL', scope + ' .flex-comment .t-textarea-field-content', scope + ' .flex-comment .t-PT10',
546
+ // 批示意见落款与内容字体颜色一致
547
+ scope + ' .comment-html', scope + ' .comment-html span', scope + ' .comment-content', scope + ' .ueditor-content',
546
548
  // 弹出选择/只读展示:常带 t-FS16 等工具类,需一并覆盖
547
549
  scope + ' .t-FB1.t-FAL', scope + ' .t-FB1.t-omit', scope + ' .t-omit', scope + ' .t-LH1_4', scope + ' .t-FS16', scope + ' .t-field-box.t-FS16', scope + ' .t-field-box.t-FS16 .t-FB1', scope + ' .section-content .t-FB1'].join(',') + '{' + contentCss + '}');
548
550
  var placeholderCss = this.buildFormCssDecls(cs, { important: true, skipColor: true, withLineHeight: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmui-base",
3
- "version": "2.3.68",
3
+ "version": "2.3.69",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",