@teamix/pro 1.4.6 → 1.4.9

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.
Files changed (43) hide show
  1. package/dist/pro.css +1 -1
  2. package/dist/pro.js +197 -129
  3. package/dist/pro.min.css +1 -1
  4. package/dist/pro.min.js +1 -1
  5. package/es/actions/dialog-form.js +22 -17
  6. package/es/actions/dialog.d.ts +5 -1
  7. package/es/actions/dialog.js +19 -11
  8. package/es/card/index.js +1 -2
  9. package/es/card/index.scss +2 -2
  10. package/es/form/Components/LightFilter/index.js +7 -2
  11. package/es/form/Components/LightFilter/index.scss +5 -0
  12. package/es/form/Filter/index.js +5 -4
  13. package/es/form/ProForm/index.js +2 -2
  14. package/es/form/ProForm/index.scss +5 -0
  15. package/es/form/SchemaForm/index.js +8 -4
  16. package/es/index-without-icon.d.ts +32 -0
  17. package/es/index-without-icon.js +35 -0
  18. package/es/index.d.ts +1 -1
  19. package/es/index.js +7 -2
  20. package/es/page-header/index.js +3 -1
  21. package/es/table/components/Filter/index.js +9 -15
  22. package/es/table/utils/genProColumnToColumn.d.ts +5 -1
  23. package/es/table/utils/genProColumnToColumn.js +3 -1
  24. package/lib/actions/dialog-form.js +22 -16
  25. package/lib/actions/dialog.d.ts +5 -1
  26. package/lib/actions/dialog.js +18 -10
  27. package/lib/card/index.js +1 -2
  28. package/lib/card/index.scss +2 -2
  29. package/lib/form/Components/LightFilter/index.js +6 -1
  30. package/lib/form/Components/LightFilter/index.scss +5 -0
  31. package/lib/form/Filter/index.js +5 -4
  32. package/lib/form/ProForm/index.js +2 -2
  33. package/lib/form/ProForm/index.scss +5 -0
  34. package/lib/form/SchemaForm/index.js +11 -6
  35. package/lib/index-without-icon.d.ts +32 -0
  36. package/lib/index-without-icon.js +316 -0
  37. package/lib/index.d.ts +1 -1
  38. package/lib/index.js +6 -3
  39. package/lib/page-header/index.js +3 -1
  40. package/lib/table/components/Filter/index.js +9 -15
  41. package/lib/table/utils/genProColumnToColumn.d.ts +5 -1
  42. package/lib/table/utils/genProColumnToColumn.js +4 -1
  43. package/package.json +1 -1
package/dist/pro.js CHANGED
@@ -1840,7 +1840,8 @@ exports.Z = {
1840
1840
  clear: 'Clear',
1841
1841
  hour: 'H',
1842
1842
  minute: 'M',
1843
- second: 'S'
1843
+ second: 'S',
1844
+ ok: 'OK'
1844
1845
  },
1845
1846
  Transfer: {
1846
1847
  items: 'items',
@@ -1996,7 +1997,8 @@ exports.Z = {
1996
1997
  clear: '清除',
1997
1998
  hour: '时',
1998
1999
  minute: '分',
1999
- second: '秒'
2000
+ second: '秒',
2001
+ ok: '确定'
2000
2002
  },
2001
2003
  Transfer: {
2002
2004
  items: '项',
@@ -2152,7 +2154,8 @@ exports.Z = {
2152
2154
  clear: '清除',
2153
2155
  hour: '時',
2154
2156
  minute: '分',
2155
- second: '秒'
2157
+ second: '秒',
2158
+ ok: '確定'
2156
2159
  },
2157
2160
  Transfer: {
2158
2161
  items: '項',
@@ -76033,6 +76036,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
76033
76036
 
76034
76037
 
76035
76038
 
76039
+ var toJS = _form__WEBPACK_IMPORTED_MODULE_3__/* .formilyReactive.toJS */ .SP.toJS;
76036
76040
 
76037
76041
  function getDefaultFormPropsByDialogSize(size) {
76038
76042
  if (size === 'small') {
@@ -76179,51 +76183,55 @@ function useDialogFormAction(action, context) {
76179
76183
  innerFormRef.current.validate().then( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
76180
76184
  var _innerFormRef$current;
76181
76185
 
76182
- var beforeRequestContext, requestContext;
76186
+ var beforeRequestContext, fields, requestContext;
76183
76187
  return regeneratorRuntime.wrap(function _callee$(_context) {
76184
76188
  while (1) {
76185
76189
  switch (_context.prev = _context.next) {
76186
76190
  case 0:
76191
+ fields = toJS((_innerFormRef$current = innerFormRef.current) == null ? void 0 : _innerFormRef$current.values);
76192
+
76187
76193
  if (!propsBeforeRequest) {
76188
- _context.next = 13;
76194
+ _context.next = 14;
76189
76195
  break;
76190
76196
  }
76191
76197
 
76192
- _context.prev = 1;
76193
- _context.next = 4;
76194
- return (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_4__.resolveMaybePromiseMethod)(propsBeforeRequest, context);
76198
+ _context.prev = 2;
76199
+ _context.next = 5;
76200
+ return (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_4__.resolveMaybePromiseMethod)(propsBeforeRequest, _extends({}, context, {
76201
+ fields: fields
76202
+ }));
76195
76203
 
76196
- case 4:
76204
+ case 5:
76197
76205
  beforeRequestContext = _context.sent;
76198
- _context.next = 10;
76206
+ _context.next = 11;
76199
76207
  break;
76200
76208
 
76201
- case 7:
76202
- _context.prev = 7;
76203
- _context.t0 = _context["catch"](1);
76209
+ case 8:
76210
+ _context.prev = 8;
76211
+ _context.t0 = _context["catch"](2);
76204
76212
  beforeRequestContext = false;
76205
76213
 
76206
- case 10:
76214
+ case 11:
76207
76215
  if (!(beforeRequestContext === false)) {
76208
- _context.next = 13;
76216
+ _context.next = 14;
76209
76217
  break;
76210
76218
  }
76211
76219
 
76212
76220
  reject(false);
76213
76221
  return _context.abrupt("return");
76214
76222
 
76215
- case 13:
76223
+ case 14:
76216
76224
  requestContext = Object.assign({
76217
- fields: (_innerFormRef$current = innerFormRef.current) == null ? void 0 : _innerFormRef$current.values
76225
+ fields: fields
76218
76226
  }, typeof beforeRequestContext === 'object' ? beforeRequestContext : {});
76219
76227
  resolve(requestContext);
76220
76228
 
76221
- case 15:
76229
+ case 16:
76222
76230
  case "end":
76223
76231
  return _context.stop();
76224
76232
  }
76225
76233
  }
76226
- }, _callee, null, [[1, 7]]);
76234
+ }, _callee, null, [[2, 8]]);
76227
76235
  })))["catch"](function () {
76228
76236
  resolve(false);
76229
76237
  });
@@ -76318,7 +76326,7 @@ function useDialogTableAction(action, context) {
76318
76326
  /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(54842);
76319
76327
  /* harmony import */ var _request__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(67096);
76320
76328
  /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(95983);
76321
- var _excluded = ["trigger", "url", "method", "params", "data", "extendParams", "successMsg", "errorMsg", "formatParams", "formatResult", "onSuccess", "onError"],
76329
+ var _excluded = ["trigger", "url", "customRequest", "method", "params", "data", "extendParams", "successMsg", "errorMsg", "formatParams", "formatResult", "onSuccess", "onError", "onOk", "onCancel"],
76322
76330
  _excluded2 = ["title", "content", "component", "schema", "onFinish", "dialogType", "dialogQuickShowType", "messageType", "popType", "beforeRequest", "onTrigger", "link", "beforeContent", "afterContent", "message", "footerDescription", "footerAlign", "className"];
76323
76331
 
76324
76332
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
@@ -76353,7 +76361,9 @@ var FooterForm = function FooterForm(props) {
76353
76361
  var schema = props.schema,
76354
76362
  context = props.context,
76355
76363
  formRef = props.formRef;
76356
- var form = (0,_form__WEBPACK_IMPORTED_MODULE_6__/* .createForm */ .Np)();
76364
+ var form = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
76365
+ return (0,_form__WEBPACK_IMPORTED_MODULE_6__/* .createForm */ .Np)();
76366
+ }, []);
76357
76367
  (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
76358
76368
  formRef.current = form;
76359
76369
  }, []);
