@bit-sun/business-component 2.1.13 → 2.1.14

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
@@ -14979,7 +14979,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
14979
14979
  fixed: true
14980
14980
  }, /*#__PURE__*/React.createElement(Table.Summary.Row, null, _toConsumableArray(summaryRow).map(function (item, index) {
14981
14981
  return /*#__PURE__*/React.createElement(Table.Summary.Cell, {
14982
- index: rowSelection ? index : index - 1
14982
+ index: index
14983
14983
  }, /*#__PURE__*/React.createElement(Text, {
14984
14984
  type: "danger"
14985
14985
  }, summaryInitial.filter(function (inner) {
@@ -15267,7 +15267,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
15267
15267
  fixed: true
15268
15268
  }, /*#__PURE__*/React.createElement(Table.Summary.Row, null, _toConsumableArray(summaryRow).map(function (item, index) {
15269
15269
  return /*#__PURE__*/React.createElement(Table.Summary.Cell, {
15270
- index: rowSelection ? index : index - 1
15270
+ index: index
15271
15271
  }, /*#__PURE__*/React.createElement(Text$1, {
15272
15272
  type: "danger"
15273
15273
  }, summaryInitial.filter(function (inner) {
@@ -21267,25 +21267,13 @@ var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
21267
21267
  colSpan: innerItem && innerItem.rowSpan
21268
21268
  }, innerItem && innerItem.title);
21269
21269
  }));
21270
- }))), /*#__PURE__*/React.createElement("div", {
21271
- style: {
21272
- position: 'absolute',
21273
- left: "".concat(config.colHeaderWidth, "px"),
21274
- minWidth: rightAreaWidth,
21275
- zIndex: 0,
21276
- top: 0
21277
- }
21278
- }, /*#__PURE__*/React.createElement("div", {
21279
- style: {
21280
- position: 'relative'
21281
- }
21282
- }, /*#__PURE__*/React.createElement("table", {
21270
+ }))), /*#__PURE__*/React.createElement("table", {
21283
21271
  className: " ".concat('editTable__block', " ", 'table_border_style'),
21284
21272
  style: {
21285
21273
  width: '100%',
21286
21274
  top: 0,
21287
21275
  left: "".concat(config.colHeaderWidth, "px"),
21288
- position: 'sticky',
21276
+ position: 'absolute',
21289
21277
  display: config.tableType === 'col-header-table' ? 'none' : ''
21290
21278
  }
21291
21279
  }, /*#__PURE__*/React.createElement("colgroup", null, config.rowLastData.map(function (row) {
@@ -21307,7 +21295,15 @@ var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
21307
21295
  colSpan: innerItem && innerItem.colSpan
21308
21296
  }, innerItem && innerItem.title);
21309
21297
  }));
21310
- })))), /*#__PURE__*/React.createElement("div", {
21298
+ }))), /*#__PURE__*/React.createElement("div", {
21299
+ style: {
21300
+ position: 'absolute',
21301
+ left: "".concat(config.colHeaderWidth, "px"),
21302
+ top: "".concat(config.colHeaderToTop, "px"),
21303
+ minWidth: rightAreaWidth,
21304
+ zIndex: 0
21305
+ }
21306
+ }, /*#__PURE__*/React.createElement("div", {
21311
21307
  style: {
21312
21308
  width: '100%',
21313
21309
  position: 'relative'
package/dist/index.js CHANGED
@@ -14993,7 +14993,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
14993
14993
  fixed: true
14994
14994
  }, /*#__PURE__*/React__default['default'].createElement(antd.Table.Summary.Row, null, _toConsumableArray(summaryRow).map(function (item, index) {
14995
14995
  return /*#__PURE__*/React__default['default'].createElement(antd.Table.Summary.Cell, {
14996
- index: rowSelection ? index : index - 1
14996
+ index: index
14997
14997
  }, /*#__PURE__*/React__default['default'].createElement(Text, {
14998
14998
  type: "danger"
14999
14999
  }, summaryInitial.filter(function (inner) {
@@ -15281,7 +15281,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
15281
15281
  fixed: true
15282
15282
  }, /*#__PURE__*/React__default['default'].createElement(antd.Table.Summary.Row, null, _toConsumableArray(summaryRow).map(function (item, index) {
15283
15283
  return /*#__PURE__*/React__default['default'].createElement(antd.Table.Summary.Cell, {
15284
- index: rowSelection ? index : index - 1
15284
+ index: index
15285
15285
  }, /*#__PURE__*/React__default['default'].createElement(Text$1, {
15286
15286
  type: "danger"
15287
15287
  }, summaryInitial.filter(function (inner) {
@@ -21281,25 +21281,13 @@ var index$7 = /*#__PURE__*/React.forwardRef(function (props, ref) {
21281
21281
  colSpan: innerItem && innerItem.rowSpan
21282
21282
  }, innerItem && innerItem.title);
21283
21283
  }));
21284
- }))), /*#__PURE__*/React__default['default'].createElement("div", {
21285
- style: {
21286
- position: 'absolute',
21287
- left: "".concat(config.colHeaderWidth, "px"),
21288
- minWidth: rightAreaWidth,
21289
- zIndex: 0,
21290
- top: 0
21291
- }
21292
- }, /*#__PURE__*/React__default['default'].createElement("div", {
21293
- style: {
21294
- position: 'relative'
21295
- }
21296
- }, /*#__PURE__*/React__default['default'].createElement("table", {
21284
+ }))), /*#__PURE__*/React__default['default'].createElement("table", {
21297
21285
  className: " ".concat('editTable__block', " ", 'table_border_style'),
21298
21286
  style: {
21299
21287
  width: '100%',
21300
21288
  top: 0,
21301
21289
  left: "".concat(config.colHeaderWidth, "px"),
21302
- position: 'sticky',
21290
+ position: 'absolute',
21303
21291
  display: config.tableType === 'col-header-table' ? 'none' : ''
21304
21292
  }
21305
21293
  }, /*#__PURE__*/React__default['default'].createElement("colgroup", null, config.rowLastData.map(function (row) {
@@ -21321,7 +21309,15 @@ var index$7 = /*#__PURE__*/React.forwardRef(function (props, ref) {
21321
21309
  colSpan: innerItem && innerItem.colSpan
21322
21310
  }, innerItem && innerItem.title);
21323
21311
  }));
21324
- })))), /*#__PURE__*/React__default['default'].createElement("div", {
21312
+ }))), /*#__PURE__*/React__default['default'].createElement("div", {
21313
+ style: {
21314
+ position: 'absolute',
21315
+ left: "".concat(config.colHeaderWidth, "px"),
21316
+ top: "".concat(config.colHeaderToTop, "px"),
21317
+ minWidth: rightAreaWidth,
21318
+ zIndex: 0
21319
+ }
21320
+ }, /*#__PURE__*/React__default['default'].createElement("div", {
21325
21321
  style: {
21326
21322
  width: '100%',
21327
21323
  position: 'relative'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bit-sun/business-component",
3
- "version": "2.1.13",
3
+ "version": "2.1.14",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -77,7 +77,7 @@ export default class ColumnSettingTable extends React.Component {
77
77
  {
78
78
  [...summaryRow].map((item: any, index: number) => {
79
79
  return (
80
- <Table.Summary.Cell index={rowSelection ? index : index - 1}>
80
+ <Table.Summary.Cell index={index}>
81
81
  <Text type="danger">
82
82
  {
83
83
  summaryInitial.filter((inner: any) => inner.key === item.dataIndex || inner.key === item.key).length ?
@@ -83,7 +83,7 @@ export default class ColumnSettingSulaTable extends React.Component {
83
83
  {
84
84
  [...summaryRow].map((item: any, index: number) => {
85
85
  return (
86
- <Table.Summary.Cell index={rowSelection ? index : index - 1}>
86
+ <Table.Summary.Cell index={index}>
87
87
  <Text type="danger">
88
88
  {
89
89
  summaryInitial.filter((inner: any) => inner.key === item.dataIndex || inner.key === item.key).length ?
@@ -163,67 +163,67 @@ export default forwardRef((props, ref) => {
163
163
  })}
164
164
  </tbody>
165
165
  </table>
166
-
166
+ <table
167
+ className={` ${'editTable__block'} ${'table_border_style'}`}
168
+ style={{
169
+ width: '100%',
170
+ top: 0,
171
+ left: `${config.colHeaderWidth}px`,
172
+ position: 'absolute',
173
+ display: config.tableType === 'col-header-table' ? 'none' : ''
174
+ }}
175
+ >
176
+ <colgroup>
177
+ {
178
+ config.rowLastData.map(row => {
179
+ return (<col width={row.width ? `${row.width}px` : '100px'} />)
180
+ })
181
+ }
182
+ </colgroup>
183
+ <tbody>
184
+ {
185
+ config.rowHeader.map((item) => {
186
+ return (
187
+ <tr>
188
+ {
189
+ item.map((innerItem) => {
190
+ if (!innerItem) return null;
191
+ return (
192
+ <td
193
+ style={{
194
+ height: '40px',
195
+ background: '#f7f8fb',
196
+ color: '#000000',
197
+ fontWeight: 500,
198
+ width: innerItem.width ? `${innerItem.width}px` : '100px',
199
+ }}
200
+ rowSpan={innerItem && innerItem.rowSpan}
201
+ colSpan={innerItem && innerItem.colSpan}
202
+ >
203
+ {innerItem && innerItem.title}
204
+ </td>
205
+ )
206
+ })
207
+ }
208
+ </tr>
209
+ )
210
+ })
211
+ }
212
+ </tbody>
213
+ </table>
167
214
  <div
168
215
  style={{
169
216
  position: 'absolute',
170
217
  left: `${config.colHeaderWidth}px`,
218
+ top: `${config.colHeaderToTop}px`,
171
219
  minWidth: rightAreaWidth,
172
220
  zIndex: 0,
173
- top: 0
174
221
  }}
175
222
  >
176
223
  {/* --------------------------------------横向表头---------------------------------------- */}
177
- <div style={{position: 'relative'}}>
178
- <table
179
- className={` ${'editTable__block'} ${'table_border_style'}`}
180
- style={{
181
- width: '100%',
182
- top: 0,
183
- left: `${config.colHeaderWidth}px`,
184
- position: 'sticky',
185
- display: config.tableType === 'col-header-table' ? 'none' : ''
186
- }}
187
- >
188
- <colgroup>
189
- {
190
- config.rowLastData.map(row => {
191
- return (<col width={row.width ? `${row.width}px` : '100px'} />)
192
- })
193
- }
194
- </colgroup>
195
- <tbody>
196
- {
197
- config.rowHeader.map((item) => {
198
- return (
199
- <tr>
200
- {
201
- item.map((innerItem) => {
202
- if (!innerItem) return null;
203
- return (
204
- <td
205
- style={{
206
- height: '40px',
207
- background: '#f7f8fb',
208
- color: '#000000',
209
- fontWeight: 500,
210
- width: innerItem.width ? `${innerItem.width}px` : '100px',
211
- }}
212
- rowSpan={innerItem && innerItem.rowSpan}
213
- colSpan={innerItem && innerItem.colSpan}
214
- >
215
- {innerItem && innerItem.title}
216
- </td>
217
- )
218
- })
219
- }
220
- </tr>
221
- )
222
- })
223
- }
224
- </tbody>
225
- </table>
226
- </div>
224
+ {/* <div style={{position: 'relative'}}>
225
+
226
+ </div> */}
227
227
  <div
228
228
  style={{
229
229
  width: '100%',