@titaui/pc 1.12.62 → 1.12.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/avatar/default.js +2 -5
- package/lib/components/avatar/index.css +0 -2
- package/lib/components/dialog-confirm/index.css +0 -1
- package/lib/components/dialog-confirm/index.js +4 -8
- package/lib/components/drawer/index.css +5 -5
- package/lib/components/drawer/index.js +7 -7
- package/lib/components/drop-selector/index.js +4 -7
- package/lib/components/dynamic/constant.js +1 -5
- package/lib/components/dynamic/dynamic-item/components/header/index.js +47 -49
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +2 -3
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +2 -3
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +2 -3
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +2 -3
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +21 -4
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +5 -3
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +2 -3
- package/lib/components/dynamic/dynamic-item/index.css +2 -3
- package/lib/components/dynamic/dynamic-item/index.js +33 -52
- package/lib/components/dynamic/dynamic-list/index.js +8 -8
- package/lib/components/dynamic/img/dynamic-submit-delay.svg +16 -0
- package/lib/components/dynamic/img/dynamic-submit-normal.svg +18 -0
- package/lib/components/form/form-fields/date/index.js +8 -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/components/menu-tree/tree-node/menu-item.js +1 -5
- package/lib/components/menus/components/search-colleague/index.js +1 -3
- package/lib/components/menus/export-modules/appraisal-menus/index.js +6 -6
- package/lib/components/menus/export-modules/appraisal-menus/menus.js +69 -69
- package/lib/components/menus/export-modules/demo-menus/menus.js +4 -5
- package/lib/components/menus/export-modules/interview-menus/constant.js +12 -12
- package/lib/components/menus/export-modules/okr-menus/index.js +6 -6
- package/lib/components/menus/export-modules/okr-menus/menus.js +60 -60
- package/lib/components/menus/export-modules/okr-menus/okr-front-menus.js +2 -2
- package/lib/components/menus/i18n.js +0 -8
- package/lib/components/menus/index.js +0 -6
- package/lib/components/menus/request-apis.js +2 -22
- package/lib/components/nav-top/components/app-center/index.css +1 -24
- package/lib/components/nav-top/components/app-center/index.js +10 -18
- package/lib/components/nav-top/components/menu/index.css +0 -11
- package/lib/components/nav-top/components/menu/index.js +53 -49
- package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +17 -28
- package/lib/components/nav-top/components/user-message/index.js +19 -19
- package/lib/components/nav-top/index.css +0 -5
- package/lib/components/nav-top/index.js +2 -39
- package/lib/components/okr-detail/components/header/index.js +1 -1
- package/lib/components/okr-detail/components/header/o-avatar.js +6 -6
- package/lib/components/okr-flow/export-modal/index.css +3 -3
- package/lib/components/okr-flow/export-modal/index.js +1 -1
- package/lib/components/okr-flow/okr-map/index.js +1 -3
- package/lib/components/order-have-award/index.js +6 -6
- package/lib/components/period-selector/components/button/style.js +5 -5
- package/lib/components/picker/components/panels/date-panel/date-body.js +19 -31
- package/lib/components/picker/components/panels/date-panel/date-head.js +8 -8
- package/lib/components/picker/components/panels/date-panel/index.js +1 -1
- package/lib/components/picker/components/panels/month-panel/index.css +0 -5
- package/lib/components/picker/components/panels/month-panel/index.js +4 -35
- package/lib/components/picker/components/panels/month-panel/month-body.js +5 -4
- package/lib/components/picker/components/panels/month-panel/month-head.js +1 -1
- package/lib/components/picker/components/panels/year-panel/index.css +0 -5
- package/lib/components/picker/components/panels/year-panel/index.js +1 -1
- package/lib/components/picker/components/panels/year-panel/year-body.js +3 -10
- package/lib/components/picker/components/picker-trigger/index.css +1 -6
- package/lib/components/picker/components/picker-trigger/index.js +11 -16
- package/lib/components/picker/context.js +2 -17
- package/lib/components/picker/index.css +1 -29
- package/lib/components/picker/index.js +0 -3
- package/lib/components/picker/picker-panels.js +60 -106
- package/lib/components/picker/picker.js +30 -44
- package/lib/components/picker/utils.js +11 -168
- package/lib/components/rich-editor/schemas/list.js +1 -0
- package/lib/components/rich-editor/ui/editor/index.css +32 -32
- package/lib/components/rich-editor/ui/editor/index.js +1 -1
- package/lib/components/search-input/index.js +0 -5
- package/lib/components/select-tags/index.js +2 -12
- package/lib/components/task-relation-modal/helper.js +6 -6
- package/lib/components/task-relation-modal/request-api.js +9 -9
- package/lib/components/task-relation-modal/tree/work-tree/search-form.js +4 -4
- package/lib/components/task-relation-modal/tree-node/work-node/index.js +5 -5
- package/lib/components/textarea/index.css +66 -61
- package/lib/components/textarea/index.js +18 -23
- package/lib/components/toast/index.js +1 -1
- package/lib/components/tooltip/tooltip.js +2 -2
- package/lib/components/upvote/index.js +4 -10
- package/lib/components/upvote/selector.js +3 -2
- package/lib/components/user-selector/category-selector-panel/depart-tree.js +1 -1
- package/lib/components/user-selector/export-modules/field-tree-selector/index.js +1 -1
- package/lib/components/user-selector/export-modules/multiple-user-selector--bak/index.css +3 -3
- package/lib/components/user-selector/request-apis.js +13 -13
- package/lib/components-v1/radio/style/index.css +1 -1
- package/lib/index.js +0 -64
- package/lib/pages/aha2021/index.css +17 -0
- package/lib/pages/aha2021/index.js +28 -3
- package/lib/pages/aha2021/new-menu-switcher/index.js +4 -4
- package/lib/pages/aha2021/request-api.js +1 -1
- package/lib/utils/auth.js +0 -10
- package/lib/utils/bs-global.js +1 -1
- package/lib/utils/constant.js +2 -14
- package/lib/utils/helpers.js +12 -112
- package/lib/utils/open-data.js +42 -41
- package/package.json +2 -3
- package/lib/components/attachments-preview/index.css +0 -9
- package/lib/components/attachments-preview/index.js +0 -116
- 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 -69
- package/lib/components/color-date-picker/index.js +0 -129
- 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 -80
- package/lib/components/dialog-upload/uploaded-preview.js +0 -134
- package/lib/components/dialog-upload/util.js +0 -131
- package/lib/components/dynamic/components/comments-dialog/api.js +0 -27
- package/lib/components/dynamic/components/comments-dialog/encourage.js +0 -127
- package/lib/components/dynamic/components/comments-dialog/img/APP-shoucang-m.png +0 -0
- package/lib/components/dynamic/components/comments-dialog/img/ascore.png +0 -0
- package/lib/components/dynamic/components/comments-dialog/img/curEfforts.png +0 -0
- package/lib/components/dynamic/components/comments-dialog/img/curGood.png +0 -0
- package/lib/components/dynamic/components/comments-dialog/img/curGreat.png +0 -0
- package/lib/components/dynamic/components/comments-dialog/img/efforts.png +0 -0
- package/lib/components/dynamic/components/comments-dialog/img/good.png +0 -0
- package/lib/components/dynamic/components/comments-dialog/img/great.png +0 -0
- package/lib/components/dynamic/components/comments-dialog/img/halfscore.png +0 -0
- package/lib/components/dynamic/components/comments-dialog/img/loading.gif +0 -0
- package/lib/components/dynamic/components/comments-dialog/img/score.png +0 -0
- package/lib/components/dynamic/components/comments-dialog/img/top.svg +0 -14
- package/lib/components/dynamic/components/comments-dialog/index.css +0 -116
- package/lib/components/dynamic/components/comments-dialog/index.js +0 -208
- package/lib/components/dynamic/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/constant.js +0 -31
- package/lib/components/dynamic/dynamic-item/components/okr-progress/index.css +0 -217
- package/lib/components/dynamic/dynamic-item/components/okr-progress/index.js +0 -176
- 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 -27
- 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/index.js +0 -222
- 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 -36
- package/lib/components/dynamic/dynamic-item/components/schedule/index.js +0 -31
- package/lib/components/dynamic/dynamic-item/components/schedule/interface.js +0 -5
- package/lib/components/dynamic/dynamic-item/components/summary-header/constant.js +0 -45
- 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/guide-img.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 -187
- package/lib/components/dynamic/dynamic-item/components/summary-header/index.js +0 -426
- package/lib/components/dynamic/dynamic-item/components/summary-header/operate-record.js +0 -49
- package/lib/components/dynamic/dynamic-item/components/summary-header/request-api.js +0 -23
- package/lib/components/dynamic/dynamic-item/components/table-row-o-project/index.css +0 -30
- package/lib/components/dynamic/dynamic-item/components/table-row-o-project/index.js +0 -57
- 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 -67
- package/lib/components/dynamic/dynamic-item/components/table-row-okr/interface.js +0 -5
- package/lib/components/dynamic/dynamic-item/components/task-progress/constant.js +0 -29
- package/lib/components/dynamic/dynamic-item/components/task-progress/index.css +0 -310
- package/lib/components/dynamic/dynamic-item/components/task-progress/index.js +0 -193
- package/lib/components/dynamic/dynamic-item/components/task-progress/interface.js +0 -22
- package/lib/components/dynamic/dynamic-item/components/task-progress/render-row.js +0 -80
- package/lib/components/dynamic/dynamic-item/components/task-progress/request-api.js +0 -16
- package/lib/components/dynamic/dynamic-item/components/task-progress/utils.js +0 -158
- 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/come-on-write.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/nice-write.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/img/very-good-write.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/index.css +0 -115
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/index.js +0 -212
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/remind-user-view/index.css +0 -43
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/remind-user-view/index.js +0 -49
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/constant.js +0 -61
- 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 -152
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.js +0 -254
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/util.js +0 -67
- package/lib/components/guide-tip/index.css +0 -68
- package/lib/components/guide-tip/index.js +0 -115
- package/lib/components/import-modal/helper.js +0 -170
- 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 -146
- package/lib/components/import-modal/import-task-modal/index.css +0 -18
- package/lib/components/import-modal/import-task-modal/index.js +0 -251
- package/lib/components/import-modal/import-task-modal/search-form.js +0 -142
- 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 -206
- 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 -89
- 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 -84
- 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 -269
- package/lib/components/import-modal/tree/okr-tree/search-form.js +0 -169
- package/lib/components/import-modal/tree/task-work-tree/index.css +0 -124
- package/lib/components/import-modal/tree/task-work-tree/index.js +0 -190
- 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 -65
- package/lib/components/import-modal/tree-node/kr-node/index.js +0 -112
- 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 -53
- package/lib/components/import-modal/tree-node/o-node/index.js +0 -142
- 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 -78
- package/lib/components/menus/components/menu-tree/tree-node/summary-share.js +0 -78
- 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 -243
- package/lib/components/menus/export-modules/summary-menus/index.css +0 -9
- package/lib/components/menus/export-modules/summary-menus/index.js +0 -136
- package/lib/components/menus/export-modules/summary-menus/menu-highlight.js +0 -76
- package/lib/components/menus/export-modules/summary-menus/menus.js +0 -251
- package/lib/components/menus/export-modules/summary-menus/request-api.js +0 -17
- package/lib/components/menus/export-modules/summary-menus/subordinate-menus/helper.js +0 -28
- package/lib/components/menus/export-modules/summary-menus/subordinate-menus/index.css +0 -14
- package/lib/components/menus/export-modules/summary-menus/subordinate-menus/index.js +0 -201
- package/lib/components/menus/export-modules/summary-menus/summary-front-menus.js +0 -250
- package/lib/components/nav-top/components/app-center/images/demo.png +0 -0
- package/lib/components/nav-top/components/app-center/images/new.svg +0 -30
- 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 -120
- package/lib/components/new-confidence/interface.js +0 -5
- package/lib/components/picker/components/cross.svg +0 -17
- package/lib/components/picker/components/panels/week-panel/index.css +0 -51
- package/lib/components/picker/components/panels/week-panel/index.js +0 -63
- package/lib/components/picker/components/panels/week-panel/utils.js +0 -153
- 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/picker/range-picker/components/picker-trigger/index.css +0 -97
- package/lib/components/picker/range-picker/components/picker-trigger/index.js +0 -109
- package/lib/components/picker/range-picker/components/placeholder/index.js +0 -91
- package/lib/components/picker/range-picker/components/select-input/index.js +0 -79
- package/lib/components/picker/range-picker/components/shortcuts/index.js +0 -45
- package/lib/components/picker/range-picker/index.css +0 -158
- package/lib/components/picker/range-picker/index.js +0 -263
- package/lib/components/promise-confirm/index.css +0 -0
- package/lib/components/promise-confirm/index.js +0 -117
- package/lib/components/promise-confirm/interface.js +0 -5
- package/lib/components/rate/index.css +0 -111
- package/lib/components/rate/index.js +0 -79
- 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 -67
- package/lib/components/rich-editor-at/components/index.js +0 -189
- package/lib/components/rich-editor-at/index.css +0 -40
- package/lib/components/rich-editor-at/index.js +0 -113
- package/lib/components/rich-editor-upload/index.css +0 -11
- package/lib/components/rich-editor-upload/index.js +0 -87
- package/lib/components/write-summary-modal/constants.js +0 -21
- package/lib/components/write-summary-modal/index.css +0 -80
- package/lib/components/write-summary-modal/index.js +0 -167
- package/lib/components/write-summary-modal/interface.js +0 -19
- package/lib/components/write-summary-modal/request-api.js +0 -18
- package/lib/components/write-summary-modal/utils.js +0 -32
- package/lib/utils/planDataJson.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.titaui-
|
|
1
|
+
.titaui-textArea {
|
|
2
2
|
box-sizing: border-box;
|
|
3
3
|
position: relative;
|
|
4
4
|
min-height: 36px;
|
|
@@ -11,127 +11,132 @@
|
|
|
11
11
|
transition: border 0.2s ease 0.2s, box-shadow 0.2s ease 0.2s;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
.titaui-
|
|
15
|
-
|
|
16
|
-
display: flex;
|
|
17
|
-
flex: 1;
|
|
18
|
-
width: 0;
|
|
14
|
+
.titaui-textArea.has-error {
|
|
15
|
+
border: 1px solid #f05e5e !important;
|
|
19
16
|
}
|
|
20
17
|
|
|
21
|
-
.titaui-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
.titaui-textArea:hover {
|
|
19
|
+
border: 1px solid #2879ff;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.titaui-textArea > input {
|
|
23
|
+
flex-grow: 1;
|
|
25
24
|
border: none;
|
|
26
|
-
padding: 0;
|
|
25
|
+
padding: 0 12px;
|
|
27
26
|
margin: 0;
|
|
28
27
|
outline: none;
|
|
29
|
-
|
|
30
|
-
padding: 0 12px;
|
|
31
|
-
width: 100%;
|
|
28
|
+
width: 0;
|
|
32
29
|
box-sizing: border-box;
|
|
33
30
|
background-color: transparent;
|
|
34
31
|
color: #3f4755;
|
|
35
|
-
word-break: break-all;
|
|
36
32
|
}
|
|
37
33
|
|
|
38
|
-
.titaui-
|
|
34
|
+
.titaui-textArea > input ::-webkit-input-placeholder {
|
|
39
35
|
color: #bfc7d5;
|
|
40
36
|
}
|
|
41
37
|
|
|
42
|
-
.titaui-
|
|
38
|
+
.titaui-textArea > input :-ms-input-placeholder {
|
|
43
39
|
color: #bfc7d5;
|
|
44
40
|
}
|
|
45
41
|
|
|
46
|
-
.titaui-
|
|
42
|
+
.titaui-textArea > input :-moz-input-placeholder {
|
|
47
43
|
color: #bfc7d5;
|
|
48
44
|
}
|
|
49
45
|
|
|
50
|
-
.titaui-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
height:
|
|
54
|
-
background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
|
|
55
|
-
position: absolute;
|
|
56
|
-
top: 0;
|
|
57
|
-
width: 100%;
|
|
58
|
-
z-index: 2;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.titaui-pc-textArea-content-bottom-shadow::after {
|
|
62
|
-
content: '';
|
|
63
|
-
border-radius: 8px;
|
|
64
|
-
height: 30px;
|
|
65
|
-
background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
|
|
66
|
-
position: absolute;
|
|
67
|
-
bottom: 0;
|
|
68
|
-
width: 100%;
|
|
69
|
-
z-index: 2;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.titaui-pc-textArea-content > input {
|
|
73
|
-
flex-grow: 1;
|
|
46
|
+
.titaui-textArea textarea {
|
|
47
|
+
flex: 1;
|
|
48
|
+
line-height: 20px;
|
|
49
|
+
min-height: 20px;
|
|
74
50
|
border: none;
|
|
75
|
-
padding: 0
|
|
51
|
+
padding: 0;
|
|
76
52
|
margin: 0;
|
|
77
53
|
outline: none;
|
|
78
|
-
|
|
54
|
+
resize: none;
|
|
55
|
+
padding: 0 12px;
|
|
56
|
+
width: 100%;
|
|
79
57
|
box-sizing: border-box;
|
|
80
58
|
background-color: transparent;
|
|
81
59
|
color: #3f4755;
|
|
60
|
+
word-break: break-all;
|
|
82
61
|
}
|
|
83
62
|
|
|
84
|
-
.titaui-
|
|
63
|
+
.titaui-textArea textarea ::-webkit-input-placeholder {
|
|
85
64
|
color: #bfc7d5;
|
|
86
65
|
}
|
|
87
66
|
|
|
88
|
-
.titaui-
|
|
67
|
+
.titaui-textArea textarea :-ms-input-placeholder {
|
|
89
68
|
color: #bfc7d5;
|
|
90
69
|
}
|
|
91
70
|
|
|
92
|
-
.titaui-
|
|
71
|
+
.titaui-textArea textarea :-moz-input-placeholder {
|
|
93
72
|
color: #bfc7d5;
|
|
94
73
|
}
|
|
95
74
|
|
|
96
|
-
.titaui-
|
|
75
|
+
.titaui-textArea.disabled {
|
|
97
76
|
background-color: rgba(240, 242, 245, 0.4);
|
|
98
77
|
border-color: #f0f2f5;
|
|
99
78
|
color: #bfc7d5;
|
|
100
79
|
cursor: default;
|
|
101
80
|
}
|
|
102
81
|
|
|
103
|
-
.titaui-
|
|
104
|
-
.titaui-
|
|
105
|
-
.titaui-
|
|
82
|
+
.titaui-textArea.disabled > input,
|
|
83
|
+
.titaui-textArea.disabled textarea,
|
|
84
|
+
.titaui-textArea.disabled .tail-wrapper {
|
|
106
85
|
color: #bfc7d5;
|
|
107
86
|
}
|
|
108
87
|
|
|
109
|
-
.titaui-
|
|
88
|
+
.titaui-textArea.disabled:hover {
|
|
110
89
|
border-color: #f0f2f5;
|
|
111
90
|
}
|
|
112
91
|
|
|
113
|
-
.
|
|
92
|
+
.area-error {
|
|
114
93
|
border: 1px solid #f05e5e !important;
|
|
115
|
-
box-shadow:
|
|
116
|
-
width: 100%;
|
|
94
|
+
box-shadow: 0px 0px 6px 0px rgba(240, 94, 94, 0.3);
|
|
117
95
|
}
|
|
118
96
|
|
|
119
|
-
.
|
|
97
|
+
.area-focus {
|
|
120
98
|
border: 1px solid #2879ff !important;
|
|
121
|
-
box-shadow:
|
|
122
|
-
width: 100%;
|
|
99
|
+
box-shadow: 0px 0px 6px 0px rgba(40, 121, 255, 0.3);
|
|
123
100
|
}
|
|
124
101
|
|
|
125
|
-
.
|
|
102
|
+
.area-normal {
|
|
126
103
|
border: 1px solid #e9ecf0 !important;
|
|
127
104
|
box-shadow: none;
|
|
128
|
-
width: 100%;
|
|
129
105
|
}
|
|
130
106
|
|
|
131
|
-
.
|
|
107
|
+
.inner {
|
|
108
|
+
overflow: auto;
|
|
109
|
+
display: flex;
|
|
110
|
+
flex: 1;
|
|
111
|
+
width: 0;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.err-color {
|
|
132
115
|
font-size: 12px;
|
|
133
116
|
font-weight: 400;
|
|
134
117
|
color: #f05e5e;
|
|
135
118
|
line-height: 18px;
|
|
136
119
|
padding-left: 12px;
|
|
137
120
|
}
|
|
121
|
+
|
|
122
|
+
.commonTextAreaWrapperTopShadow::before {
|
|
123
|
+
content: '';
|
|
124
|
+
border-radius: 8px;
|
|
125
|
+
height: 30px;
|
|
126
|
+
background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
|
|
127
|
+
position: absolute;
|
|
128
|
+
top: 0;
|
|
129
|
+
width: 100%;
|
|
130
|
+
z-index: 2;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.commonTextAreaWrapperBottomShadow::after {
|
|
134
|
+
content: '';
|
|
135
|
+
border-radius: 8px;
|
|
136
|
+
height: 30px;
|
|
137
|
+
background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
|
|
138
|
+
position: absolute;
|
|
139
|
+
bottom: 0;
|
|
140
|
+
width: 100%;
|
|
141
|
+
z-index: 2;
|
|
142
|
+
}
|
|
@@ -9,11 +9,11 @@ exports["default"] = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
13
|
|
|
14
14
|
require("./index.css");
|
|
15
15
|
|
|
16
|
-
var _excluded = ["disabled", "onFocus", "onBlur", "inputRef", "onChange", "className", "value", "placeholder", "maxLine", "
|
|
16
|
+
var _excluded = ["disabled", "onFocus", "onBlur", "inputRef", "onChange", "className", "value", "placeholder", "maxLine", "isShowApproval", "maxLength", "initValue", "onErrorChange", "validator", "onKeyDown"];
|
|
17
17
|
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
19
|
|
|
@@ -23,8 +23,6 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
23
23
|
|
|
24
24
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
25
25
|
|
|
26
|
-
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; }
|
|
27
|
-
|
|
28
26
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
29
27
|
|
|
30
28
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -42,8 +40,6 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
42
40
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
43
41
|
|
|
44
42
|
var Textarea = function Textarea(p) {
|
|
45
|
-
var _classnames;
|
|
46
|
-
|
|
47
43
|
var disabled = p.disabled,
|
|
48
44
|
_onFocus = p.onFocus,
|
|
49
45
|
_onBlur = p.onBlur,
|
|
@@ -54,8 +50,7 @@ var Textarea = function Textarea(p) {
|
|
|
54
50
|
placeholder = p.placeholder,
|
|
55
51
|
_p$maxLine = p.maxLine,
|
|
56
52
|
maxLine = _p$maxLine === void 0 ? 4 : _p$maxLine,
|
|
57
|
-
|
|
58
|
-
changeEditStatus = p.changeEditStatus,
|
|
53
|
+
isShowApproval = p.isShowApproval,
|
|
59
54
|
maxLength = p.maxLength,
|
|
60
55
|
initValue = p.initValue,
|
|
61
56
|
onErrorChange = p.onErrorChange,
|
|
@@ -63,7 +58,7 @@ var Textarea = function Textarea(p) {
|
|
|
63
58
|
_onKeyDown = p.onKeyDown,
|
|
64
59
|
others = _objectWithoutProperties(p, _excluded);
|
|
65
60
|
|
|
66
|
-
var prefixCls = "titaui-
|
|
61
|
+
var prefixCls = "titaui-textArea";
|
|
67
62
|
|
|
68
63
|
var _useState = (0, _react.useState)(false),
|
|
69
64
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -78,7 +73,7 @@ var Textarea = function Textarea(p) {
|
|
|
78
73
|
var selfInputRef = (0, _react.useRef)();
|
|
79
74
|
var realInputRef = inputRef || selfInputRef;
|
|
80
75
|
var isControlled = ("value" in p);
|
|
81
|
-
var realValue = isControlled ? value
|
|
76
|
+
var realValue = isControlled ? value : selfValue;
|
|
82
77
|
|
|
83
78
|
var _useState5 = (0, _react.useState)(false),
|
|
84
79
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
@@ -102,7 +97,7 @@ var Textarea = function Textarea(p) {
|
|
|
102
97
|
isTrue = _useState12[0],
|
|
103
98
|
setIsTrue = _useState12[1];
|
|
104
99
|
|
|
105
|
-
var _useState13 = (0, _react.useState)(
|
|
100
|
+
var _useState13 = (0, _react.useState)(1),
|
|
106
101
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
107
102
|
textAreaRows = _useState14[0],
|
|
108
103
|
setTextAreaRows = _useState14[1];
|
|
@@ -159,9 +154,9 @@ var Textarea = function Textarea(p) {
|
|
|
159
154
|
setIsTrue(false);
|
|
160
155
|
};
|
|
161
156
|
|
|
162
|
-
var areaNormal = isTrue ? "
|
|
163
|
-
var areaFocus = active ? "
|
|
164
|
-
var areaError = error ? "
|
|
157
|
+
var areaNormal = isTrue ? "area-focus" : "area-normal";
|
|
158
|
+
var areaFocus = active ? "area-focus" : areaNormal;
|
|
159
|
+
var areaError = error ? "area-error" : areaFocus;
|
|
165
160
|
(0, _react.useEffect)(function () {
|
|
166
161
|
if (!validateEnable) return;
|
|
167
162
|
var hasError = false;
|
|
@@ -197,11 +192,9 @@ var Textarea = function Textarea(p) {
|
|
|
197
192
|
}, [realValue]);
|
|
198
193
|
(0, _react.useEffect)(function () {
|
|
199
194
|
resetTextareaHeight();
|
|
200
|
-
}, [
|
|
201
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
202
|
-
className: "".concat(prefixCls)
|
|
203
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
204
|
-
className: "".concat(prefixCls, "-content ").concat(areaError, " ").concat(disabled ? " disabled" : ""),
|
|
195
|
+
}, [isShowApproval]);
|
|
196
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
197
|
+
className: "\n ".concat(prefixCls, "\n ").concat(areaError, "\n ").concat(disabled ? " disabled" : "", "\n "),
|
|
205
198
|
onFocus: function onFocus() {},
|
|
206
199
|
onBlur: function onBlur() {},
|
|
207
200
|
onMouseOver: changeMoveOver,
|
|
@@ -213,14 +206,16 @@ var Textarea = function Textarea(p) {
|
|
|
213
206
|
(_realInputRef$current = realInputRef.current) === null || _realInputRef$current === void 0 ? void 0 : _realInputRef$current.focus();
|
|
214
207
|
}
|
|
215
208
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
216
|
-
className: (0,
|
|
209
|
+
className: (0, _classnames["default"])("inner scrollbar-size-sm", {
|
|
210
|
+
commonTextAreaWrapperTopShadow: showTopShadow,
|
|
211
|
+
commonTextAreaWrapperBottomShadow: showBottomShadow
|
|
212
|
+
})
|
|
217
213
|
}, /*#__PURE__*/_react["default"].createElement("textarea", _extends({
|
|
218
214
|
className: "".concat(className, " scrollbar-size-sm"),
|
|
219
215
|
disabled: disabled,
|
|
220
216
|
ref: realInputRef,
|
|
221
217
|
value: realValue,
|
|
222
|
-
rows: textAreaRows
|
|
223
|
-
,
|
|
218
|
+
rows: textAreaRows,
|
|
224
219
|
placeholder: placeholder,
|
|
225
220
|
onScroll: handleShadowVisible,
|
|
226
221
|
onChange: function onChange(e) {
|
|
@@ -259,7 +254,7 @@ var Textarea = function Textarea(p) {
|
|
|
259
254
|
}
|
|
260
255
|
}
|
|
261
256
|
}, others)))), error && /*#__PURE__*/_react["default"].createElement("div", {
|
|
262
|
-
className: "
|
|
257
|
+
className: "err-color"
|
|
263
258
|
}, errorText));
|
|
264
259
|
};
|
|
265
260
|
|
|
@@ -21,7 +21,7 @@ function _default(props) {
|
|
|
21
21
|
var align = props.align,
|
|
22
22
|
placement = props.placement;
|
|
23
23
|
|
|
24
|
-
if (placement ===
|
|
24
|
+
if (placement === "top" && !align) {
|
|
25
25
|
align = {
|
|
26
26
|
offset: [0, 5]
|
|
27
27
|
};
|
|
@@ -29,6 +29,6 @@ function _default(props) {
|
|
|
29
29
|
|
|
30
30
|
return /*#__PURE__*/_react["default"].createElement(_rcTooltip["default"], _extends({}, props, {
|
|
31
31
|
align: align,
|
|
32
|
-
transitionName: props.transitionName ||
|
|
32
|
+
transitionName: props.transitionName || "tita-common-fade"
|
|
33
33
|
}));
|
|
34
34
|
}
|
|
@@ -90,8 +90,7 @@ function UpvoteButton(_ref) {
|
|
|
90
90
|
_ref$buttonType = _ref.buttonType,
|
|
91
91
|
buttonType = _ref$buttonType === void 0 ? "" : _ref$buttonType,
|
|
92
92
|
_ref$customUpvoteBtnC = _ref.customUpvoteBtnCls,
|
|
93
|
-
customUpvoteBtnCls = _ref$customUpvoteBtnC === void 0 ? "" : _ref$customUpvoteBtnC
|
|
94
|
-
getPopupContainer = _ref.getPopupContainer;
|
|
93
|
+
customUpvoteBtnCls = _ref$customUpvoteBtnC === void 0 ? "" : _ref$customUpvoteBtnC;
|
|
95
94
|
|
|
96
95
|
var _useState = (0, _react.useState)({
|
|
97
96
|
type: type,
|
|
@@ -108,7 +107,6 @@ function UpvoteButton(_ref) {
|
|
|
108
107
|
modalVisible = _useState4[0],
|
|
109
108
|
setModalVisible = _useState4[1];
|
|
110
109
|
|
|
111
|
-
var wrapperRef = (0, _react.useRef)(document.createElement('div'));
|
|
112
110
|
(0, _react.useEffect)(function () {
|
|
113
111
|
setUpvoteState({
|
|
114
112
|
type: type,
|
|
@@ -130,13 +128,9 @@ function UpvoteButton(_ref) {
|
|
|
130
128
|
}, []);
|
|
131
129
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
132
130
|
className: "feed-upvote pull-screen-click-through pull-screen-ignore",
|
|
133
|
-
style: style
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
getPopupContainer: function getPopupContainer() {
|
|
137
|
-
return wrapperRef.current || document.body;
|
|
138
|
-
} // visible={selectorVisible}
|
|
139
|
-
,
|
|
131
|
+
style: style
|
|
132
|
+
}, /*#__PURE__*/_react["default"].createElement(_selector["default"] // visible={selectorVisible}
|
|
133
|
+
, {
|
|
140
134
|
align: popAlign,
|
|
141
135
|
onSelect: /*#__PURE__*/function () {
|
|
142
136
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(type) {
|
|
@@ -9,7 +9,7 @@ exports["default"] = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _rcTrigger = _interopRequireDefault(require("rc-trigger"));
|
|
13
13
|
|
|
14
14
|
var _rcQueueAnim = _interopRequireDefault(require("rc-queue-anim"));
|
|
15
15
|
|
|
@@ -118,10 +118,11 @@ var VoteSelector = function VoteSelector(_ref) {
|
|
|
118
118
|
}
|
|
119
119
|
}, [arrowPosition]);
|
|
120
120
|
if (!children || !_react["default"].Children.only(children)) throw "only support single child";
|
|
121
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
121
|
+
return /*#__PURE__*/_react["default"].createElement(_rcTrigger["default"], {
|
|
122
122
|
zIndex: 1500,
|
|
123
123
|
popupVisible: popVisible,
|
|
124
124
|
popupAlign: getAlignPostion(align, offset),
|
|
125
|
+
getPopupContainer: getPopupContainer,
|
|
125
126
|
onPopupAlign: handlePopAlign,
|
|
126
127
|
popup: /*#__PURE__*/_react["default"].createElement("div", {
|
|
127
128
|
className: "pull-screen-ignore document-mouse-event-ignore"
|
|
@@ -32,7 +32,7 @@ function _default(props) {
|
|
|
32
32
|
|
|
33
33
|
var _useContext = (0, _react.useContext)(_context.CommonContext),
|
|
34
34
|
_useContext$departId = _useContext.departId,
|
|
35
|
-
departId = _useContext$departId === void 0 ?
|
|
35
|
+
departId = _useContext$departId === void 0 ? "-1" : _useContext$departId,
|
|
36
36
|
departOnly = _useContext.departOnly,
|
|
37
37
|
sourceFrom = _useContext.sourceFrom,
|
|
38
38
|
auth = _useContext.auth,
|
|
@@ -69,7 +69,7 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
69
69
|
searchUserOnly = props.searchUserOnly,
|
|
70
70
|
isVerify = props.isVerify,
|
|
71
71
|
_props$departId = props.departId,
|
|
72
|
-
departId = _props$departId === void 0 ?
|
|
72
|
+
departId = _props$departId === void 0 ? "-1" : _props$departId,
|
|
73
73
|
_props$auth = props.auth,
|
|
74
74
|
auth = _props$auth === void 0 ? false : _props$auth,
|
|
75
75
|
_props$placeholder = props.placeholder,
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
min-width: 120px;
|
|
4
4
|
height: 36px;
|
|
5
5
|
line-height: 36px;
|
|
6
|
-
background: #
|
|
6
|
+
background: #FFFFFF;
|
|
7
7
|
border-radius: 18px;
|
|
8
|
-
border: 1px solid #
|
|
8
|
+
border: 1px solid #E9ECF0;
|
|
9
9
|
padding: 8px 12px;
|
|
10
10
|
box-sizing: border-box;
|
|
11
11
|
cursor: pointer;
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
box-sizing: border-box;
|
|
28
28
|
font-size: 14px;
|
|
29
29
|
font-weight: 400;
|
|
30
|
-
color: #
|
|
30
|
+
color: #3F4755;
|
|
31
31
|
line-height: 20px;
|
|
32
32
|
vertical-align: top;
|
|
33
33
|
border: none;
|
|
@@ -29,7 +29,7 @@ var tenantId = BSGlobal && BSGlobal.tenantInfo.Id || 0;
|
|
|
29
29
|
var userId = BSGlobal && BSGlobal.loginUserInfo.Id || 0;
|
|
30
30
|
|
|
31
31
|
var requestDomain = function requestDomain() {
|
|
32
|
-
if (!window.location.hostname.match(/dev/)) return
|
|
32
|
+
if (!window.location.hostname.match(/dev/)) return "";
|
|
33
33
|
return "".concat(location.protocol, "//www.tita.gift");
|
|
34
34
|
};
|
|
35
35
|
|
|
@@ -44,16 +44,16 @@ var getDepartments = function getDepartments(_ref) {
|
|
|
44
44
|
isLoadNodes = _ref.isLoadNodes;
|
|
45
45
|
// 根据权限类型使用不同的objtype
|
|
46
46
|
var authTypeId;
|
|
47
|
-
if (auth && !authType) authType =
|
|
48
|
-
if (authType ==
|
|
49
|
-
if (authType ==
|
|
50
|
-
if (authType ==
|
|
47
|
+
if (auth && !authType) authType = "okr";
|
|
48
|
+
if (authType == "okr") authTypeId = "62";
|
|
49
|
+
if (authType == "performance") authTypeId = "31";
|
|
50
|
+
if (authType == "total") authTypeId = "0"; // 获取根节点
|
|
51
51
|
// 第一次获取根部门 nodeId == -1
|
|
52
52
|
|
|
53
53
|
var isGetRootNode = isGetRoot && !isLoadNodes;
|
|
54
54
|
var prevPath = "".concat(requestDomain(), "/api/v2/").concat(tenantId, "/").concat(userId, "/department/sub"); // 请求参数
|
|
55
55
|
|
|
56
|
-
var urlParams = "departmentId=".concat(nodeId, "&isGetUser=").concat(isGetUser).concat(isGetRootNode ?
|
|
56
|
+
var urlParams = "departmentId=".concat(nodeId, "&isGetUser=").concat(isGetUser).concat(isGetRootNode ? "&isRoot=true" : "");
|
|
57
57
|
return _axios["default"].get(auth ? "".concat(prevPath, "/depsAndUsersByPrivilege?").concat(urlParams, "&objtype=").concat(authTypeId) : "".concat(prevPath, "/depsAndUsers?").concat(urlParams)).then(function (departs) {
|
|
58
58
|
if (isGetRootNode) {
|
|
59
59
|
// 第一次获取根节点
|
|
@@ -67,7 +67,7 @@ var getDepartments = function getDepartments(_ref) {
|
|
|
67
67
|
for (var i = 0; i < departments.length; i++) {
|
|
68
68
|
var it = departments[i];
|
|
69
69
|
|
|
70
|
-
if (it.id ==
|
|
70
|
+
if (it.id == "-1") {
|
|
71
71
|
hasGetRootNode = true;
|
|
72
72
|
firstRootNodes.push(it);
|
|
73
73
|
break;
|
|
@@ -89,7 +89,7 @@ var getDepartments = function getDepartments(_ref) {
|
|
|
89
89
|
|
|
90
90
|
var getGourps = function getGourps(_ref2) {
|
|
91
91
|
var _ref2$sourceFrom = _ref2.sourceFrom,
|
|
92
|
-
sourceFrom = _ref2$sourceFrom === void 0 ?
|
|
92
|
+
sourceFrom = _ref2$sourceFrom === void 0 ? "" : _ref2$sourceFrom,
|
|
93
93
|
getUsedGroups = _ref2.getUsedGroups;
|
|
94
94
|
|
|
95
95
|
// 获取有OKR的群组
|
|
@@ -99,7 +99,7 @@ var getGourps = function getGourps(_ref2) {
|
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
return _axios["default"].get("".concat(requestDomain(), "/api/v1/").concat(tenantId, "/").concat(userId, "/Group/getAll").concat(sourceFrom ? "?sourceFrom=".concat(sourceFrom) :
|
|
102
|
+
return _axios["default"].get("".concat(requestDomain(), "/api/v1/").concat(tenantId, "/").concat(userId, "/Group/getAll").concat(sourceFrom ? "?sourceFrom=".concat(sourceFrom) : "")).then(function (groups) {
|
|
103
103
|
return groups.data;
|
|
104
104
|
});
|
|
105
105
|
};
|
|
@@ -141,10 +141,10 @@ var getSubordinateData = function getSubordinateData(_ref3) {
|
|
|
141
141
|
var auth = _ref3.auth,
|
|
142
142
|
authType = _ref3.authType;
|
|
143
143
|
var authTypeId;
|
|
144
|
-
if (auth && !authType) authType =
|
|
145
|
-
if (authType ==
|
|
146
|
-
if (authType ==
|
|
147
|
-
if (authType ==
|
|
144
|
+
if (auth && !authType) authType = "okr";
|
|
145
|
+
if (authType == "okr") authTypeId = "62";
|
|
146
|
+
if (authType == "performance") authTypeId = "31";
|
|
147
|
+
if (authType == "total") authTypeId = "0";
|
|
148
148
|
return _axios["default"].get("".concat(requestDomain(), "/api/v2/").concat(tenantId, "/").concat(userId, "/org/subordinate?to_userId=").concat(userId)).then(function (res) {
|
|
149
149
|
// const { users = [] } = res.data.Data;
|
|
150
150
|
var data = res.data.Data;
|
package/lib/index.js
CHANGED
|
@@ -9,12 +9,6 @@ Object.defineProperty(exports, "Aha2021Page", {
|
|
|
9
9
|
return _aha["default"];
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
Object.defineProperty(exports, "AutoSave", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function get() {
|
|
15
|
-
return _autoSave["default"];
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
12
|
Object.defineProperty(exports, "Avatar", {
|
|
19
13
|
enumerable: true,
|
|
20
14
|
get: function get() {
|
|
@@ -51,12 +45,6 @@ Object.defineProperty(exports, "Checkbox", {
|
|
|
51
45
|
return _checkbox["default"];
|
|
52
46
|
}
|
|
53
47
|
});
|
|
54
|
-
Object.defineProperty(exports, "ColorDatePicker", {
|
|
55
|
-
enumerable: true,
|
|
56
|
-
get: function get() {
|
|
57
|
-
return _colorDatePicker["default"];
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
48
|
Object.defineProperty(exports, "Communication", {
|
|
61
49
|
enumerable: true,
|
|
62
50
|
get: function get() {
|
|
@@ -207,12 +195,6 @@ Object.defineProperty(exports, "GroupManagementPage", {
|
|
|
207
195
|
return _groupManagement["default"];
|
|
208
196
|
}
|
|
209
197
|
});
|
|
210
|
-
Object.defineProperty(exports, "GuideTip", {
|
|
211
|
-
enumerable: true,
|
|
212
|
-
get: function get() {
|
|
213
|
-
return _guideTip["default"];
|
|
214
|
-
}
|
|
215
|
-
});
|
|
216
198
|
Object.defineProperty(exports, "HelpCard", {
|
|
217
199
|
enumerable: true,
|
|
218
200
|
get: function get() {
|
|
@@ -279,12 +261,6 @@ Object.defineProperty(exports, "NavTop", {
|
|
|
279
261
|
return _navTop["default"];
|
|
280
262
|
}
|
|
281
263
|
});
|
|
282
|
-
Object.defineProperty(exports, "NewConfidence", {
|
|
283
|
-
enumerable: true,
|
|
284
|
-
get: function get() {
|
|
285
|
-
return _newConfidence["default"];
|
|
286
|
-
}
|
|
287
|
-
});
|
|
288
264
|
Object.defineProperty(exports, "NewOkrListPage", {
|
|
289
265
|
enumerable: true,
|
|
290
266
|
get: function get() {
|
|
@@ -429,12 +405,6 @@ Object.defineProperty(exports, "Progress", {
|
|
|
429
405
|
return _progress["default"];
|
|
430
406
|
}
|
|
431
407
|
});
|
|
432
|
-
Object.defineProperty(exports, "PromiseConfirm", {
|
|
433
|
-
enumerable: true,
|
|
434
|
-
get: function get() {
|
|
435
|
-
return _promiseConfirm["default"];
|
|
436
|
-
}
|
|
437
|
-
});
|
|
438
408
|
Object.defineProperty(exports, "PublishDynamicModal", {
|
|
439
409
|
enumerable: true,
|
|
440
410
|
get: function get() {
|
|
@@ -459,18 +429,6 @@ Object.defineProperty(exports, "RichEditor", {
|
|
|
459
429
|
return _richEditor["default"];
|
|
460
430
|
}
|
|
461
431
|
});
|
|
462
|
-
Object.defineProperty(exports, "RichEditorAt", {
|
|
463
|
-
enumerable: true,
|
|
464
|
-
get: function get() {
|
|
465
|
-
return _richEditorAt["default"];
|
|
466
|
-
}
|
|
467
|
-
});
|
|
468
|
-
Object.defineProperty(exports, "RichEditorUpload", {
|
|
469
|
-
enumerable: true,
|
|
470
|
-
get: function get() {
|
|
471
|
-
return _richEditorUpload["default"];
|
|
472
|
-
}
|
|
473
|
-
});
|
|
474
432
|
Object.defineProperty(exports, "ScrollContainer", {
|
|
475
433
|
enumerable: true,
|
|
476
434
|
get: function get() {
|
|
@@ -645,12 +603,6 @@ Object.defineProperty(exports, "WordCloud", {
|
|
|
645
603
|
return _wordCloud["default"];
|
|
646
604
|
}
|
|
647
605
|
});
|
|
648
|
-
Object.defineProperty(exports, "WriteSummaryModal", {
|
|
649
|
-
enumerable: true,
|
|
650
|
-
get: function get() {
|
|
651
|
-
return _writeSummaryModal["default"];
|
|
652
|
-
}
|
|
653
|
-
});
|
|
654
606
|
Object.defineProperty(exports, "drawerManager", {
|
|
655
607
|
enumerable: true,
|
|
656
608
|
get: function get() {
|
|
@@ -752,8 +704,6 @@ var _gridLayout = _interopRequireDefault(require("./components/grid-layout"));
|
|
|
752
704
|
|
|
753
705
|
var _groupManagement = _interopRequireDefault(require("./pages/group-management"));
|
|
754
706
|
|
|
755
|
-
var _guideTip = _interopRequireDefault(require("./components/guide-tip"));
|
|
756
|
-
|
|
757
707
|
var _home = _interopRequireDefault(require("./pages/home"));
|
|
758
708
|
|
|
759
709
|
var _homePageDataList = _interopRequireDefault(require("./pages/home-page-data-list"));
|
|
@@ -834,10 +784,6 @@ var _radio = _interopRequireDefault(require("./components/radio"));
|
|
|
834
784
|
|
|
835
785
|
var _richEditor = _interopRequireDefault(require("./components/rich-editor"));
|
|
836
786
|
|
|
837
|
-
var _richEditorUpload = _interopRequireDefault(require("./components/rich-editor-upload"));
|
|
838
|
-
|
|
839
|
-
var _richEditorAt = _interopRequireDefault(require("./components/rich-editor-at"));
|
|
840
|
-
|
|
841
787
|
var _request = _interopRequireDefault(require("./utils/request"));
|
|
842
788
|
|
|
843
789
|
var _searchDropdown = _interopRequireDefault(require("./components/search-dropdown"));
|
|
@@ -900,14 +846,4 @@ var _weeklyReport = _interopRequireDefault(require("./components/weekly-report")
|
|
|
900
846
|
|
|
901
847
|
var _wechatBtn = _interopRequireDefault(require("./components/wechat-btn"));
|
|
902
848
|
|
|
903
|
-
var _autoSave = _interopRequireDefault(require("./components/auto-save"));
|
|
904
|
-
|
|
905
|
-
var _newConfidence = _interopRequireDefault(require("./components/new-confidence"));
|
|
906
|
-
|
|
907
|
-
var _colorDatePicker = _interopRequireDefault(require("./components/color-date-picker"));
|
|
908
|
-
|
|
909
|
-
var _writeSummaryModal = _interopRequireDefault(require("./components/write-summary-modal"));
|
|
910
|
-
|
|
911
|
-
var _promiseConfirm = _interopRequireDefault(require("./components/promise-confirm"));
|
|
912
|
-
|
|
913
849
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|