@@ -76385,6 +76395,7 @@ function useDialogAction(action, actionContext, hasForm) {
76385
76395
 
76386
76396
  var trigger = action.trigger,
76387
76397
  url = action.url,
76398
+ customRequest = action.customRequest,
76388
76399
  method = action.method,
76389
76400
  params = action.params,
76390
76401
  data = action.data,
@@ -76395,6 +76406,8 @@ function useDialogAction(action, actionContext, hasForm) {
76395
76406
  formatResult = action.formatResult,
76396
76407
  onSuccess = action.onSuccess,
76397
76408
  onError = action.onError,
76409
+ propsOnOk = action.onOk,
76410
+ propsOnCancel = action.onCancel,
76398
76411
  others = _objectWithoutPropertiesLoose(action, _excluded);
76399
76412
 
76400
76413
  var _getTargetValue = (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_5__.getTargetValue)(others, context),
@@ -76475,33 +76488,34 @@ function useDialogAction(action, actionContext, hasForm) {
76475
76488
 
76476
76489
  case 6:
76477
76490
  onFinish && onFinish();
76491
+ propsOnOk && propsOnOk(context);
76478
76492
  resolve(true);
76479
- _context.next = 18;
76493
+ _context.next = 19;
76480
76494
  break;
76481
76495
 
76482
- case 10:
76483
- _context.prev = 10;
76496
+ case 11:
76497
+ _context.prev = 11;
76484
76498
  _context.t0 = _context["catch"](2);
76485
76499
  setLoading(false); // 如果 beforeRequest 中返回了 false 并且不是 dialog-form,则直接关闭弹窗
76486
76500
 
76487
76501
  if (!(beforeRequest && !hasForm)) {
76488
- _context.next = 16;
76502
+ _context.next = 17;
76489
76503
  break;
76490
76504
  }
76491
76505
 
76492
76506
  resolve(true);
76493
76507
  return _context.abrupt("return");
76494
76508
 
76495
- case 16:
76509
+ case 17:
76496
76510
  resolve(false);
76497
76511
  return _context.abrupt("return");
76498
76512
 
76499
- case 18:
76513
+ case 19:
76500
76514
  case "end":
76501
76515
  return _context.stop();
76502
76516
  }
76503
76517
  }
76504
- }, _callee, null, [[2, 10]]);
76518
+ }, _callee, null, [[2, 11]]);
76505
76519
  }));
76506
76520
 
76507
76521
  return function (_x) {
@@ -76524,7 +76538,9 @@ function useDialogAction(action, actionContext, hasForm) {
76524
76538
  });
76525
76539
  var dialogContent = Component ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Component, (0,_utils__WEBPACK_IMPORTED_MODULE_10__/* .addContext */ .F)(componentProps, dialogContext)) : addContextForReactNode(content, dialogContext);
76526
76540
 
76527
- var quickShowProps = _extends((_extends2 = {}, _extends2["" + (isPop ? 'onConfirm' : 'onOk')] = onOk, _extends2.title = addContextForReactNode(title, dialogContext), _extends2.content = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, beforeContent && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
76541
+ var quickShowProps = _extends((_extends2 = {}, _extends2["" + (isPop ? 'onConfirm' : 'onOk')] = onOk, _extends2.onCancel = function onCancel() {
76542
+ propsOnCancel && propsOnCancel(context);
76543
+ }, _extends2.title = addContextForReactNode(title, dialogContext), _extends2.content = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, beforeContent && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
76528
76544
  className: "teamix-pro-dialog-before-content"
76529
76545
  }, addContextForReactNode(beforeContent, dialogContext)), message && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
76530
76546
  className: "teamix-pro-dialog-message"
@@ -77648,8 +77664,7 @@ var ProCard = function ProCard(props) {
77648
77664
  value: description,
77649
77665
  type: "text",
77650
77666
  render: {
77651
- ellipsis: true,
77652
- tooltip: description
77667
+ ellipsis: true
77653
77668
  }
77654
77669
  })));
77655
77670
  };
