@titaui/pc 1.12.41 → 1.12.44
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/lib/components/dynamic/components/comments-dialog/index.css +1 -1
- package/lib/components/menus/export-modules/summary-menus/summary-front-menus.js +1 -1
- package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +28 -17
- package/lib/components/textarea/index.css +24 -29
- package/lib/components/textarea/index.js +2 -2
- package/lib/pages/new-okr-list/header/comments.js +1 -0
- package/package.json +1 -1
|
@@ -120,7 +120,7 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
120
120
|
data = node.data;
|
|
121
121
|
|
|
122
122
|
if (nodeType == _index.USER_NODE || nodeType == _index.FOLLOWER_NODE) {
|
|
123
|
-
location.href = "#/summary/manage?toUserId=".concat(data.userId);
|
|
123
|
+
location.href = "#/summary/manage?toUserId=".concat(data.userId, "&subordinates=1");
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
onSelect(node); // 处理菜单选中
|
|
@@ -78,7 +78,18 @@ function Inform(props) {
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
if (objType === _constant.EObjType.Remind) {
|
|
81
|
-
|
|
81
|
+
var reg = /href=".*?(?=")/g;
|
|
82
|
+
var url = "";
|
|
83
|
+
item.content.replace(reg, function ($0) {
|
|
84
|
+
url = $0.slice(6);
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
if (url) {
|
|
88
|
+
(0, _tools.openPage)(url);
|
|
89
|
+
return;
|
|
90
|
+
} // @ts-ignore
|
|
91
|
+
|
|
92
|
+
|
|
82
93
|
window.Talent.app.vent.trigger("global-daily-detail-pull-screen", objId);
|
|
83
94
|
return;
|
|
84
95
|
}
|
|
@@ -120,14 +131,14 @@ function Inform(props) {
|
|
|
120
131
|
if (!str) return;
|
|
121
132
|
str = str.join("");
|
|
122
133
|
|
|
123
|
-
var
|
|
134
|
+
var _url2 = str.slice(0, str.length - 1);
|
|
124
135
|
|
|
125
|
-
if (
|
|
136
|
+
if (_url2) {
|
|
126
137
|
if (item.content.indexOf("点击此处下载") !== -1) {
|
|
127
|
-
window.open(
|
|
138
|
+
window.open(_url2, "_self");
|
|
128
139
|
}
|
|
129
140
|
|
|
130
|
-
(0, _tools.openPage)(
|
|
141
|
+
(0, _tools.openPage)(_url2);
|
|
131
142
|
}
|
|
132
143
|
|
|
133
144
|
return;
|
|
@@ -139,9 +150,9 @@ function Inform(props) {
|
|
|
139
150
|
}
|
|
140
151
|
|
|
141
152
|
if (objType === _constant.informType.Okr) {
|
|
142
|
-
var
|
|
153
|
+
var _url3 = item.content.match(/(http[s]?:\/\/([\w-]+.)+([:\d+])?(\/[\w-\.\/\?%&=]*))/g);
|
|
143
154
|
|
|
144
|
-
(0, _tools.openPage)(
|
|
155
|
+
(0, _tools.openPage)(_url3);
|
|
145
156
|
return;
|
|
146
157
|
}
|
|
147
158
|
|
|
@@ -156,9 +167,9 @@ function Inform(props) {
|
|
|
156
167
|
if (!_str) return;
|
|
157
168
|
_str = _str.join("");
|
|
158
169
|
|
|
159
|
-
var
|
|
170
|
+
var _url4 = _str.slice(0, _str.length - 1);
|
|
160
171
|
|
|
161
|
-
(0, _tools.openPage)(
|
|
172
|
+
(0, _tools.openPage)(_url4);
|
|
162
173
|
return;
|
|
163
174
|
}
|
|
164
175
|
|
|
@@ -168,9 +179,9 @@ function Inform(props) {
|
|
|
168
179
|
if (!_str2) return;
|
|
169
180
|
_str2 = _str2.join("");
|
|
170
181
|
|
|
171
|
-
var
|
|
182
|
+
var _url5 = _str2.slice(0, _str2.length - 1);
|
|
172
183
|
|
|
173
|
-
(0, _tools.openPage)(
|
|
184
|
+
(0, _tools.openPage)(_url5);
|
|
174
185
|
return;
|
|
175
186
|
}
|
|
176
187
|
|
|
@@ -184,14 +195,14 @@ function Inform(props) {
|
|
|
184
195
|
return;
|
|
185
196
|
}
|
|
186
197
|
|
|
187
|
-
var
|
|
188
|
-
var
|
|
189
|
-
item.content.replace(
|
|
190
|
-
|
|
198
|
+
var _reg = /href='.*?(?=')/g;
|
|
199
|
+
var _url = "";
|
|
200
|
+
item.content.replace(_reg, function ($0) {
|
|
201
|
+
_url = $0.slice(6);
|
|
191
202
|
});
|
|
192
203
|
|
|
193
|
-
if (
|
|
194
|
-
(0, _tools.openPage)(
|
|
204
|
+
if (_url) {
|
|
205
|
+
(0, _tools.openPage)(_url);
|
|
195
206
|
return;
|
|
196
207
|
}
|
|
197
208
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.titaui-textArea-content {
|
|
1
|
+
.titaui-pc-textArea-content {
|
|
2
2
|
box-sizing: border-box;
|
|
3
3
|
position: relative;
|
|
4
4
|
min-height: 36px;
|
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
transition: border 0.2s ease 0.2s, box-shadow 0.2s ease 0.2s;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
.titaui-textArea-content-inner {
|
|
14
|
+
.titaui-pc-textArea-content-inner {
|
|
15
15
|
overflow: auto;
|
|
16
16
|
display: flex;
|
|
17
17
|
flex: 1;
|
|
18
18
|
width: 0;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
.titaui-textArea-content-inner textarea {
|
|
21
|
+
.titaui-pc-textArea-content-inner textarea {
|
|
22
22
|
flex: 1;
|
|
23
23
|
line-height: 20px;
|
|
24
24
|
min-height: 20px;
|
|
@@ -35,19 +35,19 @@
|
|
|
35
35
|
word-break: break-all;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
.titaui-textArea-content-inner textarea ::-webkit-input-placeholder {
|
|
38
|
+
.titaui-pc-textArea-content-inner textarea ::-webkit-input-placeholder {
|
|
39
39
|
color: #bfc7d5;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
.titaui-textArea-content-inner textarea :-ms-input-placeholder {
|
|
42
|
+
.titaui-pc-textArea-content-inner textarea :-ms-input-placeholder {
|
|
43
43
|
color: #bfc7d5;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
.titaui-textArea-content-inner textarea :-moz-input-placeholder {
|
|
46
|
+
.titaui-pc-textArea-content-inner textarea :-moz-input-placeholder {
|
|
47
47
|
color: #bfc7d5;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
.titaui-textArea-content-top-shadow::before {
|
|
50
|
+
.titaui-pc-textArea-content-top-shadow::before {
|
|
51
51
|
content: '';
|
|
52
52
|
border-radius: 8px;
|
|
53
53
|
height: 30px;
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
z-index: 2;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
.titaui-textArea-content-bottom-shadow::after {
|
|
61
|
+
.titaui-pc-textArea-content-bottom-shadow::after {
|
|
62
62
|
content: '';
|
|
63
63
|
border-radius: 8px;
|
|
64
64
|
height: 30px;
|
|
@@ -69,15 +69,7 @@
|
|
|
69
69
|
z-index: 2;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
.titaui-textArea-content
|
|
73
|
-
border: 1px solid #f05e5e !important;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.titaui-textArea-content:hover {
|
|
77
|
-
border: 1px solid #2879ff;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.titaui-textArea-content > input {
|
|
72
|
+
.titaui-pc-textArea-content > input {
|
|
81
73
|
flex-grow: 1;
|
|
82
74
|
border: none;
|
|
83
75
|
padding: 0 12px;
|
|
@@ -89,51 +81,54 @@
|
|
|
89
81
|
color: #3f4755;
|
|
90
82
|
}
|
|
91
83
|
|
|
92
|
-
.titaui-textArea-content > input ::-webkit-input-placeholder {
|
|
84
|
+
.titaui-pc-textArea-content > input ::-webkit-input-placeholder {
|
|
93
85
|
color: #bfc7d5;
|
|
94
86
|
}
|
|
95
87
|
|
|
96
|
-
.titaui-textArea-content > input :-ms-input-placeholder {
|
|
88
|
+
.titaui-pc-textArea-content > input :-ms-input-placeholder {
|
|
97
89
|
color: #bfc7d5;
|
|
98
90
|
}
|
|
99
91
|
|
|
100
|
-
.titaui-textArea-content > input :-moz-input-placeholder {
|
|
92
|
+
.titaui-pc-textArea-content > input :-moz-input-placeholder {
|
|
101
93
|
color: #bfc7d5;
|
|
102
94
|
}
|
|
103
95
|
|
|
104
|
-
.titaui-textArea-content.disabled {
|
|
96
|
+
.titaui-pc-textArea-content.disabled {
|
|
105
97
|
background-color: rgba(240, 242, 245, 0.4);
|
|
106
98
|
border-color: #f0f2f5;
|
|
107
99
|
color: #bfc7d5;
|
|
108
100
|
cursor: default;
|
|
109
101
|
}
|
|
110
102
|
|
|
111
|
-
.titaui-textArea-content.disabled > input,
|
|
112
|
-
.titaui-textArea-content.disabled textarea,
|
|
113
|
-
.titaui-textArea-content.disabled .tail-wrapper {
|
|
103
|
+
.titaui-pc-textArea-content.disabled > input,
|
|
104
|
+
.titaui-pc-textArea-content.disabled textarea,
|
|
105
|
+
.titaui-pc-textArea-content.disabled .tail-wrapper {
|
|
114
106
|
color: #bfc7d5;
|
|
115
107
|
}
|
|
116
108
|
|
|
117
|
-
.titaui-textArea-content.disabled:hover {
|
|
109
|
+
.titaui-pc-textArea-content.disabled:hover {
|
|
118
110
|
border-color: #f0f2f5;
|
|
119
111
|
}
|
|
120
112
|
|
|
121
|
-
.titaui-textArea-area-error {
|
|
113
|
+
.titaui-pc-textArea-area-error {
|
|
122
114
|
border: 1px solid #f05e5e !important;
|
|
123
115
|
box-shadow: inset 0px 0px 6px 0px rgba(240, 94, 94, 0.3);
|
|
116
|
+
width: 100%;
|
|
124
117
|
}
|
|
125
118
|
|
|
126
|
-
.titaui-textArea-area-focus {
|
|
119
|
+
.titaui-pc-textArea-area-focus {
|
|
127
120
|
border: 1px solid #2879ff !important;
|
|
128
121
|
box-shadow: inset 0px 0px 6px 0px rgba(40, 121, 255, 0.3);
|
|
122
|
+
width: 100%;
|
|
129
123
|
}
|
|
130
124
|
|
|
131
|
-
.titaui-textArea-area-normal {
|
|
125
|
+
.titaui-pc-textArea-area-normal {
|
|
132
126
|
border: 1px solid #e9ecf0 !important;
|
|
133
127
|
box-shadow: none;
|
|
128
|
+
width: 100%;
|
|
134
129
|
}
|
|
135
130
|
|
|
136
|
-
.titaui-textArea-err-color {
|
|
131
|
+
.titaui-pc-textArea-err-color {
|
|
137
132
|
font-size: 12px;
|
|
138
133
|
font-weight: 400;
|
|
139
134
|
color: #f05e5e;
|
|
@@ -63,7 +63,7 @@ var Textarea = function Textarea(p) {
|
|
|
63
63
|
_onKeyDown = p.onKeyDown,
|
|
64
64
|
others = _objectWithoutProperties(p, _excluded);
|
|
65
65
|
|
|
66
|
-
var prefixCls = "titaui-textArea";
|
|
66
|
+
var prefixCls = "titaui-pc-textArea";
|
|
67
67
|
|
|
68
68
|
var _useState = (0, _react.useState)(false),
|
|
69
69
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -201,7 +201,7 @@ var Textarea = function Textarea(p) {
|
|
|
201
201
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
202
202
|
className: "".concat(prefixCls)
|
|
203
203
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
204
|
-
className: "
|
|
204
|
+
className: "".concat(prefixCls, "-content ").concat(areaError, " ").concat(disabled ? " disabled" : ""),
|
|
205
205
|
onFocus: function onFocus() {},
|
|
206
206
|
onBlur: function onBlur() {},
|
|
207
207
|
onMouseOver: changeMoveOver,
|
|
@@ -64,6 +64,7 @@ function Comments(props) {
|
|
|
64
64
|
}))), (toUserId !== undefined || relation == 1) && !!userInfo && /*#__PURE__*/_react["default"].createElement(OkrCommunicationPush, {
|
|
65
65
|
ref: pushRef,
|
|
66
66
|
feedId: 0,
|
|
67
|
+
key: userInfo.userId,
|
|
67
68
|
okrCycle: "\uFF08".concat((0, _common.formatPeriod)({
|
|
68
69
|
annualNum: annualNum,
|
|
69
70
|
cycleType: cycleType,
|