@teamix/pro 1.0.22 → 1.0.23

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/all.js CHANGED
@@ -47360,17 +47360,48 @@ function eventHandler(action, onTrigger) {
47360
47360
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
47361
47361
  /* harmony export */ "w": () => (/* binding */ useConfirmAction)
47362
47362
  /* harmony export */ });
47363
- /* harmony import */ var _dialog__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73734);
47363
+ /* harmony import */ var _teamix_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80653);
47364
+ /* harmony import */ var _dialog__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(73734);
47365
+
47364
47366
 
47365
47367
  function useConfirmAction(action, context) {
47366
- return (0,_dialog__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(Object.assign({
47367
- dialogQuickShowType: 'confirm'
47368
+ return (0,_dialog__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)((0,_teamix_utils__WEBPACK_IMPORTED_MODULE_0__.deepMerge)({
47369
+ dialogQuickShowType: 'confirm',
47370
+ messageProps: {
47371
+ type: 'warning'
47372
+ }
47368
47373
  }, action), context);
47369
47374
  }
47370
47375
  /* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ((/* unused pure expression or super */ null && (useConfirmAction)));
47371
47376
 
47372
47377
  /***/ }),
47373
47378
 
47379
+ /***/ 56020:
47380
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
47381
+
47382
+ "use strict";
47383
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
47384
+ /* harmony export */ "B": () => (/* binding */ useDangerConfirmAction)
47385
+ /* harmony export */ });
47386
+ /* harmony import */ var _teamix_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80653);
47387
+ /* harmony import */ var _dialog__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(73734);
47388
+
47389
+
47390
+ function useDangerConfirmAction(action, context) {
47391
+ return (0,_dialog__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)((0,_teamix_utils__WEBPACK_IMPORTED_MODULE_0__.deepMerge)({
47392
+ dialogQuickShowType: 'confirm',
47393
+ messageProps: {
47394
+ type: 'warning'
47395
+ },
47396
+ okProps: {
47397
+ warning: true
47398
+ }
47399
+ }, action), context);
47400
+ }
47401
+ /* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ((/* unused pure expression or super */ null && (useDangerConfirmAction)));
47402
+
47403
+ /***/ }),
47404
+
47374
47405
  /***/ 30549:
47375
47406
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
47376
47407
 
@@ -47656,13 +47687,16 @@ function useDialogFormAction(action, context) {
47656
47687
  /* harmony export */ });
47657
47688
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1024);
47658
47689
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
47659
- /* harmony import */ var _alicloudfe_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27792);
47660
- /* harmony import */ var _alicloudfe_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_1__);
47661
- /* harmony import */ var _teamix_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80653);
47662
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(34296);
47663
- /* harmony import */ var _request__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(54390);
47690
+ /* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(25522);
47691
+ /* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_router_dom__WEBPACK_IMPORTED_MODULE_1__);
47692
+ /* harmony import */ var _alicloudfe_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(27792);
47693
+ /* harmony import */ var _alicloudfe_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_2__);
47694
+ /* harmony import */ var _teamix_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(80653);
47695
+ /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(34296);
47696
+ /* harmony import */ var _link__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(72863);
47697
+ /* harmony import */ var _request__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(54390);
47664
47698
  var _excluded = ["url", "method", "params", "data", "extendParams", "successMsg", "errorMsg", "formatParams", "formatResult", "onSuccess", "onError"],
47665
- _excluded2 = ["title", "content", "component", "schema", "onFinish", "dialogType", "dialogQuickShowType", "messageType", "beforeRequest", "onTrigger"];
47699
+ _excluded2 = ["title", "content", "component", "schema", "onFinish", "dialogType", "dialogQuickShowType", "messageType", "beforeRequest", "onTrigger", "link"];
47666
47700
 