@@ -78300,7 +78315,7 @@ var isInputCategory = function isInputCategory(currentSchema) {
78300
78315
 
78301
78316
 
78302
78317
  var LightFilter = (0,_formily_react__WEBPACK_IMPORTED_MODULE_1__.observer)(function (props) {
78303
- var _filterItems$, _main$;
78318
+ var _filterItems$, _main$, _cls;
78304
78319
 
78305
78320
  var size = props.size,
78306
78321
  defaultFilterValue = props.defaultFilterValue,
@@ -78334,6 +78349,11 @@ var LightFilter = (0,_formily_react__WEBPACK_IMPORTED_MODULE_1__.observer)(funct
78334
78349
  setActive(value);
78335
78350
  onFilterChange && onFilterChange(value);
78336
78351
  }, [onFilterChange]);
78352
+ (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
78353
+ if (!filterItems.length) {
78354
+ setActive(undefined);
78355
+ }
78356
+ }, [filterItems.length]);
78337
78357
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", {
78338
78358
  className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(basePrefix(size), prefixCls({
78339
78359
  '': true,
@@ -78342,7 +78362,7 @@ var LightFilter = (0,_formily_react__WEBPACK_IMPORTED_MODULE_1__.observer)(funct
78342
78362
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", {
78343
78363
  className: prefixCls('main')
78344
78364
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_2__.Select, _extends({}, filterProps, {
78345
- className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(prefixCls('select'), filterProps == null ? void 0 : filterProps.className),
78365
+ className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(prefixCls('select'), (_cls = {}, _cls[prefixCls('select-none')] = !content.length, _cls), filterProps == null ? void 0 : filterProps.className),
78346
78366
  dataSource: filterItems,
78347
78367
  onChange: onSelectChange,
78348
78368
  value: active
@@ -78891,7 +78911,7 @@ var SimpleFilter = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(func
78891
78911
  /* harmony import */ var _Layout__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(48483);
78892
78912
  /* harmony import */ var _useSpecialProps__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(50667);
78893
78913
  /* harmony import */ var _useBindUrl__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(38740);
78894
- var _excluded = ["addonAfter", "addonBefore", "mode", "purePanel", "expand", "formRef", "defaultFilterValue", "filterValues", "filterDebounce", "bindUrl", "onFilter", "onInit", "onReset", "onExpand", "onChange"];
78914
+ var _excluded = ["addonAfter", "addonBefore", "mode", "purePanel", "expand", "formRef", "defaultFilterValue", "filterValues", "filterDebounce", "bindUrl", "onFilter", "onInit", "onReset", "onExpand", "onChange", "form"];
78895
78915
 
78896
78916
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
78897
78917
 
@@ -78949,6 +78969,7 @@ var QueryFilter = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(funct
78949
78969
  outerReset = props.onReset,
78950
78970
  onExpand = props.onExpand,
78951
78971
  onChange = props.onChange,
78972
+ form = props.form,
78952
78973
  otherProps = _objectWithoutPropertiesLoose(props, _excluded);
78953
78974
 
78954
78975
  var _useSpecialProps = (0,_useSpecialProps__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z)(props),
@@ -79163,7 +79184,7 @@ var QueryFilter = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(funct
79163
79184
  });
79164
79185
  }
79165
79186
  });
79166
- }, []); // 创建轻量筛选表单实例
79187
+ }, [form]); // 创建轻量筛选表单实例
79167
79188
 
79168
79189
  var lightForm = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
79169
79190
  return (0,_formily_core__WEBPACK_IMPORTED_MODULE_3__.createForm)({
@@ -79174,7 +79195,7 @@ var QueryFilter = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(funct
79174
79195
  });
79175
79196
  }
79176
79197
  });
79177
- }, []); // 创建高级筛选表单实例
79198
+ }, [form]); // 创建高级筛选表单实例
79178
79199
 
79179
79200
  var advancedForm = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
79180
79201
  return (0,_formily_core__WEBPACK_IMPORTED_MODULE_3__.createForm)({
@@ -79192,7 +79213,7 @@ var QueryFilter = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(funct
79192
79213
  });
79193
79214
  }
79194
79215
  });
79195
- }, []);
79216
+ }, [form]);
79196
79217
  var formMap = {
79197
79218
  simple: simpleForm,
79198
79219
  light: lightForm,
@@ -79924,7 +79945,7 @@ var ProForm = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(function
79924
79945
  return outerForm || (0,_formily_core__WEBPACK_IMPORTED_MODULE_2__.createForm)({
79925
79946
  validateFirst: validateFirst
79926
79947
  });
79927
- }, []);
79948
+ }, [outerForm]);
79928
79949
  var prefixCls = (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_1__.usePrefixCls)('teamix-pro-form'); // 由于Actions需要,解构context供使用。原context键名的上下文继续保留。
79929
79950
 
79930
79951
  var mergedScope = _extends({}, context, globalScope, scope, {
@@ -79985,7 +80006,7 @@ var ProForm = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(function
79985
80006
  });
79986
80007
  });
79987
80008
  }
