@titaui/pc 1.5.82 → 1.5.83
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/icon-avatar/index.css +15 -0
- package/lib/components/avatar/icon-avatar/index.js +50 -0
- package/lib/components/avatar/index.js +9 -1
- package/lib/components/avatar/num-avatar/index.css +12 -0
- package/lib/components/avatar/num-avatar/index.js +34 -0
- package/lib/components/button/admin-button/default.js +35 -0
- package/lib/components/button/admin-button/drop-down-arrow.js +93 -0
- package/lib/components/button/admin-button/index.css +86 -0
- package/lib/components/button/admin-button/index.js +40 -0
- package/lib/components/button/admin-button/primary.js +33 -0
- package/lib/components/button/admin-button/secondary.js +35 -0
- package/lib/components/button/default-button/index.css +49 -0
- package/lib/components/button/default-button/index.js +51 -0
- package/lib/components/button/export-button/index.css +51 -0
- package/lib/components/button/export-button/index.js +81 -0
- package/lib/components/button/images/daoru.svg +18 -0
- package/lib/components/button/index.js +23 -0
- package/lib/components/button/interface.js +5 -0
- package/lib/components/change-okr/Filter.js +133 -65
- package/lib/components/change-okr/Item.js +6 -0
- package/lib/components/change-okr/filterTab.js +2 -0
- package/lib/components/change-okr/index.js +2 -2
- package/lib/components/checkbox/index.js +4 -3
- package/lib/components/communication/CommunicationRecord.js +116 -161
- package/lib/components/communication/ConvertUserName.js +1 -1
- package/lib/components/communication/index.css +63 -0
- package/lib/components/communication/index.js +53 -28
- package/lib/components/communication/style.js +21 -25
- package/lib/components/create-okr/animation/check-animation.js +2746 -0
- package/lib/components/create-okr/constant.js +27 -0
- package/lib/components/create-okr/createCycle.js +193 -0
- package/lib/components/create-okr/createSuccessCmp.js +233 -0
- package/lib/components/create-okr/createSuccessCmpWrapper.js +20 -0
- package/lib/components/create-okr/fields/date-cycle.js +98 -0
- package/lib/components/create-okr/fields/index.css +346 -0
- package/lib/components/create-okr/fields/index.js +17 -0
- package/lib/components/create-okr/fields/input-with-err-popup.js +57 -0
- package/lib/components/create-okr/fields/o-new-name.js +197 -0
- package/lib/components/create-okr/fields/okr-case.js +98 -0
- package/lib/components/create-okr/fields/okr-classify.js +51 -0
- package/lib/components/create-okr/fields/okr-create-suggest.js +147 -0
- package/lib/components/create-okr/fields/okr-new-user-selector.js +106 -0
- package/lib/components/create-okr/fields/okr-parent.js +157 -0
- package/lib/components/create-okr/fields/okr-type-detail.js +196 -0
- package/lib/components/create-okr/fields/okr-type.js +131 -0
- package/lib/components/create-okr/fields/okr-visibility-detail.js +224 -0
- package/lib/components/create-okr/fields/okr-visibility.js +169 -0
- package/lib/components/create-okr/img/check-normal.svg +29 -0
- package/lib/components/create-okr/img/check-right.svg +16 -0
- package/lib/components/create-okr/img/check-wrong.svg +29 -0
- package/lib/components/create-okr/img/create-success-head.png +0 -0
- package/lib/components/create-okr/img/create-success-left-quotation.svg +14 -0
- package/lib/components/create-okr/img/create-success-message.svg +1 -0
- package/lib/components/create-okr/img/create-success-right-quotation.svg +14 -0
- package/lib/components/create-okr/img/create-success-shadow.svg +23 -0
- package/lib/components/create-okr/img/example.svg +11 -0
- package/lib/components/create-okr/img/hand.svg +12 -0
- package/lib/components/create-okr/img/kr-add.svg +12 -0
- package/lib/components/create-okr/img/left-quotation.svg +12 -0
- package/lib/components/create-okr/img/light.svg +1 -0
- package/lib/components/create-okr/img/pack-up.js +28 -0
- package/lib/components/create-okr/img/qr-code.png +0 -0
- package/lib/components/create-okr/img/right-quotation.svg +12 -0
- package/lib/components/create-okr/img/shower.png +0 -0
- package/lib/components/create-okr/img/target.svg +19 -0
- package/lib/components/create-okr/img/teach-okr.svg +17 -0
- package/lib/components/create-okr/img/wave.png +0 -0
- package/lib/components/create-okr/img/weight.svg +12 -0
- package/lib/components/create-okr/index.css +446 -0
- package/lib/components/create-okr/index.js +911 -0
- package/lib/components/create-okr/interface.js +5 -0
- package/lib/components/create-okr/kr-items/index.css +180 -0
- package/lib/components/create-okr/kr-items/kr-item-weight.js +194 -0
- package/lib/components/create-okr/kr-items/krDatas.js +299 -0
- package/lib/components/create-okr/kr-items/krItem.js +167 -0
- package/lib/components/create-okr/objectType.js +273 -0
- package/lib/components/create-okr/request-api.js +220 -0
- package/lib/components/create-okr/style.js +100 -0
- package/lib/components/create-okr/utils/getCreateOkrSurpassPercent.js +124 -0
- package/lib/components/create-okr/utils/helper.js +99 -0
- package/lib/components/create-okr/utils/index.js +23 -0
- package/lib/components/dropdown-layer/icon-item.js +5 -3
- package/lib/components/dropdown-layer/index.css +16 -0
- package/lib/components/dropdown-layer/index.js +21 -14
- package/lib/components/dynamic/components/condition-render/index.js +20 -0
- package/lib/components/dynamic/components/dangerous-html/index.js +22 -0
- package/lib/components/dynamic/components/dynamic-search-input/index.css +78 -0
- package/lib/components/dynamic/components/dynamic-search-input/index.js +192 -0
- package/lib/components/dynamic/components/obj-status/index.css +22 -0
- package/lib/components/dynamic/components/obj-status/index.js +38 -0
- package/lib/components/dynamic/components/percent/index.css +21 -0
- package/lib/components/dynamic/components/percent/index.js +38 -0
- package/lib/components/dynamic/components/title/index.css +35 -0
- package/lib/components/dynamic/components/title/index.js +59 -0
- package/lib/components/dynamic/constant.js +97 -0
- package/lib/components/dynamic/context/index.js +13 -0
- package/lib/components/dynamic/dynamic-item/components/header/index.css +101 -0
- package/lib/components/dynamic/dynamic-item/components/header/index.js +299 -0
- package/lib/components/dynamic/dynamic-item/components/icon/index.css +10 -0
- package/lib/components/dynamic/dynamic-item/components/icon/index.js +35 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align.svg +22 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-relative.svg +22 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.css +95 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +173 -0
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +59 -0
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +107 -0
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +48 -0
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +89 -0
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +96 -0
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +171 -0
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +67 -0
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +110 -0
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/constant.js +16 -0
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/img/milestone.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +111 -0
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +158 -0
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +95 -0
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +215 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/constant.js +16 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/img/project.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +91 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +125 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-relative.svg +22 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.css +95 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +192 -0
- package/lib/components/dynamic/dynamic-item/dynamic-replay/index.css +138 -0
- package/lib/components/dynamic/dynamic-item/dynamic-replay/index.js +183 -0
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +153 -0
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +138 -0
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.css +97 -0
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +207 -0
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +59 -0
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +107 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/constant.js +50 -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/dynamic-item/dynamic-task/index.css +111 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +164 -0
- package/lib/components/dynamic/dynamic-item/index.css +128 -0
- package/lib/components/dynamic/dynamic-item/index.js +352 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/like-ranking.svg +23 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-1.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-2.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-3.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/index.css +126 -0
- package/lib/components/dynamic/dynamic-like-ranking/index.js +157 -0
- package/lib/components/dynamic/dynamic-like-ranking/item.js +107 -0
- package/lib/components/dynamic/dynamic-like-ranking/mock.js +84 -0
- package/lib/components/dynamic/dynamic-liking/image/like-dynamic.svg +30 -0
- package/lib/components/dynamic/dynamic-liking/index.css +81 -0
- package/lib/components/dynamic/dynamic-liking/index.js +76 -0
- package/lib/components/dynamic/dynamic-liking/item.js +91 -0
- package/lib/components/dynamic/dynamic-liking/mock.js +83 -0
- package/lib/components/dynamic/dynamic-list/index.css +36 -0
- package/lib/components/dynamic/dynamic-list/index.js +61 -0
- package/lib/components/dynamic/dynamic-topping/image/quotationMark.svg +16 -0
- package/lib/components/dynamic/dynamic-topping/image/topIcon.svg +30 -0
- package/lib/components/dynamic/dynamic-topping/index.css +148 -0
- package/lib/components/dynamic/dynamic-topping/index.js +80 -0
- package/lib/components/dynamic/dynamic-topping/interface.js +5 -0
- package/lib/components/dynamic/dynamic-topping/item.js +140 -0
- package/lib/components/dynamic/dynamic-topping/request-api.js +36 -0
- package/lib/components/dynamic/dynamic.css +204 -0
- package/lib/components/dynamic/dynamic.js +391 -0
- package/lib/components/dynamic/export-module/index.js +33 -0
- package/lib/components/dynamic/img/dynamic-P1.svg +15 -0
- package/lib/components/dynamic/img/dynamic-P2.svg +15 -0
- package/lib/components/dynamic/img/dynamic-P3.svg +15 -0
- package/lib/components/dynamic/img/dynamic-P4.svg +15 -0
- package/lib/components/dynamic/img/dynamic-P5.svg +15 -0
- package/lib/components/dynamic/img/dynamic-delay.svg +17 -0
- package/lib/components/dynamic/img/dynamic-desire.svg +61 -0
- package/lib/components/dynamic/img/dynamic-empty.png +0 -0
- package/lib/components/dynamic/img/dynamic-end.svg +17 -0
- package/lib/components/dynamic/img/dynamic-left-quoto.svg +13 -0
- package/lib/components/dynamic/img/dynamic-loading.gif +0 -0
- package/lib/components/dynamic/img/dynamic-normal.svg +17 -0
- package/lib/components/dynamic/img/dynamic-promise.svg +61 -0
- package/lib/components/dynamic/img/dynamic-reword.svg +24 -0
- package/lib/components/dynamic/img/dynamic-right-quoto.svg +13 -0
- package/lib/components/dynamic/img/dynamic-risk.svg +17 -0
- package/lib/components/dynamic/img/dynamic-submit-delay.svg +16 -0
- package/lib/components/dynamic/img/dynamic-submit-normal.svg +18 -0
- package/lib/components/dynamic/img/dynamic-top.svg +14 -0
- package/lib/components/dynamic/index.js +27 -0
- package/lib/components/dynamic/interface.js +5 -0
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.js +37 -0
- package/lib/components/dynamic/quick-operation/components/create-okr/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-okr/index.js +37 -0
- package/lib/components/dynamic/quick-operation/components/create-share/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-share/index.js +37 -0
- package/lib/components/dynamic/quick-operation/components/create-task/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-task/index.js +42 -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/dynamic/quick-operation/index.css +51 -0
- package/lib/components/dynamic/quick-operation/index.js +112 -0
- package/lib/components/dynamic/request-api.js +92 -0
- package/lib/components/dynamic/util.js +140 -0
- package/lib/components/emotionsSelector/style.js +1 -1
- package/lib/components/file-list/components/single-file/index.css +84 -0
- package/lib/components/file-list/components/single-file/index.js +115 -0
- package/lib/components/file-list/img/new-file-list-doc.svg +1 -0
- package/lib/components/file-list/img/new-file-list-other.svg +1 -0
- package/lib/components/file-list/img/new-file-list-pdf.svg +1 -0
- package/lib/components/file-list/img/new-file-list-ppt.svg +1 -0
- package/lib/components/file-list/img/new-file-list-radio.svg +1 -0
- package/lib/components/file-list/img/new-file-list-video.svg +1 -0
- package/lib/components/file-list/img/new-file-list-xls.svg +1 -0
- package/lib/components/file-list/index.css +5 -0
- package/lib/components/file-list/index.js +61 -0
- package/lib/components/file-list/interface.js +5 -0
- package/lib/components/file-list/util.js +78 -0
- package/lib/components/form/form-fields/input/index.css +11 -0
- package/lib/components/form/form-fields/input/index.js +3 -1
- package/lib/components/grid-page/image/{Assistant.svg → assistant.svg} +0 -0
- package/lib/components/grid-page/image/{Boss.svg → boss.svg} +0 -0
- package/lib/components/grid-page/image/{Default-background.png → default-background.png} +0 -0
- package/lib/components/grid-page/image/{UserManager.svg → userManager.svg} +0 -0
- package/lib/components/grid-page/personal-info/index.js +5 -5
- package/lib/components/img-viewer/icon/enlarge.js +30 -0
- package/lib/components/img-viewer/icon/left-rotate.js +46 -0
- package/lib/components/img-viewer/icon/right-rotate.js +44 -0
- package/lib/components/img-viewer/icon/shrink.js +37 -0
- package/lib/components/img-viewer/image/loading.gif +0 -0
- package/lib/components/img-viewer/index.css +155 -0
- package/lib/components/img-viewer/index.js +228 -0
- package/lib/components/img-viewer/interface.js +5 -0
- package/lib/components/img-viewer/util.js +16 -0
- package/lib/components/mblog/components/MblogAction.js +10 -6
- package/lib/components/mblog/index.js +24 -11
- package/lib/components/mblog/style.js +8 -8
- package/lib/components/okr-detail/components/header/index.css +4 -0
- package/lib/components/okr-detail/components/header/o-cycle.js +2 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +15 -8
- package/lib/components/okr-flow/child-node/work-node.js +7 -1
- package/lib/components/okr-period-selector/select-cycle.js +139 -151
- package/lib/components/okr-progress-detail/index.css +1 -0
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +5 -5
- package/lib/components/okr-review/ReviewPop/index.js +4 -4
- package/lib/components/period-selector/common.js +168 -17
- package/lib/components/period-selector/components/selector/index.js +103 -38
- package/lib/components/period-selector/components/selector/style.js +23 -9
- package/lib/components/period-selector/index.js +29 -28
- package/lib/components/popup/index.js +3 -1
- package/lib/components/publish-dynamic-modal/index.js +13 -0
- package/lib/components/publish-dynamic-modal/interface.js +5 -0
- package/lib/components/publish-dynamic-modal/publish-dynamic-modal.css +3 -0
- package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +191 -0
- package/lib/components/publish-dynamic-modal/requist-api.js +48 -0
- package/lib/components/radio/index.css +5 -0
- package/lib/components/radio/radio.js +12 -4
- package/lib/components/search-key-handle/index.js +39 -0
- package/lib/components/table/index.css +0 -1
- package/lib/components/upload/components/uploadedPreview.js +62 -54
- package/lib/components/upload/img/doc.svg +1 -0
- package/lib/components/upload/img/other.svg +1 -0
- package/lib/components/upload/img/pdf.svg +1 -0
- package/lib/components/upload/img/ppt.svg +1 -0
- package/lib/components/upload/img/radio.svg +1 -0
- package/lib/components/upload/img/video.svg +1 -0
- package/lib/components/upload/img/xls.svg +1 -0
- package/lib/components/upload/index.css +26 -0
- package/lib/components/upload/index.js +89 -57
- package/lib/components/upload/style.js +7 -7
- package/lib/components/upload/type.js +15 -15
- package/lib/components/upload/util.js +102 -0
- package/lib/components/upvote/index.js +37 -14
- package/lib/components/user-selector/export-modules/field-tree-selector/index.css +4 -0
- package/lib/components/user-selector/export-modules/field-tree-selector/index.js +50 -24
- package/lib/components/user-selector/export-modules/field-tree-selector/single-selector/index.js +11 -2
- package/lib/components/user-selector/layout/index.css +1 -1
- package/lib/components-v1/buttonv2/ButtonLinked.js +35 -0
- package/lib/components-v1/buttonv2/ButtonOutlined.js +64 -0
- package/lib/components-v1/buttonv2/ButtonRounded.js +101 -0
- package/lib/components-v1/buttonv2/DefaultButton.js +86 -0
- package/lib/components-v1/buttonv2/index.js +37 -0
- package/lib/components-v1/buttonv2/style/style.js +53 -0
- package/lib/components-v1/buttonv2/style/theme.css +3 -0
- package/lib/components-v1/confirm/index.js +158 -0
- package/lib/index.js +49 -5
- package/lib/pages/dynamic/index.css +5 -0
- package/lib/pages/dynamic/index.js +25 -0
- package/lib/pages/home-page/components/data-list/nav-selector/index.js +18 -0
- package/lib/pages/home-page/components/data-list/table/utils-function.js +6 -3
- package/lib/pages/like-ranking/column.js +141 -0
- package/lib/pages/like-ranking/filter-buttons/department.js +44 -0
- package/lib/pages/like-ranking/filter-buttons/group.js +34 -0
- package/lib/pages/like-ranking/filter-buttons/index.css +19 -0
- package/lib/pages/like-ranking/filter-buttons/index.js +40 -0
- package/lib/pages/like-ranking/filter-buttons/modular.js +110 -0
- package/lib/pages/like-ranking/filter-buttons/name.js +73 -0
- package/lib/pages/like-ranking/filter-buttons/search-dropdown/index.css +27 -0
- package/lib/pages/like-ranking/filter-buttons/search-dropdown/index.js +38 -0
- package/lib/pages/like-ranking/filter-buttons/timer.js +56 -0
- package/lib/pages/like-ranking/image/dynamic-empty.png +0 -0
- package/lib/pages/like-ranking/image/loading.gif +0 -0
- package/lib/pages/like-ranking/image/ranking-1.png +0 -0
- package/lib/pages/like-ranking/image/ranking-2.png +0 -0
- package/lib/pages/like-ranking/image/ranking-3.png +0 -0
- package/lib/pages/like-ranking/index.css +185 -0
- package/lib/pages/like-ranking/index.js +252 -0
- package/lib/pages/like-ranking/mock.js +366 -0
- package/lib/pages/like-ranking/request-api.js +15 -0
- package/lib/utils/auth.js +46 -5
- package/lib/utils/bs-global.js +26 -2
- package/lib/utils/format-time.js +161 -0
- package/lib/utils/helpers.js +41 -0
- package/lib/utils/roundWeight.js +105 -0
- package/lib/utils/tools.js +140 -20
- package/package.json +2 -2
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.SingleFile = exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _singleFile = _interopRequireDefault(require("./components/single-file"));
|
|
13
|
+
|
|
14
|
+
var _imgViewer = _interopRequireDefault(require("../img-viewer"));
|
|
15
|
+
|
|
16
|
+
var _util = require("./util");
|
|
17
|
+
|
|
18
|
+
require("./index.css");
|
|
19
|
+
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
|
+
|
|
22
|
+
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); }
|
|
23
|
+
|
|
24
|
+
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; }
|
|
25
|
+
|
|
26
|
+
var prefix = "titaui-new-file-list";
|
|
27
|
+
|
|
28
|
+
var FileList = function FileList(_ref) {
|
|
29
|
+
var data = _ref.data,
|
|
30
|
+
_ref$showDownload = _ref.showDownload,
|
|
31
|
+
showDownload = _ref$showDownload === void 0 ? true : _ref$showDownload;
|
|
32
|
+
var imgViewerRef = (0, _react.useRef)();
|
|
33
|
+
|
|
34
|
+
var handleImgPreview = function handleImgPreview(index) {
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
imgViewerRef.current && imgViewerRef.current.show(index);
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
40
|
+
className: prefix
|
|
41
|
+
}, data.map(function (file, index) {
|
|
42
|
+
return /*#__PURE__*/_react["default"].createElement(_singleFile["default"], {
|
|
43
|
+
key: file.documentSource + index,
|
|
44
|
+
data: file,
|
|
45
|
+
index: index,
|
|
46
|
+
showDownload: showDownload,
|
|
47
|
+
onPreview: handleImgPreview
|
|
48
|
+
});
|
|
49
|
+
}), /*#__PURE__*/_react["default"].createElement(_imgViewer["default"], {
|
|
50
|
+
showDownload: showDownload,
|
|
51
|
+
data: data.filter(function (file) {
|
|
52
|
+
return (0, _util.isImg)(file.fileType);
|
|
53
|
+
}),
|
|
54
|
+
ref: imgViewerRef
|
|
55
|
+
}));
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
var _default = FileList;
|
|
59
|
+
exports["default"] = _default;
|
|
60
|
+
var SingleFile = _singleFile["default"];
|
|
61
|
+
exports.SingleFile = SingleFile;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.isImg = exports.getFileTypeMapIcon = void 0;
|
|
7
|
+
|
|
8
|
+
var _newFileListDoc = _interopRequireDefault(require("./img/new-file-list-doc.svg"));
|
|
9
|
+
|
|
10
|
+
var _newFileListOther = _interopRequireDefault(require("./img/new-file-list-other.svg"));
|
|
11
|
+
|
|
12
|
+
var _newFileListPdf = _interopRequireDefault(require("./img/new-file-list-pdf.svg"));
|
|
13
|
+
|
|
14
|
+
var _newFileListPpt = _interopRequireDefault(require("./img/new-file-list-ppt.svg"));
|
|
15
|
+
|
|
16
|
+
var _newFileListRadio = _interopRequireDefault(require("./img/new-file-list-radio.svg"));
|
|
17
|
+
|
|
18
|
+
var _newFileListVideo = _interopRequireDefault(require("./img/new-file-list-video.svg"));
|
|
19
|
+
|
|
20
|
+
var _newFileListXls = _interopRequireDefault(require("./img/new-file-list-xls.svg"));
|
|
21
|
+
|
|
22
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
|
+
|
|
24
|
+
var getFileTypeMapIcon = function getFileTypeMapIcon(fileType) {
|
|
25
|
+
var isImg = false;
|
|
26
|
+
var backGroundColor = '';
|
|
27
|
+
var fileImg;
|
|
28
|
+
var canPreview = false;
|
|
29
|
+
|
|
30
|
+
if (/^(jpg|png|gif|jpeg|image|JPG|PNG|GIF|JPEG)$/.test(fileType)) {
|
|
31
|
+
isImg = true;
|
|
32
|
+
canPreview = true;
|
|
33
|
+
} else if (/^(mp3|ogg|ape|flac)$/.test(fileType.toLowerCase())) {
|
|
34
|
+
fileImg = _newFileListRadio["default"];
|
|
35
|
+
backGroundColor = '#FFE6FC';
|
|
36
|
+
} else if (/^(avi|wmv|mov|mp4|rmvb)$/.test(fileType.toLowerCase())) {
|
|
37
|
+
fileImg = _newFileListVideo["default"];
|
|
38
|
+
backGroundColor = '#F5E6FF';
|
|
39
|
+
} else if (/^(pptx|ppt)$/.test(fileType.toLowerCase())) {
|
|
40
|
+
fileImg = _newFileListPpt["default"];
|
|
41
|
+
backGroundColor = '#FFF5E6';
|
|
42
|
+
canPreview = true;
|
|
43
|
+
} else if (/^(doc|docx)$/.test(fileType.toLowerCase())) {
|
|
44
|
+
fileImg = _newFileListDoc["default"];
|
|
45
|
+
backGroundColor = '#E6F0FF';
|
|
46
|
+
canPreview = true;
|
|
47
|
+
} else if (/^(xls|xlsx)$/.test(fileType.toLowerCase())) {
|
|
48
|
+
fileImg = _newFileListXls["default"];
|
|
49
|
+
backGroundColor = '#E6FFF5';
|
|
50
|
+
canPreview = true;
|
|
51
|
+
} else if (/^(pdf)$/.test(fileType.toLowerCase())) {
|
|
52
|
+
fileImg = _newFileListPdf["default"];
|
|
53
|
+
backGroundColor = '#FFE7E6';
|
|
54
|
+
canPreview = true;
|
|
55
|
+
} else {
|
|
56
|
+
fileImg = _newFileListOther["default"];
|
|
57
|
+
backGroundColor = '#E6FCFF';
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
isImg: isImg,
|
|
62
|
+
fileImg: fileImg,
|
|
63
|
+
backGroundColor: backGroundColor,
|
|
64
|
+
canPreview: canPreview
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
exports.getFileTypeMapIcon = getFileTypeMapIcon;
|
|
69
|
+
|
|
70
|
+
var isImg = function isImg(fileType) {
|
|
71
|
+
if (/^(jpg|png|gif|jpeg|image|JPG|PNG|GIF|JPEG)$/.test(fileType)) {
|
|
72
|
+
return true;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return false;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
exports.isImg = isImg;
|
|
@@ -23,6 +23,17 @@
|
|
|
23
23
|
box-sizing: border-box;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
.form-field-input__border--disabled {
|
|
27
|
+
background-color: #fafafa;
|
|
28
|
+
cursor: not-allowed;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.form-field-input__border--disabled input:disabled {
|
|
32
|
+
background-color: #fafafa;
|
|
33
|
+
cursor: not-allowed;
|
|
34
|
+
color: #3f475594;
|
|
35
|
+
}
|
|
36
|
+
|
|
26
37
|
.form-field-input__border--error {
|
|
27
38
|
box-shadow: inset 0px 0px 4px 0px rgba(240, 94, 94, 0.3) !important;
|
|
28
39
|
border: 1px solid #f05e5e !important;
|
|
@@ -64,6 +64,7 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
64
64
|
require = props.require,
|
|
65
65
|
type = props.type,
|
|
66
66
|
name = props.name,
|
|
67
|
+
disabled = props.disabled,
|
|
67
68
|
getContainer = props.getContainer;
|
|
68
69
|
var inputRef = (0, _react.useRef)();
|
|
69
70
|
|
|
@@ -162,7 +163,7 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
162
163
|
}, label), require && /*#__PURE__*/_react["default"].createElement("span", {
|
|
163
164
|
className: (0, _classnames["default"])("".concat(preCls, "__label-require"))
|
|
164
165
|
}, "*")), /*#__PURE__*/_react["default"].createElement("div", {
|
|
165
|
-
className: (0, _classnames["default"])("".concat(preCls, "__border"), (_classNames = {}, _defineProperty(_classNames, "".concat(preCls, "__border--error"), hasError), _defineProperty(_classNames, "".concat(preCls, "__border--active"), hasActive), _classNames))
|
|
166
|
+
className: (0, _classnames["default"])("".concat(preCls, "__border"), (_classNames = {}, _defineProperty(_classNames, "".concat(preCls, "__border--error"), hasError), _defineProperty(_classNames, "".concat(preCls, "__border--active"), hasActive), _defineProperty(_classNames, "".concat(preCls, "__border--disabled"), disabled), _classNames))
|
|
166
167
|
}, /*#__PURE__*/_react["default"].createElement(_errorTip["default"], {
|
|
167
168
|
placement: 'topLeft',
|
|
168
169
|
destroyTooltipOnHide: true,
|
|
@@ -176,6 +177,7 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
176
177
|
}, /*#__PURE__*/_react["default"].createElement("input", {
|
|
177
178
|
ref: inputRef,
|
|
178
179
|
type: type,
|
|
180
|
+
disabled: disabled,
|
|
179
181
|
className: (0, _classnames["default"])("".concat(preCls, "__input")),
|
|
180
182
|
value: value,
|
|
181
183
|
placeholder: placeholder,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -106,16 +106,16 @@ function PersonalInfoComponent() {
|
|
|
106
106
|
for (var item in loginUserInfo) {
|
|
107
107
|
switch (item) {
|
|
108
108
|
case 'IsBoss':
|
|
109
|
-
loginUserInfo['IsBoss'] && userRoleList.push('
|
|
109
|
+
loginUserInfo['IsBoss'] && userRoleList.push('boss');
|
|
110
110
|
break;
|
|
111
111
|
|
|
112
112
|
case 'Role':
|
|
113
113
|
loginUserInfo['Role'] === 2 && userRoleList.push('super');
|
|
114
|
-
loginUserInfo['Role'] === 4 && userRoleList.push('
|
|
114
|
+
loginUserInfo['Role'] === 4 && userRoleList.push('userManager');
|
|
115
115
|
break;
|
|
116
116
|
|
|
117
117
|
case 'IsTitaFeedSystemManager':
|
|
118
|
-
loginUserInfo['IsTitaFeedSystemManager'] && userRoleList.push('
|
|
118
|
+
loginUserInfo['IsTitaFeedSystemManager'] && userRoleList.push('assistant');
|
|
119
119
|
break;
|
|
120
120
|
}
|
|
121
121
|
}
|
|
@@ -181,7 +181,7 @@ function PersonalInfoComponent() {
|
|
|
181
181
|
style: {
|
|
182
182
|
filter: avatarUrl ? 'blur(10px)' : 'blur(6px)'
|
|
183
183
|
},
|
|
184
|
-
src: avatarUrl || require("../image/
|
|
184
|
+
src: avatarUrl || require("../image/default-background.png")
|
|
185
185
|
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
186
186
|
className: "PersonalInfoComponent-PersonalInfo__personInfo",
|
|
187
187
|
ref: toolTipRef
|
|
@@ -230,7 +230,7 @@ function PersonalInfoComponent() {
|
|
|
230
230
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
231
231
|
className: "PersonalInfoComponent-PersonalInfo__fansinfo__attention"
|
|
232
232
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
233
|
-
src: require("../image/
|
|
233
|
+
src: require("../image/visits.png")
|
|
234
234
|
}), " ", /*#__PURE__*/_react["default"].createElement("b", null, fansNum), "\u4EBA\u5173\u6CE8"), /*#__PURE__*/_react["default"].createElement("span", {
|
|
235
235
|
className: "PersonalInfoComponent-PersonalInfo__fansinfo__like"
|
|
236
236
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
|
|
12
|
+
var _default = function _default() {
|
|
13
|
+
return /*#__PURE__*/_react["default"].createElement("svg", {
|
|
14
|
+
width: "18px",
|
|
15
|
+
height: "18px",
|
|
16
|
+
viewBox: "0 0 18 18"
|
|
17
|
+
}, /*#__PURE__*/_react["default"].createElement("g", {
|
|
18
|
+
id: "APPgengduo",
|
|
19
|
+
stroke: "none",
|
|
20
|
+
"stroke-width": "1",
|
|
21
|
+
fill: "none",
|
|
22
|
+
"fill-rule": "evenodd"
|
|
23
|
+
}, /*#__PURE__*/_react["default"].createElement("path", {
|
|
24
|
+
d: "M9,0 C13.9705627,0 18,4.02943725 18,9 C18,13.9705627 13.9705627,18 9,18 C4.02943725,18 0,13.9705627 0,9 C0,4.02943725 4.02943725,0 9,0 Z M9,1.4 C4.8026359,1.4 1.4,4.8026359 1.4,9 C1.4,13.1973641 4.8026359,16.6 9,16.6 C13.1973641,16.6 16.6,13.1973641 16.6,9 C16.6,4.8026359 13.1973641,1.4 9,1.4 Z M9,5 C9.38659932,5 9.7,5.31340068 9.7,5.7 L9.7,8.3 L12.3,8.3 C12.6865993,8.3 13,8.61340068 13,9 C13,9.38659932 12.6865993,9.7 12.3,9.7 L9.7,9.7 L9.7,12.3 C9.7,12.6865993 9.38659932,13 9,13 C8.61340068,13 8.3,12.6865993 8.3,12.3 L8.3,9.7 L5.7,9.7 C5.31340068,9.7 5,9.38659932 5,9 C5,8.61340068 5.31340068,8.3 5.7,8.3 L8.3,8.3 L8.3,5.7 C8.3,5.31340068 8.61340068,5 9,5 Z",
|
|
25
|
+
fill: "currentColor",
|
|
26
|
+
"fill-rule": "nonzero"
|
|
27
|
+
})));
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
|
|
12
|
+
var _default = function _default() {
|
|
13
|
+
return /*#__PURE__*/_react["default"].createElement("svg", {
|
|
14
|
+
width: "18px",
|
|
15
|
+
height: "18px",
|
|
16
|
+
viewBox: "0 0 18 18"
|
|
17
|
+
}, /*#__PURE__*/_react["default"].createElement("g", {
|
|
18
|
+
id: "xuanzhan-ni",
|
|
19
|
+
stroke: "none",
|
|
20
|
+
"stroke-width": "1",
|
|
21
|
+
fill: "none",
|
|
22
|
+
"fill-rule": "evenodd"
|
|
23
|
+
}, /*#__PURE__*/_react["default"].createElement("g", {
|
|
24
|
+
"fill-rule": "nonzero"
|
|
25
|
+
}, /*#__PURE__*/_react["default"].createElement("g", {
|
|
26
|
+
transform: "translate(9.000000, 9.000000) scale(-1, 1) translate(-9.000000, -9.000000) "
|
|
27
|
+
}, /*#__PURE__*/_react["default"].createElement("rect", {
|
|
28
|
+
id: "\u77E9\u5F62",
|
|
29
|
+
fill: "#000000",
|
|
30
|
+
opacity: "0",
|
|
31
|
+
x: "0",
|
|
32
|
+
y: "0",
|
|
33
|
+
width: "18",
|
|
34
|
+
height: "18"
|
|
35
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
36
|
+
d: "M15.9866683,5.44069564 C17.0912378,5.44069564 17.9866683,6.33612614 17.9866683,7.44069564 L17.9866683,15.3872174 C17.9866683,16.4917869 17.0912378,17.3872174 15.9866683,17.3872174 L5.19536392,17.3872174 C4.09079442,17.3872174 3.19536392,16.4917869 3.19536392,15.3872174 L3.19536392,7.44069564 C3.19536392,6.33612614 4.09079442,5.44069564 5.19536392,5.44069564 L15.9866683,5.44069564 Z M15.9866683,6.84069564 L5.19536392,6.84069564 C4.89713016,6.84069564 4.64971717,7.05828526 4.60321691,7.34337253 L4.59536392,7.44069564 L4.59536392,15.3872174 C4.59536392,15.6854512 4.81295353,15.9328641 5.0980408,15.9793644 L5.19536392,15.9872174 L15.9866683,15.9872174 C16.284902,15.9872174 16.532315,15.7696278 16.5788153,15.4845405 L16.5866683,15.3872174 L16.5866683,7.44069564 C16.5866683,7.14246188 16.3690786,6.89504889 16.0839914,6.84854863 L15.9866683,6.84069564 Z",
|
|
37
|
+
id: "\u8DEF\u5F84",
|
|
38
|
+
fill: "currentColor"
|
|
39
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
40
|
+
d: "M9.39323348,1.18095652 C9.57194871,1.18896141 9.74286623,1.25644698 9.87884218,1.37269564 L9.91797261,1.39930436 C9.93910305,1.41886956 9.9520161,1.44 9.96101608,1.45565218 C9.98253782,1.47365218 10.020103,1.52608697 10.0549291,1.58947826 C10.0846683,1.64269564 10.1077552,1.7021739 10.1265378,1.77339131 C10.1785546,1.97564758 10.146065,2.1903618 10.0365378,2.36817392 C10.0242234,2.39020742 10.0106351,2.4115044 9.99584218,2.43195652 C9.98341528,2.45870356 9.96676797,2.48327816 9.94653782,2.50473913 L8.48066498,4.05831999 C8.19044727,4.36590239 7.70619862,4.38104544 7.3973298,4.0921972 C7.0967167,3.81106957 7.06509502,3.34518596 7.32497982,3.02602946 C7.48131917,2.83401343 7.55062013,2.71605909 7.53288269,2.67216644 C4.05222321,3.26455307 2.08014652,5.19691305 1.54992913,7.77326087 C1.46131722,8.19573767 1.04834146,8.46750123 0.625276951,8.38173913 C0.202435134,8.29387903 -0.0697751816,7.88066517 0.0164073867,7.45747826 C0.858103049,3.37304348 4.36732044,1.02834782 9.39323348,1.18095652 Z",
|
|
41
|
+
id: "\u8DEF\u5F84",
|
|
42
|
+
fill: "currentColor"
|
|
43
|
+
})))));
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
|
|
12
|
+
var _default = function _default() {
|
|
13
|
+
return /*#__PURE__*/_react["default"].createElement("svg", {
|
|
14
|
+
width: "18px",
|
|
15
|
+
height: "18px",
|
|
16
|
+
viewBox: "0 0 18 18"
|
|
17
|
+
}, /*#__PURE__*/_react["default"].createElement("g", {
|
|
18
|
+
id: "xuanzhan-sh",
|
|
19
|
+
stroke: "none",
|
|
20
|
+
"stroke-width": "1",
|
|
21
|
+
fill: "none",
|
|
22
|
+
"fill-rule": "evenodd"
|
|
23
|
+
}, /*#__PURE__*/_react["default"].createElement("g", {
|
|
24
|
+
"fill-rule": "nonzero"
|
|
25
|
+
}, /*#__PURE__*/_react["default"].createElement("rect", {
|
|
26
|
+
id: "\u77E9\u5F62",
|
|
27
|
+
fill: "#000000",
|
|
28
|
+
opacity: "0",
|
|
29
|
+
x: "0",
|
|
30
|
+
y: "0",
|
|
31
|
+
width: "18",
|
|
32
|
+
height: "18"
|
|
33
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
34
|
+
d: "M15.9866683,5.44069564 C17.0912378,5.44069564 17.9866683,6.33612614 17.9866683,7.44069564 L17.9866683,15.3872174 C17.9866683,16.4917869 17.0912378,17.3872174 15.9866683,17.3872174 L5.19536392,17.3872174 C4.09079442,17.3872174 3.19536392,16.4917869 3.19536392,15.3872174 L3.19536392,7.44069564 C3.19536392,6.33612614 4.09079442,5.44069564 5.19536392,5.44069564 L15.9866683,5.44069564 Z M15.9866683,6.84069564 L5.19536392,6.84069564 C4.89713016,6.84069564 4.64971717,7.05828526 4.60321691,7.34337253 L4.59536392,7.44069564 L4.59536392,15.3872174 C4.59536392,15.6854512 4.81295353,15.9328641 5.0980408,15.9793644 L5.19536392,15.9872174 L15.9866683,15.9872174 C16.284902,15.9872174 16.532315,15.7696278 16.5788153,15.4845405 L16.5866683,15.3872174 L16.5866683,7.44069564 C16.5866683,7.14246188 16.3690786,6.89504889 16.0839914,6.84854863 L15.9866683,6.84069564 Z",
|
|
35
|
+
id: "\u8DEF\u5F84",
|
|
36
|
+
fill: "currentColor"
|
|
37
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
38
|
+
d: "M9.39323348,1.18095652 C9.57194871,1.18896141 9.74286623,1.25644698 9.87884218,1.37269564 L9.91797261,1.39930436 C9.93910305,1.41886956 9.9520161,1.44 9.96101608,1.45565218 C9.98253782,1.47365218 10.020103,1.52608697 10.0549291,1.58947826 C10.0846683,1.64269564 10.1077552,1.7021739 10.1265378,1.77339131 C10.1785546,1.97564758 10.146065,2.1903618 10.0365378,2.36817392 C10.0242234,2.39020742 10.0106351,2.4115044 9.99584218,2.43195652 C9.98341528,2.45870356 9.96676797,2.48327816 9.94653782,2.50473913 L8.48066498,4.05831999 C8.19044727,4.36590239 7.70619862,4.38104544 7.3973298,4.0921972 C7.0967167,3.81106957 7.06509502,3.34518596 7.32497982,3.02602946 C7.48131917,2.83401343 7.55062013,2.71605909 7.53288269,2.67216644 C4.05222321,3.26455307 2.08014652,5.19691305 1.54992913,7.77326087 C1.46131722,8.19573767 1.04834146,8.46750123 0.625276951,8.38173913 C0.202435134,8.29387903 -0.0697751816,7.88066517 0.0164073867,7.45747826 C0.858103049,3.37304348 4.36732044,1.02834782 9.39323348,1.18095652 Z",
|
|
39
|
+
id: "\u8DEF\u5F84",
|
|
40
|
+
fill: "currentColor"
|
|
41
|
+
}))));
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
|
|
12
|
+
var _default = function _default() {
|
|
13
|
+
return /*#__PURE__*/_react["default"].createElement("svg", {
|
|
14
|
+
width: "18px",
|
|
15
|
+
height: "18px",
|
|
16
|
+
viewBox: "0 0 18 18"
|
|
17
|
+
}, /*#__PURE__*/_react["default"].createElement("g", {
|
|
18
|
+
id: "weikaishi",
|
|
19
|
+
stroke: "none",
|
|
20
|
+
"stroke-width": "1",
|
|
21
|
+
fill: "none",
|
|
22
|
+
"fill-rule": "evenodd"
|
|
23
|
+
}, /*#__PURE__*/_react["default"].createElement("g", null, /*#__PURE__*/_react["default"].createElement("rect", {
|
|
24
|
+
id: "Rectangle-3",
|
|
25
|
+
x: "0",
|
|
26
|
+
y: "0",
|
|
27
|
+
width: "18",
|
|
28
|
+
height: "18"
|
|
29
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
30
|
+
d: "M9,0 C13.9705627,0 18,4.02943725 18,9 C18,13.9705627 13.9705627,18 9,18 C4.02943725,18 0,13.9705627 0,9 C0,4.02943725 4.02943725,0 9,0 Z M9,1.4 C4.8026359,1.4 1.4,4.8026359 1.4,9 C1.4,13.1973641 4.8026359,16.6 9,16.6 C13.1973641,16.6 16.6,13.1973641 16.6,9 C16.6,4.8026359 13.1973641,1.4 9,1.4 Z M12.3,8.3 C12.6865993,8.3 13,8.61340068 13,9 C13,9.38659932 12.6865993,9.7 12.3,9.7 L5.7,9.7 C5.31340068,9.7 5,9.38659932 5,9 C5,8.61340068 5.31340068,8.3 5.7,8.3 L12.3,8.3 Z",
|
|
31
|
+
id: "\u5F62\u72B6\u7ED3\u5408",
|
|
32
|
+
fill: "currentColor",
|
|
33
|
+
"fill-rule": "nonzero"
|
|
34
|
+
}))));
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
exports["default"] = _default;
|
|
Binary file
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
.titaui-img-viewer {
|
|
2
|
+
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
3
|
+
user-select: none;
|
|
4
|
+
position: absolute;
|
|
5
|
+
top: 0;
|
|
6
|
+
bottom: 0;
|
|
7
|
+
left: 0;
|
|
8
|
+
right: 0;
|
|
9
|
+
z-index: 1300;
|
|
10
|
+
background: #ffffff;
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.titaui-img-viewer__header {
|
|
16
|
+
width: 100%;
|
|
17
|
+
height: 58px;
|
|
18
|
+
box-sizing: border-box;
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
justify-content: space-between;
|
|
22
|
+
box-shadow: 0px 0px 8px 0px rgba(127, 145, 180, 0.1);
|
|
23
|
+
word-break: keep-all;
|
|
24
|
+
white-space: nowrap;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.titaui-img-viewer__header-file-name {
|
|
28
|
+
font-size: 16px;
|
|
29
|
+
font-weight: 600;
|
|
30
|
+
color: #141c28;
|
|
31
|
+
line-height: 26px;
|
|
32
|
+
margin-left: 20px;
|
|
33
|
+
flex: 1;
|
|
34
|
+
overflow: hidden;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.titaui-img-viewer__header-download {
|
|
38
|
+
display: inline-flex;
|
|
39
|
+
align-items: center;
|
|
40
|
+
color: #141c28;
|
|
41
|
+
font-size: 16px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.titaui-img-viewer__header-download:hover {
|
|
45
|
+
color: #2879ff;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.titaui-img-viewer__header-download::after {
|
|
49
|
+
content: "";
|
|
50
|
+
display: inline-block;
|
|
51
|
+
width: 1px;
|
|
52
|
+
height: 22px;
|
|
53
|
+
background: linear-gradient(180deg, rgba(191, 199, 213, 0) 0%, #bfc7d5 51%, rgba(191, 199, 213, 0) 100%);
|
|
54
|
+
border-radius: 1px;
|
|
55
|
+
margin-left: 20px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.titaui-img-viewer__header-download-icon {
|
|
59
|
+
margin-right: 4px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.titaui-img-viewer__header-close {
|
|
63
|
+
color: #141c28;
|
|
64
|
+
font-weight: 600;
|
|
65
|
+
font-size: 16px;
|
|
66
|
+
margin: 0 16px;
|
|
67
|
+
cursor: pointer;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.titaui-img-viewer__body {
|
|
71
|
+
width: 100%;
|
|
72
|
+
flex: 1;
|
|
73
|
+
overflow: hidden;
|
|
74
|
+
display: flex;
|
|
75
|
+
align-items: center;
|
|
76
|
+
justify-content: center;
|
|
77
|
+
position: relative;
|
|
78
|
+
background: #f7f9fb;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.titaui-img-viewer__body-operate-btn {
|
|
82
|
+
position: absolute;
|
|
83
|
+
width: 48px;
|
|
84
|
+
height: 48px;
|
|
85
|
+
background: #ffffff;
|
|
86
|
+
box-shadow: 0px 4px 8px 0px rgba(127, 145, 180, 0.2);
|
|
87
|
+
border-radius: 24px;
|
|
88
|
+
z-index: 3;
|
|
89
|
+
display: flex;
|
|
90
|
+
align-items: center;
|
|
91
|
+
justify-content: center;
|
|
92
|
+
color: #141c28;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.titaui-img-viewer__body-operate-btn:hover {
|
|
96
|
+
cursor: pointer;
|
|
97
|
+
color: #2879ff;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.titaui-img-viewer__body-operate-btn--left {
|
|
101
|
+
left: 60px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.titaui-img-viewer__body-operate-btn--right {
|
|
105
|
+
right: 60px;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.titaui-img-viewer__body-operate-btn--disable {
|
|
109
|
+
color: #BFC7D5;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.titaui-img-viewer__body-operate-btn--disable:hover {
|
|
113
|
+
cursor: not-allowed;
|
|
114
|
+
color: #BFC7D5;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.titaui-img-viewer__body--loading {
|
|
118
|
+
position: absolute;
|
|
119
|
+
z-index: 2;
|
|
120
|
+
width: 100%;
|
|
121
|
+
height: 100%;
|
|
122
|
+
display: flex;
|
|
123
|
+
align-items: center;
|
|
124
|
+
justify-content: center;
|
|
125
|
+
background: #f7f9fb;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.titaui-img-viewer__footer {
|
|
129
|
+
position: absolute;
|
|
130
|
+
left: 50%;
|
|
131
|
+
transform: translateX(-50%);
|
|
132
|
+
bottom: 24px;
|
|
133
|
+
width: 216px;
|
|
134
|
+
height: 48px;
|
|
135
|
+
border-radius: 8px;
|
|
136
|
+
background: #ffffff;
|
|
137
|
+
box-shadow: 0px 4px 12px 0px rgba(127, 145, 180, 0.2);
|
|
138
|
+
display: flex;
|
|
139
|
+
align-items: center;
|
|
140
|
+
justify-content: center;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.titaui-img-viewer__footer-btn {
|
|
144
|
+
display: flex;
|
|
145
|
+
align-items: center;
|
|
146
|
+
justify-content: center;
|
|
147
|
+
width: 48px;
|
|
148
|
+
height: 48px;
|
|
149
|
+
color: #141c28;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.titaui-img-viewer__footer-btn:hover {
|
|
153
|
+
cursor: pointer;
|
|
154
|
+
color: #2879ff;
|
|
155
|
+
}
|