47667
47701
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
47668
47702
  try {
@@ -47856,6 +47890,8 @@ function _arrayWithHoles(arr) {
47856
47890
 
47857
47891
 
47858
47892
 
47893
+
47894
+
47859
47895
  function addContextForReactNode(content, context) {
47860
47896
  if (typeof content === 'function' && context) {
47861
47897
  return content(context);
@@ -47871,7 +47907,8 @@ function useDialogAction(action, context) {
47871
47907
  loading = _useState2[0],
47872
47908
  setLoading = _useState2[1];
47873
47909
 
47874
- return _objectSpread({}, (0,_base__WEBPACK_IMPORTED_MODULE_4__/* .eventHandler */ .$)(action, function () {
47910
+ var history = (0,react_router_dom__WEBPACK_IMPORTED_MODULE_1__.useHistory)();
47911
+ return _objectSpread({}, (0,_base__WEBPACK_IMPORTED_MODULE_6__/* .eventHandler */ .$)(action, function () {
47875
47912
  var url = action.url,
47876
47913
  method = action.method,
47877
47914
  params = action.params,
@@ -47885,7 +47922,7 @@ function useDialogAction(action, context) {
47885
47922
  onError = action.onError,
47886
47923
  others = _objectWithoutProperties(action, _excluded);
47887
47924
 
47888
- var _getTargetValue = (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_2__.getTargetValue)(others, context),
47925
+ var _getTargetValue = (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_3__.getTargetValue)(others, context),
47889
47926
  title = _getTargetValue.title,
47890
47927
  content = _getTargetValue.content,
47891
47928
  Component = _getTargetValue.component,
@@ -47897,9 +47934,10 @@ function useDialogAction(action, context) {
47897
47934
  messageType = _getTargetValue$messa === void 0 ? 'notice' : _getTargetValue$messa,
47898
47935
  beforeRequest = _getTargetValue.beforeRequest,
47899
47936
  onTrigger = _getTargetValue.onTrigger,
47937
+ link = _getTargetValue.link,
47900
47938
  dialogOtherProps = _objectWithoutProperties(_getTargetValue, _excluded2);
47901
47939
 
47902
- var dialogMethod = dialogType === 'drawer' ? _alicloudfe_components__WEBPACK_IMPORTED_MODULE_1__.Drawer : _alicloudfe_components__WEBPACK_IMPORTED_MODULE_1__.Dialog;
47940
+ var dialogMethod = dialogType === 'drawer' ? _alicloudfe_components__WEBPACK_IMPORTED_MODULE_2__.Drawer : _alicloudfe_components__WEBPACK_IMPORTED_MODULE_2__.Dialog;
47903
47941
  var dialogProps = dialogType === 'drawer' ? {} : {
47904
47942
  type: dialogQuickShowType,
47905
47943
  messageProps: {
@@ -47915,31 +47953,42 @@ function useDialogAction(action, context) {
47915
47953
  while (1) {
47916
47954
  switch (_context.prev = _context.next) {
47917
47955
  case 0:
47956
+ if (!link) {
47957
+ _context.next = 5;
47958
+ break;
47959
+ }
47960
+
47961
+ (0,_link__WEBPACK_IMPORTED_MODULE_4__/* .goToLink */ .iF)(link, history);
47962
+ resolve(true);
47963
+ onFinish && onFinish();
47964
+ return _context.abrupt("return");
47965
+
47966
+ case 5:
47918
47967
  if (!beforeRequest) {
47919
- _context.next = 8;
47968
+ _context.next = 13;
47920
47969
  break;
47921
47970
  }
47922
47971
 
47923
- _context.next = 3;
47972
+ _context.next = 8;
47924
47973
  return beforeRequest();
47925
47974
 
47926
- case 3:
47975
+ case 8:
47927
47976
  res = _context.sent;
47928
47977
 
47929
47978
  if (!(res === false)) {
47930
- _context.next = 7;
47979
+ _context.next = 12;
47931
47980
  break;
47932
47981
  }
47933
47982
 
47934
47983
  resolve(false);
47935
47984
  return _context.abrupt("return");
47936
47985
 
47937
- case 7:
47986
+ case 12:
47938
47987
  beforeRequestContext = res;
47939
47988
 
47940
- case 8:
47989
+ case 13:
47941
47990
  if (url) {
47942
- _context.next = 12;
47991
+ _context.next = 17;
47943
47992
  break;
47944
47993
  }
47945
47994
 
@@ -47947,31 +47996,31 @@ function useDialogAction(action, context) {
47947
47996
  onFinish && onFinish();
47948
47997
  return _context.abrupt("return");
47949
47998
 
47950
- case 12:
47999
+ case 17:
47951
48000
  setLoading(true);
47952
- _context.prev = 13;
47953
- _context.next = 16;
47954
- return (0,_request__WEBPACK_IMPORTED_MODULE_3__/* .doRequest */ .NE)(action, Object.assign({}, context, beforeRequestContext));
48001
+ _context.prev = 18;
48002
+ _context.next = 21;
48003
+ return (0,_request__WEBPACK_IMPORTED_MODULE_5__/* .doRequest */ .NE)(action, Object.assign({}, context, beforeRequestContext));
47955
48004
 
47956
- case 16:
48005
+ case 21:
47957
48006
  setLoading(false);
47958
48007
  resolve(true);
47959
48008
  onFinish && onFinish();
47960
- _context.next = 25;
48009
+ _context.next = 30;
47961
48010
  break;
47962
48011
 
47963
- case 21:
47964
- _context.prev = 21;
47965
- _context.t0 = _context["catch"](13);
48012
+ case 26:
48013
+ _context.prev = 26;
48014
+ _context.t0 = _context["catch"](18);
47966
48015
  setLoading(false);
47967
48016
  resolve(false);
47968
48017
 
47969
- case 25:
48018
+ case 30:
47970
48019
  case "end":
47971
48020
  return _context.stop();
47972
48021
  }
47973
48022
  }
47974
- }, _callee, null, [[13, 21]]);
48023
+ }, _callee, null, [[18, 26]]);
47975
48024
  }));
47976
48025
 
47977
48026
  return function (_x) {
@@ -47997,7 +48046,7 @@ function useDialogAction(action, context) {
47997
48046
  onOk: onOk,
47998
48047
  title: addContextForReactNode(title, dialogContext),
47999
48048
  content: Component ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Component, _objectSpread({}, componentProps)) : addContextForReactNode(content, dialogContext),
48000
- closeable: loading
48049
+ closeable: !loading
48001
48050
  }, dialogProps), dialogOtherProps));
48002
48051
  store.hide = ret.hide;
48003
48052
  }));
@@ -48042,6 +48091,29 @@ function useDrawerAction(action, context) {
48042
48091
 
48043
48092
  /***/ }),
48044
48093
 
48094
+ /***/ 86149:
48095
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
48096
+
48097
+ "use strict";
48098
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
48099
+ /* harmony export */ "O": () => (/* binding */ useErrorAction)
48100
+ /* harmony export */ });
48101
+ /* harmony import */ var _teamix_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80653);
48102
+ /* harmony import */ var _dialog__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(73734);
48103
+
48104
+
48105
+ function useErrorAction(action, context) {
48106
+ return (0,_dialog__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)((0,_teamix_utils__WEBPACK_IMPORTED_MODULE_0__.deepMerge)({
48107
+ dialogQuickShowType: 'confirm',
48108
+ messageProps: {
48109
+ type: 'error'
48110
+ }
48111
+ }, action), context);
48112
+ }
48113
+ /* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ((/* unused pure expression or super */ null && (useErrorAction)));
48114
+
48115
+ /***/ }),
48116
+
48045
48117
  /***/ 18297:
48046
48118
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
48047
48119
 
