antd-management-fast-framework 1.12.51 → 1.12.54
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.
|
@@ -70,7 +70,7 @@ export function buildDropdown({ key, tooltip: tooltipSource, type: typeSource, p
|
|
|
70
70
|
confirm?: boolean | undefined;
|
|
71
71
|
processing?: boolean | undefined;
|
|
72
72
|
iconProcessing?: JSX.Element | undefined;
|
|
73
|
-
}): JSX.Element | null;
|
|
73
|
+
}, ...args: any[]): JSX.Element | null;
|
|
74
74
|
export function buildMenu({ handleData: r, handleMenuClick, menuItems, }: {
|
|
75
75
|
handleData: any;
|
|
76
76
|
handleMenuClick?: (() => void) | undefined;
|
|
@@ -599,23 +599,7 @@ function buildDropdown(_ref4) {
|
|
|
599
599
|
|
|
600
600
|
if (confirmAdjust) {
|
|
601
601
|
if ((0, _tools.isBoolean)(confirmAdjust)) {
|
|
602
|
-
(0, _tools.recordObject)(
|
|
603
|
-
key: key,
|
|
604
|
-
type: type,
|
|
605
|
-
size: size,
|
|
606
|
-
icon: icon,
|
|
607
|
-
text: text,
|
|
608
|
-
danger: danger,
|
|
609
|
-
disabled: disabled,
|
|
610
|
-
hidden: hidden,
|
|
611
|
-
confirm: confirm,
|
|
612
|
-
handleData: handleData,
|
|
613
|
-
handleClick: handleClick,
|
|
614
|
-
processing: processing,
|
|
615
|
-
iconProcessing: iconProcessing,
|
|
616
|
-
style: style,
|
|
617
|
-
showIcon: showIcon
|
|
618
|
-
});
|
|
602
|
+
(0, _tools.recordObject)(arguments[0]);
|
|
619
603
|
throw new Error('buildMenu : confirm property in menu Items not allow bool when check confirm is true.');
|
|
620
604
|
}
|
|
621
605
|
|
|
@@ -847,94 +831,96 @@ function buildMenu(_ref5) {
|
|
|
847
831
|
return d;
|
|
848
832
|
});
|
|
849
833
|
return /*#__PURE__*/_react.default.createElement(_menu.default, {
|
|
850
|
-
|
|
851
|
-
var
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
confirm = o.confirm;
|
|
834
|
+
items: listMenuItem.map(function (o) {
|
|
835
|
+
var type = o.type,
|
|
836
|
+
key = o.key,
|
|
837
|
+
icon = o.icon,
|
|
838
|
+
text = o.text,
|
|
839
|
+
disabled = o.disabled,
|
|
840
|
+
hidden = o.hidden,
|
|
841
|
+
confirm = o.confirm;
|
|
842
|
+
|
|
843
|
+
if ((0, _tools.stringIsNullOrWhiteSpace)(key)) {
|
|
844
|
+
(0, _tools.showErrorMessage)({
|
|
845
|
+
message: 'key is not allow empty'
|
|
846
|
+
});
|
|
847
|
+
}
|
|
865
848
|
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
});
|
|
870
|
-
}
|
|
849
|
+
if (hidden) {
|
|
850
|
+
return null;
|
|
851
|
+
}
|
|
871
852
|
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
853
|
+
if (type === _constants.menuType.menu) {
|
|
854
|
+
if (confirm) {
|
|
855
|
+
var placement = confirm.placement,
|
|
856
|
+
title = confirm.title,
|
|
857
|
+
handleConfirm = confirm.handleConfirm,
|
|
858
|
+
okText = confirm.okText,
|
|
859
|
+
cancelText = confirm.cancelText;
|
|
860
|
+
return /*#__PURE__*/_react.default.createElement(_popconfirm.default, {
|
|
861
|
+
key: key,
|
|
862
|
+
placement: placement,
|
|
863
|
+
title: title,
|
|
864
|
+
onConfirm: function onConfirm() {
|
|
865
|
+
return handleConfirm({
|
|
866
|
+
key: key,
|
|
867
|
+
handleData: r
|
|
868
|
+
});
|
|
869
|
+
},
|
|
870
|
+
okText: okText,
|
|
871
|
+
cancelText: cancelText,
|
|
872
|
+
disabled: disabled,
|
|
873
|
+
overlayStyle: {
|
|
874
|
+
zIndex: 1060
|
|
875
|
+
}
|
|
876
|
+
}, /*#__PURE__*/_react.default.createElement(_menu.default.Item, {
|
|
877
|
+
className: _index.default.menuItemCustom,
|
|
878
|
+
style: {
|
|
879
|
+
display: 'inherit',
|
|
880
|
+
height: '32px'
|
|
881
|
+
},
|
|
882
|
+
disabled: disabled
|
|
883
|
+
}, /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
884
|
+
className: _index.default.menuItemCustomButton,
|
|
885
|
+
type: "text",
|
|
886
|
+
style: {
|
|
887
|
+
padding: '5px 12px',
|
|
888
|
+
border: 0,
|
|
889
|
+
height: '32px'
|
|
890
|
+
},
|
|
891
|
+
size: "small",
|
|
892
|
+
disabled: disabled
|
|
893
|
+
}, /*#__PURE__*/_react.default.createElement(_IconInfo.default, {
|
|
894
|
+
icon: icon || /*#__PURE__*/_react.default.createElement(_icons.EditOutlined, null),
|
|
895
|
+
text: text
|
|
896
|
+
}))));
|
|
897
|
+
}
|
|
875
898
|
|
|
876
|
-
|
|
877
|
-
if (confirm) {
|
|
878
|
-
var placement = confirm.placement,
|
|
879
|
-
title = confirm.title,
|
|
880
|
-
handleConfirm = confirm.handleConfirm,
|
|
881
|
-
okText = confirm.okText,
|
|
882
|
-
cancelText = confirm.cancelText;
|
|
883
|
-
return /*#__PURE__*/_react.default.createElement(_popconfirm.default, {
|
|
899
|
+
return /*#__PURE__*/_react.default.createElement(_menu.default.Item, {
|
|
884
900
|
key: key,
|
|
885
|
-
placement: placement,
|
|
886
|
-
title: title,
|
|
887
|
-
onConfirm: function onConfirm() {
|
|
888
|
-
return handleConfirm({
|
|
889
|
-
key: key,
|
|
890
|
-
handleData: r
|
|
891
|
-
});
|
|
892
|
-
},
|
|
893
|
-
okText: okText,
|
|
894
|
-
cancelText: cancelText,
|
|
895
|
-
disabled: disabled,
|
|
896
|
-
overlayStyle: {
|
|
897
|
-
zIndex: 1060
|
|
898
|
-
}
|
|
899
|
-
}, /*#__PURE__*/_react.default.createElement("li", {
|
|
900
|
-
className: _index.default.menuItemCustom,
|
|
901
|
-
style: {
|
|
902
|
-
display: 'inherit',
|
|
903
|
-
height: '32px'
|
|
904
|
-
}
|
|
905
|
-
}, /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
906
|
-
className: _index.default.menuItemCustomButton,
|
|
907
|
-
type: "text",
|
|
908
|
-
style: {
|
|
909
|
-
padding: '5px 12px',
|
|
910
|
-
border: 0,
|
|
911
|
-
height: '32px'
|
|
912
|
-
},
|
|
913
|
-
size: "small",
|
|
914
901
|
disabled: disabled
|
|
915
902
|
}, /*#__PURE__*/_react.default.createElement(_IconInfo.default, {
|
|
916
903
|
icon: icon || /*#__PURE__*/_react.default.createElement(_icons.EditOutlined, null),
|
|
917
904
|
text: text
|
|
918
|
-
}))
|
|
905
|
+
}));
|
|
919
906
|
}
|
|
920
907
|
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
text: text
|
|
927
|
-
}));
|
|
928
|
-
}
|
|
908
|
+
if (type === _constants.menuType.divider) {
|
|
909
|
+
return /*#__PURE__*/_react.default.createElement(_menu.default.Divider, {
|
|
910
|
+
key: key
|
|
911
|
+
});
|
|
912
|
+
}
|
|
929
913
|
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
914
|
+
return null;
|
|
915
|
+
}),
|
|
916
|
+
onClick: function onClick(e) {
|
|
917
|
+
var key = e.key;
|
|
918
|
+
handleMenuClick({
|
|
919
|
+
key: key,
|
|
920
|
+
handleData: r
|
|
933
921
|
});
|
|
934
922
|
}
|
|
935
|
-
|
|
936
|
-
return null;
|
|
937
|
-
}));
|
|
923
|
+
});
|
|
938
924
|
}
|
|
939
925
|
|
|
940
926
|
function buildTree(props) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "antd-management-fast-framework",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.54",
|
|
4
4
|
"description": "antd-management-fast-framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"antd-management-fast-framework"
|
|
@@ -209,9 +209,6 @@
|
|
|
209
209
|
"umi": "^3.5.24",
|
|
210
210
|
"umi-plugin-custom-extra": "^1.0.12"
|
|
211
211
|
},
|
|
212
|
-
"peerDependencies": {
|
|
213
|
-
"umi-plugin-custom-extra": "^1.0.12"
|
|
214
|
-
},
|
|
215
212
|
"filesOther": [
|
|
216
213
|
"es",
|
|
217
214
|
"lib",
|
|
@@ -220,7 +217,7 @@
|
|
|
220
217
|
"src/framework",
|
|
221
218
|
"src/utils"
|
|
222
219
|
],
|
|
223
|
-
"gitHead": "
|
|
220
|
+
"gitHead": "5a88e802e2d22814d689749b6f28c109a9819a54",
|
|
224
221
|
"gitHooks": {
|
|
225
222
|
"pre-commit": "lint-staged"
|
|
226
223
|
}
|