@bit-sun/business-component 2.4.20 → 2.4.21
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/dist/index.esm.js
CHANGED
|
@@ -11642,9 +11642,11 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
11642
11642
|
var _this$props = _this.props,
|
|
11643
11643
|
_this$props$summary = _this$props.summary,
|
|
11644
11644
|
summary = _this$props$summary === void 0 ? undefined : _this$props$summary,
|
|
11645
|
-
rowSelection = _this$props.rowSelection
|
|
11645
|
+
rowSelection = _this$props.rowSelection,
|
|
11646
|
+
expandable = _this$props.expandable;
|
|
11646
11647
|
var showColumns = _this.state.showColumns;
|
|
11647
|
-
|
|
11648
|
+
// let summaryRow = rowSelection ? [{}, ...showColumns] : [...showColumns];
|
|
11649
|
+
var summaryRow = rowSelection && expandable ? [{}, {}].concat(_toConsumableArray(showColumns)) : rowSelection || expandable ? [{}].concat(_toConsumableArray(showColumns)) : _toConsumableArray(showColumns); //兼容table配置展开expandable属性导致汇总列位置不对的问题
|
|
11648
11650
|
var summaryInitial = summary().cont;
|
|
11649
11651
|
var summaryDom = /*#__PURE__*/React.createElement(Table.Summary, {
|
|
11650
11652
|
fixed: true
|
|
@@ -11888,9 +11890,11 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
11888
11890
|
var _this$props = _this.props,
|
|
11889
11891
|
_this$props$summary = _this$props.summary,
|
|
11890
11892
|
summary = _this$props$summary === void 0 ? undefined : _this$props$summary,
|
|
11891
|
-
rowSelection = _this$props.rowSelection
|
|
11893
|
+
rowSelection = _this$props.rowSelection,
|
|
11894
|
+
expandable = _this$props.expandable;
|
|
11892
11895
|
var showColumns = _this.state.showColumns;
|
|
11893
|
-
|
|
11896
|
+
// let summaryRow = rowSelection ? [{}, ...showColumns] : [...showColumns];
|
|
11897
|
+
var summaryRow = rowSelection && expandable ? [{}, {}].concat(_toConsumableArray(showColumns)) : rowSelection || expandable ? [{}].concat(_toConsumableArray(showColumns)) : _toConsumableArray(showColumns); //兼容table配置展开expandable属性导致汇总列位置不对的问题
|
|
11894
11898
|
var summaryInitial = summary().cont;
|
|
11895
11899
|
var summaryDom = /*#__PURE__*/React.createElement(Table.Summary, {
|
|
11896
11900
|
fixed: true
|
package/dist/index.js
CHANGED
|
@@ -11662,9 +11662,11 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
11662
11662
|
var _this$props = _this.props,
|
|
11663
11663
|
_this$props$summary = _this$props.summary,
|
|
11664
11664
|
summary = _this$props$summary === void 0 ? undefined : _this$props$summary,
|
|
11665
|
-
rowSelection = _this$props.rowSelection
|
|
11665
|
+
rowSelection = _this$props.rowSelection,
|
|
11666
|
+
expandable = _this$props.expandable;
|
|
11666
11667
|
var showColumns = _this.state.showColumns;
|
|
11667
|
-
|
|
11668
|
+
// let summaryRow = rowSelection ? [{}, ...showColumns] : [...showColumns];
|
|
11669
|
+
var summaryRow = rowSelection && expandable ? [{}, {}].concat(_toConsumableArray(showColumns)) : rowSelection || expandable ? [{}].concat(_toConsumableArray(showColumns)) : _toConsumableArray(showColumns); //兼容table配置展开expandable属性导致汇总列位置不对的问题
|
|
11668
11670
|
var summaryInitial = summary().cont;
|
|
11669
11671
|
var summaryDom = /*#__PURE__*/React__default['default'].createElement(antd.Table.Summary, {
|
|
11670
11672
|
fixed: true
|
|
@@ -11908,9 +11910,11 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
11908
11910
|
var _this$props = _this.props,
|
|
11909
11911
|
_this$props$summary = _this$props.summary,
|
|
11910
11912
|
summary = _this$props$summary === void 0 ? undefined : _this$props$summary,
|
|
11911
|
-
rowSelection = _this$props.rowSelection
|
|
11913
|
+
rowSelection = _this$props.rowSelection,
|
|
11914
|
+
expandable = _this$props.expandable;
|
|
11912
11915
|
var showColumns = _this.state.showColumns;
|
|
11913
|
-
|
|
11916
|
+
// let summaryRow = rowSelection ? [{}, ...showColumns] : [...showColumns];
|
|
11917
|
+
var summaryRow = rowSelection && expandable ? [{}, {}].concat(_toConsumableArray(showColumns)) : rowSelection || expandable ? [{}].concat(_toConsumableArray(showColumns)) : _toConsumableArray(showColumns); //兼容table配置展开expandable属性导致汇总列位置不对的问题
|
|
11914
11918
|
var summaryInitial = summary().cont;
|
|
11915
11919
|
var summaryDom = /*#__PURE__*/React__default['default'].createElement(antd.Table.Summary, {
|
|
11916
11920
|
fixed: true
|
package/package.json
CHANGED
|
@@ -69,9 +69,10 @@ export default class ColumnSettingTable extends React.Component {
|
|
|
69
69
|
};
|
|
70
70
|
|
|
71
71
|
getTableSummaryInfo = () => {
|
|
72
|
-
const { summary = undefined, rowSelection }: any = this.props;
|
|
72
|
+
const { summary = undefined, rowSelection, expandable }: any = this.props;
|
|
73
73
|
const { showColumns }: any = this.state;
|
|
74
|
-
let summaryRow = rowSelection ? [{}, ...showColumns] : [...showColumns];
|
|
74
|
+
// let summaryRow = rowSelection ? [{}, ...showColumns] : [...showColumns];
|
|
75
|
+
let summaryRow = rowSelection && expandable ? [{}, {}, ...showColumns] : rowSelection || expandable ? [{}, ...showColumns] : [...showColumns]; //兼容table配置展开expandable属性导致汇总列位置不对的问题
|
|
75
76
|
let summaryInitial = summary().cont;
|
|
76
77
|
let summaryDom: any = <Table.Summary fixed>
|
|
77
78
|
<Table.Summary.Row>
|
|
@@ -75,9 +75,10 @@ export default class ColumnSettingSulaTable extends React.Component {
|
|
|
75
75
|
};
|
|
76
76
|
|
|
77
77
|
getTableSummaryInfo = () => {
|
|
78
|
-
const { summary = undefined, rowSelection }: any = this.props;
|
|
78
|
+
const { summary = undefined, rowSelection, expandable }: any = this.props;
|
|
79
79
|
const { showColumns }: any = this.state;
|
|
80
|
-
let summaryRow = rowSelection ? [{}, ...showColumns] : [...showColumns];
|
|
80
|
+
// let summaryRow = rowSelection ? [{}, ...showColumns] : [...showColumns];
|
|
81
|
+
let summaryRow = rowSelection && expandable ? [{}, {}, ...showColumns] : rowSelection || expandable ? [{}, ...showColumns] : [...showColumns]; //兼容table配置展开expandable属性导致汇总列位置不对的问题
|
|
81
82
|
let summaryInitial = summary().cont;
|
|
82
83
|
let summaryDom: any = <Table.Summary fixed>
|
|
83
84
|
<Table.Summary.Row>
|