@@ -48066,9 +48138,12 @@ function useDrawerAction(action, context) {
48066
48138
  /* harmony import */ var _request__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(54390);
48067
48139
  /* harmony import */ var _dialog__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(73734);
48068
48140
  /* harmony import */ var _confirm__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(25900);
48069
- /* harmony import */ var _dialog_form__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(30549);
48070
- /* harmony import */ var _drawer__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(51369);
48071
- /* harmony import */ var _drawer_form__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(56816);
48141
+ /* harmony import */ var _danger_confirm__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(56020);
48142
+ /* harmony import */ var _notice__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(34892);
48143
+ /* harmony import */ var _error__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(86149);
48144
+ /* harmony import */ var _dialog_form__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(30549);
48145
+ /* harmony import */ var _drawer__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(51369);
48146
+ /* harmony import */ var _drawer_form__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(56816);
48072
48147
  var _excluded = ["type"],
48073
48148
  _excluded2 = ["config", "icon", "iconSize", "type", "context", "children", "visible", "onClick"],
48074
48149
  _excluded3 = ["icon", "iconSize", "label", "actions", "children", "context", "type"],
@@ -48214,6 +48289,9 @@ function _objectWithoutPropertiesLoose(source, excluded) {
48214
48289
 
48215
48290
 
48216
48291
 
48292
+
48293
+
48294
+
48217
48295
  var RegistedActions = new Map();
48218
48296
  function registerActionHandler(id, extendActionId, defaultConfig) {
48219
48297
  RegistedActions.set(id, {
@@ -48234,7 +48312,7 @@ var useAction = function useAction(config, context) {
48234
48312
  }
48235
48313
 
48236
48314
  if (type === 'link') {
48237
- return (0,_link__WEBPACK_IMPORTED_MODULE_5__/* .useLinkAction */ .R)(others, context);
48315
+ return (0,_link__WEBPACK_IMPORTED_MODULE_5__/* .useLinkAction */ .RS)(others, context);
48238
48316
  }
48239
48317
 
48240
48318
  if (type === 'dialog') {
@@ -48245,16 +48323,28 @@ var useAction = function useAction(config, context) {
48245
48323
  return (0,_confirm__WEBPACK_IMPORTED_MODULE_8__/* .useConfirmAction */ .w)(others, context);
48246
48324
  }
48247
48325
 
48326
+ if (type === 'danger-confirm') {
48327
+ return (0,_danger_confirm__WEBPACK_IMPORTED_MODULE_9__/* .useDangerConfirmAction */ .B)(others, context);
48328
+ }
48329
+
48330
+ if (type === 'notice') {
48331
+ return (0,_notice__WEBPACK_IMPORTED_MODULE_10__/* .useNoticeAction */ ._)(others, context);
48332
+ }
48333
+
48334
+ if (type === 'error') {
48335
+ return (0,_error__WEBPACK_IMPORTED_MODULE_11__/* .useErrorAction */ .O)(others, context);
48336
+ }
48337
+
48248
48338
  if (type === 'dialog-form') {
48249
- return (0,_dialog_form__WEBPACK_IMPORTED_MODULE_9__/* .useDialogFormAction */ .W)(others, context);
48339
+ return (0,_dialog_form__WEBPACK_IMPORTED_MODULE_12__/* .useDialogFormAction */ .W)(others, context);
48250
48340
  }
48251
48341
 
48252
48342
  if (type === 'drawer') {
48253
- return (0,_drawer__WEBPACK_IMPORTED_MODULE_10__/* .useDrawerAction */ .T)(others, context);
48343
+ return (0,_drawer__WEBPACK_IMPORTED_MODULE_13__/* .useDrawerAction */ .T)(others, context);
48254
48344
  }
48255
48345
 
48256
48346
  if (type === 'drawer-form') {
48257
- return (0,_drawer_form__WEBPACK_IMPORTED_MODULE_11__/* .useDrawerFormAction */ .R)(others, context);
48347
+ return (0,_drawer_form__WEBPACK_IMPORTED_MODULE_14__/* .useDrawerFormAction */ .R)(others, context);
48258
48348
  }
48259
48349
 
48260
48350
  var registedAction = RegistedActions.get(type);
@@ -48444,7 +48534,8 @@ function ActionGroup(props) {
48444
48534
 
48445
48535
  "use strict";
48446
48536
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
48447
- /* harmony export */ "R": () => (/* binding */ useLinkAction)
48537
+ /* harmony export */ "iF": () => (/* binding */ goToLink),
48538
+ /* harmony export */ "RS": () => (/* binding */ useLinkAction)
48448
48539
  /* harmony export */ });
48449
48540
  /* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25522);
48450
48541
  /* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_router_dom__WEBPACK_IMPORTED_MODULE_0__);
@@ -48506,6 +48597,23 @@ function _defineProperty(obj, key, value) {
48506
48597
 
48507
48598
 
48508
48599
 
48600
+ function goToLink(link, history) {
48601
+ var to = link.to,
48602
+ search = link.search,
48603
+ hash = link.hash,
48604
+ blank = link.blank;
48605
+
48606
+ if (blank) {
48607
+ window.open("".concat(to).concat(search ? "?".concat(search) : '').concat(hash ? "#".concat(hash) : ''));
48608
+ return;
48609
+ }
48610
+
48611
+ history.push({
48612
+ pathname: to,
48613
+ search: search,
48614
+ hash: hash
48615
+ });
48616
+ }
48509
48617
  function useLinkAction(action, context) {
48510
48618
  var history = (0,react_router_dom__WEBPACK_IMPORTED_MODULE_0__.useHistory)();
48511
48619
 
@@ -48516,22 +48624,41 @@ function useLinkAction(action, context) {
48516
48624
  blank = _getTargetValue.blank;
48517
48625
 
48518
48626
  return _objectSpread({}, (0,_base__WEBPACK_IMPORTED_MODULE_2__/* .eventHandler */ .$)(action, function () {
48519
- if (blank) {
48520
- window.open("".concat(to).concat(search ? "?".concat(search) : '').concat(hash ? "#".concat(hash) : ''));
48521
- return;
48522
- }
48523
-
48524
- history.push({
48525
- pathname: to,
48627
+ goToLink({
48628
+ to: to,
48526
48629
  search: search,
48527
- hash: hash
48528
- });
48630
+ hash: hash,
48631
+ blank: blank
48632
+ }, history);
48529
48633
  }));
48530
48634
  }
48531
48635
  /* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ((/* unused pure expression or super */ null && (useLinkAction)));
48532
48636
 
48533
48637
  /***/ }),
48534
48638
 
48639
+ /***/ 34892:
48640
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
48641
+
48642
+ "use strict";
48643
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
48644
+ /* harmony export */ "_": () => (/* binding */ useNoticeAction)
48645
+ /* harmony export */ });
48646
+ /* harmony import */ var _teamix_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80653);
48647
+ /* harmony import */ var _dialog__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(73734);
48648
+
48649
+
48650
+ function useNoticeAction(action, context) {
48651
+ return (0,_dialog__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)((0,_teamix_utils__WEBPACK_IMPORTED_MODULE_0__.deepMerge)({
48652
+ dialogQuickShowType: 'confirm',
48653
+ messageProps: {
48654
+ type: 'notice'
48655
+ }
48656
+ }, action), context);
48657
+ }
48658
+ /* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ((/* unused pure expression or super */ null && (useNoticeAction)));
48659
+
48660
+ /***/ }),
48661
+
48535
48662
  /***/ 54390:
48536
48663
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
48537
48664
 
