@teamix/pro 1.6.0-beta.7 → 1.6.1-beta
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/pro.all.min.css +1 -1
- package/dist/pro.css +1 -1
- package/dist/pro.js +1662 -619
- package/dist/pro.min.css +1 -1
- package/dist/pro.min.js +1 -1
- package/dist/pro.xconsole.min.css +1 -1
- package/es/actions/index.d.ts +6 -6
- package/es/actions/index.js +13 -13
- package/es/form/Components/FormItem2/index.js +5 -5
- package/es/form/Components/__builtins__/hooks/useClickAway.js +1 -1
- package/es/form/Components/__builtins__/icons.js +2 -2
- package/es/form/Components/__builtins__/index.d.ts +5 -5
- package/es/form/Components/__builtins__/index.js +6 -6
- package/es/form/Components/form-layout/index.js +2 -2
- package/es/form/Components/form-layout/useResponsiveFormLayout.js +1 -1
- package/es/form/Filter/AdvancedFilter.js +1 -1
- package/es/form/Filter/index2.js +2 -2
- package/es/form/ProForm/index.d.ts +2 -2
- package/es/form/ProForm/index.js +12 -17
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/info/index.d.ts +6 -2
- package/es/info/index.js +1 -2
- package/es/info/utils/utils.d.ts +1 -1
- package/es/sidebar/utils/index.d.ts +2 -2
- package/es/table/components/Filter/index.js +3 -3
- package/es/table/index.d.ts +3 -4
- package/es/table/index.js +105 -44
- package/es/table/index.scss +26 -0
- package/es/table/typing.d.ts +7 -1
- package/es/table/utils/columnRender.d.ts +1 -0
- package/es/table/utils/columnRender.js +41 -1
- package/es/table/utils/genAutoWidthColumns.d.ts +30 -0
- package/es/table/utils/genAutoWidthColumns.js +327 -0
- package/lib/actions/index.d.ts +6 -6
- package/lib/actions/index.js +11 -11
- package/lib/form/Components/FormItem2/index.js +39 -39
- package/lib/form/Components/__builtins__/icons.js +2 -2
- package/lib/form/Components/__builtins__/index.d.ts +5 -5
- package/lib/form/Components/__builtins__/index.js +27 -27
- package/lib/form/Components/form-layout/index.js +3 -3
- package/lib/form/Components/form-layout/useResponsiveFormLayout.js +1 -1
- package/lib/form/Filter/AdvancedFilter.js +1 -1
- package/lib/form/Filter/index2.js +2 -2
- package/lib/form/ProForm/index.d.ts +2 -2
- package/lib/form/ProForm/index.js +11 -16
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/info/index.d.ts +6 -2
- package/lib/info/index.js +1 -2
- package/lib/info/utils/utils.d.ts +1 -1
- package/lib/sidebar/utils/index.d.ts +2 -2
- package/lib/table/components/Filter/index.js +3 -3
- package/lib/table/index.d.ts +3 -4
- package/lib/table/index.js +104 -43
- package/lib/table/index.scss +26 -0
- package/lib/table/typing.d.ts +7 -1
- package/lib/table/utils/columnRender.d.ts +1 -0
- package/lib/table/utils/columnRender.js +44 -3
- package/lib/table/utils/genAutoWidthColumns.d.ts +30 -0
- package/lib/table/utils/genAutoWidthColumns.js +342 -0
- package/package.json +1 -1
- package/es/form/utils/parseSchema.d.ts +0 -3
- package/es/form/utils/parseSchema.js +0 -38
- package/es/utils/aspect.d.ts +0 -2
- package/es/utils/aspect.js +0 -60
- package/lib/form/utils/parseSchema.d.ts +0 -3
- package/lib/form/utils/parseSchema.js +0 -45
- package/lib/utils/aspect.d.ts +0 -2
- package/lib/utils/aspect.js +0 -67
package/dist/pro.js
CHANGED
@@ -73900,6 +73900,171 @@ function useDeepCompareEffectNoCheck(callback, dependencies) {
|
|
73900
73900
|
}
|
73901
73901
|
|
73902
73902
|
|
73903
|
+
/***/ }),
|
73904
|
+
|
73905
|
+
/***/ 6516:
|
73906
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
73907
|
+
|
73908
|
+
"use strict";
|
73909
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
73910
|
+
/* harmony export */ "i": () => (/* binding */ getProFieldWidth)
|
73911
|
+
/* harmony export */ });
|
73912
|
+
/* harmony import */ var _teamix_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80653);
|
73913
|
+
/* harmony import */ var _typeMap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(74248);
|
73914
|
+
/* harmony import */ var _renderMap__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(96272);
|
73915
|
+
|
73916
|
+
|
73917
|
+
|
73918
|
+
function getProFieldWidth(type, render) {
|
73919
|
+
var _typeMap$language;
|
73920
|
+
if (!type) {
|
73921
|
+
return 0;
|
73922
|
+
}
|
73923
|
+
var language = (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_0__.getLanguage)();
|
73924
|
+
var typeValue = _typeMap__WEBPACK_IMPORTED_MODULE_1__/* .typeMap */ .Y === null || _typeMap__WEBPACK_IMPORTED_MODULE_1__/* .typeMap */ .Y === void 0 ? void 0 : (_typeMap$language = _typeMap__WEBPACK_IMPORTED_MODULE_1__/* .typeMap */ .Y[language]) === null || _typeMap$language === void 0 ? void 0 : _typeMap$language[type];
|
73925
|
+
if (!typeValue) {
|
73926
|
+
var renderValue = (0,_renderMap__WEBPACK_IMPORTED_MODULE_2__/* .getRenderWidth */ .L)(render);
|
73927
|
+
return renderValue || 0;
|
73928
|
+
}
|
73929
|
+
return typeValue || 0;
|
73930
|
+
}
|
73931
|
+
|
73932
|
+
/***/ }),
|
73933
|
+
|
73934
|
+
/***/ 96272:
|
73935
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
73936
|
+
|
73937
|
+
"use strict";
|
73938
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
73939
|
+
/* harmony export */ "L": () => (/* binding */ getRenderWidth)
|
73940
|
+
/* harmony export */ });
|
73941
|
+
function getRenderWidth(render) {
|
73942
|
+
if (typeof render === 'function') {
|
73943
|
+
return 0;
|
73944
|
+
}
|
73945
|
+
// ministep垂直布局 + 水平布局
|
73946
|
+
if ((render === null || render === void 0 ? void 0 : render.type) === 'step') {
|
73947
|
+
return {
|
73948
|
+
width: [],
|
73949
|
+
shrink: true,
|
73950
|
+
minWidth: 120,
|
73951
|
+
level: 3,
|
73952
|
+
maxWidth: 320
|
73953
|
+
};
|
73954
|
+
}
|
73955
|
+
// 告警等级标签 大中小同大小
|
73956
|
+
if ((render === null || render === void 0 ? void 0 : render.type) === 'eventLevelTag') {
|
73957
|
+
return {
|
73958
|
+
width: [42],
|
73959
|
+
shrink: false,
|
73960
|
+
minWidth: 42,
|
73961
|
+
level: 1
|
73962
|
+
};
|
73963
|
+
}
|
73964
|
+
// 强调型数字
|
73965
|
+
if (render === null || render === void 0 ? void 0 : render.isEmphasize) {
|
73966
|
+
return {
|
73967
|
+
width: [],
|
73968
|
+
shrink: false,
|
73969
|
+
level: 1
|
73970
|
+
};
|
73971
|
+
}
|
73972
|
+
// 首列 图标 + id + 描述 + copy
|
73973
|
+
if ((render === null || render === void 0 ? void 0 : render.icon) && (render === null || render === void 0 ? void 0 : render.description)) {
|
73974
|
+
return {
|
73975
|
+
width: [],
|
73976
|
+
shrink: false,
|
73977
|
+
level: 1
|
73978
|
+
};
|
73979
|
+
}
|
73980
|
+
return 0;
|
73981
|
+
}
|
73982
|
+
|
73983
|
+
/***/ }),
|
73984
|
+
|
73985
|
+
/***/ 74248:
|
73986
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
73987
|
+
|
73988
|
+
"use strict";
|
73989
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
73990
|
+
/* harmony export */ "Y": () => (/* binding */ typeMap)
|
73991
|
+
/* harmony export */ });
|
73992
|
+
var typeMapZH = {
|
73993
|
+
date: {
|
73994
|
+
width: [90],
|
73995
|
+
shrink: false,
|
73996
|
+
minWidth: 90,
|
73997
|
+
level: 1
|
73998
|
+
},
|
73999
|
+
dateWeek: {
|
74000
|
+
width: [66],
|
74001
|
+
shrink: false,
|
74002
|
+
minWidth: 66,
|
74003
|
+
level: 1
|
74004
|
+
},
|
74005
|
+
dateMonth: {
|
74006
|
+
width: [60],
|
74007
|
+
shrink: false,
|
74008
|
+
minWidth: 60,
|
74009
|
+
level: 1
|
74010
|
+
},
|
74011
|
+
dateYear: {
|
74012
|
+
width: [40],
|
74013
|
+
shrink: false,
|
74014
|
+
minWidth: 40,
|
74015
|
+
level: 1
|
74016
|
+
},
|
74017
|
+
dateQuarter: {
|
74018
|
+
width: [56],
|
74019
|
+
shrink: false,
|
74020
|
+
minWidth: 56,
|
74021
|
+
level: 1
|
74022
|
+
},
|
74023
|
+
dateYearRange: {
|
74024
|
+
width: [94],
|
74025
|
+
shrink: false,
|
74026
|
+
minWidth: 94,
|
74027
|
+
level: 1
|
74028
|
+
},
|
74029
|
+
dateTime: {
|
74030
|
+
width: [142],
|
74031
|
+
shrink: false,
|
74032
|
+
minWidth: 142,
|
74033
|
+
level: 1
|
74034
|
+
},
|
74035
|
+
dateRange: {
|
74036
|
+
width: [132],
|
74037
|
+
shrink: false,
|
74038
|
+
minWidth: 132,
|
74039
|
+
level: 1
|
74040
|
+
}
|
74041
|
+
};
|
74042
|
+
var typeMapEN = {
|
74043
|
+
date: {
|
74044
|
+
width: [72],
|
74045
|
+
shrink: false,
|
74046
|
+
minWidth: 72,
|
74047
|
+
level: 1
|
74048
|
+
},
|
74049
|
+
dateYear: {
|
74050
|
+
width: [40],
|
74051
|
+
shrink: false,
|
74052
|
+
minWidth: 40,
|
74053
|
+
level: 1
|
74054
|
+
},
|
74055
|
+
dateRange: {
|
74056
|
+
width: [98],
|
74057
|
+
shrink: false,
|
74058
|
+
minWidth: 98,
|
74059
|
+
level: 1
|
74060
|
+
}
|
74061
|
+
};
|
74062
|
+
var typeMap = {
|
74063
|
+
'zh-cn': typeMapZH,
|
74064
|
+
'zh-tw': typeMapZH,
|
74065
|
+
'en-us': typeMapEN
|
74066
|
+
};
|
74067
|
+
|
73903
74068
|
/***/ }),
|
73904
74069
|
|
73905
74070
|
/***/ 50870:
|
@@ -85883,6 +86048,7 @@ var TagSelect = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(f
|
|
85883
86048
|
/* harmony export */ "ZP": () => (__WEBPACK_DEFAULT_EXPORT__),
|
85884
86049
|
/* harmony export */ "as": () => (/* reexport safe */ _commonComponents__WEBPACK_IMPORTED_MODULE_27__.as),
|
85885
86050
|
/* harmony export */ "h4": () => (/* reexport safe */ _commonComponents__WEBPACK_IMPORTED_MODULE_27__.h4),
|
86051
|
+
/* harmony export */ "i": () => (/* reexport safe */ _autoWidth_index__WEBPACK_IMPORTED_MODULE_28__.i),
|
85886
86052
|
/* harmony export */ "mH": () => (/* reexport safe */ _commonComponents__WEBPACK_IMPORTED_MODULE_27__.mH),
|
85887
86053
|
/* harmony export */ "z1": () => (/* reexport safe */ _commonComponents__WEBPACK_IMPORTED_MODULE_27__.z1)
|
85888
86054
|
/* harmony export */ });
|
@@ -85916,7 +86082,8 @@ var TagSelect = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(f
|
|
85916
86082
|
/* harmony import */ var _components_FieldSelectGroup__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(98203);
|
85917
86083
|
/* harmony import */ var _components_FieldMenuCascaderSelect__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(19799);
|
85918
86084
|
/* harmony import */ var _commonComponents__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(76457);
|
85919
|
-
|
86085
|
+
/* harmony import */ var _autoWidth_index__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(6516);
|
86086
|
+
var _excluded = ["dataSource", "state", "tooltip", "tooltipLabel", "tooltipIcon", "tooltipIconSize", "className", "style", "proFieldWidthType"];
|
85920
86087
|
function ownKeys(object, enumerableOnly) {
|
85921
86088
|
var keys = Object.keys(object);
|
85922
86089
|
if (Object.getOwnPropertySymbols) {
|
@@ -86060,6 +86227,7 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
86060
86227
|
|
86061
86228
|
// 导出非Field的一些通用组件
|
86062
86229
|
|
86230
|
+
|
86063
86231
|
var externalComponents = {};
|
86064
86232
|
var innerComponents = {
|
86065
86233
|
text: _components_FieldText__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z,
|
@@ -86132,6 +86300,7 @@ var ProField = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forward
|
|
86132
86300
|
tooltipIconSize = props.tooltipIconSize,
|
86133
86301
|
className = props.className,
|
86134
86302
|
style = props.style,
|
86303
|
+
proFieldWidthType = props.proFieldWidthType,
|
86135
86304
|
others = _objectWithoutProperties(props, _excluded);
|
86136
86305
|
var proFieldRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
|
86137
86306
|
// 注册全局自定义组件
|
@@ -98584,30 +98753,30 @@ function useErrorAction(action, context) {
|
|
98584
98753
|
/* harmony export */ "ft": () => (/* binding */ ActionMenuButton),
|
98585
98754
|
/* harmony export */ "iv": () => (/* binding */ ProActionMenuButton)
|
98586
98755
|
/* harmony export */ });
|
98587
|
-
/* harmony import */ var
|
98588
|
-
/* harmony import */ var
|
98589
|
-
/* harmony import */ var
|
98590
|
-
/* harmony import */ var
|
98591
|
-
/* harmony import */ var
|
98592
|
-
/* harmony import */ var
|
98593
|
-
/* harmony import */ var
|
98594
|
-
/* harmony import */ var
|
98595
|
-
/* harmony import */ var
|
98596
|
-
/* harmony import */ var
|
98597
|
-
/* harmony import */ var
|
98598
|
-
/* harmony import */ var
|
98599
|
-
/* harmony import */ var
|
98600
|
-
/* harmony import */ var
|
98601
|
-
/* harmony import */ var
|
98602
|
-
/* harmony import */ var
|
98603
|
-
/* harmony import */ var
|
98604
|
-
/* harmony import */ var
|
98605
|
-
/* harmony import */ var
|
98606
|
-
/* harmony import */ var
|
98607
|
-
/* harmony import */ var
|
98608
|
-
/* harmony import */ var
|
98756
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(59787);
|
98757
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
98758
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(28266);
|
98759
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
|
98760
|
+
/* harmony import */ var _alicloudfe_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(33049);
|
98761
|
+
/* harmony import */ var _alicloudfe_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_2__);
|
98762
|
+
/* harmony import */ var _teamix_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(89227);
|
98763
|
+
/* harmony import */ var _teamix_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(80653);
|
98764
|
+
/* harmony import */ var _link__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(93874);
|
98765
|
+
/* harmony import */ var _request__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(67096);
|
98766
|
+
/* harmony import */ var _dialog__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(28653);
|
98767
|
+
/* harmony import */ var _confirm__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(95094);
|
98768
|
+
/* harmony import */ var _danger_confirm__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(54036);
|
98769
|
+
/* harmony import */ var _notice__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(49510);
|
98770
|
+
/* harmony import */ var _error__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(13654);
|
98771
|
+
/* harmony import */ var _dialog_form__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(82982);
|
98772
|
+
/* harmony import */ var _dialog_table__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(29908);
|
98773
|
+
/* harmony import */ var _dialog_info__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(71875);
|
98774
|
+
/* harmony import */ var _drawer__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(93655);
|
98775
|
+
/* harmony import */ var _drawer_form__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(91720);
|
98776
|
+
/* harmony import */ var _drawer_table__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(67984);
|
98777
|
+
/* harmony import */ var _drawer_info__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(19980);
|
98609
98778
|
/* harmony import */ var _pop_confirm__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(51121);
|
98610
|
-
/* harmony import */ var
|
98779
|
+
/* harmony import */ var _danger_pop_confirm__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(33312);
|
98611
98780
|
/* harmony import */ var _quick__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(23150);
|
98612
98781
|
var _excluded = ["type"],
|
98613
98782
|
_excluded2 = ["config", "icon", "iconSize", "type", "context", "children", "visible", "disabled", "onClick", "tooltip", "disabledTooltip", "tooltipProps", "data-teamix-spm"],
|
@@ -98661,52 +98830,52 @@ function useAction(config, context) {
|
|
98661
98830
|
var type = config.type,
|
98662
98831
|
others = _objectWithoutPropertiesLoose(config, _excluded);
|
98663
98832
|
if (type === 'request') {
|
98664
|
-
return (0,
|
98833
|
+
return (0,_request__WEBPACK_IMPORTED_MODULE_6__/* .useRequestAction */ .XP)(others, context);
|
98665
98834
|
}
|
98666
98835
|
if (type === 'link') {
|
98667
|
-
return (0,
|
98836
|
+
return (0,_link__WEBPACK_IMPORTED_MODULE_5__/* .useLinkAction */ .R)(others, context);
|
98668
98837
|
}
|
98669
98838
|
if (type === 'dialog') {
|
98670
|
-
return (0,
|
98839
|
+
return (0,_dialog__WEBPACK_IMPORTED_MODULE_7__/* .useDialogAction */ .n)(others, context);
|
98671
98840
|
}
|
98672
98841
|
if (type === 'confirm') {
|
98673
|
-
return (0,
|
98842
|
+
return (0,_confirm__WEBPACK_IMPORTED_MODULE_8__/* .useConfirmAction */ .w)(others, context);
|
98674
98843
|
}
|
98675
98844
|
if (type === 'danger-confirm') {
|
98676
|
-
return (0,
|
98845
|
+
return (0,_danger_confirm__WEBPACK_IMPORTED_MODULE_9__/* .useDangerConfirmAction */ .B)(others, context);
|
98677
98846
|
}
|
98678
98847
|
if (type === 'notice') {
|
98679
|
-
return (0,
|
98848
|
+
return (0,_notice__WEBPACK_IMPORTED_MODULE_10__/* .useNoticeAction */ ._)(others, context);
|
98680
98849
|
}
|
98681
98850
|
if (type === 'error') {
|
98682
|
-
return (0,
|
98851
|
+
return (0,_error__WEBPACK_IMPORTED_MODULE_11__/* .useErrorAction */ .O)(others, context);
|
98683
98852
|
}
|
98684
98853
|
if (type === 'dialog-form') {
|
98685
|
-
return (0,
|
98854
|
+
return (0,_dialog_form__WEBPACK_IMPORTED_MODULE_12__/* .useDialogFormAction */ .W)(others, context);
|
98686
98855
|
}
|
98687
98856
|
if (type === 'dialog-table') {
|
98688
|
-
return (0,
|
98857
|
+
return (0,_dialog_table__WEBPACK_IMPORTED_MODULE_13__/* .useDialogTableAction */ .F)(others, context);
|
98689
98858
|
}
|
98690
98859
|
if (type === 'dialog-info') {
|
98691
|
-
return (0,
|
98860
|
+
return (0,_dialog_info__WEBPACK_IMPORTED_MODULE_14__/* .useDialogInfoAction */ .x)(others, context);
|
98692
98861
|
}
|
98693
98862
|
if (type === 'drawer') {
|
98694
|
-
return (0,
|
98863
|
+
return (0,_drawer__WEBPACK_IMPORTED_MODULE_15__/* .useDrawerAction */ .T)(others, context);
|
98695
98864
|
}
|
98696
98865
|
if (type === 'drawer-form') {
|
98697
|
-
return (0,
|
98866
|
+
return (0,_drawer_form__WEBPACK_IMPORTED_MODULE_16__/* .useDrawerFormAction */ .R)(others, context);
|
98698
98867
|
}
|
98699
98868
|
if (type === 'drawer-table') {
|
98700
|
-
return (0,
|
98869
|
+
return (0,_drawer_table__WEBPACK_IMPORTED_MODULE_17__/* .useDrawerTableAction */ .d)(others, context);
|
98701
98870
|
}
|
98702
98871
|
if (type === 'drawer-info') {
|
98703
|
-
return (0,
|
98872
|
+
return (0,_drawer_info__WEBPACK_IMPORTED_MODULE_18__/* .useDrawerInfoAction */ .s)(others, context);
|
98704
98873
|
}
|
98705
98874
|
if (type === 'pop-confirm') {
|
98706
98875
|
return (0,_pop_confirm__WEBPACK_IMPORTED_MODULE_19__/* .usePopConfirmAction */ .f)(others, context);
|
98707
98876
|
}
|
98708
98877
|
if (type === 'danger-pop-confirm') {
|
98709
|
-
return (0,
|
98878
|
+
return (0,_danger_pop_confirm__WEBPACK_IMPORTED_MODULE_20__/* .useDangerPopConfirmAction */ .M)(others, context);
|
98710
98879
|
}
|
98711
98880
|
var registedAction = RegistedActions.get(type);
|
98712
98881
|
if (!registedAction) {
|
@@ -98721,7 +98890,7 @@ var buttonContent = function buttonContent(content, iconType, iconSize, context)
|
|
98721
98890
|
if (!iconType) {
|
98722
98891
|
return renderedContent;
|
98723
98892
|
}
|
98724
|
-
return [/*#__PURE__*/
|
98893
|
+
return [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_teamix_icon__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, {
|
98725
98894
|
className: 'teamix-pro-action-prefix-icon',
|
98726
98895
|
type: iconType,
|
98727
98896
|
size: iconSize,
|
@@ -98758,7 +98927,7 @@ var ProActionButton = function ProActionButton(props) {
|
|
98758
98927
|
if (dataTeamixSpm) {
|
98759
98928
|
buttonProps['data-teamix-spm'] = dataTeamixSpm;
|
98760
98929
|
}
|
98761
|
-
var content = /*#__PURE__*/
|
98930
|
+
var content = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_2__.Button, _extends({
|
98762
98931
|
type: type
|
98763
98932
|
}, buttonProps), buttonContent(children, icon, iconSize, context));
|
98764
98933
|
var baseToolTipProps = _extends({
|
@@ -98769,15 +98938,15 @@ var ProActionButton = function ProActionButton(props) {
|
|
98769
98938
|
if (tooltip || disabledTooltip) {
|
98770
98939
|
if (tooltip && !disabledTooltip) {
|
98771
98940
|
if (!disabled) {
|
98772
|
-
content = /*#__PURE__*/
|
98941
|
+
content = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_2__.Balloon.Tooltip, baseToolTipProps, tooltip);
|
98773
98942
|
}
|
98774
98943
|
} else if (!tooltip && disabledTooltip) {
|
98775
98944
|
if (disabled) {
|
98776
|
-
content = /*#__PURE__*/
|
98945
|
+
content = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_2__.Balloon.Tooltip, baseToolTipProps, disabledTooltip);
|
98777
98946
|
}
|
98778
98947
|
} else if (tooltip && disabledTooltip) {
|
98779
98948
|
var showToolTip = disabled ? disabledTooltip : tooltip;
|
98780
|
-
content = /*#__PURE__*/
|
98949
|
+
content = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_2__.Balloon.Tooltip, baseToolTipProps, showToolTip);
|
98781
98950
|
}
|
98782
98951
|
}
|
98783
98952
|
return content;
|
@@ -98796,10 +98965,10 @@ var ProActionMenuButtonItem = function ProActionMenuButtonItem(props) {
|
|
98796
98965
|
tooltip = action.tooltip,
|
98797
98966
|
disabledTooltip = action.disabledTooltip,
|
98798
98967
|
tooltipProps = action.tooltipProps;
|
98799
|
-
var basePrefix = (0,
|
98968
|
+
var basePrefix = (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_4__.usePrefixCls)('', {
|
98800
98969
|
base: true
|
98801
98970
|
});
|
98802
|
-
var prefixCls = (0,
|
98971
|
+
var prefixCls = (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_4__.usePrefixCls)('teamix-pro-action');
|
98803
98972
|
var menuItemActionConfig = Object.assign({}, config, {
|
98804
98973
|
trigger: 'onClick'
|
98805
98974
|
});
|
@@ -98823,37 +98992,37 @@ var ProActionMenuButtonItem = function ProActionMenuButtonItem(props) {
|
|
98823
98992
|
if (tooltip || disabledTooltip) {
|
98824
98993
|
if (tooltip && !disabledTooltip) {
|
98825
98994
|
if (!disabled) {
|
98826
|
-
content = /*#__PURE__*/
|
98995
|
+
content = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_2__.Balloon.Tooltip, baseToolTipProps, tooltip);
|
98827
98996
|
}
|
98828
98997
|
} else if (!tooltip && disabledTooltip) {
|
98829
98998
|
if (disabled) {
|
98830
|
-
content = /*#__PURE__*/
|
98999
|
+
content = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_2__.Balloon.Tooltip, baseToolTipProps, disabledTooltip);
|
98831
99000
|
}
|
98832
99001
|
} else if (tooltip && disabledTooltip) {
|
98833
99002
|
var showToolTip = disabled ? disabledTooltip : tooltip;
|
98834
|
-
content = /*#__PURE__*/
|
99003
|
+
content = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_2__.Balloon.Tooltip, baseToolTipProps, showToolTip);
|
98835
99004
|
}
|
98836
99005
|
}
|
98837
|
-
return /*#__PURE__*/
|
98838
|
-
className:
|
99006
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", _extends({
|
99007
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_1___default()((_cls = {}, _cls[basePrefix('disabled')] = disabled, _cls), basePrefix('menu-item'), prefixCls('menu-item'))
|
98839
99008
|
}, buttonProps), content);
|
98840
99009
|
};
|
98841
99010
|
function renderCommonActionButtonMenuItem(action, key, context, dataTeamixSpm) {
|
98842
99011
|
if (action.type === 'divider') {
|
98843
|
-
return /*#__PURE__*/
|
99012
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_2__.Menu.Divider, {
|
98844
99013
|
key: key
|
98845
99014
|
});
|
98846
99015
|
}
|
98847
99016
|
var menuBtn = action;
|
98848
99017
|
if (menuBtn.actions && menuBtn.actions.length && menuBtn.disabled !== true) {
|
98849
|
-
return /*#__PURE__*/
|
99018
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_2__.Menu.SubMenu, {
|
98850
99019
|
key: key,
|
98851
99020
|
label: menuBtn.label || menuBtn.children
|
98852
99021
|
}, menuBtn.actions.map(function (a) {
|
98853
99022
|
return renderCommonActionButtonMenuItem(a, a.key, context, a['data-teamix-spm']);
|
98854
99023
|
}));
|
98855
99024
|
}
|
98856
|
-
return /*#__PURE__*/
|
99025
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(ProActionMenuButtonItem, {
|
98857
99026
|
key: key,
|
98858
99027
|
action: action,
|
98859
99028
|
context: context,
|
@@ -98873,7 +99042,7 @@ var ProActionMenuButton = function ProActionMenuButton(props) {
|
|
98873
99042
|
className = props.className,
|
98874
99043
|
noArrow = props.noArrow,
|
98875
99044
|
others = _objectWithoutPropertiesLoose(props, _excluded4);
|
98876
|
-
return /*#__PURE__*/
|
99045
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_2__.MenuButton, _extends({
|
98877
99046
|
popupTriggerType: "hover",
|
98878
99047
|
autoWidth: false,
|
98879
99048
|
menuProps: {
|
@@ -98885,7 +99054,7 @@ var ProActionMenuButton = function ProActionMenuButton(props) {
|
|
98885
99054
|
},
|
98886
99055
|
type: type,
|
98887
99056
|
label: buttonContent(label || children, icon, iconSize, context),
|
98888
|
-
className:
|
99057
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_1___default()(className, {
|
98889
99058
|
'teamix-pro-actions-text-menu-btn-no-arrow': noArrow
|
98890
99059
|
})
|
98891
99060
|
}, others), actions.map(function (action, i) {
|
@@ -98921,7 +99090,7 @@ function formatGroupActions(actions, max, moreConfig) {
|
|
98921
99090
|
// 渲染一个 button 或者 menu button
|
98922
99091
|
function renderCommonActionButton(button, context, isTypeText, dataTeamixSpm) {
|
98923
99092
|
if (button.type === 'divider') {
|
98924
|
-
return /*#__PURE__*/
|
99093
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_2__.Divider, {
|
98925
99094
|
key: button.key,
|
98926
99095
|
direction: "ver"
|
98927
99096
|
});
|
@@ -98938,13 +99107,13 @@ function renderCommonActionButton(button, context, isTypeText, dataTeamixSpm) {
|
|
98938
99107
|
buttonProps['data-teamix-spm'] = dataTeamixSpm;
|
98939
99108
|
}
|
98940
99109
|
if (!button.actions) {
|
98941
|
-
return /*#__PURE__*/
|
99110
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(ProActionButton, buttonProps);
|
98942
99111
|
}
|
98943
|
-
return /*#__PURE__*/
|
99112
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(ProActionMenuButton, buttonProps);
|
98944
99113
|
}
|
98945
99114
|
function getDefaultMoreButton(type, more) {
|
98946
99115
|
var defaultConfig = type === 'button' ? {
|
98947
|
-
children: (0,
|
99116
|
+
children: (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_4__.getMessage)('more')
|
98948
99117
|
} : {
|
98949
99118
|
icon: 'more-line',
|
98950
99119
|
autoWidth: false,
|
@@ -98981,7 +99150,7 @@ function getActionConfig(action, index, context) {
|
|
98981
99150
|
}).filter(function (action) {
|
98982
99151
|
return action.visible !== false;
|
98983
99152
|
})
|
98984
|
-
}, (0,
|
99153
|
+
}, (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_4__.getTargetValue)(_others, context));
|
98985
99154
|
}
|
98986
99155
|
var _ref3 = action,
|
98987
99156
|
key = _ref3.key,
|
@@ -98990,7 +99159,7 @@ function getActionConfig(action, index, context) {
|
|
98990
99159
|
return _extends({
|
98991
99160
|
key: getKey(index, key),
|
98992
99161
|
config: config
|
98993
|
-
}, (0,
|
99162
|
+
}, (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_4__.getTargetValue)(others, context));
|
98994
99163
|
}
|
98995
99164
|
function ProActionGroup(props) {
|
98996
99165
|
var _props$type3 = props.type,
|
@@ -99014,21 +99183,21 @@ function ProActionGroup(props) {
|
|
99014
99183
|
return action.visible !== false;
|
99015
99184
|
});
|
99016
99185
|
var formatedActions = formatGroupActions(filteredActions, max, getDefaultMoreButton(type, more || moreText));
|
99017
|
-
return /*#__PURE__*/
|
99018
|
-
className:
|
99186
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", _extends({
|
99187
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_1___default()('teamix-pro-actions', "teamix-pro-actions-type-" + type, className, {
|
99019
99188
|
'teamix-pro-actions-divider': type === 'button' ? false : divider
|
99020
99189
|
})
|
99021
99190
|
}, containerProps), formatedActions.map(function (actionBtn, i) {
|
99022
99191
|
var isLastOne = i === formatedActions.length - 1;
|
99023
99192
|
if (dataTeamixSpm) {
|
99024
|
-
return /*#__PURE__*/
|
99193
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), {
|
99025
99194
|
key: actionBtn.key
|
99026
|
-
}, renderCommonActionButton(actionBtn, context, isTypeText, dataTeamixSpm + "-" + (actionBtn.key || i)), isTypeText && divider && !isLastOne && /*#__PURE__*/
|
99195
|
+
}, renderCommonActionButton(actionBtn, context, isTypeText, dataTeamixSpm + "-" + (actionBtn.key || i)), isTypeText && divider && !isLastOne && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_2__.Divider, {
|
99027
99196
|
direction: "ver"
|
99028
99197
|
}));
|
99029
|
-
} else return /*#__PURE__*/
|
99198
|
+
} else return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), {
|
99030
99199
|
key: actionBtn.key
|
99031
|
-
}, renderCommonActionButton(actionBtn, context, isTypeText), isTypeText && divider && !isLastOne && /*#__PURE__*/
|
99200
|
+
}, renderCommonActionButton(actionBtn, context, isTypeText), isTypeText && divider && !isLastOne && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_2__.Divider, {
|
99032
99201
|
direction: "ver"
|
99033
99202
|
}));
|
99034
99203
|
}));
|
@@ -99757,6 +99926,7 @@ function getColClassAndStyle(col) {
|
|
99757
99926
|
/* harmony export */ "ZP": () => (__WEBPACK_DEFAULT_EXPORT__),
|
99758
99927
|
/* harmony export */ "as": () => (/* reexport safe */ _teamix_pro_field__WEBPACK_IMPORTED_MODULE_0__.as),
|
99759
99928
|
/* harmony export */ "h4": () => (/* reexport safe */ _teamix_pro_field__WEBPACK_IMPORTED_MODULE_0__.h4),
|
99929
|
+
/* harmony export */ "i": () => (/* reexport safe */ _teamix_pro_field__WEBPACK_IMPORTED_MODULE_0__.i),
|
99760
99930
|
/* harmony export */ "mH": () => (/* reexport safe */ _teamix_pro_field__WEBPACK_IMPORTED_MODULE_0__.mH),
|
99761
99931
|
/* harmony export */ "z1": () => (/* reexport safe */ _teamix_pro_field__WEBPACK_IMPORTED_MODULE_0__.z1)
|
99762
99932
|
/* harmony export */ });
|
@@ -100068,16 +100238,16 @@ FormGroup.GroupPanel = GroupPanel;
|
|
100068
100238
|
/* harmony export */ "ZP": () => (__WEBPACK_DEFAULT_EXPORT__)
|
100069
100239
|
/* harmony export */ });
|
100070
100240
|
/* unused harmony exports BaseItem, FormItem2 */
|
100071
|
-
/* harmony import */ var
|
100072
|
-
/* harmony import */ var
|
100073
|
-
/* harmony import */ var
|
100074
|
-
/* harmony import */ var
|
100075
|
-
/* harmony import */ var
|
100076
|
-
/* harmony import */ var
|
100077
|
-
/* harmony import */ var
|
100078
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
|
100241
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(59787);
|
100242
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
100243
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(28266);
|
100244
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
|
100245
|
+
/* harmony import */ var _builtins___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(99372);
|
100246
|
+
/* harmony import */ var _formily_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7186);
|
100247
|
+
/* harmony import */ var _formily_react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(61006);
|
100079
100248
|
/* harmony import */ var _form_layout__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(68802);
|
100080
|
-
/* harmony import */ var
|
100249
|
+
/* harmony import */ var _alicloudfe_components__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(33049);
|
100250
|
+
/* harmony import */ var _alicloudfe_components__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_6__);
|
100081
100251
|
var _excluded = ["children"];
|
100082
100252
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
100083
100253
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
@@ -100111,18 +100281,18 @@ var useFormItemLayout = function useFormItemLayout(props) {
|
|
100111
100281
|
feedbackIcon: props.feedbackIcon,
|
100112
100282
|
feedbackLayout: (_ref3 = (_props$feedbackLayout = props.feedbackLayout) != null ? _props$feedbackLayout : layout.feedbackLayout) != null ? _ref3 : 'loose',
|
100113
100283
|
tooltipLayout: (_ref4 = (_props$tooltipLayout = props.tooltipLayout) != null ? _props$tooltipLayout : layout.tooltipLayout) != null ? _ref4 : 'icon',
|
100114
|
-
tooltipIcon: (_ref5 = (_props$tooltipIcon = props.tooltipIcon) != null ? _props$tooltipIcon : layout.tooltipIcon) != null ? _ref5 : /*#__PURE__*/
|
100284
|
+
tooltipIcon: (_ref5 = (_props$tooltipIcon = props.tooltipIcon) != null ? _props$tooltipIcon : layout.tooltipIcon) != null ? _ref5 : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_builtins___WEBPACK_IMPORTED_MODULE_2__/* .QuestionCircleOutlinedIcon */ .x7, null)
|
100115
100285
|
});
|
100116
100286
|
};
|
100117
100287
|
function useOverflow() {
|
100118
|
-
var _useState = (0,
|
100288
|
+
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),
|
100119
100289
|
overflow = _useState[0],
|
100120
100290
|
setOverflow = _useState[1];
|
100121
|
-
var containerRef = (0,
|
100122
|
-
var contentRef = (0,
|
100291
|
+
var containerRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
|
100292
|
+
var contentRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
|
100123
100293
|
var layout = (0,_form_layout__WEBPACK_IMPORTED_MODULE_5__/* .useFormLayout */ .Hp)();
|
100124
100294
|
var labelCol = JSON.stringify(layout.labelCol);
|
100125
|
-
(0,
|
100295
|
+
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
100126
100296
|
requestAnimationFrame(function () {
|
100127
100297
|
if (containerRef.current && contentRef.current) {
|
100128
100298
|
var contentWidth = contentRef.current.getBoundingClientRect().width;
|
@@ -100142,16 +100312,16 @@ function useOverflow() {
|
|
100142
100312
|
};
|
100143
100313
|
}
|
100144
100314
|
var ICON_MAP = {
|
100145
|
-
error: /*#__PURE__*/
|
100146
|
-
success: /*#__PURE__*/
|
100147
|
-
warning: /*#__PURE__*/
|
100315
|
+
error: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_builtins___WEBPACK_IMPORTED_MODULE_2__/* .CloseCircleOutlinedIcon */ .fL, null),
|
100316
|
+
success: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_builtins___WEBPACK_IMPORTED_MODULE_2__/* .CheckCircleOutlinedIcon */ ._P, null),
|
100317
|
+
warning: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_builtins___WEBPACK_IMPORTED_MODULE_2__/* .ExclamationCircleOutlinedIcon */ .VF, null)
|
100148
100318
|
};
|
100149
100319
|
var BaseItem = function BaseItem(props) {
|
100150
100320
|
var _cls, _cls3, _cls4, _cls5, _cls6;
|
100151
100321
|
console.log('FormItem2');
|
100152
100322
|
var children = props.children,
|
100153
100323
|
others = _objectWithoutPropertiesLoose(props, _excluded);
|
100154
|
-
var _useState2 = (0,
|
100324
|
+
var _useState2 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),
|
100155
100325
|
active = _useState2[0],
|
100156
100326
|
setActive = _useState2[1];
|
100157
100327
|
var formLayout = useFormItemLayout(others);
|
@@ -100210,36 +100380,36 @@ var BaseItem = function BaseItem(props) {
|
|
100210
100380
|
enableCol = true;
|
100211
100381
|
}
|
100212
100382
|
}
|
100213
|
-
var prefixCls = (0,
|
100214
|
-
var prefix = (0,
|
100215
|
-
var formatChildren = (feedbackLayout === 'popover' || feedbackLayout === 'hover-popover') && !!feedbackText ? /*#__PURE__*/
|
100383
|
+
var prefixCls = (0,_builtins___WEBPACK_IMPORTED_MODULE_2__/* .usePrefixCls */ .F8)('formily-item', props);
|
100384
|
+
var prefix = (0,_builtins___WEBPACK_IMPORTED_MODULE_2__/* .usePrefixCls */ .F8)();
|
100385
|
+
var formatChildren = (feedbackLayout === 'popover' || feedbackLayout === 'hover-popover') && !!feedbackText ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_6__.Balloon, _extends({
|
100216
100386
|
needAdjust: true,
|
100217
100387
|
align: "t",
|
100218
100388
|
closable: false,
|
100219
100389
|
trigger: children
|
100220
100390
|
}, feedbackLayout === 'popover' ? {
|
100221
100391
|
visible: !!feedbackText
|
100222
|
-
} : {}), /*#__PURE__*/
|
100223
|
-
className:
|
100392
|
+
} : {}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
100393
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_1___default()((_cls = {}, _cls[prefixCls + "-" + feedbackStatus + "-help"] = !!feedbackStatus, _cls[prefixCls + "-help"] = true, _cls))
|
100224
100394
|
}, ICON_MAP[feedbackStatus != null ? feedbackStatus : ''], " ", feedbackText)) : children;
|
100225
100395
|
var gridStyles = {};
|
100226
100396
|
var getOverflowTooltip = function getOverflowTooltip() {
|
100227
100397
|
if (overflow) {
|
100228
|
-
return /*#__PURE__*/
|
100398
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", null, label), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", null, tooltip));
|
100229
100399
|
}
|
100230
100400
|
return tooltip;
|
100231
100401
|
};
|
100232
100402
|
var renderLabelText = function renderLabelText() {
|
100233
|
-
var labelChildren = /*#__PURE__*/
|
100234
|
-
className:
|
100403
|
+
var labelChildren = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
100404
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_1___default()(prefixCls + "-label-content"),
|
100235
100405
|
ref: containerRef
|
100236
|
-
}, /*#__PURE__*/
|
100406
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", {
|
100237
100407
|
ref: contentRef
|
100238
|
-
}, asterisk && /*#__PURE__*/
|
100239
|
-
className:
|
100240
|
-
}, '*'), /*#__PURE__*/
|
100408
|
+
}, asterisk && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", {
|
100409
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_1___default()(prefixCls + "-asterisk")
|
100410
|
+
}, '*'), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("label", null, label)));
|
100241
100411
|
if (tooltipLayout === 'text' && tooltip || overflow) {
|
100242
|
-
return /*#__PURE__*/
|
100412
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_6__.Balloon.Tooltip, {
|
100243
100413
|
align: "t",
|
100244
100414
|
trigger: labelChildren
|
100245
100415
|
}, getOverflowTooltip());
|
@@ -100248,9 +100418,9 @@ var BaseItem = function BaseItem(props) {
|
|
100248
100418
|
};
|
100249
100419
|
var renderTooltipIcon = function renderTooltipIcon() {
|
100250
100420
|
if (tooltip && tooltipLayout === 'icon' && !overflow) {
|
100251
|
-
return /*#__PURE__*/
|
100252
|
-
className:
|
100253
|
-
}, /*#__PURE__*/
|
100421
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", {
|
100422
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_1___default()(prefixCls + "-label-tooltip-icon")
|
100423
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_6__.Balloon.Tooltip, {
|
100254
100424
|
align: "t",
|
100255
100425
|
trigger: tooltipIcon
|
100256
100426
|
}, tooltip));
|
@@ -100259,19 +100429,19 @@ var BaseItem = function BaseItem(props) {
|
|
100259
100429
|
var renderLabel = function renderLabel() {
|
100260
100430
|
var _cls2;
|
100261
100431
|
if (!label) return null;
|
100262
|
-
return /*#__PURE__*/
|
100263
|
-
className:
|
100432
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
100433
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_1___default()((_cls2 = {}, _cls2[prefixCls + "-label"] = true, _cls2[prefixCls + "-label-tooltip"] = tooltip && tooltipLayout === 'text' || overflow, _cls2[prefixCls + "-item-col-" + labelCol] = enableCol && !!labelCol, _cls2)),
|
100264
100434
|
style: labelStyle
|
100265
|
-
}, renderLabelText(), renderTooltipIcon(), asterisk && /*#__PURE__*/
|
100266
|
-
className:
|
100267
|
-
}), label !== ' ' && /*#__PURE__*/
|
100268
|
-
className:
|
100435
|
+
}, renderLabelText(), renderTooltipIcon(), asterisk && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", {
|
100436
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_1___default()(prefixCls + "-asterisk-pro")
|
100437
|
+
}), label !== ' ' && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", {
|
100438
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_1___default()(prefixCls + "-colon")
|
100269
100439
|
}, colon ? ':' : ''));
|
100270
100440
|
};
|
100271
|
-
return /*#__PURE__*/
|
100441
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", _extends({}, (0,_builtins___WEBPACK_IMPORTED_MODULE_2__/* .pickDataProps */ .Ye)(props), {
|
100272
100442
|
style: _extends({}, style, gridStyles),
|
100273
100443
|
"data-grid-span": props.gridSpan,
|
100274
|
-
className:
|
100444
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_1___default()((_cls3 = {}, _cls3["" + prefixCls] = true, _cls3[prefixCls + "-layout-" + layout] = true, _cls3[prefixCls + "-" + feedbackStatus] = !!feedbackStatus, _cls3[prefixCls + "-feedback-has-text"] = !!feedbackText, _cls3[prefixCls + "-size-" + size] = !!size, _cls3[prefixCls + "-feedback-layout-" + feedbackLayout] = !!feedbackLayout, _cls3[prefixCls + "-fullness"] = !!fullness || !!inset || !!feedbackIcon, _cls3[prefixCls + "-inset"] = !!inset, _cls3[prefix + "input"] = !!inset, _cls3[prefixCls + "-active"] = active, _cls3[prefix + "focus"] = active, _cls3[prefixCls + "-extra-wrap"] = extra, _cls3[prefixCls + "-inset-active"] = !!inset && active, _cls3[prefixCls + "-label-align-" + labelAlign] = true, _cls3[prefixCls + "-control-align-" + wrapperAlign] = true, _cls3[prefixCls + "-label-wrap"] = !!labelWrap, _cls3[prefixCls + "-control-wrap"] = !!wrapperWrap, _cls3[prefixCls + "-bordered-none"] = bordered === false, _cls3[props == null ? void 0 : props.className] = !!props.className, _cls3)),
|
100275
100445
|
onFocus: function onFocus() {
|
100276
100446
|
if (feedbackIcon || inset) {
|
100277
100447
|
setActive(true);
|
@@ -100282,33 +100452,33 @@ var BaseItem = function BaseItem(props) {
|
|
100282
100452
|
setActive(false);
|
100283
100453
|
}
|
100284
100454
|
}
|
100285
|
-
}), renderLabel(), /*#__PURE__*/
|
100286
|
-
className:
|
100287
|
-
}, /*#__PURE__*/
|
100288
|
-
className:
|
100289
|
-
}, addonBefore && /*#__PURE__*/
|
100290
|
-
className:
|
100291
|
-
}, addonBefore), /*#__PURE__*/
|
100455
|
+
}), renderLabel(), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
100456
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_1___default()((_cls4 = {}, _cls4[prefixCls + "-control"] = true, _cls4[prefixCls + "-item-col-" + wrapperCol] = enableCol && !!wrapperCol && label, _cls4))
|
100457
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
100458
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_1___default()(prefixCls + "-control-content")
|
100459
|
+
}, addonBefore && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
100460
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_1___default()(prefixCls + "-addon-before")
|
100461
|
+
}, addonBefore), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
100292
100462
|
style: wrapperStyle,
|
100293
|
-
className:
|
100294
|
-
}, /*#__PURE__*/
|
100463
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_1___default()((_cls5 = {}, _cls5[prefixCls + "-control-content-component"] = true, _cls5[prefixCls + "-control-content-component-has-feedback-icon"] = !!feedbackIcon, _cls5[prefix + "input"] = !!feedbackIcon, _cls5[prefixCls + "-active"] = active, _cls5[prefix + "focus"] = active, _cls5))
|
100464
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_form_layout__WEBPACK_IMPORTED_MODULE_5__/* .FormLayoutShallowContext.Provider */ .$u.Provider, {
|
100295
100465
|
value: {
|
100296
100466
|
size: size
|
100297
100467
|
}
|
100298
|
-
}, formatChildren), feedbackIcon && /*#__PURE__*/
|
100299
|
-
className:
|
100300
|
-
}, feedbackIcon)), addonAfter && /*#__PURE__*/
|
100301
|
-
className:
|
100302
|
-
}, addonAfter)), !!feedbackText && feedbackLayout !== 'popover' && feedbackLayout !== 'hover-popover' && feedbackLayout !== 'none' && /*#__PURE__*/
|
100303
|
-
className:
|
100304
|
-
}, feedbackText), extra && /*#__PURE__*/
|
100305
|
-
className:
|
100468
|
+
}, formatChildren), feedbackIcon && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
100469
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_1___default()(prefixCls + "-feedback-icon")
|
100470
|
+
}, feedbackIcon)), addonAfter && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
100471
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_1___default()(prefixCls + "-addon-after")
|
100472
|
+
}, addonAfter)), !!feedbackText && feedbackLayout !== 'popover' && feedbackLayout !== 'hover-popover' && feedbackLayout !== 'none' && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
100473
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_1___default()((_cls6 = {}, _cls6[prefixCls + "-" + feedbackStatus + "-help"] = !!feedbackStatus, _cls6[prefixCls + "-help"] = true, _cls6[prefixCls + "-help-enter"] = true, _cls6[prefixCls + "-help-enter-active"] = true, _cls6))
|
100474
|
+
}, feedbackText), extra && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
100475
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_1___default()(prefixCls + "-extra")
|
100306
100476
|
}, extra)));
|
100307
100477
|
};
|
100308
100478
|
|
100309
100479
|
// 适配
|
100310
|
-
var FormItem2 = (0,
|
100311
|
-
if ((0,
|
100480
|
+
var FormItem2 = (0,_formily_react__WEBPACK_IMPORTED_MODULE_4__.connect)(BaseItem, (0,_formily_react__WEBPACK_IMPORTED_MODULE_4__.mapProps)(function (props, field) {
|
100481
|
+
if ((0,_formily_core__WEBPACK_IMPORTED_MODULE_3__.isVoidField)(field)) return {
|
100312
100482
|
label: field.title || props.label,
|
100313
100483
|
asterisk: props.asterisk,
|
100314
100484
|
extra: props.extra || field.description
|
@@ -100740,13 +100910,13 @@ var usePrefixCls = function usePrefixCls(tag, props) {
|
|
100740
100910
|
/* harmony export */ "x7": () => (/* binding */ QuestionCircleOutlinedIcon)
|
100741
100911
|
/* harmony export */ });
|
100742
100912
|
/* unused harmony exports Icon, MenuOutlinedIcon, PlusOutlinedIcon, UpOutlinedIcon, DownOutlinedIcon, DeleteOutlinedIcon, CopyOutlinedIcon, EditOutlinedIcon, CloseOutlinedIcon, MessageOutlinedIcon */
|
100743
|
-
/* harmony import */ var
|
100744
|
-
/* harmony import */ var
|
100913
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(59787);
|
100914
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
100745
100915
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(28266);
|
100746
100916
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
|
100747
|
-
/* harmony import */ var
|
100748
|
-
/* harmony import */ var
|
100749
|
-
/* harmony import */ var
|
100917
|
+
/* harmony import */ var _hooks_usePrefixCls__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5155);
|
100918
|
+
/* harmony import */ var _alicloudfe_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(33049);
|
100919
|
+
/* harmony import */ var _alicloudfe_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_3__);
|
100750
100920
|
var _excluded = ["text"];
|
100751
100921
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
100752
100922
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
@@ -100754,19 +100924,19 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
100754
100924
|
|
100755
100925
|
|
100756
100926
|
|
100757
|
-
var Icon = /*#__PURE__*/
|
100758
|
-
var prefix = (0,
|
100927
|
+
var Icon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (originalProps, ref) {
|
100928
|
+
var prefix = (0,_hooks_usePrefixCls__WEBPACK_IMPORTED_MODULE_2__/* .usePrefixCls */ .F)('formily-icon');
|
100759
100929
|
var text = originalProps.text,
|
100760
100930
|
props = _objectWithoutPropertiesLoose(originalProps, _excluded);
|
100761
100931
|
if (text) {
|
100762
|
-
return /*#__PURE__*/
|
100932
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_3__.Button, _extends({
|
100763
100933
|
text: true
|
100764
100934
|
}, props, {
|
100765
100935
|
ref: ref,
|
100766
100936
|
className: classnames__WEBPACK_IMPORTED_MODULE_1___default()(prefix, props.className)
|
100767
100937
|
}), text);
|
100768
100938
|
}
|
100769
|
-
return /*#__PURE__*/
|
100939
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("svg", _extends({}, props, {
|
100770
100940
|
ref: ref,
|
100771
100941
|
className: classnames__WEBPACK_IMPORTED_MODULE_1___default()(prefix, props.className),
|
100772
100942
|
style: _extends({}, props.style, {
|
@@ -100835,37 +101005,37 @@ var CopyOutlinedIcon = /*#__PURE__*/(/* unused pure expression or super */ null
|
|
100835
101005
|
d: "M608 444.8h128c14.08 0 32-14.08 32-32s-17.92-32-32-32H608c-14.08 0-32 14.08-32 32s17.92 32 32 32zM480 764.8h256c14.08 0 32-14.08 32-32s-17.92-32-32-32H480c-14.08 0-32 14.08-32 32s17.92 32 32 32zM544 604.8h192c14.08 0 32-14.08 32-32s-17.92-32-32-32H544c-14.08 0-32 14.08-32 32s17.92 32 32 32z"
|
100836
101006
|
}));
|
100837
101007
|
})));
|
100838
|
-
var QuestionCircleOutlinedIcon = /*#__PURE__*/
|
100839
|
-
return /*#__PURE__*/
|
101008
|
+
var QuestionCircleOutlinedIcon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
|
101009
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Icon, _extends({}, props, {
|
100840
101010
|
ref: ref
|
100841
|
-
}), /*#__PURE__*/
|
101011
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", {
|
100842
101012
|
d: "M512 64c-247.04 0-448 200.96-448 448s200.96 448 448 448 448-200.96 448-448-200.96-448-448-448z m0 832c-211.84 0-384-172.16-384-384s172.16-384 384-384 384 172.16 384 384-172.16 384-384 384z",
|
100843
101013
|
"p-id": "11829"
|
100844
|
-
}), /*#__PURE__*/
|
101014
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", {
|
100845
101015
|
d: "M592.64 715.52h-32.64l0.64-289.28c0-17.28-14.08-31.36-31.36-31.36h-64c-17.92 0-32 14.08-32 32s14.08 32 32 32h31.36l-0.64 256.64h-31.36c-17.92 0-32 14.08-32 32s14.08 32 32 32h128c17.92 0 32-14.08 32-32s-14.08-32-32-32zM503.04 339.2c33.92 6.4 62.72-22.4 56.32-56.32-3.84-19.2-18.56-33.92-37.76-37.76-33.92-6.4-62.72 22.4-56.32 56.32 3.84 19.2 19.2 34.56 37.76 37.76z",
|
100846
101016
|
"p-id": "11830"
|
100847
101017
|
}));
|
100848
101018
|
});
|
100849
|
-
var CloseCircleOutlinedIcon = /*#__PURE__*/
|
100850
|
-
return /*#__PURE__*/
|
101019
|
+
var CloseCircleOutlinedIcon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
|
101020
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Icon, _extends({}, props, {
|
100851
101021
|
ref: ref
|
100852
|
-
}), /*#__PURE__*/
|
101022
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", {
|
100853
101023
|
d: "M512.64 64c-247.04 0-448 200.96-448 448s200.96 448 448 448 448-200.96 448-448-200.96-448-448-448z m194.56 636.8c-12.8 12.8-35.2 10.24-45.44 0L512.64 551.68l-149.12 149.12c-10.24 10.24-32.64 12.8-45.44 0s-10.24-35.2 0-45.44L467.2 506.24 329.6 368c-10.24-10.24-12.8-32.64 0-45.44s35.2-10.24 45.44 0L513.28 460.8l138.24-138.24c10.24-10.24 32.64-12.8 45.44 0s10.24 35.2 0 45.44L558.08 506.88l149.12 149.12c10.24 9.6 12.8 32.64 0 44.8z",
|
100854
101024
|
"p-id": "11972"
|
100855
101025
|
}));
|
100856
101026
|
});
|
100857
|
-
var CheckCircleOutlinedIcon = /*#__PURE__*/
|
100858
|
-
return /*#__PURE__*/
|
101027
|
+
var CheckCircleOutlinedIcon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
|
101028
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Icon, _extends({}, props, {
|
100859
101029
|
ref: ref
|
100860
|
-
}), /*#__PURE__*/
|
101030
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", {
|
100861
101031
|
d: "M512 64c-247.04 0-448 200.96-448 448s200.96 448 448 448 448-200.96 448-448-200.96-448-448-448z m256 342.4l-279.68 277.76c-12.16 12.8-32.64 12.8-45.44 0.64L256.64 501.76c-12.8-12.16-12.8-32.64-0.64-45.44s32.64-12.8 45.44-0.64l163.2 160.64 257.28-254.72c12.16-12.8 32.64-12.8 45.44-0.64 12.8 12.8 12.8 32.64 0.64 45.44z",
|
100862
101032
|
"p-id": "12114"
|
100863
101033
|
}));
|
100864
101034
|
});
|
100865
|
-
var ExclamationCircleOutlinedIcon = /*#__PURE__*/
|
100866
|
-
return /*#__PURE__*/
|
101035
|
+
var ExclamationCircleOutlinedIcon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
|
101036
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Icon, _extends({}, props, {
|
100867
101037
|
ref: ref
|
100868
|
-
}), /*#__PURE__*/
|
101038
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", {
|
100869
101039
|
d: "M512 64c-247.04 0-448 200.96-448 448s200.96 448 448 448 448-200.96 448-448-200.96-448-448-448z m-32 272c0-14.08 14.08-32 32-32s32 17.92 32 32v224c0 14.08-14.08 32-32 32s-32-17.92-32-32v-224z m22.4 383.36c-19.2-3.84-33.92-18.56-37.76-37.76-6.4-33.92 22.4-62.72 56.32-56.32 19.2 3.84 33.92 18.56 37.76 37.76 7.04 33.28-22.4 62.72-56.32 56.32z",
|
100870
101040
|
"p-id": "12256"
|
100871
101041
|
}));
|
@@ -100906,19 +101076,19 @@ var MessageOutlinedIcon = /*#__PURE__*/(/* unused pure expression or super */ nu
|
|
100906
101076
|
"use strict";
|
100907
101077
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
100908
101078
|
/* harmony export */ "F8": () => (/* reexport safe */ _hooks__WEBPACK_IMPORTED_MODULE_1__.F),
|
100909
|
-
/* harmony export */ "VF": () => (/* reexport safe */
|
100910
|
-
/* harmony export */ "Ye": () => (/* reexport safe */
|
100911
|
-
/* harmony export */ "_P": () => (/* reexport safe */
|
100912
|
-
/* harmony export */ "fL": () => (/* reexport safe */
|
100913
|
-
/* harmony export */ "x7": () => (/* reexport safe */
|
101079
|
+
/* harmony export */ "VF": () => (/* reexport safe */ _icons__WEBPACK_IMPORTED_MODULE_6__.VF),
|
101080
|
+
/* harmony export */ "Ye": () => (/* reexport safe */ _pickDataProps__WEBPACK_IMPORTED_MODULE_5__.Y),
|
101081
|
+
/* harmony export */ "_P": () => (/* reexport safe */ _icons__WEBPACK_IMPORTED_MODULE_6__._P),
|
101082
|
+
/* harmony export */ "fL": () => (/* reexport safe */ _icons__WEBPACK_IMPORTED_MODULE_6__.fL),
|
101083
|
+
/* harmony export */ "x7": () => (/* reexport safe */ _icons__WEBPACK_IMPORTED_MODULE_6__.x7)
|
100914
101084
|
/* harmony export */ });
|
100915
|
-
/* harmony import */ var
|
101085
|
+
/* harmony import */ var _moment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(30257);
|
100916
101086
|
/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(60636);
|
100917
|
-
/* harmony import */ var
|
100918
|
-
/* harmony import */ var
|
100919
|
-
/* harmony import */ var
|
100920
|
-
/* harmony import */ var
|
100921
|
-
/* harmony import */ var
|
101087
|
+
/* harmony import */ var _mapSize__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7131);
|
101088
|
+
/* harmony import */ var _empty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(88126);
|
101089
|
+
/* harmony import */ var _loading__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(39525);
|
101090
|
+
/* harmony import */ var _pickDataProps__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(2614);
|
101091
|
+
/* harmony import */ var _icons__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(33326);
|
100922
101092
|
|
100923
101093
|
|
100924
101094
|
|
@@ -101089,12 +101259,12 @@ var pickDataProps = function pickDataProps(props) {
|
|
101089
101259
|
/* harmony export */ "Hp": () => (/* binding */ useFormLayout)
|
101090
101260
|
/* harmony export */ });
|
101091
101261
|
/* unused harmony exports FormLayoutDeepContext, useFormDeepLayout, useFormShallowLayout, FormLayout */
|
101092
|
-
/* harmony import */ var
|
101093
|
-
/* harmony import */ var
|
101094
|
-
/* harmony import */ var
|
101095
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
101262
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(59787);
|
101263
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
101264
|
+
/* harmony import */ var _useResponsiveFormLayout__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(41198);
|
101096
101265
|
/* harmony import */ var _builtins___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(99372);
|
101097
|
-
/* harmony import */ var
|
101266
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(28266);
|
101267
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
|
101098
101268
|
var _excluded = ["shallow", "children", "prefix", "className", "style"];
|
101099
101269
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
101100
101270
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
@@ -101102,13 +101272,13 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
101102
101272
|
|
101103
101273
|
|
101104
101274
|
|
101105
|
-
var FormLayoutDeepContext = /*#__PURE__*/(0,
|
101106
|
-
var FormLayoutShallowContext = /*#__PURE__*/(0,
|
101275
|
+
var FormLayoutDeepContext = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)({});
|
101276
|
+
var FormLayoutShallowContext = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)({});
|
101107
101277
|
var useFormDeepLayout = function useFormDeepLayout() {
|
101108
|
-
return (0,
|
101278
|
+
return (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(FormLayoutDeepContext);
|
101109
101279
|
};
|
101110
101280
|
var useFormShallowLayout = function useFormShallowLayout() {
|
101111
|
-
return (0,
|
101281
|
+
return (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(FormLayoutShallowContext);
|
101112
101282
|
};
|
101113
101283
|
var useFormLayout = function useFormLayout() {
|
101114
101284
|
return _extends({}, useFormDeepLayout(), useFormShallowLayout());
|
@@ -101121,7 +101291,7 @@ var FormLayout = function FormLayout(_ref) {
|
|
101121
101291
|
className = _ref.className,
|
101122
101292
|
style = _ref.style,
|
101123
101293
|
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
|
101124
|
-
var _useResponsiveFormLay = (0,
|
101294
|
+
var _useResponsiveFormLay = (0,_useResponsiveFormLayout__WEBPACK_IMPORTED_MODULE_1__/* .useResponsiveFormLayout */ .f)(otherProps),
|
101125
101295
|
ref = _useResponsiveFormLay.ref,
|
101126
101296
|
props = _useResponsiveFormLay.props;
|
101127
101297
|
var deepLayout = useFormDeepLayout();
|
@@ -101131,7 +101301,7 @@ var FormLayout = function FormLayout(_ref) {
|
|
101131
101301
|
var layoutPrefixCls = (0,_builtins___WEBPACK_IMPORTED_MODULE_2__/* .usePrefixCls */ .F8)('formily-layout', {
|
101132
101302
|
prefix: prefix
|
101133
101303
|
});
|
101134
|
-
var layoutClassName =
|
101304
|
+
var layoutClassName = classnames__WEBPACK_IMPORTED_MODULE_3___default()(layoutPrefixCls, (_cls = {}, _cls[formPrefixCls + "-" + props.layout] = true, _cls[formPrefixCls + "-rtl"] = props.direction === 'rtl', _cls[formPrefixCls + "-" + props.size] = props.size, _cls), className);
|
101135
101305
|
var renderChildren = function renderChildren() {
|
101136
101306
|
var newDeepLayout = _extends({}, deepLayout);
|
101137
101307
|
if (!shallow) {
|
@@ -101144,13 +101314,13 @@ var FormLayout = function FormLayout(_ref) {
|
|
101144
101314
|
newDeepLayout.colon = props.colon;
|
101145
101315
|
}
|
101146
101316
|
}
|
101147
|
-
return /*#__PURE__*/
|
101317
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(FormLayoutDeepContext.Provider, {
|
101148
101318
|
value: newDeepLayout
|
101149
|
-
}, /*#__PURE__*/
|
101319
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(FormLayoutShallowContext.Provider, {
|
101150
101320
|
value: shallow ? props : undefined
|
101151
101321
|
}, children));
|
101152
101322
|
};
|
101153
|
-
return /*#__PURE__*/
|
101323
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
101154
101324
|
ref: ref,
|
101155
101325
|
className: layoutClassName,
|
101156
101326
|
style: style
|
@@ -101173,10 +101343,10 @@ FormLayout.useFormLayout = useFormLayout;
|
|
101173
101343
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
101174
101344
|
/* harmony export */ "f": () => (/* binding */ useResponsiveFormLayout)
|
101175
101345
|
/* harmony export */ });
|
101176
|
-
/* harmony import */ var
|
101177
|
-
/* harmony import */ var
|
101178
|
-
/* harmony import */ var
|
101179
|
-
/* harmony import */ var
|
101346
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(59787);
|
101347
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
101348
|
+
/* harmony import */ var _formily_shared__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(39302);
|
101349
|
+
/* harmony import */ var _formily_shared__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_formily_shared__WEBPACK_IMPORTED_MODULE_1__);
|
101180
101350
|
var _excluded = ["breakpoints", "layout", "labelAlign", "wrapperAlign", "labelCol", "wrapperCol"];
|
101181
101351
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
101182
101352
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
@@ -101199,7 +101369,7 @@ var calcFactor = function calcFactor(value, breakpointIndex) {
|
|
101199
101369
|
}
|
101200
101370
|
};
|
101201
101371
|
var factor = function factor(value, breakpointIndex) {
|
101202
|
-
return (0,
|
101372
|
+
return (0,_formily_shared__WEBPACK_IMPORTED_MODULE_1__.isValid)(value) ? calcFactor(value, breakpointIndex) : value;
|
101203
101373
|
};
|
101204
101374
|
var calculateProps = function calculateProps(target, props) {
|
101205
101375
|
var clientWidth = target.clientWidth;
|
@@ -101220,15 +101390,15 @@ var calculateProps = function calculateProps(target, props) {
|
|
101220
101390
|
}, otherProps);
|
101221
101391
|
};
|
101222
101392
|
var useResponsiveFormLayout = function useResponsiveFormLayout(props) {
|
101223
|
-
var ref = (0,
|
101393
|
+
var ref = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
|
101224
101394
|
var breakpoints = props.breakpoints;
|
101225
|
-
if (!(0,
|
101395
|
+
if (!(0,_formily_shared__WEBPACK_IMPORTED_MODULE_1__.isArr)(breakpoints)) {
|
101226
101396
|
return {
|
101227
101397
|
ref: ref,
|
101228
101398
|
props: props
|
101229
101399
|
};
|
101230
101400
|
}
|
101231
|
-
var _useState = (0,
|
101401
|
+
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(props),
|
101232
101402
|
layoutProps = _useState[0],
|
101233
101403
|
setLayout = _useState[1];
|
101234
101404
|
var updateUI = function updateUI() {
|
@@ -101236,7 +101406,7 @@ var useResponsiveFormLayout = function useResponsiveFormLayout(props) {
|
|
101236
101406
|
setLayout(calculateProps(ref.current, props));
|
101237
101407
|
}
|
101238
101408
|
};
|
101239
|
-
(0,
|
101409
|
+
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
101240
101410
|
var observer = function observer() {
|
101241
101411
|
updateUI();
|
101242
101412
|
};
|
@@ -101264,9 +101434,9 @@ var useResponsiveFormLayout = function useResponsiveFormLayout(props) {
|
|
101264
101434
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
101265
101435
|
/* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
|
101266
101436
|
/* harmony export */ });
|
101267
|
-
/* harmony import */ var
|
101268
|
-
/* harmony import */ var
|
101269
|
-
/* harmony import */ var
|
101437
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(59787);
|
101438
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
101439
|
+
/* harmony import */ var _teamix_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80653);
|
101270
101440
|
/* harmony import */ var _ProForm__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(44344);
|
101271
101441
|
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(51344);
|
101272
101442
|
var _excluded = ["schema", "onSubmit", "onReset", "layout", "labelAlign", "wrapperAlign", "labelCol", "wrapperCol", "breakpoints", "gridProps", "forceClear"];
|
@@ -101282,11 +101452,10 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
101282
101452
|
|
101283
101453
|
|
101284
101454
|
|
101285
|
-
|
101286
101455
|
/**
|
101287
101456
|
* 高级筛选
|
101288
101457
|
*/
|
101289
|
-
var AdvancedFilter = /*#__PURE__*/(0,
|
101458
|
+
var AdvancedFilter = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(function (props) {
|
101290
101459
|
var _ref = props,
|
101291
101460
|
schema = _ref.schema,
|
101292
101461
|
onSubmit = _ref.onSubmit,
|
@@ -101300,8 +101469,8 @@ var AdvancedFilter = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.memo)(fu
|
|
101300
101469
|
gridProps = _ref.gridProps,
|
101301
101470
|
forceClear = _ref.forceClear,
|
101302
101471
|
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
|
101303
|
-
var prefixCls = (0,
|
101304
|
-
var gridSchema = (0,
|
101472
|
+
var prefixCls = (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_1__.usePrefixCls)('teamix-pro-form-query-filter-advanced');
|
101473
|
+
var gridSchema = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
|
101305
101474
|
return [{
|
101306
101475
|
name: 'AdvancedFilterFormGrid',
|
101307
101476
|
component: 'FormGrid',
|
@@ -101328,7 +101497,7 @@ var AdvancedFilter = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.memo)(fu
|
|
101328
101497
|
props: {
|
101329
101498
|
onResetValidateSuccess: onReset,
|
101330
101499
|
forceClear: !!forceClear,
|
101331
|
-
children: (0,
|
101500
|
+
children: (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_1__.getMessage)('reset')
|
101332
101501
|
}
|
101333
101502
|
}, {
|
101334
101503
|
component: 'Submit',
|
@@ -101336,18 +101505,18 @@ var AdvancedFilter = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.memo)(fu
|
|
101336
101505
|
style: {
|
101337
101506
|
marginRight: -4
|
101338
101507
|
},
|
101339
|
-
children: (0,
|
101508
|
+
children: (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_1__.getMessage)('search')
|
101340
101509
|
}
|
101341
101510
|
}]
|
101342
101511
|
}]
|
101343
101512
|
}])
|
101344
101513
|
}];
|
101345
101514
|
}, [schema, onReset]);
|
101346
|
-
(0,
|
101515
|
+
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
101347
101516
|
var _otherProps$form;
|
101348
101517
|
otherProps == null ? void 0 : (_otherProps$form = otherProps.form) == null ? void 0 : _otherProps$form.clearFormGraph('AdvancedFilterReset');
|
101349
101518
|
}, [onReset]);
|
101350
|
-
var getTeamixLayout = (0,
|
101519
|
+
var getTeamixLayout = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
|
101351
101520
|
return breakpoints === true ? {
|
101352
101521
|
breakpoints: [990],
|
101353
101522
|
layout: (0,_utils__WEBPACK_IMPORTED_MODULE_3__/* .mergeArrayValue */ .UT)(['vertical'], layout),
|
@@ -101356,7 +101525,7 @@ var AdvancedFilter = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.memo)(fu
|
|
101356
101525
|
labelCol: (0,_utils__WEBPACK_IMPORTED_MODULE_3__/* .mergeArrayValue */ .UT)([24], labelCol),
|
101357
101526
|
wrapperCol: (0,_utils__WEBPACK_IMPORTED_MODULE_3__/* .mergeArrayValue */ .UT)([24], wrapperCol)
|
101358
101527
|
} : {
|
101359
|
-
breakpoints: (0,
|
101528
|
+
breakpoints: (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_1__.isBool)(breakpoints) ? undefined : breakpoints,
|
101360
101529
|
layout: layout,
|
101361
101530
|
labelAlign: labelAlign,
|
101362
101531
|
wrapperAlign: wrapperAlign,
|
@@ -101364,8 +101533,8 @@ var AdvancedFilter = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.memo)(fu
|
|
101364
101533
|
wrapperCol: wrapperCol
|
101365
101534
|
};
|
101366
101535
|
}, [breakpoints, layout, labelAlign, wrapperAlign, labelCol, wrapperCol]);
|
101367
|
-
return /*#__PURE__*/
|
101368
|
-
className: (0,
|
101536
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_ProForm__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, _extends({
|
101537
|
+
className: (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_1__.cls)(prefixCls(), props.className),
|
101369
101538
|
schema: gridSchema,
|
101370
101539
|
feedbackLayout: "popover"
|
101371
101540
|
}, otherProps, getTeamixLayout, {
|
@@ -102221,10 +102390,10 @@ QueryFilter.defaultProps = {
|
|
102221
102390
|
/* harmony export */ "aT": () => (/* binding */ SimpleFilter),
|
102222
102391
|
/* harmony export */ "h4": () => (/* binding */ AdvancedFilter)
|
102223
102392
|
/* harmony export */ });
|
102224
|
-
/* harmony import */ var
|
102393
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(59787);
|
102394
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
102225
102395
|
/* harmony import */ var _teamix_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80653);
|
102226
|
-
/* harmony import */ var
|
102227
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
|
102396
|
+
/* harmony import */ var _formily_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7186);
|
102228
102397
|
/* harmony import */ var _ProForm__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(44344);
|
102229
102398
|
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(51344);
|
102230
102399
|
var _excluded = ["schema", "triggerType", "onFilter"];
|
@@ -102260,14 +102429,14 @@ var getEventProps = function getEventProps(triggerType, onFilter) {
|
|
102260
102429
|
/**
|
102261
102430
|
* 简单筛选
|
102262
102431
|
*/
|
102263
|
-
var SimpleFilter = /*#__PURE__*/(0,
|
102432
|
+
var SimpleFilter = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(function (props) {
|
102264
102433
|
var _ref = props,
|
102265
102434
|
schema = _ref.schema,
|
102266
102435
|
triggerType = _ref.triggerType,
|
102267
102436
|
onFilter = _ref.onFilter,
|
102268
102437
|
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
|
102269
102438
|
var prefixCls = (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_1__.usePrefixCls)('teamix-pro-form-filter-simple');
|
102270
|
-
var simpleSchema = (0,
|
102439
|
+
var simpleSchema = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
|
102271
102440
|
return [{
|
102272
102441
|
component: 'FormFlex',
|
102273
102442
|
props: {
|
@@ -102286,7 +102455,7 @@ var SimpleFilter = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.memo)(func
|
|
102286
102455
|
}];
|
102287
102456
|
}, [schema, triggerType]);
|
102288
102457
|
var eventProps = getEventProps(triggerType, onFilter);
|
102289
|
-
return /*#__PURE__*/
|
102458
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_ProForm__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, _extends({
|
102290
102459
|
feedbackLayout: "popover",
|
102291
102460
|
breakpoints: [],
|
102292
102461
|
inset: true
|
@@ -102302,9 +102471,9 @@ SimpleFilter.defaultProps = {
|
|
102302
102471
|
/**
|
102303
102472
|
* 高级筛选
|
102304
102473
|
*/
|
102305
|
-
var AdvancedFilter = /*#__PURE__*/(0,
|
102306
|
-
var form = (0,
|
102307
|
-
return (props == null ? void 0 : props.form) || (0,
|
102474
|
+
var AdvancedFilter = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(function (props) {
|
102475
|
+
var form = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
|
102476
|
+
return (props == null ? void 0 : props.form) || (0,_formily_core__WEBPACK_IMPORTED_MODULE_2__.createForm)();
|
102308
102477
|
}, []);
|
102309
102478
|
var _ref2 = props,
|
102310
102479
|
schema = _ref2.schema,
|
@@ -102317,7 +102486,7 @@ var AdvancedFilter = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.memo)(fu
|
|
102317
102486
|
labelCol = _ref2.labelCol,
|
102318
102487
|
wrapperCol = _ref2.wrapperCol;
|
102319
102488
|
var prefixCls = (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_1__.usePrefixCls)('teamix-pro-form-filter-advanced');
|
102320
|
-
var gridSchema = (0,
|
102489
|
+
var gridSchema = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
|
102321
102490
|
return [{
|
102322
102491
|
name: 'FormGrid',
|
102323
102492
|
component: 'FormGrid',
|
@@ -102361,7 +102530,7 @@ var AdvancedFilter = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.memo)(fu
|
|
102361
102530
|
}])
|
102362
102531
|
}];
|
102363
102532
|
}, [schema, onReset, triggerType]);
|
102364
|
-
var getTeamixLayout = (0,
|
102533
|
+
var getTeamixLayout = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
|
102365
102534
|
return {
|
102366
102535
|
breakpoints: [990],
|
102367
102536
|
layout: (0,_utils__WEBPACK_IMPORTED_MODULE_4__/* .mergeArrayValue */ .UT)(['vertical'], layout),
|
@@ -102372,7 +102541,7 @@ var AdvancedFilter = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.memo)(fu
|
|
102372
102541
|
};
|
102373
102542
|
}, [layout, labelAlign, wrapperAlign, labelCol, wrapperCol]);
|
102374
102543
|
var eventProps = getEventProps(triggerType, onFilter);
|
102375
|
-
return /*#__PURE__*/
|
102544
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_ProForm__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, _extends({
|
102376
102545
|
feedbackLayout: "popover"
|
102377
102546
|
}, props, eventProps, getTeamixLayout, {
|
102378
102547
|
form: form,
|
@@ -102775,28 +102944,26 @@ var customComponent = function customComponent(component) {
|
|
102775
102944
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
102776
102945
|
/* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
|
102777
102946
|
/* harmony export */ });
|
102778
|
-
/* harmony import */ var
|
102779
|
-
/* harmony import */ var
|
102780
|
-
/* harmony import */ var
|
102781
|
-
/* harmony import */ var
|
102782
|
-
/* harmony import */ var
|
102783
|
-
/* harmony import */ var
|
102784
|
-
/* harmony import */ var
|
102785
|
-
/* harmony import */ var
|
102786
|
-
/* harmony import */ var
|
102787
|
-
/* harmony import */ var
|
102788
|
-
/* harmony import */ var
|
102789
|
-
/* harmony import */ var
|
102947
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(59787);
|
102948
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
102949
|
+
/* harmony import */ var _teamix_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80653);
|
102950
|
+
/* harmony import */ var _formily_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7186);
|
102951
|
+
/* harmony import */ var _formily_reactive__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(92650);
|
102952
|
+
/* harmony import */ var _teamix_formily__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(59953);
|
102953
|
+
/* harmony import */ var _alicloudfe_components__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(33049);
|
102954
|
+
/* harmony import */ var _alicloudfe_components__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_5__);
|
102955
|
+
/* harmony import */ var _Components_ProField__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(1229);
|
102956
|
+
/* harmony import */ var _addCascadeEffect__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(50676);
|
102957
|
+
/* harmony import */ var _Components_Editable__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(87410);
|
102958
|
+
/* harmony import */ var _Components_FormGroup__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(61921);
|
102790
102959
|
/* harmony import */ var _Components_LightFilter__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(58295);
|
102791
|
-
/* harmony import */ var
|
102792
|
-
/* harmony import */ var
|
102793
|
-
/* harmony import */ var
|
102794
|
-
/* harmony import */ var
|
102795
|
-
/* harmony import */ var
|
102796
|
-
/* harmony import */ var
|
102797
|
-
/* harmony import */ var
|
102798
|
-
/* harmony import */ var _useAutoSubmit__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(86924);
|
102799
|
-
/* harmony import */ var _useInitialRequest__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(8550);
|
102960
|
+
/* harmony import */ var _Components_Text_index__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(70041);
|
102961
|
+
/* harmony import */ var _SchemaForm__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(12051);
|
102962
|
+
/* harmony import */ var _useAutoSubmit__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(86924);
|
102963
|
+
/* harmony import */ var _useAutoLayout__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(67995);
|
102964
|
+
/* harmony import */ var _useInitialRequest__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(8550);
|
102965
|
+
/* harmony import */ var _locales_validate__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(67315);
|
102966
|
+
/* harmony import */ var _Components_FormItem2__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(54778);
|
102800
102967
|
var _excluded = ["form", "initialValues", "initialRequest", "scope", "context", "components", "onChange", "onChangeType", "onSubmit", "onSubmitFailed", "onInitialComplete", "className", "validateFirst", "schema", "children"];
|
102801
102968
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
102802
102969
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
@@ -102819,39 +102986,37 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
102819
102986
|
|
102820
102987
|
|
102821
102988
|
|
102822
|
-
|
102823
|
-
|
102824
|
-
(0,_formily_core__WEBPACK_IMPORTED_MODULE_1__.registerValidateLocale)(_locales_validate__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z);
|
102989
|
+
(0,_formily_core__WEBPACK_IMPORTED_MODULE_2__.registerValidateLocale)(_locales_validate__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z);
|
102825
102990
|
var formilyComponents = {
|
102826
|
-
FormLayout:
|
102827
|
-
FormItem:
|
102828
|
-
ArrayCollapse:
|
102829
|
-
ArrayCards:
|
102830
|
-
ArrayItems:
|
102831
|
-
ArrayTable:
|
102832
|
-
Space:
|
102833
|
-
FormGrid:
|
102834
|
-
FormTab:
|
102835
|
-
FormCollapse:
|
102836
|
-
FormStep:
|
102837
|
-
Editable:
|
102838
|
-
FormDialogFooter:
|
102839
|
-
FormDrawerFooter:
|
102840
|
-
FormButtonGroup:
|
102841
|
-
Submit:
|
102842
|
-
Reset:
|
102843
|
-
EditableDialog:
|
102844
|
-
EditableDrawer:
|
102845
|
-
EditablePopover:
|
102846
|
-
FormGroup:
|
102847
|
-
Upload:
|
102848
|
-
SelectTable:
|
102849
|
-
Affix:
|
102991
|
+
FormLayout: _teamix_formily__WEBPACK_IMPORTED_MODULE_4__.FormLayout,
|
102992
|
+
FormItem: _teamix_formily__WEBPACK_IMPORTED_MODULE_4__.FormItem,
|
102993
|
+
ArrayCollapse: _teamix_formily__WEBPACK_IMPORTED_MODULE_4__.ArrayCollapse,
|
102994
|
+
ArrayCards: _teamix_formily__WEBPACK_IMPORTED_MODULE_4__.ArrayCards,
|
102995
|
+
ArrayItems: _teamix_formily__WEBPACK_IMPORTED_MODULE_4__.ArrayItems,
|
102996
|
+
ArrayTable: _teamix_formily__WEBPACK_IMPORTED_MODULE_4__.ArrayTable,
|
102997
|
+
Space: _teamix_formily__WEBPACK_IMPORTED_MODULE_4__.Space,
|
102998
|
+
FormGrid: _teamix_formily__WEBPACK_IMPORTED_MODULE_4__.FormGrid,
|
102999
|
+
FormTab: _teamix_formily__WEBPACK_IMPORTED_MODULE_4__.FormTab,
|
103000
|
+
FormCollapse: _teamix_formily__WEBPACK_IMPORTED_MODULE_4__.FormCollapse,
|
103001
|
+
FormStep: _teamix_formily__WEBPACK_IMPORTED_MODULE_4__.FormStep,
|
103002
|
+
Editable: _teamix_formily__WEBPACK_IMPORTED_MODULE_4__.Editable,
|
103003
|
+
FormDialogFooter: _teamix_formily__WEBPACK_IMPORTED_MODULE_4__.FormDialog.Footer,
|
103004
|
+
FormDrawerFooter: _teamix_formily__WEBPACK_IMPORTED_MODULE_4__.FormDrawer.Footer,
|
103005
|
+
FormButtonGroup: _teamix_formily__WEBPACK_IMPORTED_MODULE_4__.FormButtonGroup,
|
103006
|
+
Submit: _teamix_formily__WEBPACK_IMPORTED_MODULE_4__.Submit,
|
103007
|
+
Reset: _teamix_formily__WEBPACK_IMPORTED_MODULE_4__.Reset,
|
103008
|
+
EditableDialog: _Components_Editable__WEBPACK_IMPORTED_MODULE_8__/* .EditableDialog */ .eW,
|
103009
|
+
EditableDrawer: _Components_Editable__WEBPACK_IMPORTED_MODULE_8__/* .EditableDrawer */ .oq,
|
103010
|
+
EditablePopover: _Components_Editable__WEBPACK_IMPORTED_MODULE_8__/* .EditablePopover */ .j4,
|
103011
|
+
FormGroup: _Components_FormGroup__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z,
|
103012
|
+
Upload: _teamix_formily__WEBPACK_IMPORTED_MODULE_4__.Upload,
|
103013
|
+
SelectTable: _teamix_formily__WEBPACK_IMPORTED_MODULE_4__.SelectTable,
|
103014
|
+
Affix: _alicloudfe_components__WEBPACK_IMPORTED_MODULE_5__.Affix,
|
102850
103015
|
LightFilter: _Components_LightFilter__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z,
|
102851
|
-
Text:
|
102852
|
-
FormItem2:
|
103016
|
+
Text: _Components_Text_index__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z,
|
103017
|
+
FormItem2: _Components_FormItem2__WEBPACK_IMPORTED_MODULE_17__/* ["default"] */ .ZP
|
102853
103018
|
};
|
102854
|
-
var ProForm = /*#__PURE__*/(0,
|
103019
|
+
var ProForm = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(function (_ref) {
|
102855
103020
|
var outerForm = _ref.form,
|
102856
103021
|
initialValues = _ref.initialValues,
|
102857
103022
|
initialRequest = _ref.initialRequest,
|
@@ -102865,41 +103030,38 @@ var ProForm = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_5__.memo)(function
|
|
102865
103030
|
onInitialComplete = _ref.onInitialComplete,
|
102866
103031
|
className = _ref.className,
|
102867
103032
|
validateFirst = _ref.validateFirst,
|
102868
|
-
|
103033
|
+
schema = _ref.schema,
|
102869
103034
|
children = _ref.children,
|
102870
103035
|
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
|
102871
|
-
var formRef = (0,
|
103036
|
+
var formRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
|
102872
103037
|
// 获取全局配置
|
102873
|
-
var _ref2 = (0,
|
103038
|
+
var _ref2 = (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_1__.getGlobalConfig)('ProForm') || {},
|
102874
103039
|
globalComponents = _ref2.components,
|
102875
103040
|
globalScope = _ref2.scope;
|
102876
103041
|
var mergedScope = _extends({}, context, globalScope, scope, {
|
102877
103042
|
context: context
|
102878
103043
|
});
|
102879
|
-
var
|
102880
|
-
|
102881
|
-
}, [schemaProps]);
|
102882
|
-
var form = (0,react__WEBPACK_IMPORTED_MODULE_5__.useMemo)(function () {
|
102883
|
-
var nextForm = outerForm || (0,_formily_core__WEBPACK_IMPORTED_MODULE_1__.createForm)({
|
103044
|
+
var form = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
|
103045
|
+
var nextForm = outerForm || (0,_formily_core__WEBPACK_IMPORTED_MODULE_2__.createForm)({
|
102884
103046
|
validateFirst: validateFirst
|
102885
103047
|
});
|
102886
|
-
(0,
|
103048
|
+
(0,_addCascadeEffect__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(nextForm, schema, mergedScope);
|
102887
103049
|
return nextForm;
|
102888
103050
|
}, [outerForm]);
|
102889
|
-
var prefixCls = (0,
|
103051
|
+
var prefixCls = (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_1__.usePrefixCls)('teamix-pro-form');
|
102890
103052
|
// 由于Actions需要,解构context供使用。原context键名的上下文继续保留。
|
102891
103053
|
|
102892
|
-
var mergedComponents = _extends({}, globalComponents, components, formilyComponents,
|
102893
|
-
var onAutoSubmit = (0,
|
102894
|
-
var autoTeamixLayout = (0,
|
103054
|
+
var mergedComponents = _extends({}, globalComponents, components, formilyComponents, _Components_ProField__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z);
|
103055
|
+
var onAutoSubmit = (0,_useAutoSubmit__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z)(onSubmit, context);
|
103056
|
+
var autoTeamixLayout = (0,_useAutoLayout__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z)(_extends({}, otherProps, {
|
102895
103057
|
schema: schema
|
102896
103058
|
}), formRef);
|
102897
|
-
(0,
|
103059
|
+
(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
|
102898
103060
|
// 配置表单默认值
|
102899
103061
|
if (initialValues) {
|
102900
103062
|
form.setInitialValues(initialValues);
|
102901
103063
|
} else if (initialRequest) {
|
102902
|
-
(0,
|
103064
|
+
(0,_useInitialRequest__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .Z)(initialRequest, context).then(function (values) {
|
102903
103065
|
form.setInitialValues(values);
|
102904
103066
|
})["finally"](function () {
|
102905
103067
|
onInitialComplete == null ? void 0 : onInitialComplete(form);
|
@@ -102908,41 +103070,41 @@ var ProForm = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_5__.memo)(function
|
|
102908
103070
|
}, []);
|
102909
103071
|
|
102910
103072
|
// 添加 onChange 事件
|
102911
|
-
(0,
|
103073
|
+
(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
|
102912
103074
|
if (onChangeType === 'form') {
|
102913
103075
|
// 使用 onFormValuesChange 无法监听具体变化字段
|
102914
103076
|
form.removeEffects('onChangeByFormValuesChange');
|
102915
103077
|
form.addEffects('onChangeByFormValuesChange', function () {
|
102916
|
-
(0,
|
102917
|
-
onChange == null ? void 0 : onChange((0,
|
103078
|
+
(0,_formily_core__WEBPACK_IMPORTED_MODULE_2__.onFormValuesChange)(function (form) {
|
103079
|
+
onChange == null ? void 0 : onChange((0,_formily_reactive__WEBPACK_IMPORTED_MODULE_3__.toJS)(form.values));
|
102918
103080
|
});
|
102919
103081
|
});
|
102920
103082
|
} else {
|
102921
103083
|
// 使用 onFieldValueChange 无法监听数组类型值的增删
|
102922
103084
|
form.removeEffects('onChangeByFieldValueChange');
|
102923
103085
|
form.addEffects('onChangeByFieldValueChange', function () {
|
102924
|
-
(0,
|
103086
|
+
(0,_formily_core__WEBPACK_IMPORTED_MODULE_2__.onFieldValueChange)('*', function (field, form) {
|
102925
103087
|
var _field$props;
|
102926
|
-
onChange == null ? void 0 : onChange((0,
|
103088
|
+
onChange == null ? void 0 : onChange((0,_formily_reactive__WEBPACK_IMPORTED_MODULE_3__.toJS)(form.values), (0,_formily_reactive__WEBPACK_IMPORTED_MODULE_3__.toJS)(field.value), (_field$props = field.props) == null ? void 0 : _field$props.name);
|
102927
103089
|
});
|
102928
103090
|
});
|
102929
103091
|
}
|
102930
103092
|
}, [onChange, form]);
|
102931
|
-
(0,
|
103093
|
+
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
102932
103094
|
// 配置国际化
|
102933
|
-
(0,
|
103095
|
+
(0,_formily_core__WEBPACK_IMPORTED_MODULE_2__.setValidateLanguage)((0,_teamix_utils__WEBPACK_IMPORTED_MODULE_1__.getLanguage)() || 'zh-cn');
|
102934
103096
|
}, []);
|
102935
|
-
return /*#__PURE__*/
|
102936
|
-
className: (0,
|
103097
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_teamix_formily__WEBPACK_IMPORTED_MODULE_4__.Form, _extends({
|
103098
|
+
className: (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_1__.cls)(prefixCls(), className)
|
102937
103099
|
}, otherProps, autoTeamixLayout, {
|
102938
103100
|
form: form,
|
102939
103101
|
onAutoSubmit: onAutoSubmit,
|
102940
103102
|
onAutoSubmitFailed: onSubmitFailed
|
102941
|
-
}), schema ? /*#__PURE__*/
|
103103
|
+
}), schema ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_SchemaForm__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z, {
|
102942
103104
|
schema: schema,
|
102943
103105
|
scope: mergedScope,
|
102944
103106
|
components: mergedComponents
|
102945
|
-
}) : null, /*#__PURE__*/
|
103107
|
+
}) : null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
102946
103108
|
ref: formRef
|
102947
103109
|
}), children);
|
102948
103110
|
});
|
@@ -102952,7 +103114,7 @@ ProForm.defaultProps = {
|
|
102952
103114
|
breakpoints: true,
|
102953
103115
|
labelAlign: 'left'
|
102954
103116
|
};
|
102955
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (
|
103117
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ProForm);
|
102956
103118
|
|
102957
103119
|
/***/ }),
|
102958
103120
|
|
@@ -104990,46 +105152,6 @@ var initializeRequestExpression = function initializeRequestExpression(config, m
|
|
104990
105152
|
};
|
104991
105153
|
|
104992
105154
|
|
104993
|
-
/***/ }),
|
104994
|
-
|
104995
|
-
/***/ 45719:
|
104996
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
104997
|
-
|
104998
|
-
"use strict";
|
104999
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
105000
|
-
/* harmony export */ "Z": () => (/* binding */ parseSchema)
|
105001
|
-
/* harmony export */ });
|
105002
|
-
/* unused harmony export parseSchemaObject */
|
105003
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
105004
|
-
function parseSchema(schema) {
|
105005
|
-
return schema.map(function (item) {
|
105006
|
-
var _item$reactions;
|
105007
|
-
if ((_item$reactions = item.reactions) != null && _item$reactions.fulfill) {
|
105008
|
-
var _item$reactions2;
|
105009
|
-
return _extends({}, item, {
|
105010
|
-
reactions: _extends({}, item.reactions, {
|
105011
|
-
fulfill: parseSchemaObject(item == null ? void 0 : (_item$reactions2 = item.reactions) == null ? void 0 : _item$reactions2.fulfill)
|
105012
|
-
})
|
105013
|
-
});
|
105014
|
-
}
|
105015
|
-
return item;
|
105016
|
-
});
|
105017
|
-
}
|
105018
|
-
function parseSchemaObject(props) {
|
105019
|
-
var result = Object.entries(props).map(function (_ref) {
|
105020
|
-
var k = _ref[0],
|
105021
|
-
v = _ref[1];
|
105022
|
-
if (k === 'state') {
|
105023
|
-
return [k, parseSchemaObject(v)];
|
105024
|
-
}
|
105025
|
-
if (typeof v === 'function') {
|
105026
|
-
return [k, "{{ (" + v.toString() + ")({deps: $deps, self: $self, form: $form, values: $values, target: $target, index: $index}) }}"];
|
105027
|
-
}
|
105028
|
-
return [k, v];
|
105029
|
-
});
|
105030
|
-
return Object.fromEntries(result);
|
105031
|
-
}
|
105032
|
-
|
105033
105155
|
/***/ }),
|
105034
105156
|
|
105035
105157
|
/***/ 27324:
|
@@ -105228,6 +105350,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
105228
105350
|
/* harmony export */ "cidrv4Pattern": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.RV),
|
105229
105351
|
/* harmony export */ "cidrv6Pattern": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.Yg),
|
105230
105352
|
/* harmony export */ "cls": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.yI),
|
105353
|
+
/* harmony export */ "convertDateToTimestamp": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.QW),
|
105354
|
+
/* harmony export */ "convertPercentToDecimal": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.cu),
|
105231
105355
|
/* harmony export */ "createAction": () => (/* reexport safe */ _actions__WEBPACK_IMPORTED_MODULE_0__.PH),
|
105232
105356
|
/* harmony export */ "createForm": () => (/* reexport safe */ _form__WEBPACK_IMPORTED_MODULE_3__.Np),
|
105233
105357
|
/* harmony export */ "customComponent": () => (/* reexport safe */ _form__WEBPACK_IMPORTED_MODULE_3__.Pj),
|
@@ -105246,6 +105370,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
105246
105370
|
/* harmony export */ "formilyReact": () => (/* reexport safe */ _form__WEBPACK_IMPORTED_MODULE_3__.bV),
|
105247
105371
|
/* harmony export */ "formilyReactive": () => (/* reexport safe */ _form__WEBPACK_IMPORTED_MODULE_3__.SP),
|
105248
105372
|
/* harmony export */ "formilyTeamix": () => (/* reexport safe */ _form__WEBPACK_IMPORTED_MODULE_3__.aO),
|
105373
|
+
/* harmony export */ "generateIncreasingLabel": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.OW),
|
105249
105374
|
/* harmony export */ "generateTree": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.TQ),
|
105250
105375
|
/* harmony export */ "getAliyunConfig": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.Yz),
|
105251
105376
|
/* harmony export */ "getAllNodeKey": () => (/* reexport safe */ _sidebar__WEBPACK_IMPORTED_MODULE_11__.Zc),
|
@@ -105273,7 +105398,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
105273
105398
|
/* harmony export */ "getMicroApp": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.DO),
|
105274
105399
|
/* harmony export */ "getOwnerShip": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.qp),
|
105275
105400
|
/* harmony export */ "getPageConfig": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.qQ),
|
105401
|
+
/* harmony export */ "getProFieldWidth": () => (/* reexport safe */ _field__WEBPACK_IMPORTED_MODULE_2__.i),
|
105276
105402
|
/* harmony export */ "getQuery": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.pm),
|
105403
|
+
/* harmony export */ "getRecentRangeTime": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.Xz),
|
105277
105404
|
/* harmony export */ "getRequestConfig": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.cF),
|
105278
105405
|
/* harmony export */ "getSessionStorage": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.G),
|
105279
105406
|
/* harmony export */ "getSourceLocale": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.xL),
|
@@ -105320,13 +105447,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
105320
105447
|
/* harmony export */ "isValid": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.JY),
|
105321
105448
|
/* harmony export */ "isWeakMap": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.yn),
|
105322
105449
|
/* harmony export */ "isWeakSet": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.uD),
|
105450
|
+
/* harmony export */ "judgeObjectKeyExist": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.JF),
|
105323
105451
|
/* harmony export */ "lightBrandColor": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.wd),
|
105324
105452
|
/* harmony export */ "loop": () => (/* reexport safe */ _sidebar__WEBPACK_IMPORTED_MODULE_11__.VX),
|
105325
105453
|
/* harmony export */ "mapKeyValue": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.Nx),
|
105326
105454
|
/* harmony export */ "nocode": () => (/* reexport module object */ _nocode__WEBPACK_IMPORTED_MODULE_14__),
|
105327
105455
|
/* harmony export */ "numberFormat": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.Y4),
|
105328
105456
|
/* harmony export */ "pickProps": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.H6),
|
105457
|
+
/* harmony export */ "prettyCompactJsonStringify": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.oR),
|
105329
105458
|
/* harmony export */ "processGroupSelect2Origin": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.$j),
|
105459
|
+
/* harmony export */ "readableBytes": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.kR),
|
105460
|
+
/* harmony export */ "readableNumber": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.kB),
|
105330
105461
|
/* harmony export */ "registerActionHandler": () => (/* reexport safe */ _actions__WEBPACK_IMPORTED_MODULE_0__.Bw),
|
105331
105462
|
/* harmony export */ "registerCustomContext": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.Vn),
|
105332
105463
|
/* harmony export */ "registerFormats": () => (/* reexport safe */ _form__WEBPACK_IMPORTED_MODULE_3__.qq),
|
@@ -105337,6 +105468,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
105337
105468
|
/* harmony export */ "request": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.WY),
|
105338
105469
|
/* harmony export */ "resolveMaybePromiseMethod": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.$t),
|
105339
105470
|
/* harmony export */ "ruleCreator": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.r$),
|
105471
|
+
/* harmony export */ "runInterval": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.Zp),
|
105472
|
+
/* harmony export */ "safeDecodeURIComponent": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.eC),
|
105473
|
+
/* harmony export */ "safeJsonParse": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.D6),
|
105474
|
+
/* harmony export */ "safeJsonStringify": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.u4),
|
105340
105475
|
/* harmony export */ "setCookie": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.S$),
|
105341
105476
|
/* harmony export */ "setCookieWidthDomain": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.mW),
|
105342
105477
|
/* harmony export */ "setDateLanguageGetter": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.pd),
|
@@ -105346,6 +105481,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
105346
105481
|
/* harmony export */ "setGlobalScriptUrl": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.LI),
|
105347
105482
|
/* harmony export */ "setHistory": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.JB),
|
105348
105483
|
/* harmony export */ "setLang": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.Wg),
|
105484
|
+
/* harmony export */ "setLanguage": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.m0),
|
105349
105485
|
/* harmony export */ "setLocalStorage": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.yD),
|
105350
105486
|
/* harmony export */ "setLocale": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.i_),
|
105351
105487
|
/* harmony export */ "setOwnership": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.EN),
|
@@ -105355,6 +105491,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
105355
105491
|
/* harmony export */ "setTerritory": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.J1),
|
105356
105492
|
/* harmony export */ "setTheme": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.Dc),
|
105357
105493
|
/* harmony export */ "setValidateLanguage": () => (/* reexport safe */ _form__WEBPACK_IMPORTED_MODULE_3__.dI),
|
105494
|
+
/* harmony export */ "sizeToBytes": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.Bx),
|
105358
105495
|
/* harmony export */ "stringifyQuery": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__.Oh),
|
105359
105496
|
/* harmony export */ "templates": () => (/* reexport module object */ _templates__WEBPACK_IMPORTED_MODULE_15__),
|
105360
105497
|
/* harmony export */ "transformLocal": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_10__._t),
|
@@ -105426,7 +105563,7 @@ if (!((_window = window) != null && _window.TEAMIXPRO_WITHOUT_ICON)) {
|
|
105426
105563
|
|
105427
105564
|
|
105428
105565
|
|
105429
|
-
var version = '1.6.
|
105566
|
+
var version = '1.6.1-beta';
|
105430
105567
|
|
105431
105568
|
// By TeamixTest
|
105432
105569
|
window.postMessage({
|
@@ -106368,7 +106505,6 @@ var ProTableInfo = function ProTableInfo(props) {
|
|
106368
106505
|
/* harmony import */ var _teamix_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(80653);
|
106369
106506
|
/* harmony import */ var _teamix_hooks__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(42341);
|
106370
106507
|
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(42345);
|
106371
|
-
/* harmony import */ var _utils_aspect__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(32598);
|
106372
106508
|
var _excluded = ["type", "url", "method", "formatResult", "formatParams", "params", "actionRef", "header", "onSuccess", "onError", "beforeRequest", "extendParams", "className", "style", "columns", "layout", "dataSource", "loading", "extra", "context", "disabledAutoSize"],
|
106373
106509
|
_excluded2 = ["context"];
|
106374
106510
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
@@ -106384,7 +106520,6 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
106384
106520
|
|
106385
106521
|
|
106386
106522
|
|
106387
|
-
|
106388
106523
|
var ProInfo = function ProInfo(props) {
|
106389
106524
|
var _ref, _requestConfig;
|
106390
106525
|
var _props$type = props.type,
|
@@ -106544,7 +106679,7 @@ var ProInfo = function ProInfo(props) {
|
|
106544
106679
|
};
|
106545
106680
|
ProInfo.Group = _components_InfoGroup__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z;
|
106546
106681
|
ProInfo.ProInfoGroup = _components_InfoGroup__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z;
|
106547
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (
|
106682
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ProInfo);
|
106548
106683
|
|
106549
106684
|
/***/ }),
|
106550
106685
|
|
@@ -110021,7 +110156,7 @@ var CardView = function CardView(props) {
|
|
110021
110156
|
});
|
110022
110157
|
return (_titleColumn$cell = titleColumn == null ? void 0 : titleColumn.cell == null ? void 0 : titleColumn.cell(getDataIndexValue(itemProps, record), index, record)) != null ? _titleColumn$cell : '';
|
110023
110158
|
}
|
110024
|
-
return (0,_utils_columnRender__WEBPACK_IMPORTED_MODULE_5__/* .renderCell */ .
|
110159
|
+
return (0,_utils_columnRender__WEBPACK_IMPORTED_MODULE_5__/* .renderCell */ .cw)(getDataIndexValue(itemProps.dataIndex, record), itemProps, index, record, actionRef, context);
|
110025
110160
|
}
|
110026
110161
|
};
|
110027
110162
|
|
@@ -110050,7 +110185,7 @@ var CardView = function CardView(props) {
|
|
110050
110185
|
descriptionCopy: undefined
|
110051
110186
|
})
|
110052
110187
|
});
|
110053
|
-
return (0,_utils_columnRender__WEBPACK_IMPORTED_MODULE_5__/* .renderCell */ .
|
110188
|
+
return (0,_utils_columnRender__WEBPACK_IMPORTED_MODULE_5__/* .renderCell */ .cw)(getDataIndexValue(column == null ? void 0 : column.dataIndex, record), _columns, index, record, actionRef, context);
|
110054
110189
|
}
|
110055
110190
|
|
110056
110191
|
// 【默认情况】直接拿第一列的 cell
|
@@ -110082,7 +110217,7 @@ var CardView = function CardView(props) {
|
|
110082
110217
|
descriptionCopy: undefined
|
110083
110218
|
}
|
110084
110219
|
});
|
110085
|
-
return (0,_utils_columnRender__WEBPACK_IMPORTED_MODULE_5__/* .renderCell */ .
|
110220
|
+
return (0,_utils_columnRender__WEBPACK_IMPORTED_MODULE_5__/* .renderCell */ .cw)(getDataIndexValue(column == null ? void 0 : (_column$render2 = column.render) == null ? void 0 : _column$render2.value, record), _columns2, index, record, actionRef, context);
|
110086
110221
|
}
|
110087
110222
|
};
|
110088
110223
|
|
@@ -110129,7 +110264,7 @@ var CardView = function CardView(props) {
|
|
110129
110264
|
max: 1
|
110130
110265
|
}
|
110131
110266
|
});
|
110132
|
-
return (0,_utils_columnRender__WEBPACK_IMPORTED_MODULE_5__/* .renderCell */ .
|
110267
|
+
return (0,_utils_columnRender__WEBPACK_IMPORTED_MODULE_5__/* .renderCell */ .cw)(null, newActionColumn, index, record, actionRef, context);
|
110133
110268
|
}
|
110134
110269
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null);
|
110135
110270
|
};
|
@@ -110157,7 +110292,7 @@ var CardView = function CardView(props) {
|
|
110157
110292
|
}
|
110158
110293
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
110159
110294
|
className: cls('extra-item')
|
110160
|
-
}, (0,_utils_columnRender__WEBPACK_IMPORTED_MODULE_5__/* .renderCell */ .
|
110295
|
+
}, (0,_utils_columnRender__WEBPACK_IMPORTED_MODULE_5__/* .renderCell */ .cw)(null, item, index, record, actionRef, context));
|
110161
110296
|
}));
|
110162
110297
|
}
|
110163
110298
|
return getActionGroupFromColumn(undefined, record, index);
|
@@ -110386,7 +110521,7 @@ var Filter = function Filter(props) {
|
|
110386
110521
|
// console.log(filters);
|
110387
110522
|
|
110388
110523
|
return filters;
|
110389
|
-
}, []);
|
110524
|
+
}, [column]);
|
110390
110525
|
|
110391
110526
|
// 点击确定回调
|
110392
110527
|
var onFilterOk = function onFilterOk() {
|
@@ -112294,33 +112429,33 @@ var ToolBar = function ToolBar(props) {
|
|
112294
112429
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
112295
112430
|
/* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
|
112296
112431
|
/* harmony export */ });
|
112297
|
-
/* harmony import */ var
|
112298
|
-
/* harmony import */ var
|
112299
|
-
/* harmony import */ var
|
112300
|
-
/* harmony import */ var
|
112301
|
-
/* harmony import */ var
|
112302
|
-
/* harmony import */ var
|
112303
|
-
/* harmony import */ var
|
112304
|
-
/* harmony import */ var
|
112305
|
-
/* harmony import */ var
|
112306
|
-
/* harmony import */ var
|
112307
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__);
|
112308
|
-
/* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(28758);
|
112309
|
-
/* harmony import */ var _page_container__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(2781);
|
112310
|
-
/* harmony import */ var _skeleton__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(53277);
|
112311
|
-
/* harmony import */ var _utils_aspect__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(32598);
|
112312
|
-
/* harmony import */ var _components_CardView__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(9285);
|
112313
|
-
/* harmony import */ var _components_Layout__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(9458);
|
112314
|
-
/* harmony import */ var _components_Pagination__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(33977);
|
112315
|
-
/* harmony import */ var _components_ToolBar_Fullscreen__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(21630);
|
112316
|
-
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(90450);
|
112317
|
-
/* harmony import */ var _utils_genProColumnToColumn__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(40339);
|
112432
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(59787);
|
112433
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
112434
|
+
/* harmony import */ var _alicloudfe_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(33049);
|
112435
|
+
/* harmony import */ var _alicloudfe_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_1__);
|
112436
|
+
/* harmony import */ var _components_Pagination__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(33977);
|
112437
|
+
/* harmony import */ var _utils_genProColumnToColumn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(40339);
|
112438
|
+
/* harmony import */ var _teamix_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(80653);
|
112439
|
+
/* harmony import */ var _skeleton__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(53277);
|
112440
|
+
/* harmony import */ var _components_Layout__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(9458);
|
112441
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(90450);
|
112318
112442
|
/* harmony import */ var _utils_getTableProps__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(78964);
|
112319
|
-
/* harmony import */ var
|
112320
|
-
/* harmony import */ var
|
112443
|
+
/* harmony import */ var _utils_getTableSortIcons__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(98806);
|
112444
|
+
/* harmony import */ var _utils_useTableSelection__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(23779);
|
112445
|
+
/* harmony import */ var _components_ToolBar_Fullscreen__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(21630);
|
112446
|
+
/* harmony import */ var _teamix_pro_field__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(35511);
|
112447
|
+
/* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(28758);
|
112448
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(28266);
|
112449
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_13__);
|
112450
|
+
/* harmony import */ var _page_container__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(2781);
|
112451
|
+
/* harmony import */ var _utils_genAutoWidthColumns__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(79389);
|
112452
|
+
/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(39339);
|
112453
|
+
/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_16__);
|
112454
|
+
/* harmony import */ var _components_CardView__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(9285);
|
112455
|
+
/* harmony import */ var _teamix_hooks__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(42341);
|
112321
112456
|
/* harmony import */ var _utils_util__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(49618);
|
112322
|
-
var _excluded = ["header", "className", "tableClassName", "mainAction", "extra", "dataFilter", "afterDataFilter", "toolBar", "columns", "useRowSelection", "rowSelection", "onChangeRowSelection", "getRowSelection", "primaryKey", "footerAction", "footer", "url", "pageKey", "pageSizeKey", "method", "params", "formatSort", "formatParams", "formatResult", "requestConfig", "requestWhenMount", "showPagination", "pageSizeList", "responsivePaginationType", "showSkeleton", "skeletonSize", "actionRef", "dataSource", "filterDebounce", "footerSuction", "autoRefresh", "autoRefreshProps", "customRequest", "filterColumnType", "defaultFilterParams", "reserveSelectedRecords", "size", "disableSelectAll", "context", "fixedTableBody", "isTree", "toolBarAutoWidth", "data-teamix-spm", "switchCardView", "cardViewProps", "defaultView", "emptyProps", "bindUrlProps", "bindUrl", "autoRedirect", "useMaxData"],
|
112323
|
-
_excluded2 = ["onChange"];
|
112457
|
+
var _excluded = ["header", "className", "tableClassName", "mainAction", "extra", "dataFilter", "afterDataFilter", "toolBar", "columns", "useRowSelection", "rowSelection", "onChangeRowSelection", "getRowSelection", "primaryKey", "footerAction", "footer", "url", "pageKey", "pageSizeKey", "method", "params", "formatSort", "formatParams", "formatResult", "requestConfig", "requestWhenMount", "showPagination", "pageSizeList", "responsivePaginationType", "showSkeleton", "skeletonSize", "actionRef", "dataSource", "filterDebounce", "footerSuction", "autoRefresh", "autoRefreshProps", "customRequest", "filterColumnType", "defaultFilterParams", "reserveSelectedRecords", "size", "disableSelectAll", "context", "autoWidth", "fixedTableBody", "isTree", "toolBarAutoWidth", "data-teamix-spm", "switchCardView", "cardViewProps", "defaultView", "emptyProps", "bindUrlProps", "bindUrl", "autoRedirect", "useMaxData"],
|
112458
|
+
_excluded2 = ["onChange", "onPageSizeChange"];
|
112324
112459
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
112325
112460
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
112326
112461
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
@@ -112352,7 +112487,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
112352
112487
|
|
112353
112488
|
|
112354
112489
|
|
112355
|
-
var cls = (0,
|
112490
|
+
var cls = (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_4__.usePrefixCls)('teamix-pro-table');
|
112356
112491
|
|
112357
112492
|
/**
|
112358
112493
|
* 处理原生传入的 columns 以便于 选择列 方便处理
|
@@ -112361,7 +112496,7 @@ var cls = (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_3__.usePrefixCls)('teamix-pr
|
|
112361
112496
|
*/
|
112362
112497
|
var processColumns = function processColumns(columns, initialColumns) {
|
112363
112498
|
var _getGlobalConfig;
|
112364
|
-
var globalFilterColumns = (_getGlobalConfig = (0,
|
112499
|
+
var globalFilterColumns = (_getGlobalConfig = (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_4__.getGlobalConfig)('ProTable')) == null ? void 0 : _getGlobalConfig.filterColumns;
|
112365
112500
|
var filterColumns = columns.filter(function (item) {
|
112366
112501
|
return item.columnFilters !== false && (item == null ? void 0 : item.hidden) !== true && (!globalFilterColumns || globalFilterColumns(_extends({}, item)));
|
112367
112502
|
});
|
@@ -112462,6 +112597,8 @@ var ProTable = function ProTable(props) {
|
|
112462
112597
|
propsSize = _props$size === void 0 ? 'medium' : _props$size,
|
112463
112598
|
disableSelectAll = props.disableSelectAll,
|
112464
112599
|
context = props.context,
|
112600
|
+
_props$autoWidth = props.autoWidth,
|
112601
|
+
autoWidthProp = _props$autoWidth === void 0 ? false : _props$autoWidth,
|
112465
112602
|
_props$fixedTableBody = props.fixedTableBody,
|
112466
112603
|
fixedTableBody = _props$fixedTableBody === void 0 ? false : _props$fixedTableBody,
|
112467
112604
|
isTree = props.isTree,
|
@@ -112483,51 +112620,72 @@ var ProTable = function ProTable(props) {
|
|
112483
112620
|
var targetPageKey = pageKey || globalPageKey;
|
112484
112621
|
var targetPageSizeKey = pageSizeKey || globalPageSizeKey;
|
112485
112622
|
var targetFormatSort = formatSort || globalFormatSort;
|
112486
|
-
var _ref = bindUrl ? (0,
|
112623
|
+
var _ref = bindUrl ? (0,_teamix_hooks__WEBPACK_IMPORTED_MODULE_18__.useUrlState)() : [],
|
112487
112624
|
urlState = _ref[0],
|
112488
112625
|
setUrlState = _ref[1];
|
112489
|
-
var _useState = (0,
|
112626
|
+
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)((_urlState$currentPage = urlState == null ? void 0 : urlState.currentPage) != null ? _urlState$currentPage : 1),
|
112490
112627
|
currentPage = _useState[0],
|
112491
112628
|
setCurrentPage = _useState[1];
|
112492
|
-
var _useState2 = (0,
|
112629
|
+
var _useState2 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)((urlState == null ? void 0 : urlState.pageSize) || props.pageSize || 10),
|
112493
112630
|
pageSize = _useState2[0],
|
112494
112631
|
setPageSize = _useState2[1];
|
112495
|
-
var _useState3 = (0,
|
112632
|
+
var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(0),
|
112496
112633
|
total = _useState3[0],
|
112497
112634
|
setTotal = _useState3[1];
|
112498
|
-
var _useState4 = (0,
|
112635
|
+
var _useState4 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(propsDataSource != null ? propsDataSource : []),
|
112499
112636
|
data = _useState4[0],
|
112500
112637
|
_setData = _useState4[1];
|
112501
|
-
var _useState5 = (0,
|
112638
|
+
var _useState5 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(props.sort || {}),
|
112502
112639
|
sort = _useState5[0],
|
112503
112640
|
setSort = _useState5[1];
|
112504
|
-
var _useState6 = (0,
|
112641
|
+
var _useState6 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!propsDataSource && requestWhenMount && propsShowSkeleton),
|
112505
112642
|
showSkeleton = _useState6[0],
|
112506
112643
|
setShowSkeleton = _useState6[1]; // 首次加载,渲染骨架屏
|
112507
112644
|
var skeletonDataSource = new Array(skeletonSize).fill({});
|
112508
112645
|
var requestDataKey = method.toLowerCase() === 'get' ? 'params' : 'data';
|
112509
112646
|
// 如果使用 customRequest 的话,内置 loading
|
112510
|
-
var _useState7 = (0,
|
112647
|
+
var _useState7 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(requestWhenMount),
|
112511
112648
|
customTableLoading = _useState7[0],
|
112512
112649
|
setCustomTableLoading = _useState7[1];
|
112513
|
-
var tableRef = (0,
|
112514
|
-
var actionRef = (0,
|
112650
|
+
var tableRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
|
112651
|
+
var actionRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
|
112515
112652
|
// 传给 table 的过滤后的 columns
|
112516
|
-
var _useState8 = (0,
|
112653
|
+
var _useState8 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(processColumns(propsColumns != null ? propsColumns : [], propsColumns)),
|
112517
112654
|
filteredColumns = _useState8[0],
|
112518
112655
|
setFilteredColumns = _useState8[1];
|
112519
|
-
|
112656
|
+
|
112657
|
+
// 全局状态 : 自适应表格
|
112658
|
+
var autoWidth = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
|
112659
|
+
var _getGlobalConfig2;
|
112660
|
+
return ((_getGlobalConfig2 = (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_4__.getGlobalConfig)('ProTable')) == null ? void 0 : _getGlobalConfig2.autoWidth) || autoWidthProp;
|
112661
|
+
}, [autoWidthProp]);
|
112662
|
+
|
112663
|
+
// 判断是否有操作列,有的话则渲染一个 shadow dom
|
112664
|
+
var hasActionColumn = false;
|
112665
|
+
if (autoWidth) {
|
112666
|
+
hasActionColumn = filteredColumns.some(function (column) {
|
112667
|
+
var _column$actionSchema, _column$actionSchema$;
|
112668
|
+
return (column == null ? void 0 : column.actionSchema) && ((_column$actionSchema = column.actionSchema) == null ? void 0 : (_column$actionSchema$ = _column$actionSchema.actions) == null ? void 0 : _column$actionSchema$.length) > 0;
|
112669
|
+
});
|
112670
|
+
}
|
112671
|
+
var _useState9 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(propsSize),
|
112520
112672
|
size = _useState9[0],
|
112521
112673
|
_setSize = _useState9[1];
|
112522
|
-
var _useState10 = (0,
|
112674
|
+
var _useState10 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(true),
|
112523
112675
|
showLoading = _useState10[0],
|
112524
112676
|
setShowLoading = _useState10[1];
|
112525
112677
|
|
112678
|
+
// 自动计算列宽需要的一些hook
|
112679
|
+
var _useState11 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),
|
112680
|
+
showShadowContainer = _useState11[0],
|
112681
|
+
setShowShadowContainer = _useState11[1];
|
112682
|
+
var shadowContainerRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
|
112683
|
+
var shadowActionColumnContainerRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
|
112526
112684
|
// 表格内部用作存储的 Ref,标识 Table 组件是否被第一次渲染。用作 useUrlState filter 第一次渲染时使用 state 数据请求
|
112527
|
-
var dataRef = (0,
|
112685
|
+
var dataRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)({
|
112528
112686
|
flag: true
|
112529
112687
|
});
|
112530
|
-
(0,
|
112688
|
+
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
112531
112689
|
if (bindUrl && (bindUrlProps == null ? void 0 : bindUrlProps.pagination) !== false) {
|
112532
112690
|
if ((urlState == null ? void 0 : urlState.currentPage) !== currentPage) {
|
112533
112691
|
setUrlState == null ? void 0 : setUrlState({
|
@@ -112544,21 +112702,21 @@ var ProTable = function ProTable(props) {
|
|
112544
112702
|
|
112545
112703
|
// 存储能够被 on 监听到的 ProTable 状态
|
112546
112704
|
// 因为只做存储用。不需要更新视图以及需要同步更改。所以不使用 setState 更新
|
112547
|
-
var
|
112705
|
+
var _useState12 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)({
|
112548
112706
|
fullScreenState: false,
|
112549
112707
|
filterRules: {},
|
112550
112708
|
filterColumns: []
|
112551
112709
|
}),
|
112552
|
-
actionRefState =
|
112710
|
+
actionRefState = _useState12[0];
|
112553
112711
|
|
112554
112712
|
// 存储 on 监听事件
|
112555
|
-
var
|
112713
|
+
var _useState13 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)({
|
112556
112714
|
fullScreenState: {}
|
112557
112715
|
}),
|
112558
|
-
actionRefCallback =
|
112716
|
+
actionRefCallback = _useState13[0];
|
112559
112717
|
|
112560
112718
|
// 存储定时器 id
|
112561
|
-
var autoRefreshTimerRef = (0,
|
112719
|
+
var autoRefreshTimerRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
|
112562
112720
|
var onResize = null;
|
112563
112721
|
|
112564
112722
|
// useEffect(() => {
|
@@ -112570,13 +112728,13 @@ var ProTable = function ProTable(props) {
|
|
112570
112728
|
// setShowLoading(propsLoading ?? false);
|
112571
112729
|
// }, [propsLoading]);
|
112572
112730
|
|
112573
|
-
(0,
|
112731
|
+
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
112574
112732
|
var _propsDataFilter$sche, _propsDataFilter$sche2;
|
112575
112733
|
getHeaderHeight(fullscreenState);
|
112576
112734
|
getFooterSuctionState();
|
112577
112735
|
if (window.onresize) {
|
112578
112736
|
onResize = window.onresize;
|
112579
|
-
window.onresize =
|
112737
|
+
window.onresize = lodash_debounce__WEBPACK_IMPORTED_MODULE_16___default()(function () {
|
112580
112738
|
onResize == null ? void 0 : onResize();
|
112581
112739
|
if (footerSuction) {
|
112582
112740
|
getFooterSuctionState();
|
@@ -112586,7 +112744,7 @@ var ProTable = function ProTable(props) {
|
|
112586
112744
|
}
|
112587
112745
|
}, 500);
|
112588
112746
|
} else {
|
112589
|
-
window.onresize =
|
112747
|
+
window.onresize = lodash_debounce__WEBPACK_IMPORTED_MODULE_16___default()(function () {
|
112590
112748
|
if (footerSuction) {
|
112591
112749
|
getFooterSuctionState();
|
112592
112750
|
}
|
@@ -112599,7 +112757,7 @@ var ProTable = function ProTable(props) {
|
|
112599
112757
|
// 如果不传 dataFilter,则在这里初始化请求
|
112600
112758
|
var hasDataFilter = (propsDataFilter == null ? void 0 : (_propsDataFilter$sche = propsDataFilter.schema) == null ? void 0 : _propsDataFilter$sche.length) && (propsDataFilter == null ? void 0 : (_propsDataFilter$sche2 = propsDataFilter.schema) == null ? void 0 : _propsDataFilter$sche2.length) > 0;
|
112601
112759
|
if (requestWhenMount && !hasDataFilter) {
|
112602
|
-
(0,
|
112760
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_7__/* .processDefaultFilter */ .aP)(propsColumns, actionRef, defaultFilterParams);
|
112603
112761
|
_request();
|
112604
112762
|
}
|
112605
112763
|
return function () {
|
@@ -112623,7 +112781,7 @@ var ProTable = function ProTable(props) {
|
|
112623
112781
|
}
|
112624
112782
|
var tableDom = tableRef.current;
|
112625
112783
|
var headerDom = tableDom == null ? void 0 : (_tableDom$getElements = tableDom.getElementsByClassName('teamix-pro-table-layout')) == null ? void 0 : _tableDom$getElements[0];
|
112626
|
-
var basePrefix = (0,
|
112784
|
+
var basePrefix = (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_4__.usePrefixCls)('', {
|
112627
112785
|
base: true
|
112628
112786
|
});
|
112629
112787
|
var tableHeaderDom = tableDom == null ? void 0 : (_tableDom$getElements2 = tableDom.getElementsByClassName(basePrefix('table-header-inner'))) == null ? void 0 : _tableDom$getElements2[0];
|
@@ -112677,33 +112835,33 @@ var ProTable = function ProTable(props) {
|
|
112677
112835
|
};
|
112678
112836
|
|
112679
112837
|
// header 区域高度。用作全屏计算吸顶吸底高度。默认不做计算
|
112680
|
-
var
|
112681
|
-
headerHeight =
|
112682
|
-
setHeaderHeight =
|
112838
|
+
var _useState14 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(0),
|
112839
|
+
headerHeight = _useState14[0],
|
112840
|
+
setHeaderHeight = _useState14[1];
|
112683
112841
|
|
112684
112842
|
// 全屏显示 className
|
112685
|
-
var
|
112686
|
-
fullscreenState =
|
112687
|
-
setFullscreenState =
|
112843
|
+
var _useState15 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),
|
112844
|
+
fullscreenState = _useState15[0],
|
112845
|
+
setFullscreenState = _useState15[1];
|
112688
112846
|
// 切换视角
|
112689
|
-
var
|
112690
|
-
switchViewState =
|
112691
|
-
setSwitchViewState =
|
112847
|
+
var _useState16 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(defaultView != null ? defaultView : 'table'),
|
112848
|
+
switchViewState = _useState16[0],
|
112849
|
+
setSwitchViewState = _useState16[1];
|
112692
112850
|
// 切换全屏搜索开关
|
112693
|
-
var filterEnableRef = (0,
|
112851
|
+
var filterEnableRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)({
|
112694
112852
|
fullscreen: false,
|
112695
112853
|
normal: true
|
112696
112854
|
});
|
112697
112855
|
|
112698
112856
|
// 全局状态 : 大数据截断
|
112699
|
-
var globalUseMaxData = (0,
|
112700
|
-
var
|
112701
|
-
return (
|
112857
|
+
var globalUseMaxData = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
|
112858
|
+
var _getGlobalConfig3;
|
112859
|
+
return (_getGlobalConfig3 = (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_4__.getGlobalConfig)('ProTable')) == null ? void 0 : _getGlobalConfig3.useMaxData;
|
112702
112860
|
}, []);
|
112703
112861
|
|
112704
112862
|
// 非全屏状态下的
|
112705
|
-
var normalDataFilterFormRef = (0,
|
112706
|
-
var fullscreenDataFilterFormRef = (0,
|
112863
|
+
var normalDataFilterFormRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
|
112864
|
+
var fullscreenDataFilterFormRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
|
112707
112865
|
var normalDataFilterForm = normalDataFilterFormRef.current;
|
112708
112866
|
var fullscreenDataFilterForm = fullscreenDataFilterFormRef.current;
|
112709
112867
|
|
@@ -112712,9 +112870,9 @@ var ProTable = function ProTable(props) {
|
|
112712
112870
|
// let dataFilterForm = dataFilterFormRef.current;
|
112713
112871
|
|
112714
112872
|
// 整个内容区是否超过一屏。用于表格在非全屏模式下的吸底
|
112715
|
-
var
|
112716
|
-
footerSuctionState =
|
112717
|
-
setFooterSuctionState =
|
112873
|
+
var _useState17 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),
|
112874
|
+
footerSuctionState = _useState17[0],
|
112875
|
+
setFooterSuctionState = _useState17[1];
|
112718
112876
|
|
112719
112877
|
// TODO 获取内容区是否超出一屏(暂时仅支持全家桶)
|
112720
112878
|
var getFooterSuctionState = function getFooterSuctionState() {
|
@@ -112739,7 +112897,7 @@ var ProTable = function ProTable(props) {
|
|
112739
112897
|
};
|
112740
112898
|
|
112741
112899
|
// rowSelection 相关
|
112742
|
-
var rowSelectionHook = (0,
|
112900
|
+
var rowSelectionHook = (0,_utils_useTableSelection__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z)(_extends({}, propsRowSelection, {
|
112743
112901
|
// 当初始出现骨架屏的时候,不可选择
|
112744
112902
|
getProps: function getProps(record, index) {
|
112745
112903
|
var result = {};
|
@@ -112765,7 +112923,7 @@ var ProTable = function ProTable(props) {
|
|
112765
112923
|
}), primaryKey);
|
112766
112924
|
var rowSelection = useRowSelection ? rowSelectionHook.rowSelection : propsRowSelection;
|
112767
112925
|
var selectedCount = (rowSelection == null ? void 0 : (_rowSelection$selecte = rowSelection.selectedRowKeys) == null ? void 0 : _rowSelection$selecte.length) || 0;
|
112768
|
-
(0,
|
112926
|
+
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
112769
112927
|
getRowSelection && getRowSelection(rowSelectionHook);
|
112770
112928
|
}, [rowSelectionHook]);
|
112771
112929
|
|
@@ -112784,7 +112942,7 @@ var ProTable = function ProTable(props) {
|
|
112784
112942
|
var _getProps;
|
112785
112943
|
return getProps ? !((_getProps = getProps(d, i)) != null && _getProps.disabled) : true;
|
112786
112944
|
}).map(function (d) {
|
112787
|
-
return (0,
|
112945
|
+
return (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_4__.getDeepValue)(primaryKey || 'id', d);
|
112788
112946
|
});
|
112789
112947
|
var nowCheckedKeys = allRowKeys.filter(function (k) {
|
112790
112948
|
return selectedRowKeys.includes(k);
|
@@ -112810,13 +112968,13 @@ var ProTable = function ProTable(props) {
|
|
112810
112968
|
checked: nowCheckedKeys.length !== 0 && nowCheckedKeys.length === allRowKeys.length
|
112811
112969
|
};
|
112812
112970
|
}
|
112813
|
-
(0,
|
112971
|
+
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
112814
112972
|
if (typeof propsActionRef === 'function' && actionRef.current) {
|
112815
112973
|
// @ts-ignore
|
112816
112974
|
propsActionRef(actionRef.current);
|
112817
112975
|
}
|
112818
112976
|
}, [propsActionRef]);
|
112819
|
-
(0,
|
112977
|
+
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
112820
112978
|
var _actionRef$current;
|
112821
112979
|
var columns = processColumns(propsColumns != null ? propsColumns : [], propsColumns);
|
112822
112980
|
setFilteredColumns(columns);
|
@@ -112824,14 +112982,14 @@ var ProTable = function ProTable(props) {
|
|
112824
112982
|
}, [propsColumns]);
|
112825
112983
|
|
112826
112984
|
// dataSource 受控
|
112827
|
-
(0,
|
112985
|
+
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
112828
112986
|
if (propsDataSource) {
|
112829
112987
|
_setData(propsDataSource);
|
112830
112988
|
}
|
112831
112989
|
}, [propsDataSource]);
|
112832
112990
|
|
112833
112991
|
// 初始化 ActionRef。
|
112834
|
-
(0,
|
112992
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_7__/* .initActionRef */ .rf)(actionRef, {
|
112835
112993
|
getState: function getState() {
|
112836
112994
|
return actionRefState;
|
112837
112995
|
},
|
@@ -112840,7 +112998,7 @@ var ProTable = function ProTable(props) {
|
|
112840
112998
|
},
|
112841
112999
|
setState: function setState(key, value) {
|
112842
113000
|
actionRefState[key] = value;
|
112843
|
-
(0,
|
113001
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_7__/* .actionRefUseStateOn */ .So)(actionRefCallback, key, value);
|
112844
113002
|
},
|
112845
113003
|
on: function on(fun, state, name) {
|
112846
113004
|
if (!actionRefCallback[state]) {
|
@@ -112862,7 +113020,7 @@ var ProTable = function ProTable(props) {
|
|
112862
113020
|
});
|
112863
113021
|
|
112864
113022
|
// 绑定 Actions
|
112865
|
-
(0,
|
113023
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_7__/* .useActionType */ .tx)(actionRef, {
|
112866
113024
|
fullScreen: function fullScreen() {
|
112867
113025
|
var _actionRef$current2;
|
112868
113026
|
var state = !fullscreenState;
|
@@ -112870,6 +113028,9 @@ var ProTable = function ProTable(props) {
|
|
112870
113028
|
setFullscreenState(state);
|
112871
113029
|
getHeaderHeight(state);
|
112872
113030
|
actionRef == null ? void 0 : (_actionRef$current2 = actionRef.current) == null ? void 0 : _actionRef$current2.setState == null ? void 0 : _actionRef$current2.setState('fullScreenState', state);
|
113031
|
+
if (autoWidth) {
|
113032
|
+
reGenFilteredColumnsByAutoWidth();
|
113033
|
+
}
|
112873
113034
|
return state;
|
112874
113035
|
},
|
112875
113036
|
setColumn: function setColumn(newColumns, update) {
|
@@ -112881,12 +113042,18 @@ var ProTable = function ProTable(props) {
|
|
112881
113042
|
setFilteredColumns(columns);
|
112882
113043
|
(_actionRef$current3 = actionRef.current) == null ? void 0 : _actionRef$current3.setState == null ? void 0 : _actionRef$current3.setState('filterColumns', columns);
|
112883
113044
|
if (update) {
|
112884
|
-
(0,
|
113045
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_7__/* .emit */ .j8)('refreshFilterState', newColumns);
|
113046
|
+
}
|
113047
|
+
if (autoWidth) {
|
113048
|
+
reGenFilteredColumnsByAutoWidth(columns);
|
112885
113049
|
}
|
112886
113050
|
},
|
112887
113051
|
size: size,
|
112888
113052
|
setSize: function setSize(mode) {
|
112889
113053
|
_setSize(mode);
|
113054
|
+
if (autoWidth) {
|
113055
|
+
reGenFilteredColumnsByAutoWidth();
|
113056
|
+
}
|
112890
113057
|
},
|
112891
113058
|
refresh: function refresh(params) {
|
112892
113059
|
// card视角的刷新等于重新请求
|
@@ -112952,6 +113119,9 @@ var ProTable = function ProTable(props) {
|
|
112952
113119
|
filterEnableRef: filterEnableRef,
|
112953
113120
|
setData: function setData(data) {
|
112954
113121
|
_setData(data);
|
113122
|
+
if (autoWidth) {
|
113123
|
+
reGenFilteredColumnsByAutoWidth();
|
113124
|
+
}
|
112955
113125
|
},
|
112956
113126
|
resetTableMaxBodyHeight: function resetTableMaxBodyHeight(offset) {
|
112957
113127
|
getHeaderHeight(fullscreenState, offset);
|
@@ -112987,7 +113157,7 @@ var ProTable = function ProTable(props) {
|
|
112987
113157
|
var _actionRef$current5;
|
112988
113158
|
(_actionRef$current5 = actionRef.current) == null ? void 0 : _actionRef$current5.refresh == null ? void 0 : _actionRef$current5.refresh();
|
112989
113159
|
}, timers);
|
112990
|
-
(0,
|
113160
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_7__/* .emit */ .j8)('PRO_TABLE_REFRESH_TIMER_FLAG', timers);
|
112991
113161
|
},
|
112992
113162
|
clearAutoRefreshTimers: function clearAutoRefreshTimers() {
|
112993
113163
|
clearTimeout(autoRefreshTimerRef.current);
|
@@ -112999,6 +113169,21 @@ var ProTable = function ProTable(props) {
|
|
112999
113169
|
if (propsActionRef) {
|
113000
113170
|
propsActionRef.current = actionRef.current;
|
113001
113171
|
}
|
113172
|
+
function reGenFilteredColumnsByAutoWidth(columns) {
|
113173
|
+
if (!autoWidth) {
|
113174
|
+
return;
|
113175
|
+
}
|
113176
|
+
setShowShadowContainer(true);
|
113177
|
+
var authWidthedColumns = (0,_utils_genAutoWidthColumns__WEBPACK_IMPORTED_MODULE_15__/* .genAutoWidthColumns */ .ie)(columns != null ? columns : filteredColumns, shadowContainerRef, data, size, useRowSelection, shadowActionColumnContainerRef);
|
113178
|
+
setFilteredColumns(authWidthedColumns);
|
113179
|
+
// 移除 shadow dom
|
113180
|
+
// setTimeout(() => {
|
113181
|
+
// if (document.querySelector('.teamix-pro-table-shadow-container')) {
|
113182
|
+
// document.querySelector('.teamix-pro-table-shadow-container')?.remove();
|
113183
|
+
// }
|
113184
|
+
// }, 0);
|
113185
|
+
}
|
113186
|
+
|
113002
113187
|
function onFormatResult(next) {
|
113003
113188
|
props.onFormatResult && props.onFormatResult(next);
|
113004
113189
|
|
@@ -113026,7 +113211,7 @@ var ProTable = function ProTable(props) {
|
|
113026
113211
|
// 自动刷新不显示 loading
|
113027
113212
|
_request({}, true);
|
113028
113213
|
}, Number(time));
|
113029
|
-
(0,
|
113214
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_7__/* .emit */ .j8)('PRO_TABLE_REFRESH_TIMER_FLAG', Number(time));
|
113030
113215
|
}
|
113031
113216
|
// 设置 dataSource、total
|
113032
113217
|
if (switchViewState === 'table' || currentPage === 1 || cardViewProps != null && cardViewProps.useTablePagination) {
|
@@ -113040,10 +113225,13 @@ var ProTable = function ProTable(props) {
|
|
113040
113225
|
setTotal(total + (next.total || ((_next$data3 = next.data) == null ? void 0 : _next$data3.length)));
|
113041
113226
|
}
|
113042
113227
|
setShowSkeleton(false);
|
113228
|
+
if (autoWidth) {
|
113229
|
+
reGenFilteredColumnsByAutoWidth();
|
113230
|
+
}
|
113043
113231
|
}
|
113044
113232
|
|
113045
113233
|
// 请求表格数据工具函数
|
113046
|
-
var getData = (0,
|
113234
|
+
var getData = (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_4__.useRequest)(function (params) {
|
113047
113235
|
var _ref5;
|
113048
113236
|
return _ref5 = {
|
113049
113237
|
url: url,
|
@@ -113053,7 +113241,7 @@ var ProTable = function ProTable(props) {
|
|
113053
113241
|
// 使用 request 方法代替 fetch
|
113054
113242
|
requestMethod: function requestMethod(params) {
|
113055
113243
|
// 支持使用 requestConfig 自定义请求配置
|
113056
|
-
return (0,
|
113244
|
+
return (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_4__.request)(_extends({}, params, requestConfig));
|
113057
113245
|
},
|
113058
113246
|
manual: true,
|
113059
113247
|
onSuccess: function onSuccess(result) {
|
@@ -113063,13 +113251,13 @@ var ProTable = function ProTable(props) {
|
|
113063
113251
|
if (typeof formatResult === 'function') {
|
113064
113252
|
nextData = formatResult(result) || {};
|
113065
113253
|
} else if (typeof formatResult === 'object') {
|
113066
|
-
var dataTotal = (0,
|
113254
|
+
var dataTotal = (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_4__.getDeepValue)(formatResult.total, result);
|
113067
113255
|
nextData = {
|
113068
|
-
data: (0,
|
113256
|
+
data: (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_4__.getDeepValue)(formatResult.data, result) || [],
|
113069
113257
|
total: isNaN(dataTotal) ? 0 : Number(dataTotal)
|
113070
113258
|
};
|
113071
113259
|
} else if (typeof formatResult === 'string') {
|
113072
|
-
nextData = (0,
|
113260
|
+
nextData = (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_4__.getTargetValue)(formatResult, {
|
113073
113261
|
res: result
|
113074
113262
|
});
|
113075
113263
|
}
|
@@ -113135,7 +113323,7 @@ var ProTable = function ProTable(props) {
|
|
113135
113323
|
var requestData = {};
|
113136
113324
|
var preParams = _extends({}, !showPagination ? _extends({}, dataFilterParams, propsParams, sortParams, columnsFilterParams) : _extends((_extends3 = {}, _extends3[targetPageKey] = currentPage, _extends3[targetPageSizeKey] = pageSize, _extends3), dataFilterParams, propsParams, sortParams, columnsFilterParams), params);
|
113137
113325
|
if (typeof formatParams === 'string') {
|
113138
|
-
requestData = (0,
|
113326
|
+
requestData = (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_4__.getTargetValue)(formatParams, {
|
113139
113327
|
params: preParams
|
113140
113328
|
});
|
113141
113329
|
} else {
|
@@ -113193,6 +113381,9 @@ var ProTable = function ProTable(props) {
|
|
113193
113381
|
_setData([].concat(_toConsumableArray(data), _toConsumableArray(dataRes || [])));
|
113194
113382
|
setTotal(total + (totalRes || (dataRes == null ? void 0 : dataRes.length)));
|
113195
113383
|
}
|
113384
|
+
if (autoWidth) {
|
113385
|
+
reGenFilteredColumnsByAutoWidth();
|
113386
|
+
}
|
113196
113387
|
setShowSkeleton(false);
|
113197
113388
|
setCustomTableLoading(false);
|
113198
113389
|
}
|
@@ -113218,7 +113409,7 @@ var ProTable = function ProTable(props) {
|
|
113218
113409
|
// 自动刷新不显示 loading
|
113219
113410
|
_request({}, true);
|
113220
113411
|
}, Number(time));
|
113221
|
-
(0,
|
113412
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_7__/* .emit */ .j8)('PRO_TABLE_REFRESH_TIMER_FLAG', Number(time));
|
113222
113413
|
}
|
113223
113414
|
})["finally"](function () {
|
113224
113415
|
setCustomTableLoading(false);
|
@@ -113281,10 +113472,10 @@ var ProTable = function ProTable(props) {
|
|
113281
113472
|
};
|
113282
113473
|
var renderTable = function renderTable(isFullScreen) {
|
113283
113474
|
if (propsColumns) {
|
113284
|
-
return /*#__PURE__*/
|
113285
|
-
className:
|
113475
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
113476
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_13___default()('teamix-pro-table-container', className),
|
113286
113477
|
"data-teamix-spm": dataTeamixSpm
|
113287
|
-
}, /*#__PURE__*/
|
113478
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_components_Layout__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z, {
|
113288
113479
|
header: header,
|
113289
113480
|
mainAction: mainAction,
|
113290
113481
|
extra: extra,
|
@@ -113305,12 +113496,12 @@ var ProTable = function ProTable(props) {
|
|
113305
113496
|
autoRefreshProps: autoRefreshProps,
|
113306
113497
|
bindUrlProps: bindUrlProps,
|
113307
113498
|
bindUrl: bindUrl
|
113308
|
-
}), switchViewState === 'table' && /*#__PURE__*/
|
113499
|
+
}), switchViewState === 'table' && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_1__.Table.StickyLock, _extends({
|
113309
113500
|
hasBorder: false,
|
113310
113501
|
dataSource: showSkeleton ? skeletonDataSource : data || props.dataSource,
|
113311
|
-
columns: (0,
|
113502
|
+
columns: (0,_utils_genProColumnToColumn__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(filteredColumns, showSkeleton, actionRef, context, dataTeamixSpm, bindUrl, bindUrlProps),
|
113312
113503
|
loading: getTableLoading(),
|
113313
|
-
className:
|
113504
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_13___default()('teamix-pro-table', tableClassName, {
|
113314
113505
|
'with-row-select': rowSelection,
|
113315
113506
|
'teamix-pro-tree-table': isTree
|
113316
113507
|
}),
|
@@ -113320,12 +113511,12 @@ var ProTable = function ProTable(props) {
|
|
113320
113511
|
sort: sort,
|
113321
113512
|
primaryKey: primaryKey,
|
113322
113513
|
rowSelection: rowSelection,
|
113323
|
-
emptyContent: /*#__PURE__*/
|
113324
|
-
sortIcons: (0,
|
113514
|
+
emptyContent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_teamix_pro_field__WEBPACK_IMPORTED_MODULE_11__/* .EmptyContent */ .z1, emptyProps),
|
113515
|
+
sortIcons: (0,_utils_getTableSortIcons__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)(),
|
113325
113516
|
fixedHeader: fullscreenState || fixedTableBody,
|
113326
113517
|
maxBodyHeight: "calc(100vh - " + headerHeight + "px)"
|
113327
113518
|
// 过滤出可以传到 Table 的 Props
|
113328
|
-
}, (0,
|
113519
|
+
}, (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_4__.pickProps)((0,_utils_getTableProps__WEBPACK_IMPORTED_MODULE_20__/* ["default"] */ .Z)(), otherProps))), switchViewState === 'card' && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_components_CardView__WEBPACK_IMPORTED_MODULE_17__/* ["default"] */ .Z, {
|
113329
113520
|
dataSource: showSkeleton ? skeletonDataSource : data || props.dataSource,
|
113330
113521
|
showSkeleton: showSkeleton,
|
113331
113522
|
loading: getTableLoading(),
|
@@ -113334,15 +113525,15 @@ var ProTable = function ProTable(props) {
|
|
113334
113525
|
scrollHeight: fullscreenState || fixedTableBody ? "calc(100vh - " + headerHeight + "px)" : undefined,
|
113335
113526
|
actionRef: actionRef,
|
113336
113527
|
context: context,
|
113337
|
-
columns: (0,
|
113528
|
+
columns: (0,_utils_genProColumnToColumn__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(filteredColumns, showSkeleton, actionRef, context),
|
113338
113529
|
emptyProps: emptyProps,
|
113339
113530
|
emptyContent: otherProps == null ? void 0 : otherProps.emptyContent
|
113340
113531
|
}));
|
113341
113532
|
} else {
|
113342
113533
|
// 不传 columns 直接返回原始 Table
|
113343
|
-
return /*#__PURE__*/
|
113534
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_1__.Table, _extends({
|
113344
113535
|
className: cls()
|
113345
|
-
}, (0,
|
113536
|
+
}, (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_4__.pickProps)((0,_utils_getTableProps__WEBPACK_IMPORTED_MODULE_20__/* ["default"] */ .Z)(), otherProps)));
|
113346
113537
|
}
|
113347
113538
|
};
|
113348
113539
|
var renderFooterAction = function renderFooterAction() {
|
@@ -113362,9 +113553,9 @@ var ProTable = function ProTable(props) {
|
|
113362
113553
|
var targetFooterActions = _extends({}, footerAction, {
|
113363
113554
|
actions: targetActions
|
113364
113555
|
});
|
113365
|
-
return /*#__PURE__*/
|
113556
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
113366
113557
|
className: cls('footer-action')
|
113367
|
-
}, /*#__PURE__*/
|
113558
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_actions__WEBPACK_IMPORTED_MODULE_12__/* .ProActionGroup */ .d5, _extends({}, targetFooterActions, {
|
113368
113559
|
context: _extends({}, defaultContext, targetFooterActions == null ? void 0 : targetFooterActions.context),
|
113369
113560
|
"data-teamix-spm": dataTeamixSpm ? dataTeamixSpm + "-footerAction" : undefined
|
113370
113561
|
})));
|
@@ -113398,27 +113589,27 @@ var ProTable = function ProTable(props) {
|
|
113398
113589
|
function renderRowSelection() {
|
113399
113590
|
if (rowSelection) {
|
113400
113591
|
if (showSkeleton) {
|
113401
|
-
return /*#__PURE__*/
|
113592
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
113402
113593
|
className: cls('footer-left-wrapper')
|
113403
|
-
}, /*#__PURE__*/
|
113594
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_skeleton__WEBPACK_IMPORTED_MODULE_5__/* .ProSkeletonRaw.Footer.Operation */ .vR.Footer.Operation, null));
|
113404
113595
|
} else {
|
113405
|
-
return /*#__PURE__*/
|
113596
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
113406
113597
|
className: cls('footer-left-wrapper')
|
113407
|
-
}, /*#__PURE__*/
|
113598
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, rowSelection.mode !== 'single' && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_1__.Checkbox, _extends({
|
113408
113599
|
className: cls("footer-checkbox-" + size)
|
113409
|
-
}, getCheckAllProps())), footerAction && renderFooterAction(), /*#__PURE__*/
|
113600
|
+
}, getCheckAllProps())), footerAction && renderFooterAction(), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", {
|
113410
113601
|
className: cls('selected-msg')
|
113411
|
-
}, (0,
|
113602
|
+
}, (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_4__.getMessage)('selected', {
|
113412
113603
|
count: selectedCount
|
113413
113604
|
}))));
|
113414
113605
|
}
|
113415
113606
|
} else if (footerAction) {
|
113416
113607
|
if (showSkeleton) {
|
113417
|
-
return /*#__PURE__*/
|
113608
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
113418
113609
|
className: cls('footer-left-wrapper')
|
113419
|
-
}, /*#__PURE__*/
|
113610
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_skeleton__WEBPACK_IMPORTED_MODULE_5__/* .ProSkeletonRaw.Footer.Operation */ .vR.Footer.Operation, null));
|
113420
113611
|
} else {
|
113421
|
-
return /*#__PURE__*/
|
113612
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
113422
113613
|
className: cls('footer-left-wrapper')
|
113423
113614
|
}, footerAction && renderFooterAction());
|
113424
113615
|
}
|
@@ -113428,15 +113619,16 @@ var ProTable = function ProTable(props) {
|
|
113428
113619
|
var _props$paginationProp2;
|
113429
113620
|
var _ref6 = (_props$paginationProp2 = props == null ? void 0 : props.paginationProps) != null ? _props$paginationProp2 : {},
|
113430
113621
|
onPaginationPropsChange = _ref6.onChange,
|
113622
|
+
onPageSizeChangeProp = _ref6.onPageSizeChange,
|
113431
113623
|
othersPaginationProps = _objectWithoutPropertiesLoose(_ref6, _excluded2);
|
113432
|
-
return /*#__PURE__*/
|
113624
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
113433
113625
|
className: cls('footer', {
|
113434
113626
|
'footer-has-rowSelection': rowSelection,
|
113435
113627
|
'footer-has-action': footerAction
|
113436
113628
|
})
|
113437
|
-
}, renderRowSelection(), /*#__PURE__*/
|
113629
|
+
}, renderRowSelection(), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
113438
113630
|
className: cls('footer-right-wrapper')
|
113439
|
-
}, showSkeleton ? /*#__PURE__*/
|
113631
|
+
}, showSkeleton ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_skeleton__WEBPACK_IMPORTED_MODULE_5__/* .ProSkeletonRaw.Footer.Pagination */ .vR.Footer.Pagination, null) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, data.length > 0 && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_components_Pagination__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, _extends({
|
113440
113632
|
className: cls('pagination'),
|
113441
113633
|
onChange: function onChange(number, e) {
|
113442
113634
|
onChangePagination(number);
|
@@ -113453,23 +113645,24 @@ var ProTable = function ProTable(props) {
|
|
113453
113645
|
pageSizeSelector: total > (props.pageSize || 10) * 2 ? 'dropdown' : false,
|
113454
113646
|
type: total / pageSize <= 2 ? 'simple' : 'normal',
|
113455
113647
|
onPageSizeChange: function onPageSizeChange(number) {
|
113456
|
-
|
113648
|
+
onChangePaginationSize(number);
|
113649
|
+
onPageSizeChangeProp == null ? void 0 : onPageSizeChangeProp(number);
|
113457
113650
|
},
|
113458
113651
|
useMaxData: globalUseMaxData != null ? globalUseMaxData : useMaxData
|
113459
113652
|
}, othersPaginationProps)))));
|
113460
113653
|
} else if (!showPagination && (footerAction || rowSelection || useRowSelection)) {
|
113461
|
-
return /*#__PURE__*/
|
113654
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
113462
113655
|
className: cls('footer', {
|
113463
113656
|
'footer-has-rowSelection': rowSelection
|
113464
113657
|
})
|
113465
|
-
}, renderRowSelection(), /*#__PURE__*/
|
113658
|
+
}, renderRowSelection(), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
113466
113659
|
className: cls('footer-right-wrapper')
|
113467
|
-
}, showSkeleton ? /*#__PURE__*/
|
113660
|
+
}, showSkeleton ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_skeleton__WEBPACK_IMPORTED_MODULE_5__/* .ProSkeletonRaw.Footer.Pagination */ .vR.Footer.Pagination, null) : footer));
|
113468
113661
|
}
|
113469
113662
|
};
|
113470
113663
|
|
113471
113664
|
// 判断是否需要吸底
|
113472
|
-
var fixFooterState = (0,
|
113665
|
+
var fixFooterState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
|
113473
113666
|
if (fullscreenState) {
|
113474
113667
|
// TODO XXX
|
113475
113668
|
return false;
|
@@ -113481,11 +113674,11 @@ var ProTable = function ProTable(props) {
|
|
113481
113674
|
}
|
113482
113675
|
return false;
|
113483
113676
|
}, [fullscreenState, fixedTableBody, footerSuction, footerSuctionState]);
|
113484
|
-
return /*#__PURE__*/
|
113677
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_components_ToolBar_Fullscreen__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z, {
|
113485
113678
|
visible: fullscreenState,
|
113486
113679
|
actionRef: actionRef
|
113487
113680
|
}, function (isFullScreen) {
|
113488
|
-
return /*#__PURE__*/
|
113681
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
113489
113682
|
className: cls({
|
113490
113683
|
'': true,
|
113491
113684
|
fullscreen: isFullScreen
|
@@ -113493,10 +113686,14 @@ var ProTable = function ProTable(props) {
|
|
113493
113686
|
}),
|
113494
113687
|
|
113495
113688
|
ref: tableRef
|
113496
|
-
},
|
113689
|
+
}, showShadowContainer && (0,_utils_genAutoWidthColumns__WEBPACK_IMPORTED_MODULE_15__/* .shadowContainer */ .yV)({
|
113690
|
+
columns: filteredColumns,
|
113691
|
+
data: data,
|
113692
|
+
shadowContainerRef: shadowContainerRef
|
113693
|
+
}), hasActionColumn && (0,_utils_genAutoWidthColumns__WEBPACK_IMPORTED_MODULE_15__/* .shadowActionColumnContainer */ .tG)(filteredColumns, shadowActionColumnContainerRef), renderTable(isFullScreen), fixFooterState && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_page_container__WEBPACK_IMPORTED_MODULE_14__/* ["default"].FixedFooter */ .ZP.FixedFooter, null, renderFooter()), !fixFooterState && renderFooter());
|
113497
113694
|
});
|
113498
113695
|
};
|
113499
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (
|
113696
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ProTable);
|
113500
113697
|
|
113501
113698
|
/***/ }),
|
113502
113699
|
|
@@ -113505,8 +113702,9 @@ var ProTable = function ProTable(props) {
|
|
113505
113702
|
|
113506
113703
|
"use strict";
|
113507
113704
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
113508
|
-
/* harmony export */ "
|
113509
|
-
/* harmony export */ "
|
113705
|
+
/* harmony export */ "cw": () => (/* binding */ renderCell),
|
113706
|
+
/* harmony export */ "mn": () => (/* binding */ renderCellSmartWidth),
|
113707
|
+
/* harmony export */ "pt": () => (/* binding */ renderColumnsTitle)
|
113510
113708
|
/* harmony export */ });
|
113511
113709
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(59787);
|
113512
113710
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
@@ -113514,6 +113712,7 @@ var ProTable = function ProTable(props) {
|
|
113514
113712
|
/* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28758);
|
113515
113713
|
/* harmony import */ var _field__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(75241);
|
113516
113714
|
/* harmony import */ var _components_Filter__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(34166);
|
113715
|
+
/* harmony import */ var _teamix_pro_field__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(35511);
|
113517
113716
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
113518
113717
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
113519
113718
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
@@ -113696,9 +113895,52 @@ var renderCell = function renderCell(value, item, index, record, actionRef, cont
|
|
113696
113895
|
value: value,
|
113697
113896
|
render: newRender,
|
113698
113897
|
dataSource: newDataSource,
|
113699
|
-
format: format
|
113898
|
+
format: format,
|
113899
|
+
proFieldWidthType: valueType
|
113700
113900
|
}, props));
|
113701
113901
|
};
|
113902
|
+
var renderCellSmartWidth = function renderCellSmartWidth(value, item, index, record
|
113903
|
+
// actionRef: React.MutableRefObject<ProTableActionType | undefined>,
|
113904
|
+
/** 接收外部比如 dialog-table 传过来的 context,用于弹窗关闭等 */
|
113905
|
+
// context?: any,
|
113906
|
+
) {
|
113907
|
+
var _item$valueType2 = item.valueType,
|
113908
|
+
valueType = _item$valueType2 === void 0 ? 'text' : _item$valueType2,
|
113909
|
+
render = item.render;
|
113910
|
+
var newRender = null;
|
113911
|
+
var newDataSource = null;
|
113912
|
+
var props = item.props;
|
113913
|
+
// 如果 render 直接传函数
|
113914
|
+
if (typeof render === 'function') {
|
113915
|
+
newRender = function newRender() {
|
113916
|
+
return render == null ? void 0 : render(value, index, record);
|
113917
|
+
};
|
113918
|
+
} else {
|
113919
|
+
newRender = processBuriedPoint(processRenderFunction(render, value, index, record), record, value, index);
|
113920
|
+
if (valueType === 'selectGroup') {
|
113921
|
+
newRender = _extends({
|
113922
|
+
maxShowNumber: 'auto',
|
113923
|
+
foldText: 'more',
|
113924
|
+
editOnClick: function editOnClick() {},
|
113925
|
+
edit: true
|
113926
|
+
}, newRender, {
|
113927
|
+
ellipsis: false
|
113928
|
+
});
|
113929
|
+
props = _extends({
|
113930
|
+
valueAlias: {
|
113931
|
+
value: 'TagValue',
|
113932
|
+
key: 'TagKey'
|
113933
|
+
}
|
113934
|
+
}, props);
|
113935
|
+
}
|
113936
|
+
if ((render == null ? void 0 : render.type) === 'step') {
|
113937
|
+
newRender = _extends({}, newRender, {
|
113938
|
+
ellipsis: false
|
113939
|
+
});
|
113940
|
+
}
|
113941
|
+
}
|
113942
|
+
return (0,_teamix_pro_field__WEBPACK_IMPORTED_MODULE_5__/* .getProFieldWidth */ .i)(valueType, newRender);
|
113943
|
+
};
|
113702
113944
|
|
113703
113945
|
/**
|
113704
113946
|
* 处理 render 配置项是函数的情况
|
@@ -113759,6 +114001,371 @@ var processBuriedPoint = function processBuriedPoint(render, record, value, inde
|
|
113759
114001
|
|
113760
114002
|
/***/ }),
|
113761
114003
|
|
114004
|
+
/***/ 79389:
|
114005
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
114006
|
+
|
114007
|
+
"use strict";
|
114008
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
114009
|
+
/* harmony export */ "ie": () => (/* binding */ genAutoWidthColumns),
|
114010
|
+
/* harmony export */ "tG": () => (/* binding */ shadowActionColumnContainer),
|
114011
|
+
/* harmony export */ "yV": () => (/* binding */ shadowContainer)
|
114012
|
+
/* harmony export */ });
|
114013
|
+
/* unused harmony exports computeableWidthTypeList, fixedWidthTypeList, fieldTypeShrink */
|
114014
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(59787);
|
114015
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
114016
|
+
/* harmony import */ var _teamix_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80653);
|
114017
|
+
/* harmony import */ var _pureColumnRender__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(26370);
|
114018
|
+
/* harmony import */ var _columnRender__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(97332);
|
114019
|
+
/* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(28758);
|
114020
|
+
/* harmony import */ var _teamix_pro_field__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(35511);
|
114021
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
114022
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
114023
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
114024
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
114025
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
114026
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
114027
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
114028
|
+
|
114029
|
+
|
114030
|
+
|
114031
|
+
|
114032
|
+
|
114033
|
+
|
114034
|
+
|
114035
|
+
|
114036
|
+
// 最大宽度
|
114037
|
+
var maxColumnWidth = 600;
|
114038
|
+
// 最小宽度
|
114039
|
+
var minColumnWidth = 48;
|
114040
|
+
// 每个列可以缩减的最大宽度
|
114041
|
+
var columnShrinkMaxWidth = 100;
|
114042
|
+
|
114043
|
+
/**
|
114044
|
+
* @param fileteredColumns
|
114045
|
+
* @param ref
|
114046
|
+
* @param data
|
114047
|
+
* @returns
|
114048
|
+
*/
|
114049
|
+
function genAutoWidthColumns(fileteredColumns, ref, data, size, useRowSelection, actionColumnRef) {
|
114050
|
+
if (!ref.current) {
|
114051
|
+
return fileteredColumns;
|
114052
|
+
}
|
114053
|
+
var hasLockFlag = false;
|
114054
|
+
var dom = ref.current;
|
114055
|
+
var actionColumnDom = actionColumnRef == null ? void 0 : actionColumnRef.current;
|
114056
|
+
var childNodes = dom.children;
|
114057
|
+
var finalColumns = [];
|
114058
|
+
fileteredColumns.forEach(function (column, index) {
|
114059
|
+
var render = column.render,
|
114060
|
+
_column$valueType = column.valueType,
|
114061
|
+
valueType = _column$valueType === void 0 ? 'text' : _column$valueType,
|
114062
|
+
_column$autoWidth = column.autoWidth,
|
114063
|
+
autoWidth = _column$autoWidth === void 0 ? true : _column$autoWidth,
|
114064
|
+
actionSchema = column.actionSchema,
|
114065
|
+
sortable = column.sortable,
|
114066
|
+
lock = column.lock;
|
114067
|
+
if (lock) {
|
114068
|
+
hasLockFlag = true;
|
114069
|
+
}
|
114070
|
+
//@ts-ignore
|
114071
|
+
var type = render == null ? void 0 : render.type;
|
114072
|
+
var finalType = type || valueType || '';
|
114073
|
+
var shrink = fieldTypeShrink[finalType];
|
114074
|
+
column.shrink = column.shrink || (shrink !== undefined ? shrink : 1);
|
114075
|
+
//@ts-ignore
|
114076
|
+
// if (!autoWidth) {
|
114077
|
+
// finalColumns.push(column);
|
114078
|
+
// return;
|
114079
|
+
// }
|
114080
|
+
if (actionSchema) {
|
114081
|
+
// TODO 操作列暂时未处理,但是应该根据actionSchema的数量直接推测出操作列的宽度
|
114082
|
+
// console.log('column', column);
|
114083
|
+
column.shrink = 0;
|
114084
|
+
// column.width = 280;
|
114085
|
+
// console.log(
|
114086
|
+
// 'actionColumnDom',
|
114087
|
+
// actionColumnDom?.childNodes[0].scrollWidth,
|
114088
|
+
// );
|
114089
|
+
if (actionColumnDom != null && actionColumnDom.childNodes[0]) {
|
114090
|
+
//@ts-ignore
|
114091
|
+
var width = actionColumnDom == null ? void 0 : actionColumnDom.childNodes[0].scrollWidth;
|
114092
|
+
if (width >= 280) {
|
114093
|
+
width = 280;
|
114094
|
+
}
|
114095
|
+
column.width = defaultPaddingFixer(width, size, false);
|
114096
|
+
}
|
114097
|
+
finalColumns.push(column);
|
114098
|
+
return;
|
114099
|
+
}
|
114100
|
+
// @ts-ignore
|
114101
|
+
var titleWidth = childNodes[index].children[0].scrollWidth;
|
114102
|
+
// @ts-ignore
|
114103
|
+
if (fixedWidthTypeList[finalType]) {
|
114104
|
+
// console.log(
|
114105
|
+
// 'fixedWidthTypeList[finalType]',
|
114106
|
+
// fixedWidthTypeList[finalType],
|
114107
|
+
// );
|
114108
|
+
// 固定宽度
|
114109
|
+
column.width = defaultPaddingFixer(
|
114110
|
+
// @ts-ignore
|
114111
|
+
Math.max(titleWidth, fixedWidthTypeList[finalType]), size, index === 0 && useRowSelection);
|
114112
|
+
// @ts-ignore
|
114113
|
+
} else if (computeableWidthTypeList[finalType]) {
|
114114
|
+
// 可计算宽度
|
114115
|
+
column.width = defaultPaddingFixer(
|
114116
|
+
// @ts-ignore
|
114117
|
+
Math.max(titleWidth, computeableWidthTypeList[finalType](data, render)), size, index === 0 && useRowSelection);
|
114118
|
+
} else {
|
114119
|
+
// 直接根据 dom 计算
|
114120
|
+
column.width = defaultPaddingFixer(Math.max(titleWidth,
|
114121
|
+
// @ts-ignore
|
114122
|
+
calcWidthWithParentDOM(childNodes[index], column.shrink)), size, index === 0 && useRowSelection);
|
114123
|
+
}
|
114124
|
+
if (index === 0) {
|
114125
|
+
// 首列不会被挤占
|
114126
|
+
column.shrink = 0;
|
114127
|
+
}
|
114128
|
+
finalColumns.push(column);
|
114129
|
+
});
|
114130
|
+
if (!hasLockFlag) {
|
114131
|
+
// 如果没有锁列的情况,需要将所有列放到一屏内,此时需要将所有列放到一起计算一次
|
114132
|
+
var containerWidth = dom.offsetWidth;
|
114133
|
+
var comboColumns = calcMultiColumnLength(finalColumns, useRowSelection ? containerWidth - 50 : containerWidth);
|
114134
|
+
return comboColumns;
|
114135
|
+
}
|
114136
|
+
return finalColumns;
|
114137
|
+
}
|
114138
|
+
var shadowContainer = function shadowContainer(props) {
|
114139
|
+
var ref = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.createRef)();
|
114140
|
+
var columns = props.columns,
|
114141
|
+
data = props.data,
|
114142
|
+
shadowContainerRef = props.shadowContainerRef;
|
114143
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
114144
|
+
ref: shadowContainerRef,
|
114145
|
+
className: "teamix-pro-table-shadow-container"
|
114146
|
+
}, columns.map(function (column, index) {
|
114147
|
+
var dataIndex = column.dataIndex,
|
114148
|
+
valueType = column.valueType;
|
114149
|
+
if (!(column != null && column.actionSchema)) {
|
114150
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
114151
|
+
className: "teamix-pro-table-shadow-container-columns",
|
114152
|
+
key: index
|
114153
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", null, (0,_columnRender__WEBPACK_IMPORTED_MODULE_3__/* .renderColumnsTitle */ .pt)(column, ref)),
|
114154
|
+
//@ts-ignore
|
114155
|
+
!computeableWidthTypeList[valueType] &&
|
114156
|
+
//@ts-ignore
|
114157
|
+
!fixedWidthTypeList[valueType] && data.map(function (item, index) {
|
114158
|
+
// @ts-ignore
|
114159
|
+
column.smartWidth = (0,_columnRender__WEBPACK_IMPORTED_MODULE_3__/* .renderCellSmartWidth */ .mn)(getValueFromRecord(dataIndex, item), column, index, item);
|
114160
|
+
return (0,_pureColumnRender__WEBPACK_IMPORTED_MODULE_2__/* .renderCell */ .c)(getValueFromRecord(dataIndex, item), column, index, item);
|
114161
|
+
}));
|
114162
|
+
}
|
114163
|
+
}));
|
114164
|
+
};
|
114165
|
+
var shadowActionColumnContainer = function shadowActionColumnContainer(columns, shadowActionColumnContainerRef) {
|
114166
|
+
var actionColumn = columns.find(function (column) {
|
114167
|
+
return column == null ? void 0 : column.actionSchema;
|
114168
|
+
});
|
114169
|
+
if (actionColumn != null && actionColumn.actionSchema) {
|
114170
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
114171
|
+
ref: shadowActionColumnContainerRef,
|
114172
|
+
className: "teamix-pro-table-action-column-shadow-container"
|
114173
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_actions__WEBPACK_IMPORTED_MODULE_4__/* .ProActionGroup */ .d5, _extends({
|
114174
|
+
type: "text"
|
114175
|
+
}, actionColumn == null ? void 0 : actionColumn.actionSchema, {
|
114176
|
+
context: _extends({}, actionColumn == null ? void 0 : actionColumn.actionSchema.context)
|
114177
|
+
})));
|
114178
|
+
}
|
114179
|
+
};
|
114180
|
+
|
114181
|
+
// 计算操作列的宽度
|
114182
|
+
|
114183
|
+
function getValueFromRecord(dataIndex, record) {
|
114184
|
+
if (!dataIndex) {
|
114185
|
+
return null;
|
114186
|
+
}
|
114187
|
+
if (Array.isArray(dataIndex)) {
|
114188
|
+
var value = dataIndex.map(function (item) {
|
114189
|
+
return (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_1__.getTargetValue)("{{" + item + "}}", _extends({}, record, {
|
114190
|
+
record: record
|
114191
|
+
}));
|
114192
|
+
});
|
114193
|
+
return value;
|
114194
|
+
} else {
|
114195
|
+
var result = record;
|
114196
|
+
var array = dataIndex.split('.');
|
114197
|
+
array.forEach(function (item) {
|
114198
|
+
return result = result ? result[item] : undefined;
|
114199
|
+
});
|
114200
|
+
return result;
|
114201
|
+
}
|
114202
|
+
}
|
114203
|
+
|
114204
|
+
// TODO 某些可以直接算出结果的 profield 类型白名单,待补充,每个类型下支持一个函数,用当前值和渲染类型算出一个结果
|
114205
|
+
var computeableWidthTypeList = {
|
114206
|
+
dateTime: function dateTime(data, render) {
|
114207
|
+
var result = (0,_teamix_pro_field__WEBPACK_IMPORTED_MODULE_5__/* .getProFieldWidth */ .i)('dateTime', render);
|
114208
|
+
// @ts-ignore
|
114209
|
+
return (result == null ? void 0 : result.minWidth) || 0;
|
114210
|
+
}
|
114211
|
+
};
|
114212
|
+
|
114213
|
+
// TODO 某些固定宽度的 profield 类型白名单,这里的数据可能需要综合考虑 dataFold 和 render.rows
|
114214
|
+
var fixedWidthTypeList = {
|
114215
|
+
// 时间日期
|
114216
|
+
// dateTime: 142,
|
114217
|
+
// dateMonth: 74, // 60
|
114218
|
+
// dateWeek: 74,
|
114219
|
+
// date: 100,
|
114220
|
+
// dateYear: 46,
|
114221
|
+
// dateQuarter: 64,
|
114222
|
+
// dateRange: 212,
|
114223
|
+
dateWeekRange: 156,
|
114224
|
+
dateMonthRange: 156,
|
114225
|
+
dateYearRange: 102,
|
114226
|
+
dateQuarterRange: 136,
|
114227
|
+
dateTimeRange: 326,
|
114228
|
+
time: 38,
|
114229
|
+
timeRange: 124
|
114230
|
+
};
|
114231
|
+
|
114232
|
+
// TODO 不同类型的 profield 的 shrink,0表示不可以省略号,数字越大越容易被挤占空间
|
114233
|
+
var fieldTypeShrink = {
|
114234
|
+
tag: 0,
|
114235
|
+
statusTag: 0,
|
114236
|
+
statusIconTag: 0,
|
114237
|
+
circle: 0,
|
114238
|
+
rank: 0,
|
114239
|
+
progress: 0,
|
114240
|
+
money: 0,
|
114241
|
+
number: 0,
|
114242
|
+
percent: 0,
|
114243
|
+
dateTime: 0,
|
114244
|
+
ip: 0
|
114245
|
+
};
|
114246
|
+
function calcWidthWithParentDOM(dom, shrink) {
|
114247
|
+
var childNodes = _toConsumableArray(dom.children);
|
114248
|
+
childNodes.shift();
|
114249
|
+
return calcSingleColumnLength(childNodes.map(function (node) {
|
114250
|
+
return node.scrollWidth;
|
114251
|
+
}), shrink);
|
114252
|
+
}
|
114253
|
+
function calcSingleColumnLength(list, shrink) {
|
114254
|
+
if (list === void 0) {
|
114255
|
+
list = [];
|
114256
|
+
}
|
114257
|
+
if (shrink === 0) {
|
114258
|
+
return Math.ceil(Math.max.apply(null, list));
|
114259
|
+
}
|
114260
|
+
return getConfidence90UpperBound(list);
|
114261
|
+
}
|
114262
|
+
|
114263
|
+
/**
|
114264
|
+
* 根据所有列的宽度和权重,结合总宽度,计算出各个列合适的宽度
|
114265
|
+
* 目前算法:
|
114266
|
+
* 当前需要的总宽度-总宽度=需要降低的宽度
|
114267
|
+
* 从后往前,将shrink不为0的列,降低一些宽度到最小宽度
|
114268
|
+
* 最小宽度可以用百分比去算
|
114269
|
+
* TODO 当前shrink只用了0,其他的权重也要考虑一下
|
114270
|
+
* @param list
|
114271
|
+
* @param max
|
114272
|
+
* @returns
|
114273
|
+
*/
|
114274
|
+
function calcMultiColumnLength(list, max) {
|
114275
|
+
if (list === void 0) {
|
114276
|
+
list = [];
|
114277
|
+
}
|
114278
|
+
var result = _toConsumableArray(list);
|
114279
|
+
var targetList = [];
|
114280
|
+
var needWidth = 0;
|
114281
|
+
var canShrink = 0;
|
114282
|
+
list.forEach(function (item) {
|
114283
|
+
//@ts-ignore
|
114284
|
+
needWidth += item.width;
|
114285
|
+
if (item.shrink !== 0) {
|
114286
|
+
targetList.push(item);
|
114287
|
+
//@ts-ignore
|
114288
|
+
canShrink += Math.min(item.width - minColumnWidth, columnShrinkMaxWidth);
|
114289
|
+
}
|
114290
|
+
});
|
114291
|
+
var widthToBeRemoved = needWidth - max;
|
114292
|
+
if (widthToBeRemoved <= 0) {
|
114293
|
+
return list;
|
114294
|
+
}
|
114295
|
+
// TODO 超过的特别多直接加锁列,这个逻辑怎么设计
|
114296
|
+
// 目前用可以缩小的宽度加起来比较一下
|
114297
|
+
if (canShrink < widthToBeRemoved) {
|
114298
|
+
list[0].lock = 'left';
|
114299
|
+
if (list[list.length - 1].actionSchema) {
|
114300
|
+
list[list.length - 1].lock = 'right';
|
114301
|
+
}
|
114302
|
+
return list;
|
114303
|
+
}
|
114304
|
+
//@ts-ignore
|
114305
|
+
var sortedList = targetList.sort(function (a, b) {
|
114306
|
+
return a.width - b.width;
|
114307
|
+
});
|
114308
|
+
var shrinkedWidth = 0;
|
114309
|
+
for (var i = sortedList.length - 1; i >= 0; i--) {
|
114310
|
+
if (shrinkedWidth >= widthToBeRemoved) {
|
114311
|
+
break;
|
114312
|
+
}
|
114313
|
+
var singleShrinkedWidth = Math.min(sortedList[i].width - minColumnWidth, columnShrinkMaxWidth, widthToBeRemoved - shrinkedWidth);
|
114314
|
+
sortedList[i].width = sortedList[i].width - singleShrinkedWidth;
|
114315
|
+
shrinkedWidth += singleShrinkedWidth;
|
114316
|
+
}
|
114317
|
+
return result;
|
114318
|
+
}
|
114319
|
+
|
114320
|
+
/**
|
114321
|
+
* 修正内容放在table中默认的padding
|
114322
|
+
* @param width
|
114323
|
+
* @returns
|
114324
|
+
*/
|
114325
|
+
function defaultPaddingFixer(width, size, half) {
|
114326
|
+
if (size === void 0) {
|
114327
|
+
size = 'medium';
|
114328
|
+
}
|
114329
|
+
if (half === void 0) {
|
114330
|
+
half = false;
|
114331
|
+
}
|
114332
|
+
return size === 'medium' ? width + (half ? 16 : 32) + 0.5 : width + (half ? 8 : 16) + 0.5;
|
114333
|
+
}
|
114334
|
+
function sum(list) {
|
114335
|
+
if (list === void 0) {
|
114336
|
+
list = [];
|
114337
|
+
}
|
114338
|
+
return list.reduce(function (a, b) {
|
114339
|
+
return a + b;
|
114340
|
+
});
|
114341
|
+
}
|
114342
|
+
|
114343
|
+
/**
|
114344
|
+
* 假设样本正态分布,取 90% 置信区间的上界
|
114345
|
+
* 当上界与最大值差距不大(目前是20)的时候,直接用最大值
|
114346
|
+
* TODO 这里没考虑是否可以直接用标准差做评判依据,如标准差过大时,直接排序并展示前90%,或标准差很小时直接用最大值
|
114347
|
+
* TODO 这里极限情况是不是会挂? 如:长度为9个100和2个10000,估计会挂,是否置信区间这个不靠谱。。。最差情况就直接展示90%的数据算了
|
114348
|
+
*/
|
114349
|
+
function getConfidence90UpperBound(list) {
|
114350
|
+
if (list === void 0) {
|
114351
|
+
list = [];
|
114352
|
+
}
|
114353
|
+
var max = Math.max.apply(null, list);
|
114354
|
+
var length = list.length;
|
114355
|
+
var mean = sum(list) / length;
|
114356
|
+
var std = Math.sqrt(sum(list.map(function (n) {
|
114357
|
+
return (n - mean) * (n - mean);
|
114358
|
+
})) / length);
|
114359
|
+
var interval = length > 30 ? 1.65 * std / Math.sqrt(length) : 2.2622 * std / Math.sqrt(length);
|
114360
|
+
var bound = Math.ceil(mean + interval);
|
114361
|
+
if (max - bound < 20) {
|
114362
|
+
return Math.min(max, maxColumnWidth);
|
114363
|
+
}
|
114364
|
+
return Math.min(bound, maxColumnWidth);
|
114365
|
+
}
|
114366
|
+
|
114367
|
+
/***/ }),
|
114368
|
+
|
113762
114369
|
/***/ 40339:
|
113763
114370
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
113764
114371
|
|
@@ -113811,9 +114418,9 @@ dataTeamixSpm, bindUrl, bindUrlProps) {
|
|
113811
114418
|
}, others, {
|
113812
114419
|
children: children ? genProColumnToColumn(children, showSkeleton, actionRef, context) : undefined,
|
113813
114420
|
dataIndex: dataIndex == null ? void 0 : dataIndex.toString(),
|
113814
|
-
title: (0,_columnRender__WEBPACK_IMPORTED_MODULE_1__/* .renderColumnsTitle */ .
|
114421
|
+
title: (0,_columnRender__WEBPACK_IMPORTED_MODULE_1__/* .renderColumnsTitle */ .pt)(columnProps, actionRef, bindUrl, bindUrlProps),
|
113815
114422
|
cell: function cell(value, index, record) {
|
113816
|
-
return (0,_columnRender__WEBPACK_IMPORTED_MODULE_1__/* .renderCell */ .
|
114423
|
+
return (0,_columnRender__WEBPACK_IMPORTED_MODULE_1__/* .renderCell */ .cw)(value, columnProps, index, record, actionRef, context, dataTeamixSpm);
|
113817
114424
|
}
|
113818
114425
|
});
|
113819
114426
|
});
|
@@ -114782,59 +115389,6 @@ var ProTimeline = function ProTimeline(props) {
|
|
114782
115389
|
ProTimeline.Item = _ProTimeLineItem__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z;
|
114783
115390
|
|
114784
115391
|
|
114785
|
-
/***/ }),
|
114786
|
-
|
114787
|
-
/***/ 32598:
|
114788
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
114789
|
-
|
114790
|
-
"use strict";
|
114791
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
114792
|
-
/* harmony export */ "b": () => (/* binding */ ProComponentAspect)
|
114793
|
-
/* harmony export */ });
|
114794
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(59787);
|
114795
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
114796
|
-
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
|
114797
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
114798
|
-
|
114799
|
-
function ProComponentAspect(WrapComponent, componentName) {
|
114800
|
-
return /*#__PURE__*/function (_React$Component) {
|
114801
|
-
_inheritsLoose(ProComponent, _React$Component);
|
114802
|
-
function ProComponent() {
|
114803
|
-
var _this;
|
114804
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
114805
|
-
args[_key] = arguments[_key];
|
114806
|
-
}
|
114807
|
-
_this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
|
114808
|
-
_this.state = {
|
114809
|
-
name: 'alien'
|
114810
|
-
};
|
114811
|
-
return _this;
|
114812
|
-
}
|
114813
|
-
var _proto = ProComponent.prototype;
|
114814
|
-
_proto.componentDidMount = function componentDidMount() {
|
114815
|
-
// @ts-ignore
|
114816
|
-
if (!!window.ProComponentBeforeAspectDebugger) {
|
114817
|
-
console.log('HOC', componentName);
|
114818
|
-
console.log('Props', this.props);
|
114819
|
-
}
|
114820
|
-
};
|
114821
|
-
_proto.render = function render() {
|
114822
|
-
// @ts-ignore
|
114823
|
-
if (window.ProComponentBeforeAspect) {
|
114824
|
-
// @ts-ignore
|
114825
|
-
var props = window.ProComponentBeforeAspect == null ? void 0 : window.ProComponentBeforeAspect(componentName, this.props);
|
114826
|
-
// @ts-ignore
|
114827
|
-
if (!!window.ProComponentBeforeAspectDebugger) {
|
114828
|
-
console.log('NewProps', props);
|
114829
|
-
}
|
114830
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(WrapComponent, props);
|
114831
|
-
}
|
114832
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(WrapComponent, this.props);
|
114833
|
-
};
|
114834
|
-
return ProComponent;
|
114835
|
-
}((react__WEBPACK_IMPORTED_MODULE_0___default().Component));
|
114836
|
-
}
|
114837
|
-
|
114838
115392
|
/***/ }),
|
114839
115393
|
|
114840
115394
|
/***/ 28570:
|
@@ -114850,9 +115404,11 @@ function ProComponentAspect(WrapComponent, componentName) {
|
|
114850
115404
|
/* harmony export */ "BP": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.isObj),
|
114851
115405
|
/* harmony export */ "BV": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.RESOURCE_GROUP_ID),
|
114852
115406
|
/* harmony export */ "Bl": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.isBool),
|
115407
|
+
/* harmony export */ "Bx": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.sizeToBytes),
|
114853
115408
|
/* harmony export */ "C": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.isIPv4),
|
114854
115409
|
/* harmony export */ "Cb": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.customDateFormat),
|
114855
115410
|
/* harmony export */ "Cc": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.getValidValues),
|
115411
|
+
/* harmony export */ "D6": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.safeJsonParse),
|
114856
115412
|
/* harmony export */ "DM": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.isSet),
|
114857
115413
|
/* harmony export */ "DO": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.getMicroApp),
|
114858
115414
|
/* harmony export */ "Dc": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.setTheme),
|
@@ -114877,6 +115433,7 @@ function ProComponentAspect(WrapComponent, componentName) {
|
|
114877
115433
|
/* harmony export */ "Iz": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.isPresetBackgroundColor),
|
114878
115434
|
/* harmony export */ "J1": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.setTerritory),
|
114879
115435
|
/* harmony export */ "JB": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.setHistory),
|
115436
|
+
/* harmony export */ "JF": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.judgeObjectKeyExist),
|
114880
115437
|
/* harmony export */ "JY": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.isValid),
|
114881
115438
|
/* harmony export */ "K4": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.getGlobalScriptUrl),
|
114882
115439
|
/* harmony export */ "Kd": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.getLocale),
|
@@ -114886,9 +115443,11 @@ function ProComponentAspect(WrapComponent, componentName) {
|
|
114886
115443
|
/* harmony export */ "LQ": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.isFn),
|
114887
115444
|
/* harmony export */ "Lq": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.getColor),
|
114888
115445
|
/* harmony export */ "Nx": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.mapKeyValue),
|
115446
|
+
/* harmony export */ "OW": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.generateIncreasingLabel),
|
114889
115447
|
/* harmony export */ "Oh": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.stringifyQuery),
|
114890
115448
|
/* harmony export */ "Oz": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.brandColorInfo),
|
114891
115449
|
/* harmony export */ "QT": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.useRequest),
|
115450
|
+
/* harmony export */ "QW": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.convertDateToTimestamp),
|
114892
115451
|
/* harmony export */ "Qb": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.setGlobalConfig),
|
114893
115452
|
/* harmony export */ "RH": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.deepMerge),
|
114894
115453
|
/* harmony export */ "RV": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.cidrv4Pattern),
|
@@ -114907,12 +115466,14 @@ function ProComponentAspect(WrapComponent, componentName) {
|
|
114907
115466
|
/* harmony export */ "Vy": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.RESOURCE_GROUP_ID_SHORT),
|
114908
115467
|
/* harmony export */ "WY": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.request),
|
114909
115468
|
/* harmony export */ "Wg": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.setLang),
|
115469
|
+
/* harmony export */ "Xz": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.getRecentRangeTime),
|
114910
115470
|
/* harmony export */ "Y4": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.numberFormat),
|
114911
115471
|
/* harmony export */ "Ye": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.REGION_ID_SHORT),
|
114912
115472
|
/* harmony export */ "Yg": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.cidrv6Pattern),
|
114913
115473
|
/* harmony export */ "Yz": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.getAliyunConfig),
|
114914
115474
|
/* harmony export */ "Z2": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.getTerritory),
|
114915
115475
|
/* harmony export */ "ZP": () => (__WEBPACK_DEFAULT_EXPORT__),
|
115476
|
+
/* harmony export */ "Zp": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.runInterval),
|
114916
115477
|
/* harmony export */ "Zu": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.ORGANIZATION_ID_SHORT),
|
114917
115478
|
/* harmony export */ "_": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__._),
|
114918
115479
|
/* harmony export */ "_L": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.setQuery),
|
@@ -114923,10 +115484,12 @@ function ProComponentAspect(WrapComponent, componentName) {
|
|
114923
115484
|
/* harmony export */ "bn": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.LANG),
|
114924
115485
|
/* harmony export */ "cF": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.getRequestConfig),
|
114925
115486
|
/* harmony export */ "cd": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.getTargetValue),
|
115487
|
+
/* harmony export */ "cu": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.convertPercentToDecimal),
|
114926
115488
|
/* harmony export */ "d8": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.isStr),
|
114927
115489
|
/* harmony export */ "dB": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.ipv6Pattern),
|
114928
115490
|
/* harmony export */ "dJ": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.getTagColor),
|
114929
115491
|
/* harmony export */ "e9": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.isNum),
|
115492
|
+
/* harmony export */ "eC": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.safeDecodeURIComponent),
|
114930
115493
|
/* harmony export */ "ej": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.getCookie),
|
114931
115494
|
/* harmony export */ "fK": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.flattenTree),
|
114932
115495
|
/* harmony export */ "fb": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.isUsable),
|
@@ -114942,8 +115505,11 @@ function ProComponentAspect(WrapComponent, componentName) {
|
|
114942
115505
|
/* harmony export */ "jM": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.getBackgroundColorClassName),
|
114943
115506
|
/* harmony export */ "jQ": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.TERRITORY),
|
114944
115507
|
/* harmony export */ "jq": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.REGION_ID),
|
115508
|
+
/* harmony export */ "kB": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.readableNumber),
|
115509
|
+
/* harmony export */ "kR": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.readableBytes),
|
114945
115510
|
/* harmony export */ "l9": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.getCssVarValue),
|
114946
115511
|
/* harmony export */ "lr": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.getChannelFeature),
|
115512
|
+
/* harmony export */ "m0": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.setLanguage),
|
114947
115513
|
/* harmony export */ "mW": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.setCookieWidthDomain),
|
114948
115514
|
/* harmony export */ "mg": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.getGlobalColor),
|
114949
115515
|
/* harmony export */ "mh": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.getDateFormat),
|
@@ -114951,6 +115517,7 @@ function ProComponentAspect(WrapComponent, componentName) {
|
|
114951
115517
|
/* harmony export */ "oD": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.treeLoop),
|
114952
115518
|
/* harmony export */ "oI": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.getConsoleConfig),
|
114953
115519
|
/* harmony export */ "oL": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.getType),
|
115520
|
+
/* harmony export */ "oR": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.prettyCompactJsonStringify),
|
114954
115521
|
/* harmony export */ "oc": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.HEADER_REGION),
|
114955
115522
|
/* harmony export */ "pd": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.setDateLanguageGetter),
|
114956
115523
|
/* harmony export */ "pm": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.getQuery),
|
@@ -114963,6 +115530,7 @@ function ProComponentAspect(WrapComponent, componentName) {
|
|
114963
115530
|
/* harmony export */ "sI": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.isNumberLike),
|
114964
115531
|
/* harmony export */ "tV": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.getTestRequestParams),
|
114965
115532
|
/* harmony export */ "t_": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.setSessionStorage),
|
115533
|
+
/* harmony export */ "u4": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.safeJsonStringify),
|
114966
115534
|
/* harmony export */ "uD": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.isWeakSet),
|
114967
115535
|
/* harmony export */ "vZ": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.isReactElement),
|
114968
115536
|
/* harmony export */ "vc": () => (/* reexport safe */ _teamix_utils__WEBPACK_IMPORTED_MODULE_0__.dateFormat),
|
@@ -117182,6 +117750,7 @@ function getGlobalConfig(key) {
|
|
117182
117750
|
/* harmony export */ "Hi": () => (/* reexport safe */ _global__WEBPACK_IMPORTED_MODULE_0__.Hi),
|
117183
117751
|
/* harmony export */ "Hl": () => (/* reexport safe */ _global__WEBPACK_IMPORTED_MODULE_0__.Hl),
|
117184
117752
|
/* harmony export */ "Qb": () => (/* reexport safe */ _global__WEBPACK_IMPORTED_MODULE_0__.Qb),
|
117753
|
+
/* harmony export */ "m0": () => (/* reexport safe */ _locale__WEBPACK_IMPORTED_MODULE_2__.m0),
|
117185
117754
|
/* harmony export */ "xL": () => (/* reexport safe */ _locale__WEBPACK_IMPORTED_MODULE_2__.xL)
|
117186
117755
|
/* harmony export */ });
|
117187
117756
|
/* harmony import */ var _global__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(53099);
|
@@ -117301,14 +117870,23 @@ function getGlobalConfig(key) {
|
|
117301
117870
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
117302
117871
|
/* harmony export */ "FC": () => (/* binding */ getMessage),
|
117303
117872
|
/* harmony export */ "G3": () => (/* binding */ getLanguage),
|
117873
|
+
/* harmony export */ "m0": () => (/* reexport safe */ _language__WEBPACK_IMPORTED_MODULE_5__.m),
|
117304
117874
|
/* harmony export */ "xL": () => (/* binding */ getSourceLocale)
|
117305
117875
|
/* harmony export */ });
|
117306
117876
|
/* harmony import */ var _alicloudfe_components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(33049);
|
117307
117877
|
/* harmony import */ var _alicloudfe_components__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_0__);
|
117308
117878
|
/* harmony import */ var _base_lib_getDeepValue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(42511);
|
117879
|
+
/* harmony import */ var _language__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(50515);
|
117309
117880
|
/* harmony import */ var _zh_cn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1595);
|
117310
117881
|
/* harmony import */ var _en_us__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(25408);
|
117311
117882
|
/* harmony import */ var _zh_tw__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(62174);
|
117883
|
+
/*
|
117884
|
+
* @Author: hwb
|
117885
|
+
* @Date: 2023-06-14 15:56:08
|
117886
|
+
* @FilePath: /big-pro/packages/utils/src/biz/locale/index.ts
|
117887
|
+
* @LastEditors: hwb
|
117888
|
+
* @LastEditTime: 2023-07-13 16:59:28
|
117889
|
+
*/
|
117312
117890
|
/**
|
117313
117891
|
* 国际化相关函数
|
117314
117892
|
*/
|
@@ -117317,6 +117895,7 @@ function getGlobalConfig(key) {
|
|
117317
117895
|
|
117318
117896
|
|
117319
117897
|
|
117898
|
+
|
117320
117899
|
var languageMap = {
|
117321
117900
|
'zh-cn': _zh_cn__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z,
|
117322
117901
|
'en-us': _en_us__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z,
|
@@ -117336,6 +117915,32 @@ var getMessage = function getMessage(id, data) {
|
|
117336
117915
|
};
|
117337
117916
|
|
117338
117917
|
|
117918
|
+
/***/ }),
|
117919
|
+
|
117920
|
+
/***/ 50515:
|
117921
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
117922
|
+
|
117923
|
+
"use strict";
|
117924
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
117925
|
+
/* harmony export */ "m": () => (/* binding */ setLanguage)
|
117926
|
+
/* harmony export */ });
|
117927
|
+
/*
|
117928
|
+
* @Author: hwb
|
117929
|
+
* @Date: 2023-07-13 16:30:33
|
117930
|
+
* @FilePath: /big-pro/packages/utils/src/biz/locale/language.ts
|
117931
|
+
* @LastEditors: hwb
|
117932
|
+
* @LastEditTime: 2023-07-13 16:59:03
|
117933
|
+
*/
|
117934
|
+
var setLanguage = function setLanguage(lang) {
|
117935
|
+
// 拓扑国际化
|
117936
|
+
window.dispatchEvent(new CustomEvent('hybridscape-intl', {
|
117937
|
+
detail: {
|
117938
|
+
lang: lang
|
117939
|
+
}
|
117940
|
+
}));
|
117941
|
+
};
|
117942
|
+
|
117943
|
+
|
117339
117944
|
/***/ }),
|
117340
117945
|
|
117341
117946
|
/***/ 1595:
|
@@ -117759,6 +118364,338 @@ function doCommonRequest(config, context, history, extraParams) {
|
|
117759
118364
|
|
117760
118365
|
/***/ }),
|
117761
118366
|
|
118367
|
+
/***/ 55126:
|
118368
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
118369
|
+
|
118370
|
+
"use strict";
|
118371
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
118372
|
+
/* harmony export */ "Bx": () => (/* binding */ sizeToBytes),
|
118373
|
+
/* harmony export */ "D6": () => (/* binding */ safeJsonParse),
|
118374
|
+
/* harmony export */ "JF": () => (/* binding */ judgeObjectKeyExist),
|
118375
|
+
/* harmony export */ "OW": () => (/* binding */ generateIncreasingLabel),
|
118376
|
+
/* harmony export */ "QW": () => (/* binding */ convertDateToTimestamp),
|
118377
|
+
/* harmony export */ "Xz": () => (/* binding */ getRecentRangeTime),
|
118378
|
+
/* harmony export */ "Zp": () => (/* binding */ runInterval),
|
118379
|
+
/* harmony export */ "cu": () => (/* binding */ convertPercentToDecimal),
|
118380
|
+
/* harmony export */ "eC": () => (/* binding */ safeDecodeURIComponent),
|
118381
|
+
/* harmony export */ "kB": () => (/* binding */ readableNumber),
|
118382
|
+
/* harmony export */ "kR": () => (/* binding */ readableBytes),
|
118383
|
+
/* harmony export */ "oR": () => (/* binding */ prettyCompactJsonStringify),
|
118384
|
+
/* harmony export */ "u4": () => (/* binding */ safeJsonStringify)
|
118385
|
+
/* harmony export */ });
|
118386
|
+
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(51554);
|
118387
|
+
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);
|
118388
|
+
/* harmony import */ var json_stringify_pretty_compact__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(98610);
|
118389
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
118390
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
118391
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
118392
|
+
|
118393
|
+
|
118394
|
+
|
118395
|
+
/**
|
118396
|
+
* 更安全的 JS 基础方法封装
|
118397
|
+
*/
|
118398
|
+
// JSON.parse
|
118399
|
+
var safeJsonParse = function safeJsonParse(str, defaultValue, reviver) {
|
118400
|
+
try {
|
118401
|
+
return JSON.parse(str, reviver);
|
118402
|
+
} catch (error) {
|
118403
|
+
console.warn('JSON.parse', str, 'failed', error);
|
118404
|
+
return defaultValue;
|
118405
|
+
}
|
118406
|
+
};
|
118407
|
+
|
118408
|
+
// JSON.stringify
|
118409
|
+
var safeJsonStringify = function safeJsonStringify(obj, replacer, space) {
|
118410
|
+
try {
|
118411
|
+
return JSON.stringify(obj, replacer, space);
|
118412
|
+
} catch (error) {
|
118413
|
+
console.warn('JSON.stringify obj:', obj, 'failed:', error);
|
118414
|
+
return '';
|
118415
|
+
}
|
118416
|
+
};
|
118417
|
+
|
118418
|
+
// decodeURIComponent
|
118419
|
+
var safeDecodeURIComponent = function safeDecodeURIComponent(url) {
|
118420
|
+
if (url === void 0) {
|
118421
|
+
url = '';
|
118422
|
+
}
|
118423
|
+
try {
|
118424
|
+
return decodeURIComponent(url);
|
118425
|
+
} catch (error) {
|
118426
|
+
console.error('decodeURIComponent error', error);
|
118427
|
+
return '';
|
118428
|
+
}
|
118429
|
+
};
|
118430
|
+
|
118431
|
+
// Make JSON.stringify both pretty and compact
|
118432
|
+
var prettyCompactJsonStringify = json_stringify_pretty_compact__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z;
|
118433
|
+
|
118434
|
+
// 判断对象中某个 key 是否存在
|
118435
|
+
var judgeObjectKeyExist = function judgeObjectKeyExist(item, key) {
|
118436
|
+
try {
|
118437
|
+
return Object.prototype.hasOwnProperty.call(item, key);
|
118438
|
+
} catch (error) {
|
118439
|
+
console.error('judgeObjectKeyExist error', error);
|
118440
|
+
}
|
118441
|
+
};
|
118442
|
+
|
118443
|
+
/**
|
118444
|
+
* 根据指定列表内容渲染递增数字标签名(如:新元素1,新元素2...)
|
118445
|
+
* label: 标签名,如:新元素
|
118446
|
+
* list: 用于判断的数据列表
|
118447
|
+
* listLabelKey: 用于判断的数据列表中对应的标签名字段
|
118448
|
+
* initNumber: 初始判断值
|
118449
|
+
*/
|
118450
|
+
var generateIncreasingLabel = function generateIncreasingLabel(_ref) {
|
118451
|
+
var label = _ref.label,
|
118452
|
+
list = _ref.list,
|
118453
|
+
listLabelKey = _ref.listLabelKey,
|
118454
|
+
_ref$initNumber = _ref.initNumber,
|
118455
|
+
initNumber = _ref$initNumber === void 0 ? 1 : _ref$initNumber;
|
118456
|
+
var maxNumber = initNumber;
|
118457
|
+
if (lodash__WEBPACK_IMPORTED_MODULE_0___default().isArray(list)) {
|
118458
|
+
lodash__WEBPACK_IMPORTED_MODULE_0___default().forEach(list, function (listItem) {
|
118459
|
+
var listItemLabel = lodash__WEBPACK_IMPORTED_MODULE_0___default().get(listItem, listLabelKey);
|
118460
|
+
if (listItemLabel != null && listItemLabel.includes(label)) {
|
118461
|
+
// 新标签2
|
118462
|
+
var judgeList = lodash__WEBPACK_IMPORTED_MODULE_0___default().split(listItemLabel, label); // ['', '2']
|
118463
|
+
var judgeNumber = lodash__WEBPACK_IMPORTED_MODULE_0___default().trim(judgeList[1]); // 2
|
118464
|
+
|
118465
|
+
if (Number(judgeNumber)) {
|
118466
|
+
var parsedJudgeNumber = Number(judgeNumber);
|
118467
|
+
if (parsedJudgeNumber > maxNumber) {
|
118468
|
+
maxNumber = parsedJudgeNumber; // maxNumber = 2
|
118469
|
+
}
|
118470
|
+
}
|
118471
|
+
}
|
118472
|
+
});
|
118473
|
+
}
|
118474
|
+
|
118475
|
+
return "" + label + (maxNumber + 1);
|
118476
|
+
};
|
118477
|
+
|
118478
|
+
/**
|
118479
|
+
* 获取最近时间区段
|
118480
|
+
*/
|
118481
|
+
var getRecentRangeTime = function getRecentRangeTime(_ref2) {
|
118482
|
+
var type = _ref2.type,
|
118483
|
+
num = _ref2.num;
|
118484
|
+
var secondTime = 1000;
|
118485
|
+
var minutetime = 60 * secondTime;
|
118486
|
+
var hourTime = 60 * minutetime;
|
118487
|
+
var dayTime = 24 * hourTime;
|
118488
|
+
var currentDate = +new Date();
|
118489
|
+
if (type === 'day') {
|
118490
|
+
return [currentDate - num * dayTime, currentDate];
|
118491
|
+
} else if (type === 'hour') {
|
118492
|
+
return [currentDate - num * hourTime, currentDate];
|
118493
|
+
} else if (type === 'minute') {
|
118494
|
+
return [currentDate - num * minutetime, currentDate];
|
118495
|
+
} else if (type === 'second') {
|
118496
|
+
return [currentDate - num * secondTime, currentDate];
|
118497
|
+
} else {
|
118498
|
+
return [];
|
118499
|
+
}
|
118500
|
+
};
|
118501
|
+
|
118502
|
+
/**
|
118503
|
+
* 转换日期到时间戳
|
118504
|
+
*/
|
118505
|
+
var convertDateToTimestamp = function convertDateToTimestamp(value) {
|
118506
|
+
// 兼容本身就是时间戳的场景
|
118507
|
+
if (lodash__WEBPACK_IMPORTED_MODULE_0___default().isNumber(value)) {
|
118508
|
+
return value;
|
118509
|
+
} else {
|
118510
|
+
var _Date;
|
118511
|
+
return (_Date = new Date(value)) == null ? void 0 : _Date.valueOf == null ? void 0 : _Date.valueOf();
|
118512
|
+
}
|
118513
|
+
};
|
118514
|
+
|
118515
|
+
/**
|
118516
|
+
* Bytes 转换系列工具
|
118517
|
+
*/
|
118518
|
+
|
118519
|
+
var bytesSizes = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
|
118520
|
+
|
118521
|
+
// 将单位数据转换成 Bytes
|
118522
|
+
var sizeToBytes = function sizeToBytes(size) {
|
118523
|
+
var temp = lodash__WEBPACK_IMPORTED_MODULE_0___default().toUpper(size);
|
118524
|
+
if (lodash__WEBPACK_IMPORTED_MODULE_0___default().endsWith(size, 'KB')) {
|
118525
|
+
return parseFloat(lodash__WEBPACK_IMPORTED_MODULE_0___default().replace(temp, 'KB', '')) * 1024;
|
118526
|
+
} else if (lodash__WEBPACK_IMPORTED_MODULE_0___default().endsWith(size, 'MB')) {
|
118527
|
+
return parseFloat(lodash__WEBPACK_IMPORTED_MODULE_0___default().replace(temp, 'MB', '')) * 1024 * 1024;
|
118528
|
+
} else if (lodash__WEBPACK_IMPORTED_MODULE_0___default().endsWith(size, 'GB')) {
|
118529
|
+
return parseFloat(lodash__WEBPACK_IMPORTED_MODULE_0___default().replace(temp, 'GB', '')) * 1024 * 1024 * 1024;
|
118530
|
+
} else if (lodash__WEBPACK_IMPORTED_MODULE_0___default().endsWith(size, 'TB')) {
|
118531
|
+
return parseFloat(lodash__WEBPACK_IMPORTED_MODULE_0___default().replace(temp, 'TB', '')) * 1024 * 1024 * 1024 * 1024;
|
118532
|
+
} else if (lodash__WEBPACK_IMPORTED_MODULE_0___default().endsWith(size, 'PB')) {
|
118533
|
+
return parseFloat(lodash__WEBPACK_IMPORTED_MODULE_0___default().replace(temp, 'PB', '')) * 1024 * 1024 * 1024 * 1024 * 1024;
|
118534
|
+
} else if (lodash__WEBPACK_IMPORTED_MODULE_0___default().endsWith(size, 'EB')) {
|
118535
|
+
return parseFloat(lodash__WEBPACK_IMPORTED_MODULE_0___default().replace(temp, 'EB', '')) * 1024 * 1024 * 1024 * 1024 * 1024 * 1024;
|
118536
|
+
} else if (lodash__WEBPACK_IMPORTED_MODULE_0___default().endsWith(size, 'ZB')) {
|
118537
|
+
return parseFloat(lodash__WEBPACK_IMPORTED_MODULE_0___default().replace(temp, 'ZB', '')) * 1024 * 1024 * 1024 * 1024 * 1024 * 1024 * 1024;
|
118538
|
+
} else if (lodash__WEBPACK_IMPORTED_MODULE_0___default().endsWith(size, 'YB')) {
|
118539
|
+
return parseFloat(lodash__WEBPACK_IMPORTED_MODULE_0___default().replace(temp, 'YB', '')) * 1024 * 1024 * 1024 * 1024 * 1024 * 1024 * 1024 * 1024;
|
118540
|
+
} else if (lodash__WEBPACK_IMPORTED_MODULE_0___default().endsWith(size, 'B')) {
|
118541
|
+
return parseFloat(lodash__WEBPACK_IMPORTED_MODULE_0___default().replace(temp, 'B', ''));
|
118542
|
+
} else {
|
118543
|
+
return null;
|
118544
|
+
}
|
118545
|
+
};
|
118546
|
+
|
118547
|
+
// 将 Bytes 转换为具有可读性的单位,如:KB, MB, GB, TB, YB
|
118548
|
+
var readableBytes = function readableBytes(_ref3) {
|
118549
|
+
var fromNum = _ref3.fromNum,
|
118550
|
+
_ref3$fromUnit = _ref3.fromUnit,
|
118551
|
+
fromUnit = _ref3$fromUnit === void 0 ? 'B' : _ref3$fromUnit,
|
118552
|
+
_ref3$fractionDigits = _ref3.fractionDigits,
|
118553
|
+
fractionDigits = _ref3$fractionDigits === void 0 ? 2 : _ref3$fractionDigits;
|
118554
|
+
var bytes = null;
|
118555
|
+
var result = null;
|
118556
|
+
var isNaturalNumber = true; // 是否是自然数
|
118557
|
+
|
118558
|
+
if (lodash__WEBPACK_IMPORTED_MODULE_0___default().isNumber(fromNum) && bytesSizes.includes(fromUnit)) {
|
118559
|
+
if (fromNum < 0) {
|
118560
|
+
isNaturalNumber = false;
|
118561
|
+
}
|
118562
|
+
var inputSize = Math.abs(fromNum) + " " + fromUnit;
|
118563
|
+
bytes = sizeToBytes(inputSize);
|
118564
|
+
}
|
118565
|
+
if (bytes) {
|
118566
|
+
var i = Math.floor(Math.log(bytes) / Math.log(1024));
|
118567
|
+
var resultNum = Number((bytes / Math.pow(1024, i)).toFixed(fractionDigits));
|
118568
|
+
var resultUnit = bytesSizes[i];
|
118569
|
+
var resultString = "" + (isNaturalNumber ? '' : '-') + resultNum + " " + resultUnit;
|
118570
|
+
result = {
|
118571
|
+
result: resultString,
|
118572
|
+
unit: bytesSizes[i],
|
118573
|
+
number: resultNum,
|
118574
|
+
isNaturalNumber: isNaturalNumber
|
118575
|
+
};
|
118576
|
+
}
|
118577
|
+
return result;
|
118578
|
+
};
|
118579
|
+
|
118580
|
+
// 转换百分数字符串至小数
|
118581
|
+
var convertPercentToDecimal = function convertPercentToDecimal(percent) {
|
118582
|
+
if (lodash__WEBPACK_IMPORTED_MODULE_0___default().endsWith(percent, '%') && lodash__WEBPACK_IMPORTED_MODULE_0___default().isNumber(parseFloat(percent))) {
|
118583
|
+
return parseFloat(percent) / 100;
|
118584
|
+
} else {
|
118585
|
+
return NaN;
|
118586
|
+
}
|
118587
|
+
};
|
118588
|
+
|
118589
|
+
/**
|
118590
|
+
* 执行轮询
|
118591
|
+
*/
|
118592
|
+
var runInterval = function runInterval(_ref4) {
|
118593
|
+
var callback = _ref4.callback,
|
118594
|
+
_ref4$interval = _ref4.interval,
|
118595
|
+
interval = _ref4$interval === void 0 ? 1000 : _ref4$interval;
|
118596
|
+
var timer;
|
118597
|
+
var isStop = false;
|
118598
|
+
var stop = function stop() {
|
118599
|
+
isStop = true;
|
118600
|
+
clearTimeout(timer);
|
118601
|
+
};
|
118602
|
+
var start = /*#__PURE__*/function () {
|
118603
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
118604
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
118605
|
+
while (1) {
|
118606
|
+
switch (_context.prev = _context.next) {
|
118607
|
+
case 0:
|
118608
|
+
isStop = false;
|
118609
|
+
_context.next = 3;
|
118610
|
+
return loop();
|
118611
|
+
case 3:
|
118612
|
+
case "end":
|
118613
|
+
return _context.stop();
|
118614
|
+
}
|
118615
|
+
}
|
118616
|
+
}, _callee);
|
118617
|
+
}));
|
118618
|
+
return function start() {
|
118619
|
+
return _ref5.apply(this, arguments);
|
118620
|
+
};
|
118621
|
+
}();
|
118622
|
+
var loop = /*#__PURE__*/function () {
|
118623
|
+
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
118624
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
118625
|
+
while (1) {
|
118626
|
+
switch (_context2.prev = _context2.next) {
|
118627
|
+
case 0:
|
118628
|
+
_context2.prev = 0;
|
118629
|
+
_context2.next = 3;
|
118630
|
+
return callback(stop);
|
118631
|
+
case 3:
|
118632
|
+
_context2.next = 8;
|
118633
|
+
break;
|
118634
|
+
case 5:
|
118635
|
+
_context2.prev = 5;
|
118636
|
+
_context2.t0 = _context2["catch"](0);
|
118637
|
+
throw new Error('runInterval error: ', _context2.t0);
|
118638
|
+
case 8:
|
118639
|
+
if (!isStop) {
|
118640
|
+
_context2.next = 10;
|
118641
|
+
break;
|
118642
|
+
}
|
118643
|
+
return _context2.abrupt("return");
|
118644
|
+
case 10:
|
118645
|
+
timer = setTimeout(loop, interval);
|
118646
|
+
return _context2.abrupt("return", timer);
|
118647
|
+
case 12:
|
118648
|
+
case "end":
|
118649
|
+
return _context2.stop();
|
118650
|
+
}
|
118651
|
+
}
|
118652
|
+
}, _callee2, null, [[0, 5]]);
|
118653
|
+
}));
|
118654
|
+
return function loop() {
|
118655
|
+
return _ref6.apply(this, arguments);
|
118656
|
+
};
|
118657
|
+
}();
|
118658
|
+
return {
|
118659
|
+
start: start,
|
118660
|
+
stop: stop
|
118661
|
+
};
|
118662
|
+
};
|
118663
|
+
|
118664
|
+
// 让数字更有可读性
|
118665
|
+
var readableNumber = function readableNumber(_ref7) {
|
118666
|
+
var inputFromNum = _ref7.fromNum,
|
118667
|
+
_ref7$fractionDigits = _ref7.fractionDigits,
|
118668
|
+
fractionDigits = _ref7$fractionDigits === void 0 ? 2 : _ref7$fractionDigits;
|
118669
|
+
var fromNum = lodash__WEBPACK_IMPORTED_MODULE_0___default().toNumber(inputFromNum);
|
118670
|
+
var resultNum = NaN;
|
118671
|
+
var resultUnit = '';
|
118672
|
+
if (lodash__WEBPACK_IMPORTED_MODULE_0___default().isNumber(fromNum)) {
|
118673
|
+
if (fromNum >= 1e3 && fromNum < 1e4) {
|
118674
|
+
// 千
|
118675
|
+
resultNum = lodash__WEBPACK_IMPORTED_MODULE_0___default().divide(fromNum, 1e3);
|
118676
|
+
resultUnit = 'K';
|
118677
|
+
} else if (fromNum >= 1e4) {
|
118678
|
+
// 万
|
118679
|
+
resultNum = lodash__WEBPACK_IMPORTED_MODULE_0___default().divide(fromNum, 1e4);
|
118680
|
+
resultUnit = 'W';
|
118681
|
+
} else {
|
118682
|
+
//一千以下
|
118683
|
+
resultNum = fromNum;
|
118684
|
+
}
|
118685
|
+
}
|
118686
|
+
if (lodash__WEBPACK_IMPORTED_MODULE_0___default().isNumber(resultNum)) {
|
118687
|
+
var _resultNum;
|
118688
|
+
resultNum = lodash__WEBPACK_IMPORTED_MODULE_0___default().toNumber((_resultNum = resultNum) == null ? void 0 : _resultNum.toFixed(fractionDigits));
|
118689
|
+
}
|
118690
|
+
return {
|
118691
|
+
result: lodash__WEBPACK_IMPORTED_MODULE_0___default().trim("" + resultNum + resultUnit),
|
118692
|
+
unit: resultUnit,
|
118693
|
+
number: resultNum
|
118694
|
+
};
|
118695
|
+
};
|
118696
|
+
|
118697
|
+
/***/ }),
|
118698
|
+
|
117762
118699
|
/***/ 11751:
|
117763
118700
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
117764
118701
|
|
@@ -117835,6 +118772,8 @@ var REGION_ID_SHORT = 'rid';
|
|
117835
118772
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
117836
118773
|
/* harmony export */ "$3": () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_0__.$3),
|
117837
118774
|
/* harmony export */ "BV": () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_0__.BV),
|
118775
|
+
/* harmony export */ "Bx": () => (/* reexport safe */ _common__WEBPACK_IMPORTED_MODULE_5__.Bx),
|
118776
|
+
/* harmony export */ "D6": () => (/* reexport safe */ _common__WEBPACK_IMPORTED_MODULE_5__.D6),
|
117838
118777
|
/* harmony export */ "DO": () => (/* reexport safe */ _uniconsole_getGlobalConfig__WEBPACK_IMPORTED_MODULE_2__.DO),
|
117839
118778
|
/* harmony export */ "Dc": () => (/* reexport safe */ _material__WEBPACK_IMPORTED_MODULE_1__.Dc),
|
117840
118779
|
/* harmony export */ "E8": () => (/* reexport safe */ _ownership__WEBPACK_IMPORTED_MODULE_4__.E8),
|
@@ -117846,24 +118785,31 @@ var REGION_ID_SHORT = 'rid';
|
|
117846
118785
|
/* harmony export */ "Hw": () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_0__.Hw),
|
117847
118786
|
/* harmony export */ "Iz": () => (/* reexport safe */ _material__WEBPACK_IMPORTED_MODULE_1__.Iz),
|
117848
118787
|
/* harmony export */ "J1": () => (/* reexport safe */ _uniconsole_globalCookie__WEBPACK_IMPORTED_MODULE_3__.J1),
|
118788
|
+
/* harmony export */ "JF": () => (/* reexport safe */ _common__WEBPACK_IMPORTED_MODULE_5__.JF),
|
117849
118789
|
/* harmony export */ "K4": () => (/* reexport safe */ _material__WEBPACK_IMPORTED_MODULE_1__.K4),
|
117850
118790
|
/* harmony export */ "Kd": () => (/* reexport safe */ _uniconsole_globalCookie__WEBPACK_IMPORTED_MODULE_3__.Kd),
|
117851
118791
|
/* harmony export */ "LI": () => (/* reexport safe */ _material__WEBPACK_IMPORTED_MODULE_1__.LI),
|
117852
118792
|
/* harmony export */ "Lq": () => (/* reexport safe */ _material__WEBPACK_IMPORTED_MODULE_1__.Lq),
|
118793
|
+
/* harmony export */ "OW": () => (/* reexport safe */ _common__WEBPACK_IMPORTED_MODULE_5__.OW),
|
117853
118794
|
/* harmony export */ "Oz": () => (/* reexport safe */ _material__WEBPACK_IMPORTED_MODULE_1__.Oz),
|
118795
|
+
/* harmony export */ "QW": () => (/* reexport safe */ _common__WEBPACK_IMPORTED_MODULE_5__.QW),
|
117854
118796
|
/* harmony export */ "SU": () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_0__.SU),
|
117855
118797
|
/* harmony export */ "TK": () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_0__.TK),
|
117856
118798
|
/* harmony export */ "VQ": () => (/* reexport safe */ _uniconsole_globalCookie__WEBPACK_IMPORTED_MODULE_3__.VQ),
|
117857
118799
|
/* harmony export */ "Vy": () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_0__.Vy),
|
117858
118800
|
/* harmony export */ "Wg": () => (/* reexport safe */ _uniconsole_globalCookie__WEBPACK_IMPORTED_MODULE_3__.Wg),
|
118801
|
+
/* harmony export */ "Xz": () => (/* reexport safe */ _common__WEBPACK_IMPORTED_MODULE_5__.Xz),
|
117859
118802
|
/* harmony export */ "Ye": () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_0__.Ye),
|
117860
118803
|
/* harmony export */ "Yz": () => (/* reexport safe */ _uniconsole_getGlobalConfig__WEBPACK_IMPORTED_MODULE_2__.Yz),
|
117861
118804
|
/* harmony export */ "Z2": () => (/* reexport safe */ _uniconsole_globalCookie__WEBPACK_IMPORTED_MODULE_3__.Z2),
|
118805
|
+
/* harmony export */ "Zp": () => (/* reexport safe */ _common__WEBPACK_IMPORTED_MODULE_5__.Zp),
|
117862
118806
|
/* harmony export */ "Zu": () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_0__.Zu),
|
117863
118807
|
/* harmony export */ "_S": () => (/* reexport safe */ _uniconsole_getGlobalConfig__WEBPACK_IMPORTED_MODULE_2__._S),
|
117864
118808
|
/* harmony export */ "_t": () => (/* reexport safe */ _uniconsole_globalCookie__WEBPACK_IMPORTED_MODULE_3__._t),
|
117865
118809
|
/* harmony export */ "bn": () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_0__.bn),
|
118810
|
+
/* harmony export */ "cu": () => (/* reexport safe */ _common__WEBPACK_IMPORTED_MODULE_5__.cu),
|
117866
118811
|
/* harmony export */ "dJ": () => (/* reexport safe */ _material__WEBPACK_IMPORTED_MODULE_1__.vm),
|
118812
|
+
/* harmony export */ "eC": () => (/* reexport safe */ _common__WEBPACK_IMPORTED_MODULE_5__.eC),
|
117867
118813
|
/* harmony export */ "g1": () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_0__.g1),
|
117868
118814
|
/* harmony export */ "h2": () => (/* reexport safe */ _material__WEBPACK_IMPORTED_MODULE_1__.h2),
|
117869
118815
|
/* harmony export */ "hn": () => (/* reexport safe */ _material__WEBPACK_IMPORTED_MODULE_1__.hn),
|
@@ -117871,17 +118817,21 @@ var REGION_ID_SHORT = 'rid';
|
|
117871
118817
|
/* harmony export */ "jM": () => (/* reexport safe */ _material__WEBPACK_IMPORTED_MODULE_1__.jM),
|
117872
118818
|
/* harmony export */ "jQ": () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_0__.jQ),
|
117873
118819
|
/* harmony export */ "jq": () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_0__.jq),
|
118820
|
+
/* harmony export */ "kB": () => (/* reexport safe */ _common__WEBPACK_IMPORTED_MODULE_5__.kB),
|
118821
|
+
/* harmony export */ "kR": () => (/* reexport safe */ _common__WEBPACK_IMPORTED_MODULE_5__.kR),
|
117874
118822
|
/* harmony export */ "l9": () => (/* reexport safe */ _material__WEBPACK_IMPORTED_MODULE_1__.l9),
|
117875
118823
|
/* harmony export */ "lr": () => (/* reexport safe */ _uniconsole_getGlobalConfig__WEBPACK_IMPORTED_MODULE_2__.lr),
|
117876
118824
|
/* harmony export */ "mW": () => (/* reexport safe */ _uniconsole_globalCookie__WEBPACK_IMPORTED_MODULE_3__.mW),
|
117877
118825
|
/* harmony export */ "mg": () => (/* reexport safe */ _material__WEBPACK_IMPORTED_MODULE_1__.mg),
|
117878
118826
|
/* harmony export */ "o2": () => (/* reexport safe */ _material__WEBPACK_IMPORTED_MODULE_1__.o2),
|
117879
118827
|
/* harmony export */ "oI": () => (/* reexport safe */ _uniconsole_getGlobalConfig__WEBPACK_IMPORTED_MODULE_2__.oI),
|
118828
|
+
/* harmony export */ "oR": () => (/* reexport safe */ _common__WEBPACK_IMPORTED_MODULE_5__.oR),
|
117880
118829
|
/* harmony export */ "oc": () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_0__.oc),
|
117881
118830
|
/* harmony export */ "q0": () => (/* reexport safe */ _material__WEBPACK_IMPORTED_MODULE_1__.q0),
|
117882
118831
|
/* harmony export */ "qQ": () => (/* reexport safe */ _uniconsole_getGlobalConfig__WEBPACK_IMPORTED_MODULE_2__.qQ),
|
117883
118832
|
/* harmony export */ "qp": () => (/* reexport safe */ _ownership__WEBPACK_IMPORTED_MODULE_4__.qp),
|
117884
118833
|
/* harmony export */ "rt": () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_0__.rt),
|
118834
|
+
/* harmony export */ "u4": () => (/* reexport safe */ _common__WEBPACK_IMPORTED_MODULE_5__.u4),
|
117885
118835
|
/* harmony export */ "vm": () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_0__.vm),
|
117886
118836
|
/* harmony export */ "wd": () => (/* reexport safe */ _material__WEBPACK_IMPORTED_MODULE_1__.wd),
|
117887
118837
|
/* harmony export */ "wk": () => (/* reexport safe */ _material__WEBPACK_IMPORTED_MODULE_1__.wk),
|
@@ -117897,6 +118847,8 @@ var REGION_ID_SHORT = 'rid';
|
|
117897
118847
|
/* harmony import */ var _uniconsole_getGlobalConfig__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(56910);
|
117898
118848
|
/* harmony import */ var _uniconsole_globalCookie__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(18399);
|
117899
118849
|
/* harmony import */ var _ownership__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(20897);
|
118850
|
+
/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(55126);
|
118851
|
+
|
117900
118852
|
|
117901
118853
|
|
117902
118854
|
|
@@ -118644,72 +119596,72 @@ var chartDarkTheme = {
|
|
118644
119596
|
'corner-radius-base': '4px',
|
118645
119597
|
'corner-radius-r0': '0px',
|
118646
119598
|
'corner-radius-r1': '4px',
|
118647
|
-
'widgets-color-background': '#
|
118648
|
-
'widgets-color-layout-background': '#
|
118649
|
-
'widgets-color-container-background': '#
|
118650
|
-
'widgets-color-decoration-background': '#
|
118651
|
-
'widgets-color-blue': '#
|
118652
|
-
'widgets-color-normal': '#
|
118653
|
-
'widgets-color-orange': '#
|
118654
|
-
'widgets-color-red': '#
|
118655
|
-
'widgets-color-green': '#
|
118656
|
-
'widgets-color-gray': '#
|
118657
|
-
'widgets-color-purple': '#
|
118658
|
-
'widgets-color-yellow': '#
|
118659
|
-
'widgets-color-bg-normal': 'rgba(
|
118660
|
-
'widgets-color-bg-orange': 'rgba(
|
118661
|
-
'widgets-color-bg-red': 'rgba(
|
118662
|
-
'widgets-color-bg-green': 'rgba(
|
118663
|
-
'widgets-color-bg-purple': 'rgba(
|
118664
|
-
'widgets-color-bg-yellow': 'rgba(
|
118665
|
-
'widgets-color-category-1': '#
|
118666
|
-
'widgets-color-category-2': '#
|
118667
|
-
'widgets-color-category-3': '#
|
118668
|
-
'widgets-color-category-4': '#
|
118669
|
-
'widgets-color-category-5': '#
|
118670
|
-
'widgets-color-category-6': '#
|
118671
|
-
'widgets-color-category-7': '#
|
118672
|
-
'widgets-color-category-8': '#
|
118673
|
-
'widgets-color-category-9': '#
|
119599
|
+
'widgets-color-background': '#141414',
|
119600
|
+
'widgets-color-layout-background': '#0a0a0a',
|
119601
|
+
'widgets-color-container-background': '#1c1c1c',
|
119602
|
+
'widgets-color-decoration-background': '#1c1c1c',
|
119603
|
+
'widgets-color-blue': '#307ac9',
|
119604
|
+
'widgets-color-normal': '#2789f2',
|
119605
|
+
'widgets-color-orange': '#ff8d16',
|
119606
|
+
'widgets-color-red': '#f2493a',
|
119607
|
+
'widgets-color-green': '#12b862',
|
119608
|
+
'widgets-color-gray': '#666666',
|
119609
|
+
'widgets-color-purple': '#6154d6',
|
119610
|
+
'widgets-color-yellow': '#ffc619',
|
119611
|
+
'widgets-color-bg-normal': 'rgba(38, 60, 84, 0.5)',
|
119612
|
+
'widgets-color-bg-orange': 'rgba(84, 61, 36, 0.5)',
|
119613
|
+
'widgets-color-bg-red': 'rgba(82, 40, 37, 0.5)',
|
119614
|
+
'widgets-color-bg-green': 'rgba(28, 66, 46, 0.5)',
|
119615
|
+
'widgets-color-bg-purple': 'rgba(45, 40, 84, 0.5)',
|
119616
|
+
'widgets-color-bg-yellow': 'rgba(82, 68, 28, 0.5)',
|
119617
|
+
'widgets-color-category-1': '#307ac9',
|
119618
|
+
'widgets-color-category-2': '#1b9657',
|
119619
|
+
'widgets-color-category-3': '#5b50ba',
|
119620
|
+
'widgets-color-category-4': '#d47815',
|
119621
|
+
'widgets-color-category-5': '#b0a046',
|
119622
|
+
'widgets-color-category-6': '#781ad6',
|
119623
|
+
'widgets-color-category-7': '#527d0e',
|
119624
|
+
'widgets-color-category-8': '#0e9dad',
|
119625
|
+
'widgets-color-category-9': '#19779c',
|
118674
119626
|
'widgets-color-category-10': '#d95777',
|
118675
|
-
'widgets-color-category-11': '#
|
118676
|
-
'widgets-color-category-12': '#
|
118677
|
-
'widgets-color-category-13': '#
|
118678
|
-
'widgets-color-category-14': '#
|
118679
|
-
'widgets-color-category-15': '#
|
118680
|
-
'widgets-color-category-16': '#
|
118681
|
-
'widgets-color-category-17': '#
|
118682
|
-
'widgets-color-category-18': '#
|
118683
|
-
'widgets-color-category-19': '#
|
118684
|
-
'widgets-color-category-20': '#
|
118685
|
-
'widgets-color-linear-1': '#
|
118686
|
-
'widgets-color-linear-2': '#
|
118687
|
-
'widgets-color-linear-3': '#
|
118688
|
-
'widgets-color-linear-4': '#
|
118689
|
-
'widgets-color-linear-5': '#
|
118690
|
-
'widgets-color-linear-6': '#
|
118691
|
-
'widgets-color-linear-7': '#
|
118692
|
-
'widgets-color-linear-8': '#
|
118693
|
-
'widgets-color-linear-9': '#
|
118694
|
-
'widgets-color-linear-10': '#
|
118695
|
-
'widgets-color-p1': '#
|
118696
|
-
'widgets-color-p2': '#
|
118697
|
-
'widgets-color-p3': '#
|
119627
|
+
'widgets-color-category-11': '#ffdc73',
|
119628
|
+
'widgets-color-category-12': '#727a8a',
|
119629
|
+
'widgets-color-category-13': '#40571c',
|
119630
|
+
'widgets-color-category-14': '#398cd4',
|
119631
|
+
'widgets-color-category-15': '#e66000',
|
119632
|
+
'widgets-color-category-16': '#38a3c9',
|
119633
|
+
'widgets-color-category-17': '#e04f6c',
|
119634
|
+
'widgets-color-category-18': '#42b3a4',
|
119635
|
+
'widgets-color-category-19': '#7236ad',
|
119636
|
+
'widgets-color-category-20': '#9b94ff',
|
119637
|
+
'widgets-color-linear-1': '#307ac9',
|
119638
|
+
'widgets-color-linear-2': '#2d70b7',
|
119639
|
+
'widgets-color-linear-3': '#2a66a5',
|
119640
|
+
'widgets-color-linear-4': '#285b93',
|
119641
|
+
'widgets-color-linear-5': '#255181',
|
119642
|
+
'widgets-color-linear-6': '#22476f',
|
119643
|
+
'widgets-color-linear-7': '#1f3d5c',
|
119644
|
+
'widgets-color-linear-8': '#1c334a',
|
119645
|
+
'widgets-color-linear-9': '#1a2838',
|
119646
|
+
'widgets-color-linear-10': '#171e26',
|
119647
|
+
'widgets-color-p1': '#b81838',
|
119648
|
+
'widgets-color-p2': '#f2493a',
|
119649
|
+
'widgets-color-p3': '#ff8d16',
|
118698
119650
|
'widgets-color-p4': '#fac31e',
|
118699
119651
|
'widgets-color-p5': '#d1bb4f',
|
118700
119652
|
'widgets-color-p6': '#00bacf',
|
118701
119653
|
'widgets-color-p7': '#1289b8',
|
118702
|
-
'widgets-color-bg-p1': 'rgba(
|
118703
|
-
'widgets-color-bg-p2': 'rgba(
|
118704
|
-
'widgets-color-bg-p3': 'rgba(
|
118705
|
-
'widgets-color-bg-p4': 'rgba(
|
118706
|
-
'widgets-color-bg-p5': 'rgba(
|
118707
|
-
'widgets-color-bg-p6': 'rgba(
|
118708
|
-
'widgets-color-bg-p7': 'rgba(
|
118709
|
-
'widgets-color-text-1': '#
|
118710
|
-
'widgets-color-text-2': '#
|
118711
|
-
'widgets-color-text-3': '#
|
118712
|
-
'widgets-color-disable': '#
|
119654
|
+
'widgets-color-bg-p1': 'rgba(77, 34, 43, 0.5)',
|
119655
|
+
'widgets-color-bg-p2': 'rgba(82, 40, 37, 0.5)',
|
119656
|
+
'widgets-color-bg-p3': 'rgba(84, 61, 36, 0.5)',
|
119657
|
+
'widgets-color-bg-p4': 'rgba(82, 68, 28, 0.5)',
|
119658
|
+
'widgets-color-bg-p5': 'rgba(71, 65, 34, 0.5)',
|
119659
|
+
'widgets-color-bg-p6': 'rgba(31, 73, 79, 0.5)',
|
119660
|
+
'widgets-color-bg-p7': 'rgba(30, 60, 71, 0.5)',
|
119661
|
+
'widgets-color-text-1': '#cccccc',
|
119662
|
+
'widgets-color-text-2': '#8c8c8c',
|
119663
|
+
'widgets-color-text-3': '#666666',
|
119664
|
+
'widgets-color-disable': '#4d4d4d',
|
118713
119665
|
'widgets-font-family-txd-m-number': "'TXDDINMediumNumber', 'Helvetica Neue', 'Helvetica', 'PingFang SC', 'Microsoft YaHei', 'Arial', sans-serif",
|
118714
119666
|
'widgets-font-family-txd-r-number': "'TXDDINRegularNumber', 'Helvetica Neue', 'Helvetica', 'PingFang SC', 'Microsoft YaHei', 'Arial', sans-serif",
|
118715
119667
|
'widgets-font-size-1': '12px',
|
@@ -118719,55 +119671,55 @@ var chartDarkTheme = {
|
|
118719
119671
|
'widgets-font-size-5': '24px',
|
118720
119672
|
'widgets-font-size-6': '28px',
|
118721
119673
|
'widgets-font-size-7': '32px',
|
118722
|
-
'widgets-legend-uncheck': '#
|
118723
|
-
'widgets-legend-text': '#
|
118724
|
-
'widgets-label-text': '#
|
118725
|
-
'widgets-tooltip-background': '#
|
119674
|
+
'widgets-legend-uncheck': '#4d4d4d',
|
119675
|
+
'widgets-legend-text': '#cccccc',
|
119676
|
+
'widgets-label-text': '#cccccc',
|
119677
|
+
'widgets-tooltip-background': '#141414',
|
118726
119678
|
'widgets-tooltip-padding': '12px',
|
118727
|
-
'widgets-tooltip-shadow': '0
|
119679
|
+
'widgets-tooltip-shadow': '0 2px 8px 0 rgba(0, 0, 0, 0.2)',
|
118728
119680
|
'widgets-tooltip-corner-radius': '4px',
|
118729
|
-
'widgets-tooltip-cross-line': '#
|
118730
|
-
'widgets-tooltip-cross-react': '#
|
118731
|
-
'widgets-tooltip-cross-react-opacity': 0.
|
118732
|
-
'widgets-tooltip-title': '#
|
118733
|
-
'widgets-tooltip-text': '#
|
118734
|
-
'widgets-tooltip-marker-fill': '#
|
118735
|
-
'widgets-axis-label': '#
|
118736
|
-
'widgets-axis-line': '#
|
118737
|
-
'widgets-axis-grid': 'rgba(
|
119681
|
+
'widgets-tooltip-cross-line': '#4d4d4d',
|
119682
|
+
'widgets-tooltip-cross-react': '#4d4d4d',
|
119683
|
+
'widgets-tooltip-cross-react-opacity': 0.3,
|
119684
|
+
'widgets-tooltip-title': '#666666',
|
119685
|
+
'widgets-tooltip-text': '#cccccc',
|
119686
|
+
'widgets-tooltip-marker-fill': '#141414',
|
119687
|
+
'widgets-axis-label': '#8a8a8a',
|
119688
|
+
'widgets-axis-line': '#4d4d4d',
|
119689
|
+
'widgets-axis-grid': 'rgba(51, 51, 51, 0.5)',
|
118738
119690
|
'widgets-guide-region-opacity': 0.1,
|
118739
119691
|
'widgets-shape-area-opacity': 0.1,
|
118740
119692
|
'widgets-shape-interval-opacity': 1,
|
118741
|
-
'widgets-container-background': '#
|
119693
|
+
'widgets-container-background': '#141414',
|
118742
119694
|
'widgets-container-padding': '20px',
|
118743
119695
|
'widgets-container-mobile-padding': '12px',
|
118744
119696
|
'widgets-container-corner-radius': '4px',
|
118745
119697
|
'widgets-container-shadow': 'none',
|
118746
|
-
'widgets-container-title': '#
|
118747
|
-
'widgets-container-split-line': '#
|
118748
|
-
'widgets-map-area-bg': '#
|
118749
|
-
'widgets-map-area-border': '#
|
118750
|
-
'widgets-map-label': '#
|
118751
|
-
'widgets-circle-stroke-background': 'rgba(
|
119698
|
+
'widgets-container-title': '#cccccc',
|
119699
|
+
'widgets-container-split-line': '#1c1c1c',
|
119700
|
+
'widgets-map-area-bg': '#333333',
|
119701
|
+
'widgets-map-area-border': '#141414',
|
119702
|
+
'widgets-map-label': '#cccccc',
|
119703
|
+
'widgets-circle-stroke-background': 'rgba(51, 51, 51, 0.5)',
|
118752
119704
|
'widgets-circle-number': 'currentColor',
|
118753
119705
|
'widgets-circle-stroke-width': '6px',
|
118754
|
-
'widgets-circle-outer-background': 'l(90) 0
|
118755
|
-
'widgets-circle-inner-shadow': '0
|
118756
|
-
'widgets-sankey-edge': '#
|
118757
|
-
'widgets-sankey-node-text': '#
|
118758
|
-
'widgets-scrollbar-bg': '#
|
118759
|
-
'widgets-scrollbar-thumb': '#
|
119706
|
+
'widgets-circle-outer-background': 'l(90) 0:rgba(51, 51, 51, 0.2) 1:rgba(20, 20, 20, 0.2)',
|
119707
|
+
'widgets-circle-inner-shadow': '0 2px 11px 0 rgb(21, 21, 21)',
|
119708
|
+
'widgets-sankey-edge': '#333333',
|
119709
|
+
'widgets-sankey-node-text': '#8c8c8c',
|
119710
|
+
'widgets-scrollbar-bg': '#4d4d4d',
|
119711
|
+
'widgets-scrollbar-thumb': '#333333',
|
118760
119712
|
'widgets-line-width': 2,
|
118761
|
-
'widgets-numbercard-color-text': '#
|
118762
|
-
'widgets-numbercard-color-red-bg': '#
|
118763
|
-
'widgets-numbercard-color-blue-bg': '#
|
118764
|
-
'widgets-numbercard-color-hover': 'rgba(
|
118765
|
-
'widgets-numbercard-color-click': '#
|
118766
|
-
'widgets-capacity-color-grey': '#
|
118767
|
-
'widgets-capacity-background-default': '#
|
118768
|
-
'widgets-capacity-background-success': '#
|
118769
|
-
'widgets-capacity-background-warning': '#
|
118770
|
-
'widgets-capacity-background-error': '#
|
119713
|
+
'widgets-numbercard-color-text': '#e6e6e6',
|
119714
|
+
'widgets-numbercard-color-red-bg': '#522825',
|
119715
|
+
'widgets-numbercard-color-blue-bg': '#263c54',
|
119716
|
+
'widgets-numbercard-color-hover': 'rgba(51, 51, 51, 0.5)',
|
119717
|
+
'widgets-numbercard-color-click': '#333333',
|
119718
|
+
'widgets-capacity-color-grey': '#595f6b',
|
119719
|
+
'widgets-capacity-background-default': '#18232e',
|
119720
|
+
'widgets-capacity-background-success': '#0f1f16',
|
119721
|
+
'widgets-capacity-background-warning': '#241b12',
|
119722
|
+
'widgets-capacity-background-error': '#291614'
|
118771
119723
|
};
|
118772
119724
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chartDarkTheme);
|
118773
119725
|
|
@@ -119439,6 +120391,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
119439
120391
|
/* harmony export */ "cidrv4Pattern": () => (/* reexport safe */ _base__WEBPACK_IMPORTED_MODULE_0__.RV),
|
119440
120392
|
/* harmony export */ "cidrv6Pattern": () => (/* reexport safe */ _base__WEBPACK_IMPORTED_MODULE_0__.Yg),
|
119441
120393
|
/* harmony export */ "cls": () => (/* reexport safe */ _console__WEBPACK_IMPORTED_MODULE_2__.yI),
|
120394
|
+
/* harmony export */ "convertDateToTimestamp": () => (/* reexport safe */ _console__WEBPACK_IMPORTED_MODULE_2__.QW),
|
120395
|
+
/* harmony export */ "convertPercentToDecimal": () => (/* reexport safe */ _console__WEBPACK_IMPORTED_MODULE_2__.cu),
|
119442
120396
|
/* harmony export */ "customDateFormat": () => (/* reexport safe */ _base__WEBPACK_IMPORTED_MODULE_0__.Cb),
|
119443
120397
|
/* harmony export */ "darkBrandColor": () => (/* reexport safe */ _console__WEBPACK_IMPORTED_MODULE_2__.zG),
|
119444
120398
|
/* harmony export */ "dateFoldFormat": () => (/* reexport safe */ _base__WEBPACK_IMPORTED_MODULE_0__.Hf),
|
@@ -119447,6 +120401,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
119447
120401
|
/* harmony export */ "doCommonRequest": () => (/* reexport safe */ _biz__WEBPACK_IMPORTED_MODULE_1__.HE),
|
119448
120402
|
/* harmony export */ "filterLoopTreeData": () => (/* reexport safe */ _base__WEBPACK_IMPORTED_MODULE_0__.Sz),
|
119449
120403
|
/* harmony export */ "flattenTree": () => (/* reexport safe */ _base__WEBPACK_IMPORTED_MODULE_0__.fK),
|
120404
|
+
/* harmony export */ "generateIncreasingLabel": () => (/* reexport safe */ _console__WEBPACK_IMPORTED_MODULE_2__.OW),
|
119450
120405
|
/* harmony export */ "generateTree": () => (/* reexport safe */ _base__WEBPACK_IMPORTED_MODULE_0__.TQ),
|
119451
120406
|
/* harmony export */ "getAliyunConfig": () => (/* reexport safe */ _console__WEBPACK_IMPORTED_MODULE_2__.Yz),
|
119452
120407
|
/* harmony export */ "getBackgroundColorClassName": () => (/* reexport safe */ _console__WEBPACK_IMPORTED_MODULE_2__.jM),
|
@@ -119474,6 +120429,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
119474
120429
|
/* harmony export */ "getOwnerShip": () => (/* reexport safe */ _console__WEBPACK_IMPORTED_MODULE_2__.qp),
|
119475
120430
|
/* harmony export */ "getPageConfig": () => (/* reexport safe */ _console__WEBPACK_IMPORTED_MODULE_2__.qQ),
|
119476
120431
|
/* harmony export */ "getQuery": () => (/* reexport safe */ _base__WEBPACK_IMPORTED_MODULE_0__.pm),
|
120432
|
+
/* harmony export */ "getRecentRangeTime": () => (/* reexport safe */ _console__WEBPACK_IMPORTED_MODULE_2__.Xz),
|
119477
120433
|
/* harmony export */ "getRequestConfig": () => (/* reexport safe */ _base__WEBPACK_IMPORTED_MODULE_0__.cF),
|
119478
120434
|
/* harmony export */ "getSessionStorage": () => (/* reexport safe */ _base__WEBPACK_IMPORTED_MODULE_0__.G),
|
119479
120435
|
/* harmony export */ "getSourceLocale": () => (/* reexport safe */ _biz__WEBPACK_IMPORTED_MODULE_1__.xL),
|
@@ -119514,16 +120470,24 @@ __webpack_require__.r(__webpack_exports__);
|
|
119514
120470
|
/* harmony export */ "isValid": () => (/* reexport safe */ _base__WEBPACK_IMPORTED_MODULE_0__.JY),
|
119515
120471
|
/* harmony export */ "isWeakMap": () => (/* reexport safe */ _base__WEBPACK_IMPORTED_MODULE_0__.yn),
|
119516
120472
|
/* harmony export */ "isWeakSet": () => (/* reexport safe */ _base__WEBPACK_IMPORTED_MODULE_0__.uD),
|
120473
|
+
/* harmony export */ "judgeObjectKeyExist": () => (/* reexport safe */ _console__WEBPACK_IMPORTED_MODULE_2__.JF),
|
119517
120474
|
/* harmony export */ "lightBrandColor": () => (/* reexport safe */ _console__WEBPACK_IMPORTED_MODULE_2__.wd),
|
119518
120475
|
/* harmony export */ "mapKeyValue": () => (/* reexport safe */ _base__WEBPACK_IMPORTED_MODULE_0__.Nx),
|
119519
120476
|
/* harmony export */ "numberFormat": () => (/* reexport safe */ _base__WEBPACK_IMPORTED_MODULE_0__.Y4),
|
119520
120477
|
/* harmony export */ "pickProps": () => (/* reexport safe */ _base__WEBPACK_IMPORTED_MODULE_0__.H6),
|
120478
|
+
/* harmony export */ "prettyCompactJsonStringify": () => (/* reexport safe */ _console__WEBPACK_IMPORTED_MODULE_2__.oR),
|
119521
120479
|
/* harmony export */ "processGroupSelect2Origin": () => (/* reexport safe */ _console__WEBPACK_IMPORTED_MODULE_2__.xL),
|
120480
|
+
/* harmony export */ "readableBytes": () => (/* reexport safe */ _console__WEBPACK_IMPORTED_MODULE_2__.kR),
|
120481
|
+
/* harmony export */ "readableNumber": () => (/* reexport safe */ _console__WEBPACK_IMPORTED_MODULE_2__.kB),
|
119522
120482
|
/* harmony export */ "registerCustomContext": () => (/* reexport safe */ _base__WEBPACK_IMPORTED_MODULE_0__.Vn),
|
119523
120483
|
/* harmony export */ "replaceStrSpecial": () => (/* reexport safe */ _base__WEBPACK_IMPORTED_MODULE_0__.Tf),
|
119524
120484
|
/* harmony export */ "request": () => (/* reexport safe */ _base__WEBPACK_IMPORTED_MODULE_0__.WY),
|
119525
120485
|
/* harmony export */ "resolveMaybePromiseMethod": () => (/* reexport safe */ _biz__WEBPACK_IMPORTED_MODULE_1__.$t),
|
119526
120486
|
/* harmony export */ "ruleCreator": () => (/* reexport safe */ _base__WEBPACK_IMPORTED_MODULE_0__.r$),
|
120487
|
+
/* harmony export */ "runInterval": () => (/* reexport safe */ _console__WEBPACK_IMPORTED_MODULE_2__.Zp),
|
120488
|
+
/* harmony export */ "safeDecodeURIComponent": () => (/* reexport safe */ _console__WEBPACK_IMPORTED_MODULE_2__.eC),
|
120489
|
+
/* harmony export */ "safeJsonParse": () => (/* reexport safe */ _console__WEBPACK_IMPORTED_MODULE_2__.D6),
|
120490
|
+
/* harmony export */ "safeJsonStringify": () => (/* reexport safe */ _console__WEBPACK_IMPORTED_MODULE_2__.u4),
|
119527
120491
|
/* harmony export */ "setCookie": () => (/* reexport safe */ _base__WEBPACK_IMPORTED_MODULE_0__.S$),
|
119528
120492
|
/* harmony export */ "setCookieWidthDomain": () => (/* reexport safe */ _console__WEBPACK_IMPORTED_MODULE_2__.mW),
|
119529
120493
|
/* harmony export */ "setDateLanguageGetter": () => (/* reexport safe */ _base__WEBPACK_IMPORTED_MODULE_0__.pd),
|
@@ -119533,6 +120497,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
119533
120497
|
/* harmony export */ "setGlobalScriptUrl": () => (/* reexport safe */ _console__WEBPACK_IMPORTED_MODULE_2__.LI),
|
119534
120498
|
/* harmony export */ "setHistory": () => (/* reexport safe */ _base__WEBPACK_IMPORTED_MODULE_0__.JB),
|
119535
120499
|
/* harmony export */ "setLang": () => (/* reexport safe */ _console__WEBPACK_IMPORTED_MODULE_2__.Wg),
|
120500
|
+
/* harmony export */ "setLanguage": () => (/* reexport safe */ _biz__WEBPACK_IMPORTED_MODULE_1__.m0),
|
119536
120501
|
/* harmony export */ "setLocalStorage": () => (/* reexport safe */ _base__WEBPACK_IMPORTED_MODULE_0__.qQ),
|
119537
120502
|
/* harmony export */ "setLocale": () => (/* reexport safe */ _console__WEBPACK_IMPORTED_MODULE_2__.i_),
|
119538
120503
|
/* harmony export */ "setOwnership": () => (/* reexport safe */ _console__WEBPACK_IMPORTED_MODULE_2__.EN),
|
@@ -119541,6 +120506,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
119541
120506
|
/* harmony export */ "setSessionStorage": () => (/* reexport safe */ _base__WEBPACK_IMPORTED_MODULE_0__.t_),
|
119542
120507
|
/* harmony export */ "setTerritory": () => (/* reexport safe */ _console__WEBPACK_IMPORTED_MODULE_2__.J1),
|
119543
120508
|
/* harmony export */ "setTheme": () => (/* reexport safe */ _console__WEBPACK_IMPORTED_MODULE_2__.Dc),
|
120509
|
+
/* harmony export */ "sizeToBytes": () => (/* reexport safe */ _console__WEBPACK_IMPORTED_MODULE_2__.Bx),
|
119544
120510
|
/* harmony export */ "stringifyQuery": () => (/* reexport safe */ _base__WEBPACK_IMPORTED_MODULE_0__.Oh),
|
119545
120511
|
/* harmony export */ "transformLocal": () => (/* reexport safe */ _console__WEBPACK_IMPORTED_MODULE_2__._t),
|
119546
120512
|
/* harmony export */ "treeLoop": () => (/* reexport safe */ _base__WEBPACK_IMPORTED_MODULE_0__.oD),
|
@@ -120173,6 +121139,83 @@ function _unsupportedIterableToArray(o, minLen) {
|
|
120173
121139
|
|
120174
121140
|
/***/ }),
|
120175
121141
|
|
121142
|
+
/***/ 98610:
|
121143
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
121144
|
+
|
121145
|
+
"use strict";
|
121146
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
121147
|
+
/* harmony export */ "Z": () => (/* binding */ stringify)
|
121148
|
+
/* harmony export */ });
|
121149
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
121150
|
+
// Note: This regex matches even invalid JSON strings, but since we’re
|
121151
|
+
// working on the output of `JSON.stringify` we know that only valid strings
|
121152
|
+
// are present (unless the user supplied a weird `options.indent` but in
|
121153
|
+
// that case we don’t care since the output would be invalid anyway).
|
121154
|
+
var stringOrChar = /("(?:[^\\"]|\\.)*")|[:,]/g;
|
121155
|
+
function stringify(passedObj) {
|
121156
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
121157
|
+
var indent = JSON.stringify([1], undefined, options.indent === undefined ? 2 : options.indent).slice(2, -3);
|
121158
|
+
var maxLength = indent === "" ? Infinity : options.maxLength === undefined ? 80 : options.maxLength;
|
121159
|
+
var replacer = options.replacer;
|
121160
|
+
return function _stringify(obj, currentIndent, reserved) {
|
121161
|
+
if (obj && typeof obj.toJSON === "function") {
|
121162
|
+
obj = obj.toJSON();
|
121163
|
+
}
|
121164
|
+
var string = JSON.stringify(obj, replacer);
|
121165
|
+
if (string === undefined) {
|
121166
|
+
return string;
|
121167
|
+
}
|
121168
|
+
var length = maxLength - currentIndent.length - reserved;
|
121169
|
+
if (string.length <= length) {
|
121170
|
+
var prettified = string.replace(stringOrChar, function (match, stringLiteral) {
|
121171
|
+
return stringLiteral || "".concat(match, " ");
|
121172
|
+
});
|
121173
|
+
if (prettified.length <= length) {
|
121174
|
+
return prettified;
|
121175
|
+
}
|
121176
|
+
}
|
121177
|
+
if (replacer != null) {
|
121178
|
+
obj = JSON.parse(string);
|
121179
|
+
replacer = undefined;
|
121180
|
+
}
|
121181
|
+
if (_typeof(obj) === "object" && obj !== null) {
|
121182
|
+
var nextIndent = currentIndent + indent;
|
121183
|
+
var items = [];
|
121184
|
+
var index = 0;
|
121185
|
+
var start;
|
121186
|
+
var end;
|
121187
|
+
if (Array.isArray(obj)) {
|
121188
|
+
start = "[";
|
121189
|
+
end = "]";
|
121190
|
+
var _obj = obj,
|
121191
|
+
_length = _obj.length;
|
121192
|
+
for (; index < _length; index++) {
|
121193
|
+
items.push(_stringify(obj[index], nextIndent, index === _length - 1 ? 0 : 1) || "null");
|
121194
|
+
}
|
121195
|
+
} else {
|
121196
|
+
start = "{";
|
121197
|
+
end = "}";
|
121198
|
+
var keys = Object.keys(obj);
|
121199
|
+
var _length2 = keys.length;
|
121200
|
+
for (; index < _length2; index++) {
|
121201
|
+
var key = keys[index];
|
121202
|
+
var keyPart = "".concat(JSON.stringify(key), ": ");
|
121203
|
+
var value = _stringify(obj[key], nextIndent, keyPart.length + (index === _length2 - 1 ? 0 : 1));
|
121204
|
+
if (value !== undefined) {
|
121205
|
+
items.push(keyPart + value);
|
121206
|
+
}
|
121207
|
+
}
|
121208
|
+
}
|
121209
|
+
if (items.length > 0) {
|
121210
|
+
return [start, indent + items.join(",\n".concat(nextIndent)), end].join("\n".concat(currentIndent));
|
121211
|
+
}
|
121212
|
+
}
|
121213
|
+
return string;
|
121214
|
+
}(passedObj, "", 0);
|
121215
|
+
}
|
121216
|
+
|
121217
|
+
/***/ }),
|
121218
|
+
|
120176
121219
|
/***/ 38471:
|
120177
121220
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
120178
121221
|
|