@titaui/pc 1.11.36-beta.1 → 1.11.36

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.
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports["default"] = void 0;
8
+ exports["default"] = _default;
9
9
 
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
 
@@ -35,51 +35,34 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
35
35
 
36
36
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
37
37
 
38
- var EStatusDropdown = function EStatusDropdown(props) {
39
- // eslint-disable-next-line react/prop-types
38
+ function _default(props) {
40
39
  var onChange = props.onChange,
41
40
  checked = props.checked,
42
41
  hasAuth = props.hasAuth;
43
42
 
44
- var _useState = (0, _react.useState)("tu-icon-notstart"),
43
+ var _useState = (0, _react.useState)('tu-icon-notstart'),
45
44
  _useState2 = _slicedToArray(_useState, 2),
46
45
  status = _useState2[0],
47
46
  setStatus = _useState2[1];
48
47
 
49
48
  var onMenuClickHandler = function onMenuClickHandler(name) {
50
49
  setStatus(name);
51
-
52
- if (onChange) {
53
- onChange(name);
54
- }
50
+ onChange && onChange(name);
55
51
  };
56
52
 
57
53
  (0, _react.useEffect)(function () {
58
54
  setStatus(checked);
59
55
  }, [checked]);
60
-
61
- if (!hasAuth) {
62
- return /*#__PURE__*/_react["default"].createElement("span", {
63
- style: {
64
- color: "#89919F",
65
- fontSize: 16,
66
- marginRight: 4,
67
- verticalAlign: "baseline"
68
- },
69
- className: (0, _classnames["default"])(status)
70
- });
71
- }
72
-
73
56
  return /*#__PURE__*/_react["default"].createElement(_dropSelector["default"], {
74
57
  onChange: onMenuClickHandler,
75
58
  checked: status,
76
59
  canEdit: hasAuth,
77
60
  trigger: /*#__PURE__*/_react["default"].createElement("span", {
78
61
  style: {
79
- color: "#89919F",
62
+ color: '#89919F',
80
63
  fontSize: 16,
81
64
  marginRight: 4,
82
- verticalAlign: "baseline"
65
+ verticalAlign: 'baseline'
83
66
  },
84
67
  className: (0, _classnames["default"])(status)
85
68
  })
@@ -87,28 +70,25 @@ var EStatusDropdown = function EStatusDropdown(props) {
87
70
  name: "tu-icon-finished",
88
71
  icon: "tu-icon-finished",
89
72
  exIconClass: "e-node-status-icon"
90
- }, (0, _getLocale.getLocale)("OKR_MyO_E_From_Completed")), /*#__PURE__*/_react["default"].createElement(_dropSelector.IconItem, {
73
+ }, (0, _getLocale.getLocale)('OKR_MyO_E_From_Completed')), /*#__PURE__*/_react["default"].createElement(_dropSelector.IconItem, {
91
74
  name: "tu-icon-running",
92
75
  icon: "tu-icon-running",
93
76
  exIconClass: "e-node-status-icon"
94
- }, (0, _getLocale.getLocale)("Per_MyRe_text_Inprogress")), /*#__PURE__*/_react["default"].createElement(_dropSelector.IconItem, {
77
+ }, (0, _getLocale.getLocale)('Per_MyRe_text_Inprogress')), /*#__PURE__*/_react["default"].createElement(_dropSelector.IconItem, {
95
78
  name: "tu-icon-canceled",
96
79
  icon: "tu-icon-canceled",
97
80
  exIconClass: "e-node-status-icon"
98
- }, (0, _getLocale.getLocale)("OKR_MyO_E_From_Cancelled")), /*#__PURE__*/_react["default"].createElement(_dropSelector.IconItem, {
81
+ }, (0, _getLocale.getLocale)('OKR_MyO_E_From_Cancelled')), /*#__PURE__*/_react["default"].createElement(_dropSelector.IconItem, {
99
82
  name: "tu-icon-deferred",
100
83
  icon: "tu-icon-deferred",
101
84
  exIconClass: "e-node-status-icon"
102
- }, (0, _getLocale.getLocale)("OKR_MyO_E_From_Delayed")), /*#__PURE__*/_react["default"].createElement(_dropSelector.IconItem, {
85
+ }, (0, _getLocale.getLocale)('OKR_MyO_E_From_Delayed')), /*#__PURE__*/_react["default"].createElement(_dropSelector.IconItem, {
103
86
  name: "tu-icon-paused",
104
87
  icon: "tu-icon-paused",
105
88
  exIconClass: "e-node-status-icon"
106
- }, (0, _getLocale.getLocale)("OKR_MyO_E_From_Suspended")), /*#__PURE__*/_react["default"].createElement(_dropSelector.IconItem, {
89
+ }, (0, _getLocale.getLocale)('OKR_MyO_E_From_Suspended')), /*#__PURE__*/_react["default"].createElement(_dropSelector.IconItem, {
107
90
  name: "tu-icon-notstart",
108
91
  icon: "tu-icon-notstart",
109
92
  exIconClass: "e-node-status-icon"
110
- }, (0, _getLocale.getLocale)("OKR_MyO_E_From_NotStarted")));
111
- };
112
-
113
- var _default = EStatusDropdown;
114
- exports["default"] = _default;
93
+ }, (0, _getLocale.getLocale)('OKR_MyO_E_From_NotStarted')));
94
+ }
@@ -347,7 +347,7 @@ function ETaskNode(props) {
347
347
  }, /*#__PURE__*/_react["default"].createElement(_eStatusDropdown["default"], {
348
348
  onChange: onEStatusChangeHandler,
349
349
  checked: _constant.EStatusStatus2ClassType[dataInfo.status],
350
- hasAuth: hasEditAuth && data.editStatusable
350
+ hasAuth: hasEditAuth && dataInfo.editStatusable
351
351
  })), isShowPriority && /*#__PURE__*/_react["default"].createElement("span", {
352
352
  className: (0, _classnames["default"])("".concat(_precls["default"], "__e-task-node-priority"))
353
353
  }, /*#__PURE__*/_react["default"].createElement(_ePriority["default"], {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.11.36-beta.1",
3
+ "version": "1.11.36",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",