@@ -63466,31 +63593,25 @@ var RadioItem = _alicloudfe_components__WEBPACK_IMPORTED_MODULE_0__.Menu.RadioIt
63466
63593
  var cls = (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_2__.baseClass)('teamix-pro-table-toolbar-icon');
63467
63594
 
63468
63595
  var DensityIcon = function DensityIcon(props) {
63469
- var _actionRef$current3, _actionRef$current3$o;
63470
-
63471
63596
  var actionRef = props.actionRef;
63472
63597
 
63473
63598
  var _useState = (0,react__WEBPACK_IMPORTED_MODULE_3__.useState)('medium'),
63474
63599
  _useState2 = _slicedToArray(_useState, 2),
63475
63600
  size = _useState2[0],
63476
- setSize = _useState2[1];
63601
+ setSize = _useState2[1]; // const [fullscreen, setFullscreen] = useState<boolean>(false);
63602
+ // tooltip 开关
63603
+
63477
63604
 
63478
63605
  var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_3__.useState)(false),
63479
63606
  _useState4 = _slicedToArray(_useState3, 2),
63480
- fullscreen = _useState4[0],
63481
- setFullscreen = _useState4[1]; // tooltip 开关
63607
+ tooltipVisible = _useState4[0],
63608
+ setTooltipVisible = _useState4[1]; // dropdown 开关
63482
63609
 
63483
63610
 
63484
63611
  var _useState5 = (0,react__WEBPACK_IMPORTED_MODULE_3__.useState)(false),
63485
63612
  _useState6 = _slicedToArray(_useState5, 2),
63486
- tooltipVisible = _useState6[0],
63487
- setTooltipVisible = _useState6[1]; // dropdown 开关
63488
-
63489
-
63490
- var _useState7 = (0,react__WEBPACK_IMPORTED_MODULE_3__.useState)(false),
63491
- _useState8 = _slicedToArray(_useState7, 2),
63492
- dropdownVisible = _useState8[0],
63493
- setDropdownVisible = _useState8[1]; // 设置大小
63613
+ dropdownVisible = _useState6[0],
63614
+ setDropdownVisible = _useState6[1]; // 设置大小
63494
63615
 
63495
63616
 
63496
63617
  var radioOnchange = function radioOnchange(mode) {
@@ -63498,20 +63619,21 @@ var DensityIcon = function DensityIcon(props) {
63498
63619
 
63499
63620
  setSize(mode);
63500
63621
  (_actionRef$current = actionRef.current) === null || _actionRef$current === void 0 ? void 0 : (_actionRef$current$se = _actionRef$current.setSize) === null || _actionRef$current$se === void 0 ? void 0 : _actionRef$current$se.call(_actionRef$current, mode);
63501
- }; // 销毁监听函数
63502
-
63503
-
63504
- (0,react__WEBPACK_IMPORTED_MODULE_3__.useEffect)(function () {
63505
- return function () {
63506
- var _actionRef$current2, _actionRef$current2$o;
63507
-
63508
- (_actionRef$current2 = actionRef.current) === null || _actionRef$current2 === void 0 ? void 0 : (_actionRef$current2$o = _actionRef$current2.off) === null || _actionRef$current2$o === void 0 ? void 0 : _actionRef$current2$o.call(_actionRef$current2, 'densityIcon');
63509
- };
63510
- }, []); // 监听全屏变化
63622
+ }; // // 销毁监听函数
63623
+ // useEffect(() => {
63624
+ // return () => {
63625
+ // actionRef.current?.off?.('densityIcon');
63626
+ // };
63627
+ // }, []);
63628
+ // // 监听全屏变化
63629
+ // actionRef.current?.on?.(
63630
+ // (state: boolean) => {
63631
+ // setFullscreen(state);
63632
+ // },
63633
+ // 'fullScreenState',
63634
+ // 'densityIcon',
63635
+ // );
63511
63636
 
63512
- (_actionRef$current3 = actionRef.current) === null || _actionRef$current3 === void 0 ? void 0 : (_actionRef$current3$o = _actionRef$current3.on) === null || _actionRef$current3$o === void 0 ? void 0 : _actionRef$current3$o.call(_actionRef$current3, function (state) {
63513
- setFullscreen(state);
63514
- }, 'fullScreenState', 'densityIcon');
63515
63637
 
63516
63638
  var renderDropdown = function renderDropdown() {
63517
63639
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("span", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_0__.Dropdown // safeNode={() => sizeMenuRef.current || document}
@@ -63547,21 +63669,20 @@ var DensityIcon = function DensityIcon(props) {
63547
63669
  }, (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_2__.getMessage)('compact'))))));
63548
63670
  };
63549
63671
 
63550
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_0__.Balloon.Tooltip, {
63551
- trigger: renderDropdown(),
63552
- align: fullscreen ? 'b' : 't',
63553
- popupProps: {
63554
- offset: fullscreen ? [5, 20] : [5, -18],
63555
- animation: {
63556
- "in": 'fadeIn',
63557
- out: 'fadeOut'
63558
- },
63559
- visible: tooltipVisible && !dropdownVisible,
63560
- onVisibleChange: function onVisibleChange(state) {
63561
- setTooltipVisible(state);
63562
- }
63563
- }
63564
- }, (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_2__.getMessage)('density'));
63672
+ return renderDropdown(); // <Balloon.Tooltip
63673
+ // trigger={renderDropdown()}
63674
+ // align={fullscreen ? 'b' : 't'}
63675
+ // popupProps={{
63676
+ // offset: fullscreen ? [5, 20] : [5, -18],
63677
+ // animation: { in: 'fadeIn', out: 'fadeOut' },
63678
+ // visible: tooltipVisible && !dropdownVisible,
63679
+ // onVisibleChange: (state) => {
63680
+ // setTooltipVisible(state);
63681
+ // },
63682
+ // }}
63683
+ // >
63684
+ // {getMessage('density')}
63685
+ // </Balloon.Tooltip>
63565
63686
  };
63566
63687
 
