@zgfe/modules-settings 1.2.15-alpha.0 → 1.2.15-ht.0
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.
|
@@ -3,6 +3,11 @@ import { EditOutlined } from '@ant-design/icons';
|
|
|
3
3
|
import React, { useContext } from 'react';
|
|
4
4
|
import './index.less';
|
|
5
5
|
import { BizGlobalDataContext } from '@zgfe/business-lib';
|
|
6
|
+
var codeObj = {
|
|
7
|
+
email: 10085,
|
|
8
|
+
message: 1700125259,
|
|
9
|
+
phone: 1700125260
|
|
10
|
+
};
|
|
6
11
|
var ConfigItem = function ConfigItem(_ref) {
|
|
7
12
|
var _configFieldMap$get;
|
|
8
13
|
var onEdit = _ref.onEdit,
|
|
@@ -69,7 +74,7 @@ var ConfigItem = function ConfigItem(_ref) {
|
|
|
69
74
|
className: "title-right"
|
|
70
75
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
71
76
|
type: "primary",
|
|
72
|
-
disabled: !authority[
|
|
77
|
+
disabled: !authority[codeObj[item.type]],
|
|
73
78
|
onClick: function onClick() {
|
|
74
79
|
return onEdit(item);
|
|
75
80
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-settings",
|
|
3
|
-
"version": "1.2.15-
|
|
3
|
+
"version": "1.2.15-ht.0",
|
|
4
4
|
"module": "es/index.js",
|
|
5
5
|
"typings": "es/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"umi-request": "^1.4.0",
|
|
52
52
|
"yorkie": "^2.0.0"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "43c56c1a82207ce5c15359e8e2faacf84cffb04e",
|
|
55
55
|
"gitHooks": {
|
|
56
56
|
"pre-commit": "lint-staged"
|
|
57
57
|
}
|