@bit-sun/business-component 3.1.8 → 3.1.9-alpha.0

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
@@ -31,9 +31,88 @@ import { parse as parse$1 } from '@babel/parser';
31
31
  import { visit } from 'ast-types';
32
32
  import isArray$1 from 'lodash/isArray';
33
33
 
34
+ function _arrayLikeToArray(r, a) {
35
+ (null == a || a > r.length) && (a = r.length);
36
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
37
+ return n;
38
+ }
39
+ function _arrayWithHoles(r) {
40
+ if (Array.isArray(r)) return r;
41
+ }
42
+ function _arrayWithoutHoles(r) {
43
+ if (Array.isArray(r)) return _arrayLikeToArray(r);
44
+ }
45
+ function _assertThisInitialized(e) {
46
+ if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
47
+ return e;
48
+ }
49
+ function asyncGeneratorStep(n, t, e, r, o, a, c) {
50
+ try {
51
+ var i = n[a](c),
52
+ u = i.value;
53
+ } catch (n) {
54
+ return void e(n);
55
+ }
56
+ i.done ? t(u) : Promise.resolve(u).then(r, o);
57
+ }
58
+ function _asyncToGenerator(n) {
59
+ return function () {
60
+ var t = this,
61
+ e = arguments;
62
+ return new Promise(function (r, o) {
63
+ var a = n.apply(t, e);
64
+ function _next(n) {
65
+ asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
66
+ }
67
+ function _throw(n) {
68
+ asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
69
+ }
70
+ _next(void 0);
71
+ });
72
+ };
73
+ }
34
74
  function _callSuper(t, o, e) {
35
75
  return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
36
76
  }
77
+ function _classCallCheck(a, n) {
78
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
79
+ }
80
+ function _defineProperties(e, r) {
81
+ for (var t = 0; t < r.length; t++) {
82
+ var o = r[t];
83
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
84
+ }
85
+ }
86
+ function _createClass(e, r, t) {
87
+ return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
88
+ writable: !1
89
+ }), e;
90
+ }
91
+ function _defineProperty(e, r, t) {
92
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
93
+ value: t,
94
+ enumerable: !0,
95
+ configurable: !0,
96
+ writable: !0
97
+ }) : e[r] = t, e;
98
+ }
99
+ function _getPrototypeOf(t) {
100
+ return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
101
+ return t.__proto__ || Object.getPrototypeOf(t);
102
+ }, _getPrototypeOf(t);
103
+ }
104
+ function _inherits(t, e) {
105
+ if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
106
+ t.prototype = Object.create(e && e.prototype, {
107
+ constructor: {
108
+ value: t,
109
+ writable: !0,
110
+ configurable: !0
111
+ }
112
+ }), Object.defineProperty(t, "prototype", {
113
+ writable: !1
114
+ }), e && _setPrototypeOf(t, e);
115
+ }
37
116
  function _isNativeReflectConstruct() {
38
117
  try {
39
118
  var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
@@ -42,6 +121,9 @@ function _isNativeReflectConstruct() {
42
121
  return !!t;
43
122
  })();
44
123
  }
