@teamix/pro 1.2.31 → 1.2.32
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 +149 -84
- package/dist/pro.min.css +1 -1
- package/dist/pro.min.js +1 -1
- package/es/common.scss +22 -0
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/info/components/InfoValueItem/index.js +38 -12
- package/es/info/components/InfoValueItem/index.scss +1 -0
- package/es/info/components/ProInfoItem/index.js +4 -2
- package/es/info/components/ProInfoItem/index.scss +5 -0
- package/es/info/components/baseInfo/index.js +2 -1
- package/es/info/components/headerInfo/index.js +2 -1
- package/es/info/components/tableInfo/index.js +2 -1
- package/es/info/index.scss +2 -0
- package/es/info/typing.d.ts +3 -0
- package/es/table/components/ToolBar/Fullscreen.js +7 -11
- package/es/table/index.js +15 -12
- package/lib/common.scss +22 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/info/components/InfoValueItem/index.js +38 -12
- package/lib/info/components/InfoValueItem/index.scss +1 -0
- package/lib/info/components/ProInfoItem/index.js +4 -2
- package/lib/info/components/ProInfoItem/index.scss +5 -0
- package/lib/info/components/baseInfo/index.js +2 -1
- package/lib/info/components/headerInfo/index.js +2 -1
- package/lib/info/components/tableInfo/index.js +2 -1
- package/lib/info/index.scss +2 -0
- package/lib/info/typing.d.ts +3 -0
- package/lib/table/components/ToolBar/Fullscreen.js +7 -11
- package/lib/table/index.js +15 -12
- package/package.json +1 -1
package/dist/pro.js
CHANGED
@@ -53126,7 +53126,7 @@ var FieldSelectGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default()
|
|
53126
53126
|
value: fieldVal,
|
53127
53127
|
onChange: function onChange(value) {
|
53128
53128
|
setFieldVal(value);
|
53129
|
-
_onChange === null || _onChange === void 0 ? void 0 : _onChange(value);
|
53129
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange((0,_utils__WEBPACK_IMPORTED_MODULE_6__/* .formatterOnchangeValue */ .WO)(value));
|
53130
53130
|
},
|
53131
53131
|
valueAlias: valueAlias
|
53132
53132
|
}, others));
|
@@ -55553,7 +55553,8 @@ var cls = (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_2__.baseClass)('teamix-pro-f
|
|
55553
55553
|
|
55554
55554
|
var Copy = function Copy(props) {
|
55555
55555
|
var result = props.result,
|
55556
|
-
value = props.value
|
55556
|
+
value = props.value,
|
55557
|
+
render = props.render; // copy 的显隐状态
|
55557
55558
|
|
55558
55559
|
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(false),
|
55559
55560
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -55583,7 +55584,19 @@ var Copy = function Copy(props) {
|
|
55583
55584
|
style: {
|
55584
55585
|
opacity: copyVisible ? 1 : 0
|
55585
55586
|
},
|
55586
|
-
onClick: function onClick() {
|
55587
|
+
onClick: function onClick(e) {
|
55588
|
+
if (render === null || render === void 0 ? void 0 : render.stopPropagation) {
|
55589
|
+
var _e$stopPropagation;
|
55590
|
+
|
55591
|
+
e === null || e === void 0 ? void 0 : (_e$stopPropagation = e.stopPropagation) === null || _e$stopPropagation === void 0 ? void 0 : _e$stopPropagation.call(e);
|
55592
|
+
}
|
55593
|
+
|
55594
|
+
if (render === null || render === void 0 ? void 0 : render.preventDefault) {
|
55595
|
+
var _e$preventDefault;
|
55596
|
+
|
55597
|
+
e === null || e === void 0 ? void 0 : (_e$preventDefault = e.preventDefault) === null || _e$preventDefault === void 0 ? void 0 : _e$preventDefault.call(e);
|
55598
|
+
}
|
55599
|
+
|
55587
55600
|
if (copy_to_clipboard__WEBPACK_IMPORTED_MODULE_3___default()((value !== null && value !== void 0 ? value : '').toString())) {
|
55588
55601
|
_alicloudfe_components__WEBPACK_IMPORTED_MODULE_0__.Message.success((0,_teamix_utils__WEBPACK_IMPORTED_MODULE_2__.getMessage)('copySucceeded'));
|
55589
55602
|
} else {
|
@@ -55630,7 +55643,8 @@ var Description = function Description(props) {
|
|
55630
55643
|
if (render === null || render === void 0 ? void 0 : render.descriptionCopy) {
|
55631
55644
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Copy__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, {
|
55632
55645
|
result: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, description),
|
55633
|
-
value: copyText
|
55646
|
+
value: copyText,
|
55647
|
+
render: render
|
55634
55648
|
});
|
55635
55649
|
}
|
55636
55650
|
|
@@ -55654,7 +55668,8 @@ var Description = function Description(props) {
|
|
55654
55668
|
if (render.descriptionCopy) {
|
55655
55669
|
result = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Copy__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, {
|
55656
55670
|
result: result,
|
55657
|
-
value: copyText
|
55671
|
+
value: copyText,
|
55672
|
+
render: render
|
55658
55673
|
});
|
55659
55674
|
}
|
55660
55675
|
|
@@ -55831,7 +55846,8 @@ var Edit = function Edit(props) {
|
|
55831
55846
|
value = props.value,
|
55832
55847
|
renderEdit = props.renderEdit,
|
55833
55848
|
editPopConfirmProps = props.editPopConfirmProps,
|
55834
|
-
editOnClick = props.editOnClick
|
55849
|
+
editOnClick = props.editOnClick,
|
55850
|
+
render = props.render; // 设置浮层打开关闭 暴露给外层组件
|
55835
55851
|
|
55836
55852
|
var setPopConfirmVisibleFunc = function setPopConfirmVisibleFunc(status) {
|
55837
55853
|
if (!status) {
|
@@ -55852,6 +55868,18 @@ var Edit = function Edit(props) {
|
|
55852
55868
|
opacity: editVisible || popConfirmVisible ? 1 : 0
|
55853
55869
|
},
|
55854
55870
|
onClick: function onClick(e) {
|
55871
|
+
if (render === null || render === void 0 ? void 0 : render.stopPropagation) {
|
55872
|
+
var _e$stopPropagation;
|
55873
|
+
|
55874
|
+
e === null || e === void 0 ? void 0 : (_e$stopPropagation = e.stopPropagation) === null || _e$stopPropagation === void 0 ? void 0 : _e$stopPropagation.call(e);
|
55875
|
+
}
|
55876
|
+
|
55877
|
+
if (render === null || render === void 0 ? void 0 : render.preventDefault) {
|
55878
|
+
var _e$preventDefault;
|
55879
|
+
|
55880
|
+
e === null || e === void 0 ? void 0 : (_e$preventDefault = e.preventDefault) === null || _e$preventDefault === void 0 ? void 0 : _e$preventDefault.call(e);
|
55881
|
+
}
|
55882
|
+
|
55855
55883
|
if (editOnClick) {
|
55856
55884
|
editOnClick === null || editOnClick === void 0 ? void 0 : editOnClick(value, e);
|
55857
55885
|
return;
|
@@ -56244,7 +56272,8 @@ function individualization(dom, render, value, fieldValue) {
|
|
56244
56272
|
var copyText = typeof (render === null || render === void 0 ? void 0 : render.copy) === 'string' ? render === null || render === void 0 ? void 0 : render.copy : value;
|
56245
56273
|
result = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Copy__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, {
|
56246
56274
|
result: result,
|
56247
|
-
value: copyText
|
56275
|
+
value: copyText,
|
56276
|
+
render: render
|
56248
56277
|
});
|
56249
56278
|
} // 主文本 编辑
|
56250
56279
|
|
@@ -57591,8 +57620,6 @@ var CheckboxItem = _alicloudfe_components__WEBPACK_IMPORTED_MODULE_0__.Menu.Chec
|
|
57591
57620
|
var cls = (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_2__.baseClass)('teamix-select-group');
|
57592
57621
|
|
57593
57622
|
var SelectGroup = function SelectGroup(props) {
|
57594
|
-
var _dataSource$0$dataSou, _dataSource$;
|
57595
|
-
|
57596
57623
|
var trigger = props.trigger,
|
57597
57624
|
_props$triggerType = props.triggerType,
|
57598
57625
|
triggerType = _props$triggerType === void 0 ? 'click' : _props$triggerType,
|
@@ -57647,7 +57674,21 @@ var SelectGroup = function SelectGroup(props) {
|
|
57647
57674
|
_ref2$label = _ref2.label,
|
57648
57675
|
dataSourceAliasLabel = _ref2$label === void 0 ? 'label' : _ref2$label,
|
57649
57676
|
_ref2$children = _ref2.children,
|
57650
|
-
dataSourceAliasChildren = _ref2$children === void 0 ? 'children' : _ref2$children; //
|
57677
|
+
dataSourceAliasChildren = _ref2$children === void 0 ? 'children' : _ref2$children; // 获取 dataSource Value 值
|
57678
|
+
|
57679
|
+
|
57680
|
+
var getDataSourceValue = function getDataSourceValue(item) {
|
57681
|
+
var _ref3, _item$dataSourceAlias;
|
57682
|
+
|
57683
|
+
return (_ref3 = (_item$dataSourceAlias = item === null || item === void 0 ? void 0 : item[dataSourceAliasValue]) !== null && _item$dataSourceAlias !== void 0 ? _item$dataSourceAlias : item === null || item === void 0 ? void 0 : item[dataSourceAliasLabel]) !== null && _ref3 !== void 0 ? _ref3 : item === null || item === void 0 ? void 0 : item.toString();
|
57684
|
+
}; // 获取 dataSource Value 值
|
57685
|
+
|
57686
|
+
|
57687
|
+
var getDataSourceLabel = function getDataSourceLabel(item) {
|
57688
|
+
var _ref4, _item$dataSourceAlias2;
|
57689
|
+
|
57690
|
+
return (_ref4 = (_item$dataSourceAlias2 = item === null || item === void 0 ? void 0 : item[dataSourceAliasLabel]) !== null && _item$dataSourceAlias2 !== void 0 ? _item$dataSourceAlias2 : item === null || item === void 0 ? void 0 : item[dataSourceAliasValue]) !== null && _ref4 !== void 0 ? _ref4 : item === null || item === void 0 ? void 0 : item.toString();
|
57691
|
+
}; // 搜索框绑定值
|
57651
57692
|
|
57652
57693
|
|
57653
57694
|
var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(defaultSearchValue),
|
@@ -57662,7 +57703,7 @@ var SelectGroup = function SelectGroup(props) {
|
|
57662
57703
|
setDataSource = _useState6[1]; // 右侧 values 列表 展示当前的 key
|
57663
57704
|
|
57664
57705
|
|
57665
|
-
var _useState7 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)((
|
57706
|
+
var _useState7 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(getDataSourceValue(dataSource === null || dataSource === void 0 ? void 0 : dataSource[0])),
|
57666
57707
|
_useState8 = _slicedToArray(_useState7, 2),
|
57667
57708
|
activeKey = _useState8[0],
|
57668
57709
|
setActiveKey = _useState8[1];
|
@@ -57755,43 +57796,39 @@ var SelectGroup = function SelectGroup(props) {
|
|
57755
57796
|
setValue(valueProp);
|
57756
57797
|
}, [valueProp]);
|
57757
57798
|
(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
|
57758
|
-
var _dataSourceProp$0$dat, _dataSourceProp$;
|
57759
|
-
|
57760
57799
|
setDataSource(dataSourceProp !== null && dataSourceProp !== void 0 ? dataSourceProp : []);
|
57761
|
-
setActiveKey((
|
57800
|
+
setActiveKey(getDataSourceValue(dataSourceProp === null || dataSourceProp === void 0 ? void 0 : dataSourceProp[0]));
|
57762
57801
|
}, [dataSourceProp]); // 搜索值变化回调 过滤数据
|
57763
57802
|
|
57764
57803
|
var onSearch = function onSearch(value) {
|
57765
57804
|
setSearchValue(value);
|
57766
57805
|
var searchHandle = lodash_debounce__WEBPACK_IMPORTED_MODULE_5___default()(function () {
|
57767
|
-
var _newDataSource,
|
57806
|
+
var _newDataSource, _newDataSource2;
|
57768
57807
|
|
57769
57808
|
if (!value) {
|
57770
|
-
var _dataSourceProp$0$dat2, _dataSourceProp$2;
|
57771
|
-
|
57772
57809
|
setDataSource(dataSourceProp !== null && dataSourceProp !== void 0 ? dataSourceProp : []);
|
57773
|
-
setActiveKey((
|
57810
|
+
setActiveKey(getDataSourceValue(dataSourceProp === null || dataSourceProp === void 0 ? void 0 : dataSourceProp[0]));
|
57774
57811
|
onSearchChange === null || onSearchChange === void 0 ? void 0 : onSearchChange(value);
|
57775
57812
|
return;
|
57776
57813
|
}
|
57777
57814
|
|
57778
57815
|
var newDataSource = lodash_clonedeep__WEBPACK_IMPORTED_MODULE_4___default()(dataSourceProp !== null && dataSourceProp !== void 0 ? dataSourceProp : []);
|
57779
57816
|
(_newDataSource = newDataSource) === null || _newDataSource === void 0 ? void 0 : _newDataSource.forEach(function (item) {
|
57780
|
-
if (!(item
|
57781
|
-
var _item$
|
57817
|
+
if (!(getDataSourceLabel(item) && getDataSourceLabel(item).toString().toLocaleLowerCase().includes(value.toString().toLocaleLowerCase()))) {
|
57818
|
+
var _item$dataSourceAlias3, _item$dataSourceAlias4;
|
57782
57819
|
|
57783
|
-
item[dataSourceAliasChildren] = (_item$
|
57784
|
-
var
|
57820
|
+
item[dataSourceAliasChildren] = (_item$dataSourceAlias3 = (_item$dataSourceAlias4 = item[dataSourceAliasChildren]) === null || _item$dataSourceAlias4 === void 0 ? void 0 : _item$dataSourceAlias4.filter(function (valueItem) {
|
57821
|
+
var _getDataSourceLabel;
|
57785
57822
|
|
57786
|
-
return ((
|
57787
|
-
})) !== null && _item$
|
57823
|
+
return ((_getDataSourceLabel = getDataSourceLabel(valueItem)) !== null && _getDataSourceLabel !== void 0 ? _getDataSourceLabel : '').toString().toLocaleLowerCase().includes(value.toString().toLocaleLowerCase());
|
57824
|
+
})) !== null && _item$dataSourceAlias3 !== void 0 ? _item$dataSourceAlias3 : [];
|
57788
57825
|
}
|
57789
57826
|
});
|
57790
57827
|
newDataSource = newDataSource.filter(function (item) {
|
57791
57828
|
return item[dataSourceAliasChildren] && item[dataSourceAliasChildren].length > 0;
|
57792
57829
|
});
|
57793
57830
|
setDataSource(newDataSource);
|
57794
|
-
setActiveKey((
|
57831
|
+
setActiveKey(getDataSourceValue((_newDataSource2 = newDataSource) === null || _newDataSource2 === void 0 ? void 0 : _newDataSource2[0]));
|
57795
57832
|
onSearchChange === null || onSearchChange === void 0 ? void 0 : onSearchChange(value);
|
57796
57833
|
}, 100);
|
57797
57834
|
searchHandle();
|
@@ -57802,10 +57839,10 @@ var SelectGroup = function SelectGroup(props) {
|
|
57802
57839
|
var _dataSourceValues$dat, _values$valueAliasVal;
|
57803
57840
|
|
57804
57841
|
var dataSourceValues = dataSource === null || dataSource === void 0 ? void 0 : dataSource.find(function (item) {
|
57805
|
-
return item
|
57842
|
+
return getDataSourceValue(item) === getDataSourceValue(keyItem);
|
57806
57843
|
});
|
57807
57844
|
var values = value === null || value === void 0 ? void 0 : value.find(function (item) {
|
57808
|
-
return item[valueAliasKey] === keyItem
|
57845
|
+
return item[valueAliasKey] === getDataSourceValue(keyItem);
|
57809
57846
|
});
|
57810
57847
|
return (dataSourceValues === null || dataSourceValues === void 0 ? void 0 : (_dataSourceValues$dat = dataSourceValues[dataSourceAliasChildren]) === null || _dataSourceValues$dat === void 0 ? void 0 : _dataSourceValues$dat.length) === (values === null || values === void 0 ? void 0 : (_values$valueAliasVal = values[valueAliasValue]) === null || _values$valueAliasVal === void 0 ? void 0 : _values$valueAliasVal.length);
|
57811
57848
|
}; // key 值 checkbox 全选状态改变
|
@@ -57816,21 +57853,19 @@ var SelectGroup = function SelectGroup(props) {
|
|
57816
57853
|
var _cloneDeep$filter, _cloneDeep;
|
57817
57854
|
|
57818
57855
|
var allValues = dataSource === null || dataSource === void 0 ? void 0 : dataSource.find(function (item) {
|
57819
|
-
return item
|
57856
|
+
return getDataSourceValue(item) === getDataSourceValue(keyItem);
|
57820
57857
|
});
|
57821
57858
|
var newValues = (_cloneDeep$filter = (_cloneDeep = lodash_clonedeep__WEBPACK_IMPORTED_MODULE_4___default()(value)) === null || _cloneDeep === void 0 ? void 0 : _cloneDeep.filter(function (item) {
|
57822
|
-
return item[valueAliasKey] !== keyItem
|
57859
|
+
return item[valueAliasKey] !== getDataSourceValue(keyItem);
|
57823
57860
|
})) !== null && _cloneDeep$filter !== void 0 ? _cloneDeep$filter : [];
|
57824
57861
|
|
57825
57862
|
if ((allValues === null || allValues === void 0 ? void 0 : allValues[dataSourceAliasChildren]) && allValues[dataSourceAliasChildren].length > 0) {
|
57826
57863
|
var _newValues$push;
|
57827
57864
|
|
57828
57865
|
var childrenValues = allValues === null || allValues === void 0 ? void 0 : allValues[dataSourceAliasChildren].map(function (item) {
|
57829
|
-
|
57830
|
-
|
57831
|
-
return (_item$dataSourceAlias3 = item === null || item === void 0 ? void 0 : item[dataSourceAliasValue]) !== null && _item$dataSourceAlias3 !== void 0 ? _item$dataSourceAlias3 : '';
|
57866
|
+
return getDataSourceValue(item);
|
57832
57867
|
});
|
57833
|
-
newValues === null || newValues === void 0 ? void 0 : newValues.push((_newValues$push = {}, _defineProperty(_newValues$push, valueAliasKey, allValues
|
57868
|
+
newValues === null || newValues === void 0 ? void 0 : newValues.push((_newValues$push = {}, _defineProperty(_newValues$push, valueAliasKey, getDataSourceValue(allValues)), _defineProperty(_newValues$push, valueAliasValue, childrenValues), _newValues$push));
|
57834
57869
|
}
|
57835
57870
|
|
57836
57871
|
setValue(newValues);
|
@@ -57839,7 +57874,7 @@ var SelectGroup = function SelectGroup(props) {
|
|
57839
57874
|
var _cloneDeep$filter2, _cloneDeep2;
|
57840
57875
|
|
57841
57876
|
var _newValues = (_cloneDeep$filter2 = (_cloneDeep2 = lodash_clonedeep__WEBPACK_IMPORTED_MODULE_4___default()(value)) === null || _cloneDeep2 === void 0 ? void 0 : _cloneDeep2.filter(function (item) {
|
57842
|
-
return item[valueAliasKey] !== keyItem
|
57877
|
+
return item[valueAliasKey] !== getDataSourceValue(keyItem);
|
57843
57878
|
})) !== null && _cloneDeep$filter2 !== void 0 ? _cloneDeep$filter2 : [];
|
57844
57879
|
|
57845
57880
|
setValue(_newValues);
|
@@ -57850,7 +57885,7 @@ var SelectGroup = function SelectGroup(props) {
|
|
57850
57885
|
|
57851
57886
|
var onKeyCheckboxClick = function onKeyCheckboxClick(keyItem, event) {
|
57852
57887
|
event.stopPropagation();
|
57853
|
-
setActiveKey(keyItem
|
57888
|
+
setActiveKey(getDataSourceValue(keyItem));
|
57854
57889
|
}; // 获取 key 对应的 values
|
57855
57890
|
|
57856
57891
|
|
@@ -57862,7 +57897,7 @@ var SelectGroup = function SelectGroup(props) {
|
|
57862
57897
|
}
|
57863
57898
|
|
57864
57899
|
return (_dataSource$find$data = dataSource === null || dataSource === void 0 ? void 0 : (_dataSource$find = dataSource.find(function (item) {
|
57865
|
-
return item
|
57900
|
+
return getDataSourceValue(item) === key;
|
57866
57901
|
})) === null || _dataSource$find === void 0 ? void 0 : _dataSource$find[dataSourceAliasChildren]) !== null && _dataSource$find$data !== void 0 ? _dataSource$find$data : [];
|
57867
57902
|
}; // 获取 key 对应的中间态
|
57868
57903
|
|
@@ -57871,12 +57906,12 @@ var SelectGroup = function SelectGroup(props) {
|
|
57871
57906
|
var _value$find$valueAlia, _value$find, _dataSource$find$data2, _dataSource$find2, _dataSource$find2$dat;
|
57872
57907
|
|
57873
57908
|
var valueItem = (_value$find$valueAlia = value === null || value === void 0 ? void 0 : (_value$find = value.find(function (item) {
|
57874
|
-
return item[valueAliasKey] === keyItem
|
57909
|
+
return item[valueAliasKey] === getDataSourceValue(keyItem);
|
57875
57910
|
})) === null || _value$find === void 0 ? void 0 : _value$find[valueAliasValue]) !== null && _value$find$valueAlia !== void 0 ? _value$find$valueAlia : [];
|
57876
57911
|
var dataSourceValueItem = (_dataSource$find$data2 = dataSource === null || dataSource === void 0 ? void 0 : (_dataSource$find2 = dataSource.find(function (item) {
|
57877
|
-
return item
|
57912
|
+
return getDataSourceValue(item) === getDataSourceValue(keyItem);
|
57878
57913
|
})) === null || _dataSource$find2 === void 0 ? void 0 : (_dataSource$find2$dat = _dataSource$find2[dataSourceAliasChildren]) === null || _dataSource$find2$dat === void 0 ? void 0 : _dataSource$find2$dat.map(function (item) {
|
57879
|
-
return item
|
57914
|
+
return getDataSourceValue(item);
|
57880
57915
|
})) !== null && _dataSource$find$data2 !== void 0 ? _dataSource$find$data2 : [];
|
57881
57916
|
return valueItem.length !== 0 && valueItem.length < dataSourceValueItem.length;
|
57882
57917
|
}; // 获取 value 对应的 checkbox 选中状态
|
@@ -57888,7 +57923,7 @@ var SelectGroup = function SelectGroup(props) {
|
|
57888
57923
|
var values = (_value$find$valueAlia2 = value === null || value === void 0 ? void 0 : (_value$find2 = value.find(function (item) {
|
57889
57924
|
return item[valueAliasKey] === key;
|
57890
57925
|
})) === null || _value$find2 === void 0 ? void 0 : _value$find2[valueAliasValue]) !== null && _value$find$valueAlia2 !== void 0 ? _value$find$valueAlia2 : [];
|
57891
|
-
return values === null || values === void 0 ? void 0 : values.includes(valueItem
|
57926
|
+
return values === null || values === void 0 ? void 0 : values.includes(getDataSourceValue(valueItem));
|
57892
57927
|
}; // value 对应的 checkbox 状态修改
|
57893
57928
|
|
57894
57929
|
|
@@ -57906,14 +57941,14 @@ var SelectGroup = function SelectGroup(props) {
|
|
57906
57941
|
var _activeKeyItem$valueA, _activeKeyItem, _activeKeyItem2;
|
57907
57942
|
|
57908
57943
|
var keyValues = (_activeKeyItem$valueA = (_activeKeyItem = activeKeyItem) === null || _activeKeyItem === void 0 ? void 0 : _activeKeyItem[valueAliasValue]) !== null && _activeKeyItem$valueA !== void 0 ? _activeKeyItem$valueA : [];
|
57909
|
-
keyValues.push(valueItem
|
57944
|
+
keyValues.push(getDataSourceValue(valueItem));
|
57910
57945
|
var newKeyValues = Array.from(new Set(keyValues));
|
57911
57946
|
|
57912
57947
|
if (!((_activeKeyItem2 = activeKeyItem) === null || _activeKeyItem2 === void 0 ? void 0 : _activeKeyItem2[valueAliasKey])) {
|
57913
57948
|
var dataSourceActiveKeyItem = lodash_clonedeep__WEBPACK_IMPORTED_MODULE_4___default()(dataSource === null || dataSource === void 0 ? void 0 : dataSource.find(function (item) {
|
57914
|
-
return item
|
57949
|
+
return getDataSourceValue(item) === key;
|
57915
57950
|
}));
|
57916
|
-
activeKeyItem = _defineProperty({}, valueAliasKey, dataSourceActiveKeyItem
|
57951
|
+
activeKeyItem = _defineProperty({}, valueAliasKey, getDataSourceValue(dataSourceActiveKeyItem));
|
57917
57952
|
}
|
57918
57953
|
|
57919
57954
|
activeKeyItem[valueAliasValue] = newKeyValues;
|
@@ -57924,15 +57959,15 @@ var SelectGroup = function SelectGroup(props) {
|
|
57924
57959
|
var _activeKeyItem$valueA2, _activeKeyItem4, _activeKeyItem5;
|
57925
57960
|
|
57926
57961
|
var _keyValues = ((_activeKeyItem$valueA2 = (_activeKeyItem4 = activeKeyItem) === null || _activeKeyItem4 === void 0 ? void 0 : _activeKeyItem4[valueAliasValue]) !== null && _activeKeyItem$valueA2 !== void 0 ? _activeKeyItem$valueA2 : []).filter(function (item) {
|
57927
|
-
return item !== valueItem
|
57962
|
+
return item !== getDataSourceValue(valueItem);
|
57928
57963
|
});
|
57929
57964
|
|
57930
57965
|
if (!((_activeKeyItem5 = activeKeyItem) === null || _activeKeyItem5 === void 0 ? void 0 : _activeKeyItem5[valueAliasKey])) {
|
57931
57966
|
var _dataSourceActiveKeyItem = lodash_clonedeep__WEBPACK_IMPORTED_MODULE_4___default()(dataSource === null || dataSource === void 0 ? void 0 : dataSource.find(function (item) {
|
57932
|
-
return item
|
57967
|
+
return getDataSourceValue(item) === key;
|
57933
57968
|
}));
|
57934
57969
|
|
57935
|
-
activeKeyItem = _defineProperty({}, valueAliasKey, _dataSourceActiveKeyItem
|
57970
|
+
activeKeyItem = _defineProperty({}, valueAliasKey, getDataSourceValue(_dataSourceActiveKeyItem));
|
57936
57971
|
}
|
57937
57972
|
|
57938
57973
|
if (_keyValues.length > 0) {
|
@@ -57978,7 +58013,7 @@ var SelectGroup = function SelectGroup(props) {
|
|
57978
58013
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(CheckboxItem, {
|
57979
58014
|
className: cls({
|
57980
58015
|
checkbox: true,
|
57981
|
-
'checkbox-active': item
|
58016
|
+
'checkbox-active': getDataSourceValue(item) === activeKey
|
57982
58017
|
}),
|
57983
58018
|
key: index,
|
57984
58019
|
checked: hasChecked(item),
|
@@ -57998,8 +58033,8 @@ var SelectGroup = function SelectGroup(props) {
|
|
57998
58033
|
className: cls('checkbox-before-icon'),
|
57999
58034
|
size: "small"
|
58000
58035
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_teamix_utils__WEBPACK_IMPORTED_MODULE_2__.Ellipsis, {
|
58001
|
-
tooltip: item
|
58002
|
-
}, item
|
58036
|
+
tooltip: getDataSourceLabel(item)
|
58037
|
+
}, getDataSourceLabel(item))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_teamix_icon__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, {
|
58003
58038
|
type: "right-line",
|
58004
58039
|
className: cls('checkbox-after-icon'),
|
58005
58040
|
size: "small"
|
@@ -58020,8 +58055,8 @@ var SelectGroup = function SelectGroup(props) {
|
|
58020
58055
|
onValueItemChange(activeKey, item, status);
|
58021
58056
|
}
|
58022
58057
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_teamix_utils__WEBPACK_IMPORTED_MODULE_2__.Ellipsis, {
|
58023
|
-
tooltip: item
|
58024
|
-
}, item
|
58058
|
+
tooltip: getDataSourceLabel(item)
|
58059
|
+
}, getDataSourceLabel(item)));
|
58025
58060
|
}))), (!dataSource || dataSource.length === 0) && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
|
58026
58061
|
className: cls('no-data')
|
58027
58062
|
}, (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_2__.getMessage)('noData'))), (showFooter || renderFooter) && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_0__.Divider, {
|
@@ -66305,7 +66340,7 @@ _teamix_icon__WEBPACK_IMPORTED_MODULE_14__/* ["default"].setConfig */ .Z.setConf
|
|
66305
66340
|
// export * from './sidebar';
|
66306
66341
|
|
66307
66342
|
|
66308
|
-
var version = '1.2.
|
66343
|
+
var version = '1.2.32';
|
66309
66344
|
|
66310
66345
|
|
66311
66346
|
/***/ }),
|
@@ -66435,7 +66470,7 @@ var ProInfoGroup = function ProInfoGroup(props) {
|
|
66435
66470
|
/* harmony import */ var _alicloudfe_components__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(33049);
|
66436
66471
|
/* harmony import */ var _alicloudfe_components__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_6__);
|
66437
66472
|
/* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(28758);
|
66438
|
-
var _excluded = ["type", "value", "render", "infoItem", "record", "actionRef", "dataSource", "context"];
|
66473
|
+
var _excluded = ["type", "value", "render", "infoItem", "record", "actionRef", "dataSource", "context", "props"];
|
66439
66474
|
|
66440
66475
|
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); }
|
66441
66476
|
|
@@ -66469,6 +66504,7 @@ var InfoValueItem = function InfoValueItem(props) {
|
|
66469
66504
|
actionRef = props.actionRef,
|
66470
66505
|
dataSource = props.dataSource,
|
66471
66506
|
context = props.context,
|
66507
|
+
fieldProps = props.props,
|
66472
66508
|
others = _objectWithoutPropertiesLoose(props, _excluded);
|
66473
66509
|
|
66474
66510
|
var dataIndex = infoItem.dataIndex,
|
@@ -66482,7 +66518,8 @@ var InfoValueItem = function InfoValueItem(props) {
|
|
66482
66518
|
_infoItem$successMess = infoItem.successMessage,
|
66483
66519
|
successMessage = _infoItem$successMess === void 0 ? 'success' : _infoItem$successMess,
|
66484
66520
|
actions = infoItem.actions,
|
66485
|
-
extra = infoItem.extra
|
66521
|
+
extra = infoItem.extra,
|
66522
|
+
valueType = infoItem.valueType; // 获取处理过的 render
|
66486
66523
|
|
66487
66524
|
var getRender = function getRender() {
|
66488
66525
|
var _ref, _ref2;
|
@@ -66494,7 +66531,31 @@ var InfoValueItem = function InfoValueItem(props) {
|
|
66494
66531
|
}
|
66495
66532
|
|
66496
66533
|
var newRender = processBuriedPoint((_ref = processRenderFunction((_ref2 = render) != null ? _ref2 : {}, value, record)) != null ? _ref : {}, value, record);
|
66534
|
+
|
66535
|
+
if (valueType === 'selectGroup') {
|
66536
|
+
newRender = _objectSpread(_objectSpread({
|
66537
|
+
maxShowNumber: 'auto',
|
66538
|
+
foldText: 'more'
|
66539
|
+
}, newRender), {}, {
|
66540
|
+
ellipsis: false
|
66541
|
+
});
|
66542
|
+
}
|
66543
|
+
|
66497
66544
|
return newRender;
|
66545
|
+
};
|
66546
|
+
|
66547
|
+
var getFieldProps = function getFieldProps() {
|
66548
|
+
if (valueType === 'selectGroup') {
|
66549
|
+
return _objectSpread({
|
66550
|
+
valueAlias: {
|
66551
|
+
value: 'TagValue',
|
66552
|
+
key: 'TagKey'
|
66553
|
+
},
|
66554
|
+
layout: 'compact'
|
66555
|
+
}, fieldProps);
|
66556
|
+
}
|
66557
|
+
|
66558
|
+
return fieldProps;
|
66498
66559
|
}; // 获取处理过的 dataSource
|
66499
66560
|
|
66500
66561
|
|
@@ -66691,7 +66752,7 @@ var InfoValueItem = function InfoValueItem(props) {
|
|
66691
66752
|
value: value,
|
66692
66753
|
render: getRender(),
|
66693
66754
|
dataSource: getDataSource()
|
66694
|
-
}, others)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().createElement(_teamix_pop_confirm__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, {
|
66755
|
+
}, others, getFieldProps())), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().createElement(_teamix_pop_confirm__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, {
|
66695
66756
|
visible: popConfirmVisible,
|
66696
66757
|
content: renderContent(),
|
66697
66758
|
triggerType: "click",
|
@@ -66723,7 +66784,7 @@ var InfoValueItem = function InfoValueItem(props) {
|
|
66723
66784
|
value: value,
|
66724
66785
|
render: getRender(),
|
66725
66786
|
dataSource: getDataSource()
|
66726
|
-
}, others)), renderAction(), extra && extra);
|
66787
|
+
}, others, getFieldProps())), renderAction(), extra && extra);
|
66727
66788
|
};
|
66728
66789
|
|
66729
66790
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (InfoValueItem);
|
@@ -66782,7 +66843,7 @@ var ProInfoItem = function ProInfoItem(prop) {
|
|
66782
66843
|
className: cls('value')
|
66783
66844
|
}, loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("div", {
|
66784
66845
|
className: cls('base-skeleton-box')
|
66785
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(___WEBPACK_IMPORTED_MODULE_1__.ProSkeletonRaw.Info.Item, null)), !loading &&
|
66846
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(___WEBPACK_IMPORTED_MODULE_1__.ProSkeletonRaw.Info.Item, null)), !loading && value)));
|
66786
66847
|
}
|
66787
66848
|
|
66788
66849
|
if (headerInfoLayout) {
|
@@ -66790,7 +66851,9 @@ var ProInfoItem = function ProInfoItem(prop) {
|
|
66790
66851
|
labelGutter = _headerInfoLayout$lab === void 0 ? '16px' : _headerInfoLayout$lab;
|
66791
66852
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("div", {
|
66792
66853
|
className: cls()
|
66793
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(Row,
|
66854
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(Row, {
|
66855
|
+
className: cls('header-row')
|
66856
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("div", {
|
66794
66857
|
className: cls('header-label')
|
66795
66858
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_teamix_utils__WEBPACK_IMPORTED_MODULE_2__.LabelIconTip, {
|
66796
66859
|
label: label,
|
@@ -66904,7 +66967,8 @@ var ProBaseInfo = function ProBaseInfo(props) {
|
|
66904
66967
|
infoItem: item,
|
66905
66968
|
record: dataSource != null ? dataSource : result,
|
66906
66969
|
actionRef: actionRef,
|
66907
|
-
context: context
|
66970
|
+
context: context,
|
66971
|
+
props: item.props
|
66908
66972
|
}),
|
66909
66973
|
baseInfoLayout: getFormItemLayout((_item$colSpan = item == null ? void 0 : item.colSpan) != null ? _item$colSpan : 0),
|
66910
66974
|
tooltip: item.tooltip,
|
@@ -66992,7 +67056,8 @@ var ProHeaderInfo = function ProHeaderInfo(props) {
|
|
66992
67056
|
dataSource: item.dataSource,
|
66993
67057
|
infoItem: item,
|
66994
67058
|
record: dataSource != null ? dataSource : result,
|
66995
|
-
actionRef: actionRef
|
67059
|
+
actionRef: actionRef,
|
67060
|
+
props: item.props
|
66996
67061
|
}),
|
66997
67062
|
headerInfoLayout: layout != null ? layout : defaultLayout,
|
66998
67063
|
tooltip: item.tooltip,
|
@@ -67082,7 +67147,8 @@ var ProTableInfo = function ProTableInfo(props) {
|
|
67082
67147
|
dataSource: item.dataSource,
|
67083
67148
|
infoItem: item,
|
67084
67149
|
record: dataSource != null ? dataSource : result,
|
67085
|
-
actionRef: actionRef
|
67150
|
+
actionRef: actionRef,
|
67151
|
+
props: item.props
|
67086
67152
|
});
|
67087
67153
|
};
|
67088
67154
|
|
@@ -71487,25 +71553,21 @@ var FullScreen = function FullScreen(props) {
|
|
71487
71553
|
normalDataFilterForm = _actionRef$current.normalDataFilterForm,
|
71488
71554
|
fullscreenDataFilterForm = _actionRef$current.fullscreenDataFilterForm;
|
71489
71555
|
|
71490
|
-
function closeByESC(e) {
|
71556
|
+
var closeByESC = function closeByESC(e) {
|
71491
71557
|
if (visible && e.code === 'Escape') {
|
71492
|
-
var _actionRef$current2
|
71558
|
+
var _actionRef$current2;
|
71493
71559
|
|
71494
|
-
actionRef == null ? void 0 : (_actionRef$current2 = actionRef.current) == null ? void 0 : _actionRef$current2.
|
71495
|
-
actionRef == null ? void 0 : (_actionRef$current3 = actionRef.current) == null ? void 0 : _actionRef$current3.fullScreen == null ? void 0 : _actionRef$current3.fullScreen();
|
71560
|
+
actionRef == null ? void 0 : (_actionRef$current2 = actionRef.current) == null ? void 0 : _actionRef$current2.fullScreen == null ? void 0 : _actionRef$current2.fullScreen();
|
71496
71561
|
}
|
71497
|
-
} // 监听esc按钮
|
71562
|
+
}; // 监听esc按钮
|
71498
71563
|
|
71499
71564
|
|
71500
71565
|
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
71501
|
-
var _actionRef$current4;
|
71502
|
-
|
71503
|
-
actionRef == null ? void 0 : (_actionRef$current4 = actionRef.current) == null ? void 0 : _actionRef$current4.setFullScreenState == null ? void 0 : _actionRef$current4.setFullScreenState(visible);
|
71504
71566
|
window.addEventListener('keydown', closeByESC);
|
71505
71567
|
return function () {
|
71506
71568
|
window.removeEventListener('keydown', closeByESC);
|
71507
71569
|
};
|
71508
|
-
}, [visible]);
|
71570
|
+
}, [visible, actionRef]);
|
71509
71571
|
|
71510
71572
|
var afterClose = function afterClose() {
|
71511
71573
|
normalDataFilterForm == null ? void 0 : normalDataFilterForm.setValues(fullscreenDataFilterForm.values);
|
@@ -71543,9 +71605,9 @@ var FullScreen = function FullScreen(props) {
|
|
71543
71605
|
zIndex: 999
|
71544
71606
|
},
|
71545
71607
|
onRequestClose: function onRequestClose() {
|
71546
|
-
var _actionRef$
|
71608
|
+
var _actionRef$current3;
|
71547
71609
|
|
71548
|
-
actionRef == null ? void 0 : (_actionRef$
|
71610
|
+
actionRef == null ? void 0 : (_actionRef$current3 = actionRef.current) == null ? void 0 : _actionRef$current3.fullScreen == null ? void 0 : _actionRef$current3.fullScreen();
|
71549
71611
|
}
|
71550
71612
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
71551
71613
|
className: "teamix-pro-table-full-screen"
|
@@ -72162,16 +72224,19 @@ var ProTable = function ProTable(props) {
|
|
72162
72224
|
|
72163
72225
|
(0,_utils__WEBPACK_IMPORTED_MODULE_7__/* .useActionType */ .tx)(actionRef, {
|
72164
72226
|
fullScreen: function fullScreen() {
|
72227
|
+
var _actionRef$current2;
|
72228
|
+
|
72165
72229
|
var state = !fullscreenState; // 全屏时需要重新计算header高度
|
72166
72230
|
|
72167
72231
|
getHeaderHeight().then(function (height) {
|
72168
72232
|
setHeaderHeight(height);
|
72169
72233
|
});
|
72170
72234
|
setFullscreenState(state);
|
72235
|
+
actionRef == null ? void 0 : (_actionRef$current2 = actionRef.current) == null ? void 0 : _actionRef$current2.setState == null ? void 0 : _actionRef$current2.setState('fullScreenState', state);
|
72171
72236
|
return state;
|
72172
72237
|
},
|
72173
72238
|
setColumn: function setColumn(newColumns, update) {
|
72174
|
-
var _actionRef$
|
72239
|
+
var _actionRef$current3;
|
72175
72240
|
|
72176
72241
|
if (update === void 0) {
|
72177
72242
|
update = true;
|
@@ -72179,7 +72244,7 @@ var ProTable = function ProTable(props) {
|
|
72179
72244
|
|
72180
72245
|
var columns = processColumns(newColumns, propsColumns);
|
72181
72246
|
setFilteredColumns(columns);
|
72182
|
-
(_actionRef$
|
72247
|
+
(_actionRef$current3 = actionRef.current) == null ? void 0 : _actionRef$current3.setState == null ? void 0 : _actionRef$current3.setState('filterColumns', columns);
|
72183
72248
|
|
72184
72249
|
if (update) {
|
72185
72250
|
(0,_utils__WEBPACK_IMPORTED_MODULE_7__/* .emit */ .j8)('refreshFilterState', newColumns);
|
@@ -72204,11 +72269,11 @@ var ProTable = function ProTable(props) {
|
|
72204
72269
|
_request(params);
|
72205
72270
|
},
|
72206
72271
|
reset: function reset() {
|
72207
|
-
var _actionRef$
|
72272
|
+
var _actionRef$current4, _dataFilterForm, _request2;
|
72208
72273
|
|
72209
72274
|
(propsDataFilter == null ? void 0 : propsDataFilter.onReset) && (propsDataFilter == null ? void 0 : propsDataFilter.onReset()); // 清空列过滤参数
|
72210
72275
|
|
72211
|
-
(_actionRef$
|
72276
|
+
(_actionRef$current4 = actionRef.current) == null ? void 0 : _actionRef$current4.setFilterRules == null ? void 0 : _actionRef$current4.setFilterRules({});
|
72212
72277
|
(_dataFilterForm = dataFilterForm) == null ? void 0 : _dataFilterForm.reset();
|
72213
72278
|
setCurrentPage(1);
|
72214
72279
|
|
@@ -72325,7 +72390,7 @@ var ProTable = function ProTable(props) {
|
|
72325
72390
|
}); // 请求函数
|
72326
72391
|
|
72327
72392
|
function _request(params, noLoading) {
|
72328
|
-
var _dataFilterForm2, _actionRef$current$ge, _actionRef$
|
72393
|
+
var _dataFilterForm2, _actionRef$current$ge, _actionRef$current5, _objectSpread2;
|
72329
72394
|
|
72330
72395
|
// 如果没有传 url 且没有 customRequest,直接返回
|
72331
72396
|
if (!url && !customRequest) {
|
@@ -72340,7 +72405,7 @@ var ProTable = function ProTable(props) {
|
|
72340
72405
|
|
72341
72406
|
var dataFilterParams = toJS((_dataFilterForm2 = dataFilterForm) == null ? void 0 : _dataFilterForm2.values); // 列过滤请求参数
|
72342
72407
|
|
72343
|
-
var columnsFilterParams = (_actionRef$current$ge = (_actionRef$
|
72408
|
+
var columnsFilterParams = (_actionRef$current$ge = (_actionRef$current5 = actionRef.current) == null ? void 0 : _actionRef$current5.getFilterRules == null ? void 0 : _actionRef$current5.getFilterRules()) != null ? _actionRef$current$ge : {}; // 格式化后的请求参数
|
72344
72409
|
|
72345
72410
|
var requestData = formatParams(_objectSpread(_objectSpread({}, !showPagination ? _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, dataFilterParams), propsParams), sortParams), columnsFilterParams) : _objectSpread(_objectSpread(_objectSpread(_objectSpread((_objectSpread2 = {}, _objectSpread2[targetPageKey] = currentPage, _objectSpread2[targetPageSizeKey] = pageSize, _objectSpread2), dataFilterParams), propsParams), sortParams), columnsFilterParams)), params));
|
72346
72411
|
|
@@ -72443,11 +72508,11 @@ var ProTable = function ProTable(props) {
|
|
72443
72508
|
mode: 'inline'
|
72444
72509
|
}, propsDataFilter), {}, {
|
72445
72510
|
onFilter: function onFilter(values) {
|
72446
|
-
var _actionRef$
|
72511
|
+
var _actionRef$current6, _request3;
|
72447
72512
|
|
72448
72513
|
(propsDataFilter == null ? void 0 : propsDataFilter.onFilter) && (propsDataFilter == null ? void 0 : propsDataFilter.onFilter(values)); // 搜索变化时,暂时先清空选择
|
72449
72514
|
|
72450
|
-
(_actionRef$
|
72515
|
+
(_actionRef$current6 = actionRef.current) == null ? void 0 : _actionRef$current6.clearRowSelection == null ? void 0 : _actionRef$current6.clearRowSelection();
|
72451
72516
|
setCurrentPage(1);
|
72452
72517
|
|
72453
72518
|
_request((_request3 = {}, _request3[targetPageKey] = 1, _request3));
|
@@ -72544,24 +72609,24 @@ var ProTable = function ProTable(props) {
|
|
72544
72609
|
|
72545
72610
|
var renderFooter = function renderFooter() {
|
72546
72611
|
function onChangePagination(currentPage, params) {
|
72547
|
-
var _actionRef$
|
72612
|
+
var _actionRef$current7, _objectSpread3;
|
72548
72613
|
|
72549
72614
|
if (params === void 0) {
|
72550
72615
|
params = {};
|
72551
72616
|
}
|
72552
72617
|
|
72553
72618
|
// 翻页暂时先清空选择
|
72554
|
-
(_actionRef$
|
72619
|
+
(_actionRef$current7 = actionRef.current) == null ? void 0 : _actionRef$current7.clearRowSelection == null ? void 0 : _actionRef$current7.clearRowSelection();
|
72555
72620
|
setCurrentPage(currentPage);
|
72556
72621
|
|
72557
72622
|
_request(_objectSpread((_objectSpread3 = {}, _objectSpread3[targetPageKey] = currentPage, _objectSpread3), params));
|
72558
72623
|
}
|
72559
72624
|
|
72560
72625
|
function onChangePaginationSize(currentPageSize) {
|
72561
|
-
var _actionRef$
|
72626
|
+
var _actionRef$current8, _request5;
|
72562
72627
|
|
72563
72628
|
// 翻页暂时先清空选择
|
72564
|
-
(_actionRef$
|
72629
|
+
(_actionRef$current8 = actionRef.current) == null ? void 0 : _actionRef$current8.clearRowSelection == null ? void 0 : _actionRef$current8.clearRowSelection();
|
72565
72630
|
setPageSize(currentPageSize);
|
72566
72631
|
setCurrentPage(1);
|
72567
72632
|
|