@titaui/pc 1.10.43 → 1.10.44-beta.1

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.
@@ -130,10 +130,14 @@ function _default(props) {
130
130
  })), /*#__PURE__*/_react["default"].createElement("span", {
131
131
  className: (0, _classnames["default"])("".concat(_precls["default"], "__e-project-node-title ")),
132
132
  onClick: openProjectDetail
133
+ }, /*#__PURE__*/_react["default"].createElement("span", {
134
+ className: (0, _classnames["default"])("".concat(_precls["default"], "__e-project-node-title-name "))
133
135
  }, /*#__PURE__*/_react["default"].createElement(_tooltipText["default"], {
134
136
  text: (0, _helpers.escapeHtml)(title),
135
137
  isPercent: true
136
- })), /*#__PURE__*/_react["default"].createElement("div", {
138
+ })), (data === null || data === void 0 ? void 0 : data.workApplyStatus) === 1 && /*#__PURE__*/_react["default"].createElement("span", {
139
+ className: (0, _classnames["default"])("".concat(_precls["default"], "__e-project-node-title-approvaling"))
140
+ }, "\u7ACB\u9879\u4E2D")), /*#__PURE__*/_react["default"].createElement("div", {
137
141
  className: (0, _classnames["default"])("".concat(_precls["default"], "__e-project-node-actions"))
138
142
  }, /*#__PURE__*/_react["default"].createElement("span", {
139
143
  className: (0, _classnames["default"])("".concat(_precls["default"], "__e-project-node-actions-user"))
@@ -147,7 +147,7 @@
147
147
  }
148
148
 
149
149
  .tita-okrdt-tree__e-project-node-title {
150
- display: inline-block;
150
+ display: inline-flex;
151
151
  font-size: 14px;
152
152
  font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
153
153
  color: #3f4755;
@@ -158,6 +158,24 @@
158
158
  flex: 1;
159
159
  }
160
160
 
161
+ .tita-okrdt-tree__e-project-node-title-name {
162
+ overflow: hidden;
163
+ }
164
+
165
+ .tita-okrdt-tree__e-project-node-title-approvaling {
166
+ display: inline-flex;
167
+ align-items: center;
168
+ justify-content: center;
169
+ min-width: 48px;
170
+ height: 20px;
171
+ font-size: 12px;
172
+ font-weight: 400;
173
+ color: #F05E5E;
174
+ background: rgba(240, 94, 94, 0.1);
175
+ border-radius: 10px;
176
+ margin-left: 8px;
177
+ }
178
+
161
179
  .tita-okrdt-tree__e-project-node-gray {
162
180
  color: #BFC7D5 !important;
163
181
  }
@@ -61,8 +61,8 @@ var beforeResponse = function beforeResponse(res) {
61
61
  config.retry = 3;
62
62
  config.retryCount = config.retryCount || 0;
63
63
 
64
- if (res.data.code === 401) {
65
- // 401错误表示未登录授权或者token失效
64
+ if (res.data.code === 203) {
65
+ // 203错误表示未登录授权或者token失效
66
66
  clearToken();
67
67
 
68
68
  if (config.retryCount <= config.retry) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.10.43",
3
+ "version": "1.10.44-beta.1",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",