124
+ function _iterableToArray(r) {
125
+ if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
126
+ }
45
127
  function _iterableToArrayLimit(r, l) {
46
128
  var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
47
129
  if (null != t) {
@@ -69,6 +151,15 @@ function _iterableToArrayLimit(r, l) {
69
151
  return a;
70
152
  }
71
153
  }
154
+ function _nonIterableRest() {
155
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
156
+ }
157
+ function _nonIterableSpread() {
158
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
159
+ }
160
+ function _objectDestructuringEmpty(t) {
161
+ if (null == t) throw new TypeError("Cannot destructure " + t);
162
+ }
72
163
  function ownKeys(e, r) {
73
164
  var t = Object.keys(e);
74
165
  if (Object.getOwnPropertySymbols) {
@@ -90,6 +181,31 @@ function _objectSpread2(e) {
90
181
  }
91
182
  return e;
92
183
  }
184
+ function _objectWithoutProperties(e, t) {
185
+ if (null == e) return {};
186
+ var o,
187
+ r,
188
+ i = _objectWithoutPropertiesLoose(e, t);
189
+ if (Object.getOwnPropertySymbols) {
190
+ var s = Object.getOwnPropertySymbols(e);
191
+ for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
192
+ }
193
+ return i;
194
+ }
195
+ function _objectWithoutPropertiesLoose(r, e) {
196
+ if (null == r) return {};
197
+ var t = {};
198
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
199
+ if (e.includes(n)) continue;
200
+ t[n] = r[n];
201
+ }
202
+ return t;
203
+ }
204
+ function _possibleConstructorReturn(t, e) {
205
+ if (e && ("object" == typeof e || "function" == typeof e)) return e;
206
+ if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
207
+ return _assertThisInitialized(t);
208
+ }
93
209
  function _regeneratorRuntime() {
94
210
  _regeneratorRuntime = function () {
95
211
  return e;
@@ -391,6 +507,20 @@ function _regeneratorRuntime() {
391
507
  }
392
508
  }, e;
393
509
  }
510
+ function _setPrototypeOf(t, e) {
511
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
512
+ return t.__proto__ = e, t;
513
+ }, _setPrototypeOf(t, e);
514
+ }
515
+ function _slicedToArray(r, e) {
516
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
517
+ }
518
+ function _toArray(r) {
519
+ return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest();
520
+ }
521
+ function _toConsumableArray(r) {
522
+ return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
523
+ }
394
524
  function _toPrimitive(t, r) {
395
525
  if ("object" != typeof t || !t) return t;
396
526
  var e = t[Symbol.toPrimitive];
@@ -414,180 +544,12 @@ function _typeof(o) {
414
544
  return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
415
545
  }, _typeof(o);
416
546
  }
