@titaui/pc 1.11.35-beta.2 → 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.
- package/lib/components/avatar/name-avatar/index.css +0 -1
- package/lib/components/avatar/name-avatar/index.js +13 -22
- package/lib/components/button/rect-btn/index.css +11 -45
- package/lib/components/button/rect-btn/index.js +6 -12
- package/lib/components/change-okr-modal/index.js +1 -2
- package/lib/components/checkbox/index.css +3 -3
- package/lib/components/create-okr-modal/index.js +42 -48
- package/lib/components/create-okr-modal/request-api.js +1 -1
- package/lib/components/dialog-confirm/index.css +2 -2
- package/lib/components/drawer/headerAction.js +1 -5
- package/lib/components/drawer/headerDrop.js +4 -42
- package/lib/components/drawer/index.css +0 -33
- package/lib/components/drawer/index.js +3 -26
- package/lib/components/dynamic/advertise/components/next-btn/index.css +27 -0
- package/lib/components/dynamic/advertise/components/next-btn/index.js +32 -0
- package/lib/components/dynamic/advertise/components/pre-btn/index.css +26 -0
- package/lib/components/dynamic/advertise/components/pre-btn/index.js +32 -0
- package/lib/components/dynamic/advertise/index.css +21 -0
- package/lib/components/dynamic/advertise/index.js +126 -0
- package/lib/components/dynamic/advertise/interface.js +5 -0
- package/lib/components/dynamic/advertise/util.js +28 -0
- package/lib/components/dynamic/components/dynamic-search-input/index.css +81 -0
- package/lib/components/dynamic/components/dynamic-search-input/index.js +203 -0
- package/lib/components/dynamic/components/first-level-tabs/index.css +101 -0
- package/lib/components/dynamic/components/first-level-tabs/index.js +131 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/like-ranking.svg +23 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-1.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-2.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-3.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-empty.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/index.css +146 -0
- package/lib/components/dynamic/dynamic-like-ranking/index.js +180 -0
- package/lib/components/dynamic/dynamic-like-ranking/item.js +105 -0
- package/lib/components/dynamic/dynamic-like-ranking/mock.js +84 -0
- package/lib/components/dynamic/dynamic-liking/image/like-dynamic.svg +30 -0
- package/lib/components/dynamic/dynamic-liking/index.css +81 -0
- package/lib/{pages/new-okr-list/header/operate-record.js → components/dynamic/dynamic-liking/index.js} +39 -91
- package/lib/components/dynamic/dynamic-liking/item.js +75 -0
- package/lib/components/dynamic/dynamic-liking/mock.js +83 -0
- package/lib/components/dynamic/dynamic-list/index.js +6 -14
- package/lib/components/dynamic/dynamic-topping/image/quotation-mark.svg +16 -0
- package/lib/components/dynamic/dynamic-topping/image/top-icon.svg +30 -0
- package/lib/components/dynamic/dynamic-topping/index.css +141 -0
- package/lib/components/dynamic/dynamic-topping/index.js +82 -0
- package/lib/components/dynamic/dynamic-topping/interface.js +5 -0
- package/lib/components/dynamic/dynamic-topping/item.js +153 -0
- package/lib/components/dynamic/dynamic-topping/request-api.js +36 -0
- package/lib/components/dynamic/dynamic.css +173 -0
- package/lib/components/dynamic/dynamic.js +428 -0
- package/lib/components/dynamic/export-module/index.js +37 -0
- package/lib/components/dynamic/img/dynamic-top.svg +14 -0
- package/lib/components/dynamic/index.js +12 -9
- package/lib/components/dynamic/my-team/img/add-subordinate.png +0 -0
- package/lib/components/dynamic/my-team/img/line.png +0 -0
- package/lib/components/dynamic/my-team/img/team.png +0 -0
- package/lib/components/dynamic/my-team/index.css +184 -0
- package/lib/components/dynamic/my-team/index.js +263 -0
- package/lib/components/dynamic/my-team/request-api.js +52 -0
- package/lib/components/dynamic/my-team/util.js +20 -0
- package/lib/components/dynamic/new-ui.css +192 -0
- package/lib/components/dynamic/online-broadcast/components/broadcast-item/index.css +58 -0
- package/lib/components/dynamic/online-broadcast/components/broadcast-item/index.js +68 -0
- package/lib/components/dynamic/online-broadcast/data.js +77 -0
- package/lib/components/dynamic/online-broadcast/img/broadcast.svg +14 -0
- package/lib/components/dynamic/online-broadcast/img/new.png +0 -0
- package/lib/components/dynamic/online-broadcast/img/preview.png +0 -0
- package/lib/components/dynamic/online-broadcast/index.css +46 -0
- package/lib/components/dynamic/online-broadcast/index.js +61 -0
- package/lib/components/dynamic/online-broadcast/interfact.js +5 -0
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.js +39 -0
- package/lib/components/dynamic/quick-operation/components/create-okr/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-okr/index.js +39 -0
- package/lib/components/dynamic/quick-operation/components/create-share/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-share/index.js +39 -0
- package/lib/components/dynamic/quick-operation/components/create-task/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-task/index.js +44 -0
- package/lib/components/dynamic/quick-operation/img/new-announcement.png +0 -0
- package/lib/components/dynamic/quick-operation/img/new-okr.png +0 -0
- package/lib/components/dynamic/quick-operation/img/new-share.png +0 -0
- package/lib/components/dynamic/quick-operation/img/new-task.png +0 -0
- package/lib/components/dynamic/quick-operation/index.css +51 -0
- package/lib/components/dynamic/quick-operation/index.js +120 -0
- package/lib/components/dynamic/request-api.js +68 -7
- package/lib/components/nav-top/index.js +4 -8
- package/lib/components/okr-detail/base-info/other-infos/date-cycle/index.js +4 -20
- package/lib/components/okr-detail/base-info/other-infos/principal/index.js +1 -9
- package/lib/components/okr-detail/components/header/index.js +3 -10
- package/lib/components/okr-detail/components/header/o-name.js +3 -10
- package/lib/components/okr-detail/components/o-classify.js +1 -5
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +14 -13
- package/lib/components/okr-detail/detail-header/delete-confirm/delete-confirm.js +43 -98
- package/lib/components/okr-detail/detail-header/delete-confirm/style.js +38 -0
- package/lib/components/okr-detail/detail-header/index.css +0 -11
- package/lib/components/okr-detail/detail-header/index.js +234 -228
- package/lib/components/okr-detail/index.js +4 -21
- package/lib/components/okr-detail/okr-list/index.js +3 -8
- package/lib/components/okr-detail/request-apis.js +4 -10
- package/lib/components/okr-flow/child-node/index.css +1 -1
- package/lib/components/okr-flow/export-modal/index.js +2 -47
- package/lib/components/okr-period-selector/index.js +5 -9
- package/lib/components/okr-period-selector/select-cycle.js +19 -23
- package/lib/components/operation-records/index.js +1 -1
- package/lib/components/operation-records/style.js +1 -1
- package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +10 -16
- package/lib/components/task-relation-modal/request-api.js +1 -2
- package/lib/components/task-tree/index.js +1 -7
- package/lib/components/task-tree/task-item-node/e-task.js +2 -2
- package/lib/components/task-tree/task-item-node/index.css +12 -14
- package/lib/components/task-tree/task-tree.css +1 -1
- package/lib/components/time-picker/time-picker.js +93 -37
- package/lib/components/toast/index.js +3 -5
- package/lib/index.js +0 -40
- package/lib/pages/new-okr-list/header/index.css +0 -45
- package/lib/pages/new-okr-list/header/index.js +16 -38
- package/lib/pages/new-okr-list/index.js +1 -3
- package/lib/pages/new-okr-list/list/index.js +2 -19
- package/lib/pages/new-okr-list/request-api.js +2 -8
- package/lib/pages/okr-map/unsupport-ie/index.js +5 -3
- package/lib/utils/format-time.js +1 -8
- package/lib/utils/open-data.js +1 -5
- package/package.json +2 -2
- package/lib/components/okr-detail/detail-header/constant.js +0 -53
- package/lib/components/okr-detail/detail-header/delete-confirm/index.css +0 -55
- package/lib/components/okr-detail/helper.js +0 -108
- package/lib/components/task-tree/mock.js +0 -944
- package/lib/components/textarea/index.css +0 -142
- package/lib/components/textarea/index.js +0 -259
- package/lib/pages/new-okr-list/header/common.js +0 -52
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
.titaui-new-ui-dynamic {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
6
|
+
height: 100%;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.titaui-new-ui-dynamic__header {
|
|
10
|
+
position: absolute;
|
|
11
|
+
display: flex;
|
|
12
|
+
justify-content: space-between;
|
|
13
|
+
height: 68px;
|
|
14
|
+
background: #ffffff;
|
|
15
|
+
box-shadow: 0px 0px 24px 0px rgba(127, 145, 180, 0.2);
|
|
16
|
+
padding: 0 24px;
|
|
17
|
+
width: calc(100% - 14px);
|
|
18
|
+
box-sizing: border-box;
|
|
19
|
+
z-index: 3;
|
|
20
|
+
border-radius: 12px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.titaui-new-ui-dynamic__header--content-scroll {
|
|
24
|
+
background: rgba(255, 255, 255, 0.92);
|
|
25
|
+
backdrop-filter: blur(4px);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.titaui-new-ui-dynamic__header-search {
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.titaui-new-ui-dynamic__header-tabs {
|
|
34
|
+
display: flex;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.titaui-new-ui-dynamic__content {
|
|
38
|
+
position: relative;
|
|
39
|
+
display: flex;
|
|
40
|
+
flex: 1;
|
|
41
|
+
overflow: auto;
|
|
42
|
+
padding: 78px 0 0 0;
|
|
43
|
+
box-sizing: border-box;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.titaui-new-ui-dynamic__content-left {
|
|
47
|
+
display: flex;
|
|
48
|
+
flex-direction: column;
|
|
49
|
+
width: calc(100% - 288px);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.titaui-new-ui-dynamic__content-left-tabs {
|
|
53
|
+
display: flex;
|
|
54
|
+
align-items: center;
|
|
55
|
+
min-height: 48px;
|
|
56
|
+
max-height: 48px;
|
|
57
|
+
background: #ffffff;
|
|
58
|
+
box-shadow: 0px 0px 8px 0px rgba(127, 145, 180, 0.1);
|
|
59
|
+
border-radius: 12px;
|
|
60
|
+
padding-left: 20px;
|
|
61
|
+
margin-bottom: 10px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.titaui-new-ui-dynamic__content-left-tab {
|
|
65
|
+
display: inline-flex;
|
|
66
|
+
align-items: center;
|
|
67
|
+
height: 30px;
|
|
68
|
+
padding: 4px 12px;
|
|
69
|
+
background: #ffffff;
|
|
70
|
+
border-radius: 15px;
|
|
71
|
+
font-size: 14px;
|
|
72
|
+
color: #3f4755;
|
|
73
|
+
line-height: 22px;
|
|
74
|
+
box-sizing: border-box;
|
|
75
|
+
cursor: pointer;
|
|
76
|
+
white-space: nowrap;
|
|
77
|
+
word-break: keep-all;
|
|
78
|
+
overflow: hidden;
|
|
79
|
+
text-overflow: ellipsis;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.titaui-new-ui-dynamic__content-left-tab--active {
|
|
83
|
+
background: rgba(40, 121, 255, 0.1);
|
|
84
|
+
color: #2879ff;
|
|
85
|
+
animation: second-tab-animation 0.1s linear;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.titaui-new-ui-dynamic__content-left-loading {
|
|
89
|
+
margin: 0 auto;
|
|
90
|
+
background-image: url("./img/dynamic-loading.gif");
|
|
91
|
+
background-repeat: no-repeat;
|
|
92
|
+
background-size: 100px 40px;
|
|
93
|
+
padding-bottom: 60px;
|
|
94
|
+
width: 100px;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.titaui-new-ui-dynamic__content-right {
|
|
98
|
+
margin-left: 10px;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.titaui-new-ui-dynamic__loading {
|
|
102
|
+
position: absolute;
|
|
103
|
+
width: 100%;
|
|
104
|
+
height: 100%;
|
|
105
|
+
z-index: 4;
|
|
106
|
+
background: #f0f4fa;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.titaui-new-ui-dynamic__loading-img {
|
|
110
|
+
width: 100px;
|
|
111
|
+
position: relative;
|
|
112
|
+
top: 50%;
|
|
113
|
+
left: 50%;
|
|
114
|
+
transform: translate(-50%, -50%);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.titaui-new-ui-dynamic__empty-loading-block {
|
|
118
|
+
height: 160px;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.titaui-new-ui-dynamic__no-more-data {
|
|
122
|
+
display: flex;
|
|
123
|
+
justify-content: center;
|
|
124
|
+
align-items: center;
|
|
125
|
+
padding-bottom: 20px;
|
|
126
|
+
font-size: 14px;
|
|
127
|
+
color: #6f7886;
|
|
128
|
+
line-height: 22px;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.titaui-new-ui-dynamic__no-more-data::before {
|
|
132
|
+
content: "";
|
|
133
|
+
display: inline-block;
|
|
134
|
+
margin-right: 12px;
|
|
135
|
+
width: 192px;
|
|
136
|
+
height: 2px;
|
|
137
|
+
background: linear-gradient(90deg, #f0f4fa 0%, #b8c3d5 100%);
|
|
138
|
+
border-radius: 1px;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.titaui-new-ui-dynamic__no-more-data::after {
|
|
142
|
+
content: "";
|
|
143
|
+
display: inline-block;
|
|
144
|
+
margin-left: 12px;
|
|
145
|
+
width: 192px;
|
|
146
|
+
height: 2px;
|
|
147
|
+
background: linear-gradient(90deg, #b8c3d5 0%, #f0f4fa 100%);
|
|
148
|
+
border-radius: 1px;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.titaui-new-ui-dynamic__go-to-top {
|
|
152
|
+
position: fixed;
|
|
153
|
+
bottom: 128px;
|
|
154
|
+
right: 24px;
|
|
155
|
+
display: flex;
|
|
156
|
+
align-items: center;
|
|
157
|
+
justify-content: center;
|
|
158
|
+
width: 42px;
|
|
159
|
+
height: 42px;
|
|
160
|
+
background: rgba(255, 255, 255, 0.86);
|
|
161
|
+
box-shadow: 0px 4px 12px 0px rgba(127, 145, 180, 0.2);
|
|
162
|
+
border-radius: 50%;
|
|
163
|
+
cursor: pointer;
|
|
164
|
+
z-index: 1;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.titaui-new-ui-dynamic__go-to-top-img {
|
|
168
|
+
display: inline-block;
|
|
169
|
+
width: 24px;
|
|
170
|
+
height: 24px;
|
|
171
|
+
background: url("./img/dynamic-top.svg") no-repeat;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
@keyframes activeAnimation {
|
|
175
|
+
0% {
|
|
176
|
+
width: 0;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
100% {
|
|
180
|
+
width: 24px;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
@keyframes second-tab-animation {
|
|
185
|
+
0% {
|
|
186
|
+
opacity: 0;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
100% {
|
|
190
|
+
opacity: 1;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
.dynamic-online-broadcast-item {
|
|
2
|
+
margin-top: 12px;
|
|
3
|
+
cursor: pointer;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.dynamic-online-broadcast-item__info {
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.dynamic-online-broadcast-item__order {
|
|
12
|
+
font-size: 12px;
|
|
13
|
+
line-height: 18px;
|
|
14
|
+
color: #96a9c4;
|
|
15
|
+
margin-right: 8px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.dynamic-online-broadcast-item__order--first {
|
|
19
|
+
color: #ff614d;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.dynamic-online-broadcast-item__order--second {
|
|
23
|
+
color: #f0a326;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.dynamic-online-broadcast-item__order--third {
|
|
27
|
+
color: #75aaff;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.dynamic-online-broadcast-item__text {
|
|
31
|
+
position: relative;
|
|
32
|
+
display: inline-block;
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
word-break: keep-all;
|
|
35
|
+
white-space: nowrap;
|
|
36
|
+
margin-right: 4px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.dynamic-online-broadcast-item__text:hover {
|
|
40
|
+
color: #2879ff;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.dynamic-online-broadcast-item__date {
|
|
44
|
+
margin-top: 4px;
|
|
45
|
+
font-size: 12px;
|
|
46
|
+
color: #89919f;
|
|
47
|
+
line-height: 18px;
|
|
48
|
+
margin-left: 16px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.dynamic-online-broadcast-item__new, .dynamic-online-broadcast-item__preview {
|
|
52
|
+
display: flex;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.dynamic-online-broadcast-item__new-icon, .dynamic-online-broadcast-item__preview-icon {
|
|
56
|
+
width: 28px;
|
|
57
|
+
height: 14px;
|
|
58
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
+
|
|
12
|
+
var _tooltip = _interopRequireDefault(require("../../../../tooltip"));
|
|
13
|
+
|
|
14
|
+
var _new = _interopRequireDefault(require("../../img/new.png"));
|
|
15
|
+
|
|
16
|
+
var _preview = _interopRequireDefault(require("../../img/preview.png"));
|
|
17
|
+
|
|
18
|
+
require("./index.css");
|
|
19
|
+
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
|
+
|
|
22
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
23
|
+
|
|
24
|
+
var prefix = "dynamic-online-broadcast-item";
|
|
25
|
+
|
|
26
|
+
var BroadcastItem = function BroadcastItem(_ref) {
|
|
27
|
+
var _classNames;
|
|
28
|
+
|
|
29
|
+
var hasOnline = _ref.hasOnline,
|
|
30
|
+
preContent = _ref.preContent,
|
|
31
|
+
preHref = _ref.preHref,
|
|
32
|
+
isNew = _ref.isNew,
|
|
33
|
+
date = _ref.date,
|
|
34
|
+
index = _ref.index;
|
|
35
|
+
|
|
36
|
+
var handleClickItem = function handleClickItem() {
|
|
37
|
+
window.open(preHref, "_blank");
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
41
|
+
className: prefix,
|
|
42
|
+
onClick: handleClickItem
|
|
43
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
44
|
+
className: "".concat(prefix, "__info")
|
|
45
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
46
|
+
className: (0, _classnames["default"])("".concat(prefix, "__order"), (_classNames = {}, _defineProperty(_classNames, "".concat(prefix, "__order--first"), index === 1), _defineProperty(_classNames, "".concat(prefix, "__order--second"), index === 2), _defineProperty(_classNames, "".concat(prefix, "__order--third"), index === 3), _classNames))
|
|
47
|
+
}, index), /*#__PURE__*/_react["default"].createElement("span", {
|
|
48
|
+
className: "".concat(prefix, "__text")
|
|
49
|
+
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
50
|
+
isPercent: true,
|
|
51
|
+
text: preContent
|
|
52
|
+
})), isNew && hasOnline && /*#__PURE__*/_react["default"].createElement("span", {
|
|
53
|
+
className: "".concat(prefix, "__new")
|
|
54
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
55
|
+
className: "".concat(prefix, "__new-icon"),
|
|
56
|
+
src: _new["default"]
|
|
57
|
+
})), isNew && !hasOnline && /*#__PURE__*/_react["default"].createElement("span", {
|
|
58
|
+
className: "".concat(prefix, "__preview")
|
|
59
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
60
|
+
className: "".concat(prefix, "__preview-icon"),
|
|
61
|
+
src: _preview["default"]
|
|
62
|
+
}))), date && /*#__PURE__*/_react["default"].createElement("div", {
|
|
63
|
+
className: "".concat(prefix, "__date")
|
|
64
|
+
}, date));
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
var _default = BroadcastItem;
|
|
68
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.onlineBroadcastData = exports["default"] = void 0;
|
|
7
|
+
// import { getBSGlobal } from "../../../utils/bs-global";
|
|
8
|
+
// 上线预报定义1
|
|
9
|
+
// const source = getBSGlobal("tenantInfo").Source;
|
|
10
|
+
// let href = "";
|
|
11
|
+
// if (source === 860) {
|
|
12
|
+
// href = "https://wiki.tita.com/pages/viewpage.action?pageId=15697696";
|
|
13
|
+
// } else if (source === 861) {
|
|
14
|
+
// href = "https://wiki.tita.com/pages/viewpage.action?pageId=15697725";
|
|
15
|
+
// } else if (source === 862) {
|
|
16
|
+
// href = "https://wiki.tita.com/pages/viewpage.action?pageId=15697712";
|
|
17
|
+
// } else {
|
|
18
|
+
// href = "https://wiki.tita.com/pages/viewpage.action?pageId=15697741";
|
|
19
|
+
// }
|
|
20
|
+
var onlineBroadcastData = [{
|
|
21
|
+
hasOnline: true,
|
|
22
|
+
preContent: "「考核」OKR 维度支持按 KR 评分啦",
|
|
23
|
+
preHref: "https://wiki.tita.com/x/JYOeAQ",
|
|
24
|
+
isNew: true,
|
|
25
|
+
date: "4/11"
|
|
26
|
+
}, {
|
|
27
|
+
hasOnline: true,
|
|
28
|
+
preContent: "「OKR 工作法」体验优化 ",
|
|
29
|
+
preHref: "https://wiki.tita.com/x/jIOeAQ",
|
|
30
|
+
isNew: false,
|
|
31
|
+
date: "3/29"
|
|
32
|
+
}, {
|
|
33
|
+
hasOnline: true,
|
|
34
|
+
preContent: "「考核」支持建立企业指标库",
|
|
35
|
+
preHref: "https://wiki.tita.com/x/vYGeAQ",
|
|
36
|
+
isNew: false,
|
|
37
|
+
date: "2/17"
|
|
38
|
+
}, {
|
|
39
|
+
hasOnline: true,
|
|
40
|
+
preContent: "「OKR」支持手动进行目标打分",
|
|
41
|
+
preHref: "https://wiki.tita.com/x/GYCeAQ",
|
|
42
|
+
isNew: false,
|
|
43
|
+
date: "1/12"
|
|
44
|
+
}, {
|
|
45
|
+
hasOnline: true,
|
|
46
|
+
preContent: "「考核」支持批量公布考核结果 ",
|
|
47
|
+
preHref: "https://wiki.tita.com/x/L4CeAQ",
|
|
48
|
+
isNew: false,
|
|
49
|
+
date: "1/11"
|
|
50
|
+
}, {
|
|
51
|
+
hasOnline: true,
|
|
52
|
+
preContent: "Tita「Learning」 全新上线",
|
|
53
|
+
preHref: "https://wiki.tita.com/x/doNrAQ",
|
|
54
|
+
isNew: false,
|
|
55
|
+
date: "12/26"
|
|
56
|
+
}, {
|
|
57
|
+
hasOnline: true,
|
|
58
|
+
preContent: "「OKR」支持设置子目标权重",
|
|
59
|
+
preHref: "https://wiki.tita.com/x/mIFrAQ",
|
|
60
|
+
isNew: false,
|
|
61
|
+
date: "12/18"
|
|
62
|
+
}, {
|
|
63
|
+
hasOnline: true,
|
|
64
|
+
preContent: "「OKR 」每周工作小结推送",
|
|
65
|
+
preHref: "https://wiki.tita.com/x/F4FrAQ",
|
|
66
|
+
isNew: false,
|
|
67
|
+
date: "12/8"
|
|
68
|
+
}, {
|
|
69
|
+
hasOnline: true,
|
|
70
|
+
preContent: "「OKR」新增管理规定,开启全员提醒",
|
|
71
|
+
preHref: "https://wiki.tita.com/x/6YBrAQ",
|
|
72
|
+
isNew: false,
|
|
73
|
+
date: "12/7"
|
|
74
|
+
}];
|
|
75
|
+
exports.onlineBroadcastData = onlineBroadcastData;
|
|
76
|
+
var _default = onlineBroadcastData;
|
|
77
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>上线</title>
|
|
4
|
+
<g id="动态" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
|
+
<g transform="translate(-922.000000, -729.000000)" id="编组-7">
|
|
6
|
+
<g transform="translate(906.000000, 711.000000)">
|
|
7
|
+
<g id="上线" transform="translate(16.000000, 18.000000)">
|
|
8
|
+
<circle id="椭圆形" fill="#F56868" cx="10" cy="10" r="10"></circle>
|
|
9
|
+
<path d="M11.8409601,5.02039481 C12.0607062,5.06789152 12.2513045,5.19521898 12.3708171,5.37436084 C12.4551761,5.50081575 12.5,5.64709197 12.5,5.79637754 L12.5,14.2038355 C12.5,14.4933736 12.3323006,14.7601176 12.0619452,14.9004804 C11.7915897,15.0408432 11.4612064,15.0327093 11.199096,14.8792372 L7.07387659,12.8671576 L6.19040457,12.8671576 C5.53296228,12.8671576 5,12.3679353 5,11.7521134 L5,8.24809964 C5,7.63227776 5.53296228,7.13305548 6.19040457,7.13305548 L7.07387659,7.13305548 L11.199096,5.1211008 C11.3903249,5.00912372 11.621214,4.9728981 11.8409601,5.02039481 Z M14.098818,7.2775841 C15.2999064,9.00639215 15.3004375,11.3014434 14.1001492,13.0308092 C13.9844061,13.1916195 13.7614463,13.2299439 13.598824,13.1169815 C13.4362017,13.0040191 13.3938229,12.7813824 13.5035352,12.616383 C14.5312451,11.1363956 14.5307622,9.17185423 13.502325,7.69237405 C13.3880073,7.52734138 13.4288592,7.30070687 13.5935719,7.18616299 C13.7582899,7.07162698 13.9844924,7.1125569 14.098818,7.2775841 Z" id="形状结合" fill="#FFFFFF" fill-rule="nonzero"></path>
|
|
10
|
+
</g>
|
|
11
|
+
</g>
|
|
12
|
+
</g>
|
|
13
|
+
</g>
|
|
14
|
+
</svg>
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
.dynamic-online-broadcast__container {
|
|
2
|
+
width: 278px;
|
|
3
|
+
border-radius: 12px;
|
|
4
|
+
box-shadow: 0px 2px 12px 0px rgba(127, 145, 180, 0.2);
|
|
5
|
+
background: #ffffff;
|
|
6
|
+
padding: 16px 16px 24px 16px;
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
margin-top: 10px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.dynamic-online-broadcast__header {
|
|
12
|
+
display: flex;
|
|
13
|
+
justify-content: space-between;
|
|
14
|
+
align-items: center;
|
|
15
|
+
padding-bottom: 10px;
|
|
16
|
+
border-bottom: 1px solid #e9ecf0;
|
|
17
|
+
margin-bottom: 4px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.dynamic-online-broadcast__header-left {
|
|
21
|
+
display: inline-flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.dynamic-online-broadcast__header-left-icon {
|
|
26
|
+
width: 20px;
|
|
27
|
+
height: 20px;
|
|
28
|
+
margin-right: 4px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.dynamic-online-broadcast__header-left-text {
|
|
32
|
+
font-size: 16px;
|
|
33
|
+
font-weight: 600;
|
|
34
|
+
color: #3f4755;
|
|
35
|
+
line-height: 24px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.dynamic-online-broadcast__header-right {
|
|
39
|
+
font-size: 14px;
|
|
40
|
+
color: #2879ff;
|
|
41
|
+
line-height: 24px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.dynamic-online-broadcast__header-right:hover {
|
|
45
|
+
color: #5c8eff;
|
|
46
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _bsGlobal = require("../../../utils/bs-global");
|
|
11
|
+
|
|
12
|
+
var _broadcast = _interopRequireDefault(require("./img/broadcast.svg"));
|
|
13
|
+
|
|
14
|
+
var _data = require("./data");
|
|
15
|
+
|
|
16
|
+
var _broadcastItem = _interopRequireDefault(require("./components/broadcast-item"));
|
|
17
|
+
|
|
18
|
+
var _getLocale = require("../../../utils/getLocale");
|
|
19
|
+
|
|
20
|
+
require("./index.css");
|
|
21
|
+
|
|
22
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
|
+
|
|
24
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
25
|
+
|
|
26
|
+
var prefix = "dynamic-online-broadcast";
|
|
27
|
+
var titaHost = (0, _bsGlobal.getBSGlobal)("titaHost"); // 飞书端不显示
|
|
28
|
+
|
|
29
|
+
var onlinePreHandler = titaHost.indexOf("tita") > -1 && window.BSGlobal.tenantInfo.Source != 862;
|
|
30
|
+
|
|
31
|
+
var OnlineBroadcast = function OnlineBroadcast() {
|
|
32
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
33
|
+
className: prefix
|
|
34
|
+
}, onlinePreHandler && _data.onlineBroadcastData.length > 0 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
35
|
+
className: "".concat(prefix, "__container")
|
|
36
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
37
|
+
className: "".concat(prefix, "__header")
|
|
38
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
39
|
+
className: "".concat(prefix, "__header-left")
|
|
40
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
41
|
+
className: "".concat(prefix, "__header-left-icon"),
|
|
42
|
+
src: _broadcast["default"]
|
|
43
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
44
|
+
className: "".concat(prefix, "__header-left-text")
|
|
45
|
+
}, (0, _getLocale.getLocale)("Feed_Title_Onlinebroadcast"))), /*#__PURE__*/_react["default"].createElement("a", {
|
|
46
|
+
className: "".concat(prefix, "__header-right"),
|
|
47
|
+
href: "https://wiki.tita.com/pages/viewpage.action?pageId=15696164",
|
|
48
|
+
target: "_blank",
|
|
49
|
+
rel: "noreferrer"
|
|
50
|
+
}, (0, _getLocale.getLocale)("Feed_Set_Pop_Butt_More"))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
51
|
+
className: "".concat(prefix, "__content")
|
|
52
|
+
}, _data.onlineBroadcastData.slice(0, 5).map(function (data, index) {
|
|
53
|
+
return /*#__PURE__*/_react["default"].createElement(_broadcastItem["default"], _extends({}, data, {
|
|
54
|
+
index: index + 1,
|
|
55
|
+
key: index
|
|
56
|
+
}));
|
|
57
|
+
}))));
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
var _default = OnlineBroadcast;
|
|
61
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
.titaui-pc-create-announcement {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
flex: 1;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.titaui-pc-create-announcement__img {
|
|
10
|
+
width: 44px;
|
|
11
|
+
height: 44px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.titaui-pc-create-announcement__text {
|
|
15
|
+
margin-top: 5px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.titaui-pc-create-announcement:hover {
|
|
19
|
+
color: #2879ff;
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.titaui-pc-create-announcement:hover img {
|
|
24
|
+
animation: dynamicQuickOperationRubberBand 1s;
|
|
25
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _newAnnouncement = _interopRequireDefault(require("../../img/new-announcement.png"));
|
|
11
|
+
|
|
12
|
+
var _getLocale = require("../../../../../utils/getLocale");
|
|
13
|
+
|
|
14
|
+
require("./index.css");
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
+
|
|
18
|
+
var prefix = "titaui-pc-create-announcement";
|
|
19
|
+
|
|
20
|
+
var CreateAnnouncement = function CreateAnnouncement(_ref) {
|
|
21
|
+
var onClick = _ref.onClick;
|
|
22
|
+
|
|
23
|
+
var handleCreateAnnouncementClick = function handleCreateAnnouncementClick() {
|
|
24
|
+
onClick && onClick();
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
28
|
+
className: prefix,
|
|
29
|
+
onClick: handleCreateAnnouncementClick
|
|
30
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
31
|
+
className: "".concat(prefix, "__img animate__rubberBand"),
|
|
32
|
+
src: _newAnnouncement["default"]
|
|
33
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
34
|
+
className: "".concat(prefix, "__text")
|
|
35
|
+
}, (0, _getLocale.getLocale)("Feed_Set_Pop_Butt_Announcement")));
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
var _default = CreateAnnouncement;
|
|
39
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
.titaui-pc-create-okr {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
flex: 1;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.titaui-pc-create-okr__img {
|
|
10
|
+
width: 44px;
|
|
11
|
+
height: 44px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.titaui-pc-create-okr__text {
|
|
15
|
+
margin-top: 5px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.titaui-pc-create-okr:hover {
|
|
19
|
+
color: #2879ff;
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.titaui-pc-create-okr:hover img {
|
|
24
|
+
animation: dynamicQuickOperationRubberBand 1s;
|
|
25
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _newOkr = _interopRequireDefault(require("../../img/new-okr.png"));
|
|
11
|
+
|
|
12
|
+
var _getLocale = require("../../../../../utils/getLocale");
|
|
13
|
+
|
|
14
|
+
require("./index.css");
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
+
|
|
18
|
+
var prefix = "titaui-pc-create-okr";
|
|
19
|
+
|
|
20
|
+
var CreateOKr = function CreateOKr(_ref) {
|
|
21
|
+
var onClick = _ref.onClick;
|
|
22
|
+
|
|
23
|
+
var handleCreateOKrClick = function handleCreateOKrClick() {
|
|
24
|
+
onClick && onClick();
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
28
|
+
className: prefix,
|
|
29
|
+
onClick: handleCreateOKrClick
|
|
30
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
31
|
+
className: "".concat(prefix, "__img animate__rubberBand"),
|
|
32
|
+
src: _newOkr["default"]
|
|
33
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
34
|
+
className: "".concat(prefix, "__text")
|
|
35
|
+
}, (0, _getLocale.getLocale)("Feed_Set_Pop_Butt_NewOKR")));
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
var _default = CreateOKr;
|
|
39
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
.titaui-pc-create-share {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
flex: 1;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.titaui-pc-create-share__img {
|
|
10
|
+
width: 44px;
|
|
11
|
+
height: 44px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.titaui-pc-create-share__text {
|
|
15
|
+
margin-top: 5px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.titaui-pc-create-share:hover {
|
|
19
|
+
color: #2879ff;
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.titaui-pc-create-share:hover img {
|
|
24
|
+
animation: dynamicQuickOperationRubberBand 1s;
|
|
25
|
+
}
|