@titaui/pc 1.10.69 → 1.10.70

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.
@@ -12,28 +12,28 @@
12
12
 
13
13
  .tita-okrdt-tree__e-kr-node-preicon {
14
14
  display: inline-block;
15
- line-height: 22px;
16
- color: #6f7886;
15
+ line-height: 18px;
16
+ color: #2879ff;
17
17
  font-size: 16px;
18
18
  }
19
19
 
20
20
  .tita-okrdt-tree__e-kr-node-prefix {
21
21
  display: inline-block;
22
- height: 22px;
23
- font-size: 14px;
22
+ height: 18px;
23
+ font-size: 12px;
24
24
  font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
25
25
  color: #2879ff;
26
- line-height: 22px;
26
+ line-height: 18px;
27
27
  }
28
28
 
29
29
  .tita-okrdt-tree__e-kr-node-title {
30
30
  display: inline-block;
31
31
  margin-left: 4px;
32
- height: 22px;
33
- font-size: 14px;
32
+ height: 18px;
33
+ font-size: 12px;
34
34
  font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
35
35
  color: #89919f;
36
- line-height: 22px;
36
+ line-height: 18px;
37
37
  width: 100%;
38
38
  }
39
39
 
@@ -47,7 +47,7 @@
47
47
 
48
48
  .tita-okrdt-tree__e-kr-node-actions-create {
49
49
  height: 18px;
50
- font-size: 13px;
50
+ font-size: 12px;
51
51
  font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
52
52
  color: #2879ff;
53
53
  line-height: 18px;
@@ -66,7 +66,7 @@
66
66
 
67
67
  .tita-okrdt-tree__e-kr-node-actions-connect {
68
68
  height: 18px;
69
- font-size: 13px;
69
+ font-size: 12px;
70
70
  font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
71
71
  color: #2879ff;
72
72
  line-height: 18px;
@@ -71,7 +71,9 @@ function _default(props) {
71
71
  _props$hasProgress = props.hasProgress,
72
72
  hasProgress = _props$hasProgress === void 0 ? true : _props$hasProgress,
73
73
  _props$hasRelation = props.hasRelation,
74
- hasRelation = _props$hasRelation === void 0 ? true : _props$hasRelation;
74
+ hasRelation = _props$hasRelation === void 0 ? true : _props$hasRelation,
75
+ _props$hasPrinciple = props.hasPrinciple,
76
+ hasPrinciple = _props$hasPrinciple === void 0 ? true : _props$hasPrinciple;
75
77
 
76
78
  var _useState = (0, _react.useState)(false),
77
79
  _useState2 = _slicedToArray(_useState, 2),
@@ -146,7 +148,7 @@ function _default(props) {
146
148
  className: (0, _classnames["default"])("".concat(_precls["default"], "__e-project-node-title-approvaling"))
147
149
  }, (0, _getLocale.getLocale)('Pro_MyS_Establishment'))), /*#__PURE__*/_react["default"].createElement("div", {
148
150
  className: (0, _classnames["default"])("".concat(_precls["default"], "__e-project-node-actions"))
149
- }, /*#__PURE__*/_react["default"].createElement("span", {
151
+ }, hasPrinciple && /*#__PURE__*/_react["default"].createElement("span", {
150
152
  className: (0, _classnames["default"])("".concat(_precls["default"], "__e-project-node-actions-user"))
151
153
  }, /*#__PURE__*/_react["default"].createElement(_avatar["default"].Text, {
152
154
  name: data === null || data === void 0 ? void 0 : (_data$principalUser = data.principalUser) === null || _data$principalUser === void 0 ? void 0 : _data$principalUser.name,
@@ -95,7 +95,9 @@ function ETaskNode(props) {
95
95
  _props$hasRelation = props.hasRelation,
96
96
  hasRelation = _props$hasRelation === void 0 ? true : _props$hasRelation,
97
97
  _props$isPushScreen = props.isPushScreen,
98
- isPushScreen = _props$isPushScreen === void 0 ? false : _props$isPushScreen;
98
+ isPushScreen = _props$isPushScreen === void 0 ? false : _props$isPushScreen,
99
+ _props$hasPrinciple = props.hasPrinciple,
100
+ hasPrinciple = _props$hasPrinciple === void 0 ? true : _props$hasPrinciple;
99
101
 
100
102
  var _useState = (0, _react.useState)(false),
101
103
  _useState2 = _slicedToArray(_useState, 2),
@@ -370,7 +372,7 @@ function ETaskNode(props) {
370
372
  isPercent: true
371
373
  })), /*#__PURE__*/_react["default"].createElement("span", {
372
374
  className: (0, _classnames["default"])("".concat(_precls["default"], "__e-task-node-actions"))
373
- }, /*#__PURE__*/_react["default"].createElement("span", {
375
+ }, hasPrinciple && /*#__PURE__*/_react["default"].createElement("span", {
374
376
  className: (0, _classnames["default"])("".concat(_precls["default"], "__e-task-node-actions-user"))
375
377
  }, /*#__PURE__*/_react["default"].createElement(_avatar["default"].Text, {
376
378
  name: user === null || user === void 0 ? void 0 : user.name,
@@ -6,6 +6,7 @@
6
6
  display: flex;
7
7
  align-items: center;
8
8
  position: relative;
9
+ height: 24px;
9
10
  }
10
11
 
11
12
  .okr-progress-item-wrapper .okr-progress-item-content__icon-state {
@@ -15,7 +16,7 @@
15
16
  .okr-progress-item-wrapper .okr-progress-item__percent {
16
17
  font-size: 16px;
17
18
  font-weight: 600;
18
- color: #3F4755;
19
+ color: #3f4755;
19
20
  line-height: 24px;
20
21
  margin-left: 12px;
21
22
  }
@@ -28,11 +29,11 @@
28
29
  }
29
30
 
30
31
  .okr-progress-item-wrapper .okr-progress-item__percent--advance {
31
- color: #5AD8A6;
32
+ color: #5ad8a6;
32
33
  }
33
34
 
34
35
  .okr-progress-item-wrapper .okr-progress-item__percent--delay {
35
- color: #F05E5E;
36
+ color: #f05e5e;
36
37
  }
37
38
 
38
39
  .okr-progress-item-wrapper .okr-progress-item-content--edit {
@@ -42,7 +43,7 @@
42
43
  }
43
44
 
44
45
  .okr-progress-item-wrapper .okr-progress-item-content--edit:hover {
45
- background: #F7F8FA;
46
+ background: #f7f8fa;
46
47
  }
47
48
 
48
49
  .okr-progress-item-wrapper .okr-progress-item-content__body-wrapper {
@@ -60,7 +61,7 @@
60
61
 
61
62
  .okr-progress-item-wrapper .okr-progress-item-content__body-wrapper .okr-progress-item-content__body .okr-progress-item__content {
62
63
  font-size: 14px;
63
- color: #3F4755;
64
+ color: #3f4755;
64
65
  line-height: 22px;
65
66
  white-space: pre-wrap;
66
67
  }
@@ -73,7 +74,7 @@
73
74
 
74
75
  .okr-progress-item-wrapper .okr-progress-item__content-bottom {
75
76
  font-size: 12px;
76
- color: #A4ACB9;
77
+ color: #a4acb9;
77
78
  line-height: 18px;
78
79
  margin-top: 6px;
79
80
  display: flex;
@@ -88,12 +89,12 @@
88
89
  }
89
90
 
90
91
  .okr-progress-item-wrapper .okr-progress-item__content-bottom .okr-progress-item__bottom-func-btns .okr-progress-item__bottom-btn--edit:hover {
91
- color: #2879FF;
92
+ color: #2879ff;
92
93
  cursor: pointer;
93
94
  }
94
95
 
95
96
  .okr-progress-item-wrapper .okr-progress-item__content-bottom .okr-progress-item__bottom-func-btns .okr-progress-item__bottom-btn--delete:hover {
96
- color: #F05E5E;
97
+ color: #f05e5e;
97
98
  cursor: pointer;
98
99
  }
99
100
 
@@ -106,7 +107,7 @@
106
107
  display: inline-block;
107
108
  width: 1px;
108
109
  height: 16px;
109
- background: linear-gradient(180deg, rgba(213, 219, 226, 0) 0%, #D5DBE2 49%, rgba(213, 219, 226, 0) 100%);
110
+ background: linear-gradient(180deg, rgba(213, 219, 226, 0) 0%, #d5dbe2 49%, rgba(213, 219, 226, 0) 100%);
110
111
  border-radius: 2px;
111
112
  }
112
113
 
@@ -129,7 +130,7 @@
129
130
  right: 0;
130
131
  font-size: 12px;
131
132
  font-weight: 400;
132
- color: #A4ACB9;
133
+ color: #a4acb9;
133
134
  line-height: 24px;
134
135
  padding-right: 16px;
135
136
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.10.69",
3
+ "version": "1.10.70",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",