417
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
418
- try {
419
- var info = gen[key](arg);
420
- var value = info.value;
421
- } catch (error) {
422
- reject(error);
423
- return;
424
- }
425
- if (info.done) {
426
- resolve(value);
427
- } else {
428
- Promise.resolve(value).then(_next, _throw);
429
- }
430
- }
431
- function _asyncToGenerator(fn) {
432
- return function () {
433
- var self = this,
434
- args = arguments;
435
- return new Promise(function (resolve, reject) {
436
- var gen = fn.apply(self, args);
437
- function _next(value) {
438
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
439
- }
440
- function _throw(err) {
441
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
442
- }
443
- _next(undefined);
444
- });
445
- };
446
- }
447
- function _classCallCheck(instance, Constructor) {
448
- if (!(instance instanceof Constructor)) {
449
- throw new TypeError("Cannot call a class as a function");
450
- }
451
- }
452
- function _defineProperties(target, props) {
453
- for (var i = 0; i < props.length; i++) {
454
- var descriptor = props[i];
455
- descriptor.enumerable = descriptor.enumerable || false;
456
- descriptor.configurable = true;
457
- if ("value" in descriptor) descriptor.writable = true;
458
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
459
- }
460
- }
461
- function _createClass(Constructor, protoProps, staticProps) {
462
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
463
- if (staticProps) _defineProperties(Constructor, staticProps);
464
- Object.defineProperty(Constructor, "prototype", {
465
- writable: false
466
- });
467
- return Constructor;
468
- }
469
- function _defineProperty(obj, key, value) {
470
- key = _toPropertyKey(key);
471
- if (key in obj) {
472
- Object.defineProperty(obj, key, {
473
- value: value,
474
- enumerable: true,
475
- configurable: true,
476
- writable: true
477
- });
478
- } else {
479
- obj[key] = value;
480
- }
481
- return obj;
482
- }
483
- function _inherits(subClass, superClass) {
484
- if (typeof superClass !== "function" && superClass !== null) {
485
- throw new TypeError("Super expression must either be null or a function");
486
- }
487
- subClass.prototype = Object.create(superClass && superClass.prototype, {
488
- constructor: {
489
- value: subClass,
490
- writable: true,
491
- configurable: true
492
- }
493
- });
494
- Object.defineProperty(subClass, "prototype", {
495
- writable: false
496
- });
497
- if (superClass) _setPrototypeOf(subClass, superClass);
498
- }
499
- function _getPrototypeOf(o) {
500
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
501
- return o.__proto__ || Object.getPrototypeOf(o);
502
- };
503
- return _getPrototypeOf(o);
504
- }
505
- function _setPrototypeOf(o, p) {
506
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
507
- o.__proto__ = p;
508
- return o;
509
- };
510
- return _setPrototypeOf(o, p);
511
- }
512
- function _objectDestructuringEmpty(obj) {
513
- if (obj == null) throw new TypeError("Cannot destructure " + obj);
514
- }
515
- function _objectWithoutPropertiesLoose(source, excluded) {
516
- if (source == null) return {};
517
- var target = {};
518
- for (var key in source) {
519
- if (Object.prototype.hasOwnProperty.call(source, key)) {
520
- if (excluded.indexOf(key) >= 0) continue;
521
- target[key] = source[key];
522
- }
547
+ function _unsupportedIterableToArray(r, a) {
548
+ if (r) {
549
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
550
+ var t = {}.toString.call(r).slice(8, -1);
551
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
523
552
  }
524
- return target;
525
- }
526
- function _objectWithoutProperties(source, excluded) {
527
- if (source == null) return {};
528
- var target = _objectWithoutPropertiesLoose(source, excluded);
529
- var key, i;
530
- if (Object.getOwnPropertySymbols) {
531
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
532
- for (i = 0; i < sourceSymbolKeys.length; i++) {
533
- key = sourceSymbolKeys[i];
534
- if (excluded.indexOf(key) >= 0) continue;
535
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
536
- target[key] = source[key];
537
- }
538
- }
539
- return target;
540
- }
541
- function _assertThisInitialized(self) {
542
- if (self === void 0) {
543
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
544
- }
545
- return self;
546
- }
547
- function _possibleConstructorReturn(self, call) {
548
- if (call && (typeof call === "object" || typeof call === "function")) {
549
- return call;
550
- } else if (call !== void 0) {
551
- throw new TypeError("Derived constructors may only return object or undefined");
552
- }
553
- return _assertThisInitialized(self);
554
- }
555
- function _slicedToArray(arr, i) {
556
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
557
- }
558
- function _toArray(arr) {
559
- return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();
560
- }
561
- function _toConsumableArray(arr) {
562
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
563
- }
564
- function _arrayWithoutHoles(arr) {
565
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
566
- }
567
- function _arrayWithHoles(arr) {
568
- if (Array.isArray(arr)) return arr;
569
- }
570
- function _iterableToArray(iter) {
571
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
572
- }
573
- function _unsupportedIterableToArray(o, minLen) {
574
- if (!o) return;
575
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
576
- var n = Object.prototype.toString.call(o).slice(8, -1);
577
- if (n === "Object" && o.constructor) n = o.constructor.name;
578
- if (n === "Map" || n === "Set") return Array.from(o);
579
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
580
- }
581
- function _arrayLikeToArray(arr, len) {
582
- if (len == null || len > arr.length) len = arr.length;
583
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
584
- return arr2;
585
- }
586
- function _nonIterableSpread() {
587
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
588
- }
589
- function _nonIterableRest() {
590
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
591
553
  }
592
554
 
593
555
  var ENUM = {
@@ -15860,7 +15822,7 @@ var BsSulaQueryTable = (function (props) {
15860
15822
  };
15861
15823
  // 处理 table 基本参数
15862
15824
  var setTableProps = function setTableProps() {
15863
- var _tableProps, _tableProps$initialPa, _tableProps2, _tableProps2$initialP;
15825
+ var _tableProps, _tableProps$initialPa, _tableProps2, _tableProps3, _tableProps3$initialP;
15864
15826
  var tableProps = value.tableProps || {};
15865
15827
  tableProps = _objectSpread2(_objectSpread2({}, tableProps), {}, {
15866
15828
  size: value.size || 'middle',
@@ -15888,14 +15850,14 @@ var BsSulaQueryTable = (function (props) {
15888
15850
  rowClassName: function rowClassName(record, index) {
15889
15851
  return index % 2 === 0 ? 'table_base' : 'table_odd';
15890
15852
  },
15891
- components: {
15853
+ components: _objectSpread2({
15892
15854
  header: {
15893
15855
  cell: ResizeableTitle$2
15894
15856
  }
15895
- }
15857
+ }, (_tableProps2 = tableProps) === null || _tableProps2 === void 0 ? void 0 : _tableProps2.components)
15896
15858
  });
15897
15859
  // @ts-ignore
15898
- if ((_tableProps2 = tableProps) === null || _tableProps2 === void 0 ? void 0 : (_tableProps2$initialP = _tableProps2.initialPaging) === null || _tableProps2$initialP === void 0 ? void 0 : _tableProps2$initialP.pagination) {
15860
+ if ((_tableProps3 = tableProps) === null || _tableProps3 === void 0 ? void 0 : (_tableProps3$initialP = _tableProps3.initialPaging) === null || _tableProps3$initialP === void 0 ? void 0 : _tableProps3$initialP.pagination) {
15899
15861
  // @ts-ignore
15900
15862
  tableProps.initialPaging.pagination.showSizeChanger = true;
15901
15863
  }
package/dist/index.js CHANGED
@@ -54,9 +54,88 @@ var serialize__default = /*#__PURE__*/_interopDefaultLegacy(serialize);
54
54
  var castArray__default = /*#__PURE__*/_interopDefaultLegacy(castArray);
55
55
  var isArray__default = /*#__PURE__*/_interopDefaultLegacy(isArray$1);
56
56
 
57
+ function _arrayLikeToArray(r, a) {
58
+ (null == a || a > r.length) && (a = r.length);
59
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
60
+ return n;
61
+ }
62
+ function _arrayWithHoles(r) {
63
+ if (Array.isArray(r)) return r;
64
+ }
65
+ function _arrayWithoutHoles(r) {
66
+ if (Array.isArray(r)) return _arrayLikeToArray(r);
67
+ }
68
+ function _assertThisInitialized(e) {
69
+ if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
70
+ return e;
71
+ }
72
+ function asyncGeneratorStep(n, t, e, r, o, a, c) {
73
+ try {
74
+ var i = n[a](c),
75
+ u = i.value;
76
+ } catch (n) {
77
+ return void e(n);
78
+ }
79
+ i.done ? t(u) : Promise.resolve(u).then(r, o);
80
+ }
81
+ function _asyncToGenerator(n) {
82
+ return function () {
83
+ var t = this,
84
+ e = arguments;
85
+ return new Promise(function (r, o) {
86
+ var a = n.apply(t, e);
87
+ function _next(n) {
88
+ asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
89
+ }
90
+ function _throw(n) {
91
+ asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
92
+ }
93
+ _next(void 0);
94
+ });
95
+ };
96
+ }
57
97
  function _callSuper(t, o, e) {
58
98
  return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
59
99
  }
100
+ function _classCallCheck(a, n) {
101
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
102
+ }
103
+ function _defineProperties(e, r) {
104
+ for (var t = 0; t < r.length; t++) {
105
+ var o = r[t];
106
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
107
+ }
108
+ }
109
+ function _createClass(e, r, t) {
110
+ return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
111
+ writable: !1
112
+ }), e;
113
+ }
114
+ function _defineProperty(e, r, t) {
115
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
116
+ value: t,
117
+ enumerable: !0,
118
+ configurable: !0,
119
+ writable: !0
120
+ }) : e[r] = t, e;
121
+ }
122
+ function _getPrototypeOf(t) {
123
+ return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
124
+ return t.__proto__ || Object.getPrototypeOf(t);
125
+ }, _getPrototypeOf(t);
126
+ }
127
+ function _inherits(t, e) {
128
+ if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
129
+ t.prototype = Object.create(e && e.prototype, {
130
+ constructor: {
131
+ value: t,
132
+ writable: !0,
133
+ configurable: !0
134
+ }
135
+ }), Object.defineProperty(t, "prototype", {
136
+ writable: !1
137
+ }), e && _setPrototypeOf(t, e);
138
+ }
60
139
  function _isNativeReflectConstruct() {
61
140
  try {
62
141
  var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
@@ -65,6 +144,9 @@ function _isNativeReflectConstruct() {
65
144
  return !!t;
66
145
  })();
67
146
  }
147
+ function _iterableToArray(r) {
148
+ if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
149
+ }
68
150
  function _iterableToArrayLimit(r, l) {
69
151
  var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
70
152
  if (null != t) {
@@ -92,6 +174,15 @@ function _iterableToArrayLimit(r, l) {
92
174
  return a;
93
175
  }
94
176
  }
177
+ function _nonIterableRest() {
178
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
179
+ }
180
+ function _nonIterableSpread() {
181
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
182
+ }
183
+ function _objectDestructuringEmpty(t) {
184
+ if (null == t) throw new TypeError("Cannot destructure " + t);
185
+ }
95
186
  function ownKeys(e, r) {
96
187
  var t = Object.keys(e);
97
188
  if (Object.getOwnPropertySymbols) {
@@ -113,6 +204,31 @@ function _objectSpread2(e) {
113
204
  }
114
205
  return e;
115
206
  }
207
+ function _objectWithoutProperties(e, t) {
208
+ if (null == e) return {};
209
+ var o,
210
+ r,
211
+ i = _objectWithoutPropertiesLoose(e, t);
212
+ if (Object.getOwnPropertySymbols) {
213
+ var s = Object.getOwnPropertySymbols(e);
214
+ for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
215
+ }
216
+ return i;
217
+ }
218
+ function _objectWithoutPropertiesLoose(r, e) {
219
+ if (null == r) return {};
220
+ var t = {};
221
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
222
+ if (e.includes(n)) continue;
223
+ t[n] = r[n];
224
+ }
225
+ return t;
226
+ }
227
+ function _possibleConstructorReturn(t, e) {
228
+ if (e && ("object" == typeof e || "function" == typeof e)) return e;
229
+ if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
230
+ return _assertThisInitialized(t);
231
+ }
116
232
  function _regeneratorRuntime() {
117
233
  _regeneratorRuntime = function () {
118
234
  return e;
@@ -414,6 +530,20 @@ function _regeneratorRuntime() {
414
530
  }
415
531
  }, e;
416
532
  }
533
+ function _setPrototypeOf(t, e) {
534
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
535
+ return t.__proto__ = e, t;
536
+ }, _setPrototypeOf(t, e);
537
+ }
538
+ function _slicedToArray(r, e) {
539
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
540
+ }
541
+ function _toArray(r) {
542
+ return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest();
543
+ }
544
+ function _toConsumableArray(r) {
545
+ return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
546
+ }
417
547
  function _toPrimitive(t, r) {
418
548
  if ("object" != typeof t || !t) return t;
419
549
  var e = t[Symbol.toPrimitive];
@@ -437,180 +567,12 @@ function _typeof(o) {
437
567
  return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
438
568
  }, _typeof(o);
439
569
  }
440
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
441
- try {
442
- var info = gen[key](arg);
443
- var value = info.value;
444
- } catch (error) {
445
- reject(error);
446
- return;
447
- }
448
- if (info.done) {
449
- resolve(value);
450
- } else {
451
- Promise.resolve(value).then(_next, _throw);
452
- }
453
- }
454
- function _asyncToGenerator(fn) {
455
- return function () {
456
- var self = this,
457
- args = arguments;
458
- return new Promise(function (resolve, reject) {
459
- var gen = fn.apply(self, args);
460
- function _next(value) {
461
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
462
- }
463
- function _throw(err) {
464
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
465
- }
466
- _next(undefined);
467
- });
468
- };
469
- }
470
- function _classCallCheck(instance, Constructor) {
471
- if (!(instance instanceof Constructor)) {
472
- throw new TypeError("Cannot call a class as a function");
473
- }
474
- }
475
- function _defineProperties(target, props) {
476
- for (var i = 0; i < props.length; i++) {
477
- var descriptor = props[i];
478
- descriptor.enumerable = descriptor.enumerable || false;
479
- descriptor.configurable = true;
480
- if ("value" in descriptor) descriptor.writable = true;
481
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
482
- }
483
- }
484
- function _createClass(Constructor, protoProps, staticProps) {
485
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
486
- if (staticProps) _defineProperties(Constructor, staticProps);
487
- Object.defineProperty(Constructor, "prototype", {
488
- writable: false
489
- });
490
- return Constructor;
491
- }
492
- function _defineProperty(obj, key, value) {
493
- key = _toPropertyKey(key);
494
- if (key in obj) {
495
- Object.defineProperty(obj, key, {
496
- value: value,
497
- enumerable: true,
498
- configurable: true,
499
- writable: true
500
- });
501
- } else {
502
- obj[key] = value;
503
- }
504
- return obj;
505
- }
506
- function _inherits(subClass, superClass) {
507
- if (typeof superClass !== "function" && superClass !== null) {
508
- throw new TypeError("Super expression must either be null or a function");
509
- }
510
- subClass.prototype = Object.create(superClass && superClass.prototype, {
511
- constructor: {
512
- value: subClass,
513
- writable: true,
514
- configurable: true
515
- }
516
- });
517
- Object.defineProperty(subClass, "prototype", {
518
- writable: false
519
- });
520
- if (superClass) _setPrototypeOf(subClass, superClass);
521
- }
522
- function _getPrototypeOf(o) {
523
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
524
- return o.__proto__ || Object.getPrototypeOf(o);
525
- };
526
- return _getPrototypeOf(o);
527
- }
528
- function _setPrototypeOf(o, p) {
529
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
530
- o.__proto__ = p;
531
- return o;
532
- };
533
- return _setPrototypeOf(o, p);
534
- }
535
- function _objectDestructuringEmpty(obj) {
536
- if (obj == null) throw new TypeError("Cannot destructure " + obj);
537
- }
538
- function _objectWithoutPropertiesLoose(source, excluded) {
539
- if (source == null) return {};
540
- var target = {};
541
- for (var key in source) {
542
- if (Object.prototype.hasOwnProperty.call(source, key)) {
543
- if (excluded.indexOf(key) >= 0) continue;
544
- target[key] = source[key];
545
- }
570
+ function _unsupportedIterableToArray(r, a) {
571
+ if (r) {
572
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
573
+ var t = {}.toString.call(r).slice(8, -1);
574
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
546
575
  }
547
- return target;
548
- }
549
- function _objectWithoutProperties(source, excluded) {
550
- if (source == null) return {};
551
- var target = _objectWithoutPropertiesLoose(source, excluded);
552
- var key, i;
553
- if (Object.getOwnPropertySymbols) {
554
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
555
- for (i = 0; i < sourceSymbolKeys.length; i++) {
556
- key = sourceSymbolKeys[i];
557
- if (excluded.indexOf(key) >= 0) continue;
558
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
559
- target[key] = source[key];
560
- }
561
- }
562
- return target;
563
- }
564
- function _assertThisInitialized(self) {
565
- if (self === void 0) {
566
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
567
- }
568
- return self;
569
- }
570
- function _possibleConstructorReturn(self, call) {
571
- if (call && (typeof call === "object" || typeof call === "function")) {
572
- return call;
573
- } else if (call !== void 0) {
574
- throw new TypeError("Derived constructors may only return object or undefined");
575
- }
576
- return _assertThisInitialized(self);
577
- }
578
- function _slicedToArray(arr, i) {
579
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
580
- }
581
- function _toArray(arr) {
582
- return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();
583
- }
584
- function _toConsumableArray(arr) {
585
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
586
- }
587
- function _arrayWithoutHoles(arr) {
588
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
589
- }
590
- function _arrayWithHoles(arr) {
591
- if (Array.isArray(arr)) return arr;
592
- }
593
- function _iterableToArray(iter) {
594
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
595
- }
596
- function _unsupportedIterableToArray(o, minLen) {
597
- if (!o) return;
598
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
599
- var n = Object.prototype.toString.call(o).slice(8, -1);
600
- if (n === "Object" && o.constructor) n = o.constructor.name;
601
- if (n === "Map" || n === "Set") return Array.from(o);
602
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
603
- }
604
- function _arrayLikeToArray(arr, len) {
605
- if (len == null || len > arr.length) len = arr.length;
606
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
607
- return arr2;
608
- }
609
- function _nonIterableSpread() {
610
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
611
- }
612
- function _nonIterableRest() {
613
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
614
576
  }
615
577
 
616
578
  var ENUM = {
@@ -15883,7 +15845,7 @@ var BsSulaQueryTable = (function (props) {
15883
15845
  };
15884
15846
  // 处理 table 基本参数
15885
15847
  var setTableProps = function setTableProps() {
15886
- var _tableProps, _tableProps$initialPa, _tableProps2, _tableProps2$initialP;
15848
+ var _tableProps, _tableProps$initialPa, _tableProps2, _tableProps3, _tableProps3$initialP;
15887
15849
  var tableProps = value.tableProps || {};
15888
15850
  tableProps = _objectSpread2(_objectSpread2({}, tableProps), {}, {
15889
15851
  size: value.size || 'middle',
@@ -15911,14 +15873,14 @@ var BsSulaQueryTable = (function (props) {
15911
15873
  rowClassName: function rowClassName(record, index) {
15912
15874
  return index % 2 === 0 ? 'table_base' : 'table_odd';
15913
15875
  },
15914
- components: {
15876
+ components: _objectSpread2({
15915
15877
  header: {
15916
15878
  cell: ResizeableTitle$2
15917
15879
  }
15918
- }
15880
+ }, (_tableProps2 = tableProps) === null || _tableProps2 === void 0 ? void 0 : _tableProps2.components)
15919
15881
  });
15920
15882
  // @ts-ignore
15921
- if ((_tableProps2 = tableProps) === null || _tableProps2 === void 0 ? void 0 : (_tableProps2$initialP = _tableProps2.initialPaging) === null || _tableProps2$initialP === void 0 ? void 0 : _tableProps2$initialP.pagination) {
15883
+ if ((_tableProps3 = tableProps) === null || _tableProps3 === void 0 ? void 0 : (_tableProps3$initialP = _tableProps3.initialPaging) === null || _tableProps3$initialP === void 0 ? void 0 : _tableProps3$initialP.pagination) {
15922
15884
  // @ts-ignore
15923
15885
  tableProps.initialPaging.pagination.showSizeChanger = true;
15924
15886
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bit-sun/business-component",
3
- "version": "3.1.8",
3
+ "version": "3.1.9-alpha.0",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -411,6 +411,7 @@ const getSettingFieldOrColumn = (savedConfig, originConfig, type: string) => {
411
411
  header: {
412
412
  cell: ResizeableTitle,
413
413
  },
414
+ ...tableProps?.components,
414
415
  },
415
416
  };
416
417