63567
63688
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (DensityIcon);
@@ -63706,8 +63827,8 @@ function _defineProperty(obj, key, value) {
63706
63827
 
63707
63828
 
63708
63829
 
63709
- var CheckboxItem = _alicloudfe_components__WEBPACK_IMPORTED_MODULE_0__.Menu.CheckboxItem;
63710
- var Tooltip = _alicloudfe_components__WEBPACK_IMPORTED_MODULE_0__.Balloon.Tooltip;
63830
+ var CheckboxItem = _alicloudfe_components__WEBPACK_IMPORTED_MODULE_0__.Menu.CheckboxItem; // const { Tooltip } = Balloon;
63831
+
63711
63832
  var cls = (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_2__.baseClass)('teamix-pro-table-toolbar-filter-column');
63712
63833
 
63713
63834
  var processColumns = function processColumns(columns) {
@@ -63723,8 +63844,6 @@ var processColumns = function processColumns(columns) {
63723
63844
  };
63724
63845
 
63725
63846
  var FilterColumnIcon = function FilterColumnIcon(props) {
63726
- var _actionRef$current2, _actionRef$current2$o;
63727
-
63728
63847
  var _props$columns = props.columns,
63729
63848
  columns = _props$columns === void 0 ? [] : _props$columns,
63730
63849
  actionRef = props.actionRef;
@@ -63742,24 +63861,20 @@ var FilterColumnIcon = function FilterColumnIcon(props) {
63742
63861
  var _useState5 = (0,react__WEBPACK_IMPORTED_MODULE_3__.useState)(processColumns(columns)),
63743
63862
  _useState6 = _slicedToArray(_useState5, 2),
63744
63863
  newColumns = _useState6[0],
63745
- setNewColumns = _useState6[1];
63864
+ setNewColumns = _useState6[1]; // const [fullscreen, setFullscreen] = useState<boolean>(false);
63865
+ // tooltip 开关
63866
+
63746
63867
 
63747
63868
  var _useState7 = (0,react__WEBPACK_IMPORTED_MODULE_3__.useState)(false),
63748
63869
  _useState8 = _slicedToArray(_useState7, 2),
63749
- fullscreen = _useState8[0],
63750
- setFullscreen = _useState8[1]; // tooltip 开关
63870
+ tooltipVisible = _useState8[0],
63871
+ setTooltipVisible = _useState8[1]; // dropdown 开关
63751
63872
 
63752
63873
 
63753
63874
  var _useState9 = (0,react__WEBPACK_IMPORTED_MODULE_3__.useState)(false),
63754
63875
  _useState10 = _slicedToArray(_useState9, 2),
63755
- tooltipVisible = _useState10[0],
63756
- setTooltipVisible = _useState10[1]; // dropdown 开关
63757
-
63758
-
63759
- var _useState11 = (0,react__WEBPACK_IMPORTED_MODULE_3__.useState)(false),
63760
- _useState12 = _slicedToArray(_useState11, 2),
63761
- dropdownVisible = _useState12[0],
63762
- setDropdownVisible = _useState12[1];
63876
+ dropdownVisible = _useState10[0],
63877
+ setDropdownVisible = _useState10[1];
63763
63878
 
63764
63879
  (0,react__WEBPACK_IMPORTED_MODULE_3__.useEffect)(function () {
63765
63880
  setNewColumns(processColumns(columns));
@@ -63769,19 +63884,21 @@ var FilterColumnIcon = function FilterColumnIcon(props) {
63769
63884
  // setFullscreen(actionRef?.current?.getState?.().fullScreenState ?? false);
63770
63885
  // }, 0)
63771
63886
  // }, [])
63772
- // 销毁监听函数
63773
-
63774
- (0,react__WEBPACK_IMPORTED_MODULE_3__.useEffect)(function () {
63775
- return function () {
63776
- var _actionRef$current, _actionRef$current$of;
63777
-
63778
- (_actionRef$current = actionRef.current) === null || _actionRef$current === void 0 ? void 0 : (_actionRef$current$of = _actionRef$current.off) === null || _actionRef$current$of === void 0 ? void 0 : _actionRef$current$of.call(_actionRef$current, 'filterColumnIcon');
63779
- };
63780
- }, []); // 监听全屏变化
63781
-
63782
- (_actionRef$current2 = actionRef.current) === null || _actionRef$current2 === void 0 ? void 0 : (_actionRef$current2$o = _actionRef$current2.on) === null || _actionRef$current2$o === void 0 ? void 0 : _actionRef$current2$o.call(_actionRef$current2, function (state) {
63783
- setFullscreen(state);
63784
- }, 'fullScreenState', 'filterColumnIcon'); // 全选
63887
+ // // 销毁监听函数
63888
+ // useEffect(() => {
63889
+ // return () => {
63890
+ // actionRef.current?.off?.('filterColumnIcon');
63891
+ // };
63892
+ // }, []);
63893
+ // // 监听全屏变化
63894
+ // actionRef.current?.on?.(
63895
+ // (state: boolean) => {
63896
+ // setFullscreen(state);
63897
+ // },
63898
+ // 'fullScreenState',
63899
+ // 'filterColumnIcon',
63900
+ // );
63901
+ // 全选
63785
63902
 
63786
63903
  var onChangeAllColumns = function onChangeAllColumns(check) {
63787
63904
  setAllVisible(check);
@@ -63851,11 +63968,11 @@ var FilterColumnIcon = function FilterColumnIcon(props) {
63851
63968
 
63852
63969
 
63853
63970
  var notifyTableRender = function notifyTableRender(columns) {
63854
- var _actionRef$current3, _actionRef$current3$s;
63971
+ var _actionRef$current, _actionRef$current$se;
63855
63972
 
63856
63973
  calculateSelectAllState(columns);
63857
63974
  setNewColumns(columns);
63858
- (_actionRef$current3 = actionRef.current) === null || _actionRef$current3 === void 0 ? void 0 : (_actionRef$current3$s = _actionRef$current3.setColumn) === null || _actionRef$current3$s === void 0 ? void 0 : _actionRef$current3$s.call(_actionRef$current3, columns);
63975
+ (_actionRef$current = actionRef.current) === null || _actionRef$current === void 0 ? void 0 : (_actionRef$current$se = _actionRef$current.setColumn) === null || _actionRef$current$se === void 0 ? void 0 : _actionRef$current$se.call(_actionRef$current, columns);
63859
63976
  }; // 计算全选状态
63860
63977
 
63861
63978
 
@@ -63918,7 +64035,8 @@ var FilterColumnIcon = function FilterColumnIcon(props) {
63918
64035
  var _newColumns$find;
63919
64036
 
63920
64037
  var dataIndex = _ref3.dataIndex,
63921
- title = _ref3.title;
64038
+ title = _ref3.title,
64039
+ columnFiltersDisabled = _ref3.columnFiltersDisabled;
63922
64040
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(CheckboxItem, {
63923
64041
  key: index,
63924
64042
  checked: (_newColumns$find = newColumns.find(function (_ref4) {
@@ -63927,20 +64045,21 @@ var FilterColumnIcon = function FilterColumnIcon(props) {
63927
64045
  })) === null || _newColumns$find === void 0 ? void 0 : _newColumns$find.columnFilters,
63928
64046
  onChange: function onChange(check) {
63929
64047
  return onChangeColumns(check, dataIndex);
63930
- }
64048
+ },
64049
+ disabled: columnFiltersDisabled
63931
64050
  }, title, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("div", {
63932
64051
  className: cls({
63933
64052
  sort: true
63934
64053
  })
63935
64054
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_teamix_icon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, {
63936
64055
  size: "small",
63937
- type: "swap-down-line",
64056
+ type: "arrow-down-line",
63938
64057
  onClick: function onClick(e) {
63939
64058
  return moveDown(e, dataIndex);
63940
64059
  }
63941
64060
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_teamix_icon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, {
63942
64061
  size: "small",
63943
- type: "swap-up-line",
64062
+ type: "arrow-up-line",
63944
64063
  onClick: function onClick(e) {
63945
64064
  return moveUp(e, dataIndex);
63946
64065
  }
@@ -63948,21 +64067,20 @@ var FilterColumnIcon = function FilterColumnIcon(props) {
63948
64067
  })))));
63949
64068
  };
63950
64069
 
63951
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(Tooltip, {
63952
- trigger: renderDropdown(),
63953
- align: fullscreen ? 'b' : 't',
63954
- popupProps: {
63955
- offset: fullscreen ? [5, 20] : [5, -18],
63956
- animation: {
63957
- "in": 'fadeIn',
63958
- out: 'fadeOut'
63959
- },
63960
- visible: tooltipVisible && !dropdownVisible,
63961
- onVisibleChange: function onVisibleChange(state) {
63962
- setTooltipVisible(state);
63963
- }
63964
- }
63965
- }, (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_2__.getMessage)('customColumnSetting'));
64070
+ return renderDropdown(); // <Tooltip
64071
+ // trigger={renderDropdown()}
64072
+ // align={fullscreen ? 'b' : 't'}
64073
+ // popupProps={{
64074
+ // offset: fullscreen ? [5, 20] : [5, -18],
64075
+ // animation: { in: 'fadeIn', out: 'fadeOut' },
64076
+ // visible: tooltipVisible && !dropdownVisible,
64077
+ // onVisibleChange: (state) => {
64078
+ // setTooltipVisible(state);
64079
+ // },
64080
+ // }}
64081
+ // >
64082
+ // {getMessage('customColumnSetting')}
64083
+ // </Tooltip>
63966
64084
  };
63967
64085
 
63968
64086
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (FilterColumnIcon);
@@ -64076,7 +64194,7 @@ var FullScreenIcon = function FullScreenIcon(props) {
64076
64194
  var _actionRef$current, _actionRef$current$fu;
64077
64195
 
64078
64196
  (_actionRef$current = actionRef.current) === null || _actionRef$current === void 0 ? void 0 : (_actionRef$current$fu = _actionRef$current.fullScreen) === null || _actionRef$current$fu === void 0 ? void 0 : _actionRef$current$fu.call(_actionRef$current);
64079
- }, 150);
64197
+ }, 0);
64080
64198
  }; // 销毁监听函数
64081
64199
 
64082
64200
 
@@ -64091,23 +64209,33 @@ var FullScreenIcon = function FullScreenIcon(props) {
64091
64209
  (_actionRef$current3 = actionRef.current) === null || _actionRef$current3 === void 0 ? void 0 : (_actionRef$current3$o = _actionRef$current3.on) === null || _actionRef$current3$o === void 0 ? void 0 : _actionRef$current3$o.call(_actionRef$current3, function (state) {
64092
64210
  setFullscreen(state);
64093
64211
  }, 'fullScreenState', 'fullscreenIcon');
64094
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_0__.Balloon.Tooltip, {
64095
- trigger: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_0__.Button, {
64096
- iconSize: "small",
64097
- className: cls(),
64098
- onClick: allScreenHandle
64099
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_teamix_icon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, {
64100
- size: "small",
64101
- type: fullscreen ? 'close-line' : 'full-screen-line'
64102
- })),
64103
- align: fullscreen ? 'b' : 't',
64104
- popupProps: {
64105
- visible: visible,
64106
- onVisibleChange: function onVisibleChange(state) {
64107
- setVisible(state);
64108
- }
64109
- }
64110
- }, (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_2__.getMessage)('fullScreen'));
64212
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_0__.Button, {
64213
+ iconSize: "small",
64214
+ className: cls(),
64215
+ onClick: allScreenHandle
64216
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_teamix_icon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, {
64217
+ size: "small",
64218
+ type: fullscreen ? 'close-line' : 'full-screen-line'
64219
+ })) // <Balloon.Tooltip
64220
+ // trigger={
64221
+ // <Button iconSize="small" className={cls()} onClick={allScreenHandle}>
64222
+ // <TeamixIcon
64223
+ // size="small"
64224
+ // type={fullscreen ? 'close-line' : 'full-screen-line'}
64225
+ // />
64226
+ // </Button>
64227
+ // }
64228
+ // align={fullscreen ? 'b' : 't'}
64229
+ // popupProps={{
64230
+ // visible: visible,
64231
+ // onVisibleChange: (state) => {
64232
+ // setVisible(state);
64233
+ // },
64234
+ // }}
64235
+ // >
64236
+ // {getMessage('fullScreen')}
64237
+ // </Balloon.Tooltip>
64238
+ ;
64111
64239
  };
64112
64240
 
64113
64241
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (FullScreenIcon);
@@ -64125,6 +64253,8 @@ var FullScreenIcon = function FullScreenIcon(props) {
64125
64253
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
64126
64254
  /* harmony import */ var _alicloudfe_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27792);
64127
64255
  /* harmony import */ var _alicloudfe_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_1__);
