@titaui/pc 1.10.6 → 1.10.7-2.beta-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +2 -2
- package/.prettierignore +4 -4
- package/lib/components/book-demo/utils.js +4 -0
- package/lib/components/button/default-button/index.css +10 -4
- package/lib/components/button/default-button/index.js +13 -2
- package/lib/components/change-okr-modal/index.js +6 -2
- package/lib/components/checkbox/index.css +1 -0
- package/lib/components/communication/CommunicationRecord.js +16 -16
- package/lib/components/communication/index.css +16 -15
- package/lib/components/communication/index.js +23 -6
- package/lib/components/communication/style.js +4 -4
- package/lib/components/create-okr-modal/fields/o-new-name.js +31 -21
- package/lib/components/create-okr-modal/fields/okr-parent.js +1 -5
- package/lib/components/create-okr-modal/kr-items/krDatas.js +16 -16
- package/lib/components/{dynamic/components/dangerous-html → dangerous-html}/index.js +0 -0
- package/lib/components/dialog/index.css +4 -1
- package/lib/components/dialog/index.js +1 -1
- package/lib/components/dialog-confirm/index.css +1 -1
- package/lib/components/drawer-manager/index.js +6 -1
- package/lib/components/dynamic/components/first-level-tabs/index.css +12 -2
- package/lib/components/dynamic/components/first-level-tabs/index.js +19 -6
- package/lib/components/dynamic/components/obj-status/index.css +1 -0
- package/lib/components/dynamic/components/obj-status/utils.js +1 -1
- package/lib/components/dynamic/constant.js +12 -2
- package/lib/components/dynamic/dynamic-item/components/feed-operate/index.css +71 -0
- package/lib/components/dynamic/dynamic-item/components/feed-operate/index.js +112 -0
- package/lib/components/dynamic/dynamic-item/components/header/index.css +2 -1
- package/lib/components/dynamic/dynamic-item/components/header/index.js +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +31 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.css +13 -7
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +10 -4
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +5 -3
- package/lib/components/dynamic/dynamic-item/dynamic-chart/index.css +4 -0
- package/lib/components/dynamic/dynamic-item/dynamic-chart/index.js +102 -0
- package/lib/components/dynamic/dynamic-item/dynamic-chart/utils.js +61 -0
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +12 -11
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +8 -5
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +5 -3
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/img/dynamic-share-course.png +0 -0
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/img/jiantou-right@3x.png +0 -0
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/img/user-photo.png +0 -0
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/index.css +2 -2
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/index.js +6 -5
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/constant.js +9 -2
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +4 -2
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +2 -6
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +8 -6
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +3 -1
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.css +13 -7
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +42 -6
- package/lib/components/dynamic/dynamic-item/{dynamic-replay → dynamic-reply}/index.css +14 -30
- package/lib/components/dynamic/dynamic-item/{dynamic-replay → dynamic-reply}/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +12 -3
- package/lib/components/dynamic/dynamic-item/dynamic-reward/img/reward.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.css +6 -1
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +18 -51
- package/lib/components/dynamic/dynamic-item/dynamic-reward/utils.js +28 -0
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +6 -2
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +55 -2
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/index.css +58 -3
- package/lib/components/dynamic/dynamic-item/index.js +124 -23
- package/lib/components/dynamic/dynamic-like-ranking/item.js +1 -1
- package/lib/components/dynamic/dynamic-list/index.js +11 -2
- package/lib/components/dynamic/dynamic-topping/item.js +8 -4
- package/lib/components/dynamic/dynamic.js +5 -2
- package/lib/components/dynamic/img/dynamic-operate.png +0 -0
- package/lib/components/dynamic/img/dynamic-point.svg +13 -0
- package/lib/components/dynamic/img/dynamic-reward-hover.svg +1 -0
- package/lib/components/dynamic/img/dynamic-reward-normal.svg +1 -0
- package/lib/components/dynamic/online-broadcast/data.js +13 -1
- package/lib/components/e-status-dropdown/index.css +3 -0
- package/lib/components/e-status-dropdown/index.js +94 -0
- package/lib/components/edit-kr-wight/style/index.js +2 -2
- package/lib/components/file-list/components/single-file/index.css +6 -5
- package/lib/components/file-list/components/single-file/index.js +1 -1
- package/lib/components/file-list/index.css +1 -0
- package/lib/components/follower-visitor/index.js +6 -4
- package/lib/components/grid-layout/okr-progress/index.js +20 -30
- package/lib/components/help-card/image/not-try.png +0 -0
- package/lib/components/help-card/image/try.png +0 -0
- package/lib/components/help-card/index.css +31 -2
- package/lib/components/help-card/index.js +54 -17
- package/lib/components/invite-people/img/invite-people.svg +62 -0
- package/lib/components/invite-people/index.css +1 -1
- package/lib/components/mblog/index.js +14 -5
- package/lib/components/menus/export-modules/demo-menus/index.js +2 -2
- package/lib/components/menus/export-modules/demo-menus/menu-highlight.js +25 -1
- package/lib/components/menus/export-modules/demo-menus/menus.js +60 -11
- package/lib/components/menus/export-modules/manage-menus/constant.js +1 -1
- package/lib/components/menus/export-modules/manage-menus/index.css +3 -0
- package/lib/components/menus/images/okr-gongsi.svg +17 -0
- package/lib/components/nav-top/components/menu/index.css +24 -0
- package/lib/components/nav-top/components/menu/index.js +9 -1
- package/lib/components/nav-top/components/user-message/components/reply/index.js +9 -8
- package/lib/components/nav-top/components/user-message/components/reply/reply-item.js +15 -5
- package/lib/components/nav-top/components/user-message/index.css +4 -3
- package/lib/components/nav-top/components/user-message/index.js +33 -6
- package/lib/components/nav-top/request.apis.js +22 -8
- package/lib/components/nav-top/useGlobalValue.js +14 -0
- package/lib/components/okr-detail/components/header/o-score.js +4 -6
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.css +26 -12
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +10 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-project.js +20 -7
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +3 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +27 -6
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/index.css +29 -10
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +1 -1
- package/lib/components/okr-detail/e-list/index.js +70 -24
- package/lib/components/okr-detail/e-list/util.js +11 -2
- package/lib/components/okr-detail/index.js +2 -0
- package/lib/components/okr-detail/okr-list/index.js +1 -5
- package/lib/components/okr-flow/export-modal/index.js +3 -3
- package/lib/components/okr-flow/root-node/index.js +14 -1
- package/lib/components/okr-progress-detail/index.css +11 -10
- package/lib/components/okr-progress-detail/index.js +5 -1
- package/lib/components/okr-progress-detail/utils.js +4 -4
- package/lib/components/okr-progress-modal/helper.js +20 -27
- package/lib/components/okr-share/common-painter/openDataPainter.js +34 -27
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +40 -36
- package/lib/components/open-data-painter/index.js +5 -1
- package/lib/components/progress/circle-progress/index.js +1 -1
- package/lib/components/rich-editor/basic/schema.js +47 -0
- package/lib/components/rich-editor/consts/events.js +12 -0
- package/lib/components/rich-editor/enums.js +42 -0
- package/lib/components/rich-editor/index.js +58 -0
- package/lib/components/rich-editor/keymap.js +119 -0
- package/lib/components/rich-editor/keymaps/index.js +241 -0
- package/lib/components/rich-editor/models/controller.js +18 -0
- package/lib/components/rich-editor/models/editor.js +47 -0
- package/lib/components/rich-editor/models/plugin.js +20 -0
- package/lib/components/rich-editor/models/schema.js +121 -0
- package/lib/components/rich-editor/plugins/block/block-quote/commond.js +27 -0
- package/lib/components/rich-editor/plugins/block/block-quote/index.js +128 -0
- package/lib/components/rich-editor/plugins/block/heading/commonds.js +31 -0
- package/lib/components/rich-editor/plugins/block/heading/index.js +190 -0
- package/lib/components/rich-editor/plugins/block/index.js +57 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/conversions.js +172 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/indent-list-items-selected.js +163 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/indent-list.js +59 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-forward.js +74 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/index.js +45 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-list-item-with-paragraph.js +104 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-list-item-with-parent-nested-list.js +92 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-nested-list-with-parent-list-item.js +89 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-paragraph-with-list.js +48 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-sibling-list-items.js +61 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/merge-lists.js +34 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/outdent-list-items-selected.js +289 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/wrap-and-join-lists.js +180 -0
- package/lib/components/rich-editor/plugins/block/lists/baseCommand.js +328 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/indent-list.js +60 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/index.js +396 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/join-list-item-forward.js +45 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/listBackspace.js +302 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/outdent-list.js +43 -0
- package/lib/components/rich-editor/plugins/block/lists/index.js +224 -0
- package/lib/components/rich-editor/plugins/block/lists/messages.js +38 -0
- package/lib/components/rich-editor/plugins/block/lists/pm-plugins/input-rule.js +152 -0
- package/lib/components/rich-editor/plugins/block/lists/pm-plugins/keymap.js +33 -0
- package/lib/components/rich-editor/plugins/block/lists/pm-plugins/main.js +94 -0
- package/lib/components/rich-editor/plugins/block/lists/styles.js +15 -0
- package/lib/components/rich-editor/plugins/block/lists/transforms.js +347 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/analytics.js +48 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/find.js +126 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/indentation.js +87 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/node.js +144 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/replace-content.js +31 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/selection.js +201 -0
- package/lib/components/rich-editor/plugins/block/lists/utils.js +52 -0
- package/lib/components/rich-editor/plugins/block/paragraph/index.js +91 -0
- package/lib/components/rich-editor/plugins/core/index.js +90 -0
- package/lib/components/rich-editor/plugins/core/pm-plugins/focus-handler.js +67 -0
- package/lib/components/rich-editor/plugins/core/pm-plugins/keymap.js +29 -0
- package/lib/components/rich-editor/plugins/core/pm-plugins/reactNodeView.js +80 -0
- package/lib/components/rich-editor/plugins/extension/alignment/commond.js +24 -0
- package/lib/components/rich-editor/plugins/extension/alignment/index.js +113 -0
- package/lib/components/rich-editor/plugins/extension/alignment/utils.js +19 -0
- package/lib/components/rich-editor/plugins/extension/index.js +18 -0
- package/lib/components/rich-editor/plugins/extension/placeholder/index.js +126 -0
- package/lib/components/rich-editor/plugins/extension/placeholder/styles.js +19 -0
- package/lib/components/rich-editor/plugins/index.js +44 -0
- package/lib/components/rich-editor/plugins/inline/color/commond.js +128 -0
- package/lib/components/rich-editor/plugins/inline/color/consts.js +43 -0
- package/lib/components/rich-editor/plugins/inline/color/index.css +61 -0
- package/lib/components/rich-editor/plugins/inline/color/index.js +217 -0
- package/lib/components/rich-editor/plugins/inline/color/selector.js +252 -0
- package/lib/components/rich-editor/plugins/inline/color/util.js +25 -0
- package/lib/components/rich-editor/plugins/inline/delete-line/index.js +149 -0
- package/lib/components/rich-editor/plugins/inline/em/index.js +93 -0
- package/lib/components/rich-editor/plugins/inline/index.js +83 -0
- package/lib/components/rich-editor/plugins/inline/link/commands.js +256 -0
- package/lib/components/rich-editor/plugins/inline/link/index.js +149 -0
- package/lib/components/rich-editor/plugins/inline/link/pm-plugins/fake-cursor-for-toolbar.js +77 -0
- package/lib/components/rich-editor/plugins/inline/link/pm-plugins/main.js +293 -0
- package/lib/components/rich-editor/plugins/inline/link/ui/index.css +84 -0
- package/lib/components/rich-editor/plugins/inline/link/ui/linkEditor.js +150 -0
- package/lib/components/rich-editor/plugins/inline/link/ui/linkToolbar.js +101 -0
- package/lib/components/rich-editor/plugins/inline/link/ui/toolbarBtn.js +117 -0
- package/lib/components/rich-editor/plugins/inline/link/utils.js +33 -0
- package/lib/components/rich-editor/plugins/inline/strong/index.js +139 -0
- package/lib/components/rich-editor/plugins/inline/under-line/index.js +147 -0
- package/lib/components/rich-editor/plugins/util.js +284 -0
- package/lib/components/rich-editor/react/reactNodeView.js +383 -0
- package/lib/components/rich-editor/react/uiProvider.js +185 -0
- package/lib/components/rich-editor/schemas/basic.js +309 -0
- package/lib/components/rich-editor/schemas/index.js +19 -0
- package/lib/components/rich-editor/schemas/list.js +342 -0
- package/lib/components/rich-editor/types/commond.js +5 -0
- package/lib/components/rich-editor/types/index.js +18 -0
- package/lib/components/rich-editor/ui/Popup/index.js +247 -0
- package/lib/components/rich-editor/ui/Popup/utils.js +399 -0
- package/lib/components/rich-editor/ui/editor/index.css +178 -0
- package/lib/components/rich-editor/ui/editor/index.js +153 -0
- package/lib/components/rich-editor/ui/normal-toolbar/index.css +34 -0
- package/lib/components/rich-editor/ui/normal-toolbar/index.js +109 -0
- package/lib/components/rich-editor/utils/browser.js +35 -0
- package/lib/components/rich-editor/utils/commands.js +266 -0
- package/lib/components/rich-editor/utils/document.js +211 -0
- package/lib/components/rich-editor/utils/event.js +79 -0
- package/lib/components/rich-editor/utils/helpers.js +16 -0
- package/lib/components/rich-editor/utils/mark.js +168 -0
- package/lib/components/rich-editor/utils/slice.js +85 -0
- package/lib/components/rich-editor/utils/toolbar.js +228 -0
- package/lib/components/superset-charts/components/chart/index.js +54 -0
- package/lib/components/superset-charts/fetch-assets-and-append/append-assets.js +106 -0
- package/lib/components/superset-charts/fetch-assets-and-append/get-assets-with-cache.js +131 -0
- package/lib/components/superset-charts/fetch-assets-and-append/index.js +79 -0
- package/lib/components/superset-charts/index.js +13 -0
- package/lib/components/superset-charts/interface.js +5 -0
- package/lib/components/superset-charts/utils/axios.js +102 -0
- package/lib/components/toast/index.js +5 -17
- package/lib/components/tree/index.css +3 -2
- package/lib/components/upload/index.js +4 -2
- package/lib/components/upload/util.js +2 -0
- package/lib/components/upload-photo-modal/request-api.js +1 -17
- package/lib/components/user-selector/empty/index.css +6 -6
- package/lib/components/user-selector/selected-panel/index.css +3 -3
- package/lib/components/{float-fixed-video-modal → video-modal/components/video-box}/index.css +118 -121
- package/lib/components/{float-fixed-video-modal → video-modal/components/video-box}/index.js +182 -182
- package/lib/components/{float-fixed-video-modal → video-modal}/img/close.png +0 -0
- package/lib/components/{float-fixed-video-modal → video-modal}/img/full.svg +0 -0
- package/lib/components/video-modal/img/muted.svg +8 -10
- package/lib/components/video-modal/img/not-muted.svg +17 -11
- package/lib/components/video-modal/img/pause.svg +7 -11
- package/lib/components/video-modal/img/play.svg +13 -11
- package/lib/components/video-modal/index.css +38 -168
- package/lib/components/video-modal/index.js +104 -244
- package/lib/components/video-modal/utils.js +2 -2
- package/lib/components/weekly-report/common-painter/openDataPainter.js +5 -1
- package/lib/hooks/useGlobalState.js +63 -0
- package/lib/index.js +31 -7
- package/lib/pages/aha2021/img/canceled.svg +13 -0
- package/lib/pages/aha2021/img/not-try.png +0 -0
- package/lib/pages/aha2021/img/try.png +0 -0
- package/lib/pages/aha2021/index.css +52 -0
- package/lib/pages/aha2021/index.js +73 -14
- package/lib/pages/new-okr-list/header/index.js +2 -1
- package/lib/pages/new-okr-list/index.js +3 -3
- package/lib/pages/okr-map/export-modules/share-okr-page/header/index.js +0 -5
- package/lib/pages/pay/image/success.png +0 -0
- package/lib/pages/pay/index.css +79 -0
- package/lib/pages/pay/index.js +66 -0
- package/lib/pages/personal-info/request-api.js +1 -1
- package/lib/utils/auth.js +15 -5
- package/lib/utils/bs-global.js +8 -8
- package/lib/utils/helpers.js +7 -1
- package/lib/utils/open-data.js +82 -2
- package/lib/utils/tools.js +11 -2
- package/package.json +120 -101
- package/lib/components/float-fixed-video-modal/img/muted.svg +0 -21
- package/lib/components/float-fixed-video-modal/img/pause.svg +0 -21
- package/lib/components/float-fixed-video-modal/img/play.svg +0 -22
- package/lib/components/float-fixed-video-modal/img/small.svg +0 -22
- package/lib/components/float-fixed-video-modal/img/smallFaQi.png +0 -0
- package/lib/components/float-fixed-video-modal/img/volume.svg +0 -21
- package/lib/components/float-fixed-video-modal/utils.js +0 -25
- package/lib/components/invite-people/img/invite-people.png +0 -0
- package/lib/components/video-modal/img/play.png +0 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.createGlobalState = createGlobalState;
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
|
|
9
|
+
var _react = require("react");
|
|
10
|
+
|
|
11
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
12
|
+
|
|
13
|
+
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."); }
|
|
14
|
+
|
|
15
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
16
|
+
|
|
17
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
18
|
+
|
|
19
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
20
|
+
|
|
21
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
22
|
+
|
|
23
|
+
function createGlobalState(initialState) {
|
|
24
|
+
var store = {
|
|
25
|
+
state: initialState,
|
|
26
|
+
setState: function setState(state) {
|
|
27
|
+
if (Object.prototype.toString.call(state) === "[object Function]") {
|
|
28
|
+
var stateFunc = state;
|
|
29
|
+
store.state = stateFunc(store.state);
|
|
30
|
+
} else {
|
|
31
|
+
store.state = state;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
store.setters.forEach(function (setter) {
|
|
35
|
+
return setter(store.state);
|
|
36
|
+
});
|
|
37
|
+
},
|
|
38
|
+
setters: []
|
|
39
|
+
};
|
|
40
|
+
return function () {
|
|
41
|
+
var _useState = (0, _react.useState)(store.state),
|
|
42
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
43
|
+
globalState = _useState2[0],
|
|
44
|
+
stateSetter = _useState2[1];
|
|
45
|
+
|
|
46
|
+
(0, _react.useEffect)(function () {
|
|
47
|
+
return function () {
|
|
48
|
+
store.setters = store.setters.filter(function (setter) {
|
|
49
|
+
return setter !== stateSetter;
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
}, []);
|
|
53
|
+
(0, _react.useLayoutEffect)(function () {
|
|
54
|
+
if (!store.setters.includes(stateSetter)) {
|
|
55
|
+
store.setters.push(stateSetter);
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
return [globalState, store.setState];
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
var _default = createGlobalState;
|
|
63
|
+
exports["default"] = _default;
|
package/lib/index.js
CHANGED
|
@@ -117,6 +117,12 @@ Object.defineProperty(exports, "ERROR_LEVEL", {
|
|
|
117
117
|
return _errorLevel["default"];
|
|
118
118
|
}
|
|
119
119
|
});
|
|
120
|
+
Object.defineProperty(exports, "EStatusDropdown", {
|
|
121
|
+
enumerable: true,
|
|
122
|
+
get: function get() {
|
|
123
|
+
return _eStatusDropdown["default"];
|
|
124
|
+
}
|
|
125
|
+
});
|
|
120
126
|
Object.defineProperty(exports, "EmotionsSelector", {
|
|
121
127
|
enumerable: true,
|
|
122
128
|
get: function get() {
|
|
@@ -141,12 +147,6 @@ Object.defineProperty(exports, "FileList", {
|
|
|
141
147
|
return _fileList["default"];
|
|
142
148
|
}
|
|
143
149
|
});
|
|
144
|
-
Object.defineProperty(exports, "FloatFixedVideoModal", {
|
|
145
|
-
enumerable: true,
|
|
146
|
-
get: function get() {
|
|
147
|
-
return _floatFixedVideoModal["default"];
|
|
148
|
-
}
|
|
149
|
-
});
|
|
150
150
|
Object.defineProperty(exports, "FollowerVisitor", {
|
|
151
151
|
enumerable: true,
|
|
152
152
|
get: function get() {
|
|
@@ -333,6 +333,12 @@ Object.defineProperty(exports, "PasswordInput", {
|
|
|
333
333
|
return _passwordInput["default"];
|
|
334
334
|
}
|
|
335
335
|
});
|
|
336
|
+
Object.defineProperty(exports, "PayPage", {
|
|
337
|
+
enumerable: true,
|
|
338
|
+
get: function get() {
|
|
339
|
+
return _pay["default"];
|
|
340
|
+
}
|
|
341
|
+
});
|
|
336
342
|
Object.defineProperty(exports, "PeriodSelector", {
|
|
337
343
|
enumerable: true,
|
|
338
344
|
get: function get() {
|
|
@@ -381,6 +387,12 @@ Object.defineProperty(exports, "RangePickerPop", {
|
|
|
381
387
|
return _rangePickerPop["default"];
|
|
382
388
|
}
|
|
383
389
|
});
|
|
390
|
+
Object.defineProperty(exports, "RichEditor", {
|
|
391
|
+
enumerable: true,
|
|
392
|
+
get: function get() {
|
|
393
|
+
return _richEditor["default"];
|
|
394
|
+
}
|
|
395
|
+
});
|
|
384
396
|
Object.defineProperty(exports, "Scrollbar", {
|
|
385
397
|
enumerable: true,
|
|
386
398
|
get: function get() {
|
|
@@ -423,6 +435,12 @@ Object.defineProperty(exports, "StatusTime", {
|
|
|
423
435
|
return _statusTime["default"];
|
|
424
436
|
}
|
|
425
437
|
});
|
|
438
|
+
Object.defineProperty(exports, "SupersetCharts", {
|
|
439
|
+
enumerable: true,
|
|
440
|
+
get: function get() {
|
|
441
|
+
return _supersetCharts["default"];
|
|
442
|
+
}
|
|
443
|
+
});
|
|
426
444
|
Object.defineProperty(exports, "Switch", {
|
|
427
445
|
enumerable: true,
|
|
428
446
|
get: function get() {
|
|
@@ -578,6 +596,8 @@ var _progress = _interopRequireDefault(require("./components/progress"));
|
|
|
578
596
|
|
|
579
597
|
var _ePriority = _interopRequireDefault(require("./components/e-priority"));
|
|
580
598
|
|
|
599
|
+
var _eStatusDropdown = _interopRequireDefault(require("./components/e-status-dropdown"));
|
|
600
|
+
|
|
581
601
|
var _statusTime = _interopRequireDefault(require("./components/status-time"));
|
|
582
602
|
|
|
583
603
|
var _tree = _interopRequireDefault(require("./components/tree"));
|
|
@@ -738,8 +758,12 @@ var _uploadPhotoModal = _interopRequireDefault(require("./components/upload-phot
|
|
|
738
758
|
|
|
739
759
|
var _bookDemo = _interopRequireDefault(require("./components/book-demo"));
|
|
740
760
|
|
|
761
|
+
var _pay = _interopRequireDefault(require("./pages/pay"));
|
|
762
|
+
|
|
763
|
+
var _richEditor = _interopRequireDefault(require("./components/rich-editor"));
|
|
764
|
+
|
|
741
765
|
var _videoModal = _interopRequireDefault(require("./components/video-modal"));
|
|
742
766
|
|
|
743
|
-
var
|
|
767
|
+
var _supersetCharts = _interopRequireDefault(require("./components/superset-charts"));
|
|
744
768
|
|
|
745
769
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>切片</title>
|
|
4
|
+
<g id="整体框架" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
|
+
<g id="二级菜单-交互说明" transform="translate(-1895.000000, -977.000000)" fill="#141C28">
|
|
6
|
+
<g id="弹层1" transform="translate(1881.000000, 467.000000)">
|
|
7
|
+
<g id="canceled" transform="translate(14.000000, 510.000000)">
|
|
8
|
+
<path d="M18.5178716,4.33431458 C18.8693434,3.98284271 19.4391919,3.98284271 19.7906638,4.33431458 C20.1421356,4.68578644 20.1421356,5.25563492 19.7906638,5.60710678 L19.7906638,5.60710678 L13.2847107,12.1117107 L19.7906638,18.6178716 C20.1421356,18.9693434 20.1421356,19.5391919 19.7906638,19.8906638 C19.4391919,20.2421356 18.8693434,20.2421356 18.5178716,19.8906638 L12.0117107,13.3847107 L5.50710678,19.8906638 C5.18492424,20.2128463 4.67924468,20.2396948 4.3264793,19.9712094 L4.23431458,19.8906638 C3.88284271,19.5391919 3.88284271,18.9693434 4.23431458,18.6178716 L4.23431458,18.6178716 L10.7397107,12.1117107 L4.23431458,5.60710678 C3.88284271,5.25563492 3.88284271,4.68578644 4.23431458,4.33431458 C4.58578644,3.98284271 5.15563492,3.98284271 5.50710678,4.33431458 L12.0117107,10.8397107 Z" id="形状结合"></path>
|
|
9
|
+
</g>
|
|
10
|
+
</g>
|
|
11
|
+
</g>
|
|
12
|
+
</g>
|
|
13
|
+
</svg>
|
|
Binary file
|
|
Binary file
|
|
@@ -25,10 +25,18 @@
|
|
|
25
25
|
z-index: 2;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
+
.titaui-aha-2021__try-kefu {
|
|
29
|
+
position: absolute;
|
|
30
|
+
bottom: 134px;
|
|
31
|
+
right: 24px;
|
|
32
|
+
z-index: 2;
|
|
33
|
+
}
|
|
34
|
+
|
|
28
35
|
.titaui-aha-2021__kefu {
|
|
29
36
|
width: 42px;
|
|
30
37
|
height: 42px;
|
|
31
38
|
background: url("./img/kefu.svg") no-repeat;
|
|
39
|
+
background-color: #fff;
|
|
32
40
|
background-size: 42px;
|
|
33
41
|
box-shadow: 0px 4px 12px 0px rgba(127, 145, 180, 0.2);
|
|
34
42
|
cursor: pointer;
|
|
@@ -84,6 +92,50 @@
|
|
|
84
92
|
animation: contentOpacity 0.7s 1 forwards;
|
|
85
93
|
}
|
|
86
94
|
|
|
95
|
+
.titaui-aha-2021__hidden {
|
|
96
|
+
background-image: none;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.titaui-aha-2021__cancel {
|
|
100
|
+
height: 100%;
|
|
101
|
+
background: url("./img/canceled.svg") 50% 50% no-repeat;
|
|
102
|
+
animation-duration: 0.3s;
|
|
103
|
+
animation-name: kefuActive;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.titaui-aha-2021__popup {
|
|
107
|
+
width: 332px;
|
|
108
|
+
height: 376px;
|
|
109
|
+
display: flex;
|
|
110
|
+
flex-direction: column;
|
|
111
|
+
justify-content: center;
|
|
112
|
+
align-items: center;
|
|
113
|
+
background: #ffffff;
|
|
114
|
+
box-shadow: 0px 8px 24px 0px rgba(127, 145, 180, 0.16);
|
|
115
|
+
border-radius: 24px;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.titaui-aha-2021__popup-title {
|
|
119
|
+
font-size: 20px;
|
|
120
|
+
font-weight: 600;
|
|
121
|
+
color: #141c28;
|
|
122
|
+
line-height: 30px;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.titaui-aha-2021__popup-content {
|
|
126
|
+
margin-top: 4px;
|
|
127
|
+
font-size: 14px;
|
|
128
|
+
font-weight: normal;
|
|
129
|
+
color: #6f7886;
|
|
130
|
+
line-height: 22px;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.titaui-aha-2021__popup-img {
|
|
134
|
+
width: 200px;
|
|
135
|
+
height: 200px;
|
|
136
|
+
margin-top: 24px;
|
|
137
|
+
}
|
|
138
|
+
|
|
87
139
|
@keyframes contentOpacity {
|
|
88
140
|
from {
|
|
89
141
|
opacity: 0;
|
|
@@ -13,6 +13,8 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
13
13
|
|
|
14
14
|
var _tooltip = _interopRequireDefault(require("../../components/tooltip"));
|
|
15
15
|
|
|
16
|
+
var _popup = _interopRequireDefault(require("../../components/popup"));
|
|
17
|
+
|
|
16
18
|
var _navTop = _interopRequireDefault(require("../../components/nav-top"));
|
|
17
19
|
|
|
18
20
|
var _followerVisitor = _interopRequireDefault(require("../../components/follower-visitor"));
|
|
@@ -25,8 +27,6 @@ var _bookDemo = _interopRequireDefault(require("../../components/book-demo"));
|
|
|
25
27
|
|
|
26
28
|
var _platform = require("../../utils/platform");
|
|
27
29
|
|
|
28
|
-
require("./index.css");
|
|
29
|
-
|
|
30
30
|
var _helpers = require("../../utils/helpers");
|
|
31
31
|
|
|
32
32
|
var _hrHeader = _interopRequireDefault(require("../../components/hr-header"));
|
|
@@ -39,12 +39,32 @@ var _errorBoundary = _interopRequireDefault(require("../../components/error-boun
|
|
|
39
39
|
|
|
40
40
|
var _errorLevel = _interopRequireDefault(require("../../utils/error-level"));
|
|
41
41
|
|
|
42
|
+
var _notTry = _interopRequireDefault(require("./img/not-try.png"));
|
|
43
|
+
|
|
44
|
+
var _try = _interopRequireDefault(require("./img/try.png"));
|
|
45
|
+
|
|
46
|
+
require("./index.css");
|
|
47
|
+
|
|
42
48
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
43
49
|
|
|
44
50
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
45
51
|
|
|
46
52
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
47
53
|
|
|
54
|
+
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; }
|
|
55
|
+
|
|
56
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
57
|
+
|
|
58
|
+
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."); }
|
|
59
|
+
|
|
60
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
61
|
+
|
|
62
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
63
|
+
|
|
64
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
65
|
+
|
|
66
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
67
|
+
|
|
48
68
|
var preCls = "titaui-aha-2021";
|
|
49
69
|
|
|
50
70
|
function ContentTemplate(props) {
|
|
@@ -70,19 +90,29 @@ function ContentTemplate(props) {
|
|
|
70
90
|
|
|
71
91
|
function PageLayout(props) {
|
|
72
92
|
var children = props.children;
|
|
73
|
-
var isTrial = window.BSGlobal.tenantAuthentication.Version === 1 && (0, _platform.isOfficialSite)();
|
|
74
|
-
var isTencentHr = window.BSGlobal.tenantInfo.Source === 964;
|
|
75
93
|
|
|
76
|
-
var
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
94
|
+
var _useState = (0, _react.useState)(false),
|
|
95
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
96
|
+
visible = _useState2[0],
|
|
97
|
+
setVisible = _useState2[1];
|
|
98
|
+
|
|
99
|
+
var handleShowCode = function handleShowCode() {
|
|
100
|
+
setVisible(true);
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
var isTrial = window.BSGlobal.tenantAuthentication.Version === 1 && (0, _platform.isOfficialSite)();
|
|
104
|
+
var isTencentHr = window.BSGlobal.tenantInfo.Source === 964; // const onClickKefu = () => {
|
|
105
|
+
// const kefuUrl = isTrial
|
|
106
|
+
// ? 'https://wpa1.qq.com/vZYKN3kT?_type=wpa&qidian=true'
|
|
107
|
+
// : 'https://wpa1.qq.com/o6X4XD1n?_type=wpa&qidian=true'
|
|
108
|
+
// window.open(kefuUrl)
|
|
109
|
+
// }
|
|
110
|
+
// const onClickNotice = () => {
|
|
80
111
|
// let domain = `//${location.host}/u/${window.BSGlobal.loginUserInfo.Id}/Home`;
|
|
81
112
|
// let hash = `#more/messages?messageType=1&isRead=2&messageSubNav=1`
|
|
82
113
|
// window.open(domain + hash);
|
|
83
114
|
// };
|
|
84
115
|
|
|
85
|
-
|
|
86
116
|
var getBookDemoVersion = function getBookDemoVersion() {
|
|
87
117
|
var menuVersion = window.BSGlobal.tenantAuthentication.MenuVersion;
|
|
88
118
|
|
|
@@ -97,6 +127,18 @@ function PageLayout(props) {
|
|
|
97
127
|
return _bookDemo["default"].DemoType.UniversalBookDemo;
|
|
98
128
|
};
|
|
99
129
|
|
|
130
|
+
var popup = /*#__PURE__*/_react["default"].createElement("div", {
|
|
131
|
+
className: "".concat(preCls, "__popup")
|
|
132
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
133
|
+
className: "".concat(preCls, "__popup-title")
|
|
134
|
+
}, "\u5FAE\u4FE1/\u4F01\u4E1A\u5FAE\u4FE1\u626B\u4E00\u626B"), /*#__PURE__*/_react["default"].createElement("div", {
|
|
135
|
+
className: "".concat(preCls, "__popup-content")
|
|
136
|
+
}, "\u4E13\u5C5E\u5BA2\u670D\u4E3A\u4F60\u63D0\u4F9B\u54A8\u8BE2\u670D\u52A1"), /*#__PURE__*/_react["default"].createElement("img", {
|
|
137
|
+
src: isTrial ? _try["default"] : _notTry["default"],
|
|
138
|
+
className: "".concat(preCls, "__popup-img"),
|
|
139
|
+
alt: "\u5FAE\u4FE1\u626B\u7801"
|
|
140
|
+
}));
|
|
141
|
+
|
|
100
142
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
101
143
|
className: (0, _classnames["default"])(preCls)
|
|
102
144
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -110,16 +152,33 @@ function PageLayout(props) {
|
|
|
110
152
|
}
|
|
111
153
|
}, children), !isTencentHr && /*#__PURE__*/_react["default"].createElement("div", {
|
|
112
154
|
className: (0, _classnames["default"])("".concat(preCls, "__help"))
|
|
113
|
-
}, /*#__PURE__*/_react["default"].createElement(_helpCard["default"], null)), !
|
|
155
|
+
}, /*#__PURE__*/_react["default"].createElement(_helpCard["default"], null)), !isTencentHr && !(0, _helpers.isDingDing)() && !(0, _helpers.isFeishu)() && /*#__PURE__*/_react["default"].createElement(_popup["default"], {
|
|
156
|
+
popup: popup,
|
|
157
|
+
popupTransitionName: "tita-popup-zoom-left-bottom",
|
|
158
|
+
placement: "topLeft",
|
|
159
|
+
popupAlign: {
|
|
160
|
+
offset: [-32, -10],
|
|
161
|
+
overflow: {
|
|
162
|
+
adjustX: 1,
|
|
163
|
+
adjustY: 1
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
popupVisible: visible,
|
|
167
|
+
onPopupVisibleChange: function onPopupVisibleChange(bol) {
|
|
168
|
+
return setVisible(bol);
|
|
169
|
+
}
|
|
170
|
+
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
|
|
114
171
|
overlay: "\u8054\u7CFB\u5BA2\u670D",
|
|
115
|
-
placement: "
|
|
172
|
+
placement: "right",
|
|
116
173
|
align: {
|
|
117
174
|
offset: [0, 0]
|
|
118
175
|
}
|
|
119
176
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
120
|
-
className: "".concat(preCls, "__kefu"),
|
|
121
|
-
onClick:
|
|
122
|
-
}
|
|
177
|
+
className: (0, _classnames["default"])("".concat(preCls, "__kefu"), _defineProperty({}, "".concat(preCls, "__try-kefu"), isTrial), _defineProperty({}, "".concat(preCls, "__hidden"), visible)),
|
|
178
|
+
onClick: handleShowCode
|
|
179
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
180
|
+
className: (0, _classnames["default"])(_defineProperty({}, "".concat(preCls, "__cancel"), visible))
|
|
181
|
+
})))), isTrial && !isTencentHr && /*#__PURE__*/_react["default"].createElement("div", {
|
|
123
182
|
className: "".concat(preCls, "__invite")
|
|
124
183
|
}, /*#__PURE__*/_react["default"].createElement(_invitePeople["default"], null)), isTencentHr && /*#__PURE__*/_react["default"].createElement(_hrMessage["default"], null), /*#__PURE__*/_react["default"].createElement(_errorBoundary["default"], {
|
|
125
184
|
errorLevel: _errorLevel["default"].P0,
|
|
@@ -154,7 +154,8 @@ function Header(props, ref) {
|
|
|
154
154
|
annualNum: annualNum,
|
|
155
155
|
yqmNum: yqmNum
|
|
156
156
|
})), "rootNode=".concat(JSON.stringify(rootNode)), "level2Selected=".concat(JSON.stringify(level2Selected))].join("&");
|
|
157
|
-
|
|
157
|
+
var origin = window.location.href.split('#')[0];
|
|
158
|
+
window.location.href = "".concat(origin, "/#okr/map?").concat(urlQuery);
|
|
158
159
|
};
|
|
159
160
|
|
|
160
161
|
var getTitle = function getTitle() {
|
|
@@ -205,8 +205,8 @@ var NewOkrList = function NewOkrList(props) {
|
|
|
205
205
|
params.Searchpage = 2;
|
|
206
206
|
}
|
|
207
207
|
|
|
208
|
-
if (departmentId
|
|
209
|
-
params.keyWords =
|
|
208
|
+
if (departmentId !== 0 && departmentId !== "0") {
|
|
209
|
+
params.keyWords = "";
|
|
210
210
|
}
|
|
211
211
|
|
|
212
212
|
var request;
|
|
@@ -363,7 +363,7 @@ var NewOkrList = function NewOkrList(props) {
|
|
|
363
363
|
className: "okr-list__check-filter-btn",
|
|
364
364
|
onClick: triggerAnimation
|
|
365
365
|
}, (0, _getLocale.getLocale)("OKR_MyO_Text_Check")), (0, _getLocale.getLocale)("OKR_MyO_Text_Topfiltercriteria")), /*#__PURE__*/_react["default"].createElement(_dialog["default"], {
|
|
366
|
-
zIndex:
|
|
366
|
+
zIndex: 1200,
|
|
367
367
|
noHeadLine: true,
|
|
368
368
|
visible: casesVisible,
|
|
369
369
|
onClose: onCasesCloseHandler,
|
|
@@ -59,11 +59,6 @@ function _default(props) {
|
|
|
59
59
|
return setShowKr(checked);
|
|
60
60
|
}
|
|
61
61
|
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
62
|
-
className: (0, _classnames["default"])("".concat(_precls["default"], "-share-okr__header-dark")),
|
|
63
|
-
onClick: function onClick() {
|
|
64
|
-
return setDarkTheme(!darkTheme);
|
|
65
|
-
}
|
|
66
|
-
}, "\u5207\u6362", darkTheme ? "浅色" : "深色", "\u6A21\u5F0F"), /*#__PURE__*/_react["default"].createElement("span", {
|
|
67
62
|
className: (0, _classnames["default"])("".concat(_precls["default"], "-share-okr__header-direction"))
|
|
68
63
|
}, /*#__PURE__*/_react["default"].createElement(_iconButtonList["default"], {
|
|
69
64
|
items: iconButtons,
|
|
Binary file
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
.tita-pay-page {
|
|
2
|
+
width: 100vw;
|
|
3
|
+
height: 100vh;
|
|
4
|
+
background: linear-gradient(180deg, #e9f1ff 0%, rgba(233, 241, 255, 0) 100%);
|
|
5
|
+
position: relative;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.tita-pay-page-layout {
|
|
9
|
+
position: absolute;
|
|
10
|
+
top: calc(50% - 40px);
|
|
11
|
+
left: 50%;
|
|
12
|
+
transform: translate(-50%, -50%);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.tita-pay-page__title {
|
|
16
|
+
display: flex;
|
|
17
|
+
justify-content: center;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.tita-pay-page__card {
|
|
21
|
+
width: 444px;
|
|
22
|
+
height: 469px;
|
|
23
|
+
background: #ffffff;
|
|
24
|
+
box-shadow: 0px 12px 20px 0px rgba(127, 145, 180, 0.2);
|
|
25
|
+
border-radius: 24px;
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
align-items: center;
|
|
29
|
+
margin-top: 21px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.tita-pay-page__card__success-image {
|
|
33
|
+
width: 194px;
|
|
34
|
+
height: 194px;
|
|
35
|
+
margin-top: 76px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.tita-pay-page__card__success-message {
|
|
39
|
+
font-weight: 600;
|
|
40
|
+
margin-top: 28px;
|
|
41
|
+
font-size: 20px;
|
|
42
|
+
color: #3f4755;
|
|
43
|
+
line-height: 32px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.tita-pay-page__card__success-promptMes {
|
|
47
|
+
font-size: 14px;
|
|
48
|
+
font-weight: 400;
|
|
49
|
+
color: #3f4755;
|
|
50
|
+
line-height: 22px;
|
|
51
|
+
margin-top: 12px;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.tita-pay-page__card-title {
|
|
55
|
+
font-size: 20px;
|
|
56
|
+
color: #141c28;
|
|
57
|
+
line-height: 30px;
|
|
58
|
+
margin-top: 44px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.tita-pay-page__card-price {
|
|
62
|
+
margin: 12px 0 17px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.tita-pay-page__card-qrcode {
|
|
66
|
+
width: 240px;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.tita-pay-page__card-qrcode > img {
|
|
70
|
+
width: 100%;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.tita-pay-page__card-promptMes {
|
|
74
|
+
margin-top: 20px;
|
|
75
|
+
font-size: 16px;
|
|
76
|
+
font-weight: 400;
|
|
77
|
+
color: #3f4755;
|
|
78
|
+
line-height: 22px;
|
|
79
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _success = _interopRequireDefault(require("./image/success.png"));
|
|
11
|
+
|
|
12
|
+
require("./index.css");
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
+
|
|
16
|
+
var preCls = "tita-pay-page";
|
|
17
|
+
|
|
18
|
+
var payPage = function payPage(_ref) {
|
|
19
|
+
var title = _ref.title,
|
|
20
|
+
cardTitle = _ref.cardTitle,
|
|
21
|
+
price = _ref.price,
|
|
22
|
+
qrcode = _ref.qrcode,
|
|
23
|
+
promptMes = _ref.promptMes,
|
|
24
|
+
isSuccessPay = _ref.isSuccessPay,
|
|
25
|
+
successMes = _ref.successMes;
|
|
26
|
+
|
|
27
|
+
var renderSuccessCard = function renderSuccessCard() {
|
|
28
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("img", {
|
|
29
|
+
className: "".concat(preCls, "__card__success-image"),
|
|
30
|
+
src: _success["default"],
|
|
31
|
+
alt: ""
|
|
32
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
33
|
+
className: "".concat(preCls, "__card__success-message")
|
|
34
|
+
}, "\u606D\u559C\u60A8\uFF0C\u652F\u4ED8\u6210\u529F"), /*#__PURE__*/_react["default"].createElement("div", {
|
|
35
|
+
className: "".concat(preCls, "__card__success-promptMes")
|
|
36
|
+
}, successMes));
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
var renderCard = function renderCard() {
|
|
40
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
41
|
+
className: "".concat(preCls, "__card-title")
|
|
42
|
+
}, cardTitle), /*#__PURE__*/_react["default"].createElement("div", {
|
|
43
|
+
className: "".concat(preCls, "__card-price")
|
|
44
|
+
}, price), /*#__PURE__*/_react["default"].createElement("div", {
|
|
45
|
+
className: "".concat(preCls, "__card-qrcode")
|
|
46
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
47
|
+
src: qrcode,
|
|
48
|
+
alt: ""
|
|
49
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
50
|
+
className: "".concat(preCls, "__card-promptMes")
|
|
51
|
+
}, qrcode ? promptMes : "订单获取失败,请返回重试"));
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
55
|
+
className: "".concat(preCls)
|
|
56
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
57
|
+
className: "".concat(preCls, "-layout")
|
|
58
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
59
|
+
className: "".concat(preCls, "__title")
|
|
60
|
+
}, title), /*#__PURE__*/_react["default"].createElement("div", {
|
|
61
|
+
className: "".concat(preCls, "__card")
|
|
62
|
+
}, isSuccessPay ? renderSuccessCard() : renderCard())));
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
var _default = payPage;
|
|
66
|
+
exports["default"] = _default;
|
|
@@ -21,7 +21,7 @@ exports.getUserInfoFun = getUserInfoFun;
|
|
|
21
21
|
|
|
22
22
|
var saveUserInfo = function saveUserInfo(_ref) {
|
|
23
23
|
var data = _ref.data;
|
|
24
|
-
return (0, _request.rput)("v1")("manage/user/
|
|
24
|
+
return (0, _request.rput)("v1")("manage/user/updatebasic", data, {
|
|
25
25
|
headers: {
|
|
26
26
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
27
27
|
},
|
package/lib/utils/auth.js
CHANGED
|
@@ -92,8 +92,10 @@ var OAuth = /*#__PURE__*/function (_BaseAuth) {
|
|
|
92
92
|
}, {
|
|
93
93
|
key: "isPrincipalUser",
|
|
94
94
|
value: function isPrincipalUser() {
|
|
95
|
+
var _this$principalUser;
|
|
96
|
+
|
|
95
97
|
// console.log('o isp', this.userId, this.principalUser.userId)
|
|
96
|
-
return this.userId == this.principalUser.userId;
|
|
98
|
+
return this.userId == ((_this$principalUser = this.principalUser) === null || _this$principalUser === void 0 ? void 0 : _this$principalUser.userId);
|
|
97
99
|
} // 有操作OKR的權限
|
|
98
100
|
|
|
99
101
|
}, {
|
|
@@ -139,8 +141,10 @@ var KRAuth = /*#__PURE__*/function (_BaseAuth2) {
|
|
|
139
141
|
}, {
|
|
140
142
|
key: "isPrincipalUser",
|
|
141
143
|
value: function isPrincipalUser() {
|
|
144
|
+
var _this$user;
|
|
145
|
+
|
|
142
146
|
// console.log('kr isp', this.userId, this.user.userId)
|
|
143
|
-
return this.userId == this.user.userId;
|
|
147
|
+
return this.userId == ((_this$user = this.user) === null || _this$user === void 0 ? void 0 : _this$user.userId);
|
|
144
148
|
} // 有操作KR的權限
|
|
145
149
|
|
|
146
150
|
}, {
|
|
@@ -178,15 +182,19 @@ var EAuth = /*#__PURE__*/function (_BaseAuth3) {
|
|
|
178
182
|
_createClass(EAuth, [{
|
|
179
183
|
key: "isCreater",
|
|
180
184
|
value: function isCreater() {
|
|
185
|
+
var _this$user2;
|
|
186
|
+
|
|
181
187
|
// console.log('e iscreater', this.userId, this.user.userId)
|
|
182
|
-
return this.userId == this.user.userId;
|
|
188
|
+
return this.userId == ((_this$user2 = this.user) === null || _this$user2 === void 0 ? void 0 : _this$user2.userId);
|
|
183
189
|
} // 負責人
|
|
184
190
|
|
|
185
191
|
}, {
|
|
186
192
|
key: "isPrincipalUser",
|
|
187
193
|
value: function isPrincipalUser() {
|
|
194
|
+
var _this$principalUser2;
|
|
195
|
+
|
|
188
196
|
// console.log('e isp', this.userId, this.principalUser.userId)
|
|
189
|
-
return this.userId == this.principalUser.userId;
|
|
197
|
+
return this.userId == ((_this$principalUser2 = this.principalUser) === null || _this$principalUser2 === void 0 ? void 0 : _this$principalUser2.userId);
|
|
190
198
|
} // 有操作KR的權限
|
|
191
199
|
|
|
192
200
|
}, {
|
|
@@ -268,7 +276,9 @@ var ChildAuth = /*#__PURE__*/function (_BaseAuth5) {
|
|
|
268
276
|
_createClass(ChildAuth, [{
|
|
269
277
|
key: "isPrincipalUser",
|
|
270
278
|
value: function isPrincipalUser() {
|
|
271
|
-
|
|
279
|
+
var _this$principalUser3;
|
|
280
|
+
|
|
281
|
+
return this.userId == ((_this$principalUser3 = this.principalUser) === null || _this$principalUser3 === void 0 ? void 0 : _this$principalUser3.userId);
|
|
272
282
|
} // 超管、助理、目标管理员以及目标负责人可以修改此目标下对齐子目标的权重;
|
|
273
283
|
|
|
274
284
|
}, {
|