@teamix/pro 1.1.34 → 1.1.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pro.css +1 -1
- package/dist/pro.js +1069 -334
- package/dist/pro.min.css +1 -1
- package/dist/pro.min.js +1 -1
- package/es/actions/dialog-form.d.ts +8 -1
- package/es/actions/dialog-form.js +32 -15
- package/es/actions/dialog-info.d.ts +9 -0
- package/es/actions/dialog-info.js +23 -0
- package/es/actions/dialog.d.ts +11 -0
- package/es/actions/dialog.js +105 -28
- package/es/actions/drawer-info.d.ts +6 -0
- package/es/actions/drawer-info.js +7 -0
- package/es/actions/index.d.ts +11 -5
- package/es/actions/index.js +28 -12
- package/es/actions/index.scss +39 -0
- package/es/actions/link.js +4 -12
- package/es/actions/request.d.ts +1 -1
- package/es/actions/request.js +2 -2
- package/es/form/Components/ProField/index.d.ts +1 -84
- package/es/form/SchemaForm/reactions.js +4 -2
- package/es/form/typing.d.ts +5 -5
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/info/components/{headerInfo → HeaderInfo}/index.d.ts +3 -1
- package/es/info/components/HeaderInfo/index.js +68 -0
- package/es/info/components/{headerInfo → HeaderInfo}/index.scss +0 -0
- package/es/info/components/InfoValueItem/index.js +111 -26
- package/es/info/components/{tableInfo → TableInfo}/index.d.ts +0 -0
- package/es/info/components/{tableInfo → TableInfo}/index.js +4 -21
- package/es/info/components/{tableInfo → TableInfo}/index.scss +0 -0
- package/es/info/components/baseInfo/index.d.ts +3 -1
- package/es/info/components/baseInfo/index.js +34 -42
- package/es/info/index.js +69 -26
- package/es/info/index.scss +0 -4
- package/es/info/typing.d.ts +17 -6
- package/es/page-header/index.d.ts +9 -5
- package/es/page-header/index.js +22 -7
- package/es/table/components/Filter/index.js +7 -2
- package/es/table/components/Filter/index.scss +1 -1
- package/es/table/typing.d.ts +2 -0
- package/lib/actions/dialog-form.d.ts +8 -1
- package/lib/actions/dialog-form.js +32 -15
- package/lib/actions/dialog-info.d.ts +9 -0
- package/lib/actions/dialog-info.js +37 -0
- package/lib/actions/dialog.d.ts +11 -0
- package/lib/actions/dialog.js +108 -27
- package/lib/actions/drawer-info.d.ts +6 -0
- package/lib/actions/drawer-info.js +18 -0
- package/lib/actions/index.d.ts +11 -5
- package/lib/actions/index.js +30 -12
- package/lib/actions/index.scss +39 -0
- package/lib/actions/link.js +5 -12
- package/lib/actions/request.d.ts +1 -1
- package/lib/actions/request.js +2 -2
- package/lib/form/Components/ProField/index.d.ts +1 -84
- package/lib/form/SchemaForm/reactions.js +4 -2
- package/lib/form/typing.d.ts +5 -5
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/info/components/{headerInfo → HeaderInfo}/index.d.ts +3 -1
- package/lib/info/components/HeaderInfo/index.js +87 -0
- package/lib/info/components/{headerInfo → HeaderInfo}/index.scss +0 -0
- package/lib/info/components/InfoValueItem/index.js +110 -25
- package/lib/info/components/{tableInfo → TableInfo}/index.d.ts +0 -0
- package/lib/info/components/{tableInfo → TableInfo}/index.js +4 -22
- package/lib/info/components/{tableInfo → TableInfo}/index.scss +0 -0
- package/lib/info/components/baseInfo/index.d.ts +3 -1
- package/lib/info/components/baseInfo/index.js +33 -49
- package/lib/info/index.js +70 -25
- package/lib/info/index.scss +0 -4
- package/lib/info/typing.d.ts +17 -6
- package/lib/page-header/index.d.ts +9 -5
- package/lib/page-header/index.js +22 -7
- package/lib/table/components/Filter/index.js +7 -2
- package/lib/table/components/Filter/index.scss +1 -1
- package/lib/table/typing.d.ts +2 -0
- package/package.json +1 -1
- package/es/info/components/headerInfo/index.js +0 -99
- package/lib/info/components/headerInfo/index.js +0 -126
package/dist/pro.js
CHANGED
@@ -48426,6 +48426,7 @@ var FieldCascader = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().fo
|
|
48426
48426
|
setFieldVal = _useState2[1];
|
48427
48427
|
|
48428
48428
|
(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
|
48429
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_3__/* .bindRefValue */ .Dd)(value, ref);
|
48429
48430
|
setFieldVal(value);
|
48430
48431
|
}, [value]);
|
48431
48432
|
|
@@ -48473,7 +48474,8 @@ var FieldCascader = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().fo
|
|
48473
48474
|
value: fieldVal,
|
48474
48475
|
onChange: function onChange(val, data, extra) {
|
48475
48476
|
setFieldVal(val);
|
48476
|
-
|
48477
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_3__/* .bindRefValue */ .Dd)(value, ref);
|
48478
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange((0,_utils__WEBPACK_IMPORTED_MODULE_3__/* .formatterOnchangeValue */ .WO)(val), (0,_utils__WEBPACK_IMPORTED_MODULE_3__/* .formatterOnchangeValue */ .WO)(data), extra);
|
48477
48479
|
},
|
48478
48480
|
showSearch: true,
|
48479
48481
|
hasClear: true,
|
@@ -48723,6 +48725,7 @@ var FieldCheckBox = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().fo
|
|
48723
48725
|
|
48724
48726
|
(0,use_deep_compare_effect__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .ZP)(function () {
|
48725
48727
|
setFieldVal(value);
|
48728
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_4__/* .bindRefValue */ .Dd)(value, ref);
|
48726
48729
|
}, [value === true ? [] : value || []]);
|
48727
48730
|
|
48728
48731
|
if (options.length === 0) {
|
@@ -48731,7 +48734,8 @@ var FieldCheckBox = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().fo
|
|
48731
48734
|
checked: fieldVal,
|
48732
48735
|
onChange: function onChange(val, e) {
|
48733
48736
|
setFieldVal(val);
|
48734
|
-
|
48737
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_4__/* .bindRefValue */ .Dd)(val, ref);
|
48738
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange((0,_utils__WEBPACK_IMPORTED_MODULE_4__/* .formatterOnchangeValue */ .WO)(val), e);
|
48735
48739
|
},
|
48736
48740
|
size: size,
|
48737
48741
|
disabled: disabled,
|
@@ -48744,7 +48748,7 @@ var FieldCheckBox = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().fo
|
|
48744
48748
|
value: fieldVal,
|
48745
48749
|
onChange: function onChange(val, e) {
|
48746
48750
|
setFieldVal(_toConsumableArray(val));
|
48747
|
-
_onChange === null || _onChange === void 0 ? void 0 : _onChange((0,_utils__WEBPACK_IMPORTED_MODULE_4__/* .
|
48751
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange((0,_utils__WEBPACK_IMPORTED_MODULE_4__/* .formatterOnchangeValue */ .WO)(val), e);
|
48748
48752
|
},
|
48749
48753
|
dataSource: options,
|
48750
48754
|
size: size,
|
@@ -48979,6 +48983,7 @@ var FieldColor = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwa
|
|
48979
48983
|
|
48980
48984
|
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
48981
48985
|
setFieldVal(value);
|
48986
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_4__/* .bindRefValue */ .Dd)(value, ref);
|
48982
48987
|
}, [value]);
|
48983
48988
|
|
48984
48989
|
if (type.toLowerCase() === 'colorradio') {
|
@@ -49003,7 +49008,8 @@ var FieldColor = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwa
|
|
49003
49008
|
onClick: function onClick() {
|
49004
49009
|
if (mode === 'edit' && !disabled) {
|
49005
49010
|
setFieldVal(value);
|
49006
|
-
|
49011
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_4__/* .bindRefValue */ .Dd)(value, ref);
|
49012
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange((0,_utils__WEBPACK_IMPORTED_MODULE_4__/* .formatterOnchangeValue */ .WO)(value));
|
49007
49013
|
}
|
49008
49014
|
}
|
49009
49015
|
}, fieldVal === value && !disabled && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_teamix_icon__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, {
|
@@ -49024,7 +49030,8 @@ var FieldColor = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwa
|
|
49024
49030
|
colors: swatchesMap,
|
49025
49031
|
onChange: function onChange(color) {
|
49026
49032
|
setFieldVal(color);
|
49027
|
-
|
49033
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_4__/* .bindRefValue */ .Dd)(color, ref);
|
49034
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange((0,_utils__WEBPACK_IMPORTED_MODULE_4__/* .formatterOnchangeValue */ .WO)(color));
|
49028
49035
|
}
|
49029
49036
|
}), type.toLowerCase() === 'colorswatches' && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_color__WEBPACK_IMPORTED_MODULE_6__/* .ColorSwatches */ .k, {
|
49030
49037
|
value: fieldVal,
|
@@ -49034,7 +49041,8 @@ var FieldColor = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwa
|
|
49034
49041
|
colors: swatchesMap,
|
49035
49042
|
onChange: function onChange(color) {
|
49036
49043
|
setFieldVal(color);
|
49037
|
-
|
49044
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_4__/* .bindRefValue */ .Dd)(color, ref);
|
49045
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange((0,_utils__WEBPACK_IMPORTED_MODULE_4__/* .formatterOnchangeValue */ .WO)(color));
|
49038
49046
|
}
|
49039
49047
|
}), type.toLowerCase() === 'colortwitter' && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_color__WEBPACK_IMPORTED_MODULE_6__/* .ColorSwatches */ .k, {
|
49040
49048
|
value: fieldVal,
|
@@ -49044,7 +49052,8 @@ var FieldColor = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwa
|
|
49044
49052
|
colors: swatchesMap,
|
49045
49053
|
onChange: function onChange(color) {
|
49046
49054
|
setFieldVal(color);
|
49047
|
-
|
49055
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_4__/* .bindRefValue */ .Dd)(color, ref);
|
49056
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange((0,_utils__WEBPACK_IMPORTED_MODULE_4__/* .formatterOnchangeValue */ .WO)(color));
|
49048
49057
|
}
|
49049
49058
|
}));
|
49050
49059
|
});
|
@@ -49291,6 +49300,7 @@ var FieldDate = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwar
|
|
49291
49300
|
|
49292
49301
|
(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
|
49293
49302
|
setFieldVal(value);
|
49303
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_9__/* .bindRefValue */ .Dd)(value, ref);
|
49294
49304
|
}, [value]); // 渲染格式化日期
|
49295
49305
|
|
49296
49306
|
var renderText = function renderText(date) {
|
@@ -49386,7 +49396,8 @@ var FieldDate = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwar
|
|
49386
49396
|
setFieldValStr(dateStr);
|
49387
49397
|
}
|
49388
49398
|
|
49389
|
-
|
49399
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_9__/* .bindRefValue */ .Dd)(dateStr, ref);
|
49400
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange((0,_utils__WEBPACK_IMPORTED_MODULE_9__/* .formatterOnchangeValue */ .WO)(dateStr), (0,_utils__WEBPACK_IMPORTED_MODULE_9__/* .formatterOnchangeValue */ .WO)(date));
|
49390
49401
|
},
|
49391
49402
|
size: size,
|
49392
49403
|
disabled: disabled
|
@@ -49419,7 +49430,8 @@ var FieldDate = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwar
|
|
49419
49430
|
resultStr = [fieldValStr === null || fieldValStr === void 0 ? void 0 : fieldValStr[0], dateStr];
|
49420
49431
|
}
|
49421
49432
|
|
49422
|
-
|
49433
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_9__/* .bindRefValue */ .Dd)(resultStr, ref);
|
49434
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange((0,_utils__WEBPACK_IMPORTED_MODULE_9__/* .formatterOnchangeValue */ .WO)(resultStr), (0,_utils__WEBPACK_IMPORTED_MODULE_9__/* .formatterOnchangeValue */ .WO)(result));
|
49423
49435
|
};
|
49424
49436
|
|
49425
49437
|
var renderDatePicker = function renderDatePicker(type) {
|
@@ -49854,6 +49866,7 @@ var FieldIcon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwar
|
|
49854
49866
|
var balloonRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
|
49855
49867
|
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
49856
49868
|
setFieldVal(value);
|
49869
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_6__/* .bindRefValue */ .Dd)(value, ref);
|
49857
49870
|
}, [value]);
|
49858
49871
|
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
49859
49872
|
var _balloon$offsetLeft, _window$innerWidth; // 计算 balloon弹出位置
|
@@ -49935,7 +49948,8 @@ var FieldIcon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwar
|
|
49935
49948
|
className: "teamix-pro-field-icon-btn-clear",
|
49936
49949
|
onClick: function onClick(e) {
|
49937
49950
|
setFieldVal('');
|
49938
|
-
|
49951
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_6__/* .bindRefValue */ .Dd)('', ref);
|
49952
|
+
onChange === null || onChange === void 0 ? void 0 : onChange((0,_utils__WEBPACK_IMPORTED_MODULE_6__/* .formatterOnchangeValue */ .WO)(''));
|
49939
49953
|
e.stopPropagation();
|
49940
49954
|
}
|
49941
49955
|
})), !fieldVal && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", null, "\u9009\u62E9\u56FE\u6807")));
|
@@ -50046,7 +50060,8 @@ var FieldIcon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwar
|
|
50046
50060
|
onClick: function onClick() {
|
50047
50061
|
setBalloonVisible(false);
|
50048
50062
|
setFieldVal(iconItem.type);
|
50049
|
-
|
50063
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_6__/* .bindRefValue */ .Dd)(iconItem.type, ref);
|
50064
|
+
onChange === null || onChange === void 0 ? void 0 : onChange((0,_utils__WEBPACK_IMPORTED_MODULE_6__/* .formatterOnchangeValue */ .WO)(iconItem.type));
|
50050
50065
|
}
|
50051
50066
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
50052
50067
|
className: "teamix-pro-field-icon-popup-body-right-item-item-icon"
|
@@ -50353,7 +50368,8 @@ var FieldJson = function FieldJson(props) {
|
|
50353
50368
|
var result = eval("(".concat(val, ")"));
|
50354
50369
|
|
50355
50370
|
if (!(0,_utils__WEBPACK_IMPORTED_MODULE_3__/* .deepEqual */ .vZ)(correctVal, result)) {
|
50356
|
-
|
50371
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_3__/* .bindRefValue */ .Dd)(result, undefined);
|
50372
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange((0,_utils__WEBPACK_IMPORTED_MODULE_3__/* .formatterOnchangeValue */ .WO)(result), e);
|
50357
50373
|
setCorrectVal(result);
|
50358
50374
|
}
|
50359
50375
|
|
@@ -50786,6 +50802,7 @@ var FieldMoney = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwa
|
|
50786
50802
|
|
50787
50803
|
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
50788
50804
|
setFieldVal(value);
|
50805
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_5__/* .bindRefValue */ .Dd)(value, ref);
|
50789
50806
|
}, [value]);
|
50790
50807
|
|
50791
50808
|
var numberFormatter = function numberFormatter() {
|
@@ -50826,7 +50843,8 @@ var FieldMoney = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwa
|
|
50826
50843
|
disabled: disabled,
|
50827
50844
|
onChange: function onChange(val) {
|
50828
50845
|
setFieldVal(val);
|
50829
|
-
|
50846
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_5__/* .bindRefValue */ .Dd)(val, ref);
|
50847
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange((0,_utils__WEBPACK_IMPORTED_MODULE_5__/* .formatterOnchangeValue */ .WO)(val), null);
|
50830
50848
|
}
|
50831
50849
|
}));
|
50832
50850
|
}
|
@@ -51031,6 +51049,7 @@ var FieldMultipleSelect = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___defaul
|
|
51031
51049
|
|
51032
51050
|
(0,use_deep_compare_effect__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)(function () {
|
51033
51051
|
setFieldVal(value);
|
51052
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_4__/* .bindRefValue */ .Dd)(value, ref);
|
51034
51053
|
}, [value !== null && value !== void 0 ? value : []]);
|
51035
51054
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_0__.Select, _objectSpread(_objectSpread(_objectSpread({
|
51036
51055
|
ref: ref,
|
@@ -51038,7 +51057,8 @@ var FieldMultipleSelect = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___defaul
|
|
51038
51057
|
value: fieldVal,
|
51039
51058
|
onChange: function onChange(val) {
|
51040
51059
|
setFieldVal(val);
|
51041
|
-
|
51060
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_4__/* .bindRefValue */ .Dd)(val, ref);
|
51061
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange((0,_utils__WEBPACK_IMPORTED_MODULE_4__/* .formatterOnchangeValue */ .WO)(val), null);
|
51042
51062
|
},
|
51043
51063
|
showSearch: true,
|
51044
51064
|
mode: "multiple",
|
@@ -51243,6 +51263,7 @@ var FieldNumber = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forw
|
|
51243
51263
|
|
51244
51264
|
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
51245
51265
|
setFieldVal(value);
|
51266
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_3__/* .bindRefValue */ .Dd)(value, ref);
|
51246
51267
|
}, [value]);
|
51247
51268
|
|
51248
51269
|
var numberFormatter = function numberFormatter() {
|
@@ -51261,7 +51282,8 @@ var FieldNumber = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forw
|
|
51261
51282
|
disabled: disabled,
|
51262
51283
|
onChange: function onChange(val, e) {
|
51263
51284
|
setFieldVal(val);
|
51264
|
-
|
51285
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_3__/* .bindRefValue */ .Dd)(val, ref);
|
51286
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange((0,_utils__WEBPACK_IMPORTED_MODULE_3__/* .formatterOnchangeValue */ .WO)(val), e);
|
51265
51287
|
},
|
51266
51288
|
precision: fractionDigits
|
51267
51289
|
}, others), inputProps), (0,_output__WEBPACK_IMPORTED_MODULE_2__/* .renderPreviewProps */ .F)(fieldVal, mode, render, [], numberFormatter)));
|
@@ -51465,6 +51487,7 @@ var FieldPassword = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().fo
|
|
51465
51487
|
|
51466
51488
|
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
51467
51489
|
setFieldVal(value);
|
51490
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_5__/* .bindRefValue */ .Dd)(value, ref);
|
51468
51491
|
}, [value]);
|
51469
51492
|
|
51470
51493
|
var renderPassword = function renderPassword(val) {
|
@@ -51479,7 +51502,8 @@ var FieldPassword = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().fo
|
|
51479
51502
|
value: fieldVal,
|
51480
51503
|
onChange: function onChange(val, e) {
|
51481
51504
|
setFieldVal(val);
|
51482
|
-
|
51505
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_5__/* .bindRefValue */ .Dd)(val, ref);
|
51506
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange((0,_utils__WEBPACK_IMPORTED_MODULE_5__/* .formatterOnchangeValue */ .WO)(val), e);
|
51483
51507
|
},
|
51484
51508
|
size: size,
|
51485
51509
|
disabled: disabled,
|
@@ -51730,6 +51754,7 @@ var FieldPercent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().for
|
|
51730
51754
|
|
51731
51755
|
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
51732
51756
|
setFieldVal(value);
|
51757
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_4__/* .bindRefValue */ .Dd)(value, ref);
|
51733
51758
|
}, [value]);
|
51734
51759
|
|
51735
51760
|
var numberFormatter = function numberFormatter() {
|
@@ -51770,7 +51795,8 @@ var FieldPercent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().for
|
|
51770
51795
|
disabled: disabled,
|
51771
51796
|
onChange: function onChange(val, e) {
|
51772
51797
|
setFieldVal(val);
|
51773
|
-
|
51798
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_4__/* .bindRefValue */ .Dd)(val, ref);
|
51799
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange((0,_utils__WEBPACK_IMPORTED_MODULE_4__/* .formatterOnchangeValue */ .WO)(val), e);
|
51774
51800
|
},
|
51775
51801
|
innerAfter: "%",
|
51776
51802
|
step: 0.1
|
@@ -51970,13 +51996,15 @@ var FieldRadio = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwa
|
|
51970
51996
|
|
51971
51997
|
(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
|
51972
51998
|
setFieldVal(value);
|
51999
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_3__/* .bindRefValue */ .Dd)(value, ref);
|
51973
52000
|
}, [value]);
|
51974
52001
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_0__.Radio.Group, _objectSpread(_objectSpread(_objectSpread({
|
51975
52002
|
ref: ref,
|
51976
52003
|
value: fieldVal,
|
51977
52004
|
onChange: function onChange(val, e) {
|
51978
52005
|
setFieldVal(val);
|
51979
|
-
|
52006
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_3__/* .bindRefValue */ .Dd)(val, ref);
|
52007
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange((0,_utils__WEBPACK_IMPORTED_MODULE_3__/* .formatterOnchangeValue */ .WO)(val), e);
|
51980
52008
|
},
|
51981
52009
|
dataSource: options,
|
51982
52010
|
size: size,
|
@@ -52178,6 +52206,7 @@ var FieldRange = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwa
|
|
52178
52206
|
|
52179
52207
|
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
52180
52208
|
setFieldVal(value);
|
52209
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_3__/* .bindRefValue */ .Dd)(value, ref);
|
52181
52210
|
}, [value]);
|
52182
52211
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_1__.Range, _objectSpread(_objectSpread(_objectSpread({
|
52183
52212
|
ref: ref,
|
@@ -52188,7 +52217,8 @@ var FieldRange = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwa
|
|
52188
52217
|
value: fieldVal,
|
52189
52218
|
onChange: function onChange(val, e) {
|
52190
52219
|
setFieldVal(val);
|
52191
|
-
|
52220
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_3__/* .bindRefValue */ .Dd)(val, ref);
|
52221
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange((0,_utils__WEBPACK_IMPORTED_MODULE_3__/* .formatterOnchangeValue */ .WO)(val), e);
|
52192
52222
|
},
|
52193
52223
|
size: size,
|
52194
52224
|
disabled: disabled,
|
@@ -52412,6 +52442,7 @@ var FieldSearch = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forw
|
|
52412
52442
|
|
52413
52443
|
(0,use_deep_compare_effect__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)(function () {
|
52414
52444
|
setFieldVal(value);
|
52445
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_5__/* .bindRefValue */ .Dd)(value, ref);
|
52415
52446
|
}, [value !== null && value !== void 0 ? value : []]); // 自定义渲染展示方式
|
52416
52447
|
|
52417
52448
|
var renderText = function renderText(value) {
|
@@ -52433,14 +52464,17 @@ var FieldSearch = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forw
|
|
52433
52464
|
filterValue: fieldVal === null || fieldVal === void 0 ? void 0 : fieldVal[0],
|
52434
52465
|
onFilterChange: function onFilterChange(filter) {
|
52435
52466
|
setFieldVal([filter, fieldVal === null || fieldVal === void 0 ? void 0 : fieldVal[1]]);
|
52436
|
-
|
52467
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_5__/* .bindRefValue */ .Dd)([filter, fieldVal === null || fieldVal === void 0 ? void 0 : fieldVal[1]], ref);
|
52468
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange((0,_utils__WEBPACK_IMPORTED_MODULE_5__/* .formatterOnchangeValue */ .WO)([filter, fieldVal === null || fieldVal === void 0 ? void 0 : fieldVal[1]]), 'onChange');
|
52437
52469
|
},
|
52438
52470
|
onChange: function onChange(filter) {
|
52439
52471
|
setFieldVal([fieldVal === null || fieldVal === void 0 ? void 0 : fieldVal[0], filter]);
|
52440
|
-
|
52472
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_5__/* .bindRefValue */ .Dd)([fieldVal === null || fieldVal === void 0 ? void 0 : fieldVal[0], filter], ref);
|
52473
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange((0,_utils__WEBPACK_IMPORTED_MODULE_5__/* .formatterOnchangeValue */ .WO)([fieldVal === null || fieldVal === void 0 ? void 0 : fieldVal[0], filter]), 'onChange');
|
52441
52474
|
},
|
52442
52475
|
onSearch: function onSearch() {
|
52443
|
-
|
52476
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_5__/* .bindRefValue */ .Dd)(fieldVal, ref);
|
52477
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange((0,_utils__WEBPACK_IMPORTED_MODULE_5__/* .formatterOnchangeValue */ .WO)(fieldVal), 'search');
|
52444
52478
|
_onSearch === null || _onSearch === void 0 ? void 0 : _onSearch.apply(void 0, _toConsumableArray(fieldVal));
|
52445
52479
|
},
|
52446
52480
|
filterProps: {
|
@@ -52652,6 +52686,7 @@ var FieldSelect = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forw
|
|
52652
52686
|
|
52653
52687
|
(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
|
52654
52688
|
setFieldVal(value);
|
52689
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_3__/* .bindRefValue */ .Dd)(value, ref);
|
52655
52690
|
}, [value]);
|
52656
52691
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_0__.Select, _objectSpread(_objectSpread(_objectSpread({
|
52657
52692
|
ref: ref,
|
@@ -52659,7 +52694,8 @@ var FieldSelect = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forw
|
|
52659
52694
|
value: fieldVal,
|
52660
52695
|
onChange: function onChange(val) {
|
52661
52696
|
setFieldVal(val);
|
52662
|
-
|
52697
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_3__/* .bindRefValue */ .Dd)(val, ref);
|
52698
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange((0,_utils__WEBPACK_IMPORTED_MODULE_3__/* .formatterOnchangeValue */ .WO)(val), null);
|
52663
52699
|
},
|
52664
52700
|
showSearch: true,
|
52665
52701
|
hasClear: true,
|
@@ -52863,6 +52899,7 @@ var FieldSwitch = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forw
|
|
52863
52899
|
|
52864
52900
|
(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
|
52865
52901
|
setFieldVal(value);
|
52902
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_3__/* .bindRefValue */ .Dd)(value, ref);
|
52866
52903
|
}, [value]);
|
52867
52904
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_0__.Switch, _objectSpread(_objectSpread(_objectSpread({
|
52868
52905
|
ref: ref,
|
@@ -52870,7 +52907,8 @@ var FieldSwitch = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forw
|
|
52870
52907
|
checked: fieldVal,
|
52871
52908
|
onChange: function onChange(val, e) {
|
52872
52909
|
setFieldVal(val);
|
52873
|
-
|
52910
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_3__/* .bindRefValue */ .Dd)(val, ref);
|
52911
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange((0,_utils__WEBPACK_IMPORTED_MODULE_3__/* .formatterOnchangeValue */ .WO)(val), e);
|
52874
52912
|
},
|
52875
52913
|
size: size,
|
52876
52914
|
disabled: disabled
|
@@ -53071,6 +53109,7 @@ var FieldTagFilter = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().f
|
|
53071
53109
|
|
53072
53110
|
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
53073
53111
|
setFieldVal(value);
|
53112
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_3__/* .bindRefValue */ .Dd)(value, ref);
|
53074
53113
|
}, [value]);
|
53075
53114
|
|
53076
53115
|
if (mode === 'edit') {
|
@@ -53083,7 +53122,8 @@ var FieldTagFilter = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().f
|
|
53083
53122
|
value: fieldVal,
|
53084
53123
|
onChange: function onChange(val) {
|
53085
53124
|
setFieldVal(val);
|
53086
|
-
|
53125
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_3__/* .bindRefValue */ .Dd)(val, ref);
|
53126
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange((0,_utils__WEBPACK_IMPORTED_MODULE_3__/* .formatterOnchangeValue */ .WO)(val));
|
53087
53127
|
},
|
53088
53128
|
selectMode: type === 'tagPicker' ? 'single' : 'multiple'
|
53089
53129
|
}, others));
|
@@ -53289,6 +53329,7 @@ var FieldText = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwar
|
|
53289
53329
|
|
53290
53330
|
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
53291
53331
|
setFieldVal(value);
|
53332
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_4__/* .bindRefValue */ .Dd)(value, ref);
|
53292
53333
|
}, [value]);
|
53293
53334
|
|
53294
53335
|
var getInnerIcon = function getInnerIcon() {
|
@@ -53319,7 +53360,8 @@ var FieldText = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwar
|
|
53319
53360
|
value: fieldVal,
|
53320
53361
|
onChange: function onChange(val, e) {
|
53321
53362
|
setFieldVal(val);
|
53322
|
-
|
53363
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_4__/* .bindRefValue */ .Dd)(val, ref);
|
53364
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange((0,_utils__WEBPACK_IMPORTED_MODULE_4__/* .formatterOnchangeValue */ .WO)(val), e);
|
53323
53365
|
},
|
53324
53366
|
hasClear: true,
|
53325
53367
|
size: size,
|
@@ -53521,6 +53563,7 @@ var FieldTextArea = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().fo
|
|
53521
53563
|
|
53522
53564
|
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
53523
53565
|
setFieldVal(value);
|
53566
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_3__/* .bindRefValue */ .Dd)(value, ref);
|
53524
53567
|
}, [value]);
|
53525
53568
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_1__.Input.TextArea, _objectSpread(_objectSpread(_objectSpread({
|
53526
53569
|
ref: ref,
|
@@ -53528,7 +53571,8 @@ var FieldTextArea = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().fo
|
|
53528
53571
|
value: fieldVal,
|
53529
53572
|
onChange: function onChange(val, e) {
|
53530
53573
|
setFieldVal(val);
|
53531
|
-
|
53574
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_3__/* .bindRefValue */ .Dd)(val, ref);
|
53575
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange((0,_utils__WEBPACK_IMPORTED_MODULE_3__/* .formatterOnchangeValue */ .WO)(val), e);
|
53532
53576
|
},
|
53533
53577
|
size: size,
|
53534
53578
|
disabled: disabled,
|
@@ -53731,6 +53775,7 @@ var FieldTransfer = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().fo
|
|
53731
53775
|
|
53732
53776
|
(0,use_deep_compare_effect__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)(function () {
|
53733
53777
|
setFieldVal(value);
|
53778
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_4__/* .bindRefValue */ .Dd)(value, ref);
|
53734
53779
|
}, [value !== null && value !== void 0 ? value : []]);
|
53735
53780
|
|
53736
53781
|
if (mode === 'edit') {
|
@@ -53741,7 +53786,8 @@ var FieldTransfer = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().fo
|
|
53741
53786
|
value: fieldVal,
|
53742
53787
|
onChange: function onChange(val, e) {
|
53743
53788
|
setFieldVal(val);
|
53744
|
-
|
53789
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_4__/* .bindRefValue */ .Dd)(val, ref);
|
53790
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange((0,_utils__WEBPACK_IMPORTED_MODULE_4__/* .formatterOnchangeValue */ .WO)(val), e);
|
53745
53791
|
},
|
53746
53792
|
size: size,
|
53747
53793
|
disabled: disabled,
|
@@ -54004,6 +54050,7 @@ var FieldTreeSelect = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().
|
|
54004
54050
|
|
54005
54051
|
(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
|
54006
54052
|
setFieldVal(value);
|
54053
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_3__/* .bindRefValue */ .Dd)(value, ref);
|
54007
54054
|
}, [value]);
|
54008
54055
|
|
54009
54056
|
var getCascaderLabel = function getCascaderLabel(value, options) {
|
@@ -54050,7 +54097,8 @@ var FieldTreeSelect = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().
|
|
54050
54097
|
value: fieldVal,
|
54051
54098
|
onChange: function onChange(val) {
|
54052
54099
|
setFieldVal(val);
|
54053
|
-
|
54100
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_3__/* .bindRefValue */ .Dd)(val, ref);
|
54101
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange((0,_utils__WEBPACK_IMPORTED_MODULE_3__/* .formatterOnchangeValue */ .WO)(val), null);
|
54054
54102
|
},
|
54055
54103
|
showSearch: true,
|
54056
54104
|
dataSource: options,
|
@@ -56623,7 +56671,7 @@ var SuffixIcon = function SuffixIcon(props) {
|
|
56623
56671
|
|
56624
56672
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, result, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", {
|
56625
56673
|
className: cls()
|
56626
|
-
}, render === null || render === void 0 ? void 0 : render.
|
56674
|
+
}, render === null || render === void 0 ? void 0 : render.suffixIcon));
|
56627
56675
|
};
|
56628
56676
|
|
56629
56677
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SuffixIcon);
|
@@ -57351,7 +57399,9 @@ var innerComponents = {
|
|
57351
57399
|
tagpicker: _components_FieldTagFilter__WEBPACK_IMPORTED_MODULE_25__/* ["default"] */ .Z,
|
57352
57400
|
multipletagpicker: _components_FieldTagFilter__WEBPACK_IMPORTED_MODULE_25__/* ["default"] */ .Z,
|
57353
57401
|
menuselect: _components_FieldMenuSelect__WEBPACK_IMPORTED_MODULE_26__/* ["default"] */ .Z
|
57354
|
-
};
|
57402
|
+
}; // export interface IProField extends React.FC<IProFieldProps> {
|
57403
|
+
// registerComponent: (components: IComponent) => void;
|
57404
|
+
// }
|
57355
57405
|
|
57356
57406
|
function isDataSourceRemote(dataSource) {
|
57357
57407
|
if (!dataSource) {
|
@@ -57365,7 +57415,7 @@ function isDataSourceRemote(dataSource) {
|
|
57365
57415
|
return false;
|
57366
57416
|
}
|
57367
57417
|
|
57368
|
-
var ProField = function
|
57418
|
+
var ProField = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
|
57369
57419
|
var _transparentBase$clas, _cls;
|
57370
57420
|
|
57371
57421
|
var type = props.type,
|
@@ -57411,14 +57461,16 @@ var ProField = function ProField(props) {
|
|
57411
57461
|
}, _defineProperty(_cls, "teamix-pro-field-".concat(type.toLowerCase()), true), _defineProperty(_cls, 'teamix-pro-field-compact', layout === 'compact'), _defineProperty(_cls, (_transparentBase$clas = transparentBase.className) !== null && _transparentBase$clas !== void 0 ? _transparentBase$clas : '', true), _cls))
|
57412
57462
|
}, (0,_utils__WEBPACK_IMPORTED_MODULE_24__/* .hasProps */ .s_)({
|
57413
57463
|
style: transparentBase === null || transparentBase === void 0 ? void 0 : transparentBase.style
|
57414
|
-
})), renderField(type, newProps));
|
57415
|
-
};
|
57464
|
+
})), renderField(type, newProps, ref));
|
57465
|
+
});
|
57416
57466
|
|
57417
|
-
var renderField = function renderField(type, props) {
|
57467
|
+
var renderField = function renderField(type, props, ref) {
|
57418
57468
|
var allComponents = _objectSpread(_objectSpread({}, innerComponents), externalComponents);
|
57419
57469
|
|
57420
57470
|
var Component = allComponents[type.toLowerCase()] || _components_FieldText__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z;
|
57421
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Component, _objectSpread({}, props)
|
57471
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Component, _objectSpread(_objectSpread({}, props), {}, {
|
57472
|
+
ref: ref
|
57473
|
+
}));
|
57422
57474
|
};
|
57423
57475
|
|
57424
57476
|
ProField.defaultProps = {
|
@@ -57846,7 +57898,8 @@ function getIconOptions(iconType, list, filterStr) {
|
|
57846
57898
|
/* harmony export */ "vZ": () => (/* binding */ deepEqual),
|
57847
57899
|
/* harmony export */ "Xh": () => (/* binding */ cloneDeep),
|
57848
57900
|
/* harmony export */ "B9": () => (/* binding */ echo),
|
57849
|
-
/* harmony export */ "
|
57901
|
+
/* harmony export */ "WO": () => (/* binding */ formatterOnchangeValue),
|
57902
|
+
/* harmony export */ "Dd": () => (/* binding */ bindRefValue),
|
57850
57903
|
/* harmony export */ "Ft": () => (/* binding */ isNull)
|
57851
57904
|
/* harmony export */ });
|
57852
57905
|
/* unused harmony export isValidElement */
|
@@ -58038,12 +58091,12 @@ function echo(filedVal, options) {
|
|
58038
58091
|
return arr;
|
58039
58092
|
}
|
58040
58093
|
/**
|
58041
|
-
* 处理
|
58094
|
+
* 处理 OnChange 数值
|
58042
58095
|
* @param params
|
58043
58096
|
* @returns
|
58044
58097
|
*/
|
58045
58098
|
|
58046
|
-
function
|
58099
|
+
function formatterOnchangeValue(params) {
|
58047
58100
|
if (Array.isArray(params)) {
|
58048
58101
|
var _isNull = params.filter(function (item) {
|
58049
58102
|
return item;
|
@@ -58058,6 +58111,17 @@ function beforeOnChange(params) {
|
|
58058
58111
|
|
58059
58112
|
return undefined;
|
58060
58113
|
}
|
58114
|
+
/**
|
58115
|
+
* 调用用户onChange方法前做的操作
|
58116
|
+
* @param value
|
58117
|
+
* @param ref
|
58118
|
+
*/
|
58119
|
+
|
58120
|
+
function bindRefValue(value, ref) {
|
58121
|
+
if (ref === null || ref === void 0 ? void 0 : ref.current) {
|
58122
|
+
ref.current.value = value;
|
58123
|
+
}
|
58124
|
+
}
|
58061
58125
|
/**
|
58062
58126
|
* 判断值是否为空数据
|
58063
58127
|
* @param val
|
@@ -58678,6 +58742,402 @@ var FackTableSkeleton = function FackTableSkeleton(_ref) {
|
|
58678
58742
|
|
58679
58743
|
/***/ }),
|
58680
58744
|
|
58745
|
+
/***/ 2733:
|
58746
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
58747
|
+
|
58748
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
58749
|
+
|
58750
|
+
/**
|
58751
|
+
* lodash (Custom Build) <https://lodash.com/>
|
58752
|
+
* Build: `lodash modularize exports="npm" -o ./`
|
58753
|
+
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
58754
|
+
* Released under MIT license <https://lodash.com/license>
|
58755
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
58756
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
58757
|
+
*/
|
58758
|
+
|
58759
|
+
/** Used as the `TypeError` message for "Functions" methods. */
|
58760
|
+
var FUNC_ERROR_TEXT = 'Expected a function';
|
58761
|
+
/** Used as references for various `Number` constants. */
|
58762
|
+
|
58763
|
+
var NAN = 0 / 0;
|
58764
|
+
/** `Object#toString` result references. */
|
58765
|
+
|
58766
|
+
var symbolTag = '[object Symbol]';
|
58767
|
+
/** Used to match leading and trailing whitespace. */
|
58768
|
+
|
58769
|
+
var reTrim = /^\s+|\s+$/g;
|
58770
|
+
/** Used to detect bad signed hexadecimal string values. */
|
58771
|
+
|
58772
|
+
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
58773
|
+
/** Used to detect binary string values. */
|
58774
|
+
|
58775
|
+
var reIsBinary = /^0b[01]+$/i;
|
58776
|
+
/** Used to detect octal string values. */
|
58777
|
+
|
58778
|
+
var reIsOctal = /^0o[0-7]+$/i;
|
58779
|
+
/** Built-in method references without a dependency on `root`. */
|
58780
|
+
|
58781
|
+
var freeParseInt = parseInt;
|
58782
|
+
/** Detect free variable `global` from Node.js. */
|
58783
|
+
|
58784
|
+
var freeGlobal = (typeof __webpack_require__.g === "undefined" ? "undefined" : _typeof(__webpack_require__.g)) == 'object' && __webpack_require__.g && __webpack_require__.g.Object === Object && __webpack_require__.g;
|
58785
|
+
/** Detect free variable `self`. */
|
58786
|
+
|
58787
|
+
var freeSelf = (typeof self === "undefined" ? "undefined" : _typeof(self)) == 'object' && self && self.Object === Object && self;
|
58788
|
+
/** Used as a reference to the global object. */
|
58789
|
+
|
58790
|
+
var root = freeGlobal || freeSelf || Function('return this')();
|
58791
|
+
/** Used for built-in method references. */
|
58792
|
+
|
58793
|
+
var objectProto = Object.prototype;
|
58794
|
+
/**
|
58795
|
+
* Used to resolve the
|
58796
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
58797
|
+
* of values.
|
58798
|
+
*/
|
58799
|
+
|
58800
|
+
var objectToString = objectProto.toString;
|
58801
|
+
/* Built-in method references for those with the same name as other `lodash` methods. */
|
58802
|
+
|
58803
|
+
var nativeMax = Math.max,
|
58804
|
+
nativeMin = Math.min;
|
58805
|
+
/**
|
58806
|
+
* Gets the timestamp of the number of milliseconds that have elapsed since
|
58807
|
+
* the Unix epoch (1 January 1970 00:00:00 UTC).
|
58808
|
+
*
|
58809
|
+
* @static
|
58810
|
+
* @memberOf _
|
58811
|
+
* @since 2.4.0
|
58812
|
+
* @category Date
|
58813
|
+
* @returns {number} Returns the timestamp.
|
58814
|
+
* @example
|
58815
|
+
*
|
58816
|
+
* _.defer(function(stamp) {
|
58817
|
+
* console.log(_.now() - stamp);
|
58818
|
+
* }, _.now());
|
58819
|
+
* // => Logs the number of milliseconds it took for the deferred invocation.
|
58820
|
+
*/
|
58821
|
+
|
58822
|
+
var now = function now() {
|
58823
|
+
return root.Date.now();
|
58824
|
+
};
|
58825
|
+
/**
|
58826
|
+
* Creates a debounced function that delays invoking `func` until after `wait`
|
58827
|
+
* milliseconds have elapsed since the last time the debounced function was
|
58828
|
+
* invoked. The debounced function comes with a `cancel` method to cancel
|
58829
|
+
* delayed `func` invocations and a `flush` method to immediately invoke them.
|
58830
|
+
* Provide `options` to indicate whether `func` should be invoked on the
|
58831
|
+
* leading and/or trailing edge of the `wait` timeout. The `func` is invoked
|
58832
|
+
* with the last arguments provided to the debounced function. Subsequent
|
58833
|
+
* calls to the debounced function return the result of the last `func`
|
58834
|
+
* invocation.
|
58835
|
+
*
|
58836
|
+
* **Note:** If `leading` and `trailing` options are `true`, `func` is
|
58837
|
+
* invoked on the trailing edge of the timeout only if the debounced function
|
58838
|
+
* is invoked more than once during the `wait` timeout.
|
58839
|
+
*
|
58840
|
+
* If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
|
58841
|
+
* until to the next tick, similar to `setTimeout` with a timeout of `0`.
|
58842
|
+
*
|
58843
|
+
* See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
|
58844
|
+
* for details over the differences between `_.debounce` and `_.throttle`.
|
58845
|
+
*
|
58846
|
+
* @static
|
58847
|
+
* @memberOf _
|
58848
|
+
* @since 0.1.0
|
58849
|
+
* @category Function
|
58850
|
+
* @param {Function} func The function to debounce.
|
58851
|
+
* @param {number} [wait=0] The number of milliseconds to delay.
|
58852
|
+
* @param {Object} [options={}] The options object.
|
58853
|
+
* @param {boolean} [options.leading=false]
|
58854
|
+
* Specify invoking on the leading edge of the timeout.
|
58855
|
+
* @param {number} [options.maxWait]
|
58856
|
+
* The maximum time `func` is allowed to be delayed before it's invoked.
|
58857
|
+
* @param {boolean} [options.trailing=true]
|
58858
|
+
* Specify invoking on the trailing edge of the timeout.
|
58859
|
+
* @returns {Function} Returns the new debounced function.
|
58860
|
+
* @example
|
58861
|
+
*
|
58862
|
+
* // Avoid costly calculations while the window size is in flux.
|
58863
|
+
* jQuery(window).on('resize', _.debounce(calculateLayout, 150));
|
58864
|
+
*
|
58865
|
+
* // Invoke `sendMail` when clicked, debouncing subsequent calls.
|
58866
|
+
* jQuery(element).on('click', _.debounce(sendMail, 300, {
|
58867
|
+
* 'leading': true,
|
58868
|
+
* 'trailing': false
|
58869
|
+
* }));
|
58870
|
+
*
|
58871
|
+
* // Ensure `batchLog` is invoked once after 1 second of debounced calls.
|
58872
|
+
* var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
|
58873
|
+
* var source = new EventSource('/stream');
|
58874
|
+
* jQuery(source).on('message', debounced);
|
58875
|
+
*
|
58876
|
+
* // Cancel the trailing debounced invocation.
|
58877
|
+
* jQuery(window).on('popstate', debounced.cancel);
|
58878
|
+
*/
|
58879
|
+
|
58880
|
+
|
58881
|
+
function debounce(func, wait, options) {
|
58882
|
+
var lastArgs,
|
58883
|
+
lastThis,
|
58884
|
+
maxWait,
|
58885
|
+
result,
|
58886
|
+
timerId,
|
58887
|
+
lastCallTime,
|
58888
|
+
lastInvokeTime = 0,
|
58889
|
+
leading = false,
|
58890
|
+
maxing = false,
|
58891
|
+
trailing = true;
|
58892
|
+
|
58893
|
+
if (typeof func != 'function') {
|
58894
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
58895
|
+
}
|
58896
|
+
|
58897
|
+
wait = toNumber(wait) || 0;
|
58898
|
+
|
58899
|
+
if (isObject(options)) {
|
58900
|
+
leading = !!options.leading;
|
58901
|
+
maxing = 'maxWait' in options;
|
58902
|
+
maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
|
58903
|
+
trailing = 'trailing' in options ? !!options.trailing : trailing;
|
58904
|
+
}
|
58905
|
+
|
58906
|
+
function invokeFunc(time) {
|
58907
|
+
var args = lastArgs,
|
58908
|
+
thisArg = lastThis;
|
58909
|
+
lastArgs = lastThis = undefined;
|
58910
|
+
lastInvokeTime = time;
|
58911
|
+
result = func.apply(thisArg, args);
|
58912
|
+
return result;
|
58913
|
+
}
|
58914
|
+
|
58915
|
+
function leadingEdge(time) {
|
58916
|
+
// Reset any `maxWait` timer.
|
58917
|
+
lastInvokeTime = time; // Start the timer for the trailing edge.
|
58918
|
+
|
58919
|
+
timerId = setTimeout(timerExpired, wait); // Invoke the leading edge.
|
58920
|
+
|
58921
|
+
return leading ? invokeFunc(time) : result;
|
58922
|
+
}
|
58923
|
+
|
58924
|
+
function remainingWait(time) {
|
58925
|
+
var timeSinceLastCall = time - lastCallTime,
|
58926
|
+
timeSinceLastInvoke = time - lastInvokeTime,
|
58927
|
+
result = wait - timeSinceLastCall;
|
58928
|
+
return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;
|
58929
|
+
}
|
58930
|
+
|
58931
|
+
function shouldInvoke(time) {
|
58932
|
+
var timeSinceLastCall = time - lastCallTime,
|
58933
|
+
timeSinceLastInvoke = time - lastInvokeTime; // Either this is the first call, activity has stopped and we're at the
|
58934
|
+
// trailing edge, the system time has gone backwards and we're treating
|
58935
|
+
// it as the trailing edge, or we've hit the `maxWait` limit.
|
58936
|
+
|
58937
|
+
return lastCallTime === undefined || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
|
58938
|
+
}
|
58939
|
+
|
58940
|
+
function timerExpired() {
|
58941
|
+
var time = now();
|
58942
|
+
|
58943
|
+
if (shouldInvoke(time)) {
|
58944
|
+
return trailingEdge(time);
|
58945
|
+
} // Restart the timer.
|
58946
|
+
|
58947
|
+
|
58948
|
+
timerId = setTimeout(timerExpired, remainingWait(time));
|
58949
|
+
}
|
58950
|
+
|
58951
|
+
function trailingEdge(time) {
|
58952
|
+
timerId = undefined; // Only invoke if we have `lastArgs` which means `func` has been
|
58953
|
+
// debounced at least once.
|
58954
|
+
|
58955
|
+
if (trailing && lastArgs) {
|
58956
|
+
return invokeFunc(time);
|
58957
|
+
}
|
58958
|
+
|
58959
|
+
lastArgs = lastThis = undefined;
|
58960
|
+
return result;
|
58961
|
+
}
|
58962
|
+
|
58963
|
+
function cancel() {
|
58964
|
+
if (timerId !== undefined) {
|
58965
|
+
clearTimeout(timerId);
|
58966
|
+
}
|
58967
|
+
|
58968
|
+
lastInvokeTime = 0;
|
58969
|
+
lastArgs = lastCallTime = lastThis = timerId = undefined;
|
58970
|
+
}
|
58971
|
+
|
58972
|
+
function flush() {
|
58973
|
+
return timerId === undefined ? result : trailingEdge(now());
|
58974
|
+
}
|
58975
|
+
|
58976
|
+
function debounced() {
|
58977
|
+
var time = now(),
|
58978
|
+
isInvoking = shouldInvoke(time);
|
58979
|
+
lastArgs = arguments;
|
58980
|
+
lastThis = this;
|
58981
|
+
lastCallTime = time;
|
58982
|
+
|
58983
|
+
if (isInvoking) {
|
58984
|
+
if (timerId === undefined) {
|
58985
|
+
return leadingEdge(lastCallTime);
|
58986
|
+
}
|
58987
|
+
|
58988
|
+
if (maxing) {
|
58989
|
+
// Handle invocations in a tight loop.
|
58990
|
+
timerId = setTimeout(timerExpired, wait);
|
58991
|
+
return invokeFunc(lastCallTime);
|
58992
|
+
}
|
58993
|
+
}
|
58994
|
+
|
58995
|
+
if (timerId === undefined) {
|
58996
|
+
timerId = setTimeout(timerExpired, wait);
|
58997
|
+
}
|
58998
|
+
|
58999
|
+
return result;
|
59000
|
+
}
|
59001
|
+
|
59002
|
+
debounced.cancel = cancel;
|
59003
|
+
debounced.flush = flush;
|
59004
|
+
return debounced;
|
59005
|
+
}
|
59006
|
+
/**
|
59007
|
+
* Checks if `value` is the
|
59008
|
+
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
59009
|
+
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
59010
|
+
*
|
59011
|
+
* @static
|
59012
|
+
* @memberOf _
|
59013
|
+
* @since 0.1.0
|
59014
|
+
* @category Lang
|
59015
|
+
* @param {*} value The value to check.
|
59016
|
+
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
59017
|
+
* @example
|
59018
|
+
*
|
59019
|
+
* _.isObject({});
|
59020
|
+
* // => true
|
59021
|
+
*
|
59022
|
+
* _.isObject([1, 2, 3]);
|
59023
|
+
* // => true
|
59024
|
+
*
|
59025
|
+
* _.isObject(_.noop);
|
59026
|
+
* // => true
|
59027
|
+
*
|
59028
|
+
* _.isObject(null);
|
59029
|
+
* // => false
|
59030
|
+
*/
|
59031
|
+
|
59032
|
+
|
59033
|
+
function isObject(value) {
|
59034
|
+
var type = _typeof(value);
|
59035
|
+
|
59036
|
+
return !!value && (type == 'object' || type == 'function');
|
59037
|
+
}
|
59038
|
+
/**
|
59039
|
+
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
59040
|
+
* and has a `typeof` result of "object".
|
59041
|
+
*
|
59042
|
+
* @static
|
59043
|
+
* @memberOf _
|
59044
|
+
* @since 4.0.0
|
59045
|
+
* @category Lang
|
59046
|
+
* @param {*} value The value to check.
|
59047
|
+
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
59048
|
+
* @example
|
59049
|
+
*
|
59050
|
+
* _.isObjectLike({});
|
59051
|
+
* // => true
|
59052
|
+
*
|
59053
|
+
* _.isObjectLike([1, 2, 3]);
|
59054
|
+
* // => true
|
59055
|
+
*
|
59056
|
+
* _.isObjectLike(_.noop);
|
59057
|
+
* // => false
|
59058
|
+
*
|
59059
|
+
* _.isObjectLike(null);
|
59060
|
+
* // => false
|
59061
|
+
*/
|
59062
|
+
|
59063
|
+
|
59064
|
+
function isObjectLike(value) {
|
59065
|
+
return !!value && _typeof(value) == 'object';
|
59066
|
+
}
|
59067
|
+
/**
|
59068
|
+
* Checks if `value` is classified as a `Symbol` primitive or object.
|
59069
|
+
*
|
59070
|
+
* @static
|
59071
|
+
* @memberOf _
|
59072
|
+
* @since 4.0.0
|
59073
|
+
* @category Lang
|
59074
|
+
* @param {*} value The value to check.
|
59075
|
+
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
59076
|
+
* @example
|
59077
|
+
*
|
59078
|
+
* _.isSymbol(Symbol.iterator);
|
59079
|
+
* // => true
|
59080
|
+
*
|
59081
|
+
* _.isSymbol('abc');
|
59082
|
+
* // => false
|
59083
|
+
*/
|
59084
|
+
|
59085
|
+
|
59086
|
+
function isSymbol(value) {
|
59087
|
+
return _typeof(value) == 'symbol' || isObjectLike(value) && objectToString.call(value) == symbolTag;
|
59088
|
+
}
|
59089
|
+
/**
|
59090
|
+
* Converts `value` to a number.
|
59091
|
+
*
|
59092
|
+
* @static
|
59093
|
+
* @memberOf _
|
59094
|
+
* @since 4.0.0
|
59095
|
+
* @category Lang
|
59096
|
+
* @param {*} value The value to process.
|
59097
|
+
* @returns {number} Returns the number.
|
59098
|
+
* @example
|
59099
|
+
*
|
59100
|
+
* _.toNumber(3.2);
|
59101
|
+
* // => 3.2
|
59102
|
+
*
|
59103
|
+
* _.toNumber(Number.MIN_VALUE);
|
59104
|
+
* // => 5e-324
|
59105
|
+
*
|
59106
|
+
* _.toNumber(Infinity);
|
59107
|
+
* // => Infinity
|
59108
|
+
*
|
59109
|
+
* _.toNumber('3.2');
|
59110
|
+
* // => 3.2
|
59111
|
+
*/
|
59112
|
+
|
59113
|
+
|
59114
|
+
function toNumber(value) {
|
59115
|
+
if (typeof value == 'number') {
|
59116
|
+
return value;
|
59117
|
+
}
|
59118
|
+
|
59119
|
+
if (isSymbol(value)) {
|
59120
|
+
return NAN;
|
59121
|
+
}
|
59122
|
+
|
59123
|
+
if (isObject(value)) {
|
59124
|
+
var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
|
59125
|
+
value = isObject(other) ? other + '' : other;
|
59126
|
+
}
|
59127
|
+
|
59128
|
+
if (typeof value != 'string') {
|
59129
|
+
return value === 0 ? value : +value;
|
59130
|
+
}
|
59131
|
+
|
59132
|
+
value = value.replace(reTrim, '');
|
59133
|
+
var isBinary = reIsBinary.test(value);
|
59134
|
+
return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
|
59135
|
+
}
|
59136
|
+
|
59137
|
+
module.exports = debounce;
|
59138
|
+
|
59139
|
+
/***/ }),
|
59140
|
+
|
58681
59141
|
/***/ 42341:
|
58682
59142
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
58683
59143
|
|
@@ -58851,11 +59311,18 @@ function useDangerConfirmAction(action, context) {
|
|
58851
59311
|
/* harmony import */ var _teamix_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(80653);
|
58852
59312
|
/* harmony import */ var _request__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(67096);
|
58853
59313
|
/* harmony import */ var _dialog__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(28653);
|
58854
|
-
var _excluded = ["schema",
|
59314
|
+
var _excluded = ["schema"],
|
59315
|
+
_excluded2 = ["schema", "useFieldValuesForRequest", "initialValues", "initialRequest", "formProps", "size", "onFinish", "onCancel"];
|
59316
|
+
|
59317
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
58855
59318
|
|
58856
59319
|
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; }
|
58857
59320
|
|
58858
|
-
function
|
59321
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
59322
|
+
|
59323
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
59324
|
+
|
59325
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
58859
59326
|
|
58860
59327
|
|
58861
59328
|
|
@@ -58897,15 +59364,31 @@ function getDefaultFormPropsByDialogSize(size) {
|
|
58897
59364
|
};
|
58898
59365
|
}
|
58899
59366
|
|
59367
|
+
function getSchemaAndFormProps(schema, formProps) {
|
59368
|
+
if (schema instanceof Array) {
|
59369
|
+
return _objectSpread({
|
59370
|
+
schema: schema
|
59371
|
+
}, formProps);
|
59372
|
+
}
|
59373
|
+
|
59374
|
+
var formSchema = schema;
|
59375
|
+
return formSchema;
|
59376
|
+
}
|
59377
|
+
|
58900
59378
|
var DialogForm = function DialogForm(props) {
|
58901
59379
|
var initialValues = props.initialValues,
|
58902
59380
|
initialRequest = props.initialRequest,
|
58903
|
-
schema = props.schema,
|
58904
59381
|
_props$size = props.size,
|
58905
59382
|
size = _props$size === void 0 ? 'small' : _props$size,
|
59383
|
+
schema = props.schema,
|
58906
59384
|
formProps = props.formProps,
|
58907
59385
|
context = props.context,
|
58908
59386
|
formRef = props.formRef;
|
59387
|
+
|
59388
|
+
var _getSchemaAndFormProp = getSchemaAndFormProps(schema, formProps),
|
59389
|
+
formSchema = _getSchemaAndFormProp.schema,
|
59390
|
+
others = _objectWithoutPropertiesLoose(_getSchemaAndFormProp, _excluded);
|
59391
|
+
|
58909
59392
|
var form = (0,_form__WEBPACK_IMPORTED_MODULE_3__/* .createForm */ .Np)({
|
58910
59393
|
initialValues: (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_4__.getTargetValue)(initialValues, context)
|
58911
59394
|
});
|
@@ -58935,8 +59418,8 @@ var DialogForm = function DialogForm(props) {
|
|
58935
59418
|
}
|
58936
59419
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_form__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP, _extends({
|
58937
59420
|
form: form,
|
58938
|
-
schema: (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_4__.getTargetValue)(
|
58939
|
-
}, getDefaultFormPropsByDialogSize(size), (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_4__.getTargetValue)(
|
59421
|
+
schema: (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_4__.getTargetValue)(formSchema, context)
|
59422
|
+
}, getDefaultFormPropsByDialogSize(size), (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_4__.getTargetValue)(others, context))));
|
58940
59423
|
};
|
58941
59424
|
|
58942
59425
|
function useDialogFormAction(action, context) {
|
@@ -58951,7 +59434,7 @@ function useDialogFormAction(action, context) {
|
|
58951
59434
|
size = _action$size === void 0 ? 'small' : _action$size,
|
58952
59435
|
_onFinish = action.onFinish,
|
58953
59436
|
_onCancel = action.onCancel,
|
58954
|
-
others = _objectWithoutPropertiesLoose(action,
|
59437
|
+
others = _objectWithoutPropertiesLoose(action, _excluded2);
|
58955
59438
|
|
58956
59439
|
var formRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
|
58957
59440
|
return (0,_dialog__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(Object.assign({
|
@@ -58996,6 +59479,39 @@ function useDialogFormAction(action, context) {
|
|
58996
59479
|
|
58997
59480
|
/***/ }),
|
58998
59481
|
|
59482
|
+
/***/ 71875:
|
59483
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
59484
|
+
|
59485
|
+
"use strict";
|
59486
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
59487
|
+
/* harmony export */ "x": () => (/* binding */ useDialogInfoAction)
|
59488
|
+
/* harmony export */ });
|
59489
|
+
/* harmony import */ var _dialog__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(28653);
|
59490
|
+
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(42345);
|
59491
|
+
var _excluded = ["schema"];
|
59492
|
+
|
59493
|
+
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; }
|
59494
|
+
|
59495
|
+
|
59496
|
+
|
59497
|
+
function useDialogInfoAction(action, context) {
|
59498
|
+
var schema = action.schema,
|
59499
|
+
others = _objectWithoutPropertiesLoose(action, _excluded);
|
59500
|
+
|
59501
|
+
return (0,_dialog__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(Object.assign({
|
59502
|
+
component: ___WEBPACK_IMPORTED_MODULE_1__.ProInfo,
|
59503
|
+
closeable: true,
|
59504
|
+
size: 'mini',
|
59505
|
+
schema: Object.assign({
|
59506
|
+
backgroundColor: 'grey',
|
59507
|
+
compacted: false
|
59508
|
+
}, schema)
|
59509
|
+
}, others), context);
|
59510
|
+
}
|
59511
|
+
/* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ((/* unused pure expression or super */ null && (useDialogInfoAction)));
|
59512
|
+
|
59513
|
+
/***/ }),
|
59514
|
+
|
58999
59515
|
/***/ 29908:
|
59000
59516
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
59001
59517
|
|
@@ -59028,15 +59544,19 @@ function useDialogTableAction(action, context) {
|
|
59028
59544
|
/* harmony export */ });
|
59029
59545
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(59787);
|
59030
59546
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
59031
|
-
/* harmony import */ var
|
59032
|
-
/* harmony import */ var
|
59033
|
-
/* harmony import */ var
|
59034
|
-
/* harmony import */ var
|
59035
|
-
/* harmony import */ var
|
59036
|
-
/* harmony import */ var
|
59037
|
-
/* harmony import */ var
|
59547
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(28266);
|
59548
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
|
59549
|
+
/* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(18944);
|
59550
|
+
/* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_router_dom__WEBPACK_IMPORTED_MODULE_2__);
|
59551
|
+
/* harmony import */ var _alicloudfe_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(33049);
|
59552
|
+
/* harmony import */ var _alicloudfe_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_3__);
|
59553
|
+
/* harmony import */ var _teamix_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(80653);
|
59554
|
+
/* harmony import */ var _form__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(89417);
|
59555
|
+
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(54842);
|
59556
|
+
/* harmony import */ var _request__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(67096);
|
59038
59557
|
var _excluded = ["url", "method", "params", "data", "extendParams", "successMsg", "errorMsg", "formatParams", "formatResult", "onSuccess", "onError"],
|
59039
|
-
_excluded2 = ["title", "content", "component", "schema", "onFinish", "dialogType", "dialogQuickShowType", "messageType", "beforeRequest", "onTrigger", "link"]
|
59558
|
+
_excluded2 = ["title", "content", "component", "schema", "onFinish", "dialogType", "dialogQuickShowType", "messageType", "beforeRequest", "onTrigger", "link", "beforeContent", "afterContent", "footerDescription", "footerAlign", "overlayProps"],
|
59559
|
+
_excluded3 = ["className"];
|
59040
59560
|
|
59041
59561
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
59042
59562
|
|
@@ -59044,14 +59564,16 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try
|
|
59044
59564
|
|
59045
59565
|
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); }); }; }
|
59046
59566
|
|
59047
|
-
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; }
|
59048
|
-
|
59049
59567
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
59050
59568
|
|
59051
59569
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
59052
59570
|
|
59053
59571
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
59054
59572
|
|
59573
|
+
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; }
|
59574
|
+
|
59575
|
+
|
59576
|
+
|
59055
59577
|
|
59056
59578
|
|
59057
59579
|
|
@@ -59065,6 +59587,27 @@ function addContextForReactNode(content, context) {
|
|
59065
59587
|
}
|
59066
59588
|
|
59067
59589
|
return content;
|
59590
|
+
}
|
59591
|
+
|
59592
|
+
var FooterForm = function FooterForm(props) {
|
59593
|
+
var schema = props.schema,
|
59594
|
+
context = props.context,
|
59595
|
+
formRef = props.formRef;
|
59596
|
+
var form = (0,_form__WEBPACK_IMPORTED_MODULE_5__/* .createForm */ .Np)();
|
59597
|
+
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
59598
|
+
formRef.current = form;
|
59599
|
+
}, []);
|
59600
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_form__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .ZP, {
|
59601
|
+
layout: "inline",
|
59602
|
+
feedbackLayout: "none",
|
59603
|
+
form: form,
|
59604
|
+
schema: (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_4__.getTargetValue)(schema, context)
|
59605
|
+
});
|
59606
|
+
};
|
59607
|
+
|
59608
|
+
function getFooterAlignClass(isDrawer, align) {
|
59609
|
+
var footerAlign = align ? align : isDrawer ? 'left' : 'right';
|
59610
|
+
return "footer-align-" + footerAlign;
|
59068
59611
|
} // 弹窗 -> 请求(点击确认,发送数据请求)
|
59069
59612
|
|
59070
59613
|
|
@@ -59073,8 +59616,10 @@ function useDialogAction(action, context) {
|
|
59073
59616
|
loading = _useState[0],
|
59074
59617
|
setLoading = _useState[1];
|
59075
59618
|
|
59076
|
-
var
|
59077
|
-
|
59619
|
+
var footerDescriptionRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
|
59620
|
+
var history = (0,react_router_dom__WEBPACK_IMPORTED_MODULE_2__.useHistory)();
|
59621
|
+
|
59622
|
+
var onActionStart = function onActionStart() {
|
59078
59623
|
var url = action.url,
|
59079
59624
|
method = action.method,
|
59080
59625
|
params = action.params,
|
@@ -59088,7 +59633,7 @@ function useDialogAction(action, context) {
|
|
59088
59633
|
onError = action.onError,
|
59089
59634
|
others = _objectWithoutPropertiesLoose(action, _excluded);
|
59090
59635
|
|
59091
|
-
var _getTargetValue = (0,
|
59636
|
+
var _getTargetValue = (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_4__.getTargetValue)(others, context),
|
59092
59637
|
title = _getTargetValue.title,
|
59093
59638
|
content = _getTargetValue.content,
|
59094
59639
|
Component = _getTargetValue.component,
|
@@ -59101,19 +59646,56 @@ function useDialogAction(action, context) {
|
|
59101
59646
|
beforeRequest = _getTargetValue.beforeRequest,
|
59102
59647
|
onTrigger = _getTargetValue.onTrigger,
|
59103
59648
|
link = _getTargetValue.link,
|
59104
|
-
|
59649
|
+
beforeContent = _getTargetValue.beforeContent,
|
59650
|
+
afterContent = _getTargetValue.afterContent,
|
59651
|
+
footerDescription = _getTargetValue.footerDescription,
|
59652
|
+
footerAlign = _getTargetValue.footerAlign,
|
59653
|
+
_getTargetValue$overl = _getTargetValue.overlayProps,
|
59654
|
+
overlayProps = _getTargetValue$overl === void 0 ? {} : _getTargetValue$overl,
|
59655
|
+
containerProps = _objectWithoutPropertiesLoose(_getTargetValue, _excluded2);
|
59656
|
+
|
59657
|
+
var isDrawer = dialogType === 'drawer';
|
59658
|
+
var container = isDrawer ? _alicloudfe_components__WEBPACK_IMPORTED_MODULE_3__.Drawer : _alicloudfe_components__WEBPACK_IMPORTED_MODULE_3__.Dialog;
|
59105
59659
|
|
59106
|
-
var
|
59107
|
-
|
59660
|
+
var overlayClassName = overlayProps.className,
|
59661
|
+
overlayOtherProps = _objectWithoutPropertiesLoose(overlayProps, _excluded3);
|
59662
|
+
|
59663
|
+
var dialogOnlyProps = {
|
59108
59664
|
type: dialogQuickShowType,
|
59109
59665
|
messageProps: {
|
59110
59666
|
type: messageType
|
59667
|
+
},
|
59668
|
+
overlayProps: _objectSpread({
|
59669
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_1___default()('teamix-pro-action-dialog', overlayClassName, {
|
59670
|
+
'has-footer-description': !!footerDescription
|
59671
|
+
})
|
59672
|
+
}, overlayOtherProps)
|
59673
|
+
};
|
59674
|
+
var containerOtherProps = isDrawer ? {} : dialogOnlyProps;
|
59675
|
+
|
59676
|
+
var renderDialogFooterDescription = function renderDialogFooterDescription(footer) {
|
59677
|
+
if (footer instanceof Array || footer.component) {
|
59678
|
+
var _schema = footer instanceof Array ? footer : [footer];
|
59679
|
+
|
59680
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(FooterForm, {
|
59681
|
+
formRef: footerDescriptionRef,
|
59682
|
+
context: context,
|
59683
|
+
schema: [{
|
59684
|
+
component: 'FormFlex',
|
59685
|
+
children: _schema
|
59686
|
+
}]
|
59687
|
+
});
|
59111
59688
|
}
|
59689
|
+
|
59690
|
+
return footer;
|
59112
59691
|
};
|
59113
59692
|
|
59114
59693
|
var onOk = function onOk() {
|
59115
59694
|
return new Promise( /*#__PURE__*/function () {
|
59116
59695
|
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(resolve) {
|
59696
|
+
var _footerDescriptionRef;
|
59697
|
+
|
59698
|
+
var footerDescriptionValues, requestContext;
|
59117
59699
|
return regeneratorRuntime.wrap(function _callee$(_context) {
|
59118
59700
|
while (1) {
|
59119
59701
|
switch (_context.prev = _context.next) {
|
@@ -59124,7 +59706,7 @@ function useDialogAction(action, context) {
|
|
59124
59706
|
}
|
59125
59707
|
|
59126
59708
|
if (link) {
|
59127
|
-
(0,
|
59709
|
+
(0,_teamix_utils__WEBPACK_IMPORTED_MODULE_4__.goToLink)(link, history);
|
59128
59710
|
}
|
59129
59711
|
|
59130
59712
|
onFinish && onFinish();
|
@@ -59133,29 +59715,33 @@ function useDialogAction(action, context) {
|
|
59133
59715
|
|
59134
59716
|
case 5:
|
59135
59717
|
setLoading(true);
|
59136
|
-
|
59137
|
-
_context.
|
59138
|
-
|
59139
|
-
|
59140
|
-
|
59718
|
+
footerDescriptionValues = Object.assign({}, footerDescriptionRef == null ? void 0 : (_footerDescriptionRef = footerDescriptionRef.current) == null ? void 0 : _footerDescriptionRef.values);
|
59719
|
+
_context.prev = 7;
|
59720
|
+
requestContext = Object.assign({
|
59721
|
+
footer: footerDescriptionValues
|
59722
|
+
}, context);
|
59723
|
+
_context.next = 11;
|
59724
|
+
return (0,_request__WEBPACK_IMPORTED_MODULE_6__/* .doRequest */ .NE)(action, requestContext, history, footerDescriptionValues);
|
59725
|
+
|
59726
|
+
case 11:
|
59141
59727
|
onFinish && onFinish();
|
59142
59728
|
resolve(true);
|
59143
|
-
_context.next =
|
59729
|
+
_context.next = 20;
|
59144
59730
|
break;
|
59145
59731
|
|
59146
|
-
case
|
59147
|
-
_context.prev =
|
59148
|
-
_context.t0 = _context["catch"](
|
59732
|
+
case 15:
|
59733
|
+
_context.prev = 15;
|
59734
|
+
_context.t0 = _context["catch"](7);
|
59149
59735
|
setLoading(false);
|
59150
59736
|
resolve(false);
|
59151
59737
|
return _context.abrupt("return");
|
59152
59738
|
|
59153
|
-
case
|
59739
|
+
case 20:
|
59154
59740
|
case "end":
|
59155
59741
|
return _context.stop();
|
59156
59742
|
}
|
59157
59743
|
}
|
59158
|
-
}, _callee, null, [[
|
59744
|
+
}, _callee, null, [[7, 15]]);
|
59159
59745
|
}));
|
59160
59746
|
|
59161
59747
|
return function (_x) {
|
@@ -59176,17 +59762,27 @@ function useDialogAction(action, context) {
|
|
59176
59762
|
var dialogContext = Object.assign({}, context, {
|
59177
59763
|
hide: hide
|
59178
59764
|
});
|
59179
|
-
var
|
59765
|
+
var dialogContent = Component ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Component, _extends({
|
59766
|
+
key: (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_4__.uuid)()
|
59767
|
+
}, componentProps)) : addContextForReactNode(content, dialogContext);
|
59768
|
+
var ret = container.show(_objectSpread(_objectSpread({
|
59180
59769
|
// @ts-ignore
|
59181
59770
|
onOk: onOk,
|
59182
59771
|
title: addContextForReactNode(title, dialogContext),
|
59183
|
-
content:
|
59184
|
-
|
59185
|
-
},
|
59186
|
-
|
59187
|
-
|
59772
|
+
content: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, beforeContent && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
59773
|
+
className: "teamix-pro-dialog-before-content"
|
59774
|
+
}, beforeContent), dialogContent, afterContent && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
59775
|
+
className: "teamix-pro-dialog-after-content"
|
59776
|
+
}, afterContent), footerDescription && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
59777
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_1___default()('teamix-pro-dialog-footer-description', getFooterAlignClass(isDrawer, footerAlign))
|
59778
|
+
}, renderDialogFooterDescription(footerDescription))),
|
59779
|
+
closeable: !loading,
|
59780
|
+
footerAlign: footerAlign
|
59781
|
+
}, containerOtherProps), containerProps));
|
59188
59782
|
store.hide = ret.hide;
|
59189
|
-
}
|
59783
|
+
};
|
59784
|
+
|
59785
|
+
return _objectSpread({}, (0,_base__WEBPACK_IMPORTED_MODULE_7__/* .eventHandler */ .$)(action, onActionStart));
|
59190
59786
|
}
|
59191
59787
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useDialogAction);
|
59192
59788
|
|
@@ -59210,6 +59806,24 @@ function useDrawerFormAction(action, context) {
|
|
59210
59806
|
|
59211
59807
|
/***/ }),
|
59212
59808
|
|
59809
|
+
/***/ 19980:
|
59810
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
59811
|
+
|
59812
|
+
"use strict";
|
59813
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
59814
|
+
/* harmony export */ "s": () => (/* binding */ useDrawerInfoAction)
|
59815
|
+
/* harmony export */ });
|
59816
|
+
/* harmony import */ var _dialog_info__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(71875);
|
59817
|
+
|
59818
|
+
function useDrawerInfoAction(action, context) {
|
59819
|
+
return (0,_dialog_info__WEBPACK_IMPORTED_MODULE_0__/* .useDialogInfoAction */ .x)(Object.assign({
|
59820
|
+
dialogType: 'drawer'
|
59821
|
+
}, action), context);
|
59822
|
+
}
|
59823
|
+
/* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ((/* unused pure expression or super */ null && (useDrawerInfoAction)));
|
59824
|
+
|
59825
|
+
/***/ }),
|
59826
|
+
|
59213
59827
|
/***/ 67984:
|
59214
59828
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
59215
59829
|
|
@@ -59298,9 +59912,11 @@ function useErrorAction(action, context) {
|
|
59298
59912
|
/* harmony import */ var _error__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(13654);
|
59299
59913
|
/* harmony import */ var _dialog_form__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(82982);
|
59300
59914
|
/* harmony import */ var _dialog_table__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(29908);
|
59301
|
-
/* harmony import */ var
|
59302
|
-
/* harmony import */ var
|
59303
|
-
/* harmony import */ var
|
59915
|
+
/* harmony import */ var _dialog_info__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(71875);
|
59916
|
+
/* harmony import */ var _drawer__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(93655);
|
59917
|
+
/* harmony import */ var _drawer_form__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(91720);
|
59918
|
+
/* harmony import */ var _drawer_table__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(67984);
|
59919
|
+
/* harmony import */ var _drawer_info__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(19980);
|
59304
59920
|
var _excluded = ["type"],
|
59305
59921
|
_excluded2 = ["config", "icon", "iconSize", "type", "context", "children", "visible", "onClick"],
|
59306
59922
|
_excluded3 = ["loading"],
|
@@ -59337,6 +59953,8 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
59337
59953
|
|
59338
59954
|
|
59339
59955
|
|
59956
|
+
|
59957
|
+
|
59340
59958
|
|
59341
59959
|
var RegistedActions = new Map();
|
59342
59960
|
function registerActionHandler(id, extendActionId, defaultConfig) {
|
@@ -59389,16 +60007,24 @@ var useAction = function useAction(config, context) {
|
|
59389
60007
|
return (0,_dialog_table__WEBPACK_IMPORTED_MODULE_13__/* .useDialogTableAction */ .F)(others, context);
|
59390
60008
|
}
|
59391
60009
|
|
60010
|
+
if (type === 'dialog-info') {
|
60011
|
+
return (0,_dialog_info__WEBPACK_IMPORTED_MODULE_14__/* .useDialogInfoAction */ .x)(others, context);
|
60012
|
+
}
|
60013
|
+
|
59392
60014
|
if (type === 'drawer') {
|
59393
|
-
return (0,
|
60015
|
+
return (0,_drawer__WEBPACK_IMPORTED_MODULE_15__/* .useDrawerAction */ .T)(others, context);
|
59394
60016
|
}
|
59395
60017
|
|
59396
60018
|
if (type === 'drawer-form') {
|
59397
|
-
return (0,
|
60019
|
+
return (0,_drawer_form__WEBPACK_IMPORTED_MODULE_16__/* .useDrawerFormAction */ .R)(others, context);
|
59398
60020
|
}
|
59399
60021
|
|
59400
60022
|
if (type === 'drawer-table') {
|
59401
|
-
return (0,
|
60023
|
+
return (0,_drawer_table__WEBPACK_IMPORTED_MODULE_17__/* .useDrawerTableAction */ .d)(others, context);
|
60024
|
+
}
|
60025
|
+
|
60026
|
+
if (type === 'drawer-info') {
|
60027
|
+
return (0,_drawer_info__WEBPACK_IMPORTED_MODULE_18__/* .useDrawerInfoAction */ .s)(others, context);
|
59402
60028
|
}
|
59403
60029
|
|
59404
60030
|
var registedAction = RegistedActions.get(type);
|
@@ -59451,33 +60077,39 @@ var ActionButton = function ActionButton(props) {
|
|
59451
60077
|
};
|
59452
60078
|
|
59453
60079
|
function renderMenuButtonItem(item, key, context) {
|
59454
|
-
var
|
60080
|
+
var config = item.config,
|
60081
|
+
btnContext = item.context,
|
60082
|
+
_onClick2 = item.onClick,
|
60083
|
+
children = item.children,
|
60084
|
+
icon = item.icon,
|
60085
|
+
disabled = item.disabled;
|
60086
|
+
var menuItemActionConfig = Object.assign({}, config, {
|
59455
60087
|
trigger: 'onClick'
|
59456
60088
|
});
|
59457
60089
|
|
59458
|
-
var _useAction = useAction(menuItemActionConfig,
|
60090
|
+
var _useAction = useAction(menuItemActionConfig, btnContext || context),
|
59459
60091
|
loading = _useAction.loading,
|
59460
60092
|
menuItemProps = _objectWithoutPropertiesLoose(_useAction, _excluded3);
|
59461
60093
|
|
59462
|
-
var buttonProps =
|
60094
|
+
var buttonProps = _onClick2 ? _objectSpread(_objectSpread({}, menuItemProps), {}, {
|
59463
60095
|
onClick: function onClick(e) {
|
59464
|
-
return
|
60096
|
+
return _onClick2(e, context);
|
59465
60097
|
}
|
59466
60098
|
}) : _objectSpread({}, menuItemProps);
|
59467
60099
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_2__.MenuButton.Item, _extends({
|
59468
|
-
key: key
|
59469
|
-
|
60100
|
+
key: key,
|
60101
|
+
disabled: disabled
|
60102
|
+
}, buttonProps), buttonContent(children, icon, undefined, context));
|
59470
60103
|
}
|
59471
60104
|
|
59472
60105
|
function renderCommonActionButtonMenuItem(action, key, context) {
|
59473
|
-
|
59474
|
-
|
60106
|
+
var menuBtn = action;
|
60107
|
+
|
60108
|
+
if (menuBtn.actions && menuBtn.actions.length && menuBtn.disabled !== true) {
|
59475
60109
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_2__.Menu.SubMenu, {
|
59476
60110
|
key: key,
|
59477
|
-
label:
|
59478
|
-
|
59479
|
-
}, //@ts-ignore
|
59480
|
-
action.actions.map(function (a, j) {
|
60111
|
+
label: menuBtn.label || menuBtn.children
|
60112
|
+
}, menuBtn.actions.map(function (a, j) {
|
59481
60113
|
return renderCommonActionButtonMenuItem(a, j, context);
|
59482
60114
|
}));
|
59483
60115
|
}
|
@@ -59646,7 +60278,9 @@ var ProAction = function ProAction(props) {
|
|
59646
60278
|
/* harmony export */ "R": () => (/* binding */ useLinkAction)
|
59647
60279
|
/* harmony export */ });
|
59648
60280
|
/* harmony import */ var _teamix_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80653);
|
59649
|
-
/* harmony import */ var
|
60281
|
+
/* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(18944);
|
60282
|
+
/* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_router_dom__WEBPACK_IMPORTED_MODULE_1__);
|
60283
|
+
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(54842);
|
59650
60284
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
59651
60285
|
|
59652
60286
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
@@ -59655,20 +60289,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
59655
60289
|
|
59656
60290
|
|
59657
60291
|
|
60292
|
+
|
59658
60293
|
function useLinkAction(action, context) {
|
59659
|
-
var
|
59660
|
-
|
59661
|
-
|
59662
|
-
|
59663
|
-
blank = _getTargetValue.blank;
|
59664
|
-
|
59665
|
-
return _objectSpread({}, (0,_base__WEBPACK_IMPORTED_MODULE_1__/* .eventHandler */ .$)(action, function () {
|
59666
|
-
(0,_teamix_utils__WEBPACK_IMPORTED_MODULE_0__.goToLink)({
|
59667
|
-
to: to,
|
59668
|
-
search: search,
|
59669
|
-
hash: hash,
|
59670
|
-
blank: blank
|
59671
|
-
});
|
60294
|
+
var history = (0,react_router_dom__WEBPACK_IMPORTED_MODULE_1__.useHistory)();
|
60295
|
+
return _objectSpread({}, (0,_base__WEBPACK_IMPORTED_MODULE_2__/* .eventHandler */ .$)(action, function () {
|
60296
|
+
var linkAction = (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_0__.getTargetValue)(action, context);
|
60297
|
+
(0,_teamix_utils__WEBPACK_IMPORTED_MODULE_0__.goToLink)(linkAction, history);
|
59672
60298
|
}));
|
59673
60299
|
}
|
59674
60300
|
/* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ((/* unused pure expression or super */ null && (useLinkAction)));
|
@@ -59728,14 +60354,14 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
59728
60354
|
|
59729
60355
|
|
59730
60356
|
// action 里的数据请求都默认是 post 类型
|
59731
|
-
function doRequest(action, context, history) {
|
60357
|
+
function doRequest(action, context, history, extraParams) {
|
59732
60358
|
var _action$method = action.method,
|
59733
60359
|
method = _action$method === void 0 ? 'post' : _action$method,
|
59734
60360
|
others = _objectWithoutPropertiesLoose(action, _excluded);
|
59735
60361
|
|
59736
60362
|
return (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_2__.doCommonRequest)(_objectSpread({
|
59737
60363
|
method: method
|
59738
|
-
}, others), context, history);
|
60364
|
+
}, others), context, history, extraParams);
|
59739
60365
|
}
|
59740
60366
|
function useRequestAction(action, context) {
|
59741
60367
|
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),
|
@@ -62498,6 +63124,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
62498
63124
|
// 配置请求
|
62499
63125
|
var useRequest = function useRequest(requestConfig) {
|
62500
63126
|
return function (field) {
|
63127
|
+
var _field$form;
|
63128
|
+
|
62501
63129
|
var beforeRequest = requestConfig.beforeRequest,
|
62502
63130
|
onSuccess = requestConfig.onSuccess;
|
62503
63131
|
var beforeRequestResult = (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_0__.isFn)(beforeRequest) ? beforeRequest(field) : {};
|
@@ -62511,8 +63139,8 @@ var useRequest = function useRequest(requestConfig) {
|
|
62511
63139
|
} : onSuccess
|
62512
63140
|
}), {
|
62513
63141
|
$self: field,
|
62514
|
-
$form: field.form,
|
62515
|
-
$values: field.form.values
|
63142
|
+
$form: field == null ? void 0 : field.form,
|
63143
|
+
$values: field == null ? void 0 : (_field$form = field.form) == null ? void 0 : _field$form.values
|
62516
63144
|
});
|
62517
63145
|
};
|
62518
63146
|
}; // 配置校验
|
@@ -62968,7 +63596,7 @@ _teamix_icon__WEBPACK_IMPORTED_MODULE_12__/* ["default"].setConfig */ .Z.setConf
|
|
62968
63596
|
|
62969
63597
|
|
62970
63598
|
|
62971
|
-
var version = '1.1.
|
63599
|
+
var version = '1.1.37';
|
62972
63600
|
|
62973
63601
|
|
62974
63602
|
/***/ }),
|
@@ -63040,7 +63668,7 @@ var ProInfoGroup = function ProInfoGroup(props) {
|
|
63040
63668
|
/* harmony import */ var _alicloudfe_components__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(33049);
|
63041
63669
|
/* harmony import */ var _alicloudfe_components__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_6__);
|
63042
63670
|
/* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(28758);
|
63043
|
-
var _excluded = ["type", "value", "render", "infoItem", "record", "actionRef"];
|
63671
|
+
var _excluded = ["type", "value", "render", "infoItem", "record", "actionRef", "dataSource"];
|
63044
63672
|
|
63045
63673
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
63046
63674
|
|
@@ -63072,6 +63700,7 @@ var InfoValueItem = function InfoValueItem(props) {
|
|
63072
63700
|
infoItem = props.infoItem,
|
63073
63701
|
record = props.record,
|
63074
63702
|
actionRef = props.actionRef,
|
63703
|
+
dataSource = props.dataSource,
|
63075
63704
|
others = _objectWithoutPropertiesLoose(props, _excluded);
|
63076
63705
|
|
63077
63706
|
var dataIndex = infoItem.dataIndex,
|
@@ -63085,28 +63714,39 @@ var InfoValueItem = function InfoValueItem(props) {
|
|
63085
63714
|
_infoItem$successMess = infoItem.successMessage,
|
63086
63715
|
successMessage = _infoItem$successMess === void 0 ? 'success' : _infoItem$successMess,
|
63087
63716
|
actions = infoItem.actions,
|
63088
|
-
extra = infoItem.extra; //
|
63089
|
-
// let fieldRender = render;
|
63090
|
-
// let newValue = value;
|
63091
|
-
// if (render && typeof render !== 'function') {
|
63092
|
-
// const { value, ...others } = render;
|
63093
|
-
// fieldRender = others;
|
63094
|
-
// if (value) {
|
63095
|
-
// newValue = getTargetValue(`${value}`, { ...record, record });
|
63096
|
-
// console.log("newValue", newValue);
|
63097
|
-
// }
|
63098
|
-
// }
|
63099
|
-
// 获取render
|
63717
|
+
extra = infoItem.extra; // 获取处理过的 render
|
63100
63718
|
|
63101
63719
|
var getRender = function getRender() {
|
63720
|
+
var _ref, _ref2;
|
63721
|
+
|
63102
63722
|
if (typeof render === 'function') {
|
63103
63723
|
return render;
|
63104
63724
|
}
|
63105
63725
|
|
63106
|
-
|
63107
|
-
|
63108
|
-
|
63109
|
-
|
63726
|
+
var newRender = processBuriedPoint((_ref = processRenderFunction((_ref2 = render) != null ? _ref2 : {}, value, record)) != null ? _ref : {}, value, record);
|
63727
|
+
return newRender;
|
63728
|
+
}; // 获取处理过的 dataSource
|
63729
|
+
|
63730
|
+
|
63731
|
+
var getDataSource = function getDataSource() {
|
63732
|
+
var newDataSource = null;
|
63733
|
+
|
63734
|
+
if (typeof dataSource === 'function') {
|
63735
|
+
newDataSource = dataSource == null ? void 0 : dataSource(value, record);
|
63736
|
+
} else {
|
63737
|
+
newDataSource = (dataSource != null ? dataSource : []).map(function (item) {
|
63738
|
+
return Object.fromEntries(Object.entries(item).map(function (_ref3) {
|
63739
|
+
var k = _ref3[0],
|
63740
|
+
v = _ref3[1];
|
63741
|
+
return [k, (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_2__.getTargetValue)(v, _objectSpread(_objectSpread({}, record), {}, {
|
63742
|
+
record: record,
|
63743
|
+
value: value
|
63744
|
+
}))];
|
63745
|
+
}));
|
63746
|
+
});
|
63747
|
+
}
|
63748
|
+
|
63749
|
+
return newDataSource;
|
63110
63750
|
}; // 浮层的显隐状态
|
63111
63751
|
|
63112
63752
|
|
@@ -63136,12 +63776,70 @@ var InfoValueItem = function InfoValueItem(props) {
|
|
63136
63776
|
type: "text",
|
63137
63777
|
style: {
|
63138
63778
|
marginLeft: '8px'
|
63779
|
+
},
|
63780
|
+
context: {
|
63781
|
+
record: record
|
63139
63782
|
}
|
63140
63783
|
});
|
63141
63784
|
}
|
63142
63785
|
|
63143
63786
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().createElement((react__WEBPACK_IMPORTED_MODULE_4___default().Fragment), null);
|
63144
63787
|
};
|
63788
|
+
/**
|
63789
|
+
* 处理 render 配置项是函数的情况
|
63790
|
+
* @param render ProFieldRender
|
63791
|
+
* @param value table cell value
|
63792
|
+
* @param record table cell record
|
63793
|
+
* @returns
|
63794
|
+
*/
|
63795
|
+
|
63796
|
+
|
63797
|
+
var processRenderFunction = function processRenderFunction(render, value, record) {
|
63798
|
+
var external = ['linkOnClick', 'link', 'value'];
|
63799
|
+
return Object.fromEntries(Object.entries(render).map(function (_ref4) {
|
63800
|
+
var k = _ref4[0],
|
63801
|
+
v = _ref4[1];
|
63802
|
+
|
63803
|
+
if (typeof v === 'function') {
|
63804
|
+
var _v;
|
63805
|
+
|
63806
|
+
if (external.includes(k)) {
|
63807
|
+
return [k, function () {
|
63808
|
+
for (var _len = arguments.length, others = new Array(_len), _key = 0; _key < _len; _key++) {
|
63809
|
+
others[_key] = arguments[_key];
|
63810
|
+
}
|
63811
|
+
|
63812
|
+
return v == null ? void 0 : v.apply(void 0, [value, record].concat(others));
|
63813
|
+
}];
|
63814
|
+
}
|
63815
|
+
|
63816
|
+
return [k, (_v = v == null ? void 0 : v(value, record)) != null ? _v : ''];
|
63817
|
+
}
|
63818
|
+
|
63819
|
+
return [k, v];
|
63820
|
+
}));
|
63821
|
+
};
|
63822
|
+
/**
|
63823
|
+
* 处理 render 数据,取出 {{xxx}} 匹配值
|
63824
|
+
* @param render ProFieldRender
|
63825
|
+
* @param record table cell record
|
63826
|
+
* @returns
|
63827
|
+
*/
|
63828
|
+
|
63829
|
+
|
63830
|
+
var processBuriedPoint = function processBuriedPoint(render, value, record) {
|
63831
|
+
return Object.fromEntries([// 默认 ellipsis、descriptionEllipsis 为 true
|
63832
|
+
// emptyText 默认为 '-'
|
63833
|
+
['ellipsis', true], ['descriptionEllipsis', true], ['emptyText', '-']].concat(Object.entries(render).map(function (_ref5) {
|
63834
|
+
var k = _ref5[0],
|
63835
|
+
v = _ref5[1];
|
63836
|
+
return [k, (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_2__.getTargetValue)(v, _objectSpread(_objectSpread({}, record), {}, {
|
63837
|
+
record: record,
|
63838
|
+
value: value
|
63839
|
+
}))];
|
63840
|
+
})));
|
63841
|
+
}; // 重写编辑逻辑替代field原有逻辑
|
63842
|
+
|
63145
63843
|
|
63146
63844
|
if (isEdit) {
|
63147
63845
|
// 渲染表单
|
@@ -63224,9 +63922,8 @@ var InfoValueItem = function InfoValueItem(props) {
|
|
63224
63922
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().createElement(_field__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, _extends({
|
63225
63923
|
type: type,
|
63226
63924
|
value: value,
|
63227
|
-
render: getRender()
|
63228
|
-
|
63229
|
-
|
63925
|
+
render: getRender(),
|
63926
|
+
dataSource: getDataSource()
|
63230
63927
|
}, others)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().createElement(_teamix_pop_confirm__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, {
|
63231
63928
|
visible: popConfirmVisible,
|
63232
63929
|
content: renderContent(),
|
@@ -63257,9 +63954,8 @@ var InfoValueItem = function InfoValueItem(props) {
|
|
63257
63954
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().createElement(_field__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, _extends({
|
63258
63955
|
type: type,
|
63259
63956
|
value: value,
|
63260
|
-
render: getRender()
|
63261
|
-
|
63262
|
-
|
63957
|
+
render: getRender(),
|
63958
|
+
dataSource: getDataSource()
|
63263
63959
|
}, others)), renderAction(), extra && extra);
|
63264
63960
|
};
|
63265
63961
|
|
@@ -63357,23 +64053,13 @@ var ProInfoItem = function ProInfoItem(prop) {
|
|
63357
64053
|
/* harmony export */ });
|
63358
64054
|
/* harmony import */ var _alicloudfe_components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(33049);
|
63359
64055
|
/* harmony import */ var _alicloudfe_components__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_0__);
|
63360
|
-
/* harmony import */ var
|
63361
|
-
/* harmony import */ var
|
63362
|
-
/* harmony import */ var
|
63363
|
-
/* harmony import */ var
|
63364
|
-
/* harmony import */ var
|
63365
|
-
/* harmony import */ var
|
63366
|
-
/* harmony import */ var
|
63367
|
-
/* harmony import */ var _InfoValueItem__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(80298);
|
63368
|
-
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(90557);
|
63369
|
-
var _excluded = ["header", "columns", "dataSource", "loading", "result", "actionRef", "className", "layout"];
|
63370
|
-
|
63371
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
63372
|
-
|
63373
|
-
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; }
|
63374
|
-
|
63375
|
-
|
63376
|
-
|
64056
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(59787);
|
64057
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
64058
|
+
/* harmony import */ var _ProInfoItem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(18676);
|
64059
|
+
/* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(64466);
|
64060
|
+
/* harmony import */ var _utils_layout__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29370);
|
64061
|
+
/* harmony import */ var _InfoValueItem__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(80298);
|
64062
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(90557);
|
63377
64063
|
|
63378
64064
|
|
63379
64065
|
|
@@ -63388,72 +64074,78 @@ var Row = _alicloudfe_components__WEBPACK_IMPORTED_MODULE_0__.Grid.Row,
|
|
63388
64074
|
var ProBaseInfo = function ProBaseInfo(props) {
|
63389
64075
|
var _size$width;
|
63390
64076
|
|
63391
|
-
var
|
63392
|
-
columns = props.columns,
|
64077
|
+
var columns = props.columns,
|
63393
64078
|
dataSource = props.dataSource,
|
63394
64079
|
loading = props.loading,
|
63395
64080
|
result = props.result,
|
63396
64081
|
actionRef = props.actionRef,
|
63397
|
-
className = props.className,
|
63398
64082
|
layout = props.layout,
|
63399
|
-
|
64083
|
+
size = props.size;
|
64084
|
+
var defaultLayout = _utils_layout__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z[(0,_utils_utils__WEBPACK_IMPORTED_MODULE_6__/* .getLayout */ .G)((_size$width = size == null ? void 0 : size.width) != null ? _size$width : 0)]; // 获取列内的布局参数
|
63400
64085
|
|
63401
|
-
var
|
63402
|
-
|
63403
|
-
var size = context.visible ? context.size : (0,_teamix_hooks__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(ref);
|
63404
|
-
var defaultLayout = _utils_layout__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z[(0,_utils_utils__WEBPACK_IMPORTED_MODULE_8__/* .getLayout */ .G)((_size$width = size == null ? void 0 : size.width) != null ? _size$width : 0)]; // 获取列的布局参数
|
64086
|
+
var getFormItemLayout = function getFormItemLayout(colspan) {
|
64087
|
+
var formItemLayout = JSON.parse(JSON.stringify(defaultLayout.formItemLayout)); // 自定义布局
|
63405
64088
|
|
63406
|
-
var getFormItemLayout = function getFormItemLayout() {
|
63407
64089
|
if (layout) {
|
63408
64090
|
var _layout$labelCol, _layout$wrapperCol;
|
63409
64091
|
|
63410
|
-
|
63411
|
-
|
63412
|
-
|
63413
|
-
|
64092
|
+
var labelCol = (_layout$labelCol = layout == null ? void 0 : layout.labelCol) != null ? _layout$labelCol : defaultLayout.formItemLayout.labelCol;
|
64093
|
+
var wrapperCol = (_layout$wrapperCol = layout == null ? void 0 : layout.wrapperCol) != null ? _layout$wrapperCol : defaultLayout.formItemLayout.wrapperCol;
|
64094
|
+
formItemLayout.labelCol = labelCol;
|
64095
|
+
formItemLayout.wrapperCol = wrapperCol;
|
64096
|
+
}
|
64097
|
+
|
64098
|
+
var newLabelSpan = formItemLayout.labelCol.span;
|
64099
|
+
var newWrapperSpan = formItemLayout.wrapperCol.span; // 计算合并列情况。label与wrapper需要重新计算
|
64100
|
+
|
64101
|
+
if (colspan) {
|
64102
|
+
newLabelSpan = newLabelSpan / colspan;
|
64103
|
+
newWrapperSpan = newWrapperSpan + (formItemLayout.labelCol.span - newLabelSpan);
|
63414
64104
|
}
|
63415
64105
|
|
63416
|
-
|
64106
|
+
var newFormItemLayout = {
|
64107
|
+
labelCol: {
|
64108
|
+
span: newLabelSpan
|
64109
|
+
},
|
64110
|
+
wrapperCol: {
|
64111
|
+
span: newWrapperSpan
|
64112
|
+
}
|
64113
|
+
};
|
64114
|
+
return Object.assign(formItemLayout, newFormItemLayout);
|
63417
64115
|
};
|
63418
64116
|
|
63419
64117
|
var renderContent = function renderContent() {
|
63420
64118
|
return columns.map(function (item, index) {
|
63421
|
-
var _layout$span, _item$title, _item$valueType, _ref;
|
64119
|
+
var _layout$span, _layout$span2, _item$title, _item$valueType, _ref, _item$colSpan;
|
63422
64120
|
|
63423
64121
|
var span = item.colSpan ? defaultLayout.span * item.colSpan : defaultLayout.span;
|
63424
|
-
|
63425
|
-
|
64122
|
+
var layoutSpan = item.colSpan ? ((_layout$span = layout == null ? void 0 : layout.span) != null ? _layout$span : span) * item.colSpan : (_layout$span2 = layout == null ? void 0 : layout.span) != null ? _layout$span2 : span;
|
64123
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Col, {
|
64124
|
+
span: layoutSpan,
|
63426
64125
|
key: index
|
63427
|
-
}, /*#__PURE__*/
|
64126
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_ProInfoItem__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, {
|
63428
64127
|
label: (_item$title = item == null ? void 0 : item.title) != null ? _item$title : '',
|
63429
64128
|
loading: loading,
|
63430
|
-
value: /*#__PURE__*/
|
64129
|
+
value: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_InfoValueItem__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, {
|
63431
64130
|
type: (_item$valueType = item == null ? void 0 : item.valueType) != null ? _item$valueType : 'text',
|
63432
|
-
value: (0,
|
64131
|
+
value: (0,_utils__WEBPACK_IMPORTED_MODULE_5__/* .getDataIndexValue */ .vc)(item.dataIndex, (_ref = dataSource != null ? dataSource : result) != null ? _ref : {}),
|
63433
64132
|
render: item.render,
|
63434
64133
|
dataSource: item.dataSource,
|
63435
64134
|
infoItem: item,
|
63436
64135
|
record: dataSource != null ? dataSource : result,
|
63437
64136
|
actionRef: actionRef
|
63438
64137
|
}),
|
63439
|
-
baseInfoLayout: getFormItemLayout(),
|
64138
|
+
baseInfoLayout: getFormItemLayout((_item$colSpan = item == null ? void 0 : item.colSpan) != null ? _item$colSpan : 0),
|
63440
64139
|
tooltip: item.tooltip,
|
63441
64140
|
tooltipIcon: item.tooltipIcon
|
63442
64141
|
}));
|
63443
64142
|
});
|
63444
64143
|
};
|
63445
64144
|
|
63446
|
-
return /*#__PURE__*/
|
63447
|
-
ref: ref,
|
63448
|
-
className: "teamix-pro-info " + (className != null ? className : '')
|
63449
|
-
}, others), (size == null ? void 0 : size.width) && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(___WEBPACK_IMPORTED_MODULE_1__.ProCard, _extends({
|
63450
|
-
compacted: true,
|
63451
|
-
hoveredShadow: false,
|
63452
|
-
bordered: false
|
63453
|
-
}, header), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(Row, {
|
64145
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), null, (size == null ? void 0 : size.width) && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Row, {
|
63454
64146
|
wrap: true,
|
63455
64147
|
className: "teamix-pro-info-content-row"
|
63456
|
-
}, renderContent()))
|
64148
|
+
}, renderContent()));
|
63457
64149
|
};
|
63458
64150
|
|
63459
64151
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ProBaseInfo);
|
@@ -63469,23 +64161,13 @@ var ProBaseInfo = function ProBaseInfo(props) {
|
|
63469
64161
|
/* harmony export */ });
|
63470
64162
|
/* harmony import */ var _alicloudfe_components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(33049);
|
63471
64163
|
/* harmony import */ var _alicloudfe_components__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_0__);
|
63472
|
-
/* harmony import */ var
|
63473
|
-
/* harmony import */ var
|
63474
|
-
/* harmony import */ var
|
63475
|
-
/* harmony import */ var
|
63476
|
-
/* harmony import */ var
|
63477
|
-
/* harmony import */ var
|
63478
|
-
/* harmony import */ var
|
63479
|
-
/* harmony import */ var _InfoValueItem__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(80298);
|
63480
|
-
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(90557);
|
63481
|
-
var _excluded = ["header", "columns", "dataSource", "layout", "loading", "result", "actionRef", "className"];
|
63482
|
-
|
63483
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
63484
|
-
|
63485
|
-
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; }
|
63486
|
-
|
63487
|
-
|
63488
|
-
|
64164
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(59787);
|
64165
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
64166
|
+
/* harmony import */ var _ProInfoItem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(18676);
|
64167
|
+
/* harmony import */ var _utils_layout__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29370);
|
64168
|
+
/* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(64466);
|
64169
|
+
/* harmony import */ var _InfoValueItem__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(80298);
|
64170
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(90557);
|
63489
64171
|
|
63490
64172
|
|
63491
64173
|
|
@@ -63500,20 +64182,14 @@ var Row = _alicloudfe_components__WEBPACK_IMPORTED_MODULE_0__.Grid.Row,
|
|
63500
64182
|
var ProHeaderInfo = function ProHeaderInfo(props) {
|
63501
64183
|
var _size$width;
|
63502
64184
|
|
63503
|
-
var
|
63504
|
-
columns = props.columns,
|
64185
|
+
var columns = props.columns,
|
63505
64186
|
dataSource = props.dataSource,
|
63506
64187
|
layout = props.layout,
|
63507
64188
|
loading = props.loading,
|
63508
64189
|
result = props.result,
|
63509
64190
|
actionRef = props.actionRef,
|
63510
|
-
|
63511
|
-
|
63512
|
-
|
63513
|
-
var context = (0,react__WEBPACK_IMPORTED_MODULE_2__.useContext)(_utils__WEBPACK_IMPORTED_MODULE_6__/* .ProInfoGroupContext */ .TH);
|
63514
|
-
var ref = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)();
|
63515
|
-
var size = context.visible ? context.size : (0,_teamix_hooks__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(ref);
|
63516
|
-
var defaultLayout = _utils_layout__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z[(0,_utils_utils__WEBPACK_IMPORTED_MODULE_8__/* .getLayout */ .G)((_size$width = size == null ? void 0 : size.width) != null ? _size$width : 0)];
|
64191
|
+
size = props.size;
|
64192
|
+
var defaultLayout = _utils_layout__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z[(0,_utils_utils__WEBPACK_IMPORTED_MODULE_6__/* .getLayout */ .G)((_size$width = size == null ? void 0 : size.width) != null ? _size$width : 0)];
|
63517
64193
|
|
63518
64194
|
var renderContent = function renderContent() {
|
63519
64195
|
return columns.map(function (item, index) {
|
@@ -63531,15 +64207,15 @@ var ProHeaderInfo = function ProHeaderInfo(props) {
|
|
63531
64207
|
span = defaultLayout.span * ((_item$colSpan2 = item == null ? void 0 : item.colSpan) != null ? _item$colSpan2 : 1);
|
63532
64208
|
}
|
63533
64209
|
|
63534
|
-
return /*#__PURE__*/
|
64210
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Col, {
|
63535
64211
|
span: span,
|
63536
64212
|
key: index
|
63537
|
-
}, /*#__PURE__*/
|
64213
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_ProInfoItem__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, {
|
63538
64214
|
label: (_item$title = item == null ? void 0 : item.title) != null ? _item$title : '',
|
63539
64215
|
loading: loading,
|
63540
|
-
value: /*#__PURE__*/
|
64216
|
+
value: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_InfoValueItem__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, {
|
63541
64217
|
type: (_item$valueType = item == null ? void 0 : item.valueType) != null ? _item$valueType : 'text',
|
63542
|
-
value: (0,
|
64218
|
+
value: (0,_utils__WEBPACK_IMPORTED_MODULE_5__/* .getDataIndexValue */ .vc)(item.dataIndex, dataSource != null ? dataSource : result),
|
63543
64219
|
render: item.render,
|
63544
64220
|
dataSource: item.dataSource,
|
63545
64221
|
infoItem: item,
|
@@ -63553,21 +64229,10 @@ var ProHeaderInfo = function ProHeaderInfo(props) {
|
|
63553
64229
|
});
|
63554
64230
|
};
|
63555
64231
|
|
63556
|
-
return (
|
63557
|
-
|
63558
|
-
|
63559
|
-
|
63560
|
-
ref: ref,
|
63561
|
-
className: "teamix-pro-info " + (className != null ? className : '')
|
63562
|
-
}, others), (size == null ? void 0 : size.width) && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_card__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, _extends({
|
63563
|
-
compacted: true,
|
63564
|
-
hoveredShadow: false,
|
63565
|
-
bordered: false
|
63566
|
-
}, header), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(Row, {
|
63567
|
-
wrap: true,
|
63568
|
-
className: "teamix-pro-info-content-row"
|
63569
|
-
}, renderContent())))
|
63570
|
-
);
|
64232
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), null, (size == null ? void 0 : size.width) && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Row, {
|
64233
|
+
wrap: true,
|
64234
|
+
className: "teamix-pro-info-content-row"
|
64235
|
+
}, renderContent()));
|
63571
64236
|
};
|
63572
64237
|
|
63573
64238
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ProHeaderInfo);
|
@@ -63585,24 +64250,16 @@ var ProHeaderInfo = function ProHeaderInfo(props) {
|
|
63585
64250
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
63586
64251
|
/* harmony import */ var _alicloudfe_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(33049);
|
63587
64252
|
/* harmony import */ var _alicloudfe_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_1__);
|
63588
|
-
/* harmony import */ var
|
63589
|
-
/* harmony import */ var
|
63590
|
-
/* harmony import */ var
|
63591
|
-
/* harmony import */ var
|
63592
|
-
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(90557);
|
63593
|
-
var _excluded = ["header", "columns", "dataSource", "layout", "loading", "result", "actionRef", "className"];
|
63594
|
-
|
63595
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
63596
|
-
|
64253
|
+
/* harmony import */ var _teamix_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80653);
|
64254
|
+
/* harmony import */ var _InfoValueItem__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(80298);
|
64255
|
+
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(42345);
|
64256
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(90557);
|
63597
64257
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
63598
64258
|
|
63599
64259
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
63600
64260
|
|
63601
64261
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
63602
64262
|
|
63603
|
-
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; }
|
63604
|
-
|
63605
|
-
|
63606
64263
|
|
63607
64264
|
|
63608
64265
|
|
@@ -63613,17 +64270,13 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
63613
64270
|
|
63614
64271
|
|
63615
64272
|
var ProTableInfo = function ProTableInfo(props) {
|
63616
|
-
var
|
63617
|
-
columns = props.columns,
|
64273
|
+
var columns = props.columns,
|
63618
64274
|
dataSource = props.dataSource,
|
63619
64275
|
_props$layout = props.layout,
|
63620
64276
|
layout = _props$layout === void 0 ? {} : _props$layout,
|
63621
64277
|
loading = props.loading,
|
63622
64278
|
result = props.result,
|
63623
|
-
actionRef = props.actionRef
|
63624
|
-
className = props.className,
|
63625
|
-
others = _objectWithoutPropertiesLoose(props, _excluded);
|
63626
|
-
|
64279
|
+
actionRef = props.actionRef;
|
63627
64280
|
var _ref = layout,
|
63628
64281
|
_ref$colNum = _ref.colNum,
|
63629
64282
|
colNum = _ref$colNum === void 0 ? 2 : _ref$colNum,
|
@@ -63649,9 +64302,9 @@ var ProTableInfo = function ProTableInfo(props) {
|
|
63649
64302
|
var getInfoValueItem = function getInfoValueItem(item) {
|
63650
64303
|
var _item$valueType;
|
63651
64304
|
|
63652
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
64305
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_InfoValueItem__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, {
|
63653
64306
|
type: (_item$valueType = item == null ? void 0 : item.valueType) != null ? _item$valueType : 'text',
|
63654
|
-
value: (0,
|
64307
|
+
value: (0,_utils__WEBPACK_IMPORTED_MODULE_5__/* .getDataIndexValue */ .vc)(item.dataIndex, dataSource != null ? dataSource : result),
|
63655
64308
|
render: item.render,
|
63656
64309
|
dataSource: item.dataSource,
|
63657
64310
|
infoItem: item,
|
@@ -63696,11 +64349,11 @@ var ProTableInfo = function ProTableInfo(props) {
|
|
63696
64349
|
var itemData = filterColumns.map(function (item, index) {
|
63697
64350
|
var _item$title, _data;
|
63698
64351
|
|
63699
|
-
var data = (_data = {}, _data["label_" + index] = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
64352
|
+
var data = (_data = {}, _data["label_" + index] = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_teamix_utils__WEBPACK_IMPORTED_MODULE_2__.LabelIconTip, {
|
63700
64353
|
label: (_item$title = item == null ? void 0 : item.title) != null ? _item$title : '',
|
63701
64354
|
tooltip: item.tooltip,
|
63702
64355
|
icon: item.tooltipIcon
|
63703
|
-
}), _data["value_" + index] = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
64356
|
+
}), _data["value_" + index] = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(___WEBPACK_IMPORTED_MODULE_4__.BaseSkeleton.Info, null), !loading && getInfoValueItem(item)), _data);
|
63704
64357
|
|
63705
64358
|
if (item.colSpan) {
|
63706
64359
|
data['formatter'] = {
|
@@ -63754,20 +64407,14 @@ var ProTableInfo = function ProTableInfo(props) {
|
|
63754
64407
|
}
|
63755
64408
|
};
|
63756
64409
|
|
63757
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
63758
|
-
className: "teamix-pro-info " + className
|
63759
|
-
}, others), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_card__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, _extends({
|
63760
|
-
compacted: true,
|
63761
|
-
hoveredShadow: false,
|
63762
|
-
bordered: false
|
63763
|
-
}, header), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_1__.Table.StickyLock, {
|
64410
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_1__.Table.StickyLock, {
|
63764
64411
|
className: "teamix-pro-info-table",
|
63765
64412
|
cellProps: setCellProps,
|
63766
64413
|
columns: newColumns(),
|
63767
64414
|
hasHeader: false,
|
63768
64415
|
hasBorder: true,
|
63769
64416
|
dataSource: newDataSource
|
63770
|
-
})
|
64417
|
+
});
|
63771
64418
|
};
|
63772
64419
|
|
63773
64420
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ProTableInfo);
|
@@ -63789,10 +64436,18 @@ var ProTableInfo = function ProTableInfo(props) {
|
|
63789
64436
|
/* harmony import */ var _components_InfoGroup__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7703);
|
63790
64437
|
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(90557);
|
63791
64438
|
/* harmony import */ var _teamix_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(80653);
|
63792
|
-
|
64439
|
+
/* harmony import */ var _teamix_hooks__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(26245);
|
64440
|
+
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(42345);
|
64441
|
+
var _excluded = ["type", "url", "method", "formatResult", "params", "actionRef", "header", "onError", "className", "style", "columns", "layout", "dataSource", "loading", "extra"];
|
63793
64442
|
|
63794
64443
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
63795
64444
|
|
64445
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
64446
|
+
|
64447
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
64448
|
+
|
64449
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
64450
|
+
|
63796
64451
|
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; }
|
63797
64452
|
|
63798
64453
|
|
@@ -63805,8 +64460,11 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
63805
64460
|
|
63806
64461
|
|
63807
64462
|
|
64463
|
+
|
64464
|
+
|
63808
64465
|
var ProInfo = function ProInfo(props) {
|
63809
|
-
var type = props.type,
|
64466
|
+
var _props$type = props.type,
|
64467
|
+
type = _props$type === void 0 ? 'base' : _props$type,
|
63810
64468
|
url = props.url,
|
63811
64469
|
_props$method = props.method,
|
63812
64470
|
method = _props$method === void 0 ? 'post' : _props$method,
|
@@ -63816,14 +64474,26 @@ var ProInfo = function ProInfo(props) {
|
|
63816
64474
|
_props$header = props.header,
|
63817
64475
|
header = _props$header === void 0 ? {} : _props$header,
|
63818
64476
|
_onError = props.onError,
|
64477
|
+
className = props.className,
|
64478
|
+
style = props.style,
|
64479
|
+
columns = props.columns,
|
64480
|
+
layout = props.layout,
|
64481
|
+
dataSource = props.dataSource,
|
64482
|
+
userLoading = props.loading,
|
64483
|
+
extra = props.extra,
|
63819
64484
|
others = _objectWithoutPropertiesLoose(props, _excluded);
|
63820
64485
|
|
63821
64486
|
var _useContext = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_utils__WEBPACK_IMPORTED_MODULE_5__/* .ProInfoGroupContext */ .TH),
|
63822
64487
|
contextUrl = _useContext.url,
|
63823
64488
|
contextMethod = _useContext.method,
|
63824
64489
|
contextParams = _useContext.params,
|
63825
|
-
contextFormatResult = _useContext.formatResult
|
64490
|
+
contextFormatResult = _useContext.formatResult,
|
64491
|
+
contextVisible = _useContext.visible,
|
64492
|
+
contextSize = _useContext.size; // 获取容器宽度
|
64493
|
+
|
63826
64494
|
|
64495
|
+
var ref = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
|
64496
|
+
var size = contextVisible ? contextSize : (0,_teamix_hooks__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)(ref); // 请求数据
|
63827
64497
|
|
63828
64498
|
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),
|
63829
64499
|
loading = _useState[0],
|
@@ -63887,30 +64557,58 @@ var ProInfo = function ProInfo(props) {
|
|
63887
64557
|
}
|
63888
64558
|
});
|
63889
64559
|
|
63890
|
-
|
63891
|
-
|
63892
|
-
|
63893
|
-
|
63894
|
-
result: getDataSource(getData.data),
|
63895
|
-
actionRef: actionRef
|
63896
|
-
}));
|
63897
|
-
}
|
64560
|
+
var getExtra = function getExtra() {
|
64561
|
+
if (!extra) {
|
64562
|
+
return undefined;
|
64563
|
+
}
|
63898
64564
|
|
63899
|
-
|
63900
|
-
|
63901
|
-
|
63902
|
-
|
63903
|
-
|
63904
|
-
|
63905
|
-
|
63906
|
-
|
64565
|
+
if ( /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.isValidElement)(extra)) {
|
64566
|
+
return extra;
|
64567
|
+
}
|
64568
|
+
|
64569
|
+
return _objectSpread(_objectSpread({}, extra), {}, {
|
64570
|
+
context: {
|
64571
|
+
record: dataSource != null ? dataSource : getDataSource(getData.data)
|
64572
|
+
}
|
64573
|
+
});
|
64574
|
+
};
|
63907
64575
|
|
63908
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
64576
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
64577
|
+
ref: ref,
|
64578
|
+
className: "teamix-pro-info " + (className != null ? className : ''),
|
64579
|
+
style: style
|
64580
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(___WEBPACK_IMPORTED_MODULE_7__.ProCard, _extends({
|
64581
|
+
compacted: true,
|
64582
|
+
hoveredShadow: false,
|
64583
|
+
bordered: false,
|
64584
|
+
backgroundColor: "transparent"
|
64585
|
+
}, header, others, {
|
64586
|
+
extra: getExtra()
|
64587
|
+
}), type === 'table' && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_components_tableInfo__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, {
|
64588
|
+
dataSource: dataSource,
|
64589
|
+
columns: columns,
|
64590
|
+
loading: userLoading || loading || getData.loading,
|
64591
|
+
result: getDataSource(getData.data),
|
64592
|
+
actionRef: actionRef,
|
64593
|
+
layout: layout
|
64594
|
+
}), type === 'header' && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_components_headerInfo__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, {
|
64595
|
+
dataSource: dataSource,
|
64596
|
+
columns: columns,
|
63909
64597
|
header: header,
|
63910
|
-
loading: loading || getData.loading,
|
64598
|
+
loading: userLoading || loading || getData.loading,
|
63911
64599
|
result: getDataSource(getData.data),
|
63912
|
-
actionRef: actionRef
|
63913
|
-
|
64600
|
+
actionRef: actionRef,
|
64601
|
+
layout: layout,
|
64602
|
+
size: size
|
64603
|
+
}), type === 'base' && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_components_baseInfo__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, {
|
64604
|
+
dataSource: dataSource,
|
64605
|
+
columns: columns,
|
64606
|
+
loading: userLoading || loading || getData.loading,
|
64607
|
+
result: getDataSource(getData.data),
|
64608
|
+
actionRef: actionRef,
|
64609
|
+
layout: layout,
|
64610
|
+
size: size
|
64611
|
+
})));
|
63914
64612
|
};
|
63915
64613
|
|
63916
64614
|
ProInfo.Group = _components_InfoGroup__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z;
|
@@ -65621,7 +66319,8 @@ var PlayGround = function PlayGround(props) {
|
|
65621
66319
|
/* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(28758);
|
65622
66320
|
/* harmony import */ var _skeleton__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(53277);
|
65623
66321
|
/* harmony import */ var _info__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(27872);
|
65624
|
-
var _excluded = ["
|
66322
|
+
var _excluded = ["text", "children", "closable"],
|
66323
|
+
_excluded2 = ["title", "description", "icon", "iconColor", "iconBackgroundType", "iconBackgroundColor", "goback", "operation", "extra", "image", "loading", "breadcrumb", "tags", "data", "info", "children", "className", "style"];
|
65625
66324
|
|
65626
66325
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
65627
66326
|
|
@@ -65691,15 +66390,29 @@ var renderTags = function renderTags(tags) {
|
|
65691
66390
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_4__.Tag.Group, {
|
65692
66391
|
className: cls('tags')
|
65693
66392
|
}, tags.map(function (tag, i) {
|
65694
|
-
|
66393
|
+
// @ts-ignore
|
66394
|
+
var text = tag.text,
|
66395
|
+
children = tag.children,
|
66396
|
+
closable = tag.closable,
|
66397
|
+
others = _objectWithoutPropertiesLoose(tag, _excluded);
|
66398
|
+
|
66399
|
+
if (closable) {
|
66400
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_4__.Tag.Closeable, _extends({
|
66401
|
+
key: i,
|
66402
|
+
size: "large",
|
66403
|
+
style: {
|
66404
|
+
marginBottom: 0
|
66405
|
+
}
|
66406
|
+
}, others), text || children);
|
66407
|
+
}
|
66408
|
+
|
66409
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_4__.Tag, _extends({
|
65695
66410
|
key: i,
|
65696
66411
|
size: "large",
|
65697
|
-
type: tag.type,
|
65698
|
-
color: tag.color,
|
65699
66412
|
style: {
|
65700
66413
|
marginBottom: 0
|
65701
66414
|
}
|
65702
|
-
},
|
66415
|
+
}, others), text || children);
|
65703
66416
|
}));
|
65704
66417
|
};
|
65705
66418
|
|
@@ -65717,7 +66430,7 @@ var getColorAndStyle = function getColorAndStyle(color, backgroundColor, backgro
|
|
65717
66430
|
|
65718
66431
|
var isColorPresetColor = isPresetColor(color);
|
65719
66432
|
var isBgColorPresetColor = isPresetColor(backgroundColor);
|
65720
|
-
var className = classnames__WEBPACK_IMPORTED_MODULE_2___default()((_classnames = {}, _classnames["" + cls("color-" + color)] = isColorPresetColor, _classnames["" + cls("color-
|
66433
|
+
var className = classnames__WEBPACK_IMPORTED_MODULE_2___default()((_classnames = {}, _classnames["" + cls("color-" + color)] = isColorPresetColor, _classnames["" + cls("bg-color-" + backgroundColor)] = isBgColorPresetColor, _classnames["" + cls("bg-type-" + backgroundType)] = !!backgroundType, _classnames));
|
65721
66434
|
var styleColor = isColorPresetColor ? undefined : color;
|
65722
66435
|
var styleBgColor = isBgColorPresetColor ? undefined : backgroundColor;
|
65723
66436
|
var style = {
|
@@ -65784,7 +66497,7 @@ var PageHeader = function PageHeader(props) {
|
|
65784
66497
|
children = props.children,
|
65785
66498
|
className = props.className,
|
65786
66499
|
style = props.style,
|
65787
|
-
others = _objectWithoutPropertiesLoose(props,
|
66500
|
+
others = _objectWithoutPropertiesLoose(props, _excluded2);
|
65788
66501
|
|
65789
66502
|
var history = (0,react_router_dom__WEBPACK_IMPORTED_MODULE_1__.useHistory)();
|
65790
66503
|
var backgroundImage = image ? "url('" + image + "')" : undefined;
|
@@ -65909,7 +66622,9 @@ var RadioItem = _alicloudfe_components__WEBPACK_IMPORTED_MODULE_2__.Menu.RadioIt
|
|
65909
66622
|
|
65910
66623
|
var Filter = function Filter(props) {
|
65911
66624
|
var column = props.column,
|
65912
|
-
actionRef = props.actionRef;
|
66625
|
+
actionRef = props.actionRef;
|
66626
|
+
var _column$filtersWidth = column.filtersWidth,
|
66627
|
+
filtersWidth = _column$filtersWidth === void 0 ? 130 : _column$filtersWidth; // 选中过滤项
|
65913
66628
|
|
65914
66629
|
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)([]),
|
65915
66630
|
selected = _useState[0],
|
@@ -66024,7 +66739,10 @@ var Filter = function Filter(props) {
|
|
66024
66739
|
return setVisible(false);
|
66025
66740
|
}
|
66026
66741
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
66027
|
-
className: cls()
|
66742
|
+
className: cls(),
|
66743
|
+
style: {
|
66744
|
+
width: filtersWidth
|
66745
|
+
}
|
66028
66746
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_2__.Menu, null, renderSelect(), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
66029
66747
|
className: cls({
|
66030
66748
|
'btn-box': true
|
@@ -68614,7 +69332,9 @@ var isHTMLElement = function isHTMLElement(target) {
|
|
68614
69332
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
68615
69333
|
/* harmony import */ var _alicloudfe_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(33049);
|
68616
69334
|
/* harmony import */ var _alicloudfe_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_2__);
|
68617
|
-
/* harmony import */ var
|
69335
|
+
/* harmony import */ var ahooks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(26245);
|
69336
|
+
/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2733);
|
69337
|
+
/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_3__);
|
68618
69338
|
var _excluded = ["children", "className", "ellipsisPosition", "endCharCount", "tooltipProps", "rows", "tooltip", "style"];
|
68619
69339
|
|
68620
69340
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
@@ -68630,10 +69350,11 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
68630
69350
|
|
68631
69351
|
|
68632
69352
|
|
69353
|
+
|
68633
69354
|
var Tooltip = _alicloudfe_components__WEBPACK_IMPORTED_MODULE_2__.Balloon.Tooltip;
|
68634
69355
|
|
68635
69356
|
var Ellipsis = function Ellipsis(props) {
|
68636
|
-
var
|
69357
|
+
var _cls;
|
68637
69358
|
|
68638
69359
|
var children = props.children,
|
68639
69360
|
className = props.className,
|
@@ -68647,13 +69368,14 @@ var Ellipsis = function Ellipsis(props) {
|
|
68647
69368
|
otherProps = _objectWithoutPropertiesLoose(props, _excluded);
|
68648
69369
|
|
68649
69370
|
var textRef = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)();
|
69371
|
+
var contentRef = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)();
|
68650
69372
|
|
68651
69373
|
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false),
|
68652
69374
|
tooltipVisible = _useState[0],
|
68653
69375
|
setTooltipVisible = _useState[1];
|
68654
69376
|
|
68655
|
-
var
|
68656
|
-
(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
|
69377
|
+
var contentSize = (0,ahooks__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(contentRef);
|
69378
|
+
(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(lodash_debounce__WEBPACK_IMPORTED_MODULE_3___default()(function () {
|
68657
69379
|
var _textRef$current$offs, _textRef$current, _textRef$current$scro, _textRef$current2, _textRef$current$offs2, _textRef$current3, _textRef$current$scro2, _textRef$current4;
|
68658
69380
|
|
68659
69381
|
var visible = false;
|
@@ -68671,41 +69393,29 @@ var Ellipsis = function Ellipsis(props) {
|
|
68671
69393
|
}
|
68672
69394
|
|
68673
69395
|
setTooltipVisible(visible);
|
68674
|
-
}, [
|
68675
|
-
|
68676
|
-
if (tooltipVisible && tooltip !== false) {
|
68677
|
-
var _cls;
|
68678
|
-
|
68679
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Tooltip, {
|
68680
|
-
trigger: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("span", {
|
68681
|
-
ref: textRef,
|
68682
|
-
style: _objectSpread({
|
68683
|
-
WebkitLineClamp: rows
|
68684
|
-
}, style),
|
68685
|
-
className: classnames__WEBPACK_IMPORTED_MODULE_0___default()((_cls = {
|
68686
|
-
'teamix-pro-ellipsis': true
|
68687
|
-
}, _cls[className != null ? className : ''] = true, _cls))
|
68688
|
-
}, children),
|
68689
|
-
align: "t",
|
68690
|
-
popupProps: {
|
68691
|
-
offset: [0, -6],
|
68692
|
-
animation: {
|
68693
|
-
"in": 'fadeIn',
|
68694
|
-
out: 'fadeOut'
|
68695
|
-
}
|
68696
|
-
}
|
68697
|
-
}, tooltip == null ? void 0 : tooltip.toString());
|
68698
|
-
}
|
68699
|
-
|
68700
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("span", {
|
69396
|
+
}, 300), [contentSize, children]);
|
69397
|
+
var renderContent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("span", {
|
68701
69398
|
ref: textRef,
|
68702
|
-
style: {
|
69399
|
+
style: _objectSpread({
|
68703
69400
|
WebkitLineClamp: rows
|
68704
|
-
},
|
68705
|
-
className: classnames__WEBPACK_IMPORTED_MODULE_0___default()((
|
68706
|
-
'teamix-pro-
|
68707
|
-
},
|
69401
|
+
}, style),
|
69402
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_0___default()((_cls = {
|
69403
|
+
'teamix-pro-ellipsis': true
|
69404
|
+
}, _cls[className != null ? className : ''] = true, _cls))
|
68708
69405
|
}, children);
|
69406
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("span", {
|
69407
|
+
ref: contentRef
|
69408
|
+
}, tooltipVisible && tooltip !== false && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Tooltip, {
|
69409
|
+
trigger: renderContent,
|
69410
|
+
align: "t",
|
69411
|
+
popupProps: {
|
69412
|
+
offset: [0, -6],
|
69413
|
+
animation: {
|
69414
|
+
"in": 'fadeIn',
|
69415
|
+
out: 'fadeOut'
|
69416
|
+
}
|
69417
|
+
}
|
69418
|
+
}, tooltip == null ? void 0 : tooltip.toString()), (!tooltipVisible || tooltip === false) && renderContent);
|
68709
69419
|
};
|
68710
69420
|
|
68711
69421
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Ellipsis);
|
@@ -69140,7 +69850,27 @@ var getTeamixIconConfig = function getTeamixIconConfig() {
|
|
69140
69850
|
/* harmony export */ });
|
69141
69851
|
var GLOBAL_CONFIG = {};
|
69142
69852
|
function setGlobalConfig(config) {
|
69143
|
-
|
69853
|
+
if (!config) {
|
69854
|
+
return;
|
69855
|
+
}
|
69856
|
+
|
69857
|
+
for (var key in config) {
|
69858
|
+
var configKey = key;
|
69859
|
+
|
69860
|
+
if (Object.prototype.hasOwnProperty.call(config, configKey)) {
|
69861
|
+
(function () {
|
69862
|
+
var configValue = config[configKey];
|
69863
|
+
|
69864
|
+
if (configKey === 'history') {
|
69865
|
+
GLOBAL_CONFIG[configKey] = typeof configValue === 'undefined' ? function () {
|
69866
|
+
return configValue;
|
69867
|
+
} : configValue;
|
69868
|
+
} else {
|
69869
|
+
GLOBAL_CONFIG[configKey] = configValue;
|
69870
|
+
}
|
69871
|
+
})();
|
69872
|
+
}
|
69873
|
+
}
|
69144
69874
|
}
|
69145
69875
|
function updateGlobalConfig(key, value) {
|
69146
69876
|
GLOBAL_CONFIG[key] = value;
|
@@ -69288,7 +70018,8 @@ function goToLink(link, history) {
|
|
69288
70018
|
return;
|
69289
70019
|
}
|
69290
70020
|
|
69291
|
-
var
|
70021
|
+
var globalConfigHistory = (0,_globalConfig__WEBPACK_IMPORTED_MODULE_0__/* .getGlobalConfig */ .Hi)('history');
|
70022
|
+
var globalHistory = typeof globalConfigHistory === 'function' ? globalConfigHistory() : globalConfigHistory;
|
69292
70023
|
var historyPushMethod = (globalHistory == null ? void 0 : globalHistory.push) || (history == null ? void 0 : history.push);
|
69293
70024
|
|
69294
70025
|
if (typeof historyPushMethod !== 'function' || /^https?:\/\//.test(href)) {
|
@@ -69352,6 +70083,8 @@ function goToLink(link, history) {
|
|
69352
70083
|
copyFailed: 'Copy failed',
|
69353
70084
|
expandAdvancedFilter: 'Expand Advanced Filter',
|
69354
70085
|
collapseAdvancedFilter: 'Collapse Advanced Filter',
|
70086
|
+
press: 'Press',
|
70087
|
+
toExitFullScreen: 'to exit fullscreen mode',
|
69355
70088
|
filter: 'Filter'
|
69356
70089
|
});
|
69357
70090
|
|
@@ -69504,6 +70237,8 @@ function getMessage(id, data) {
|
|
69504
70237
|
copyFailed: '複製失敗',
|
69505
70238
|
expandAdvancedFilter: '展開高級篩選',
|
69506
70239
|
collapseAdvancedFilter: '收起高級篩選',
|
70240
|
+
press: '按',
|
70241
|
+
toExitFullScreen: '即可退出全屏模式',
|
69507
70242
|
filter: '過濾器'
|
69508
70243
|
});
|
69509
70244
|
|
@@ -69966,7 +70701,7 @@ function resolveMaybePromiseMethod(fun) {
|
|
69966
70701
|
/** 通用数据请求能力,用来统一不同组件之间发送请求的能力,支持一些统一的配置项和请求处理过程 */
|
69967
70702
|
|
69968
70703
|
|
69969
|
-
function doCommonRequest(config, context, history) {
|
70704
|
+
function doCommonRequest(config, context, history, extraParams) {
|
69970
70705
|
var url = config.url,
|
69971
70706
|
method = config.method,
|
69972
70707
|
params = config.params,
|
@@ -70015,7 +70750,7 @@ function doCommonRequest(config, context, history) {
|
|
70015
70750
|
|
70016
70751
|
case 7:
|
70017
70752
|
requestContext = Object.assign({}, context, typeof beforeRequestContext === 'object' ? beforeRequestContext : {});
|
70018
|
-
paramsWithContext = Object.assign({}, handleExtendParmas(extendParams, requestContext), params, data);
|
70753
|
+
paramsWithContext = Object.assign({}, extraParams, handleExtendParmas(extendParams, requestContext), params, data);
|
70019
70754
|
requestConfig = (_requestConfig = {
|
70020
70755
|
url: (0,_getTargetValue__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)(url, requestContext),
|
70021
70756
|
method: (0,_getTargetValue__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)(method, requestContext)
|