64256
+ /* harmony import */ var _teamix_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80653);
64257
+
64128
64258
 
64129
64259
 
64130
64260
 
@@ -64137,7 +64267,20 @@ var FullScreen = function FullScreen(props) {
64137
64267
  var _actionRef$current, _actionRef$current$se;
64138
64268
 
64139
64269
  actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$current = actionRef.current) === null || _actionRef$current === void 0 ? void 0 : (_actionRef$current$se = _actionRef$current.setFullScreenState) === null || _actionRef$current$se === void 0 ? void 0 : _actionRef$current$se.call(_actionRef$current, visible);
64140
- }, [visible]);
64270
+ }, [visible]); // 全屏开启之后
64271
+
64272
+ var afterOpen = function afterOpen() {
64273
+ _alicloudfe_components__WEBPACK_IMPORTED_MODULE_1__.Message.show({
64274
+ type: 'notice',
64275
+ content: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", null, (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_2__.getMessage)('press')), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", {
64276
+ className: "teamix-pro-table-full-screen-message-esc"
64277
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", {
64278
+ className: "teamix-pro-table-full-screen-message-esc-title"
64279
+ }, "esc")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", null, (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_2__.getMessage)('toExitFullScreen'))),
64280
+ className: 'teamix-pro-table-full-screen-message'
64281
+ });
64282
+ };
64283
+
64141
64284
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, children, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_1__.Overlay, {
64142
64285
  canCloseByOutSideClick: false,
64143
64286
  align: "cc cc",
@@ -64152,6 +64295,7 @@ var FullScreen = function FullScreen(props) {
64152
64295
  zIndex: 999
64153
64296
  },
64154
64297
  canCloseByEsc: true,
64298
+ afterOpen: afterOpen,
64155
64299
  onRequestClose: function onRequestClose() {
64156
64300
  var _actionRef$current2, _actionRef$current2$f;
64157
64301
 
@@ -64179,66 +64323,6 @@ var FullScreen = function FullScreen(props) {
64179
64323
  /* harmony import */ var _teamix_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80653);
64180
64324
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1024);
64181
64325
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
64182
- function _slicedToArray(arr, i) {
64183
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
64184
- }
64185
-
64186
- function _nonIterableRest() {
64187
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
64188
- }
64189
-
64190
- function _unsupportedIterableToArray(o, minLen) {
64191
- if (!o) return;
64192
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
64193
- var n = Object.prototype.toString.call(o).slice(8, -1);
64194
- if (n === "Object" && o.constructor) n = o.constructor.name;
64195
- if (n === "Map" || n === "Set") return Array.from(o);
64196
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
64197
- }
64198
-
64199
- function _arrayLikeToArray(arr, len) {
64200
- if (len == null || len > arr.length) len = arr.length;
64201
-
64202
- for (var i = 0, arr2 = new Array(len); i < len; i++) {
64203
- arr2[i] = arr[i];
64204
- }
64205
-
64206
- return arr2;
64207
- }
64208
-
64209
- function _iterableToArrayLimit(arr, i) {
64210
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
64211
-
64212
- if (_i == null) return;
64213
- var _arr = [];
64214
- var _n = true;
64215
- var _d = false;
64216
-
64217
- var _s, _e;
64218
-
64219
- try {
64220
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
64221
- _arr.push(_s.value);
64222
-
64223
- if (i && _arr.length === i) break;
64224
- }
64225
- } catch (err) {
64226
- _d = true;
64227
- _e = err;
64228
- } finally {
64229
- try {
64230
- if (!_n && _i["return"] != null) _i["return"]();
64231
- } finally {
64232
- if (_d) throw _e;
64233
- }
64234
- }
64235
-
64236
- return _arr;
64237
- }
64238
-
64239
- function _arrayWithHoles(arr) {
64240
- if (Array.isArray(arr)) return arr;
64241
- }
64242
64326
  /**
64243
64327
  * 刷新
64244
64328
  */
