@zgfe/business-lib 1.1.63-alpha.3 → 1.1.63-alpha.4
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.
|
@@ -13,10 +13,13 @@ var ConditionTypeList = function ConditionTypeList(props) {
|
|
|
13
13
|
textMode = _useContext.textMode,
|
|
14
14
|
openTagCondition = _useContext.openTagCondition,
|
|
15
15
|
openCdpCondition = _useContext.openCdpCondition,
|
|
16
|
+
openBusinessDataCondition = _useContext.openBusinessDataCondition,
|
|
17
|
+
openOrderDataCondition = _useContext.openOrderDataCondition,
|
|
16
18
|
openCondition = _useContext.openCondition,
|
|
17
19
|
cdpTip = _useContext.cdpTip;
|
|
18
20
|
var _useContext2 = useContext(BizGlobalDataContext),
|
|
19
|
-
menuNameMap = _useContext2.menuNameMap
|
|
21
|
+
menuNameMap = _useContext2.menuNameMap,
|
|
22
|
+
currentUser = _useContext2.currentUser;
|
|
20
23
|
if (!show || textMode) return null;
|
|
21
24
|
return /*#__PURE__*/React.createElement("div", {
|
|
22
25
|
className: "biz-user-condition-type-list"
|
|
@@ -70,7 +73,7 @@ var ConditionTypeList = function ConditionTypeList(props) {
|
|
|
70
73
|
title: cdpTip
|
|
71
74
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
72
75
|
type: "tishiicon"
|
|
73
|
-
})) : null)) : null, /*#__PURE__*/React.createElement("li", {
|
|
76
|
+
})) : null)) : null, openBusinessDataCondition || (currentUser === null || currentUser === void 0 ? void 0 : currentUser.serviceType) === 0 || (currentUser === null || currentUser === void 0 ? void 0 : currentUser.serviceType) === 2 ? /*#__PURE__*/React.createElement("li", {
|
|
74
77
|
className: "condition-type",
|
|
75
78
|
key: "business",
|
|
76
79
|
onClick: function onClick() {
|
|
@@ -78,7 +81,7 @@ var ConditionTypeList = function ConditionTypeList(props) {
|
|
|
78
81
|
}
|
|
79
82
|
}, /*#__PURE__*/React.createElement(Space, {
|
|
80
83
|
key: "business"
|
|
81
|
-
}, /*#__PURE__*/React.createElement(PlusOutlined, null), /*#__PURE__*/React.createElement("span", null, "\u4E1A\u52A1\u6570\u636E"))), /*#__PURE__*/React.createElement("li", {
|
|
84
|
+
}, /*#__PURE__*/React.createElement(PlusOutlined, null), /*#__PURE__*/React.createElement("span", null, "\u4E1A\u52A1\u6570\u636E"))) : null, openOrderDataCondition || (currentUser === null || currentUser === void 0 ? void 0 : currentUser.serviceType) === 0 || (currentUser === null || currentUser === void 0 ? void 0 : currentUser.serviceType) === 2 ? /*#__PURE__*/React.createElement("li", {
|
|
82
85
|
className: "condition-type",
|
|
83
86
|
key: "order",
|
|
84
87
|
onClick: function onClick() {
|
|
@@ -86,7 +89,7 @@ var ConditionTypeList = function ConditionTypeList(props) {
|
|
|
86
89
|
}
|
|
87
90
|
}, /*#__PURE__*/React.createElement(Space, {
|
|
88
91
|
key: "order"
|
|
89
|
-
}, /*#__PURE__*/React.createElement(PlusOutlined, null), /*#__PURE__*/React.createElement("span", null, "\u8BA2\u5355\u6570\u636E")))));
|
|
92
|
+
}, /*#__PURE__*/React.createElement(PlusOutlined, null), /*#__PURE__*/React.createElement("span", null, "\u8BA2\u5355\u6570\u636E"))) : null));
|
|
90
93
|
};
|
|
91
94
|
ConditionTypeList.defaultProps = {
|
|
92
95
|
show: true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/business-lib",
|
|
3
|
-
"version": "1.1.63-alpha.
|
|
3
|
+
"version": "1.1.63-alpha.4",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "dumi dev",
|
|
6
6
|
"docs:build": "dumi build",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"react": "^16.12.0 || ^17.0.0",
|
|
61
61
|
"yorkie": "^2.0.0"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "eab9c55875c9fc52462fec80875397c758cf7042"
|
|
64
64
|
}
|