79988
- }, [onChange]);
80009
+ }, [onChange, form]);
79989
80010
  (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
79990
80011
  // 配置国际化
79991
80012
  (0,_formily_core__WEBPACK_IMPORTED_MODULE_2__.setValidateLanguage)((0,_teamix_utils__WEBPACK_IMPORTED_MODULE_1__.getLanguage)() || 'zh-cn');
@@ -80330,27 +80351,28 @@ var typeMap = (_typeMap = {
80330
80351
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(59787);
80331
80352
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
80332
80353
  /* harmony import */ var _formily_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(61006);
80333
- /* harmony import */ var _adapterType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(40585);
80334
- /* harmony import */ var _adapterComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(30147);
80335
- /* harmony import */ var _adapterDecorator__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(61614);
80336
- /* harmony import */ var _initializeRequest__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(27913);
80337
- /* harmony import */ var _initializeReactions__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(88111);
80338
- /* harmony import */ var _initializeDataSource__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(8565);
80339
- /* harmony import */ var _initializeRules__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(30206);
80340
- /* harmony import */ var _initializeArrayCards__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(24112);
80341
- /* harmony import */ var _initializeArrayCollapse__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(68018);
80342
- /* harmony import */ var _initializeArrayTable__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(49174);
80343
- /* harmony import */ var _initializeArrayItems__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(16795);
80344
- /* harmony import */ var _initializeFormButton__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(58741);
80345
- /* harmony import */ var _initializeFormGroup__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(80734);
80346
- /* harmony import */ var _initializeFormStep__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(31763);
80347
- /* harmony import */ var _initializeFormTab__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(9201);
80348
- /* harmony import */ var _initializeFormCollapse__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(61739);
80349
- /* harmony import */ var _initializeSelectTable__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(33873);
80350
- /* harmony import */ var _reactions__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(33650);
80351
- /* harmony import */ var _fieldTypeMap__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(59687);
80352
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(51344);
80353
- /* harmony import */ var _warning__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(27324);
80354
+ /* harmony import */ var _teamix_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80653);
80355
+ /* harmony import */ var _adapterType__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(40585);
80356
+ /* harmony import */ var _adapterComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(30147);
80357
+ /* harmony import */ var _adapterDecorator__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(61614);
80358
+ /* harmony import */ var _initializeRequest__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(27913);
80359
+ /* harmony import */ var _initializeReactions__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(88111);
80360
+ /* harmony import */ var _initializeDataSource__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(8565);
80361
+ /* harmony import */ var _initializeRules__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(30206);
80362
+ /* harmony import */ var _initializeArrayCards__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(24112);
80363
+ /* harmony import */ var _initializeArrayCollapse__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(68018);
80364
+ /* harmony import */ var _initializeArrayTable__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(49174);
80365
+ /* harmony import */ var _initializeArrayItems__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(16795);
80366
+ /* harmony import */ var _initializeFormButton__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(58741);
80367
+ /* harmony import */ var _initializeFormGroup__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(80734);
80368
+ /* harmony import */ var _initializeFormStep__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(31763);
80369
+ /* harmony import */ var _initializeFormTab__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(9201);
80370
+ /* harmony import */ var _initializeFormCollapse__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(61739);
80371
+ /* harmony import */ var _initializeSelectTable__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(33873);
80372
+ /* harmony import */ var _reactions__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(33650);
80373
+ /* harmony import */ var _fieldTypeMap__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(59687);
80374
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(51344);
80375
+ /* harmony import */ var _warning__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(27324);
80354
80376
  var _excluded = ["component", "type", "name", "decorator", "decoratorProps", "dataSource", "reactions", "rules", "children", "items", "tooltip", "request", "data"];
80355
80377
 
80356
80378
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
@@ -80390,6 +80412,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
80390
80412
 
80391
80413
 
80392
80414
 
80415
+
80393
80416
 
80394
80417
 
80395
80418
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (/*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(function (_ref) {
@@ -80410,75 +80433,74 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
80410
80433
  var schemaProperties = {};
80411
80434
  schema == null ? void 0 : schema.forEach(function (item, index) {
80412
80435
  var suffix = "" + parentSuffix + index;
80413
- var newItem = (0,_warning__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z)(item);
80436
+ var newItem = (0,_warning__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .Z)(item);
80414
80437
  var _newItem = newItem,
80415
80438
  originalComponent = _newItem.component; // 根据component的不同,初始化为内置的item
80416
80439
 
80417
80440
  if (originalComponent) {
80418
- if (Object.keys(_fieldTypeMap__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .ZP).includes(originalComponent)) {// ProField接管组件
80441
+ if (Object.keys(_fieldTypeMap__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .ZP).includes(originalComponent)) {// ProField接管组件
80419
80442
  } else {
80420
80443
  // 未接管组件,判断是否为Formily组件别名
80421
80444
  newItem = _extends({}, newItem, {
80422
- component: (0,_adapterComponent__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(originalComponent)
80445
+ component: (0,_adapterComponent__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(originalComponent)
80423
80446
  });
80424
80447
  } // 初始化高级组件 - FormButtonGroup/Subimt/Reset
80425
80448
 
80426
80449
 
80427
80450
  if (['FormButtonGroup', 'Submit', 'Reset'].includes(originalComponent)) {
80428
- newItem = (0,_initializeFormButton__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z)(newItem);
80451
+ newItem = (0,_initializeFormButton__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z)(newItem);
80429
80452
  } // 初始化高级组件 - ArrayCards
80430
80453
 
80431
80454
 
80432
80455
  if (['ArrayCards'].includes(originalComponent)) {
80433
- newItem = (0,_initializeArrayCards__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .Z)(newItem);
80456
+ newItem = (0,_initializeArrayCards__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z)(newItem);
80434
80457
  } // 初始化高级组件 - ArrayCollapse
80435
80458
 
80436
80459
 
80437
80460
  if (['ArrayCollapse'].includes(originalComponent)) {
80438
- newItem = (0,_initializeArrayCollapse__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z)(newItem);
80461
+ newItem = (0,_initializeArrayCollapse__WEBPACK_IMPORTED_MODULE_17__/* ["default"] */ .Z)(newItem);
80439
80462
  } // 初始化高级组件 - ArrayTable
80440
80463
 
80441
80464
 
80442
80465
  if (['ArrayTable'].includes(originalComponent)) {
80443
- newItem = (0,_initializeArrayTable__WEBPACK_IMPORTED_MODULE_17__/* ["default"] */ .Z)(newItem);
80466
+ newItem = (0,_initializeArrayTable__WEBPACK_IMPORTED_MODULE_18__/* ["default"] */ .Z)(newItem);
80444
80467
  } // 初始化高级组件 - ArrayItems
80445
80468
 
80446
80469
 
80447
80470
  if (['ArrayItems'].includes(originalComponent)) {
80448
- newItem = (0,_initializeArrayItems__WEBPACK_IMPORTED_MODULE_18__/* ["default"] */ .Z)(newItem);
80471
+ newItem = (0,_initializeArrayItems__WEBPACK_IMPORTED_MODULE_19__/* ["default"] */ .Z)(newItem);
80449
80472
  } // 初始化布局组件 - FormStep
80450
80473
 
80451
80474
 
80452
80475
  if (['FormStep'].includes(originalComponent)) {
80453
- newItem = (0,_initializeFormStep__WEBPACK_IMPORTED_MODULE_19__/* ["default"] */ .Z)(newItem);
80476
+ newItem = (0,_initializeFormStep__WEBPACK_IMPORTED_MODULE_20__/* ["default"] */ .Z)(newItem);
80454
80477
  } // 初始化布局组件 - FormGroup
80455
80478
 
80456
80479
 
80457
80480
  if (['FormGroup'].includes(originalComponent)) {
80458
- newItem = (0,_initializeFormGroup__WEBPACK_IMPORTED_MODULE_20__/* ["default"] */ .Z)(newItem);
80481
+ newItem = (0,_initializeFormGroup__WEBPACK_IMPORTED_MODULE_21__/* ["default"] */ .Z)(newItem);
80459
80482
  } // 初始化布局组件 - FormTab
80460
80483
 
80461
80484
 
80462
80485
  if (['FormTab'].includes(originalComponent)) {
80463
- newItem = (0,_initializeFormTab__WEBPACK_IMPORTED_MODULE_21__/* ["default"] */ .Z)(newItem);
80486
+ newItem = (0,_initializeFormTab__WEBPACK_IMPORTED_MODULE_22__/* ["default"] */ .Z)(newItem);
80464
80487
  } // 初始化布局组件 - FormCollapse
80465
80488
 
80466
80489
 
80467
80490
  if (['FormCollapse'].includes(originalComponent)) {
80468
- newItem = (0,_initializeFormCollapse__WEBPACK_IMPORTED_MODULE_22__/* ["default"] */ .Z)(newItem);
80491
+ newItem = (0,_initializeFormCollapse__WEBPACK_IMPORTED_MODULE_23__/* ["default"] */ .Z)(newItem);
80469
80492
  } // 初始化选择表格 - SelectTable
80470
80493
 
80471
80494
 
80472
80495
  if (['SelectTable'].includes(originalComponent)) {
80473
- newItem = (0,_initializeSelectTable__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z)(newItem);
80496
+ newItem = (0,_initializeSelectTable__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z)(newItem);
80474
80497
  }
80475
80498
  }
80476
80499
 
80477
80500
  var _newItem2 = newItem,
80478
80501
  component = _newItem2.component,
80479
80502
  type = _newItem2.type,
80480
- _newItem2$name = _newItem2.name,
80481
- name = _newItem2$name === void 0 ? (0,_utils__WEBPACK_IMPORTED_MODULE_13__/* .getFieldName */ .Ts)(component == null ? void 0 : component.replace(/\./g, ''), suffix) : _newItem2$name,
80503
+ name = _newItem2.name,
80482
80504
  decorator = _newItem2.decorator,
80483
80505
  decoratorProps = _newItem2.decoratorProps,
80484
80506
  dataSource = _newItem2.dataSource,
@@ -80489,12 +80511,14 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
80489
80511
  tooltip = _newItem2.tooltip,