@@ -64247,46 +64331,39 @@ function _arrayWithHoles(arr) {
64247
64331
 
64248
64332
 
64249
64333
 
64250
-
64251
-
64252
64334
  var cls = (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_2__.baseClass)('teamix-pro-table-toolbar-icon');
64253
64335
 
64254
64336
  var LayoutIcon = function LayoutIcon(props) {
64255
- var _actionRef$current2, _actionRef$current2$o;
64256
-
64257
- var actionRef = props.actionRef;
64258
-
64259
- var _useState = (0,react__WEBPACK_IMPORTED_MODULE_3__.useState)(false),
64260
- _useState2 = _slicedToArray(_useState, 2),
64261
- fullscreen = _useState2[0],
64262
- setFullscreen = _useState2[1]; // 销毁监听函数
64263
-
64264
-
64265
- (0,react__WEBPACK_IMPORTED_MODULE_3__.useEffect)(function () {
64266
- return function () {
64267
- var _actionRef$current, _actionRef$current$of;
64268
-
64269
- (_actionRef$current = actionRef.current) === null || _actionRef$current === void 0 ? void 0 : (_actionRef$current$of = _actionRef$current.off) === null || _actionRef$current$of === void 0 ? void 0 : _actionRef$current$of.call(_actionRef$current, 'refreshIcon');
64270
- };
64271
- }, []); // 监听全屏变化
64337
+ var actionRef = props.actionRef; // const [fullscreen, setFullscreen] = useState<boolean>(false);
64338
+ // // 销毁监听函数
64339
+ // useEffect(() => {
64340
+ // return () => {
64341
+ // actionRef.current?.off?.('refreshIcon');
64342
+ // };
64343
+ // }, []);
64344
+ // // 监听全屏变化
64345
+ // actionRef.current?.on?.(
64346
+ // (state: boolean) => {
64347
+ // setFullscreen(state);
64348
+ // },
64349
+ // 'fullScreenState',
64350
+ // 'refreshIcon',
64351
+ // );
64272
64352
 
64273
- (_actionRef$current2 = actionRef.current) === null || _actionRef$current2 === void 0 ? void 0 : (_actionRef$current2$o = _actionRef$current2.on) === null || _actionRef$current2$o === void 0 ? void 0 : _actionRef$current2$o.call(_actionRef$current2, function (state) {
64274
- setFullscreen(state);
64275
- }, 'fullScreenState', 'refreshIcon');
64276
64353
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_0__.Balloon.Tooltip, {
64277
64354
  trigger: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_0__.Button, {
64278
64355
  iconSize: "small",
64279
64356
  className: cls(),
64280
64357
  onClick: function onClick() {
64281
- var _actionRef$current3, _actionRef$current3$r;
64358
+ var _actionRef$current, _actionRef$current$re;
64282
64359
 
64283
- return (_actionRef$current3 = actionRef.current) === null || _actionRef$current3 === void 0 ? void 0 : (_actionRef$current3$r = _actionRef$current3.refresh) === null || _actionRef$current3$r === void 0 ? void 0 : _actionRef$current3$r.call(_actionRef$current3);
64360
+ return (_actionRef$current = actionRef.current) === null || _actionRef$current === void 0 ? void 0 : (_actionRef$current$re = _actionRef$current.refresh) === null || _actionRef$current$re === void 0 ? void 0 : _actionRef$current$re.call(_actionRef$current);
64284
64361
  }
64285
64362
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_teamix_icon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, {
64286
64363
  size: "small",
64287
64364
  type: "refresh-line"
64288
64365
  })),
64289
- align: fullscreen ? 'b' : 't'
64366
+ align: "t"
64290
64367
  }, (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_2__.getMessage)('refresh'));
