@titaui/pc 1.10.6-3.beta-10 → 1.10.6-3.beta-11

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.
package/.husky/pre-commit CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/bin/sh
2
2
  . "$(dirname "$0")/_/husky.sh"
3
3
 
4
- # npm run lint-staged
4
+ npm run lint-staged
@@ -5,6 +5,18 @@
5
5
  display: flex;
6
6
  }
7
7
 
8
+ .tita-okrdt-tree__e-kr-node:hover .tita-okrdt-tree__e-kr-node-actions {
9
+ opacity: 1;
10
+ transition: all 0.2s linear;
11
+ }
12
+
13
+ .tita-okrdt-tree__e-kr-node-preicon {
14
+ display: inline-block;
15
+ line-height: 22px;
16
+ color: #6f7886;
17
+ font-size: 16px;
18
+ }
19
+
8
20
  .tita-okrdt-tree__e-kr-node-prefix {
9
21
  display: inline-block;
10
22
  height: 22px;
@@ -27,8 +39,10 @@
27
39
 
28
40
  .tita-okrdt-tree__e-kr-node-actions {
29
41
  display: inline-block;
42
+ opacity: 0;
30
43
  position: absolute;
31
44
  right: 0;
45
+ transition: all 0.2s linear;
32
46
  }
33
47
 
34
48
  .tita-okrdt-tree__e-kr-node-actions-create {
@@ -43,7 +57,7 @@
43
57
  }
44
58
 
45
59
  .tita-okrdt-tree__e-kr-node-actions-create:hover {
46
- color: #5C8EFF;
60
+ color: #5c8eff;
47
61
  }
48
62
 
49
63
  .tita-okrdt-tree__e-kr-node-actions-create .tu-icon-add1 {
@@ -63,11 +77,11 @@
63
77
  }
64
78
 
65
79
  .tita-okrdt-tree__e-kr-node-actions-connect:hover {
66
- color: #5C8EFF;
80
+ color: #5c8eff;
67
81
  }
68
82
 
69
83
  .e-kr-node-layer-icon {
70
- color: #89919F;
84
+ color: #89919f;
71
85
  }
72
86
 
73
87
  .e-kr-node__guanlian-icon {
@@ -172,7 +172,9 @@ var EKrNode = function EKrNode(props) {
172
172
  return /*#__PURE__*/_react["default"].createElement("div", {
173
173
  key: index,
174
174
  className: (0, _classnames["default"])("".concat(_precls["default"], "__e-kr-node"))
175
- }, isOTask ? null : /*#__PURE__*/_react["default"].createElement("span", {
175
+ }, isOTask ? /*#__PURE__*/_react["default"].createElement("span", {
176
+ className: (0, _classnames["default"])("tu-icon-O ".concat(_precls["default"], "__e-kr-node-preicon"))
177
+ }) : /*#__PURE__*/_react["default"].createElement("span", {
176
178
  className: (0, _classnames["default"])("".concat(_precls["default"], "__e-kr-node-prefix"))
177
179
  }, "KR", index + 1), /*#__PURE__*/_react["default"].createElement("span", {
178
180
  className: (0, _classnames["default"])("".concat(_precls["default"], "__e-kr-node-title")),
@@ -84,13 +84,13 @@
84
84
  line-height: 18px;
85
85
  display: inline-flex;
86
86
  align-items: center;
87
+ justify-content: flex-end;
87
88
  box-sizing: border-box;
88
89
  width: 78px;
89
90
  height: 26px;
90
91
  padding: 4px;
91
92
  text-align: left;
92
93
  line-height: 26px;
93
- margin-left: 16px;
94
94
  }
95
95
 
96
96
  .tita-okrdt-tree__e-task-node-actions-date > span {
@@ -103,7 +103,7 @@
103
103
  color: #89919f;
104
104
  cursor: auto;
105
105
  width: 64px;
106
- margin-left: 4px;
106
+ margin-left: 16px;
107
107
  margin-right: 4px;
108
108
  }
109
109
 
@@ -171,14 +171,14 @@
171
171
  height: 20px;
172
172
  font-size: 12px;
173
173
  font-weight: 400;
174
- color: #F05E5E;
174
+ color: #f05e5e;
175
175
  background: rgba(240, 94, 94, 0.1);
176
176
  border-radius: 10px;
177
177
  margin-left: 8px;
178
178
  }
179
179
 
180
180
  .tita-okrdt-tree__e-project-node-gray {
181
- color: #BFC7D5 !important;
181
+ color: #bfc7d5 !important;
182
182
  }
183
183
 
184
184
  .tita-okrdt-tree__e-project-node-priority {
@@ -235,13 +235,13 @@
235
235
  line-height: 18px;
236
236
  display: inline-flex;
237
237
  align-items: center;
238
+ justify-content: flex-end;
238
239
  box-sizing: border-box;
239
240
  width: 78px;
240
241
  height: 26px;
241
242
  padding: 4px;
242
243
  text-align: left;
243
244
  line-height: 26px;
244
- margin-left: 16px;
245
245
  }
246
246
 
247
247
  .tita-okrdt-tree__e-project-node-actions-date > span {
@@ -254,7 +254,7 @@
254
254
  color: #89919f;
255
255
  cursor: auto;
256
256
  width: 64px;
257
- margin-left: 4px;
257
+ margin-left: 16px;
258
258
  margin-right: 4px;
259
259
  }
260
260
 
@@ -357,13 +357,13 @@
357
357
  line-height: 18px;
358
358
  display: inline-flex;
359
359
  align-items: center;
360
+ justify-content: flex-end;
360
361
  box-sizing: border-box;
361
362
  width: 78px;
362
363
  height: 26px;
363
364
  padding: 4px;
364
365
  text-align: left;
365
366
  line-height: 26px;
366
- margin-left: 16px;
367
367
  }
368
368
 
369
369
  .tita-okrdt-tree__e-task-level2-node-actions-date > span {
@@ -376,7 +376,7 @@
376
376
  color: #89919f;
377
377
  cursor: auto;
378
378
  width: 64px;
379
- margin-left: 4px;
379
+ margin-left: 16px;
380
380
  margin-right: 4px;
381
381
  }
382
382
 
@@ -398,7 +398,7 @@
398
398
  .tita-okrdt-tree__e-empty-node {
399
399
  font-size: 12px;
400
400
  font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
401
- color: #A4ACB9;
401
+ color: #a4acb9;
402
402
  line-height: 18px;
403
403
  padding-left: 12px;
404
404
  }
@@ -408,5 +408,5 @@
408
408
  }
409
409
 
410
410
  .e-node-status-icon {
411
- color: #89919F;
411
+ color: #89919f;
412
412
  }
@@ -183,13 +183,6 @@ function Elist(props, ref) {
183
183
  setTotalDataNum(totalLength);
184
184
  setIsEmpty && setIsEmpty(!totalLength);
185
185
  }, [krList, oEList]);
186
- var krsTree = (0, _react.useCallback)(function (kr) {
187
- return /*#__PURE__*/_react["default"].createElement(_okrTree["default"], {
188
- key: Math.random(),
189
- data: [kr],
190
- defaultExpandedKeys: expandedKrEs
191
- });
192
- }, [expandedKrEs, krList]);
193
186
  return /*#__PURE__*/_react["default"].createElement(_context.EListContext.Provider, {
194
187
  value: {
195
188
  refreshEList: function refreshEList() {
@@ -214,7 +207,11 @@ function Elist(props, ref) {
214
207
  }, krList.map(function (kr, index) {
215
208
  return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_paddingLayout["default"], {
216
209
  padding: layoutPadding
217
- }, krsTree(kr)), // kr左后一个节点 && 没有 OE 时,不显示横线
210
+ }, /*#__PURE__*/_react["default"].createElement(_okrTree["default"], {
211
+ key: Math.random(),
212
+ data: [kr],
213
+ defaultExpandedKeys: expandedKrEs
214
+ })), // kr左后一个节点 && 没有 OE 时,不显示横线
218
215
  !(index + 1 == krList.length && oEList.length == 0) && hasdivider && /*#__PURE__*/_react["default"].createElement("div", {
219
216
  className: "e__divider"
220
217
  }));
@@ -214,8 +214,7 @@ var NewOkrList = function NewOkrList(props) {
214
214
  if (!relation) {
215
215
  request = (0, _requestApi.okrSearch)(params);
216
216
  } else {
217
- // request = okrList(params);
218
- request = (0, _requestApi.okrSearch)(params);
217
+ request = (0, _requestApi.okrList)(params);
219
218
  }
220
219
 
221
220
  setLoading(true);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.10.63.beta-10",
3
+ "version": "1.10.63.beta-11",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",