@titaui/pc 1.11.27-beta.8 → 1.11.29
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/avatar/text-avatar/index.css +7 -0
- package/lib/components/avatar/text-avatar/index.js +32 -7
- package/lib/components/button/icon-btn/index.js +17 -8
- package/lib/components/button/rect-btn/index.css +11 -45
- package/lib/components/button/rect-btn/index.js +13 -19
- package/lib/components/change-okr-modal/Item.js +14 -14
- package/lib/components/change-okr-modal/index.js +1 -2
- package/lib/components/create-okr-modal/index.js +1 -3
- 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/drop-selector/index.js +25 -10
- 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/constant.js +33 -32
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/dynamic-footer.js +9 -9
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-interview/img/wifi.svg +24 -0
- package/lib/components/dynamic/dynamic-item/dynamic-interview/index.css +51 -0
- package/lib/components/dynamic/dynamic-item/dynamic-interview/index.js +50 -0
- package/lib/components/dynamic/dynamic-item/dynamic-interview/interview-content.js +65 -0
- package/lib/components/dynamic/dynamic-item/dynamic-interview-share/img/wifi.svg +24 -0
- package/lib/components/dynamic/dynamic-item/dynamic-interview-share/index.css +61 -0
- package/lib/components/dynamic/dynamic-item/dynamic-interview-share/index.js +61 -0
- package/lib/components/dynamic/dynamic-item/dynamic-interview-share/interview-content.js +69 -0
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +5 -5
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +6 -6
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +10 -10
- package/lib/components/dynamic/dynamic-item/dynamic-reply/index.js +13 -13
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +9 -9
- package/lib/components/dynamic/dynamic-item/index.js +50 -32
- 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 +7 -15
- 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/e-priority/index.js +8 -8
- package/lib/components/eReport/eReportShare/index.js +11 -11
- package/lib/components/form/form-fields/date/index.css +24 -0
- package/lib/components/form/form-fields/date/index.js +102 -0
- package/lib/components/form/form-fields/input/index.js +10 -10
- package/lib/components/form/form-fields/user/index.css +23 -3
- package/lib/components/form/form-fields/user/index.js +18 -8
- package/lib/components/form/form-fields/user/user-input.js +15 -6
- package/lib/components/form/index.js +10 -3
- package/lib/components/grid-layout/sub-employee-okr/person-okr.js +5 -5
- package/lib/components/icon-button-list/index.js +3 -3
- package/lib/components/img-viewer/index.css +3 -3
- package/lib/components/img-viewer/index.js +11 -11
- package/lib/components/menus/components/menu-tree/images/interview-menu/my-interview.svg +16 -0
- package/lib/components/menus/components/menu-tree/images/interview-menu/template.svg +16 -0
- package/lib/components/menus/components/menu-tree/images/interview-menu/todo.svg +16 -0
- package/lib/components/menus/components/menu-tree/index.css +4 -2
- package/lib/components/menus/components/menu-tree/tree-node/index.css +85 -1
- package/lib/components/menus/export-modules/interview-menus/constant.js +30 -0
- package/lib/components/menus/export-modules/interview-menus/handle-highlight.js +63 -0
- package/lib/components/menus/export-modules/interview-menus/index.css +7 -0
- package/lib/components/menus/export-modules/interview-menus/index.js +128 -0
- package/lib/components/menus/index.js +11 -5
- package/lib/components/nav-top/components/menu/index.js +14 -14
- package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +25 -19
- package/lib/components/nav-top/components/user-message/components/remind/remind-item.js +48 -10
- package/lib/components/nav-top/components/user-message/constant.js +1 -0
- package/lib/components/nav-top/components/user-message/hrMessage.js +22 -19
- package/lib/components/nav-top/components/user-message/index.js +23 -20
- package/lib/components/nav-top/index.js +4 -8
- package/lib/components/nav-top/request.apis.js +3 -1
- 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/e-node/e-priority-dropdown.js +7 -7
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +10 -14
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/range-picker-pop.js +10 -0
- package/lib/components/okr-detail/detail-header/actions.js +23 -23
- 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 +21 -40
- package/lib/components/okr-detail/okr-list/index.js +8 -11
- package/lib/components/okr-detail/request-apis.js +4 -10
- package/lib/components/okr-flow/child-node/index.css +6 -6
- package/lib/components/okr-flow/child-node/work-node.js +21 -21
- package/lib/components/okr-flow/export-modal/index.js +33 -19
- package/lib/components/okr-flow/export-modules/okr-search-panel/index.js +14 -14
- package/lib/components/okr-flow/okr-map/index.js +5 -5
- package/lib/components/okr-flow/request-apis.js +4 -4
- package/lib/components/okr-flow/root-node/index.js +25 -24
- package/lib/components/okr-flow/utils/index.js +5 -5
- package/lib/components/okr-flow/utils/tree-handler.js +17 -17
- package/lib/components/okr-period-selector/index.js +5 -9
- package/lib/components/okr-period-selector/select-cycle.js +19 -23
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +30 -30
- package/lib/components/operation-records/index.js +1 -1
- package/lib/components/operation-records/style.js +1 -1
- package/lib/components/pagination/index.css +3 -3
- package/lib/components/pagination/select.css +58 -23
- package/lib/components/period-selector/index.css +3 -3
- package/lib/components/period-selector/index.js +11 -11
- package/lib/components/picker/components/panels/date-panel/date-body.js +118 -0
- package/lib/components/picker/components/panels/date-panel/date-head.js +87 -0
- package/lib/components/picker/components/panels/date-panel/index.css +14 -0
- package/lib/components/picker/components/panels/date-panel/index.js +49 -0
- package/lib/components/picker/components/panels/month-panel/index.css +27 -0
- package/lib/components/picker/components/panels/month-panel/index.js +63 -0
- package/lib/components/picker/components/panels/month-panel/month-body.js +89 -0
- package/lib/components/picker/components/panels/month-panel/month-head.js +47 -0
- package/lib/components/picker/components/panels/panel-body/index.js +53 -0
- package/lib/components/picker/components/panels/panel-head/index.js +48 -0
- package/lib/components/picker/components/panels/year-panel/index.css +23 -0
- package/lib/components/picker/components/panels/year-panel/index.js +65 -0
- package/lib/components/picker/components/panels/year-panel/year-body.js +92 -0
- package/lib/components/picker/components/panels/year-panel/year-head.js +35 -0
- package/lib/components/picker/components/picker-trigger/index.css +57 -0
- package/lib/components/picker/components/picker-trigger/index.js +94 -0
- package/lib/components/picker/context.js +15 -0
- package/lib/components/picker/index.css +121 -0
- package/lib/components/picker/index.js +13 -0
- package/lib/components/picker/picker-panels.js +182 -0
- package/lib/components/picker/picker.js +132 -0
- package/lib/components/picker/type.js +5 -0
- package/lib/components/picker/utils.js +28 -0
- package/lib/components/popup/index.js +4 -4
- package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +10 -16
- package/lib/components/radio/index.css +9 -9
- package/lib/components/scrollbar/scroll-mask/index.js +1 -1
- package/lib/components/superset-charts/utils/axios.js +5 -5
- package/lib/components/survey-model/index.css +18 -18
- package/lib/components/survey-model/instance.js +1 -1
- package/lib/components/task-relation-modal/request-api.js +1 -2
- package/lib/components/task-tree/helper.js +61 -0
- package/lib/components/task-tree/images/P1.svg +15 -0
- package/lib/components/task-tree/images/P2.svg +15 -0
- package/lib/components/task-tree/images/P3.svg +15 -0
- package/lib/components/task-tree/images/P4.svg +15 -0
- package/lib/components/task-tree/images/P5.svg +15 -0
- package/lib/components/task-tree/images/arrow.svg +9 -0
- package/lib/components/task-tree/images/empty-131.png +0 -0
- package/lib/components/task-tree/images/followed.svg +33 -0
- package/lib/components/task-tree/images/nice.svg +108 -0
- package/lib/components/task-tree/images/struc12.png +0 -0
- package/lib/components/task-tree/images/struc2.png +0 -0
- package/lib/components/task-tree/images/xialat-s.svg +13 -0
- package/lib/components/task-tree/index.js +22 -0
- package/lib/components/task-tree/mock.js +944 -0
- package/lib/components/task-tree/precls.js +8 -0
- package/lib/components/task-tree/request-apis.js +88 -0
- package/lib/components/task-tree/task-item-node/constant.js +45 -0
- package/lib/components/task-tree/task-item-node/e-empty.js +29 -0
- package/lib/components/task-tree/task-item-node/e-project.js +212 -0
- package/lib/components/task-tree/task-item-node/e-status-dropdown.js +94 -0
- package/lib/components/task-tree/task-item-node/e-task.js +426 -0
- package/lib/components/task-tree/task-item-node/get-process-color.js +62 -0
- package/lib/components/task-tree/task-item-node/index.css +289 -0
- package/lib/components/task-tree/task-item-node/task-node-render.js +43 -0
- package/lib/components/task-tree/task-tree.css +16 -0
- package/lib/components/task-tree/task-tree.js +49 -0
- package/lib/components/time-picker/index.css +123 -0
- package/lib/components/time-picker/index.js +13 -0
- package/lib/components/time-picker/time-picker-selector.js +138 -0
- package/lib/components/time-picker/time-picker.js +336 -0
- package/lib/components/time-picker/timer-picker-input.js +96 -0
- package/lib/components/time-picker/utils.js +52 -0
- package/lib/components/toast/index.js +3 -5
- package/lib/components/user-selector/select-tree/tree-nodes/tree-person-node/index.css +1 -0
- package/lib/components-v1/radio/radio.js +3 -3
- package/lib/components-v1/radio/style/index.css +8 -8
- package/lib/index.js +0 -40
- package/lib/pages/aha2021/index.js +5 -1
- 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/export-modules/okr-map/header/index.js +24 -24
- package/lib/pages/okr-map/export-modules/okr-map/okr-map.js +31 -31
- package/lib/pages/okr-map/export-modules/share-okr-page/header/index.css +2 -2
- package/lib/pages/okr-map/export-modules/share-okr-page/header/index.js +11 -11
- package/lib/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +8 -8
- package/lib/pages/okr-map/number-select/index.js +2 -2
- package/lib/pages/okr-map/unsupport-ie/index.js +5 -3
- package/lib/utils/auth.js +6 -6
- package/lib/utils/bs-global.js +12 -12
- package/lib/utils/format-time.js +1 -8
- package/lib/utils/hooks.js +72 -0
- package/lib/utils/open-data.js +27 -31
- package/package.json +6 -3
- package/.eslintignore +0 -3
- package/.eslintrc.js +0 -223
- package/.husky/pre-commit +0 -4
- package/.prettierignore +0 -31
- package/.prettierrc.js +0 -90
- package/.vscode/settings.json +0 -5
- 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/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,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
|
+
}
|
|
@@ -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 _newShare = _interopRequireDefault(require("../../img/new-share.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-share";
|
|
19
|
+
|
|
20
|
+
var CreateShare = function CreateShare(_ref) {
|
|
21
|
+
var onClick = _ref.onClick;
|
|
22
|
+
|
|
23
|
+
var handleCreateShareClick = function handleCreateShareClick() {
|
|
24
|
+
onClick && onClick();
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
28
|
+
className: prefix,
|
|
29
|
+
onClick: handleCreateShareClick
|
|
30
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
31
|
+
className: "".concat(prefix, "__img animate__rubberBand"),
|
|
32
|
+
src: _newShare["default"]
|
|
33
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
34
|
+
className: "".concat(prefix, "__text")
|
|
35
|
+
}, (0, _getLocale.getLocale)("Feed_Set_Pop_Butt_Sendshare")));
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
var _default = CreateShare;
|
|
39
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
.titaui-pc-create-task {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
flex: 1;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.titaui-pc-create-task__img {
|
|
10
|
+
width: 44px;
|
|
11
|
+
height: 44px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.titaui-pc-create-task__text {
|
|
15
|
+
margin-top: 5px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.titaui-pc-create-task:hover {
|
|
19
|
+
color: #2879ff;
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.titaui-pc-create-task:hover img {
|
|
24
|
+
animation: dynamicQuickOperationRubberBand 1s;
|
|
25
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _newTask = _interopRequireDefault(require("../../img/new-task.png"));
|
|
13
|
+
|
|
14
|
+
var _getLocale = require("../../../../../utils/getLocale");
|
|
15
|
+
|
|
16
|
+
require("./index.css");
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
+
|
|
20
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
|
+
|
|
22
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
23
|
+
|
|
24
|
+
var prefix = "titaui-pc-create-task";
|
|
25
|
+
var CreateTask = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
26
|
+
var onClick = _ref.onClick;
|
|
27
|
+
|
|
28
|
+
var handleCreateTaskClick = function handleCreateTaskClick() {
|
|
29
|
+
onClick && onClick();
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
33
|
+
className: prefix,
|
|
34
|
+
onClick: handleCreateTaskClick,
|
|
35
|
+
ref: ref
|
|
36
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
37
|
+
className: "".concat(prefix, "__img animate__rubberBand"),
|
|
38
|
+
src: _newTask["default"]
|
|
39
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
40
|
+
className: "".concat(prefix, "__text")
|
|
41
|
+
}, (0, _getLocale.getLocale)("Feed_Set_Pop_Butt_Newtask")));
|
|
42
|
+
});
|
|
43
|
+
var _default = CreateTask;
|
|
44
|
+
exports["default"] = _default;
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
.titaui-pc-dynamic-quick-operation {
|
|
2
|
+
width: 278px;
|
|
3
|
+
height: 126px;
|
|
4
|
+
padding: 0 5px;
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
background: #ffffff;
|
|
9
|
+
box-shadow: 0px 0px 8px 0px rgba(127, 145, 180, 0.1);
|
|
10
|
+
border-radius: 12px;
|
|
11
|
+
font-size: 12px;
|
|
12
|
+
color: #3f4755;
|
|
13
|
+
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@keyframes dynamicQuickOperationRubberBand {
|
|
17
|
+
0% {
|
|
18
|
+
-webkit-transform: scaleX(1);
|
|
19
|
+
transform: scaleX(1);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
30% {
|
|
23
|
+
-webkit-transform: scale3d(1.25, 0.75, 1);
|
|
24
|
+
transform: scale3d(1.25, 0.75, 1);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
40% {
|
|
28
|
+
-webkit-transform: scale3d(0.75, 1.25, 1);
|
|
29
|
+
transform: scale3d(0.75, 1.25, 1);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
50% {
|
|
33
|
+
-webkit-transform: scale3d(1.15, 0.85, 1);
|
|
34
|
+
transform: scale3d(1.15, 0.85, 1);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
65% {
|
|
38
|
+
-webkit-transform: scale3d(0.95, 1.05, 1);
|
|
39
|
+
transform: scale3d(0.95, 1.05, 1);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
75% {
|
|
43
|
+
-webkit-transform: scale3d(1.05, 0.95, 1);
|
|
44
|
+
transform: scale3d(1.05, 0.95, 1);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
to {
|
|
48
|
+
-webkit-transform: scaleX(1);
|
|
49
|
+
transform: scaleX(1);
|
|
50
|
+
}
|
|
51
|
+
}
|