64291
64368
  };
64292
64369
 
@@ -68116,6 +68193,34 @@ var LabelIconTip = function LabelIconTip(_ref) {
68116
68193
 
68117
68194
  /***/ }),
68118
68195
 
68196
+ /***/ 46070:
68197
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
68198
+
68199
+ "use strict";
68200
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
68201
+ /* harmony export */ "Z": () => (/* binding */ deepMerge)
68202
+ /* harmony export */ });
68203
+ function deepMerge(a, b) {
68204
+ var result = Object.assign({}, b);
68205
+
68206
+ for (var key in a) {
68207
+ if (Object.prototype.hasOwnProperty.call(a, key)) {
68208
+ if (!Object.prototype.hasOwnProperty.call(b, key)) {
68209
+ result[key] = a[key];
68210
+ continue;
68211
+ }
68212
+
68213
+ if (typeof a[key] === 'object' && !(a[key] instanceof Array)) {
68214
+ result[key] = Object.assign({}, a[key], b[key]);
68215
+ }
68216
+ }
68217
+ }
68218
+
68219
+ return result;
68220
+ }
68221
+
68222
+ /***/ }),
68223
+
68119
68224
  /***/ 2273:
68120
68225
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
68121
68226
 
@@ -68340,10 +68445,11 @@ __webpack_require__.r(__webpack_exports__);
68340
68445
  /* harmony export */ "LabelIconTip": () => (/* reexport safe */ _components_LabelIconTip__WEBPACK_IMPORTED_MODULE_2__.Z),
68341
68446
  /* harmony export */ "Header": () => (/* reexport safe */ _components_Header__WEBPACK_IMPORTED_MODULE_3__.Z),
68342
68447
  /* harmony export */ "getDeepValue": () => (/* reexport safe */ _getDeepValue__WEBPACK_IMPORTED_MODULE_10__.Z),
68448
+ /* harmony export */ "deepMerge": () => (/* reexport safe */ _deepMerge__WEBPACK_IMPORTED_MODULE_11__.Z),
68343
68449
  /* harmony export */ "getTargetValue": () => (/* reexport safe */ _getTargetValue__WEBPACK_IMPORTED_MODULE_4__.ZP),
68344
68450
  /* harmony export */ "registerCustomContext": () => (/* reexport safe */ _getTargetValue__WEBPACK_IMPORTED_MODULE_4__.Vn),
68345
68451
  /* harmony export */ "pickAttrs": () => (/* reexport safe */ _pickAttrs__WEBPACK_IMPORTED_MODULE_5__.Z),
68346
- /* harmony export */ "pickProps": () => (/* reexport safe */ _pickProps__WEBPACK_IMPORTED_MODULE_11__.Z),
68452
+ /* harmony export */ "pickProps": () => (/* reexport safe */ _pickProps__WEBPACK_IMPORTED_MODULE_12__.Z),
68347
68453
  /* harmony export */ "usePrefixCls": () => (/* reexport safe */ _usePrefixCls__WEBPACK_IMPORTED_MODULE_6__.Z),
68348
68454
  /* harmony export */ "baseClass": () => (/* binding */ baseClass)
68349
68455
  /* harmony export */ });
@@ -68353,9 +68459,10 @@ __webpack_require__.r(__webpack_exports__);
68353
68459
  /* harmony import */ var _components_LabelIconTip__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(25933);
68354
68460
  /* harmony import */ var _components_Header__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(19152);
68355
68461
  /* harmony import */ var _getDeepValue__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(2273);
68462
+ /* harmony import */ var _deepMerge__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(46070);
68356
68463
  /* harmony import */ var _getTargetValue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(24618);
68357
68464
  /* harmony import */ var _pickAttrs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(95512);
68358
- /* harmony import */ var _pickProps__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(9736);
68465
+ /* harmony import */ var _pickProps__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(9736);
68359
68466
  /* harmony import */ var _usePrefixCls__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(42326);
68360
68467
  /* harmony import */ var _request__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(75159);
68361
68468
  /* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(47535);
@@ -68374,6 +68481,7 @@ __webpack_require__.r(__webpack_exports__);
68374
68481
 
68375
68482
 
68376
68483
 
68484
+
68377
68485
  function baseClass(perfix) {
68378
68486
  return function () {
68379
68487
  return classnames__WEBPACK_IMPORTED_MODULE_0___default().apply(void 0, arguments).split(' ').map(function (className) {
@@ -68531,7 +68639,9 @@ function getMessage(id, data) {
68531
68639
  copySucceeded: '复制成功',
68532
68640
  copyFailed: '复制失败',
68533
68641
  expandAdvancedFilter: '展开高级筛选',
68534
- collapseAdvancedFilter: '收起高级筛选'
68642
+ collapseAdvancedFilter: '收起高级筛选',
68643
+ press: '按',
68644
+ toExitFullScreen: '即可退出全屏模式'
68535
68645
  });
68536
68646
 
68537
68647
  /***/ }),
@@ -70244,7 +70354,7 @@ _teamix_icon__WEBPACK_IMPORTED_MODULE_8__/* ["default"].setConfig */ .Z.setConfi
70244
70354
 
70245
70355
 
70246
70356
 
70247
- var version = '1.0.21';
70357
+ var version = '1.0.22';
70248
70358
 
70249
70359
  })();
70250
70360