@bit-sun/business-component 3.1.2 → 3.1.3
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
|
@@ -30,9 +30,88 @@ import { parse as parse$1 } from '@babel/parser';
|
|
|
30
30
|
import { visit } from 'ast-types';
|
|
31
31
|
import isArray$1 from 'lodash/isArray';
|
|
32
32
|
|
|
33
|
+
function _arrayLikeToArray(r, a) {
|
|
34
|
+
(null == a || a > r.length) && (a = r.length);
|
|
35
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
36
|
+
return n;
|
|
37
|
+
}
|
|
38
|
+
function _arrayWithHoles(r) {
|
|
39
|
+
if (Array.isArray(r)) return r;
|
|
40
|
+
}
|
|
41
|
+
function _arrayWithoutHoles(r) {
|
|
42
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
43
|
+
}
|
|
44
|
+
function _assertThisInitialized(e) {
|
|
45
|
+
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
46
|
+
return e;
|
|
47
|
+
}
|
|
48
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
49
|
+
try {
|
|
50
|
+
var i = n[a](c),
|
|
51
|
+
u = i.value;
|
|
52
|
+
} catch (n) {
|
|
53
|
+
return void e(n);
|
|
54
|
+
}
|
|
55
|
+
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
|
56
|
+
}
|
|
57
|
+
function _asyncToGenerator(n) {
|
|
58
|
+
return function () {
|
|
59
|
+
var t = this,
|
|
60
|
+
e = arguments;
|
|
61
|
+
return new Promise(function (r, o) {
|
|
62
|
+
var a = n.apply(t, e);
|
|
63
|
+
function _next(n) {
|
|
64
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
|
|
65
|
+
}
|
|
66
|
+
function _throw(n) {
|
|
67
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
|
68
|
+
}
|
|
69
|
+
_next(void 0);
|
|
70
|
+
});
|
|
71
|
+
};
|
|
72
|
+
}
|
|
33
73
|
function _callSuper(t, o, e) {
|
|
34
74
|
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
35
75
|
}
|
|
76
|
+
function _classCallCheck(a, n) {
|
|
77
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
78
|
+
}
|
|
79
|
+
function _defineProperties(e, r) {
|
|
80
|
+
for (var t = 0; t < r.length; t++) {
|
|
81
|
+
var o = r[t];
|
|
82
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
function _createClass(e, r, t) {
|
|
86
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
87
|
+
writable: !1
|
|
88
|
+
}), e;
|
|
89
|
+
}
|
|
90
|
+
function _defineProperty(e, r, t) {
|
|
91
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
92
|
+
value: t,
|
|
93
|
+
enumerable: !0,
|
|
94
|
+
configurable: !0,
|
|
95
|
+
writable: !0
|
|
96
|
+
}) : e[r] = t, e;
|
|
97
|
+
}
|
|
98
|
+
function _getPrototypeOf(t) {
|
|
99
|
+
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
|
100
|
+
return t.__proto__ || Object.getPrototypeOf(t);
|
|
101
|
+
}, _getPrototypeOf(t);
|
|
102
|
+
}
|
|
103
|
+
function _inherits(t, e) {
|
|
104
|
+
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
105
|
+
t.prototype = Object.create(e && e.prototype, {
|
|
106
|
+
constructor: {
|
|
107
|
+
value: t,
|
|
108
|
+
writable: !0,
|
|
109
|
+
configurable: !0
|
|
110
|
+
}
|
|
111
|
+
}), Object.defineProperty(t, "prototype", {
|
|
112
|
+
writable: !1
|
|
113
|
+
}), e && _setPrototypeOf(t, e);
|
|
114
|
+
}
|
|
36
115
|
function _isNativeReflectConstruct() {
|
|
37
116
|
try {
|
|
38
117
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
@@ -41,6 +120,9 @@ function _isNativeReflectConstruct() {
|
|
|
41
120
|
return !!t;
|
|
42
121
|
})();
|
|
43
122
|
}
|
|
123
|
+
function _iterableToArray(r) {
|
|
124
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
125
|
+
}
|
|
44
126
|
function _iterableToArrayLimit(r, l) {
|
|
45
127
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
46
128
|
if (null != t) {
|
|
@@ -68,6 +150,15 @@ function _iterableToArrayLimit(r, l) {
|
|
|
68
150
|
return a;
|
|
69
151
|
}
|
|
70
152
|
}
|
|
153
|
+
function _nonIterableRest() {
|
|
154
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
155
|
+
}
|
|
156
|
+
function _nonIterableSpread() {
|
|
157
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
158
|
+
}
|
|
159
|
+
function _objectDestructuringEmpty(t) {
|
|
160
|
+
if (null == t) throw new TypeError("Cannot destructure " + t);
|
|
161
|
+
}
|
|
71
162
|
function ownKeys(e, r) {
|
|
72
163
|
var t = Object.keys(e);
|
|
73
164
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -89,6 +180,31 @@ function _objectSpread2(e) {
|
|
|
89
180
|
}
|
|
90
181
|
return e;
|
|
91
182
|
}
|
|
183
|
+
function _objectWithoutProperties(e, t) {
|
|
184
|
+
if (null == e) return {};
|
|
185
|
+
var o,
|
|
186
|
+
r,
|
|
187
|
+
i = _objectWithoutPropertiesLoose(e, t);
|
|
188
|
+
if (Object.getOwnPropertySymbols) {
|
|
189
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
190
|
+
for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
191
|
+
}
|
|
192
|
+
return i;
|
|
193
|
+
}
|
|
194
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
195
|
+
if (null == r) return {};
|
|
196
|
+
var t = {};
|
|
197
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
198
|
+
if (e.indexOf(n) >= 0) continue;
|
|
199
|
+
t[n] = r[n];
|
|
200
|
+
}
|
|
201
|
+
return t;
|
|
202
|
+
}
|
|
203
|
+
function _possibleConstructorReturn(t, e) {
|
|
204
|
+
if (e && ("object" == typeof e || "function" == typeof e)) return e;
|
|
205
|
+
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
206
|
+
return _assertThisInitialized(t);
|
|
207
|
+
}
|
|
92
208
|
function _regeneratorRuntime() {
|
|
93
209
|
_regeneratorRuntime = function () {
|
|
94
210
|
return e;
|
|
@@ -390,6 +506,20 @@ function _regeneratorRuntime() {
|
|
|
390
506
|
}
|
|
391
507
|
}, e;
|
|
392
508
|
}
|
|
509
|
+
function _setPrototypeOf(t, e) {
|
|
510
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
511
|
+
return t.__proto__ = e, t;
|
|
512
|
+
}, _setPrototypeOf(t, e);
|
|
513
|
+
}
|
|
514
|
+
function _slicedToArray(r, e) {
|
|
515
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
516
|
+
}
|
|
517
|
+
function _toArray(r) {
|
|
518
|
+
return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest();
|
|
519
|
+
}
|
|
520
|
+
function _toConsumableArray(r) {
|
|
521
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
522
|
+
}
|
|
393
523
|
function _toPrimitive(t, r) {
|
|
394
524
|
if ("object" != typeof t || !t) return t;
|
|
395
525
|
var e = t[Symbol.toPrimitive];
|
|
@@ -413,180 +543,12 @@ function _typeof(o) {
|
|
|
413
543
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
414
544
|
}, _typeof(o);
|
|
415
545
|
}
|
|
416
|
-
function
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
var
|
|
420
|
-
|
|
421
|
-
reject(error);
|
|
422
|
-
return;
|
|
423
|
-
}
|
|
424
|
-
if (info.done) {
|
|
425
|
-
resolve(value);
|
|
426
|
-
} else {
|
|
427
|
-
Promise.resolve(value).then(_next, _throw);
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
function _asyncToGenerator(fn) {
|
|
431
|
-
return function () {
|
|
432
|
-
var self = this,
|
|
433
|
-
args = arguments;
|
|
434
|
-
return new Promise(function (resolve, reject) {
|
|
435
|
-
var gen = fn.apply(self, args);
|
|
436
|
-
function _next(value) {
|
|
437
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
438
|
-
}
|
|
439
|
-
function _throw(err) {
|
|
440
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
441
|
-
}
|
|
442
|
-
_next(undefined);
|
|
443
|
-
});
|
|
444
|
-
};
|
|
445
|
-
}
|
|
446
|
-
function _classCallCheck(instance, Constructor) {
|
|
447
|
-
if (!(instance instanceof Constructor)) {
|
|
448
|
-
throw new TypeError("Cannot call a class as a function");
|
|
449
|
-
}
|
|
450
|
-
}
|
|
451
|
-
function _defineProperties(target, props) {
|
|
452
|
-
for (var i = 0; i < props.length; i++) {
|
|
453
|
-
var descriptor = props[i];
|
|
454
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
455
|
-
descriptor.configurable = true;
|
|
456
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
457
|
-
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
461
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
462
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
463
|
-
Object.defineProperty(Constructor, "prototype", {
|
|
464
|
-
writable: false
|
|
465
|
-
});
|
|
466
|
-
return Constructor;
|
|
467
|
-
}
|
|
468
|
-
function _defineProperty(obj, key, value) {
|
|
469
|
-
key = _toPropertyKey(key);
|
|
470
|
-
if (key in obj) {
|
|
471
|
-
Object.defineProperty(obj, key, {
|
|
472
|
-
value: value,
|
|
473
|
-
enumerable: true,
|
|
474
|
-
configurable: true,
|
|
475
|
-
writable: true
|
|
476
|
-
});
|
|
477
|
-
} else {
|
|
478
|
-
obj[key] = value;
|
|
479
|
-
}
|
|
480
|
-
return obj;
|
|
481
|
-
}
|
|
482
|
-
function _inherits(subClass, superClass) {
|
|
483
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
484
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
485
|
-
}
|
|
486
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
487
|
-
constructor: {
|
|
488
|
-
value: subClass,
|
|
489
|
-
writable: true,
|
|
490
|
-
configurable: true
|
|
491
|
-
}
|
|
492
|
-
});
|
|
493
|
-
Object.defineProperty(subClass, "prototype", {
|
|
494
|
-
writable: false
|
|
495
|
-
});
|
|
496
|
-
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
497
|
-
}
|
|
498
|
-
function _getPrototypeOf(o) {
|
|
499
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
500
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
501
|
-
};
|
|
502
|
-
return _getPrototypeOf(o);
|
|
503
|
-
}
|
|
504
|
-
function _setPrototypeOf(o, p) {
|
|
505
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
506
|
-
o.__proto__ = p;
|
|
507
|
-
return o;
|
|
508
|
-
};
|
|
509
|
-
return _setPrototypeOf(o, p);
|
|
510
|
-
}
|
|
511
|
-
function _objectDestructuringEmpty(obj) {
|
|
512
|
-
if (obj == null) throw new TypeError("Cannot destructure " + obj);
|
|
513
|
-
}
|
|
514
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
515
|
-
if (source == null) return {};
|
|
516
|
-
var target = {};
|
|
517
|
-
for (var key in source) {
|
|
518
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
519
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
520
|
-
target[key] = source[key];
|
|
521
|
-
}
|
|
522
|
-
}
|
|
523
|
-
return target;
|
|
524
|
-
}
|
|
525
|
-
function _objectWithoutProperties(source, excluded) {
|
|
526
|
-
if (source == null) return {};
|
|
527
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
528
|
-
var key, i;
|
|
529
|
-
if (Object.getOwnPropertySymbols) {
|
|
530
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
531
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
532
|
-
key = sourceSymbolKeys[i];
|
|
533
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
534
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
535
|
-
target[key] = source[key];
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
return target;
|
|
539
|
-
}
|
|
540
|
-
function _assertThisInitialized(self) {
|
|
541
|
-
if (self === void 0) {
|
|
542
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
546
|
+
function _unsupportedIterableToArray(r, a) {
|
|
547
|
+
if (r) {
|
|
548
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
549
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
550
|
+
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;
|
|
543
551
|
}
|
|
544
|
-
return self;
|
|
545
|
-
}
|
|
546
|
-
function _possibleConstructorReturn(self, call) {
|
|
547
|
-
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
548
|
-
return call;
|
|
549
|
-
} else if (call !== void 0) {
|
|
550
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
551
|
-
}
|
|
552
|
-
return _assertThisInitialized(self);
|
|
553
|
-
}
|
|
554
|
-
function _slicedToArray(arr, i) {
|
|
555
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
556
|
-
}
|
|
557
|
-
function _toArray(arr) {
|
|
558
|
-
return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();
|
|
559
|
-
}
|
|
560
|
-
function _toConsumableArray(arr) {
|
|
561
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
562
|
-
}
|
|
563
|
-
function _arrayWithoutHoles(arr) {
|
|
564
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
565
|
-
}
|
|
566
|
-
function _arrayWithHoles(arr) {
|
|
567
|
-
if (Array.isArray(arr)) return arr;
|
|
568
|
-
}
|
|
569
|
-
function _iterableToArray(iter) {
|
|
570
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
571
|
-
}
|
|
572
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
573
|
-
if (!o) return;
|
|
574
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
575
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
576
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
577
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
578
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
579
|
-
}
|
|
580
|
-
function _arrayLikeToArray(arr, len) {
|
|
581
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
582
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
583
|
-
return arr2;
|
|
584
|
-
}
|
|
585
|
-
function _nonIterableSpread() {
|
|
586
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
587
|
-
}
|
|
588
|
-
function _nonIterableRest() {
|
|
589
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
590
552
|
}
|
|
591
553
|
|
|
592
554
|
var ENUM = {
|
|
@@ -4559,13 +4521,13 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4559
4521
|
if (noNeedSplit) {
|
|
4560
4522
|
return item.text;
|
|
4561
4523
|
} else {
|
|
4562
|
-
return specialBracket ? "\u3010".concat(item.textShowKey, "\u3011").concat(showText) : "".concat(item.textShowKey, " ").concat(showText);
|
|
4524
|
+
return specialBracket ? "\u3010".concat(item.textShowKey || '', "\u3011").concat(showText) : "".concat(item.textShowKey || '', " ").concat(showText);
|
|
4563
4525
|
}
|
|
4564
4526
|
};
|
|
4565
4527
|
var getShowLabelTextStr = function getShowLabelTextStr(kongValue) {
|
|
4566
4528
|
if (selectMode) {
|
|
4567
4529
|
var _value$map;
|
|
4568
|
-
return (value === null || value === void 0 ? void 0 : (_value$map = value.map(function (item) {
|
|
4530
|
+
return Array.isArray(value) && (value === null || value === void 0 ? void 0 : (_value$map = value.map(function (item) {
|
|
4569
4531
|
return item.label || item.text || '';
|
|
4570
4532
|
})) === null || _value$map === void 0 ? void 0 : _value$map.join(',')) || kongValue;
|
|
4571
4533
|
}
|
|
@@ -4580,7 +4542,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4580
4542
|
var getShowValueStr = function getShowValueStr(kongValue) {
|
|
4581
4543
|
if (selectMode) {
|
|
4582
4544
|
var _value$map2;
|
|
4583
|
-
return (value === null || value === void 0 ? void 0 : (_value$map2 = value.map(function (item) {
|
|
4545
|
+
return Array.isArray(value) && (value === null || value === void 0 ? void 0 : (_value$map2 = value.map(function (item) {
|
|
4584
4546
|
return getSelectValueText(item);
|
|
4585
4547
|
})) === null || _value$map2 === void 0 ? void 0 : _value$map2.join(',')) || kongValue;
|
|
4586
4548
|
}
|
|
@@ -9699,7 +9661,10 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps, hidde
|
|
|
9699
9661
|
tableSearchForm: tableSearchForm,
|
|
9700
9662
|
tableColumns: [{
|
|
9701
9663
|
title: '账户名称',
|
|
9702
|
-
dataIndex: 'username'
|
|
9664
|
+
dataIndex: 'username',
|
|
9665
|
+
render: function render(text) {
|
|
9666
|
+
return handleTextOverflow(text);
|
|
9667
|
+
}
|
|
9703
9668
|
}, {
|
|
9704
9669
|
title: '显示名称',
|
|
9705
9670
|
dataIndex: 'name'
|
|
@@ -9723,16 +9688,19 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps, hidde
|
|
|
9723
9688
|
dataIndex: 'employmentType',
|
|
9724
9689
|
render: function render(text) {
|
|
9725
9690
|
var _employeeType$find;
|
|
9726
|
-
return (_employeeType$find = employeeType.find(function (i) {
|
|
9691
|
+
return ((_employeeType$find = employeeType.find(function (i) {
|
|
9727
9692
|
return i.value === text;
|
|
9728
|
-
})) === null || _employeeType$find === void 0 ? void 0 : _employeeType$find.text;
|
|
9693
|
+
})) === null || _employeeType$find === void 0 ? void 0 : _employeeType$find.text) || '- -';
|
|
9729
9694
|
}
|
|
9730
9695
|
}] : []), [{
|
|
9731
9696
|
title: '邮箱',
|
|
9732
9697
|
dataIndex: 'email'
|
|
9733
9698
|
}, {
|
|
9734
9699
|
title: '手机号',
|
|
9735
|
-
dataIndex: 'officeTelephone'
|
|
9700
|
+
dataIndex: 'officeTelephone',
|
|
9701
|
+
render: function render(text, record) {
|
|
9702
|
+
return handleTextOverflow(text || (record === null || record === void 0 ? void 0 : record.phone));
|
|
9703
|
+
}
|
|
9736
9704
|
}])
|
|
9737
9705
|
}, modalTableBusProps);
|
|
9738
9706
|
}
|
|
@@ -15490,7 +15458,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
15490
15458
|
expandable: props.expandable,
|
|
15491
15459
|
scroll: {
|
|
15492
15460
|
x: props.overScrollX || 'max-content',
|
|
15493
|
-
y: height
|
|
15461
|
+
y: (props === null || props === void 0 ? void 0 : props.overScrollY) || height
|
|
15494
15462
|
},
|
|
15495
15463
|
bordered: value.bordered || false,
|
|
15496
15464
|
sticky: true,
|
|
@@ -15534,7 +15502,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
15534
15502
|
}
|
|
15535
15503
|
};
|
|
15536
15504
|
var handleTimeValue = function handleTimeValue() {
|
|
15537
|
-
var _value$actionsRender, _value$exportConfig, _sortTableRef$current, _value$exportConfig6, _exportTableRef$curre;
|
|
15505
|
+
var _value$actionsRender, _value$exportConfig, _sortTableRef$current, _value$searchConfig, _value$exportConfig6, _exportTableRef$curre;
|
|
15538
15506
|
var actionsRender = ((_value$actionsRender = value.actionsRender) !== null && _value$actionsRender !== void 0 ? _value$actionsRender : []).map(function (x) {
|
|
15539
15507
|
var _x$position;
|
|
15540
15508
|
return _objectSpread2(_objectSpread2({}, x), {}, {
|
|
@@ -15593,13 +15561,13 @@ var BsSulaQueryTable = (function (props) {
|
|
|
15593
15561
|
fontSize: 14,
|
|
15594
15562
|
textAlign: 'center'
|
|
15595
15563
|
}
|
|
15596
|
-
}, "\u5217\u8BBE\u7F6E")), /*#__PURE__*/React$1.createElement(Menu.Item, null, /*#__PURE__*/React$1.createElement(SearchItemTable, {
|
|
15564
|
+
}, "\u5217\u8BBE\u7F6E")), !(value === null || value === void 0 ? void 0 : (_value$searchConfig = value.searchConfig) === null || _value$searchConfig === void 0 ? void 0 : _value$searchConfig.isHidden) && ( /*#__PURE__*/React$1.createElement(Menu.Item, null, /*#__PURE__*/React$1.createElement(SearchItemTable, {
|
|
15597
15565
|
ref: searchTableRef,
|
|
15598
15566
|
setShowSearchFields: setShowSearchFields,
|
|
15599
15567
|
showSearchFields: showSearchFields,
|
|
15600
15568
|
datasource: (value === null || value === void 0 ? void 0 : value.fields) || [],
|
|
15601
15569
|
bsTableCode: bsTableCode
|
|
15602
|
-
})), (value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.settingColumns) && ( /*#__PURE__*/React$1.createElement(Menu.Item, null, /*#__PURE__*/React$1.createElement("div", {
|
|
15570
|
+
}))), (value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.settingColumns) && ( /*#__PURE__*/React$1.createElement(Menu.Item, null, /*#__PURE__*/React$1.createElement("div", {
|
|
15603
15571
|
onClick: exportTableRef === null || exportTableRef === void 0 ? void 0 : (_exportTableRef$curre = exportTableRef.current) === null || _exportTableRef$curre === void 0 ? void 0 : _exportTableRef$curre.showModal,
|
|
15604
15572
|
style: {
|
|
15605
15573
|
fontSize: 14,
|
package/dist/index.js
CHANGED
|
@@ -53,9 +53,88 @@ var serialize__default = /*#__PURE__*/_interopDefaultLegacy(serialize);
|
|
|
53
53
|
var castArray__default = /*#__PURE__*/_interopDefaultLegacy(castArray);
|
|
54
54
|
var isArray__default = /*#__PURE__*/_interopDefaultLegacy(isArray$1);
|
|
55
55
|
|
|
56
|
+
function _arrayLikeToArray(r, a) {
|
|
57
|
+
(null == a || a > r.length) && (a = r.length);
|
|
58
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
59
|
+
return n;
|
|
60
|
+
}
|
|
61
|
+
function _arrayWithHoles(r) {
|
|
62
|
+
if (Array.isArray(r)) return r;
|
|
63
|
+
}
|
|
64
|
+
function _arrayWithoutHoles(r) {
|
|
65
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
66
|
+
}
|
|
67
|
+
function _assertThisInitialized(e) {
|
|
68
|
+
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
69
|
+
return e;
|
|
70
|
+
}
|
|
71
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
72
|
+
try {
|
|
73
|
+
var i = n[a](c),
|
|
74
|
+
u = i.value;
|
|
75
|
+
} catch (n) {
|
|
76
|
+
return void e(n);
|
|
77
|
+
}
|
|
78
|
+
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
|
79
|
+
}
|
|
80
|
+
function _asyncToGenerator(n) {
|
|
81
|
+
return function () {
|
|
82
|
+
var t = this,
|
|
83
|
+
e = arguments;
|
|
84
|
+
return new Promise(function (r, o) {
|
|
85
|
+
var a = n.apply(t, e);
|
|
86
|
+
function _next(n) {
|
|
87
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
|
|
88
|
+
}
|
|
89
|
+
function _throw(n) {
|
|
90
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
|
91
|
+
}
|
|
92
|
+
_next(void 0);
|
|
93
|
+
});
|
|
94
|
+
};
|
|
95
|
+
}
|
|
56
96
|
function _callSuper(t, o, e) {
|
|
57
97
|
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
58
98
|
}
|
|
99
|
+
function _classCallCheck(a, n) {
|
|
100
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
101
|
+
}
|
|
102
|
+
function _defineProperties(e, r) {
|
|
103
|
+
for (var t = 0; t < r.length; t++) {
|
|
104
|
+
var o = r[t];
|
|
105
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
function _createClass(e, r, t) {
|
|
109
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
110
|
+
writable: !1
|
|
111
|
+
}), e;
|
|
112
|
+
}
|
|
113
|
+
function _defineProperty(e, r, t) {
|
|
114
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
115
|
+
value: t,
|
|
116
|
+
enumerable: !0,
|
|
117
|
+
configurable: !0,
|
|
118
|
+
writable: !0
|
|
119
|
+
}) : e[r] = t, e;
|
|
120
|
+
}
|
|
121
|
+
function _getPrototypeOf(t) {
|
|
122
|
+
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
|
123
|
+
return t.__proto__ || Object.getPrototypeOf(t);
|
|
124
|
+
}, _getPrototypeOf(t);
|
|
125
|
+
}
|
|
126
|
+
function _inherits(t, e) {
|
|
127
|
+
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
128
|
+
t.prototype = Object.create(e && e.prototype, {
|
|
129
|
+
constructor: {
|
|
130
|
+
value: t,
|
|
131
|
+
writable: !0,
|
|
132
|
+
configurable: !0
|
|
133
|
+
}
|
|
134
|
+
}), Object.defineProperty(t, "prototype", {
|
|
135
|
+
writable: !1
|
|
136
|
+
}), e && _setPrototypeOf(t, e);
|
|
137
|
+
}
|
|
59
138
|
function _isNativeReflectConstruct() {
|
|
60
139
|
try {
|
|
61
140
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
@@ -64,6 +143,9 @@ function _isNativeReflectConstruct() {
|
|
|
64
143
|
return !!t;
|
|
65
144
|
})();
|
|
66
145
|
}
|
|
146
|
+
function _iterableToArray(r) {
|
|
147
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
148
|
+
}
|
|
67
149
|
function _iterableToArrayLimit(r, l) {
|
|
68
150
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
69
151
|
if (null != t) {
|
|
@@ -91,6 +173,15 @@ function _iterableToArrayLimit(r, l) {
|
|
|
91
173
|
return a;
|
|
92
174
|
}
|
|
93
175
|
}
|
|
176
|
+
function _nonIterableRest() {
|
|
177
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
178
|
+
}
|
|
179
|
+
function _nonIterableSpread() {
|
|
180
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
181
|
+
}
|
|
182
|
+
function _objectDestructuringEmpty(t) {
|
|
183
|
+
if (null == t) throw new TypeError("Cannot destructure " + t);
|
|
184
|
+
}
|
|
94
185
|
function ownKeys(e, r) {
|
|
95
186
|
var t = Object.keys(e);
|
|
96
187
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -112,6 +203,31 @@ function _objectSpread2(e) {
|
|
|
112
203
|
}
|
|
113
204
|
return e;
|
|
114
205
|
}
|
|
206
|
+
function _objectWithoutProperties(e, t) {
|
|
207
|
+
if (null == e) return {};
|
|
208
|
+
var o,
|
|
209
|
+
r,
|
|
210
|
+
i = _objectWithoutPropertiesLoose(e, t);
|
|
211
|
+
if (Object.getOwnPropertySymbols) {
|
|
212
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
213
|
+
for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
214
|
+
}
|
|
215
|
+
return i;
|
|
216
|
+
}
|
|
217
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
218
|
+
if (null == r) return {};
|
|
219
|
+
var t = {};
|
|
220
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
221
|
+
if (e.indexOf(n) >= 0) continue;
|
|
222
|
+
t[n] = r[n];
|
|
223
|
+
}
|
|
224
|
+
return t;
|
|
225
|
+
}
|
|
226
|
+
function _possibleConstructorReturn(t, e) {
|
|
227
|
+
if (e && ("object" == typeof e || "function" == typeof e)) return e;
|
|
228
|
+
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
229
|
+
return _assertThisInitialized(t);
|
|
230
|
+
}
|
|
115
231
|
function _regeneratorRuntime() {
|
|
116
232
|
_regeneratorRuntime = function () {
|
|
117
233
|
return e;
|
|
@@ -413,6 +529,20 @@ function _regeneratorRuntime() {
|
|
|
413
529
|
}
|
|
414
530
|
}, e;
|
|
415
531
|
}
|
|
532
|
+
function _setPrototypeOf(t, e) {
|
|
533
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
534
|
+
return t.__proto__ = e, t;
|
|
535
|
+
}, _setPrototypeOf(t, e);
|
|
536
|
+
}
|
|
537
|
+
function _slicedToArray(r, e) {
|
|
538
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
539
|
+
}
|
|
540
|
+
function _toArray(r) {
|
|
541
|
+
return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest();
|
|
542
|
+
}
|
|
543
|
+
function _toConsumableArray(r) {
|
|
544
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
545
|
+
}
|
|
416
546
|
function _toPrimitive(t, r) {
|
|
417
547
|
if ("object" != typeof t || !t) return t;
|
|
418
548
|
var e = t[Symbol.toPrimitive];
|
|
@@ -436,180 +566,12 @@ function _typeof(o) {
|
|
|
436
566
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
437
567
|
}, _typeof(o);
|
|
438
568
|
}
|
|
439
|
-
function
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
var
|
|
443
|
-
|
|
444
|
-
reject(error);
|
|
445
|
-
return;
|
|
446
|
-
}
|
|
447
|
-
if (info.done) {
|
|
448
|
-
resolve(value);
|
|
449
|
-
} else {
|
|
450
|
-
Promise.resolve(value).then(_next, _throw);
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
function _asyncToGenerator(fn) {
|
|
454
|
-
return function () {
|
|
455
|
-
var self = this,
|
|
456
|
-
args = arguments;
|
|
457
|
-
return new Promise(function (resolve, reject) {
|
|
458
|
-
var gen = fn.apply(self, args);
|
|
459
|
-
function _next(value) {
|
|
460
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
461
|
-
}
|
|
462
|
-
function _throw(err) {
|
|
463
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
464
|
-
}
|
|
465
|
-
_next(undefined);
|
|
466
|
-
});
|
|
467
|
-
};
|
|
468
|
-
}
|
|
469
|
-
function _classCallCheck(instance, Constructor) {
|
|
470
|
-
if (!(instance instanceof Constructor)) {
|
|
471
|
-
throw new TypeError("Cannot call a class as a function");
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
function _defineProperties(target, props) {
|
|
475
|
-
for (var i = 0; i < props.length; i++) {
|
|
476
|
-
var descriptor = props[i];
|
|
477
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
478
|
-
descriptor.configurable = true;
|
|
479
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
480
|
-
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
484
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
485
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
486
|
-
Object.defineProperty(Constructor, "prototype", {
|
|
487
|
-
writable: false
|
|
488
|
-
});
|
|
489
|
-
return Constructor;
|
|
490
|
-
}
|
|
491
|
-
function _defineProperty(obj, key, value) {
|
|
492
|
-
key = _toPropertyKey(key);
|
|
493
|
-
if (key in obj) {
|
|
494
|
-
Object.defineProperty(obj, key, {
|
|
495
|
-
value: value,
|
|
496
|
-
enumerable: true,
|
|
497
|
-
configurable: true,
|
|
498
|
-
writable: true
|
|
499
|
-
});
|
|
500
|
-
} else {
|
|
501
|
-
obj[key] = value;
|
|
502
|
-
}
|
|
503
|
-
return obj;
|
|
504
|
-
}
|
|
505
|
-
function _inherits(subClass, superClass) {
|
|
506
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
507
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
508
|
-
}
|
|
509
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
510
|
-
constructor: {
|
|
511
|
-
value: subClass,
|
|
512
|
-
writable: true,
|
|
513
|
-
configurable: true
|
|
514
|
-
}
|
|
515
|
-
});
|
|
516
|
-
Object.defineProperty(subClass, "prototype", {
|
|
517
|
-
writable: false
|
|
518
|
-
});
|
|
519
|
-
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
520
|
-
}
|
|
521
|
-
function _getPrototypeOf(o) {
|
|
522
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
523
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
524
|
-
};
|
|
525
|
-
return _getPrototypeOf(o);
|
|
526
|
-
}
|
|
527
|
-
function _setPrototypeOf(o, p) {
|
|
528
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
529
|
-
o.__proto__ = p;
|
|
530
|
-
return o;
|
|
531
|
-
};
|
|
532
|
-
return _setPrototypeOf(o, p);
|
|
533
|
-
}
|
|
534
|
-
function _objectDestructuringEmpty(obj) {
|
|
535
|
-
if (obj == null) throw new TypeError("Cannot destructure " + obj);
|
|
536
|
-
}
|
|
537
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
538
|
-
if (source == null) return {};
|
|
539
|
-
var target = {};
|
|
540
|
-
for (var key in source) {
|
|
541
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
542
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
543
|
-
target[key] = source[key];
|
|
544
|
-
}
|
|
545
|
-
}
|
|
546
|
-
return target;
|
|
547
|
-
}
|
|
548
|
-
function _objectWithoutProperties(source, excluded) {
|
|
549
|
-
if (source == null) return {};
|
|
550
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
551
|
-
var key, i;
|
|
552
|
-
if (Object.getOwnPropertySymbols) {
|
|
553
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
554
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
555
|
-
key = sourceSymbolKeys[i];
|
|
556
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
557
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
558
|
-
target[key] = source[key];
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
|
-
return target;
|
|
562
|
-
}
|
|
563
|
-
function _assertThisInitialized(self) {
|
|
564
|
-
if (self === void 0) {
|
|
565
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
569
|
+
function _unsupportedIterableToArray(r, a) {
|
|
570
|
+
if (r) {
|
|
571
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
572
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
573
|
+
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;
|
|
566
574
|
}
|
|
567
|
-
return self;
|
|
568
|
-
}
|
|
569
|
-
function _possibleConstructorReturn(self, call) {
|
|
570
|
-
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
571
|
-
return call;
|
|
572
|
-
} else if (call !== void 0) {
|
|
573
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
574
|
-
}
|
|
575
|
-
return _assertThisInitialized(self);
|
|
576
|
-
}
|
|
577
|
-
function _slicedToArray(arr, i) {
|
|
578
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
579
|
-
}
|
|
580
|
-
function _toArray(arr) {
|
|
581
|
-
return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();
|
|
582
|
-
}
|
|
583
|
-
function _toConsumableArray(arr) {
|
|
584
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
585
|
-
}
|
|
586
|
-
function _arrayWithoutHoles(arr) {
|
|
587
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
588
|
-
}
|
|
589
|
-
function _arrayWithHoles(arr) {
|
|
590
|
-
if (Array.isArray(arr)) return arr;
|
|
591
|
-
}
|
|
592
|
-
function _iterableToArray(iter) {
|
|
593
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
594
|
-
}
|
|
595
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
596
|
-
if (!o) return;
|
|
597
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
598
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
599
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
600
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
601
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
602
|
-
}
|
|
603
|
-
function _arrayLikeToArray(arr, len) {
|
|
604
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
605
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
606
|
-
return arr2;
|
|
607
|
-
}
|
|
608
|
-
function _nonIterableSpread() {
|
|
609
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
610
|
-
}
|
|
611
|
-
function _nonIterableRest() {
|
|
612
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
613
575
|
}
|
|
614
576
|
|
|
615
577
|
var ENUM = {
|
|
@@ -4582,13 +4544,13 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
4582
4544
|
if (noNeedSplit) {
|
|
4583
4545
|
return item.text;
|
|
4584
4546
|
} else {
|
|
4585
|
-
return specialBracket ? "\u3010".concat(item.textShowKey, "\u3011").concat(showText) : "".concat(item.textShowKey, " ").concat(showText);
|
|
4547
|
+
return specialBracket ? "\u3010".concat(item.textShowKey || '', "\u3011").concat(showText) : "".concat(item.textShowKey || '', " ").concat(showText);
|
|
4586
4548
|
}
|
|
4587
4549
|
};
|
|
4588
4550
|
var getShowLabelTextStr = function getShowLabelTextStr(kongValue) {
|
|
4589
4551
|
if (selectMode) {
|
|
4590
4552
|
var _value$map;
|
|
4591
|
-
return (value === null || value === void 0 ? void 0 : (_value$map = value.map(function (item) {
|
|
4553
|
+
return Array.isArray(value) && (value === null || value === void 0 ? void 0 : (_value$map = value.map(function (item) {
|
|
4592
4554
|
return item.label || item.text || '';
|
|
4593
4555
|
})) === null || _value$map === void 0 ? void 0 : _value$map.join(',')) || kongValue;
|
|
4594
4556
|
}
|
|
@@ -4603,7 +4565,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
4603
4565
|
var getShowValueStr = function getShowValueStr(kongValue) {
|
|
4604
4566
|
if (selectMode) {
|
|
4605
4567
|
var _value$map2;
|
|
4606
|
-
return (value === null || value === void 0 ? void 0 : (_value$map2 = value.map(function (item) {
|
|
4568
|
+
return Array.isArray(value) && (value === null || value === void 0 ? void 0 : (_value$map2 = value.map(function (item) {
|
|
4607
4569
|
return getSelectValueText(item);
|
|
4608
4570
|
})) === null || _value$map2 === void 0 ? void 0 : _value$map2.join(',')) || kongValue;
|
|
4609
4571
|
}
|
|
@@ -9722,7 +9684,10 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps, hidde
|
|
|
9722
9684
|
tableSearchForm: tableSearchForm,
|
|
9723
9685
|
tableColumns: [{
|
|
9724
9686
|
title: '账户名称',
|
|
9725
|
-
dataIndex: 'username'
|
|
9687
|
+
dataIndex: 'username',
|
|
9688
|
+
render: function render(text) {
|
|
9689
|
+
return handleTextOverflow(text);
|
|
9690
|
+
}
|
|
9726
9691
|
}, {
|
|
9727
9692
|
title: '显示名称',
|
|
9728
9693
|
dataIndex: 'name'
|
|
@@ -9746,16 +9711,19 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps, hidde
|
|
|
9746
9711
|
dataIndex: 'employmentType',
|
|
9747
9712
|
render: function render(text) {
|
|
9748
9713
|
var _employeeType$find;
|
|
9749
|
-
return (_employeeType$find = employeeType.find(function (i) {
|
|
9714
|
+
return ((_employeeType$find = employeeType.find(function (i) {
|
|
9750
9715
|
return i.value === text;
|
|
9751
|
-
})) === null || _employeeType$find === void 0 ? void 0 : _employeeType$find.text;
|
|
9716
|
+
})) === null || _employeeType$find === void 0 ? void 0 : _employeeType$find.text) || '- -';
|
|
9752
9717
|
}
|
|
9753
9718
|
}] : []), [{
|
|
9754
9719
|
title: '邮箱',
|
|
9755
9720
|
dataIndex: 'email'
|
|
9756
9721
|
}, {
|
|
9757
9722
|
title: '手机号',
|
|
9758
|
-
dataIndex: 'officeTelephone'
|
|
9723
|
+
dataIndex: 'officeTelephone',
|
|
9724
|
+
render: function render(text, record) {
|
|
9725
|
+
return handleTextOverflow(text || (record === null || record === void 0 ? void 0 : record.phone));
|
|
9726
|
+
}
|
|
9759
9727
|
}])
|
|
9760
9728
|
}, modalTableBusProps);
|
|
9761
9729
|
}
|
|
@@ -15513,7 +15481,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
15513
15481
|
expandable: props.expandable,
|
|
15514
15482
|
scroll: {
|
|
15515
15483
|
x: props.overScrollX || 'max-content',
|
|
15516
|
-
y: height
|
|
15484
|
+
y: (props === null || props === void 0 ? void 0 : props.overScrollY) || height
|
|
15517
15485
|
},
|
|
15518
15486
|
bordered: value.bordered || false,
|
|
15519
15487
|
sticky: true,
|
|
@@ -15557,7 +15525,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
15557
15525
|
}
|
|
15558
15526
|
};
|
|
15559
15527
|
var handleTimeValue = function handleTimeValue() {
|
|
15560
|
-
var _value$actionsRender, _value$exportConfig, _sortTableRef$current, _value$exportConfig6, _exportTableRef$curre;
|
|
15528
|
+
var _value$actionsRender, _value$exportConfig, _sortTableRef$current, _value$searchConfig, _value$exportConfig6, _exportTableRef$curre;
|
|
15561
15529
|
var actionsRender = ((_value$actionsRender = value.actionsRender) !== null && _value$actionsRender !== void 0 ? _value$actionsRender : []).map(function (x) {
|
|
15562
15530
|
var _x$position;
|
|
15563
15531
|
return _objectSpread2(_objectSpread2({}, x), {}, {
|
|
@@ -15616,13 +15584,13 @@ var BsSulaQueryTable = (function (props) {
|
|
|
15616
15584
|
fontSize: 14,
|
|
15617
15585
|
textAlign: 'center'
|
|
15618
15586
|
}
|
|
15619
|
-
}, "\u5217\u8BBE\u7F6E")), /*#__PURE__*/React__default['default'].createElement(antd.Menu.Item, null, /*#__PURE__*/React__default['default'].createElement(SearchItemTable, {
|
|
15587
|
+
}, "\u5217\u8BBE\u7F6E")), !(value === null || value === void 0 ? void 0 : (_value$searchConfig = value.searchConfig) === null || _value$searchConfig === void 0 ? void 0 : _value$searchConfig.isHidden) && ( /*#__PURE__*/React__default['default'].createElement(antd.Menu.Item, null, /*#__PURE__*/React__default['default'].createElement(SearchItemTable, {
|
|
15620
15588
|
ref: searchTableRef,
|
|
15621
15589
|
setShowSearchFields: setShowSearchFields,
|
|
15622
15590
|
showSearchFields: showSearchFields,
|
|
15623
15591
|
datasource: (value === null || value === void 0 ? void 0 : value.fields) || [],
|
|
15624
15592
|
bsTableCode: bsTableCode
|
|
15625
|
-
})), (value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.settingColumns) && ( /*#__PURE__*/React__default['default'].createElement(antd.Menu.Item, null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15593
|
+
}))), (value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.settingColumns) && ( /*#__PURE__*/React__default['default'].createElement(antd.Menu.Item, null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15626
15594
|
onClick: exportTableRef === null || exportTableRef === void 0 ? void 0 : (_exportTableRef$curre = exportTableRef.current) === null || _exportTableRef$curre === void 0 ? void 0 : _exportTableRef$curre.showModal,
|
|
15627
15595
|
style: {
|
|
15628
15596
|
fontSize: 14,
|
package/package.json
CHANGED
|
@@ -409,7 +409,7 @@ const getSettingFieldOrColumn = (savedConfig, originConfig, type: string) => {
|
|
|
409
409
|
},
|
|
410
410
|
initialSelectedRowKeys: value.initialSelectedRowKeys || [],
|
|
411
411
|
expandable: props.expandable,
|
|
412
|
-
scroll: { x: props.overScrollX || 'max-content', y: height },
|
|
412
|
+
scroll: { x: props.overScrollX || 'max-content', y: props?.overScrollY || height },
|
|
413
413
|
bordered: value.bordered || false,
|
|
414
414
|
sticky: true,
|
|
415
415
|
rowClassName: (record: object | null | undefined, index: number) =>
|
|
@@ -542,15 +542,17 @@ const getSettingFieldOrColumn = (savedConfig, originConfig, type: string) => {
|
|
|
542
542
|
列设置
|
|
543
543
|
</div>
|
|
544
544
|
</Menu.Item>
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
545
|
+
{!value?.searchConfig?.isHidden && (
|
|
546
|
+
<Menu.Item>
|
|
547
|
+
<SearchItemTable
|
|
548
|
+
ref={searchTableRef}
|
|
549
|
+
setShowSearchFields={setShowSearchFields}
|
|
550
|
+
showSearchFields={showSearchFields}
|
|
551
|
+
datasource={value?.fields || []}
|
|
552
|
+
bsTableCode={bsTableCode}
|
|
553
|
+
/>
|
|
553
554
|
</Menu.Item>
|
|
555
|
+
)}
|
|
554
556
|
{value?.exportConfig?.settingColumns && (
|
|
555
557
|
<Menu.Item>
|
|
556
558
|
<div
|
|
@@ -1605,6 +1605,7 @@ export function commonFun (type?: string, prefixUrl: any, requestConfigProp?: an
|
|
|
1605
1605
|
{
|
|
1606
1606
|
title: '账户名称',
|
|
1607
1607
|
dataIndex: 'username',
|
|
1608
|
+
render: (text: any) => handleTextOverflow(text),
|
|
1608
1609
|
},
|
|
1609
1610
|
{
|
|
1610
1611
|
title: '显示名称',
|
|
@@ -1626,7 +1627,7 @@ export function commonFun (type?: string, prefixUrl: any, requestConfigProp?: an
|
|
|
1626
1627
|
...(modalTableBusProps?.needTypeSearch?[{
|
|
1627
1628
|
title: '员工类型',
|
|
1628
1629
|
dataIndex: 'employmentType',
|
|
1629
|
-
render: (text: number) => employeeType.find((i: any) => i.value === text)?.text,
|
|
1630
|
+
render: (text: number) => employeeType.find((i: any) => i.value === text)?.text || '- -',
|
|
1630
1631
|
}]:[]),
|
|
1631
1632
|
{
|
|
1632
1633
|
title: '邮箱',
|
|
@@ -1635,6 +1636,7 @@ export function commonFun (type?: string, prefixUrl: any, requestConfigProp?: an
|
|
|
1635
1636
|
{
|
|
1636
1637
|
title: '手机号',
|
|
1637
1638
|
dataIndex: 'officeTelephone',
|
|
1639
|
+
render: (text: any, record: any) => handleTextOverflow(text||record?.phone),
|
|
1638
1640
|
},
|
|
1639
1641
|
],
|
|
1640
1642
|
...modalTableBusProps
|
|
@@ -771,14 +771,14 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
|
|
|
771
771
|
return item.text;
|
|
772
772
|
} else {
|
|
773
773
|
return specialBracket
|
|
774
|
-
? `【${item.textShowKey}】${showText}`
|
|
775
|
-
: `${item.textShowKey} ${showText}`
|
|
774
|
+
? `【${item.textShowKey || ''}】${showText}`
|
|
775
|
+
: `${item.textShowKey || ''} ${showText}`
|
|
776
776
|
}
|
|
777
777
|
};
|
|
778
778
|
|
|
779
779
|
const getShowLabelTextStr = (kongValue): string => {
|
|
780
780
|
if (selectMode) {
|
|
781
|
-
return value?.map(item => item.label || item.text || '')?.join(',') || kongValue;
|
|
781
|
+
return Array.isArray(value) && value?.map(item => item.label || item.text || '')?.join(',') || kongValue;
|
|
782
782
|
}
|
|
783
783
|
return (value?.label || value?.text || kongValue) as string;
|
|
784
784
|
};
|
|
@@ -787,7 +787,7 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
|
|
|
787
787
|
}
|
|
788
788
|
const getShowValueStr = (kongValue): string => {
|
|
789
789
|
if (selectMode) {
|
|
790
|
-
return value?.map(item => getSelectValueText(item))?.join(',') || kongValue;
|
|
790
|
+
return Array.isArray(value) && value?.map(item => getSelectValueText(item))?.join(',') || kongValue;
|
|
791
791
|
}
|
|
792
792
|
return (getSelectValueText(value) || kongValue) as string;
|
|
793
793
|
}
|