fmui-base 2.3.10 → 2.3.12

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,8 @@
3
3
  ---npm publish
4
4
 
5
5
  ## 更新日志
6
+ - 2.3.11:门户首页grid常用应用部件增加扩展入口调整为页签(一网通办项目需求,临时版本)
7
+ - 2.3.11:子表支持子表按钮自定义
6
8
  - 2.3.10:门户首页grid常用应用部件增加扩展入口(一网通办项目需求,临时版本)
7
9
  - 2.3.9:子表支持整个子表隐藏
8
10
  - 2.3.8:子表多列排版错乱处理
@@ -1111,6 +1111,9 @@ var PageHome = function (_React$Component) {
1111
1111
  if (!extButtonList) {
1112
1112
  extButtonList = [];
1113
1113
  }
1114
+ if (subForm && subForm[index] && subForm[index].extButtonList) {
1115
+ extButtonList = subForm[index].extButtonList;
1116
+ }
1114
1117
 
1115
1118
  return extButtonList.map(function (item, i) {
1116
1119
  return _react2.default.createElement(
@@ -829,9 +829,17 @@ var MyGrid = function (_React$Component) {
829
829
  null,
830
830
  _react2.default.createElement('img', { className: 'nodata t-PL10 t-PR10', src: '../../../fmui/images/home/nodata.png' })
831
831
  )
832
+ ),
833
+ _react2.default.createElement(
834
+ _Tab2.default.Item,
835
+ { title: _react2.default.createElement(
836
+ 'div',
837
+ { style: { color: styleSetting.titleSet.titleColor, fontWeight: styleSetting.titleSet.titleWeight == 1 ? 700 : '', fontSize: styleSetting.titleSet.titleSize } },
838
+ t.props.cyyyPlusTitle ? t.props.cyyyPlusTitle : ''
839
+ ) },
840
+ t.props.cyyyPlusContent ? t.props.cyyyPlusContent : ''
832
841
  )
833
- ),
834
- t.props.extendedContent ? t.props.extendedContent : ''
842
+ )
835
843
  );
836
844
  }
837
845
  if (item.portletCode === 'bssx') {
@@ -5826,7 +5826,7 @@ var Page = function (_React$Component) {
5826
5826
  }
5827
5827
  }
5828
5828
 
5829
- // 根据 commonUsedData 实际选中状态同步全选
5829
+ // 根据 commonUsedData 实际选中状态同步全选(仿照 roleCheckAll 逻辑)
5830
5830
 
5831
5831
  }, {
5832
5832
  key: 'syncCommonCheckState',
@@ -5944,10 +5944,10 @@ var Page = function (_React$Component) {
5944
5944
  commonTreeData.push(data);
5945
5945
  }
5946
5946
  }
5947
- selectCommonNum = t.commonDataChecked(commonUsedData);
5948
- if (selectCommonNum == commonUsedData.length) {
5949
- commonCheckAll = true;
5950
- }
5947
+ t.commonDataChecked(commonUsedData);
5948
+ var commonCheckState = t.syncCommonCheckState(commonUsedData);
5949
+ selectCommonNum = commonCheckState.selectCommonNum;
5950
+ commonCheckAll = commonCheckState.commonCheckAll;
5951
5951
  }
5952
5952
 
5953
5953
  if (commonUsedDataSearch != null && commonUsedDataSearch != undefined && commonUsedDataSearch.length > 0) {
@@ -6528,15 +6528,15 @@ var Page = function (_React$Component) {
6528
6528
  var t = this;
6529
6529
  var chooseType = this.getChooseType();
6530
6530
  if (obj.activeKey == "common") {
6531
+ var isShowCheckAll = true;
6532
+ if (checkType == "radio") {
6533
+ isShowCheckAll = false;
6534
+ }
6531
6535
  var commonUsedData = t.state.commonUsedData;
6532
6536
  if (commonUsedData != null && commonUsedData != undefined && commonUsedData.length > 0) {
6533
6537
  t.commonDataChecked(commonUsedData);
6534
6538
  }
6535
6539
  var commonCheckState = t.syncCommonCheckState(commonUsedData);
6536
- var isShowCheckAll = true;
6537
- if (checkType == "radio") {
6538
- isShowCheckAll = false;
6539
- }
6540
6540
  t.setState({
6541
6541
  selectCommonNum: commonCheckState.selectCommonNum,
6542
6542
  isShowCheckAll: isShowCheckAll,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmui-base",
3
- "version": "2.3.10",
3
+ "version": "2.3.12",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",