@titaui/pc 1.12.7-beta.4 → 1.12.9-beta.1
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/change-okr-modal/Item.js +19 -18
- package/lib/components/change-okr-modal/styledComponents.js +9 -9
- package/lib/components/create-okr-modal/createSuccessCmp.js +47 -19
- package/lib/components/create-okr-modal/fields/index.css +14 -3
- package/lib/components/create-okr-modal/fields/o-new-name.js +31 -20
- package/lib/components/create-okr-modal/fields/okr-case.js +7 -5
- package/lib/components/create-okr-modal/fields/okr-parent.js +7 -5
- package/lib/components/create-okr-modal/index.js +215 -142
- package/lib/components/create-okr-modal/kr-items/index.css +23 -13
- package/lib/components/create-okr-modal/kr-items/krDatas.js +96 -76
- package/lib/components/create-okr-modal/kr-items/krItem.js +54 -57
- package/lib/components/create-okr-modal/style.js +5 -5
- package/lib/components/dynamic/components/title/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/components/feed-operate/index.js +7 -7
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +7 -7
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +17 -17
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +3 -1
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +9 -9
- package/lib/components/dynamic/dynamic-item/dynamic-reply/index.js +3 -1
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +3 -1
- package/lib/components/dynamic/dynamic-item/index.js +4 -15
- package/lib/components/eReport/eReportLists/reportList.js +29 -30
- package/lib/components/eReport/eReportShare/style.js +1 -1
- package/lib/components/edit-kr-wight/EditKrWightModal.js +11 -9
- package/lib/components/menus/components/menu-tree/tree-node/index.css +0 -120
- package/lib/components/menus/components/menu-tree/tree-node/index.js +2 -22
- package/lib/components/menus/i18n.js +0 -8
- package/lib/components/menus/index.js +0 -6
- package/lib/components/nav-top/components/menu/index.js +4 -4
- package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +1 -1
- package/lib/components/nav-top/components/user-message/components/todos/todo-item.js +3 -3
- package/lib/components/okr-detail/components/ao-nice/index.css +0 -1
- package/lib/components/okr-detail/components/header/edit-name.js +76 -39
- package/lib/components/okr-detail/components/header/index.css +122 -41
- package/lib/components/okr-detail/components/header/index.js +45 -48
- package/lib/components/{dynamic/dynamic-item/components/progress/components/okr-progress/index.js → okr-detail/components/header/o-classify.js} +84 -152
- package/lib/components/okr-detail/components/header/o-name.js +7 -5
- package/lib/components/okr-detail/components/o-progress-update/index.js +2 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +3 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.css +66 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +174 -64
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.js +9 -9
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +15 -13
- package/lib/components/okr-detail/components/tab-panel-content/index.css +1 -0
- package/lib/components/okr-detail/detail-header/index.js +11 -5
- package/lib/components/okr-detail/okr-list/create-kr-item/index.css +17 -0
- package/lib/components/okr-detail/okr-list/create-kr-item/index.js +75 -53
- package/lib/components/okr-detail/okr-list/index.css +9 -0
- package/lib/components/okr-detail/okr-list/index.js +25 -25
- package/lib/components/okr-detail/request-apis.js +73 -69
- package/lib/components/okr-detail/schedule/components/kr-progress/index.js +3 -1
- package/lib/components/okr-detail/schedule/components/o-progress/index.js +34 -32
- package/lib/components/okr-detail/schedule/components/sub-o-progress/index.js +3 -1
- package/lib/components/okr-flow/child-node/kr-node.js +3 -1
- package/lib/components/okr-flow/child-node/work-node.js +3 -1
- package/lib/components/okr-flow/export-modal/color.png +0 -0
- package/lib/components/okr-flow/export-modal/index.css +28 -13
- package/lib/components/okr-flow/export-modal/index.js +57 -14
- package/lib/components/okr-flow/export-modal/trans1.png +0 -0
- package/lib/components/okr-progress/components/kr-progress/index.js +5 -3
- package/lib/components/okr-progress/components/o-progress/index.js +3 -1
- package/lib/components/okr-progress/components/o-progress-update/index.js +2 -2
- package/lib/components/okr-progress/components/sub-o-progress/index.js +3 -1
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +3 -3
- package/lib/components/okr-share/common-painter/openDataPainter.js +9 -6
- package/lib/components/okr-share/common-painter/utils.js +187 -36
- package/lib/components/okr-share/index.css +5 -4
- package/lib/components/okr-share/pink-card/card.js +3 -3
- package/lib/components/okr-share/pink-card/drawKrs.js +97 -18
- package/lib/components/okr-share/pink-card/index.js +20 -12
- package/lib/components/open-data-painter/index.js +6 -5
- package/lib/components/period-selector/components/button/style.js +1 -1
- package/lib/components/period-selector/index.css +1 -0
- package/lib/components/period-selector/index.js +7 -2
- package/lib/components/picker/components/picker-trigger/index.js +2 -47
- package/lib/components/picker/picker-panels.js +4 -45
- package/lib/components/picker/picker.js +3 -7
- package/lib/components/search-input/index.js +0 -5
- package/lib/components/search-key-handle/index.js +12 -10
- package/lib/components/select-layer/index.js +22 -8
- package/lib/components/task-relation-modal/helper.js +1 -56
- package/lib/components/task-relation-modal/okr-relation/relation-task-model/search-form.js +1 -4
- package/lib/components/task-relation-modal/okr-relation/request-api.js +2 -6
- package/lib/components/task-relation-modal/okr-relation/tree/task-tree/index.css +2 -2
- package/lib/components/task-relation-modal/request-api.js +5 -2
- package/lib/components/task-relation-modal/tree/work-tree/index.js +27 -31
- package/lib/components/task-relation-modal/tree/work-tree/search-form.js +22 -3
- package/lib/components/task-relation-modal/tree-node/kr-node/index.js +4 -4
- package/lib/components/task-relation-modal/tree-node/o-node/index.js +8 -8
- package/lib/components/task-relation-modal/tree-node/work-node/index.js +11 -11
- package/lib/components/textarea/index.js +5 -7
- package/lib/components/tooltip/tooltip.js +9 -4
- package/lib/components/upload/components/uploadedPreview.js +17 -17
- package/lib/components/upload/index.js +23 -23
- package/lib/components/user-selector/category-selector-panel/depart-tree.js +3 -1
- package/lib/components/user-selector/export-modules/field-tree-selector/index.css +2 -1
- package/lib/components/user-selector/export-modules/field-tree-selector/index.js +31 -17
- package/lib/components/user-selector/export-modules/multiple-user-selector--bak/index.css +1 -1
- package/lib/components/user-selector/searched-panel/index.js +4 -4
- package/lib/components/wechat-btn/index.css +5 -1
- package/lib/components-v1/userSelector/components/SingleMode.js +7 -5
- package/lib/index.js +0 -48
- package/lib/pages/home/components/data-list/table/columns/krName.js +3 -1
- package/lib/pages/home/components/data-list/table/columns/okrName.js +4 -2
- package/lib/pages/new-okr-list/header/index.js +15 -15
- package/lib/utils/bs-global.js +1 -1
- package/lib/utils/constant.js +2 -8
- package/lib/utils/helpers.js +11 -56
- package/lib/utils/hooks.js +5 -5
- package/lib/utils/open-data.js +216 -66
- package/lib/utils/tita-okr-cycle.js +3 -3
- package/package.json +2 -2
- package/lib/components/attachments-preview/index.css +0 -11
- package/lib/components/attachments-preview/index.js +0 -112
- package/lib/components/auto-save/img/failed.svg +0 -17
- package/lib/components/auto-save/img/success.svg +0 -16
- package/lib/components/auto-save/index.css +0 -39
- package/lib/components/auto-save/index.js +0 -78
- package/lib/components/auto-save/interface.js +0 -5
- package/lib/components/color-date-picker/index.css +0 -65
- package/lib/components/color-date-picker/index.js +0 -123
- package/lib/components/color-date-picker/interface.js +0 -14
- package/lib/components/dialog-upload/img/doc.svg +0 -1
- package/lib/components/dialog-upload/img/other.svg +0 -1
- package/lib/components/dialog-upload/img/pdf.svg +0 -1
- package/lib/components/dialog-upload/img/ppt.svg +0 -1
- package/lib/components/dialog-upload/img/radio.svg +0 -1
- package/lib/components/dialog-upload/img/video.svg +0 -1
- package/lib/components/dialog-upload/img/xls.svg +0 -1
- package/lib/components/dialog-upload/index.css +0 -77
- package/lib/components/dialog-upload/index.js +0 -332
- package/lib/components/dialog-upload/type.js +0 -35
- package/lib/components/dialog-upload/uploaded-preview.css +0 -77
- package/lib/components/dialog-upload/uploaded-preview.js +0 -132
- package/lib/components/dialog-upload/util.js +0 -131
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/encourage.js +0 -119
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/APP-shoucang-m.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/ascore.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/curEfforts.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/curGood.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/curGreat.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/efforts.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/good.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/great.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/halfscore.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/loading.gif +0 -0
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/score.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/top.svg +0 -14
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/index.css +0 -68
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/index.js +0 -118
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/rate.js +0 -143
- package/lib/components/dynamic/dynamic-item/components/header/img/evalute.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/header/img/fighting.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/header/img/happy.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/header/img/long-story.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/header/img/pressure.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/okr-progress/index.css +0 -170
- package/lib/components/dynamic/dynamic-item/components/okr-progress/index.js +0 -120
- package/lib/components/dynamic/dynamic-item/components/okr-progress/interface.js +0 -5
- package/lib/components/dynamic/dynamic-item/components/okr-progress/request-api.js +0 -10
- package/lib/components/dynamic/dynamic-item/components/okr-progress/utils.js +0 -10
- package/lib/components/dynamic/dynamic-item/components/progress/components/kr-progress/index.css +0 -8
- package/lib/components/dynamic/dynamic-item/components/progress/components/kr-progress/index.js +0 -26
- package/lib/components/dynamic/dynamic-item/components/progress/components/o-progress/index.css +0 -8
- package/lib/components/dynamic/dynamic-item/components/progress/components/o-progress/index.js +0 -26
- package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/index.css +0 -197
- package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/request-api.js +0 -20
- package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/util.js +0 -134
- package/lib/components/dynamic/dynamic-item/components/progress/components/task-progress/index.css +0 -10
- package/lib/components/dynamic/dynamic-item/components/progress/components/task-progress/index.js +0 -60
- package/lib/components/dynamic/dynamic-item/components/progress/index.css +0 -25
- package/lib/components/dynamic/dynamic-item/components/progress/index.js +0 -71
- package/lib/components/dynamic/dynamic-item/components/progress/interface.js +0 -5
- package/lib/components/dynamic/dynamic-item/components/schedule/index.css +0 -31
- package/lib/components/dynamic/dynamic-item/components/schedule/index.js +0 -59
- package/lib/components/dynamic/dynamic-item/components/schedule/interface.js +0 -5
- package/lib/components/dynamic/dynamic-item/components/summary-header/img/evalute.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/summary-header/img/fighting.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/summary-header/img/happy.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/summary-header/img/long-story.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/summary-header/img/pressure.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/summary-header/index.css +0 -136
- package/lib/components/dynamic/dynamic-item/components/summary-header/index.js +0 -364
- package/lib/components/dynamic/dynamic-item/components/table-row-o-project/index.css +0 -24
- package/lib/components/dynamic/dynamic-item/components/table-row-o-project/index.js +0 -52
- package/lib/components/dynamic/dynamic-item/components/table-row-o-project/interface.js +0 -5
- package/lib/components/dynamic/dynamic-item/components/table-row-okr/index.css +0 -50
- package/lib/components/dynamic/dynamic-item/components/table-row-okr/index.js +0 -65
- package/lib/components/dynamic/dynamic-item/components/table-row-okr/interface.js +0 -5
- package/lib/components/dynamic/dynamic-item/components/task-progress/index.css +0 -201
- package/lib/components/dynamic/dynamic-item/components/task-progress/index.js +0 -95
- package/lib/components/dynamic/dynamic-item/components/task-progress/interface.js +0 -5
- package/lib/components/dynamic/dynamic-item/components/task-progress/utils.js +0 -10
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/come-on-big.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/come-on-small.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/evaluate-big.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/nice-big.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/nice-small.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/very-good-big.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/very-good-small.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/index.css +0 -32
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/index.js +0 -43
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/remind-user-view/index.css +0 -37
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/remind-user-view/index.js +0 -79
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/img/evalute.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/img/fighting.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/img/happy.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/img/long-story.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/img/pressure.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.css +0 -155
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.js +0 -155
- package/lib/components/import-modal/helper.js +0 -179
- package/lib/components/import-modal/image/loading.gif +0 -0
- package/lib/components/import-modal/import-okr-modal/index.css +0 -18
- package/lib/components/import-modal/import-okr-modal/index.js +0 -132
- package/lib/components/import-modal/import-task-modal/index.css +0 -18
- package/lib/components/import-modal/import-task-modal/index.js +0 -240
- package/lib/components/import-modal/import-task-modal/search-form.js +0 -135
- package/lib/components/import-modal/index.css +0 -30
- package/lib/components/import-modal/index.js +0 -20
- package/lib/components/import-modal/radio.js +0 -62
- package/lib/components/import-modal/request-api.js +0 -204
- package/lib/components/import-modal/search/category-select.js +0 -74
- package/lib/components/import-modal/search/okr-classify-select.js +0 -74
- package/lib/components/import-modal/search/okr-status-select.js +0 -74
- package/lib/components/import-modal/search/okr-type-select.js +0 -87
- package/lib/components/import-modal/search/principal.js +0 -135
- package/lib/components/import-modal/search/relation.js +0 -77
- package/lib/components/import-modal/search/search-dropdown/index.css +0 -50
- package/lib/components/import-modal/search/search-dropdown/index.js +0 -32
- package/lib/components/import-modal/search/task-relation.js +0 -83
- package/lib/components/import-modal/search/task-status-select.js +0 -87
- package/lib/components/import-modal/search/work-relation.js +0 -83
- package/lib/components/import-modal/search/work-status-select.js +0 -74
- package/lib/components/import-modal/tree/okr-tree/index.css +0 -61
- package/lib/components/import-modal/tree/okr-tree/index.js +0 -267
- package/lib/components/import-modal/tree/okr-tree/search-form.js +0 -161
- package/lib/components/import-modal/tree/task-work-tree/index.css +0 -123
- package/lib/components/import-modal/tree/task-work-tree/index.js +0 -187
- package/lib/components/import-modal/tree-node/index.css +0 -0
- package/lib/components/import-modal/tree-node/index.js +0 -51
- package/lib/components/import-modal/tree-node/kr-node/index.css +0 -58
- package/lib/components/import-modal/tree-node/kr-node/index.js +0 -108
- package/lib/components/import-modal/tree-node/milestone-node/index.css +0 -61
- package/lib/components/import-modal/tree-node/milestone-node/index.js +0 -118
- package/lib/components/import-modal/tree-node/o-node/index.css +0 -46
- package/lib/components/import-modal/tree-node/o-node/index.js +0 -138
- package/lib/components/import-modal/tree-node/work-node/index.css +0 -51
- package/lib/components/import-modal/tree-node/work-node/index.js +0 -108
- package/lib/components/menus/components/menu-tree/images/summary-menu/caidan-enjoy.svg +0 -14
- package/lib/components/menus/components/menu-tree/images/summary-menu/my-setup.svg +0 -18
- package/lib/components/menus/components/menu-tree/images/summary-menu/my-zongjie.svg +0 -15
- package/lib/components/menus/components/menu-tree/images/summary-menu/zongjie-s.svg +0 -15
- package/lib/components/menus/components/menu-tree/tree-node/subordinates.js +0 -74
- package/lib/components/menus/components/menu-tree/tree-node/summary-share.js +0 -74
- package/lib/components/menus/export-modules/summary-menus/depart-menus/helper.js +0 -56
- package/lib/components/menus/export-modules/summary-menus/depart-menus/index.css +0 -32
- package/lib/components/menus/export-modules/summary-menus/depart-menus/index.js +0 -201
- package/lib/components/menus/export-modules/summary-menus/index.css +0 -9
- package/lib/components/menus/export-modules/summary-menus/index.js +0 -134
- package/lib/components/menus/export-modules/summary-menus/menu-highlight.js +0 -76
- package/lib/components/menus/export-modules/summary-menus/menus.js +0 -199
- package/lib/components/menus/export-modules/summary-menus/summary-front-menus.js +0 -199
- package/lib/components/new-confidence/constant.js +0 -53
- package/lib/components/new-confidence/img/1.svg +0 -40
- package/lib/components/new-confidence/img/10.svg +0 -33
- package/lib/components/new-confidence/img/2.svg +0 -40
- package/lib/components/new-confidence/img/3.svg +0 -40
- package/lib/components/new-confidence/img/4.svg +0 -40
- package/lib/components/new-confidence/img/5.svg +0 -40
- package/lib/components/new-confidence/img/6.svg +0 -40
- package/lib/components/new-confidence/img/7.svg +0 -40
- package/lib/components/new-confidence/img/8.svg +0 -40
- package/lib/components/new-confidence/img/9.svg +0 -40
- package/lib/components/new-confidence/index.css +0 -62
- package/lib/components/new-confidence/index.js +0 -115
- package/lib/components/new-confidence/interface.js +0 -5
- package/lib/components/picker/components/panels/week-panel/index.css +0 -42
- package/lib/components/picker/components/panels/week-panel/index.js +0 -49
- package/lib/components/picker/components/panels/week-panel/utils.js +0 -45
- package/lib/components/picker/components/panels/week-panel/week-body.js +0 -79
- package/lib/components/picker/components/panels/week-panel/week-head.js +0 -80
- package/lib/components/rate/index.js +0 -50
- package/lib/components/regulation-setting-item/index.css +0 -33
- package/lib/components/regulation-setting-item/index.js +0 -37
- package/lib/components/rich-editor-at/components/index.css +0 -66
- package/lib/components/rich-editor-at/components/index.js +0 -188
- package/lib/components/rich-editor-at/index.css +0 -40
- package/lib/components/rich-editor-at/index.js +0 -108
- package/lib/components/rich-editor-upload/index.css +0 -11
- package/lib/components/rich-editor-upload/index.js +0 -84
- package/lib/utils/planDataJson.js +0 -11115
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
.okr-drawer-header__content {
|
|
8
8
|
flex: 1;
|
|
9
9
|
position: relative;
|
|
10
|
+
overflow: visible;
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
.okr-drawer-header__avatar {
|
|
@@ -35,37 +36,46 @@
|
|
|
35
36
|
}
|
|
36
37
|
|
|
37
38
|
.okr-drawer-header__classify {
|
|
39
|
+
padding: 3px 4px;
|
|
40
|
+
font-size: 12px;
|
|
41
|
+
line-height: 18px;
|
|
42
|
+
border: 1px solid transparent;
|
|
43
|
+
border-radius: 4px;
|
|
44
|
+
transition: all 0.3s ease;
|
|
45
|
+
color: #89919f;
|
|
38
46
|
display: inline-block;
|
|
39
|
-
width: 18px;
|
|
40
|
-
height: 20px;
|
|
41
|
-
margin: 0 9px;
|
|
42
47
|
vertical-align: middle;
|
|
48
|
+
white-space: nowrap;
|
|
43
49
|
}
|
|
44
50
|
|
|
45
|
-
.okr-drawer-header__classify--
|
|
46
|
-
|
|
51
|
+
.okr-drawer-header__classify--editable:hover {
|
|
52
|
+
cursor: pointer;
|
|
53
|
+
border-color: #e9ecf0;
|
|
47
54
|
}
|
|
48
55
|
|
|
49
|
-
.okr-drawer-header__classify
|
|
50
|
-
|
|
56
|
+
.okr-drawer-header__classify::before {
|
|
57
|
+
margin-right: 7px;
|
|
58
|
+
position: relative;
|
|
59
|
+
top: 1px;
|
|
51
60
|
}
|
|
52
61
|
|
|
53
62
|
.okr-drawer-header__over-tag {
|
|
54
|
-
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
55
|
-
font-size: 12px;
|
|
56
|
-
display: inline-flex;
|
|
57
|
-
align-items: center;
|
|
58
|
-
justify-content: center;
|
|
59
|
-
color: #a4acb9;
|
|
60
63
|
width: 52px;
|
|
61
64
|
height: 18px;
|
|
65
|
+
margin: 0 8px;
|
|
62
66
|
line-height: 24px;
|
|
63
67
|
border-radius: 9px;
|
|
68
|
+
font-size: 12px;
|
|
69
|
+
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
64
70
|
background-color: #f7f8fa;
|
|
71
|
+
color: #a4acb9;
|
|
72
|
+
display: inline-flex;
|
|
73
|
+
align-items: center;
|
|
74
|
+
justify-content: center;
|
|
65
75
|
vertical-align: middle;
|
|
66
76
|
}
|
|
67
77
|
|
|
68
|
-
.okr-drawer-header__action-item {
|
|
78
|
+
.okr-drawer-header__action-item:not(:empty) {
|
|
69
79
|
margin-right: 12px;
|
|
70
80
|
}
|
|
71
81
|
|
|
@@ -88,18 +98,15 @@
|
|
|
88
98
|
}
|
|
89
99
|
|
|
90
100
|
.okr-drawer-header__edit {
|
|
91
|
-
position:
|
|
92
|
-
left: 0;
|
|
93
|
-
right: 0;
|
|
94
|
-
top: 0;
|
|
95
|
-
bottom: 0;
|
|
101
|
+
position: relative;
|
|
96
102
|
background-color: #fff;
|
|
97
103
|
}
|
|
98
104
|
|
|
99
105
|
.okr-drawer-header__edit-input {
|
|
106
|
+
min-height: calc(100% - 32px);
|
|
100
107
|
margin-bottom: 8px;
|
|
101
|
-
border-bottom: 1px solid
|
|
102
|
-
|
|
108
|
+
border-bottom: 1px solid transparent;
|
|
109
|
+
transition: border 0.3s ease;
|
|
103
110
|
}
|
|
104
111
|
|
|
105
112
|
.okr-drawer-header__edit-input textarea {
|
|
@@ -114,65 +121,139 @@
|
|
|
114
121
|
font-size: 20px;
|
|
115
122
|
line-height: 24px;
|
|
116
123
|
font-weight: 600;
|
|
117
|
-
caret-color: #
|
|
124
|
+
caret-color: #2879ff;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.okr-drawer-header__edit-input--editable:hover {
|
|
128
|
+
border-bottom-color: #e9ecf0;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.okr-drawer-header__edit-input--editing, .okr-drawer-header__edit-input--editing:hover {
|
|
132
|
+
border-bottom-color: #2879ff;
|
|
118
133
|
}
|
|
119
134
|
|
|
120
135
|
.okr-drawer-header__edit-input--error {
|
|
121
|
-
border-bottom: 1px solid #
|
|
136
|
+
border-bottom: 1px solid #f05e5e;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.okr-drawer-header__edit-input .tita-rich-editor {
|
|
140
|
+
height: 100%;
|
|
141
|
+
padding: 0;
|
|
142
|
+
overflow: auto;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.okr-drawer-header__edit-input .tita-rich-editor .ProseMirror p {
|
|
146
|
+
padding: 0 0 4px 0;
|
|
147
|
+
font-size: 20px;
|
|
148
|
+
font-weight: 600;
|
|
149
|
+
white-space: normal !important;
|
|
122
150
|
}
|
|
123
151
|
|
|
124
152
|
.okr-drawer-header__edit-btns {
|
|
125
|
-
|
|
153
|
+
background-color: #ffffff;
|
|
154
|
+
opacity: 0;
|
|
155
|
+
transition: all 0.3s ease;
|
|
156
|
+
text-align: right;
|
|
157
|
+
visibility: hidden;
|
|
158
|
+
position: absolute;
|
|
159
|
+
right: 0;
|
|
160
|
+
left: 0;
|
|
126
161
|
}
|
|
127
162
|
|
|
128
163
|
.okr-drawer-header__edit-btns .titaui-pc-button {
|
|
129
|
-
|
|
130
|
-
display: inline-block;
|
|
164
|
+
padding: 5px 19px;
|
|
131
165
|
font-size: 13px;
|
|
132
166
|
line-height: 18px;
|
|
133
|
-
|
|
134
|
-
|
|
167
|
+
border-radius: 15px;
|
|
168
|
+
transform: translateY(-100%);
|
|
169
|
+
transition: all 0.3s ease;
|
|
170
|
+
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
171
|
+
display: inline-block;
|
|
135
172
|
cursor: pointer;
|
|
136
173
|
}
|
|
137
174
|
|
|
175
|
+
.okr-drawer-header__edit-btns--visible {
|
|
176
|
+
opacity: 1;
|
|
177
|
+
z-index: 2;
|
|
178
|
+
visibility: visible;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.okr-drawer-header__edit-btns--visible .titaui-pc-button {
|
|
182
|
+
transform: translateY(0);
|
|
183
|
+
}
|
|
184
|
+
|
|
138
185
|
.okr-drawer-header__edit-btns-confirm {
|
|
186
|
+
border: 1px solid #2879ff;
|
|
187
|
+
background: #2879ff;
|
|
139
188
|
color: #fff;
|
|
140
|
-
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.okr-drawer-header__edit-btns-confirm:hover {
|
|
192
|
+
background-color: #5c8eff;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.okr-drawer-header__edit-btns-confirm--disabled, .okr-drawer-header__edit-btns-confirm--disabled:hover {
|
|
196
|
+
background-color: rgba(40, 121, 255, 0.4);
|
|
197
|
+
cursor: not-allowed;
|
|
141
198
|
}
|
|
142
199
|
|
|
143
200
|
.okr-drawer-header__edit-btns-cancel {
|
|
144
|
-
color: #6F7886;
|
|
145
|
-
background: #fff;
|
|
146
|
-
border: 1px solid #DFE3EA;
|
|
147
201
|
margin-right: 10px;
|
|
202
|
+
border: 1px solid #dfe3ea;
|
|
203
|
+
background: #fff;
|
|
204
|
+
color: #6f7886;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.okr-drawer-header__edit-btns-cancel:hover {
|
|
208
|
+
border-color: #2879ff;
|
|
209
|
+
color: #2879ff;
|
|
148
210
|
}
|
|
149
211
|
|
|
150
212
|
.okr-drawer-header__edit-error-tip {
|
|
151
|
-
|
|
213
|
+
margin-top: -6px;
|
|
152
214
|
font-size: 12px;
|
|
153
215
|
line-height: 18px;
|
|
216
|
+
opacity: 0;
|
|
217
|
+
transform: translateY(-100%);
|
|
218
|
+
transition: all 0.3s ease;
|
|
154
219
|
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
155
|
-
color: #
|
|
156
|
-
|
|
220
|
+
color: #f05e5e;
|
|
221
|
+
visibility: hidden;
|
|
222
|
+
position: absolute;
|
|
223
|
+
z-index: 3;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.okr-drawer-header__edit-error-tip--visible {
|
|
227
|
+
opacity: 1;
|
|
228
|
+
transform: translateY(0);
|
|
229
|
+
visibility: visible;
|
|
157
230
|
}
|
|
158
231
|
|
|
159
232
|
.okr-drawer-header__classify-popup {
|
|
160
|
-
|
|
161
|
-
|
|
233
|
+
padding: 16px 6px;
|
|
234
|
+
border: 1px solid #f0f2f5;
|
|
235
|
+
border-radius: 8px;
|
|
162
236
|
box-shadow: 0px 4px 12px 0px rgba(127, 145, 180, 0.2);
|
|
163
|
-
|
|
237
|
+
background: #ffffff;
|
|
164
238
|
}
|
|
165
239
|
|
|
166
240
|
.okr-drawer-header__classify-popup-item {
|
|
167
|
-
|
|
168
|
-
color: #3F4755;
|
|
241
|
+
padding: 5px 30px;
|
|
169
242
|
font-size: 14px;
|
|
170
243
|
line-height: 22px;
|
|
171
|
-
|
|
244
|
+
border-radius: 8px;
|
|
245
|
+
transition: all 0.3s ease;
|
|
246
|
+
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
247
|
+
color: #3f4755;
|
|
172
248
|
cursor: pointer;
|
|
173
249
|
}
|
|
174
250
|
|
|
175
251
|
.okr-drawer-header__classify-popup-item:hover {
|
|
252
|
+
background: #f7f8fa;
|
|
253
|
+
color: #2879ff;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.okr-drawer-header__classify-popup-item.active {
|
|
176
257
|
color: #2879ff;
|
|
177
258
|
}
|
|
178
259
|
|
|
@@ -11,9 +11,9 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _richEditor = require("@titaui/rich-editor");
|
|
15
15
|
|
|
16
|
-
var _oClassify = _interopRequireDefault(require("
|
|
16
|
+
var _oClassify = _interopRequireDefault(require("./o-classify"));
|
|
17
17
|
|
|
18
18
|
var _oProgressUpdate = _interopRequireDefault(require("../o-progress-update"));
|
|
19
19
|
|
|
@@ -61,23 +61,26 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
61
61
|
|
|
62
62
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
63
63
|
|
|
64
|
-
var precls =
|
|
64
|
+
var precls = 'okr-drawer-header';
|
|
65
65
|
|
|
66
66
|
function Header(props) {
|
|
67
67
|
var _window, _window$BSGlobal, _window$BSGlobal$OkrA, _window$BSGlobal$OkrA2;
|
|
68
68
|
|
|
69
69
|
// 外部取到的 headInfo
|
|
70
70
|
var okrInfo = props.okrInfo;
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
var workName = okrInfo.workName,
|
|
72
|
+
workNameRichText = okrInfo.workNameRichText;
|
|
73
|
+
var richText = workNameRichText ? JSON.parse(workNameRichText) : (0, _richEditor.TitaRichEditorInitTextState)(workName);
|
|
74
|
+
|
|
75
|
+
var _useState = (0, _react.useState)({
|
|
76
|
+
mentionsUsers: [],
|
|
77
|
+
pureText: workName,
|
|
78
|
+
pureTextExcludeAt: workName,
|
|
79
|
+
richText: richText
|
|
80
|
+
}),
|
|
73
81
|
_useState2 = _slicedToArray(_useState, 2),
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
var _useState3 = (0, _react.useState)(okrInfo.workName),
|
|
78
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
79
|
-
okrName = _useState4[0],
|
|
80
|
-
setOkrName = _useState4[1];
|
|
82
|
+
okrNameData = _useState2[0],
|
|
83
|
+
setOkrNameData = _useState2[1];
|
|
81
84
|
|
|
82
85
|
var _useContext = (0, _react.useContext)(_context.GeneralDataContext),
|
|
83
86
|
generalPrincipalUser = _useContext.generalPrincipalUser,
|
|
@@ -94,10 +97,10 @@ function Header(props) {
|
|
|
94
97
|
progressGrow = _okrInfo$progressGrow === void 0 ? 0 : _okrInfo$progressGrow,
|
|
95
98
|
progress = okrInfo.progress;
|
|
96
99
|
|
|
97
|
-
var
|
|
98
|
-
|
|
99
|
-
auth =
|
|
100
|
-
setAuth =
|
|
100
|
+
var _useState3 = (0, _react.useState)(false),
|
|
101
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
102
|
+
auth = _useState4[0],
|
|
103
|
+
setAuth = _useState4[1];
|
|
101
104
|
|
|
102
105
|
(0, _react.useEffect)(function () {
|
|
103
106
|
setAuth(new _auth.OAuth({
|
|
@@ -113,45 +116,45 @@ function Header(props) {
|
|
|
113
116
|
var progressCmp = /*#__PURE__*/_react["default"].createElement(_progress["default"], {
|
|
114
117
|
percent: progress,
|
|
115
118
|
backgroundColor: "#F7F8FA",
|
|
116
|
-
textColor: okrInfo.status === 2 ?
|
|
117
|
-
color: okrInfo.status === 2 ?
|
|
119
|
+
textColor: okrInfo.status === 2 ? '#89919f' : _utils.OkrRiskMapping[okrInfo.manualRiskLevel].textColor,
|
|
120
|
+
color: okrInfo.status === 2 ? 'linear-gradient(270deg, #BFC7D5, #E1E5EC)' : _utils.OkrRiskMapping[okrInfo.manualRiskLevel].line
|
|
118
121
|
});
|
|
119
122
|
|
|
120
123
|
if (!editable) {
|
|
121
124
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
122
125
|
className: "okr-drawer-header__action-progress"
|
|
123
126
|
}, progressCmp, progressGrow !== 0 && /*#__PURE__*/_react["default"].createElement("span", {
|
|
124
|
-
className: (0, _classnames["default"])(
|
|
125
|
-
|
|
126
|
-
|
|
127
|
+
className: (0, _classnames["default"])('okr-drawer-header__action-progress-diff', {
|
|
128
|
+
'okr-drawer-header__action-progress-diff--up': progressGrow > 0,
|
|
129
|
+
'okr-drawer-header__action-progress-diff--down': progressGrow < 0
|
|
127
130
|
})
|
|
128
131
|
}, progressGrow > 0 ? /*#__PURE__*/_react["default"].createElement("span", {
|
|
129
132
|
className: "tu-icon-simple-sort-up"
|
|
130
133
|
}) : /*#__PURE__*/_react["default"].createElement("span", {
|
|
131
134
|
className: "tu-icon-simple-sort-down"
|
|
132
|
-
}), progressGrow.toString().replace(
|
|
135
|
+
}), progressGrow.toString().replace('-', ''), "%"));
|
|
133
136
|
}
|
|
134
137
|
|
|
135
138
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
136
139
|
className: "okr-drawer-header__action-progress"
|
|
137
140
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
|
|
138
|
-
overlay: (0, _getLocale.getLocale)(
|
|
141
|
+
overlay: (0, _getLocale.getLocale)('OKR_MyO_Pop_Upd_Upd'),
|
|
139
142
|
placement: "top"
|
|
140
143
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
141
144
|
onClick: onOpenModal,
|
|
142
145
|
style: {
|
|
143
|
-
cursor:
|
|
146
|
+
cursor: 'pointer'
|
|
144
147
|
}
|
|
145
148
|
}, progressCmp)), progressGrow !== 0 && /*#__PURE__*/_react["default"].createElement("span", {
|
|
146
|
-
className: (0, _classnames["default"])(
|
|
147
|
-
|
|
148
|
-
|
|
149
|
+
className: (0, _classnames["default"])('okr-drawer-header__action-progress-diff', {
|
|
150
|
+
'okr-drawer-header__action-progress-diff--up': progressGrow > 0,
|
|
151
|
+
'okr-drawer-header__action-progress-diff--down': progressGrow < 0
|
|
149
152
|
})
|
|
150
153
|
}, progressGrow > 0 ? /*#__PURE__*/_react["default"].createElement("span", {
|
|
151
154
|
className: "tu-icon-simple-sort-up"
|
|
152
155
|
}) : /*#__PURE__*/_react["default"].createElement("span", {
|
|
153
156
|
className: "tu-icon-simple-sort-down"
|
|
154
|
-
}), progressGrow.toString().replace(
|
|
157
|
+
}), progressGrow.toString().replace('-', ''), "%"));
|
|
155
158
|
};
|
|
156
159
|
|
|
157
160
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -164,24 +167,16 @@ function Header(props) {
|
|
|
164
167
|
okrId: okrInfo.workId
|
|
165
168
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
166
169
|
className: "".concat(precls, "__content")
|
|
167
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
168
|
-
editable: editable,
|
|
169
|
-
okrName: okrName,
|
|
170
|
-
setIsEdit: setIsEdit,
|
|
171
|
-
okrStatus: okrInfo === null || okrInfo === void 0 ? void 0 : okrInfo.status,
|
|
172
|
-
OkrAndKrApprovalTypes: okrInfo === null || okrInfo === void 0 ? void 0 : okrInfo.OkrAndKrApprovalTypes,
|
|
173
|
-
applyState: okrInfo === null || okrInfo === void 0 ? void 0 : okrInfo.applyState,
|
|
174
|
-
approvalSetting: approvalSetting
|
|
175
|
-
}, /*#__PURE__*/_react["default"].createElement(_oClassify["default"], {
|
|
170
|
+
}, /*#__PURE__*/_react["default"].createElement(_editName["default"], {
|
|
176
171
|
editable: editable,
|
|
172
|
+
okrName: okrNameData,
|
|
177
173
|
okrId: okrInfo.workId,
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
})), /*#__PURE__*/_react["default"].createElement("section", {
|
|
174
|
+
setOkrName: setOkrNameData
|
|
175
|
+
}), /*#__PURE__*/_react["default"].createElement("section", {
|
|
181
176
|
className: "".concat(precls, "__action")
|
|
182
177
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
183
178
|
style: {
|
|
184
|
-
position:
|
|
179
|
+
position: 'relative',
|
|
185
180
|
left: -4
|
|
186
181
|
}
|
|
187
182
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -193,8 +188,15 @@ function Header(props) {
|
|
|
193
188
|
onTypeChange: setGeneralOkrType
|
|
194
189
|
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
195
190
|
className: "".concat(precls, "__action-item")
|
|
191
|
+
}, /*#__PURE__*/_react["default"].createElement(_oClassify["default"], {
|
|
192
|
+
editable: editable,
|
|
193
|
+
okrId: okrInfo.workId,
|
|
194
|
+
okrClassify: generalOkrClassify,
|
|
195
|
+
onOkrClassifyChange: setGeneralOkrClassify
|
|
196
|
+
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
197
|
+
className: "".concat(precls, "__action-item")
|
|
196
198
|
}, /*#__PURE__*/_react["default"].createElement(_oCycle["default"], {
|
|
197
|
-
editable: editable && (0, _helper.getApprovalOkr)(approvalSetting,
|
|
199
|
+
editable: editable && (0, _helper.getApprovalOkr)(approvalSetting, 'changeOkrTime', okrInfo === null || okrInfo === void 0 ? void 0 : okrInfo.applyState, okrInfo === null || okrInfo === void 0 ? void 0 : okrInfo.OkrAndKrApprovalTypes),
|
|
198
200
|
okrId: okrInfo.workId
|
|
199
201
|
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
200
202
|
className: "".concat(precls, "__action-item")
|
|
@@ -206,12 +208,7 @@ function Header(props) {
|
|
|
206
208
|
}))), /*#__PURE__*/_react["default"].createElement(_oProgressUpdate["default"], {
|
|
207
209
|
okrInfo: okrInfo,
|
|
208
210
|
renderContent: renderContent
|
|
209
|
-
}))
|
|
210
|
-
okrName: okrName,
|
|
211
|
-
okrId: okrInfo.workId,
|
|
212
|
-
setOkrName: setOkrName,
|
|
213
|
-
setIsEdit: setIsEdit
|
|
214
|
-
})));
|
|
211
|
+
}))));
|
|
215
212
|
}
|
|
216
213
|
|
|
217
214
|
var _default = Header;
|