80490
80512
  request = _newItem2.request,
80491
80513
  data = _newItem2.data,
80492
- otherProps = _objectWithoutPropertiesLoose(_newItem2, _excluded); // 默认类型
80514
+ otherProps = _objectWithoutPropertiesLoose(_newItem2, _excluded); // 默认字段名
80515
+
80493
80516
 
80517
+ var defaultName = !name ? (0,_utils__WEBPACK_IMPORTED_MODULE_14__/* .getFieldName */ .Ts)(component == null ? void 0 : component.replace(/\./g, ''), suffix) : name; // 默认类型
80494
80518
 
80495
- var defaultType = (0,_adapterType__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(type, originalComponent); // 默认装饰组件
80519
+ var defaultType = (0,_adapterType__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(type, originalComponent); // 默认装饰组件
80496
80520
 
80497
- var defaultDecorator = (0,_adapterDecorator__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(decorator, originalComponent); // 默认装饰组件属性
80521
+ var defaultDecorator = (0,_adapterDecorator__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(decorator, originalComponent); // 默认装饰组件属性
80498
80522
 
80499
80523
  var tooltipProps = tooltip ? {
80500
80524
  tooltip: tooltip
@@ -80503,31 +80527,31 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
80503
80527
  var defaultDecoratorProps = _extends({}, tooltipProps, decoratorProps); // 初始化request
80504
80528
 
80505
80529
 
80506
- var _initializeRequest = (0,_initializeRequest__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(request, suffix + "r"),
80530
+ var _initializeRequest = (0,_initializeRequest__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(request, suffix + "r"),
80507
80531
  requestReactions = _initializeRequest.reactions,
80508
80532
  requestScope = _initializeRequest.scope; // 初始化dataSource
80509
80533
 
80510
80534
 
80511
- var _initializeDataSource = (0,_initializeDataSource__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(dataSource, suffix + "d"),
80535
+ var _initializeDataSource = (0,_initializeDataSource__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)(dataSource, suffix + "d"),
80512
80536
  defaultDataSource = _initializeDataSource.dataSource,
80513
80537
  dataSourceReactions = _initializeDataSource.reactions,
80514
80538
  dataSourceScope = _initializeDataSource.scope,
80515
80539
  dataSourceData = _initializeDataSource.data; // 初始化rules validator
80516
80540
 
80517
80541
 
80518
- var _initializeRules = (0,_initializeRules__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)(rules, suffix + "v"),
80542
+ var _initializeRules = (0,_initializeRules__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z)(rules, suffix + "v"),
80519
80543
  defaultRules = _initializeRules.rules,
80520
80544
  rulesScope = _initializeRules.scope; // 合并reactions,初始化reactions
80521
80545
 
80522
80546
 
80523
- var defaultReactions = (0,_initializeReactions__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(reactions, [].concat(_toConsumableArray(requestReactions), _toConsumableArray(dataSourceReactions))); // 合并scope
80547
+ var defaultReactions = (0,_initializeReactions__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(reactions, [].concat(_toConsumableArray(requestReactions), _toConsumableArray(dataSourceReactions))); // 合并scope
80524
80548
 
80525
80549
  Object.entries(_extends({}, requestScope, dataSourceScope, rulesScope)).map(function (_ref2) {
80526
80550
  var k = _ref2[0],
80527
80551
  v = _ref2[1];
80528
80552
  schemaScopeRef.current[k] = v;
80529
80553
  });
80530
- var formatParam = (0,_utils__WEBPACK_IMPORTED_MODULE_13__/* .mapSchemaName */ .Uk)(_extends({}, otherProps, {
80554
+ var formatParam = (0,_utils__WEBPACK_IMPORTED_MODULE_14__/* .mapSchemaName */ .Uk)(_extends({}, otherProps, {
80531
80555
  type: defaultType,
80532
80556
  component: component,
80533
80557
  decorator: defaultDecorator,
@@ -80547,7 +80571,9 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
80547
80571
 
80548
80572
  var recursiveItems = items ? formatSchema([items], suffix) : {}; // 配置组件属性
80549
80573
 
80550
- schemaProperties[name] = _extends({}, formatParam, recursiveProperties, recursiveItems);
80574
+ if ((0,_teamix_utils__WEBPACK_IMPORTED_MODULE_2__.isUsable)(item)) {
80575
+ schemaProperties[defaultName] = _extends({}, formatParam, recursiveProperties, recursiveItems);
80576
+ }
80551
80577
  });
80552
80578
  return schemaProperties;
80553
80579
  }, []);
@@ -80559,10 +80585,10 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
80559
80585
  }, [schema]);
80560
80586
 
80561
80587
  var mergedScope = _extends({}, scope, {
80562
- $request: _reactions__WEBPACK_IMPORTED_MODULE_11__/* .$request */ .bE,
80563
- $common: _reactions__WEBPACK_IMPORTED_MODULE_11__/* .$common */ .Wn,
80564
- $dataSource: _reactions__WEBPACK_IMPORTED_MODULE_11__/* .$dataSource */ .Sv,
80565
- $validator: _reactions__WEBPACK_IMPORTED_MODULE_11__/* .$validator */ .fn
80588
+ $request: _reactions__WEBPACK_IMPORTED_MODULE_12__/* .$request */ .bE,
80589
+ $common: _reactions__WEBPACK_IMPORTED_MODULE_12__/* .$common */ .Wn,
80590
+ $dataSource: _reactions__WEBPACK_IMPORTED_MODULE_12__/* .$dataSource */ .Sv,
80591
+ $validator: _reactions__WEBPACK_IMPORTED_MODULE_12__/* .$validator */ .fn
80566
80592
  }, schemaScopeRef.current);
80567
80593
 
80568
80594
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(SchemaField, {
@@ -82230,6 +82256,7 @@ __webpack_require__.r(__webpack_exports__);
82230
82256
  /* harmony export */ "getBorderColorClassName": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.h2),
82231
82257
  /* harmony export */ "getColor": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.Lq),
82232
82258
  /* harmony export */ "getColorClassName": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.Gd),
82259
+ /* harmony export */ "getCssVarValue": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.l9),
82233
82260
  /* harmony export */ "getDateFormat": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.mh),
82234
82261
  /* harmony export */ "getDeepValue": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.hS),
82235
82262
  /* harmony export */ "getFoldDateFormat": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.Ui),
@@ -82321,6 +82348,8 @@ __webpack_require__.r(__webpack_exports__);
82321
82348
  /* harmony import */ var _nocode__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(59047);
82322
82349
  /* harmony import */ var _templates__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(3397);
82323
82350
  /* harmony import */ var _teamix_icon__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(89227);
82351
+ var _window;
82352
+
82324
82353
 
82325
82354
 
82326
82355
 
@@ -82340,7 +82369,10 @@ __webpack_require__.r(__webpack_exports__);
82340
82369
 
82341
82370
  // 设置图标源
82342
82371
 
82343
- _teamix_icon__WEBPACK_IMPORTED_MODULE_15__/* ["default"].setConfig */ .Z.setConfig(_utils__WEBPACK_IMPORTED_MODULE_10__/* ["default"].getTeamixIconConfig */ .ZP.getTeamixIconConfig());
82372
+ if (!((_window = window) != null && _window.TEAMIXPRO_WITHOUT_ICON)) {
82373
+ _teamix_icon__WEBPACK_IMPORTED_MODULE_15__/* ["default"].setConfig */ .Z.setConfig(_utils__WEBPACK_IMPORTED_MODULE_10__/* ["default"].getTeamixIconConfig */ .ZP.getTeamixIconConfig());
82374
+ }
82375
+
82344
82376
 
82345
82377
 
82346
82378
 
@@ -82354,7 +82386,7 @@ _teamix_icon__WEBPACK_IMPORTED_MODULE_15__/* ["default"].setConfig */ .Z.setConf
82354
82386
 
82355
82387
 
82356
82388
 
82357
- var version = '1.4.6';
82389
+ var version = '1.4.9';
82358
82390
 
82359
82391
 
82360
82392
  /***/ }),
@@ -85386,11 +85418,13 @@ var ProPageHeader = function ProPageHeader(props) {
85386
85418
  var backgroundImage = image ? "url('" + image + "')" : undefined;
85387
85419
 
85388
85420
  var showList = function showList(list) {
85421
+ var _list$actions;
85422
+
85389
85423
  if (loading) {
85390
85424
  return !!list;
85391
85425
  }
85392
85426
 
85393
- return list && list.length > 0;
85427
+ return list && (list.length > 0 || (list == null ? void 0 : (_list$actions = list.actions) == null ? void 0 : _list$actions.length) > 0);
85394
85428
  };
85395
85429
 
85396
85430
  var renderTitle = function renderTitle() {
@@ -87162,7 +87196,7 @@ var Filter = function Filter(props) {
87162
87196
  btn: true
87163
87197
  }),
87164
87198
  onClick: function onClick() {
87165
- var _actionRef$current2, _actionRef$current$ge5, _actionRef$current3, _actionRef$current3$g, _actionRef$current4, _extends2;
87199
+ var _actionRef$current2, _actionRef$current$ge5, _actionRef$current3, _actionRef$current3$g, _actionRef$current4, _extends2, _actionRef$current5, _actionRef$current6, _actionRef$current6$r, _actionRef$current7, _actionRef$current8;
87166
87200
 
87167
87201
  (_actionRef$current2 = actionRef.current) == null ? void 0 : _actionRef$current2.filterDataSource == null ? void 0 : _actionRef$current2.filterDataSource(column.dataIndex); // 先获取此列的param
87168
87202
 
@@ -87181,24 +87215,18 @@ var Filter = function Filter(props) {
87181
87215
  rules: selected,
87182
87216
  params: param
87183
87217
  }, _extends2)));
87218
+ var targetPageKey = 'currentPage';
87219
+ var pageInfo = (_actionRef$current5 = actionRef.current) == null ? void 0 : _actionRef$current5.pageInfo;
87184
87220
 
87185
- if (selected.length > 0) {
87186
- var _actionRef$current5, _actionRef$current6, _actionRef$current6$r, _actionRef$current7, _actionRef$current8;
87187
-
87188
- var targetPageKey = 'currentPage';
87189
- var pageInfo = (_actionRef$current5 = actionRef.current) == null ? void 0 : _actionRef$current5.pageInfo;
87190
-
87191
- if (pageInfo && pageInfo != null && pageInfo.targetPageKey) {
87192
- targetPageKey = pageInfo == null ? void 0 : pageInfo.targetPageKey;
87193
- } // 发送请求
87221
+ if (pageInfo && pageInfo != null && pageInfo.targetPageKey) {
87222
+ targetPageKey = pageInfo == null ? void 0 : pageInfo.targetPageKey;
87223
+ } // 发送请求
87194
87224
 
87195
87225
 
87196
- (_actionRef$current6 = actionRef.current) == null ? void 0 : _actionRef$current6.request == null ? void 0 : _actionRef$current6.request((_actionRef$current6$r = {}, _actionRef$current6$r[targetPageKey] = 1, _actionRef$current6$r));
87197
- (_actionRef$current7 = actionRef.current) == null ? void 0 : _actionRef$current7.resetPage == null ? void 0 : _actionRef$current7.resetPage(); // 清空表格选择
87198
-
87199
- (_actionRef$current8 = actionRef.current) == null ? void 0 : _actionRef$current8.clearRowSelection == null ? void 0 : _actionRef$current8.clearRowSelection();
87200
- }
87226
+ (_actionRef$current6 = actionRef.current) == null ? void 0 : _actionRef$current6.request == null ? void 0 : _actionRef$current6.request((_actionRef$current6$r = {}, _actionRef$current6$r[targetPageKey] = 1, _actionRef$current6$r));
87227
+ (_actionRef$current7 = actionRef.current) == null ? void 0 : _actionRef$current7.resetPage == null ? void 0 : _actionRef$current7.resetPage(); // 清空表格选择
87201
87228
 
87229
+ (_actionRef$current8 = actionRef.current) == null ? void 0 : _actionRef$current8.clearRowSelection == null ? void 0 : _actionRef$current8.clearRowSelection();
87202
87230
  setVisible(false);
87203
87231
  }
87204
87232
  }, (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_3__.getMessage)('ok')), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_2__.Button, {
@@ -89907,6 +89935,7 @@ var processBuriedPoint = function processBuriedPoint(render, record, value, inde
89907
89935
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
89908
89936
  /* harmony import */ var _columnRender__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(97332);
89909
89937
  /* harmony import */ var _skeleton__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(53277);
89938
+ /* harmony import */ var _teamix_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(80653);
89910
89939
  var _excluded = ["filters", "dataIndex"];
89911
89940
 
89912
89941
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
@@ -89917,6 +89946,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
89917
89946
 
89918
89947
 
89919
89948
 
89949
+
89920
89950
  /**
89921
89951
  * ProColumn => Column
89922
89952
  */
@@ -89946,7 +89976,8 @@ showSkeleton, actionRef, context) {
89946
89976
 
89947
89977
  return _extends({
89948
89978
  // 金钱样式默认右对齐
89949
- align: columnProps.valueType === 'money' ? 'right' : 'left'
89979
+ align: columnProps.valueType === 'money' ? 'right' : 'left',
89980
+ wordBreak: (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_3__.getLanguage)() === 'en-us' ? 'word' : 'all'
89950
89981
  }, others, {
89951
89982
  dataIndex: dataIndex == null ? void 0 : dataIndex.toString(),
89952
89983
  title: (0,_columnRender__WEBPACK_IMPORTED_MODULE_1__/* .renderColumnsTitle */ .p)(columnProps, actionRef),
@@ -91055,6 +91086,7 @@ ProTimeline.Item = _ProTimeLineItem__WEBPACK_IMPORTED_MODULE_2__/* ["default"] *
91055
91086
  /* harmony export */ "iU": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.treeToList),
91056
91087
  /* harmony export */ "i_": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.setLocale),
91057
91088
  /* harmony export */ "jM": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.getBackgroundColorClassName),
91089
+ /* harmony export */ "l9": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.getCssVarValue),
91058
91090
  /* harmony export */ "mh": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.getDateFormat),
