@titaui/pc 1.10.4 → 1.10.6-3.beta-2
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/.eslintrc.js +2 -2
- package/.prettierignore +1 -1
- package/lib/components/book-demo/utils.js +4 -0
- package/lib/components/button/default-button/index.css +10 -4
- package/lib/components/button/default-button/index.js +13 -2
- package/lib/components/change-okr-modal/index.js +108 -87
- package/lib/components/checkbox/index.css +1 -0
- package/lib/components/communication/CommunicationRecord.js +22 -16
- package/lib/components/communication/index.css +50 -10
- package/lib/components/communication/index.js +86 -30
- package/lib/components/communication/style.js +8 -6
- package/lib/components/create-okr-modal/fields/o-new-name.js +31 -21
- package/lib/components/create-okr-modal/fields/okr-parent.js +1 -5
- package/lib/components/create-okr-modal/kr-items/krDatas.js +16 -16
- package/lib/components/{dynamic/components/dangerous-html → dangerous-html}/index.js +0 -0
- package/lib/components/dialog/index.css +4 -1
- package/lib/components/dialog/index.js +1 -1
- package/lib/components/dialog-confirm/index.css +1 -1
- package/lib/components/drawer-manager/index.js +6 -1
- package/lib/components/dynamic/components/first-level-tabs/index.css +12 -2
- package/lib/components/dynamic/components/first-level-tabs/index.js +19 -6
- package/lib/components/dynamic/components/obj-status/index.css +3 -19
- package/lib/components/dynamic/components/obj-status/index.js +7 -8
- package/lib/components/dynamic/components/obj-status/utils.js +37 -0
- package/lib/components/dynamic/components/percent/index.css +1 -1
- package/lib/components/dynamic/components/title/index.css +21 -22
- package/lib/components/dynamic/components/title/index.js +20 -8
- package/lib/components/dynamic/constant.js +12 -2
- package/lib/components/dynamic/dynamic-item/components/feed-operate/index.css +71 -0
- package/lib/components/dynamic/dynamic-item/components/feed-operate/index.js +112 -0
- package/lib/components/dynamic/dynamic-item/components/header/index.css +8 -7
- package/lib/components/dynamic/dynamic-item/components/header/index.js +13 -7
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align-kr.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align-o.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.css +44 -27
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +43 -31
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +5 -33
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +6 -32
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +58 -18
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +31 -21
- package/lib/components/dynamic/dynamic-item/dynamic-chart/index.css +4 -0
- package/lib/components/dynamic/dynamic-item/dynamic-chart/index.js +102 -0
- package/lib/components/dynamic/dynamic-item/dynamic-chart/utils.js +61 -0
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +56 -44
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +52 -44
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +39 -27
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +25 -29
- package/lib/components/dynamic/dynamic-item/dynamic-learning/img/dynamic-share-course.png +0 -0
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/img/jiantou-right@3x.png +0 -0
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/img/user-photo.png +0 -0
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/index.css +10 -18
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/index.js +15 -30
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/constant.js +9 -2
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +31 -14
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +14 -25
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.css +25 -40
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.js +10 -29
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.css +25 -40
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.js +13 -30
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +13 -55
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +33 -80
- package/lib/components/dynamic/dynamic-item/dynamic-progress/utils.js +72 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +35 -28
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +13 -24
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-kr.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-o.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-project.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-task.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela.svg +23 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.css +56 -31
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +78 -34
- package/lib/components/dynamic/dynamic-item/{dynamic-replay → dynamic-reply}/index.css +29 -32
- package/lib/components/dynamic/dynamic-item/{dynamic-replay → dynamic-reply}/index.js +12 -18
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +20 -22
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +42 -29
- package/lib/components/dynamic/dynamic-item/dynamic-reward/img/reward.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.css +8 -3
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +23 -66
- package/lib/components/dynamic/dynamic-item/dynamic-reward/utils.js +28 -0
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +8 -19
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +59 -36
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +32 -28
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +11 -25
- package/lib/components/dynamic/dynamic-item/index.css +59 -4
- package/lib/components/dynamic/dynamic-item/index.js +148 -17
- package/lib/components/dynamic/dynamic-like-ranking/item.js +1 -1
- package/lib/components/dynamic/dynamic-list/index.js +2 -1
- package/lib/components/dynamic/dynamic-topping/item.js +8 -4
- package/lib/components/dynamic/dynamic.js +1 -1
- package/lib/components/dynamic/img/dynamic-operate.png +0 -0
- package/lib/components/dynamic/img/dynamic-point.svg +13 -0
- package/lib/components/dynamic/img/dynamic-reward-hover.svg +1 -0
- package/lib/components/dynamic/img/dynamic-reward-normal.svg +1 -0
- package/lib/components/dynamic/util.js +41 -81
- package/lib/components/e-status-dropdown/index.css +3 -0
- package/lib/components/e-status-dropdown/index.js +94 -0
- package/lib/components/file-list/components/single-file/index.css +14 -12
- package/lib/components/file-list/components/single-file/index.js +1 -1
- package/lib/components/file-list/index.css +1 -0
- package/lib/components/follower-visitor/index.js +6 -4
- package/lib/components/grid-layout/okr-progress/index.js +20 -30
- package/lib/components/help-card/image/not-try.png +0 -0
- package/lib/components/help-card/image/try.png +0 -0
- package/lib/components/help-card/index.css +31 -2
- package/lib/components/help-card/index.js +54 -17
- package/lib/components/invite-people/img/invite-people.svg +62 -0
- package/lib/components/invite-people/index.css +1 -1
- package/lib/components/mblog/context.js +3 -1
- package/lib/components/mblog/index.css +7 -0
- package/lib/components/mblog/index.js +45 -9
- package/lib/components/mblog/style.js +4 -4
- package/lib/components/menus/export-modules/demo-menus/index.js +2 -2
- package/lib/components/menus/export-modules/demo-menus/menu-highlight.js +25 -1
- package/lib/components/menus/export-modules/demo-menus/menus.js +60 -11
- package/lib/components/menus/export-modules/manage-menus/constant.js +1 -1
- package/lib/components/menus/export-modules/manage-menus/index.css +3 -0
- package/lib/components/menus/images/okr-gongsi.svg +17 -0
- package/lib/components/nav-top/components/menu/index.css +24 -0
- package/lib/components/nav-top/components/menu/index.js +9 -1
- package/lib/components/nav-top/components/user-message/components/reply/index.js +9 -8
- package/lib/components/nav-top/components/user-message/components/reply/reply-item.js +15 -5
- package/lib/components/nav-top/components/user-message/index.css +4 -3
- package/lib/components/nav-top/components/user-message/index.js +33 -6
- package/lib/components/nav-top/request.apis.js +8 -2
- package/lib/components/nav-top/useGlobalValue.js +14 -0
- package/lib/components/okr-detail/components/header/o-score.js +4 -6
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.css +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +27 -13
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-empty.js +7 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-project.js +8 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +7 -3
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/index.css +20 -1
- package/lib/components/okr-detail/e-list/index.js +23 -7
- package/lib/components/okr-detail/e-list/util.js +7 -2
- package/lib/components/okr-detail/index.js +2 -0
- package/lib/components/okr-detail/okr-list/index.js +1 -5
- package/lib/components/okr-flow/export-modal/index.js +3 -3
- package/lib/components/okr-progress-detail/index.js +5 -1
- package/lib/components/okr-progress-modal/helper.js +20 -27
- package/lib/components/okr-share/common-painter/openDataPainter.js +34 -27
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +40 -36
- package/lib/components/open-data-painter/index.js +5 -1
- package/lib/components/progress/circle-progress/index.css +1 -0
- package/lib/components/progress/circle-progress/index.js +8 -3
- package/lib/components/rich-editor/basic/schema.js +47 -0
- package/lib/components/rich-editor/consts/events.js +12 -0
- package/lib/components/rich-editor/enums.js +42 -0
- package/lib/components/rich-editor/index.js +58 -0
- package/lib/components/rich-editor/keymap.js +119 -0
- package/lib/components/rich-editor/keymaps/index.js +241 -0
- package/lib/components/rich-editor/models/controller.js +18 -0
- package/lib/components/rich-editor/models/editor.js +47 -0
- package/lib/components/rich-editor/models/plugin.js +20 -0
- package/lib/components/rich-editor/models/schema.js +121 -0
- package/lib/components/rich-editor/plugins/block/block-quote/commond.js +27 -0
- package/lib/components/rich-editor/plugins/block/block-quote/index.js +128 -0
- package/lib/components/rich-editor/plugins/block/heading/commonds.js +31 -0
- package/lib/components/rich-editor/plugins/block/heading/index.js +190 -0
- package/lib/components/rich-editor/plugins/block/index.js +57 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/conversions.js +172 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/indent-list-items-selected.js +163 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/indent-list.js +59 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-forward.js +74 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/index.js +45 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-list-item-with-paragraph.js +104 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-list-item-with-parent-nested-list.js +92 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-nested-list-with-parent-list-item.js +89 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-paragraph-with-list.js +48 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-sibling-list-items.js +61 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/merge-lists.js +34 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/outdent-list-items-selected.js +289 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/wrap-and-join-lists.js +180 -0
- package/lib/components/rich-editor/plugins/block/lists/baseCommand.js +328 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/indent-list.js +60 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/index.js +396 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/join-list-item-forward.js +45 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/listBackspace.js +302 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/outdent-list.js +43 -0
- package/lib/components/rich-editor/plugins/block/lists/index.js +224 -0
- package/lib/components/rich-editor/plugins/block/lists/messages.js +38 -0
- package/lib/components/rich-editor/plugins/block/lists/pm-plugins/input-rule.js +152 -0
- package/lib/components/rich-editor/plugins/block/lists/pm-plugins/keymap.js +33 -0
- package/lib/components/rich-editor/plugins/block/lists/pm-plugins/main.js +94 -0
- package/lib/components/rich-editor/plugins/block/lists/styles.js +15 -0
- package/lib/components/rich-editor/plugins/block/lists/transforms.js +347 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/analytics.js +48 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/find.js +126 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/indentation.js +87 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/node.js +144 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/replace-content.js +31 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/selection.js +201 -0
- package/lib/components/rich-editor/plugins/block/lists/utils.js +52 -0
- package/lib/components/rich-editor/plugins/block/paragraph/index.js +91 -0
- package/lib/components/rich-editor/plugins/core/index.js +90 -0
- package/lib/components/rich-editor/plugins/core/pm-plugins/focus-handler.js +67 -0
- package/lib/components/rich-editor/plugins/core/pm-plugins/keymap.js +29 -0
- package/lib/components/rich-editor/plugins/core/pm-plugins/reactNodeView.js +80 -0
- package/lib/components/rich-editor/plugins/extension/alignment/commond.js +24 -0
- package/lib/components/rich-editor/plugins/extension/alignment/index.js +113 -0
- package/lib/components/rich-editor/plugins/extension/alignment/utils.js +19 -0
- package/lib/components/rich-editor/plugins/extension/index.js +18 -0
- package/lib/components/rich-editor/plugins/extension/placeholder/index.js +126 -0
- package/lib/components/rich-editor/plugins/extension/placeholder/styles.js +19 -0
- package/lib/components/rich-editor/plugins/index.js +44 -0
- package/lib/components/rich-editor/plugins/inline/color/commond.js +128 -0
- package/lib/components/rich-editor/plugins/inline/color/consts.js +43 -0
- package/lib/components/rich-editor/plugins/inline/color/index.css +61 -0
- package/lib/components/rich-editor/plugins/inline/color/index.js +217 -0
- package/lib/components/rich-editor/plugins/inline/color/selector.js +252 -0
- package/lib/components/rich-editor/plugins/inline/color/util.js +25 -0
- package/lib/components/rich-editor/plugins/inline/delete-line/index.js +149 -0
- package/lib/components/rich-editor/plugins/inline/em/index.js +93 -0
- package/lib/components/rich-editor/plugins/inline/index.js +83 -0
- package/lib/components/rich-editor/plugins/inline/link/commands.js +256 -0
- package/lib/components/rich-editor/plugins/inline/link/index.js +149 -0
- package/lib/components/rich-editor/plugins/inline/link/pm-plugins/fake-cursor-for-toolbar.js +77 -0
- package/lib/components/rich-editor/plugins/inline/link/pm-plugins/main.js +293 -0
- package/lib/components/rich-editor/plugins/inline/link/ui/index.css +84 -0
- package/lib/components/rich-editor/plugins/inline/link/ui/linkEditor.js +150 -0
- package/lib/components/rich-editor/plugins/inline/link/ui/linkToolbar.js +101 -0
- package/lib/components/rich-editor/plugins/inline/link/ui/toolbarBtn.js +117 -0
- package/lib/components/rich-editor/plugins/inline/link/utils.js +33 -0
- package/lib/components/rich-editor/plugins/inline/strong/index.js +139 -0
- package/lib/components/rich-editor/plugins/inline/under-line/index.js +147 -0
- package/lib/components/rich-editor/plugins/util.js +284 -0
- package/lib/components/rich-editor/react/reactNodeView.js +383 -0
- package/lib/components/rich-editor/react/uiProvider.js +185 -0
- package/lib/components/rich-editor/schemas/basic.js +309 -0
- package/lib/components/rich-editor/schemas/index.js +19 -0
- package/lib/components/rich-editor/schemas/list.js +342 -0
- package/lib/components/rich-editor/types/commond.js +5 -0
- package/lib/components/rich-editor/types/index.js +18 -0
- package/lib/components/rich-editor/ui/Popup/index.js +247 -0
- package/lib/components/rich-editor/ui/Popup/utils.js +399 -0
- package/lib/components/rich-editor/ui/editor/index.css +178 -0
- package/lib/components/rich-editor/ui/editor/index.js +153 -0
- package/lib/components/rich-editor/ui/normal-toolbar/index.css +34 -0
- package/lib/components/rich-editor/ui/normal-toolbar/index.js +109 -0
- package/lib/components/rich-editor/utils/browser.js +35 -0
- package/lib/components/rich-editor/utils/commands.js +266 -0
- package/lib/components/rich-editor/utils/document.js +211 -0
- package/lib/components/rich-editor/utils/event.js +79 -0
- package/lib/components/rich-editor/utils/helpers.js +16 -0
- package/lib/components/rich-editor/utils/mark.js +168 -0
- package/lib/components/rich-editor/utils/slice.js +85 -0
- package/lib/components/rich-editor/utils/toolbar.js +228 -0
- package/lib/components/search-key-handle/index.js +7 -2
- package/lib/components/superset-charts/components/chart/index.js +54 -0
- package/lib/components/superset-charts/fetch-assets-and-append/append-assets.js +106 -0
- package/lib/components/superset-charts/fetch-assets-and-append/get-assets-with-cache.js +131 -0
- package/lib/components/superset-charts/fetch-assets-and-append/index.js +79 -0
- package/lib/components/superset-charts/index.js +13 -0
- package/lib/components/superset-charts/interface.js +5 -0
- package/lib/components/superset-charts/utils/axios.js +94 -0
- package/lib/components/toast/index.js +5 -17
- package/lib/components/upload/index.js +4 -2
- package/lib/components/upload/util.js +2 -0
- package/lib/components/user-selector/empty/index.css +6 -6
- package/lib/components/user-selector/selected-panel/index.css +3 -3
- package/lib/components/video-modal/components/video-box/index.css +240 -0
- package/lib/components/video-modal/components/video-box/index.js +334 -0
- package/lib/components/video-modal/img/bigFaqi.png +0 -0
- package/lib/components/video-modal/img/close.png +0 -0
- package/lib/components/video-modal/img/full.svg +21 -0
- package/lib/components/video-modal/img/muted.svg +14 -0
- package/lib/components/video-modal/img/not-muted.svg +22 -0
- package/lib/components/video-modal/img/pause.svg +13 -0
- package/lib/components/video-modal/img/play.svg +18 -0
- package/lib/components/video-modal/img/small.svg +22 -0
- package/lib/components/video-modal/index.css +83 -0
- package/lib/components/video-modal/index.js +182 -0
- package/lib/components/video-modal/utils.js +25 -0
- package/lib/components/weekly-report/common-painter/openDataPainter.js +5 -1
- package/lib/hooks/useGlobalState.js +63 -0
- package/lib/index.js +40 -0
- package/lib/pages/aha2021/img/canceled.svg +13 -0
- package/lib/pages/aha2021/img/not-try.png +0 -0
- package/lib/pages/aha2021/img/try.png +0 -0
- package/lib/pages/aha2021/index.css +52 -0
- package/lib/pages/aha2021/index.js +73 -14
- package/lib/pages/new-okr-list/header/index.js +2 -1
- package/lib/pages/new-okr-list/index.js +3 -3
- package/lib/pages/okr-map/export-modules/share-okr-page/header/index.js +0 -5
- package/lib/pages/pay/image/success.png +0 -0
- package/lib/pages/pay/index.css +79 -0
- package/lib/pages/pay/index.js +66 -0
- package/lib/utils/bs-global.js +13 -9
- package/lib/utils/helpers.js +7 -1
- package/lib/utils/open-data.js +2 -1
- package/lib/utils/tools.js +11 -2
- package/package.json +120 -101
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align.svg +0 -22
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-relative.svg +0 -22
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/img/dynamic-milestone.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/img/okrs-icon.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/img/plan-icon.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/img/dynamic-project.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-relative.svg +0 -22
- package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/img/guanlian.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-icon.png +0 -0
- package/lib/components/invite-people/img/invite-people.png +0 -0
|
@@ -3,34 +3,23 @@
|
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.titaui-dynamic-share-item__content {
|
|
6
|
-
display: flex;
|
|
7
6
|
font-size: 14px;
|
|
8
7
|
color: #3f4755;
|
|
9
|
-
line-height:
|
|
10
|
-
margin-left:
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.titaui-dynamic-share-item__content-quoto {
|
|
14
|
-
width: 12px;
|
|
15
|
-
height: 12px;
|
|
8
|
+
line-height: 24px;
|
|
9
|
+
margin-left: 88px;
|
|
16
10
|
}
|
|
17
11
|
|
|
18
|
-
.titaui-dynamic-share-item__content-
|
|
19
|
-
|
|
20
|
-
margin-
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.titaui-dynamic-share-item__content-quoto--right {
|
|
24
|
-
margin-left: 8px;
|
|
25
|
-
margin-top: 4px;
|
|
12
|
+
.titaui-dynamic-share-item__content-obj {
|
|
13
|
+
display: flex;
|
|
14
|
+
margin-bottom: 4px;
|
|
26
15
|
}
|
|
27
16
|
|
|
28
17
|
.titaui-dynamic-share-item__operate-desc {
|
|
29
18
|
font-size: 14px;
|
|
30
19
|
font-weight: 400;
|
|
31
20
|
color: #89919f;
|
|
32
|
-
line-height:
|
|
33
|
-
margin:
|
|
21
|
+
line-height: 24px;
|
|
22
|
+
margin-left: 4px;
|
|
34
23
|
overflow: hidden;
|
|
35
24
|
}
|
|
36
25
|
|
|
@@ -48,7 +37,7 @@
|
|
|
48
37
|
}
|
|
49
38
|
|
|
50
39
|
.titaui-dynamic-share-item__files {
|
|
51
|
-
margin-left:
|
|
40
|
+
margin-left: 88px;
|
|
52
41
|
margin-top: 12px;
|
|
53
42
|
}
|
|
54
43
|
|
|
@@ -9,28 +9,28 @@ exports["default"] = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
-
|
|
14
|
-
var _dynamicLeftQuoto = _interopRequireDefault(require("../../img/dynamic-left-quoto.svg"));
|
|
15
|
-
|
|
16
|
-
var _dynamicRightQuoto = _interopRequireDefault(require("../../img/dynamic-right-quoto.svg"));
|
|
17
|
-
|
|
18
12
|
var _fileList = _interopRequireDefault(require("../../../file-list"));
|
|
19
13
|
|
|
20
14
|
var _context = require("../../context");
|
|
21
15
|
|
|
22
16
|
var _header = _interopRequireDefault(require("../components/header"));
|
|
23
17
|
|
|
24
|
-
var _dangerousHtml = _interopRequireDefault(require("../../components/dangerous-html"));
|
|
25
|
-
|
|
26
|
-
var _util = require("../../util");
|
|
27
|
-
|
|
28
18
|
var _tools = require("../../../../utils/tools");
|
|
29
19
|
|
|
30
20
|
var _getLocale = require("../../../../utils/getLocale");
|
|
31
21
|
|
|
22
|
+
var _openData = require("../../../../utils/open-data");
|
|
23
|
+
|
|
24
|
+
var _title = _interopRequireDefault(require("../../components/title"));
|
|
25
|
+
|
|
26
|
+
var _drawerManager = _interopRequireDefault(require("../../../drawer-manager"));
|
|
27
|
+
|
|
28
|
+
var _utils = require("../dynamic-progress/utils");
|
|
29
|
+
|
|
32
30
|
require("./index.css");
|
|
33
31
|
|
|
32
|
+
var _constant = require("../../constant");
|
|
33
|
+
|
|
34
34
|
var _excluded = ["data", "dynamicShareIsShowToping", "hasDynamicOpereateAuth"];
|
|
35
35
|
|
|
36
36
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -39,8 +39,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
39
39
|
|
|
40
40
|
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; }
|
|
41
41
|
|
|
42
|
-
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; }
|
|
43
|
-
|
|
44
42
|
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); }
|
|
45
43
|
|
|
46
44
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
@@ -57,26 +55,56 @@ var DynamicShare = function DynamicShare(_ref) {
|
|
|
57
55
|
hasDynamicOpereateAuth = _ref$hasDynamicOperea === void 0 ? false : _ref$hasDynamicOperea,
|
|
58
56
|
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
59
57
|
|
|
58
|
+
var obj = data.obj;
|
|
59
|
+
|
|
60
60
|
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
61
61
|
searchKeyWord = _useContext.searchKeyWord;
|
|
62
62
|
|
|
63
63
|
var contentRef = (0, _react.useRef)();
|
|
64
|
-
|
|
65
|
-
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(data.feedType),
|
|
66
|
-
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
67
|
-
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
68
|
-
|
|
69
64
|
var isPublisher = data.publishUser.userId === window.BSGlobal.loginUserInfo.Id;
|
|
70
65
|
var renderDesc = (0, _react.useMemo)(function () {
|
|
71
|
-
|
|
66
|
+
var text = (0, _getLocale.getLocale)("Mod_postedshare"); // const { obj } = data;
|
|
67
|
+
// if (obj && obj.objType === EObjType.Kr) {
|
|
68
|
+
// text = "";
|
|
69
|
+
// }
|
|
70
|
+
// if (obj && obj.objType === EObjType.O) {
|
|
71
|
+
// text = `${getLocale("Mod_Updated")}${getLocale("Mod_objectiveprog")}`;
|
|
72
|
+
// }
|
|
73
|
+
// if (obj && obj.objType === EObjType.Task) {
|
|
74
|
+
// text = `${getLocale("Mod_Updated")}${getLocale("Data_Taskprogress")}`;
|
|
75
|
+
// }
|
|
76
|
+
// if (obj && obj.objType === EObjType.Project) {
|
|
77
|
+
// text = `${getLocale("Mod_Updated")}${getLocale("Mod_ProjectProgress")}`;
|
|
78
|
+
// }
|
|
79
|
+
|
|
80
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
72
81
|
className: "".concat(prefix, "__operate-desc")
|
|
73
|
-
},
|
|
74
|
-
className: "".concat(prefix, "-desc-operate-type"),
|
|
75
|
-
style: {
|
|
76
|
-
background: feedTypeColor
|
|
77
|
-
}
|
|
78
|
-
}, feedTypeText));
|
|
82
|
+
}, text);
|
|
79
83
|
}, []);
|
|
84
|
+
|
|
85
|
+
var handleClickTitle = function handleClickTitle() {
|
|
86
|
+
if (!obj) {
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
var objType = obj.objType,
|
|
91
|
+
objId = obj.objId;
|
|
92
|
+
|
|
93
|
+
if (objType === _constant.EObjType.Kr) {
|
|
94
|
+
_drawerManager["default"].open("krDetail", {
|
|
95
|
+
krId: objId
|
|
96
|
+
});
|
|
97
|
+
} else if (objType === _constant.EObjType.O) {
|
|
98
|
+
_drawerManager["default"].open("okrDetail", {
|
|
99
|
+
okrId: objId
|
|
100
|
+
});
|
|
101
|
+
} else if (objType === _constant.EObjType.Task) {
|
|
102
|
+
window.Talent.app.vent.trigger("global-pull-screen", objId, "task");
|
|
103
|
+
} else if (objType === _constant.EObjType.Project) {
|
|
104
|
+
window.open(window.location.href.replace(window.location.hash, "#work?iTalentNavCode=tita-work&work_id=".concat(objId)));
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
|
|
80
108
|
(0, _react.useEffect)(function () {
|
|
81
109
|
(0, _tools.highLightWord)({
|
|
82
110
|
parentDom: contentRef.current,
|
|
@@ -93,19 +121,14 @@ var DynamicShare = function DynamicShare(_ref) {
|
|
|
93
121
|
user: data.publishUser
|
|
94
122
|
}, restProps)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
95
123
|
className: "".concat(prefix, "__content")
|
|
96
|
-
},
|
|
97
|
-
className:
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
124
|
+
}, obj && /*#__PURE__*/_react["default"].createElement("div", {
|
|
125
|
+
className: "".concat(prefix, "__content-obj")
|
|
126
|
+
}, /*#__PURE__*/_react["default"].createElement(_title["default"], _extends({
|
|
127
|
+
content: (0, _tools.htmlDecodeByRegExp)(obj === null || obj === void 0 ? void 0 : obj.objName),
|
|
128
|
+
onClickTitle: handleClickTitle
|
|
129
|
+
}, (0, _utils.getDynamicTitleProps)(obj)))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
101
130
|
ref: contentRef
|
|
102
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
103
|
-
htmlText: data.content
|
|
104
|
-
}), /*#__PURE__*/_react["default"].createElement("img", _defineProperty({
|
|
105
|
-
className: (0, _classnames["default"])("".concat(prefix, "__content-quoto"), "".concat(prefix, "__content-quoto--right")),
|
|
106
|
-
alt: "",
|
|
107
|
-
src: _dynamicRightQuoto["default"]
|
|
108
|
-
}, "alt", "right")))), data.attachments && /*#__PURE__*/_react["default"].createElement("div", {
|
|
131
|
+
}, (0, _openData.parseTag)(data.content))), data.attachments && /*#__PURE__*/_react["default"].createElement("div", {
|
|
109
132
|
className: "".concat(prefix, "__files")
|
|
110
133
|
}, /*#__PURE__*/_react["default"].createElement(_fileList["default"], {
|
|
111
134
|
data: data.attachments
|
|
@@ -8,30 +8,27 @@
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.titaui-dynamic-task-item__content {
|
|
11
|
-
height:
|
|
11
|
+
height: 64px;
|
|
12
|
+
background: rgba(40, 121, 255, 0.06);
|
|
13
|
+
border-radius: 12px;
|
|
12
14
|
display: flex;
|
|
13
15
|
align-items: center;
|
|
14
|
-
|
|
15
|
-
background: rgba(240, 244, 250, 0.5);
|
|
16
|
-
padding: 16px 12px 16px 16px;
|
|
16
|
+
padding: 8px 12px;
|
|
17
17
|
box-sizing: border-box;
|
|
18
|
-
margin-left:
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.titaui-dynamic-task-item__content-img {
|
|
22
|
-
display: inline-block;
|
|
23
|
-
width: 36px;
|
|
24
|
-
border-radius: 6px;
|
|
18
|
+
margin-left: 88px;
|
|
25
19
|
}
|
|
26
20
|
|
|
27
21
|
.titaui-dynamic-task-item__content-info {
|
|
28
22
|
flex: 1;
|
|
29
23
|
display: flex;
|
|
30
24
|
flex-direction: column;
|
|
31
|
-
margin-left: 16px;
|
|
32
25
|
overflow: hidden;
|
|
33
26
|
}
|
|
34
27
|
|
|
28
|
+
.titaui-dynamic-task-item__content-status-icon {
|
|
29
|
+
font-size: 14px;
|
|
30
|
+
}
|
|
31
|
+
|
|
35
32
|
.titaui-dynamic-task-item__content-status-and-time-range {
|
|
36
33
|
display: flex;
|
|
37
34
|
align-items: center;
|
|
@@ -59,10 +56,30 @@
|
|
|
59
56
|
font-weight: 600;
|
|
60
57
|
color: #3f4755;
|
|
61
58
|
line-height: 24px;
|
|
59
|
+
display: flex;
|
|
60
|
+
margin-bottom: 4px;
|
|
61
|
+
align-items: center;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.titaui-dynamic-task-item__content-title-type {
|
|
65
|
+
border-radius: 18px;
|
|
66
|
+
background: rgba(92, 142, 255, 0.5);
|
|
67
|
+
color: #ffffff;
|
|
68
|
+
margin-right: 8px;
|
|
69
|
+
font-size: 14px;
|
|
70
|
+
line-height: 20px;
|
|
71
|
+
display: flex;
|
|
72
|
+
align-items: center;
|
|
73
|
+
justify-content: center;
|
|
74
|
+
padding: 0 6px;
|
|
75
|
+
font-weight: 400;
|
|
76
|
+
height: 20px;
|
|
62
77
|
}
|
|
63
78
|
|
|
64
79
|
.titaui-dynamic-task-item__content-title-text {
|
|
80
|
+
flex: 1;
|
|
65
81
|
cursor: pointer;
|
|
82
|
+
overflow: hidden;
|
|
66
83
|
}
|
|
67
84
|
|
|
68
85
|
.titaui-dynamic-task-item__content-title-text:hover {
|
|
@@ -78,7 +95,7 @@
|
|
|
78
95
|
.titaui-dynamic-task-item__object-name {
|
|
79
96
|
font-size: 14px;
|
|
80
97
|
color: #2879ff;
|
|
81
|
-
line-height:
|
|
98
|
+
line-height: 24px;
|
|
82
99
|
margin: 0 4px;
|
|
83
100
|
overflow: hidden;
|
|
84
101
|
}
|
|
@@ -92,24 +109,11 @@
|
|
|
92
109
|
font-size: 14px;
|
|
93
110
|
font-weight: 400;
|
|
94
111
|
color: #89919f;
|
|
95
|
-
line-height:
|
|
96
|
-
margin:
|
|
112
|
+
line-height: 24px;
|
|
113
|
+
margin-left: 4px;
|
|
97
114
|
overflow: hidden;
|
|
98
115
|
}
|
|
99
116
|
|
|
100
117
|
.titaui-dynamic-task-item__operate-desc-wrapper {
|
|
101
118
|
display: flex;
|
|
102
119
|
}
|
|
103
|
-
|
|
104
|
-
.titaui-dynamic-task-item-desc-operate-type {
|
|
105
|
-
display: inline-flex;
|
|
106
|
-
align-items: center;
|
|
107
|
-
justify-content: center;
|
|
108
|
-
padding: 0 6px;
|
|
109
|
-
height: 18px;
|
|
110
|
-
min-width: 40px;
|
|
111
|
-
border-radius: 10px 10px 10px 2px;
|
|
112
|
-
font-size: 12px;
|
|
113
|
-
color: #ffffff;
|
|
114
|
-
line-height: 18px;
|
|
115
|
-
}
|
|
@@ -15,8 +15,6 @@ var _header = _interopRequireDefault(require("../components/header"));
|
|
|
15
15
|
|
|
16
16
|
var _constant = require("./constant");
|
|
17
17
|
|
|
18
|
-
var _taskIcon = _interopRequireDefault(require("./img/task-icon.png"));
|
|
19
|
-
|
|
20
18
|
var _constant2 = require("../../constant");
|
|
21
19
|
|
|
22
20
|
var _context = require("../../context");
|
|
@@ -25,8 +23,6 @@ var _searchKeyHandle = _interopRequireDefault(require("../../../search-key-handl
|
|
|
25
23
|
|
|
26
24
|
var _tooltip = _interopRequireDefault(require("../../../tooltip"));
|
|
27
25
|
|
|
28
|
-
var _util = require("../../util");
|
|
29
|
-
|
|
30
26
|
var _drawerManager = _interopRequireDefault(require("../../../drawer-manager"));
|
|
31
27
|
|
|
32
28
|
var _getLocale = require("../../../../utils/getLocale");
|
|
@@ -59,7 +55,6 @@ var DynamicTask = function DynamicTask(_ref) {
|
|
|
59
55
|
taskName = data.taskName,
|
|
60
56
|
startDate = data.startDate,
|
|
61
57
|
deadline = data.deadline,
|
|
62
|
-
feedType = data.feedType,
|
|
63
58
|
obj = data.obj,
|
|
64
59
|
principalUser = data.principalUser,
|
|
65
60
|
workId = data.workId;
|
|
@@ -67,10 +62,6 @@ var DynamicTask = function DynamicTask(_ref) {
|
|
|
67
62
|
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
68
63
|
searchKeyWord = _useContext.searchKeyWord;
|
|
69
64
|
|
|
70
|
-
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(feedType),
|
|
71
|
-
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
72
|
-
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
73
|
-
|
|
74
65
|
var handleClickTaskTitle = function handleClickTaskTitle() {
|
|
75
66
|
window.Talent.app.vent.trigger("global-pull-screen", data.taskId, "task");
|
|
76
67
|
};
|
|
@@ -118,7 +109,7 @@ var DynamicTask = function DynamicTask(_ref) {
|
|
|
118
109
|
var renderDesc = (0, _react.useMemo)(function () {
|
|
119
110
|
var dom;
|
|
120
111
|
|
|
121
|
-
if (obj === null) {
|
|
112
|
+
if (obj === null || !obj.objName) {
|
|
122
113
|
dom = "".concat((0, _getLocale.getLocale)("Mod_InChargeof")).concat((0, _getLocale.getLocale)("Mod_Tasks"));
|
|
123
114
|
} else {
|
|
124
115
|
dom = /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -132,14 +123,9 @@ var DynamicTask = function DynamicTask(_ref) {
|
|
|
132
123
|
})), (0, _getLocale.getLocale)("Mod_stask"));
|
|
133
124
|
}
|
|
134
125
|
|
|
135
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
126
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
136
127
|
className: "".concat(prefix, "__operate-desc")
|
|
137
|
-
}, dom)
|
|
138
|
-
className: "".concat(prefix, "-desc-operate-type"),
|
|
139
|
-
style: {
|
|
140
|
-
background: feedTypeColor
|
|
141
|
-
}
|
|
142
|
-
}, feedTypeText));
|
|
128
|
+
}, dom);
|
|
143
129
|
}, []);
|
|
144
130
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
145
131
|
className: prefix
|
|
@@ -150,26 +136,26 @@ var DynamicTask = function DynamicTask(_ref) {
|
|
|
150
136
|
user: principalUser
|
|
151
137
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
152
138
|
className: "".concat(prefix, "__content")
|
|
153
|
-
}, /*#__PURE__*/_react["default"].createElement("
|
|
154
|
-
className: "".concat(prefix, "__content-img"),
|
|
155
|
-
src: _taskIcon["default"],
|
|
156
|
-
alt: ""
|
|
157
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
139
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
158
140
|
className: "".concat(prefix, "__content-info")
|
|
159
141
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
160
142
|
className: "".concat(prefix, "__content-title")
|
|
143
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
144
|
+
className: "".concat(prefix, "__content-title-type")
|
|
145
|
+
}, (0, _getLocale.getLocale)("Feed_Tab_Title_Task")), /*#__PURE__*/_react["default"].createElement("span", {
|
|
146
|
+
className: "".concat(prefix, "__content-title-text")
|
|
161
147
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
162
148
|
isPercent: true,
|
|
163
149
|
text: renderName,
|
|
164
150
|
minusWidth: 30
|
|
165
|
-
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
151
|
+
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
166
152
|
className: "".concat(prefix, "__content-status-and-time-range")
|
|
167
153
|
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
168
|
-
className: (0, _classnames["default"])(_constant2.EStatusStatus2ClassType[status])
|
|
154
|
+
className: (0, _classnames["default"])(_constant2.EStatusStatus2ClassType[status], "".concat(prefix, "__content-status-icon"))
|
|
169
155
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
170
156
|
className: "".concat(prefix, "__content-status-text")
|
|
171
157
|
}, (0, _constant.getEStatusClass2StatusTypeText)()[status]), /*#__PURE__*/_react["default"].createElement("i", {
|
|
172
|
-
className: (0, _classnames["default"])("tu-icon-deferred")
|
|
158
|
+
className: (0, _classnames["default"])("tu-icon-deferred", "".concat(prefix, "__content-status-icon"))
|
|
173
159
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
174
160
|
className: "".concat(prefix, "__content-time-range")
|
|
175
161
|
}, startDate, "-", deadline)))));
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
.titaui-dynamic-item__content {
|
|
11
11
|
position: relative;
|
|
12
12
|
overflow: hidden;
|
|
13
|
-
margin-right:
|
|
13
|
+
margin-right: 24px;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.titaui-dynamic-item__content-show-more {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
.titaui-dynamic-item__footer {
|
|
39
|
-
margin:
|
|
39
|
+
margin: 8px 24px 0 88px;
|
|
40
40
|
height: 54px;
|
|
41
41
|
border-radius: 0px 0px 6px 6px;
|
|
42
42
|
display: flex;
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
align-items: center;
|
|
45
45
|
color: #89919f;
|
|
46
46
|
position: relative;
|
|
47
|
+
border-bottom: 1px solid #f0f4fa;
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
.titaui-dynamic-item__footer-left {
|
|
@@ -97,6 +98,23 @@
|
|
|
97
98
|
color: #2879ff;
|
|
98
99
|
}
|
|
99
100
|
|
|
101
|
+
.titaui-dynamic-item__footer-icon-redenvelopes::before {
|
|
102
|
+
content: '';
|
|
103
|
+
display: inline-block;
|
|
104
|
+
background: url("../img/dynamic-reward-normal.svg") no-repeat;
|
|
105
|
+
background-size: 20px 20px;
|
|
106
|
+
width: 20px;
|
|
107
|
+
height: 20px;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.titaui-dynamic-item__footer-icon-redenvelopes:hover {
|
|
111
|
+
animation: redenvelopesRubberBand 1s;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.titaui-dynamic-item__footer-icon-redenvelopes:hover::before {
|
|
115
|
+
background: url("../img/dynamic-reward-hover.svg") no-repeat;
|
|
116
|
+
}
|
|
117
|
+
|
|
100
118
|
.titaui-dynamic-item__footer-number {
|
|
101
119
|
margin-left: 8px;
|
|
102
120
|
font-size: 14px;
|
|
@@ -115,15 +133,52 @@
|
|
|
115
133
|
}
|
|
116
134
|
|
|
117
135
|
.titaui-dynamic-item__communication {
|
|
118
|
-
padding:
|
|
119
|
-
box-shadow: inset 0px 12px 12px -12px rgba(127, 145, 180, 0.14);
|
|
136
|
+
padding: 8px 20px 24px 88px;
|
|
120
137
|
}
|
|
121
138
|
|
|
122
139
|
.titaui-dynamic-item__upvote-btn {
|
|
123
140
|
color: #a4acb9;
|
|
124
141
|
font-size: 20px;
|
|
142
|
+
width: 20px !important;
|
|
125
143
|
}
|
|
126
144
|
|
|
127
145
|
.titaui-dynamic-item__upvote-btn:hover {
|
|
128
146
|
color: #2879ff;
|
|
129
147
|
}
|
|
148
|
+
|
|
149
|
+
@keyframes redenvelopesRubberBand {
|
|
150
|
+
0% {
|
|
151
|
+
-webkit-transform: scaleX(1);
|
|
152
|
+
transform: scaleX(1);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
30% {
|
|
156
|
+
-webkit-transform: scale3d(1.25, 0.75, 1);
|
|
157
|
+
transform: scale3d(1.25, 0.75, 1);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
40% {
|
|
161
|
+
-webkit-transform: scale3d(0.75, 1.25, 1);
|
|
162
|
+
transform: scale3d(0.75, 1.25, 1);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
50% {
|
|
166
|
+
-webkit-transform: scale3d(1.15, 0.85, 1);
|
|
167
|
+
transform: scale3d(1.15, 0.85, 1);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
65% {
|
|
171
|
+
-webkit-transform: scale3d(0.95, 1.05, 1);
|
|
172
|
+
transform: scale3d(0.95, 1.05, 1);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
75% {
|
|
176
|
+
-webkit-transform: scale3d(1.05, 0.95, 1);
|
|
177
|
+
transform: scale3d(1.05, 0.95, 1);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
to {
|
|
181
|
+
-webkit-transform: scaleX(1);
|
|
182
|
+
transform: scaleX(1);
|
|
183
|
+
}
|
|
184
|
+
}
|