@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
|
@@ -71,7 +71,8 @@ function KrDatas(props) {
|
|
|
71
71
|
setKrsCheckResult = props.setKrsCheckResult,
|
|
72
72
|
krIsValidate = props.krIsValidate,
|
|
73
73
|
setKrIsValidate = props.setKrIsValidate,
|
|
74
|
-
|
|
74
|
+
_props$setIsInputCont = props.setIsInputContent,
|
|
75
|
+
setIsInputContent = _props$setIsInputCont === void 0 ? function () {} : _props$setIsInputCont;
|
|
75
76
|
var krCheckId = 0;
|
|
76
77
|
|
|
77
78
|
var _useState = (0, _react.useState)(),
|
|
@@ -144,7 +145,7 @@ function KrDatas(props) {
|
|
|
144
145
|
}
|
|
145
146
|
|
|
146
147
|
var getKrAnalysisInfo = function getKrAnalysisInfo() {
|
|
147
|
-
krCheckId
|
|
148
|
+
krCheckId += 1;
|
|
148
149
|
var tempCheckId = krCheckId;
|
|
149
150
|
(0, _requestApi.getKrAnalysisInfos)({
|
|
150
151
|
text: inputKrInfo.mileStoneName
|
|
@@ -194,10 +195,10 @@ function KrDatas(props) {
|
|
|
194
195
|
|
|
195
196
|
var changeKr = function changeKr(kr) {
|
|
196
197
|
var index = krDatas.findIndex(function (k) {
|
|
197
|
-
return k.uuid
|
|
198
|
+
return k.uuid === kr.uuid;
|
|
198
199
|
});
|
|
199
200
|
|
|
200
|
-
if (krDatas[index].krWeight
|
|
201
|
+
if (krDatas[index].krWeight !== kr.krWeight) {
|
|
201
202
|
setIsCustomWeight(true);
|
|
202
203
|
}
|
|
203
204
|
|
|
@@ -218,16 +219,13 @@ function KrDatas(props) {
|
|
|
218
219
|
finalResult: _okrCreateSuggest.EOkrCreateSuggestResultType.normal,
|
|
219
220
|
friendlyResult: []
|
|
220
221
|
});
|
|
221
|
-
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
if (timerRef.current) {
|
|
222
|
+
} else if (timerRef.current) {
|
|
225
223
|
clearTimeout(timerRef.current);
|
|
226
224
|
timerRef.current = setTimeout(getKrAnalysisInfo, 1000);
|
|
227
|
-
|
|
225
|
+
} else {
|
|
226
|
+
timerRef.current = setTimeout(getKrAnalysisInfo, 1000);
|
|
228
227
|
}
|
|
229
228
|
|
|
230
|
-
timerRef.current = setTimeout(getKrAnalysisInfo, 1000);
|
|
231
229
|
return function () {
|
|
232
230
|
clearTimeout(timerRef.current);
|
|
233
231
|
};
|
|
@@ -268,32 +266,34 @@ function KrDatas(props) {
|
|
|
268
266
|
|
|
269
267
|
var onKrInputStateChange = (0, _react.useCallback)(function (isFocus, krInfo) {
|
|
270
268
|
setInputKrInfo(krInfo);
|
|
271
|
-
|
|
269
|
+
|
|
270
|
+
if (handleKrInputStateChange) {
|
|
271
|
+
handleKrInputStateChange(isFocus);
|
|
272
|
+
}
|
|
272
273
|
}, []);
|
|
273
274
|
return /*#__PURE__*/_react["default"].createElement("div", null, krs.map(function (kr, index) {
|
|
274
275
|
return /*#__PURE__*/_react["default"].createElement(_krItem["default"], {
|
|
275
|
-
key: index,
|
|
276
276
|
krData: kr,
|
|
277
277
|
changeKr: changeKr,
|
|
278
278
|
deleteKr: deleteKr,
|
|
279
279
|
container: container,
|
|
280
280
|
index: index + 1,
|
|
281
281
|
onKrInputStateChange: onKrInputStateChange,
|
|
282
|
-
onAddKr: addKr,
|
|
283
282
|
krIsValidate: krIsValidate,
|
|
284
283
|
setIsInputContent: setIsInputContent
|
|
285
284
|
});
|
|
286
285
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
287
286
|
className: "krs-info"
|
|
288
|
-
}, /*#__PURE__*/_react["default"].createElement("
|
|
287
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
289
288
|
className: "add-kr-btn",
|
|
290
289
|
onClick: addKr
|
|
291
290
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
292
291
|
className: "add-kr-btn__icon",
|
|
293
|
-
src: _krAdd["default"]
|
|
292
|
+
src: _krAdd["default"],
|
|
293
|
+
alt: ""
|
|
294
294
|
}), (0, _getLocale.getLocale)("OKR_MyO_Pop_Butt_AddKR")), krs.length > 0 && openKrWeight && /*#__PURE__*/_react["default"].createElement("span", {
|
|
295
295
|
className: "krs-info__total-weight"
|
|
296
|
-
}, (0, _getLocale.getLocale)("OKR_MyO_Pop_Text_Total"),
|
|
296
|
+
}, (0, _getLocale.getLocale)("OKR_MyO_Pop_Text_Total"), total, "%")));
|
|
297
297
|
}
|
|
298
298
|
|
|
299
299
|
var _default = KrDatas;
|
|
File without changes
|
|
@@ -108,7 +108,7 @@ function _default(props) {
|
|
|
108
108
|
visible: visible,
|
|
109
109
|
className: (0, _classnames["default"])(preCls, _toConsumableArray(extraClass), (_classNames2 = {}, _defineProperty(_classNames2, "".concat(preCls, "-no-head-line"), noHeadLine), _defineProperty(_classNames2, "".concat(preCls, "-no-footer-line"), noFooterLine), _defineProperty(_classNames2, "".concat(preCls, "-no-close"), noCloseIcon), _defineProperty(_classNames2, "".concat(preCls, "-no-footer"), noFooter), _classNames2)),
|
|
110
110
|
closeIcon: /*#__PURE__*/_react["default"].createElement("span", {
|
|
111
|
-
className: "tu-icon-
|
|
111
|
+
className: "tu-icon-canceled"
|
|
112
112
|
}),
|
|
113
113
|
animation: "slide-fade",
|
|
114
114
|
maskAnimation: "fade",
|
|
@@ -159,7 +159,12 @@ var DrawerManager = /*#__PURE__*/function () {
|
|
|
159
159
|
saveProps: function saveProps() {
|
|
160
160
|
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
161
161
|
var current = _this2.history[_this2.history.length - 1];
|
|
162
|
-
|
|
162
|
+
|
|
163
|
+
if (current) {
|
|
164
|
+
current.props = _objectSpread(_objectSpread({}, current.props), props);
|
|
165
|
+
} else {
|
|
166
|
+
current.props = _objectSpread({}, props);
|
|
167
|
+
}
|
|
163
168
|
}
|
|
164
169
|
}
|
|
165
170
|
}, /*#__PURE__*/_react["default"].createElement(_drawerWrapper["default"], {
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
margin-right: 36px;
|
|
16
16
|
white-space: nowrap;
|
|
17
17
|
word-break: keep-all;
|
|
18
|
-
overflow: hidden;
|
|
19
18
|
text-overflow: ellipsis;
|
|
20
19
|
font-weight: 400;
|
|
21
20
|
}
|
|
@@ -26,7 +25,7 @@
|
|
|
26
25
|
}
|
|
27
26
|
|
|
28
27
|
.titaui-dynamic-first-level-tabs__tab--active::before {
|
|
29
|
-
content:
|
|
28
|
+
content: '';
|
|
30
29
|
display: inline-block;
|
|
31
30
|
position: absolute;
|
|
32
31
|
bottom: 0;
|
|
@@ -38,6 +37,17 @@
|
|
|
38
37
|
border-radius: 2px;
|
|
39
38
|
}
|
|
40
39
|
|
|
40
|
+
.titaui-dynamic-first-level-tabs__tab--point {
|
|
41
|
+
position: absolute;
|
|
42
|
+
width: 6px;
|
|
43
|
+
height: 6px;
|
|
44
|
+
background: #f05e5e;
|
|
45
|
+
border-radius: 50%;
|
|
46
|
+
right: -6px;
|
|
47
|
+
top: 22px;
|
|
48
|
+
border: 2px solid #ffffff;
|
|
49
|
+
}
|
|
50
|
+
|
|
41
51
|
.titaui-dynamic-first-level-tabs__hide-first-level-tabs {
|
|
42
52
|
display: flex;
|
|
43
53
|
flex-direction: column;
|
|
@@ -15,6 +15,8 @@ var _conditionRender = _interopRequireDefault(require("../../../condition-render
|
|
|
15
15
|
|
|
16
16
|
var _popup = _interopRequireDefault(require("../../../popup"));
|
|
17
17
|
|
|
18
|
+
var _useGlobalValue3 = _interopRequireDefault(require("../../../nav-top/useGlobalValue"));
|
|
19
|
+
|
|
18
20
|
require("./index.css");
|
|
19
21
|
|
|
20
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -57,9 +59,16 @@ var FirstLevelTabs = function FirstLevelTabs(_ref) {
|
|
|
57
59
|
popupVisible = _useState2[0],
|
|
58
60
|
setPopupVisible = _useState2[1];
|
|
59
61
|
|
|
62
|
+
var _useGlobalValue = (0, _useGlobalValue3["default"])(),
|
|
63
|
+
_useGlobalValue2 = _slicedToArray(_useGlobalValue, 1),
|
|
64
|
+
feedNum = _useGlobalValue2[0];
|
|
65
|
+
|
|
60
66
|
var handleTabsChange = function handleTabsChange(id) {
|
|
61
67
|
setPopupVisible(false);
|
|
62
|
-
|
|
68
|
+
|
|
69
|
+
if (onTabsChange) {
|
|
70
|
+
onTabsChange(id);
|
|
71
|
+
}
|
|
63
72
|
};
|
|
64
73
|
|
|
65
74
|
var handlePopupVisibleChange = function handlePopupVisibleChange(visible) {
|
|
@@ -69,7 +78,7 @@ var FirstLevelTabs = function FirstLevelTabs(_ref) {
|
|
|
69
78
|
var renderFoldFirstLevelTab = (0, _react.useMemo)(function () {
|
|
70
79
|
var foldTabs = tabsInfo.slice(3);
|
|
71
80
|
var isActiveHideMeun = foldTabs.filter(function (item) {
|
|
72
|
-
return item.CodeId
|
|
81
|
+
return item.CodeId === activeTab;
|
|
73
82
|
}).length > 0;
|
|
74
83
|
|
|
75
84
|
var popContent = /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -77,7 +86,7 @@ var FirstLevelTabs = function FirstLevelTabs(_ref) {
|
|
|
77
86
|
}, foldTabs.map(function (item) {
|
|
78
87
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
79
88
|
key: item.CodeId + item.MenuName,
|
|
80
|
-
className: (0, _classnames["default"])("".concat(prefix, "__hide-first-level-tab"), _defineProperty({}, "".concat(prefix, "__hide-first-level-tab--active"), item.CodeId
|
|
89
|
+
className: (0, _classnames["default"])("".concat(prefix, "__hide-first-level-tab"), _defineProperty({}, "".concat(prefix, "__hide-first-level-tab--active"), item.CodeId === activeTab)),
|
|
81
90
|
onClick: function onClick() {
|
|
82
91
|
handleTabsChange(item.CodeId);
|
|
83
92
|
}
|
|
@@ -101,14 +110,18 @@ var FirstLevelTabs = function FirstLevelTabs(_ref) {
|
|
|
101
110
|
}, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
102
111
|
condition: !!tabsInfo
|
|
103
112
|
}, tabsInfo.map(function (item, index) {
|
|
104
|
-
if (index >= 3) return;
|
|
113
|
+
if (index >= 3) return null;
|
|
105
114
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
106
115
|
key: item.CodeId + item.MenuName,
|
|
107
116
|
className: (0, _classnames["default"])("".concat(prefix, "__tab"), _defineProperty({}, "".concat(prefix, "__tab--active"), item.CodeId === activeTab)),
|
|
108
117
|
onClick: function onClick() {
|
|
109
|
-
|
|
118
|
+
if (onTabsChange) {
|
|
119
|
+
onTabsChange(item.CodeId);
|
|
120
|
+
}
|
|
110
121
|
}
|
|
111
|
-
}, item.MenuName
|
|
122
|
+
}, item.MenuName, item.CodeId === 1001 && feedNum > 0 && /*#__PURE__*/_react["default"].createElement("span", {
|
|
123
|
+
className: "".concat(prefix, "__tab--point")
|
|
124
|
+
}));
|
|
112
125
|
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
113
126
|
className: "".concat(prefix, "__fold-tab")
|
|
114
127
|
}, renderFoldFirstLevelTab));
|
|
@@ -1,22 +1,6 @@
|
|
|
1
1
|
.titaui-dynamic-obj-status {
|
|
2
2
|
display: inline-block;
|
|
3
|
-
|
|
4
|
-
height:
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.titaui-dynamic-obj-status--delay {
|
|
9
|
-
background: url("../../img/dynamic-delay.svg");
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.titaui-dynamic-obj-status--normal {
|
|
13
|
-
background: url("../../img/dynamic-normal.svg");
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.titaui-dynamic-obj-status--risk {
|
|
17
|
-
background: url("../../img/dynamic-risk.svg");
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.titaui-dynamic-obj-status--end {
|
|
21
|
-
background: url("../../img/dynamic-end.svg");
|
|
3
|
+
font-size: 14px;
|
|
4
|
+
line-height: 24px;
|
|
5
|
+
margin-right: 8px;
|
|
22
6
|
}
|
|
@@ -11,17 +11,13 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
11
11
|
|
|
12
12
|
var _util = require("../../util");
|
|
13
13
|
|
|
14
|
+
var _utils = require("./utils");
|
|
15
|
+
|
|
14
16
|
require("./index.css");
|
|
15
17
|
|
|
16
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
19
|
|
|
18
20
|
var prefix = "titaui-dynamic-obj-status";
|
|
19
|
-
var StateIconMapping = {
|
|
20
|
-
delay: "".concat(prefix, "--delay"),
|
|
21
|
-
normal: "".concat(prefix, "--normal"),
|
|
22
|
-
risk: "".concat(prefix, "--risk"),
|
|
23
|
-
end: "".concat(prefix, "--end")
|
|
24
|
-
};
|
|
25
21
|
|
|
26
22
|
var DynamicObjStatus = function DynamicObjStatus(_ref) {
|
|
27
23
|
var _ref$oStatus = _ref.oStatus,
|
|
@@ -30,8 +26,11 @@ var DynamicObjStatus = function DynamicObjStatus(_ref) {
|
|
|
30
26
|
riskLevel = _ref$riskLevel === void 0 ? 1 : _ref$riskLevel,
|
|
31
27
|
extraClass = _ref.extraClass;
|
|
32
28
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
33
|
-
className: (0, _classnames["default"])(extraClass, prefix
|
|
34
|
-
|
|
29
|
+
className: (0, _classnames["default"])(extraClass, prefix),
|
|
30
|
+
style: {
|
|
31
|
+
color: (0, _utils.getStatusColor)((0, _util.getProgressState)(oStatus, riskLevel))
|
|
32
|
+
}
|
|
33
|
+
}, (0, _utils.getStatusTextMapping)((0, _util.getProgressState)(oStatus, riskLevel)));
|
|
35
34
|
};
|
|
36
35
|
|
|
37
36
|
var _default = DynamicObjStatus;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getStatusTextMapping = exports.getStatusColor = exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _getLocale = require("../../../../utils/getLocale");
|
|
9
|
+
|
|
10
|
+
var getStatusTextMapping = function getStatusTextMapping(status) {
|
|
11
|
+
var statusMapText = {
|
|
12
|
+
delay: (0, _getLocale.getLocale)("OKR_MyO_Postoned"),
|
|
13
|
+
normal: (0, _getLocale.getLocale)("Pro_page_Mil_Normal"),
|
|
14
|
+
risk: (0, _getLocale.getLocale)("Pro_page_Mil_Existingrisk"),
|
|
15
|
+
end: (0, _getLocale.getLocale)("OKR_MyO_E_From_Completed")
|
|
16
|
+
};
|
|
17
|
+
return statusMapText[status];
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
exports.getStatusTextMapping = getStatusTextMapping;
|
|
21
|
+
|
|
22
|
+
var getStatusColor = function getStatusColor(status) {
|
|
23
|
+
var statusMapText = {
|
|
24
|
+
delay: "#F05E5E",
|
|
25
|
+
normal: "#2879ff",
|
|
26
|
+
risk: "#F6BD16",
|
|
27
|
+
end: "BFC7D5"
|
|
28
|
+
};
|
|
29
|
+
return statusMapText[status];
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
exports.getStatusColor = getStatusColor;
|
|
33
|
+
var _default = {
|
|
34
|
+
getStatusTextMapping: getStatusTextMapping,
|
|
35
|
+
getStatusColor: getStatusColor
|
|
36
|
+
};
|
|
37
|
+
exports["default"] = _default;
|
|
@@ -1,31 +1,37 @@
|
|
|
1
1
|
.titaui-dynamic-title {
|
|
2
2
|
display: flex;
|
|
3
3
|
overflow: hidden;
|
|
4
|
-
|
|
4
|
+
word-break: keep-all;
|
|
5
|
+
white-space: nowrap;
|
|
6
|
+
font-size: 13px;
|
|
7
|
+
line-height: 18px;
|
|
8
|
+
border-radius: 18px;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
height: 24px;
|
|
12
|
+
padding-left: 2px;
|
|
13
|
+
padding-right: 8px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.titaui-dynamic-title__type {
|
|
17
|
+
color: #ffffff;
|
|
18
|
+
border-radius: 18px;
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
justify-content: center;
|
|
22
|
+
margin-right: 6px;
|
|
23
|
+
padding: 1px 6px;
|
|
5
24
|
}
|
|
6
25
|
|
|
7
26
|
.titaui-dynamic-title__content {
|
|
8
27
|
display: flex;
|
|
9
|
-
height: 36px;
|
|
10
28
|
overflow: hidden;
|
|
11
29
|
box-sizing: border-box;
|
|
12
|
-
background: rgba(240, 244, 250, 0.5);
|
|
13
|
-
border-radius: 18px 18px 18px 1px;
|
|
14
30
|
word-break: keep-all;
|
|
15
31
|
white-space: nowrap;
|
|
16
|
-
padding: 7px 12px;
|
|
17
|
-
font-size: 14px;
|
|
18
|
-
line-height: 22px;
|
|
19
|
-
color: #3f4755;
|
|
20
|
-
font-weight: 600;
|
|
21
32
|
z-index: 2;
|
|
22
33
|
}
|
|
23
34
|
|
|
24
|
-
.titaui-dynamic-title__content-symbol {
|
|
25
|
-
color: #2879ff;
|
|
26
|
-
margin-right: 4px;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
35
|
.titaui-dynamic-title__content-text {
|
|
30
36
|
flex: 1;
|
|
31
37
|
overflow: hidden;
|
|
@@ -33,12 +39,5 @@
|
|
|
33
39
|
}
|
|
34
40
|
|
|
35
41
|
.titaui-dynamic-title__content-text:hover {
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.titaui-dynamic-title__fill-empty {
|
|
40
|
-
flex: 1;
|
|
41
|
-
background: rgba(240, 244, 250, 0.5);
|
|
42
|
-
border-radius: 0 18px 18px 0;
|
|
43
|
-
margin-left: -18px;
|
|
42
|
+
opacity: 0.6;
|
|
44
43
|
}
|
|
@@ -28,23 +28,37 @@ var prefix = "titaui-dynamic-title";
|
|
|
28
28
|
var DynamicTitle = function DynamicTitle(_ref) {
|
|
29
29
|
var content = _ref.content,
|
|
30
30
|
onClickTitle = _ref.onClickTitle,
|
|
31
|
-
|
|
31
|
+
type = _ref.type,
|
|
32
|
+
typeBgColor = _ref.typeBgColor,
|
|
33
|
+
titleBgColor = _ref.titleBgColor,
|
|
34
|
+
contentColor = _ref.contentColor;
|
|
32
35
|
|
|
33
36
|
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
34
37
|
searchKeyWord = _useContext.searchKeyWord;
|
|
35
38
|
|
|
36
39
|
var onTitleClick = function onTitleClick() {
|
|
37
|
-
|
|
40
|
+
if (onClickTitle) {
|
|
41
|
+
onClickTitle();
|
|
42
|
+
}
|
|
38
43
|
};
|
|
39
44
|
|
|
40
45
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
41
|
-
className: prefix
|
|
46
|
+
className: prefix,
|
|
47
|
+
style: {
|
|
48
|
+
backgroundColor: titleBgColor
|
|
49
|
+
}
|
|
42
50
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
51
|
+
className: "".concat(prefix, "__type"),
|
|
52
|
+
style: {
|
|
53
|
+
backgroundColor: typeBgColor
|
|
54
|
+
}
|
|
55
|
+
}, type), /*#__PURE__*/_react["default"].createElement("span", {
|
|
43
56
|
className: "".concat(prefix, "__content")
|
|
44
57
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
45
|
-
className: "".concat(prefix, "__content-symbol")
|
|
46
|
-
}, "#"), /*#__PURE__*/_react["default"].createElement("span", {
|
|
47
58
|
className: "".concat(prefix, "__content-text"),
|
|
59
|
+
style: {
|
|
60
|
+
color: contentColor
|
|
61
|
+
},
|
|
48
62
|
onClick: onTitleClick
|
|
49
63
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
50
64
|
text: /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
@@ -52,9 +66,7 @@ var DynamicTitle = function DynamicTitle(_ref) {
|
|
|
52
66
|
keyWord: searchKeyWord
|
|
53
67
|
}),
|
|
54
68
|
isPercent: true
|
|
55
|
-
}))
|
|
56
|
-
className: "".concat(prefix, "__fill-empty")
|
|
57
|
-
}));
|
|
69
|
+
}))));
|
|
58
70
|
};
|
|
59
71
|
|
|
60
72
|
var _default = DynamicTitle;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.OkrRiskMapping = exports.ObjectType = exports.ObjTypeMapText = exports.EStatusStatus2ClassType = exports.EObjType = exports.EFeedType = void 0;
|
|
6
|
+
exports.OkrRiskMapping = exports.ObjectType = exports.ObjTypeMapText = exports.EStatusStatus2ClassType = exports.EShareType = exports.EObjType = exports.EFeedType = void 0;
|
|
7
7
|
|
|
8
8
|
var _getLocale = require("../../utils/getLocale");
|
|
9
9
|
|
|
@@ -57,6 +57,15 @@ exports.EFeedType = EFeedType;
|
|
|
57
57
|
EFeedType[EFeedType["PlanCommunication"] = 103] = "PlanCommunication";
|
|
58
58
|
})(EFeedType || (exports.EFeedType = EFeedType = {}));
|
|
59
59
|
|
|
60
|
+
var EShareType;
|
|
61
|
+
exports.EShareType = EShareType;
|
|
62
|
+
|
|
63
|
+
(function (EShareType) {
|
|
64
|
+
EShareType[EShareType["CommonShare"] = 0] = "CommonShare";
|
|
65
|
+
EShareType[EShareType["ShareToDynamic"] = 1] = "ShareToDynamic";
|
|
66
|
+
EShareType[EShareType["BiShare"] = 3] = "BiShare";
|
|
67
|
+
})(EShareType || (exports.EShareType = EShareType = {}));
|
|
68
|
+
|
|
60
69
|
var EObjType;
|
|
61
70
|
exports.EObjType = EObjType;
|
|
62
71
|
|
|
@@ -68,9 +77,10 @@ exports.EObjType = EObjType;
|
|
|
68
77
|
EObjType[EObjType["Assess"] = 23] = "Assess";
|
|
69
78
|
EObjType[EObjType["MileStone"] = 27] = "MileStone";
|
|
70
79
|
EObjType[EObjType["KanBan"] = 66] = "KanBan";
|
|
80
|
+
EObjType[EObjType["Report"] = 8] = "Report";
|
|
71
81
|
})(EObjType || (exports.EObjType = EObjType = {}));
|
|
72
82
|
|
|
73
|
-
var ObjTypeMapText = (_ObjTypeMapText = {}, _defineProperty(_ObjTypeMapText, EObjType.Project, (0, _getLocale.getLocale)("Menu_Title_Projects")), _defineProperty(_ObjTypeMapText, EObjType.Task, (0, _getLocale.getLocale)("Mod_Tasks")), _defineProperty(_ObjTypeMapText, EObjType.O, (0, _getLocale.getLocale)("Mod_Objective")), _defineProperty(_ObjTypeMapText, EObjType.Kr, (0, _getLocale.getLocale)("Mod_KeyResults")), _defineProperty(_ObjTypeMapText, EObjType.MileStone, (0, _getLocale.getLocale)("Pro_page_Plan_Milestone")), _defineProperty(_ObjTypeMapText, EObjType.KanBan, (0, _getLocale.getLocale)("Pro_page_V_Tab_Kanban")), _ObjTypeMapText);
|
|
83
|
+
var ObjTypeMapText = (_ObjTypeMapText = {}, _defineProperty(_ObjTypeMapText, EObjType.Project, (0, _getLocale.getLocale)("Menu_Title_Projects")), _defineProperty(_ObjTypeMapText, EObjType.Task, (0, _getLocale.getLocale)("Mod_Tasks")), _defineProperty(_ObjTypeMapText, EObjType.O, (0, _getLocale.getLocale)("Mod_Objective")), _defineProperty(_ObjTypeMapText, EObjType.Kr, (0, _getLocale.getLocale)("Mod_KeyResults")), _defineProperty(_ObjTypeMapText, EObjType.MileStone, (0, _getLocale.getLocale)("Pro_page_Plan_Milestone")), _defineProperty(_ObjTypeMapText, EObjType.KanBan, (0, _getLocale.getLocale)("Pro_page_V_Tab_Kanban")), _defineProperty(_ObjTypeMapText, EObjType.Report, "总结"), _ObjTypeMapText);
|
|
74
84
|
exports.ObjTypeMapText = ObjTypeMapText;
|
|
75
85
|
|
|
76
86
|
var ObjectType = function ObjectType() {
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
.titaui-dynamic-operation__operate {
|
|
2
|
+
margin: 14px 24px 12px 88px;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.titaui-dynamic-operation__operate-item {
|
|
6
|
+
display: flex;
|
|
7
|
+
font-size: 12px;
|
|
8
|
+
line-height: 18px;
|
|
9
|
+
margin-top: 8px;
|
|
10
|
+
position: relative;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.titaui-dynamic-operation__operate-item::before {
|
|
14
|
+
content: '';
|
|
15
|
+
position: absolute;
|
|
16
|
+
width: 1px;
|
|
17
|
+
height: 100%;
|
|
18
|
+
background: rgba(164, 172, 185, 0.2);
|
|
19
|
+
top: 16px;
|
|
20
|
+
left: 8px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.titaui-dynamic-operation__operate-item:last-child::before {
|
|
24
|
+
display: none;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.titaui-dynamic-operation__operate-item-total {
|
|
28
|
+
font-size: 12px;
|
|
29
|
+
color: #89919f;
|
|
30
|
+
line-height: 18px;
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.titaui-dynamic-operation__operate-item-total-num {
|
|
36
|
+
margin: 0 4px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.titaui-dynamic-operation__operate-item-total:hover {
|
|
40
|
+
color: #2879ff;
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.titaui-dynamic-operation__operate-item-left {
|
|
45
|
+
display: inline-flex;
|
|
46
|
+
margin-right: 12px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.titaui-dynamic-operation__operate-item-right {
|
|
50
|
+
flex: 1;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.titaui-dynamic-operation__operate-icon {
|
|
54
|
+
width: 18px;
|
|
55
|
+
height: 18px;
|
|
56
|
+
margin-right: 8px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.titaui-dynamic-operation__operate-time {
|
|
60
|
+
color: #89919f;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.titaui-dynamic-operation__operate-user {
|
|
64
|
+
color: #3f4755;
|
|
65
|
+
margin-right: 8px;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.titaui-dynamic-operation__operate-content {
|
|
69
|
+
color: #6f7886;
|
|
70
|
+
white-space: pre-wrap;
|
|
71
|
+
}
|