91059
91091
  /* harmony export */ "o2": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.isPresetColor),
91060
91092
  /* harmony export */ "oL": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.getType),
@@ -91724,6 +91756,29 @@ function getFoldDateFormat(date, type) {
91724
91756
 
91725
91757
  /***/ }),
91726
91758
 
91759
+ /***/ 73333:
91760
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
91761
+
91762
+ "use strict";
91763
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
91764
+ /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
91765
+ /* harmony export */ });
91766
+ /** 获取指定 css-var 变量值 */
91767
+ var getCssVarValue = function getCssVarValue(cssVarName, container) {
91768
+ var _window;
91769
+
91770
+ // 适配 ssr
91771
+ if (window && (_window = window) != null && _window.document) {
91772
+ var _document;
91773
+
91774
+ return window.getComputedStyle == null ? void 0 : window.getComputedStyle(container || ((_document = document) == null ? void 0 : _document.documentElement)).getPropertyValue(cssVarName).trim();
91775
+ }
91776
+ };
91777
+
91778
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (getCssVarValue);
91779
+
91780
+ /***/ }),
91781
+
91727
91782
  /***/ 97883:
91728
91783
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
91729
91784
 
@@ -91737,7 +91792,7 @@ function getFoldDateFormat(date, type) {
91737
91792
 
91738
91793
 
91739
91794
 
91740
- var getTeamixIconConfig = function getTeamixIconConfig() {
91795
+ var getTeamixIconConfig = function getTeamixIconConfig(cdnDomain) {
91741
91796
  var _window;
91742
91797
 
91743
91798
  var globalScriptUrl = (0,_globalConfig__WEBPACK_IMPORTED_MODULE_1__/* .getGlobalConfig */ .Hi)('scriptUrl');
@@ -91750,6 +91805,13 @@ var getTeamixIconConfig = function getTeamixIconConfig() {
91750
91805
  scriptUrl: [CDN_DOMAIN + "/ais-fed/as-lib/0.0.2/combo/icon.js?t=" + ((_window2 = window) == null ? void 0 : (_window2$ALIYUN_CONSO = _window2.ALIYUN_CONSOLE_CONFIG) == null ? void 0 : _window2$ALIYUN_CONSO.TIMESTAMP)],
91751
91806
  symbolPrefix: 'hybridcloud-'
91752
91807
  };
91808
+ } else if (cdnDomain) {
91809
+ var _window3, _window3$ALIYUN_CONSO;
91810
+
91811
+ return {
91812
+ scriptUrl: [cdnDomain + "/ais-fed/as-lib/0.0.2/combo/icon.js?t=" + ((_window3 = window) == null ? void 0 : (_window3$ALIYUN_CONSO = _window3.ALIYUN_CONSOLE_CONFIG) == null ? void 0 : _window3$ALIYUN_CONSO.TIMESTAMP)],
91813
+ symbolPrefix: 'hybridcloud-'
91814
+ };
91753
91815
  } // 如果全局设置了 scriptUrl
91754
91816
  else if (globalScriptUrl) {
91755
91817
  return {
@@ -91827,6 +91889,7 @@ function getGlobalConfig(key) {
91827
91889
  /* harmony export */ "Hl": () => (/* reexport safe */ _globalConfig__WEBPACK_IMPORTED_MODULE_2__.Hl),
91828
91890
  /* harmony export */ "Oz": () => (/* reexport safe */ _setTheme__WEBPACK_IMPORTED_MODULE_1__.Oz),
91829
91891
  /* harmony export */ "Qb": () => (/* reexport safe */ _globalConfig__WEBPACK_IMPORTED_MODULE_2__.Qb),
91892
+ /* harmony export */ "l9": () => (/* reexport safe */ _getCssVarValue__WEBPACK_IMPORTED_MODULE_3__.Z),
91830
91893
  /* harmony export */ "wd": () => (/* reexport safe */ _setTheme__WEBPACK_IMPORTED_MODULE_1__.wd),
91831
91894
  /* harmony export */ "wk": () => (/* reexport safe */ _getTeamixIconConfig__WEBPACK_IMPORTED_MODULE_0__.Z),
91832
91895
  /* harmony export */ "zG": () => (/* reexport safe */ _setTheme__WEBPACK_IMPORTED_MODULE_1__.zG)
@@ -91834,6 +91897,8 @@ function getGlobalConfig(key) {
91834
91897
  /* harmony import */ var _getTeamixIconConfig__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(97883);
91835
91898
  /* harmony import */ var _setTheme__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(89381);
91836
91899
  /* harmony import */ var _globalConfig__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(21161);
91900
+ /* harmony import */ var _getCssVarValue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(73333);
91901
+
91837
91902
 
91838
91903
 
91839
91904
 
@@ -92134,10 +92199,10 @@ var darkCategoryColor = {
92134
92199
  "default": ['#307AC9', '#1B9657', '#5B50BA', '#D47815', '#B0A046', '#781AD6', '#527D0E', '#0E9DAD', '#19779C', '#E04F6C', '#ffdc73', '#72808a'],
92135
92200
 
92136
92201
  /** Pure Red/党政红 */
92137
- pureRed: ['#C43F35', '#D47815', '#307AC9', '#1B9657', '#5B50BA', '#B0A046', '#781AD6', '#527D0E', '#0E9DAD', '#19779C', '#E04F6C', '#FFDC73'],
92202
+ pureRed: ['#307AC9', '#1B9657', '#5B50BA', '#D47815', '#B0A046', '#781AD6', '#527D0E', '#0E9DAD', '#19779C', '#E04F6C', '#ffdc73', '#72808a'],
92138
92203
 
92139
92204
  /** Amber/琥珀橙 */
92140
- amber: ['#C25D15', '#19779C', '#B0A046', '#1B9657', '#5B50BA', '#307AC9', '#781AD6', '#527D0E', '#0E9DAD', '#E04F6C', '#FFDC73', '#72808A'],
92205
+ amber: ['#307AC9', '#1B9657', '#5B50BA', '#D47815', '#B0A046', '#781AD6', '#527D0E', '#0E9DAD', '#19779C', '#E04F6C', '#ffdc73', '#72808a'],
92141
92206
 
92142
92207
  /** Lime/青柠绿 */
92143
92208
  lime: ['#527D0E', '#307AC9', '#0E9DAD', '#D47815', '#5B50BA', '#B0A046', '#781AD6', '#1B9657', '#19779C', '#D95777', '#FFDC73', '#72808A'],
@@ -92171,10 +92236,10 @@ var lightCategoryColor = {
92171
92236
  "default": ['#297ACC', '#43BF7E', '#8A87F5', '#F7A854', '#E8D36B', '#D48FFF', '#85BA2F', '#57CCD9', '#49ADD1', '#D95777', '#FFE9AC', '#A5B0BD'],
92172
92237
 
92173
92238
  /** Pure Red/党政红 */
92174
- pureRed: ['#CC473D', '#F7A854', '#297ACC', '#43BF7E', '#8A87F5', '#E8D36B', '#D48FFF', '#85BA2F', '#57CCD9', '#49ADD1', '#D95777', '#FFE9AC'],
92239
+ pureRed: ['#297ACC', '#43BF7E', '#8A87F5', '#F7A854', '#E8D36B', '#D48FFF', '#85BA2F', '#57CCD9', '#49ADD1', '#D95777', '#FFE9AC', '#A5B0BD'],
92175
92240
 
92176
92241
  /** Amber/琥珀橙 */
92177
- amber: ['#E37629', '#49ADD1', '#E8D36B', '#43BF7E', '#8A87F5', '#297ACC', '#D48FFF', '#85BA2F', '#57CCD9', '#D95777', '#FFE9AC', '#A5B0BD'],
92242
+ amber: ['#297ACC', '#43BF7E', '#8A87F5', '#F7A854', '#E8D36B', '#D48FFF', '#85BA2F', '#57CCD9', '#49ADD1', '#D95777', '#FFE9AC', '#A5B0BD'],
92178
92243
 
92179
92244
  /** Lime/青柠绿 */
92180
92245
  lime: ['#85BA2F', '#297ACC', '#57CCD9', '#F7A854', '#8A87F5', '#E8D36B', '#D48FFF', '#43BF7E', '#49ADD1', '#D95777', '#FFE9AC', '#A5B0BD'],
@@ -92360,6 +92425,7 @@ __webpack_require__.r(__webpack_exports__);
92360
92425
  /* harmony export */ "getBorderColorClassName": () => (/* reexport safe */ _color__WEBPACK_IMPORTED_MODULE_3__.h2),
92361
92426
  /* harmony export */ "getColor": () => (/* reexport safe */ _color__WEBPACK_IMPORTED_MODULE_3__.Lq),
92362
92427
  /* harmony export */ "getColorClassName": () => (/* reexport safe */ _color__WEBPACK_IMPORTED_MODULE_3__.Gd),
92428
+ /* harmony export */ "getCssVarValue": () => (/* reexport safe */ _global__WEBPACK_IMPORTED_MODULE_4__.l9),
92363
92429
  /* harmony export */ "getDateFormat": () => (/* reexport safe */ _date_time__WEBPACK_IMPORTED_MODULE_2__.mh),
92364
92430
  /* harmony export */ "getDeepValue": () => (/* reexport safe */ _inner__WEBPACK_IMPORTED_MODULE_0__.hS),
92365
92431
  /* harmony export */ "getFoldDateFormat": () => (/* reexport safe */ _date_time__WEBPACK_IMPORTED_MODULE_2__.Ui),
@@ -92760,37 +92826,39 @@ function doCommonRequest(config, context, history, extraParams) {
92760
92826
  while (1) {
92761
92827
  switch (_context2.prev = _context2.next) {
92762
92828
  case 0:
92829
+ beforeRequestContext = false;
92830
+
92763
92831
  if (!beforeRequest) {
92764
- _context2.next = 13;
92832
+ _context2.next = 14;
92765
92833
  break;
92766
92834
  }
92767
92835
 
92768
- _context2.prev = 1;
92769
- _context2.next = 4;
92836
+ _context2.prev = 2;
92837
+ _context2.next = 5;
92770
92838
  return resolveMaybePromiseMethod(beforeRequest, context);
92771
92839
 
92772
- case 4:
92840
+ case 5:
92773
92841
  beforeRequestContext = _context2.sent;
92774
- _context2.next = 10;
92842
+ _context2.next = 11;
92775
92843
  break;
92776
92844
 
92777
- case 7:
92778
- _context2.prev = 7;
92779
- _context2.t0 = _context2["catch"](1);
92780
- beforeRequestContext = false;
92845
+ case 8:
92846
+ _context2.prev = 8;
92847
+ _context2.t0 = _context2["catch"](2);
92848
+ console.warn(_context2.t0);
92781
92849
 
92782
- case 10:
92850
+ case 11:
92783
92851
  if (!(beforeRequestContext === false)) {
92784
- _context2.next = 13;
92852
+ _context2.next = 14;
92785
92853
  break;
92786
92854
  }
92787
92855
 
92788
92856
  reject(false);
92789
92857
  return _context2.abrupt("return");
92790
92858
 
92791
- case 13:
92859
+ case 14:
92792
92860
  if (!(!url && !customRequest)) {
92793
- _context2.next = 17;
92861
+ _context2.next = 18;
92794
92862
  break;
92795
92863
  }
92796
92864
 
@@ -92801,7 +92869,7 @@ function doCommonRequest(config, context, history, extraParams) {
92801
92869
  resolve(true);
92802
92870
  return _context2.abrupt("return");
92803
92871
 
92804
- case 17:
92872
+ case 18:
92805
92873
  requestContext = Object.assign({}, context, typeof beforeRequestContext === 'object' ? beforeRequestContext : {});
92806
92874
  paramsWithContext = Object.assign({}, extraParams, handleExtendParmas(extendParams, requestContext), params, data);
92807
92875
  reuqestParams = (0,_getTargetValue__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)(paramsWithContext, requestContext);
@@ -92840,7 +92908,7 @@ function doCommonRequest(config, context, history, extraParams) {
92840
92908
  }, requestContext));
92841
92909
  };
92842
92910
 
92843
- requestResult = customRequest ? customRequest(context) : (0,_request__WEBPACK_IMPORTED_MODULE_2__/* .request */ .WY)(_extends({}, config, requestConfig));
92911
+ requestResult = customRequest ? customRequest(requestContext) : (0,_request__WEBPACK_IMPORTED_MODULE_2__/* .request */ .WY)(_extends({}, config, requestConfig));
92844
92912
  requestResult.then( /*#__PURE__*/function () {
92845
92913
  var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(response) {
92846
92914
  var res;
@@ -92871,12 +92939,12 @@ function doCommonRequest(config, context, history, extraParams) {
92871
92939
  reject(error);
92872
92940
  });
92873
92941
 
92874
- case 25:
92942
+ case 26:
92875
92943
  case "end":
92876
92944
  return _context2.stop();
92877
92945
  }
92878
92946
  }
92879
- }, _callee2, null, [[1, 7]]);
92947
+ }, _callee2, null, [[2, 8]]);
92880
92948
  }));
92881
92949
 
92882
92950
  return function (_x, _x2) {