@titaui/pc 1.6.12 → 1.6.16
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/index.js +1 -1
- package/lib/components/button/icon-btn/index.css +2 -0
- package/lib/components/button/index.js +1 -1
- package/lib/components/button/rect-btn/index.css +21 -0
- package/lib/components/button/rect-btn/index.js +8 -8
- package/lib/components/button/text-btn/index.css +33 -0
- package/lib/components/button/text-btn/index.js +52 -2
- package/lib/components/change-okr/styledComponents.js +1 -1
- package/lib/components/communication/style.js +1 -1
- package/lib/components/create-okr/constant.js +1 -1
- package/lib/components/create-okr/createSuccessCmp.js +6 -2
- package/lib/components/create-okr/fields/index.js +1 -1
- package/lib/components/create-okr/index.js +16 -1
- package/lib/components/create-okr/request-api.js +1 -1
- package/lib/components/create-okr/style.js +1 -1
- package/lib/components/create-okr/utils/helper.js +1 -1
- package/lib/components/delete-confirm-pop/style.js +1 -1
- package/lib/components/dialog/index.css +1 -0
- package/lib/components/dropdown-layer/index.js +1 -1
- package/lib/components/dynamic/components/title/index.css +2 -2
- package/lib/components/dynamic/constant.js +3 -2
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/img/dynamic-milestone.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +7 -1
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +4 -21
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +4 -0
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +4 -2
- package/lib/components/dynamic/dynamic-item/dynamic-project/img/dynamic-project.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +7 -1
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +4 -7
- package/lib/components/dynamic/dynamic-item/dynamic-task/constant.js +1 -35
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/dynamic-task.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +7 -1
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +17 -7
- package/lib/components/dynamic/dynamic-like-ranking/index.css +2 -3
- package/lib/components/dynamic/dynamic-like-ranking/index.js +11 -6
- package/lib/components/dynamic/dynamic-liking/index.css +1 -2
- package/lib/components/dynamic/dynamic-liking/item.js +2 -20
- package/lib/components/dynamic/dynamic-list/index.js +7 -1
- package/lib/components/dynamic/dynamic-topping/index.css +1 -1
- package/lib/components/dynamic/dynamic-topping/request-api.js +1 -1
- package/lib/components/dynamic/dynamic.js +7 -4
- package/lib/components/dynamic/export-module/index.js +1 -1
- package/lib/components/dynamic/index.js +1 -1
- package/lib/components/dynamic/new-ui.css +206 -0
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.js +2 -2
- package/lib/components/dynamic/quick-operation/components/create-okr/index.js +2 -2
- package/lib/components/dynamic/quick-operation/components/create-share/index.js +2 -2
- package/lib/components/dynamic/quick-operation/components/create-task/index.js +2 -2
- package/lib/components/dynamic/quick-operation/img/okr.png +0 -0
- package/lib/components/dynamic/quick-operation/img/send-announcement.png +0 -0
- package/lib/components/dynamic/quick-operation/img/send-share.png +0 -0
- package/lib/components/dynamic/quick-operation/img/task.png +0 -0
- package/lib/components/dynamic/request-api.js +1 -1
- package/lib/components/dynamic/util.js +2 -2
- package/lib/components/eReport/eReportLists/style.js +1 -1
- package/lib/components/eReport/eReportShare/style.js +1 -1
- package/lib/components/eReport/eReportShare/toast/style.js +1 -1
- package/lib/components/edit-kr-wight/style/index.js +1 -1
- package/lib/components/emotionsSelector/style.js +1 -1
- package/lib/components/file-list/components/single-file/index.css +2 -2
- package/lib/components/file-list/components/single-file/index.js +1 -1
- package/lib/components/file-list/index.js +1 -1
- package/lib/components/form/form-fields/radios/index.css +5 -0
- package/lib/components/form/form-fields/radios/index.js +34 -5
- package/lib/components/form/index.js +1 -1
- package/lib/components/grid-page/commen-components/index.js +4 -4
- package/lib/components/grid-page/commen-components/scroll-tips.js +1 -1
- package/lib/components/grid-page/util/network.js +1 -1
- package/lib/components/help-card/index.css +17 -17
- package/lib/components/help-card/index.js +35 -31
- package/lib/components/help-card/request-api.js +2 -2
- package/lib/components/img-viewer/index.css +4 -0
- package/lib/components/img-viewer/index.js +2 -1
- package/lib/components/mblog/common/index.js +3 -3
- package/lib/components/mblog/style.js +1 -1
- package/lib/components/menus/components/drag-resize/index.css +4 -4
- package/lib/components/menus/components/drag-resize/index.js +35 -30
- package/lib/components/menus/components/flip-menu-card/index.css +7 -3
- package/lib/components/menus/components/flip-menu-card/index.js +42 -30
- package/lib/components/menus/components/menu-card/index.js +1 -6
- package/lib/components/menus/components/menu-close-btn/index.css +2 -1
- package/lib/components/menus/components/menu-tree/images/appraisal-menu/KH-help.svg +10 -0
- package/lib/components/menus/components/menu-tree/images/appraisal-menu/mypingjia.svg +10 -0
- package/lib/components/menus/components/menu-tree/images/loading-node.gif +0 -0
- package/lib/components/menus/components/menu-tree/images/okr-menu/cases.svg +9 -0
- package/lib/components/menus/components/menu-tree/images/okr-menu/{rw-zx.svg → panel.svg} +0 -0
- package/lib/components/menus/components/menu-tree/index.js +5 -4
- package/lib/components/menus/components/menu-tree/tree-node/avatar/index.css +49 -0
- package/lib/components/menus/components/menu-tree/tree-node/avatar/index.js +72 -0
- package/lib/components/menus/components/menu-tree/tree-node/company-all-node.js +2 -1
- package/lib/components/menus/components/menu-tree/tree-node/compony-node/index.js +5 -2
- package/lib/components/menus/components/menu-tree/tree-node/depart-node/index.js +9 -4
- package/lib/components/menus/components/menu-tree/tree-node/follower-node/index.css +47 -0
- package/lib/components/menus/components/menu-tree/tree-node/follower-node/index.js +67 -0
- package/lib/components/menus/components/menu-tree/tree-node/group-name-node.js +2 -1
- package/lib/components/menus/components/menu-tree/tree-node/index.css +126 -13
- package/lib/components/menus/components/menu-tree/tree-node/index.js +19 -0
- package/lib/components/menus/components/menu-tree/tree-node/loading-node.js +27 -0
- package/lib/components/menus/components/menu-tree/tree-node/menu-item-node.js +2 -1
- package/lib/components/menus/components/menu-tree/tree-node/menu-node.js +2 -1
- package/lib/components/menus/components/menu-tree/tree-node/no-follower-node.js +25 -0
- package/lib/components/menus/components/menu-tree/tree-node/user-concern-node.js +9 -4
- package/lib/components/menus/components/menu-tree/tree-node/user-node/index.css +3 -1
- package/lib/components/menus/components/menu-tree/tree-node/user-node/index.js +12 -42
- package/lib/components/menus/export-modules/appraisal-menus/datas.js +58 -19
- package/lib/components/menus/export-modules/depart-menus/index.js +34 -7
- package/lib/components/menus/export-modules/okr-menus/datas.js +109 -4
- package/lib/components/menus/export-modules/okr-menus/index.css +0 -1
- package/lib/components/menus/export-modules/okr-menus/index.js +73 -20
- package/lib/components/menus/export-modules/subordinate-menus/index.js +12 -4
- package/lib/components/menus/index.js +1 -1
- package/lib/components/menus/request-apis.js +22 -5
- package/lib/components/nav-top/components/menu/index.css +1 -0
- package/lib/components/nav-top/components/menu/index.js +7 -5
- package/lib/components/nav-top/components/user-message/components/empty/index.js +1 -1
- package/lib/components/nav-top/components/user-message/components/inform/index.css +29 -6
- package/lib/components/nav-top/components/user-message/components/inform/index.js +116 -111
- package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +133 -0
- package/lib/components/nav-top/components/user-message/components/red-pack/index.css +40 -0
- package/lib/components/nav-top/components/user-message/components/red-pack/index.js +105 -0
- package/lib/components/nav-top/components/user-message/components/red-pack/request-api.js +14 -0
- package/lib/components/nav-top/components/user-message/components/remind/index.css +26 -8
- package/lib/components/nav-top/components/user-message/components/remind/index.js +67 -60
- package/lib/components/nav-top/components/user-message/components/remind/remind-item.js +71 -0
- package/lib/components/nav-top/components/user-message/components/reply/index.css +28 -6
- package/lib/components/nav-top/components/user-message/components/reply/index.js +118 -63
- package/lib/components/nav-top/components/user-message/components/reply/reply-item.js +75 -0
- package/lib/components/nav-top/components/user-message/components/tab-title/index.js +5 -4
- package/lib/components/nav-top/components/user-message/components/todos/index.css +26 -12
- package/lib/components/nav-top/components/user-message/components/todos/index.js +118 -59
- package/lib/components/nav-top/components/user-message/components/todos/todo-item.js +70 -0
- package/lib/components/nav-top/components/user-message/constant.js +2 -19
- package/lib/components/nav-top/components/user-message/images/loading.gif +0 -0
- package/lib/components/nav-top/components/user-message/images/msg-reward.png +0 -0
- package/lib/components/nav-top/components/user-message/index.css +41 -4
- package/lib/components/nav-top/components/user-message/index.js +89 -100
- package/lib/components/nav-top/components/user-message/msg/index.css +5 -30
- package/lib/components/nav-top/components/user-message/msg/index.js +28 -22
- package/lib/components/nav-top/components/user-message/utils.js +31 -0
- package/lib/components/nav-top/components/user-own-menu/index.css +2 -1
- package/lib/components/nav-top/components/user-own-menu/index.js +5 -7
- package/lib/components/nav-top/components/user-own-menu/utils.js +63 -0
- package/lib/components/nav-top/constant.js +2 -10
- package/lib/components/nav-top/index.css +55 -0
- package/lib/components/nav-top/index.js +14 -13
- package/lib/components/nav-top/request.apis.js +50 -0
- package/lib/components/nav-top/utils.js +10 -70
- package/lib/components/okr-detail/auth.js +1 -1
- package/lib/components/okr-detail/base-info/util.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/constant.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/style.js +1 -1
- package/lib/components/okr-detail/context.js +1 -1
- package/lib/components/okr-detail/detail-header/actions.js +2 -2
- package/lib/components/okr-detail/detail-header/delete-confirm/style.js +1 -1
- package/lib/components/okr-detail/detail-header/enums.js +1 -1
- package/lib/components/okr-detail/e-list/constant.js +1 -1
- package/lib/components/okr-detail/e-list/util.js +1 -1
- package/lib/components/okr-detail/okr-list/create-kr-item/style.js +1 -1
- package/lib/components/okr-detail/okr-list/drag-order-kr.js +1 -1
- package/lib/components/okr-detail/okr-list/index.js +2 -1
- package/lib/components/okr-detail/request-apis.js +1 -1
- package/lib/components/okr-detail/schedule/util.js +1 -1
- package/lib/components/okr-filter-drawer/filter-button.js +1 -0
- package/lib/components/okr-filter-drawer/filter-form.js +189 -0
- package/lib/components/okr-filter-drawer/index.css +45 -0
- package/lib/components/okr-filter-drawer/index.js +54 -0
- package/lib/components/okr-flow/index.js +1 -1
- package/lib/components/okr-flow/mini-map/utils.js +1 -1
- package/lib/components/okr-flow/open-data/index.js +1 -1
- package/lib/components/okr-flow/request-apis.js +1 -1
- package/lib/components/okr-flow/utils/config.js +1 -1
- package/lib/components/okr-flow/utils/index.js +1 -1
- package/lib/components/okr-flow/utils/tree-handler.js +1 -1
- package/lib/components/okr-progress/request-apis.js +1 -1
- package/lib/components/okr-progress/util.js +1 -1
- package/lib/components/okr-progress-detail/utils.js +1 -1
- package/lib/components/okr-progress-modal/helper.js +1 -1
- package/lib/components/okr-progress-modal/style.js +1 -1
- package/lib/components/okr-progress-modal/textarea/style.js +1 -1
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/style.js +1 -1
- package/lib/components/okr-review/ReviewPop/style.js +1 -1
- package/lib/components/okr-review/components/ReviewItem/style.js +1 -1
- package/lib/components/okr-review/components/confirm-pop/style.js +1 -1
- package/lib/components/okr-review/style.js +1 -1
- package/lib/components/okr-share/common-painter/utils.js +1 -1
- package/lib/components/okr-share/pink-card/images.js +1 -1
- package/lib/components/okr-share/request-apis.js +1 -1
- package/lib/components/okrcase-library/index.css +1 -1
- package/lib/components/okrcase-library/index.js +6 -1
- package/lib/components/okrcase-library/new-ui.css +52 -0
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +1 -1
- package/lib/components/okrcase-library/server/network.js +1 -1
- package/lib/components/open-data-painter/index.js +1 -1
- package/lib/components/operation-records/style.js +1 -1
- package/lib/components/pagination/index.css +6 -12
- package/lib/components/period-selector/common.js +2 -2
- package/lib/components/period-selector/components/button/style.js +1 -1
- package/lib/components/period-selector/components/selector/style.js +1 -1
- package/lib/components/period-selector/helper/index.js +1 -1
- package/lib/components/period-selector/mockData.js +1 -1
- package/lib/components/period-selector/style.js +1 -1
- package/lib/components/photo-card/components/card/index.css +83 -100
- package/lib/components/photo-card/components/card/index.js +119 -63
- package/lib/components/photo-card/data.js +5 -5
- package/lib/components/photo-card/images/assistant.svg +40 -0
- package/lib/components/photo-card/images/back-manager.svg +40 -0
- package/lib/components/photo-card/images/boss.svg +38 -0
- package/lib/components/photo-card/images/depart-leader.svg +40 -0
- package/lib/components/photo-card/images/super-manager.svg +40 -0
- package/lib/components/photo-card/index.css +15 -14
- package/lib/components/photo-card/index.js +59 -15
- package/lib/components/pop-down-notification/components/SuccessRender.js +1 -1
- package/lib/components/pop-down-notification/style/index.js +1 -1
- package/lib/components/praise-record/style.js +1 -1
- package/lib/components/progress/index.js +1 -1
- package/lib/components/publish-dynamic-modal/requist-api.js +1 -1
- package/lib/components/radio/radio.js +1 -1
- package/lib/components/tabs/index.js +1 -1
- package/lib/components/task-relation/helper.js +1 -1
- package/lib/components/task-relation/request-api.js +1 -1
- package/lib/components/tita-chart/index.js +4 -4
- package/lib/components/tita-chart/util/index.js +12 -12
- package/lib/components/tita-chart/util/utils.js +1 -1
- package/lib/components/tooltip/index.js +1 -1
- package/lib/components/tree/index.js +1 -3
- package/lib/components/update-modal/img/background.png +0 -0
- package/lib/components/update-modal/img/rocket.png +0 -0
- package/lib/components/update-modal/index.css +80 -0
- package/lib/components/update-modal/index.js +83 -0
- package/lib/components/update-modal/request-api.js +17 -0
- package/lib/components/upload/style.js +1 -1
- package/lib/components/upload/util.js +1 -1
- package/lib/components/upvote/request-apis.js +1 -1
- package/lib/components/user-selector/index.js +1 -1
- package/lib/components/user-selector/request-apis.js +1 -1
- package/lib/components/user-selector/utils.js +1 -1
- package/lib/components/version-change-modal/request-api.js +1 -1
- package/lib/components/viewer/index.js +1 -1
- package/lib/components-v1/avatar/styles.js +1 -1
- package/lib/components-v1/buttonv2/style/style.js +1 -1
- package/lib/components-v1/input/Input.js +1 -1
- package/lib/components-v1/input/InputNumber.js +1 -1
- package/lib/components-v1/input/style/index.js +1 -1
- package/lib/components-v1/popConfirm/style.js +1 -1
- package/lib/components-v1/tabs/style.js +1 -1
- package/lib/components-v1/textarea/style.js +1 -1
- package/lib/components-v1/userSelector/UserSelectorPop.js +1 -1
- package/lib/components-v1/userSelector/style.js +1 -1
- package/lib/hooks/useLocalStorage.js +37 -0
- package/lib/index.js +18 -4
- package/lib/pages/aha2021/index.css +25 -1
- package/lib/pages/aha2021/index.js +10 -4
- package/lib/pages/group-management/components/PopDownNotification/components/SuccessRender.js +1 -1
- package/lib/pages/group-management/components/PopDownNotification/style/index.js +1 -1
- package/lib/pages/group-management/components/openData/index.js +1 -1
- package/lib/pages/group-management/groupInterface.js +10 -10
- package/lib/pages/home-page/components/data-list/table/columns/index.js +1 -1
- package/lib/pages/new-okr-list/context.js +14 -0
- package/lib/pages/new-okr-list/header/comments.js +104 -0
- package/lib/pages/new-okr-list/header/create-okr.js +61 -0
- package/lib/pages/new-okr-list/header/depart-title.js +59 -0
- package/lib/pages/new-okr-list/header/filter.js +95 -0
- package/lib/pages/new-okr-list/header/index.css +118 -0
- package/lib/pages/new-okr-list/header/index.js +133 -0
- package/lib/pages/new-okr-list/header/relation-title.js +28 -0
- package/lib/pages/new-okr-list/header/user-title.js +26 -0
- package/lib/pages/new-okr-list/index.css +10 -0
- package/lib/pages/new-okr-list/index.js +208 -0
- package/lib/pages/new-okr-list/interface.js +5 -0
- package/lib/pages/new-okr-list/keyword-search/index.css +71 -0
- package/lib/pages/new-okr-list/keyword-search/index.js +106 -0
- package/lib/pages/new-okr-list/list/index.css +0 -0
- package/lib/pages/new-okr-list/list/index.js +47 -0
- package/lib/pages/new-okr-list/precls.js +8 -0
- package/lib/pages/new-okr-list/request-api.js +158 -0
- package/lib/pages/new-okr-list/theme.css +7 -0
- package/lib/pages/okr-map/hooks/useStorage.js +1 -1
- package/lib/pages/okr-map/open-data/index.js +1 -1
- package/lib/pages/okr-map/request-apis.js +1 -1
- package/lib/pages/okr-map/utils.js +2 -1
- package/lib/utils/auth.js +1 -1
- package/lib/utils/bs-global.js +1 -1
- package/lib/utils/format-time.js +1 -1
- package/lib/utils/helpers.js +1 -1
- package/lib/utils/local-storage.js +40 -0
- package/lib/utils/mblog.js +1 -1
- package/lib/utils/open-data.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/request-v1.js +2 -2
- package/lib/utils/request.js +1 -1
- package/lib/utils/roundWeight.js +2 -2
- package/lib/utils/tools.js +4 -3
- package/package.json +3 -2
- package/lib/components/dynamic/dynamic-item/components/icon/index.css +0 -10
- package/lib/components/dynamic/dynamic-item/components/icon/index.js +0 -35
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/img/milestone.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/img/project.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-cancel.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-delay.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-done.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-pause.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-progress.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-unaccept.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-unstart.png +0 -0
- package/lib/components/dynamic/quick-operation/img/create-announcement.png +0 -0
- package/lib/components/dynamic/quick-operation/img/create-okr.png +0 -0
- package/lib/components/dynamic/quick-operation/img/create-share.png +0 -0
- package/lib/components/dynamic/quick-operation/img/create-task.png +0 -0
- package/lib/components/nav-top/mock.js +0 -36
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports["default"] = exports.
|
|
6
|
+
exports["default"] = exports.TextAvatar = exports.NumAvatar = exports.NameAvatar = exports.IconAvatar = exports.DefaultAvatar = void 0;
|
|
7
7
|
|
|
8
8
|
var _default2 = _interopRequireDefault(require("./default"));
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports["default"] = exports.TextBtn = exports.RectBtn = exports.IconBtn = exports.Default = void 0;
|
|
7
7
|
|
|
8
8
|
var _defaultButton = _interopRequireDefault(require("./default-button"));
|
|
9
9
|
|
|
@@ -54,6 +54,27 @@
|
|
|
54
54
|
background: #5c8eff;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
+
.titaui-rect-btn--cancel {
|
|
58
|
+
color: #6F7886;
|
|
59
|
+
border: 1px solid #DFE3EA;
|
|
60
|
+
background: #FFFFFF;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.titaui-rect-btn--cancel:hover {
|
|
64
|
+
color: #2879FF;
|
|
65
|
+
border: 1px solid #2879FF;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.titaui-rect-btn--delete {
|
|
69
|
+
background: #FFFFFF;
|
|
70
|
+
color: #F05E5E;
|
|
71
|
+
border: 1px solid #F05E5E;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.titaui-rect-btn--delete:hover {
|
|
75
|
+
background: rgba(240, 94, 94, 0.1);
|
|
76
|
+
}
|
|
77
|
+
|
|
57
78
|
.titaui-rect-btn__icon {
|
|
58
79
|
margin-right: 4px;
|
|
59
80
|
vertical-align: middle;
|
|
@@ -15,26 +15,26 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
15
15
|
|
|
16
16
|
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; }
|
|
17
17
|
|
|
18
|
-
var precls =
|
|
18
|
+
var precls = "titaui-rect-btn";
|
|
19
19
|
|
|
20
20
|
var RectBtn = function RectBtn(props) {
|
|
21
21
|
var _props$type = props.type,
|
|
22
|
-
type = _props$type === void 0 ?
|
|
22
|
+
type = _props$type === void 0 ? "default" : _props$type,
|
|
23
23
|
_props$icon = props.icon,
|
|
24
|
-
icon = _props$icon === void 0 ?
|
|
24
|
+
icon = _props$icon === void 0 ? "" : _props$icon,
|
|
25
25
|
_props$size = props.size,
|
|
26
|
-
size = _props$size === void 0 ?
|
|
26
|
+
size = _props$size === void 0 ? "normal" : _props$size,
|
|
27
27
|
_props$text = props.text,
|
|
28
|
-
text = _props$text === void 0 ?
|
|
28
|
+
text = _props$text === void 0 ? "确定" : _props$text,
|
|
29
29
|
_props$onClick = props.onClick,
|
|
30
30
|
onClick = _props$onClick === void 0 ? function () {} : _props$onClick,
|
|
31
31
|
_props$className = props.className,
|
|
32
|
-
className = _props$className === void 0 ?
|
|
32
|
+
className = _props$className === void 0 ? "" : _props$className,
|
|
33
33
|
_props$disabled = props.disabled,
|
|
34
34
|
disabled = _props$disabled === void 0 ? false : _props$disabled;
|
|
35
35
|
|
|
36
36
|
var renderIcon = function renderIcon() {
|
|
37
|
-
if (typeof icon ==
|
|
37
|
+
if (typeof icon == "string") {
|
|
38
38
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
39
39
|
className: "".concat(precls, "__icon")
|
|
40
40
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -55,7 +55,7 @@ var RectBtn = function RectBtn(props) {
|
|
|
55
55
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
56
56
|
className: (0, _classnames["default"])(precls, "".concat(precls, "--").concat(type), "".concat(precls, "--").concat(size), _defineProperty({}, "".concat(precls, "--disabled"), disabled), className),
|
|
57
57
|
onClick: onClickHandler
|
|
58
|
-
}, icon && renderIcon(), text);
|
|
58
|
+
}, icon && renderIcon(), props.children || text);
|
|
59
59
|
};
|
|
60
60
|
|
|
61
61
|
var _default = RectBtn;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
.titaui-text-btn {
|
|
2
|
+
cursor: pointer;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.titaui-text-btn__icon {
|
|
6
|
+
margin-right: 4px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.titaui-text-btn--default {
|
|
10
|
+
color: #3F4755;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.titaui-text-btn--default:hover {
|
|
14
|
+
color: #2879FF;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.titaui-text-btn--primary {
|
|
18
|
+
color: #2879FF;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.titaui-text-btn--primary:hover {
|
|
22
|
+
color: #5C8EFF;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.titaui-text-btn--disabled {
|
|
26
|
+
color: #A4ACB9;
|
|
27
|
+
cursor: not-allowed;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.titaui-text-btn--disabled:hover {
|
|
31
|
+
color: #A4ACB9;
|
|
32
|
+
background: unset;
|
|
33
|
+
}
|
|
@@ -5,10 +5,60 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
+
|
|
8
12
|
require("./index.css");
|
|
9
13
|
|
|
10
|
-
|
|
11
|
-
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
+
|
|
16
|
+
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; }
|
|
17
|
+
|
|
18
|
+
var precls = 'titaui-text-btn';
|
|
19
|
+
|
|
20
|
+
var TextBtn = function TextBtn(props) {
|
|
21
|
+
var _props$type = props.type,
|
|
22
|
+
type = _props$type === void 0 ? 'default' : _props$type,
|
|
23
|
+
_props$icon = props.icon,
|
|
24
|
+
icon = _props$icon === void 0 ? '' : _props$icon,
|
|
25
|
+
_props$size = props.size,
|
|
26
|
+
size = _props$size === void 0 ? 14 : _props$size,
|
|
27
|
+
_props$text = props.text,
|
|
28
|
+
text = _props$text === void 0 ? '确定' : _props$text,
|
|
29
|
+
_props$onClick = props.onClick,
|
|
30
|
+
onClick = _props$onClick === void 0 ? function () {} : _props$onClick,
|
|
31
|
+
_props$className = props.className,
|
|
32
|
+
className = _props$className === void 0 ? '' : _props$className,
|
|
33
|
+
_props$disabled = props.disabled,
|
|
34
|
+
disabled = _props$disabled === void 0 ? false : _props$disabled;
|
|
35
|
+
|
|
36
|
+
var renderIcon = function renderIcon() {
|
|
37
|
+
if (typeof icon == 'string') {
|
|
38
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
39
|
+
className: "".concat(precls, "__icon")
|
|
40
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
41
|
+
className: icon
|
|
42
|
+
}));
|
|
43
|
+
} else {
|
|
44
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
45
|
+
className: "".concat(precls, "__icon")
|
|
46
|
+
}, icon);
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
var onClickHandler = function onClickHandler() {
|
|
51
|
+
if (disabled) return;
|
|
52
|
+
onClick && onClick();
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
56
|
+
className: (0, _classnames["default"])(precls, "".concat(precls, "--").concat(type), _defineProperty({}, "".concat(precls, "--disabled"), disabled), className),
|
|
57
|
+
onClick: onClickHandler,
|
|
58
|
+
style: {
|
|
59
|
+
fontSize: "".concat(size, "px")
|
|
60
|
+
}
|
|
61
|
+
}, icon && renderIcon(), text);
|
|
12
62
|
};
|
|
13
63
|
|
|
14
64
|
var _default = TextBtn;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.Wrapper = exports.WorkNameWrapper = exports.UserSelectorWrapper = exports.Tag = exports.Separator = exports.SearchWrapper = exports.Radio = exports.ProgressText = exports.PricipleName = exports.OptionItem = exports.OkrName = exports.NoMore = exports.LoadMore = exports.List = exports.KrWeightVert = exports.KrWeight = exports.KrTag = exports.KrItemWrapper = exports.ItemWrapper = exports.ItemTop = exports.ItemObjectiveContainer = exports.ItemKrContainer = exports.ItemBottom = exports.Header = exports.Footer = exports.FilterTop = exports.FilterOptionsWrapper = exports.FilterLeftWrapper = exports.FilterBottom = exports.Filter = exports.ButtonGroup = exports.Button = exports.Body = void 0;
|
|
7
7
|
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.ReplyUser = exports.ReplyToUser = exports.ConfirmWrapper = exports.ConfirmText = exports.ConfirmBtnGroup = exports.CommunicationWrapper = exports.CommunicationRecordTotal = exports.CommunicationPraiseTotal = exports.CommunicationItem = exports.CommunicationDetail = exports.CommunicationContent = exports.CommunicationAttachmentContainer = exports.CommunicationActionbar = exports.ButtonConfirm = exports.ButtonCancel = exports.AttachmentItemWrapper = exports.AttachmentItemName = exports.AttachmentItemIcon = exports.AttachmentAction = exports.ActionbarList = exports.ActionbarItem = void 0;
|
|
7
7
|
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.OExample = exports.ODesc = exports.OCheckTarget = exports.KrExample = exports.KrDesc = exports.KrCheckTarget = exports.CreateSuccessTips = void 0;
|
|
7
7
|
var ODesc = ["O = 动词+你要做什么/渴望做什么+为了改变什么"];
|
|
8
8
|
exports.ODesc = ODesc;
|
|
9
9
|
var OExample = ["提高我们年度用户大会的出席率和参与度,为了提高客户的续费率"];
|
|
@@ -55,6 +55,7 @@ var CreateSuccessCmp = function CreateSuccessCmp(_ref) {
|
|
|
55
55
|
var createdSuccessInfo = _ref.createdSuccessInfo,
|
|
56
56
|
isDownload = _ref.isDownload,
|
|
57
57
|
onCloseModel = _ref.onCloseModel,
|
|
58
|
+
onShowDetail = _ref.onShowDetail,
|
|
58
59
|
tipIndex = _ref.tipIndex,
|
|
59
60
|
downLoadRef = _ref.downLoadRef;
|
|
60
61
|
|
|
@@ -64,7 +65,10 @@ var CreateSuccessCmp = function CreateSuccessCmp(_ref) {
|
|
|
64
65
|
setDontShowValue = _useState2[1];
|
|
65
66
|
|
|
66
67
|
var handleCloseModel = (0, _react.useCallback)(function () {
|
|
67
|
-
onCloseModel && onCloseModel(dontShowValue
|
|
68
|
+
onCloseModel && onCloseModel(dontShowValue);
|
|
69
|
+
}, [dontShowValue, onCloseModel]);
|
|
70
|
+
var handleShowDetail = (0, _react.useCallback)(function () {
|
|
71
|
+
onShowDetail && onShowDetail(dontShowValue, createdSuccessInfo.workId);
|
|
68
72
|
}, [dontShowValue, onCloseModel]);
|
|
69
73
|
|
|
70
74
|
var handleInputChange = function handleInputChange(e) {
|
|
@@ -211,7 +215,7 @@ var CreateSuccessCmp = function CreateSuccessCmp(_ref) {
|
|
|
211
215
|
className: "create-success-model__primary-btns"
|
|
212
216
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
213
217
|
className: "create-success-model__common-btn-style create-success-model__return-list",
|
|
214
|
-
onClick:
|
|
218
|
+
onClick: handleShowDetail
|
|
215
219
|
}, "\u67E5\u770B\u8BE6\u60C5"), /*#__PURE__*/_react["default"].createElement("span", {
|
|
216
220
|
className: "create-success-model__common-btn-style create-success-model__download-img",
|
|
217
221
|
onClick: handleDownloadPic
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.OkrFieldVisibility = exports.OkrFieldType = void 0;
|
|
7
7
|
|
|
8
8
|
var _okrVisibilityDetail = _interopRequireDefault(require("./okr-visibility-detail"));
|
|
9
9
|
|
|
@@ -744,7 +744,7 @@ function CreateOkrModal(_ref, ref) {
|
|
|
744
744
|
}
|
|
745
745
|
});
|
|
746
746
|
}, [krDatas, krsCheckResult.finalResult]);
|
|
747
|
-
var handleCloseShowSuccessInfo = (0, _react.useCallback)(function (dontShowValue
|
|
747
|
+
var handleCloseShowSuccessInfo = (0, _react.useCallback)(function (dontShowValue) {
|
|
748
748
|
if (dontShowValue) {
|
|
749
749
|
localStorage.setItem("dontShowValue".concat(userId), userId);
|
|
750
750
|
}
|
|
@@ -752,6 +752,19 @@ function CreateOkrModal(_ref, ref) {
|
|
|
752
752
|
setShowCreatedSuccessInfo(false);
|
|
753
753
|
onSuccess && onSuccess(newOkrDataRef.current);
|
|
754
754
|
}, []);
|
|
755
|
+
var handleCloseAndShowDetail = (0, _react.useCallback)(function (dontShowValue, workId) {
|
|
756
|
+
if (dontShowValue) {
|
|
757
|
+
localStorage.setItem("dontShowValue".concat(userId), userId);
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
setShowCreatedSuccessInfo(false);
|
|
761
|
+
|
|
762
|
+
_manager["default"].open("okrDetail", {
|
|
763
|
+
okrId: workId
|
|
764
|
+
});
|
|
765
|
+
|
|
766
|
+
onSuccess && onSuccess(newOkrDataRef.current);
|
|
767
|
+
}, []);
|
|
755
768
|
(0, _react.useEffect)(function () {
|
|
756
769
|
if (!isVisible) return; // @ts-ignore
|
|
757
770
|
|
|
@@ -894,6 +907,7 @@ function CreateOkrModal(_ref, ref) {
|
|
|
894
907
|
createdSuccessInfo: createdSuccessInfo,
|
|
895
908
|
isDownload: false,
|
|
896
909
|
onCloseModel: handleCloseShowSuccessInfo,
|
|
910
|
+
onShowDetail: handleCloseAndShowDetail,
|
|
897
911
|
downLoadRef: downloadDomRef
|
|
898
912
|
})) : null, !isApplyTpl && !isPerformance && showCreatedSuccessInfo ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
899
913
|
className: "download-dom--hidden"
|
|
@@ -902,6 +916,7 @@ function CreateOkrModal(_ref, ref) {
|
|
|
902
916
|
createdSuccessInfo: createdSuccessInfo,
|
|
903
917
|
isDownload: true,
|
|
904
918
|
onCloseModel: handleCloseShowSuccessInfo,
|
|
919
|
+
onShowDetail: handleCloseAndShowDetail,
|
|
905
920
|
downLoadRef: downloadDomRef
|
|
906
921
|
})) : null);
|
|
907
922
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.updateOkrVisibility = exports.updateOCommitType = exports.getOAnalysisInfos = exports.getKrAnalysisInfos = exports.getImageBase64ByUrl = exports.getCycleSetting = exports.createWidthKr = void 0;
|
|
7
7
|
|
|
8
8
|
var _axios = _interopRequireDefault(require("axios"));
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.Wrapper = exports.WeightWrapper = exports.WeightInputWrpper = exports.TitleLine = exports.TimeSapn = exports.Space = exports.SelectBtn = exports.Line = exports.KrNameInput = exports.KrItemWrapper = exports.KrEditWrapper = exports.ItemWrapper = exports.InputWrapper = exports.DropDownContent = exports.DeleteKr = exports.DateLine = exports.CreateCycleWrapper = exports.CaseLink = exports.BlueBar = exports.AddKrBtn = void 0;
|
|
7
7
|
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.ConfirmWrapper = exports.ConfirmText = exports.ConfirmBtnGroup = exports.ButtonConfirm = exports.ButtonCancel = void 0;
|
|
7
7
|
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
9
|
|
|
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports["default"] = exports.
|
|
8
|
+
exports["default"] = exports.Item = exports.IconItem = exports.DropSelectorLayer = void 0;
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
height: 36px;
|
|
10
10
|
overflow: hidden;
|
|
11
11
|
box-sizing: border-box;
|
|
12
|
-
background:
|
|
12
|
+
background: rgba(240, 244, 250, 0.5);
|
|
13
13
|
border-radius: 18px 18px 18px 1px;
|
|
14
14
|
word-break: keep-all;
|
|
15
15
|
white-space: nowrap;
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
|
|
39
39
|
.titaui-dynamic-title__fill-empty {
|
|
40
40
|
flex: 1;
|
|
41
|
-
background:
|
|
41
|
+
background: rgba(240, 244, 250, 0.5);
|
|
42
42
|
border-radius: 0 18px 18px 0;
|
|
43
43
|
margin-left: -18px;
|
|
44
44
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.OkrRiskMapping = exports.ObjectType = exports.ObjTypeMapText = exports.EStatusStatus2ClassType = exports.EObjType = exports.EFeedType = void 0;
|
|
7
7
|
|
|
8
8
|
var _ObjTypeMapText;
|
|
9
9
|
|
|
@@ -63,9 +63,10 @@ exports.EObjType = EObjType;
|
|
|
63
63
|
EObjType[EObjType["Kr"] = 65] = "Kr";
|
|
64
64
|
EObjType[EObjType["Assess"] = 23] = "Assess";
|
|
65
65
|
EObjType[EObjType["MileStone"] = 27] = "MileStone";
|
|
66
|
+
EObjType[EObjType["KanBan"] = 66] = "KanBan";
|
|
66
67
|
})(EObjType || (exports.EObjType = EObjType = {}));
|
|
67
68
|
|
|
68
|
-
var ObjTypeMapText = (_ObjTypeMapText = {}, _defineProperty(_ObjTypeMapText, EObjType.Project, '项目'), _defineProperty(_ObjTypeMapText, EObjType.Task, '任务'), _defineProperty(_ObjTypeMapText, EObjType.O, '目标'), _defineProperty(_ObjTypeMapText, EObjType.Kr, '关键成果'), _defineProperty(_ObjTypeMapText, EObjType.MileStone, '里程碑'), _ObjTypeMapText);
|
|
69
|
+
var ObjTypeMapText = (_ObjTypeMapText = {}, _defineProperty(_ObjTypeMapText, EObjType.Project, '项目'), _defineProperty(_ObjTypeMapText, EObjType.Task, '任务'), _defineProperty(_ObjTypeMapText, EObjType.O, '目标'), _defineProperty(_ObjTypeMapText, EObjType.Kr, '关键成果'), _defineProperty(_ObjTypeMapText, EObjType.MileStone, '里程碑'), _defineProperty(_ObjTypeMapText, EObjType.KanBan, '看板'), _ObjTypeMapText);
|
|
69
70
|
exports.ObjTypeMapText = ObjTypeMapText;
|
|
70
71
|
var ObjectType = {
|
|
71
72
|
1: '公告/分享',
|
|
Binary file
|
|
@@ -12,12 +12,18 @@
|
|
|
12
12
|
display: flex;
|
|
13
13
|
align-items: center;
|
|
14
14
|
border-radius: 8px;
|
|
15
|
-
background:
|
|
15
|
+
background: rgba(240, 244, 250, 0.5);
|
|
16
16
|
padding: 16px 12px 16px 16px;
|
|
17
17
|
box-sizing: border-box;
|
|
18
18
|
margin-left: 69px;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
.titaui-dynamic-milestone-item__content-img {
|
|
22
|
+
display: inline-block;
|
|
23
|
+
width: 36px;
|
|
24
|
+
border-radius: 6px;
|
|
25
|
+
}
|
|
26
|
+
|
|
21
27
|
.titaui-dynamic-milestone-item__content-info {
|
|
22
28
|
flex: 1;
|
|
23
29
|
display: flex;
|
|
@@ -13,8 +13,6 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
13
13
|
|
|
14
14
|
var _header = _interopRequireDefault(require("../components/header"));
|
|
15
15
|
|
|
16
|
-
var _icon = _interopRequireDefault(require("../components/icon"));
|
|
17
|
-
|
|
18
16
|
var _constant = require("./constant");
|
|
19
17
|
|
|
20
18
|
var _constant2 = require("../../constant");
|
|
@@ -27,9 +25,7 @@ var _tooltip = require("../../../tooltip");
|
|
|
27
25
|
|
|
28
26
|
var _util = require("../../util");
|
|
29
27
|
|
|
30
|
-
var
|
|
31
|
-
|
|
32
|
-
var _milestone = _interopRequireDefault(require("./img/milestone.png"));
|
|
28
|
+
var _dynamicMilestone = _interopRequireDefault(require("./img/dynamic-milestone.png"));
|
|
33
29
|
|
|
34
30
|
require("./index.css");
|
|
35
31
|
|
|
@@ -76,18 +72,6 @@ var DynamicMilestone = function DynamicMilestone(_ref) {
|
|
|
76
72
|
var objType = obj.objType,
|
|
77
73
|
objId = obj.objId;
|
|
78
74
|
|
|
79
|
-
if (objType === _constant2.EObjType.Kr) {
|
|
80
|
-
_manager["default"].open("krDetail", {
|
|
81
|
-
krId: objId
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
if (objType === _constant2.EObjType.O) {
|
|
86
|
-
_manager["default"].open("okrDetail", {
|
|
87
|
-
okrId: objId
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
|
|
91
75
|
if (objType === _constant2.EObjType.Project) {
|
|
92
76
|
window.open(window.location.href.replace(location.hash, "#work?iTalentNavCode=tita-work&work_id=" + objId));
|
|
93
77
|
}
|
|
@@ -129,10 +113,9 @@ var DynamicMilestone = function DynamicMilestone(_ref) {
|
|
|
129
113
|
user: principalUser
|
|
130
114
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
131
115
|
className: "".concat(prefix, "__content")
|
|
132
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
imgUrl: _milestone["default"]
|
|
116
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
117
|
+
className: "".concat(prefix, "__content-img"),
|
|
118
|
+
src: _dynamicMilestone["default"]
|
|
136
119
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
137
120
|
className: prefix + "__content-info"
|
|
138
121
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -202,10 +202,12 @@ var DynamicProgress = function DynamicProgress(_ref) {
|
|
|
202
202
|
}, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("img", {
|
|
203
203
|
className: (0, _classnames["default"])(prefix + "__description-quoto", prefix + "__description-quoto--left"),
|
|
204
204
|
src: _dynamicLeftQuoto["default"]
|
|
205
|
-
})), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(
|
|
205
|
+
})), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
206
|
+
className: prefix + '__description-text'
|
|
207
|
+
}, /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
206
208
|
str: progressDescription,
|
|
207
209
|
keyWord: searchKeyWord
|
|
208
|
-
}), /*#__PURE__*/_react["default"].createElement("img", {
|
|
210
|
+
})), /*#__PURE__*/_react["default"].createElement("img", {
|
|
209
211
|
className: (0, _classnames["default"])(prefix + "__description-quoto", prefix + "__description-quoto--right"),
|
|
210
212
|
src: _dynamicRightQuoto["default"]
|
|
211
213
|
})))));
|
|
Binary file
|
|
@@ -12,12 +12,18 @@
|
|
|
12
12
|
display: flex;
|
|
13
13
|
align-items: center;
|
|
14
14
|
border-radius: 8px;
|
|
15
|
-
background:
|
|
15
|
+
background: rgba(240, 244, 250, 0.5);
|
|
16
16
|
padding: 16px 12px 16px 16px;
|
|
17
17
|
box-sizing: border-box;
|
|
18
18
|
margin-left: 69px;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
.titaui-dynamic-project-item__content-img {
|
|
22
|
+
display: inline-block;
|
|
23
|
+
width: 36px;
|
|
24
|
+
border-radius: 6px;
|
|
25
|
+
}
|
|
26
|
+
|
|
21
27
|
.titaui-dynamic-project-item__content-info {
|
|
22
28
|
flex: 1;
|
|
23
29
|
display: flex;
|
|
@@ -13,8 +13,6 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
13
13
|
|
|
14
14
|
var _header = _interopRequireDefault(require("../components/header"));
|
|
15
15
|
|
|
16
|
-
var _icon = _interopRequireDefault(require("../components/icon"));
|
|
17
|
-
|
|
18
16
|
var _constant = require("./constant");
|
|
19
17
|
|
|
20
18
|
var _constant2 = require("../../constant");
|
|
@@ -25,7 +23,7 @@ var _searchKeyHandle = _interopRequireDefault(require("../../../search-key-handl
|
|
|
25
23
|
|
|
26
24
|
var _tooltip = require("../../../tooltip");
|
|
27
25
|
|
|
28
|
-
var
|
|
26
|
+
var _dynamicProject = _interopRequireDefault(require("./img/dynamic-project.png"));
|
|
29
27
|
|
|
30
28
|
var _util = require("../../util");
|
|
31
29
|
|
|
@@ -96,10 +94,9 @@ var DynamicProject = function DynamicProject(_ref) {
|
|
|
96
94
|
user: principalUser
|
|
97
95
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
98
96
|
className: "".concat(prefix, "__content")
|
|
99
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
imgUrl: _project["default"]
|
|
97
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
98
|
+
className: "".concat(prefix, "__content-img"),
|
|
99
|
+
src: _dynamicProject["default"]
|
|
103
100
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
104
101
|
className: prefix + "__content-info"
|
|
105
102
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -3,41 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.EStatusClass2StatusTypeText =
|
|
7
|
-
|
|
8
|
-
var _taskCancel = _interopRequireDefault(require("./img/task-cancel.png"));
|
|
9
|
-
|
|
10
|
-
var _taskDelay = _interopRequireDefault(require("./img/task-delay.png"));
|
|
11
|
-
|
|
12
|
-
var _taskDone = _interopRequireDefault(require("./img/task-done.png"));
|
|
13
|
-
|
|
14
|
-
var _taskPause = _interopRequireDefault(require("./img/task-pause.png"));
|
|
15
|
-
|
|
16
|
-
var _taskProgress = _interopRequireDefault(require("./img/task-progress.png"));
|
|
17
|
-
|
|
18
|
-
var _taskUnaccept = _interopRequireDefault(require("./img/task-unaccept.png"));
|
|
19
|
-
|
|
20
|
-
var _taskUnstart = _interopRequireDefault(require("./img/task-unstart.png"));
|
|
21
|
-
|
|
22
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
|
-
|
|
24
|
-
var TaskStatusIconMapping = {
|
|
25
|
-
2: _taskDone["default"],
|
|
26
|
-
// 已完成
|
|
27
|
-
1: _taskProgress["default"],
|
|
28
|
-
// 进行中
|
|
29
|
-
4: _taskCancel["default"],
|
|
30
|
-
// 已取消
|
|
31
|
-
3: _taskDelay["default"],
|
|
32
|
-
// 已延迟
|
|
33
|
-
6: _taskPause["default"],
|
|
34
|
-
// 暂停中
|
|
35
|
-
0: _taskUnstart["default"],
|
|
36
|
-
// 未开始
|
|
37
|
-
5: _taskUnaccept["default"] // 未接受
|
|
38
|
-
|
|
39
|
-
};
|
|
40
|
-
exports.TaskStatusIconMapping = TaskStatusIconMapping;
|
|
6
|
+
exports.EStatusClass2StatusTypeText = void 0;
|
|
41
7
|
var EStatusClass2StatusTypeText = {
|
|
42
8
|
2: '已完成',
|
|
43
9
|
1: '进行中',
|
|
@@ -12,12 +12,18 @@
|
|
|
12
12
|
display: flex;
|
|
13
13
|
align-items: center;
|
|
14
14
|
border-radius: 8px;
|
|
15
|
-
background:
|
|
15
|
+
background: rgba(240, 244, 250, 0.5);
|
|
16
16
|
padding: 16px 12px 16px 16px;
|
|
17
17
|
box-sizing: border-box;
|
|
18
18
|
margin-left: 69px;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
.titaui-dynamic-task-item__content-img {
|
|
22
|
+
display: inline-block;
|
|
23
|
+
width: 36px;
|
|
24
|
+
border-radius: 6px;
|
|
25
|
+
}
|
|
26
|
+
|
|
21
27
|
.titaui-dynamic-task-item__content-info {
|
|
22
28
|
flex: 1;
|
|
23
29
|
display: flex;
|