@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,30 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>置顶动态</title>
|
|
4
|
+
<defs>
|
|
5
|
+
<circle id="path-1" cx="4.16666667" cy="4.16666667" r="4.16666667"></circle>
|
|
6
|
+
<filter x="-21.4%" y="-89.9%" width="142.9%" height="279.8%" filterUnits="objectBoundingBox" id="filter-3">
|
|
7
|
+
<feGaussianBlur stdDeviation="1" in="SourceGraphic"></feGaussianBlur>
|
|
8
|
+
</filter>
|
|
9
|
+
</defs>
|
|
10
|
+
<g id="页面-2" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
11
|
+
<g id="绩效考核/@与回复/打赏" transform="translate(-1082.000000, -278.000000)">
|
|
12
|
+
<g id="动态" transform="translate(1066.000000, 264.000000)">
|
|
13
|
+
<g id="置顶动态" transform="translate(16.000000, 14.000000)">
|
|
14
|
+
<circle id="椭圆形" fill="#5C8EFF" cx="10" cy="10" r="10"></circle>
|
|
15
|
+
<g id="编组-22" transform="translate(3.213090, 6.000000)">
|
|
16
|
+
<g id="形状结合" transform="translate(2.786910, 0.000000)">
|
|
17
|
+
<mask id="mask-2" fill="white">
|
|
18
|
+
<use xlink:href="#path-1"></use>
|
|
19
|
+
</mask>
|
|
20
|
+
<use id="蒙版" fill="#FFFFFF" xlink:href="#path-1"></use>
|
|
21
|
+
<path d="M10.2801853,3.1428106 C10.8347673,3.46511621 11.1504539,3.83580442 11.1504539,4.23019237 C11.1504539,5.47283306 8.01644712,6.48019237 4.15045387,6.48019237 C0.284460621,6.48019237 -2.84954613,5.47283306 -2.84954613,4.23019237 C-2.84954613,4.22851539 -2.84954042,4.22683884 -2.84952901,4.22516273 L-1.2577765,4.5010035 C-0.785172265,5.18948386 1.45644516,5.7109616 4.15045387,5.7109616 C7.1793128,5.7109616 9.636332,5.05179396 9.65039321,4.23722128 Z" fill="#2879FF" filter="url(#filter-3)" mask="url(#mask-2)" transform="translate(4.150454, 4.811501) rotate(-15.000000) translate(-4.150454, -4.811501) "></path>
|
|
22
|
+
</g>
|
|
23
|
+
<path d="M13.5483912,2.43826668 C13.8700102,3.63856542 11.1035159,5.42274043 7.36925322,6.42333311 C3.6349905,7.42392579 0.347048662,7.26203205 0.0254295863,6.06173332 C-0.165835376,5.34792276 0.73504509,4.4276179 2.28211975,3.58842283 L2.28182412,4.54792105 C1.69502828,4.95952847 1.38922509,5.35593246 1.47431833,5.67350475 C1.68598216,6.46344494 4.23609808,6.46649321 7.17016165,5.68031324 C10.1042252,4.89413328 12.3111663,3.61643544 12.0995024,2.82649525 C12.0230062,2.54100753 11.6410777,2.35829814 11.0459776,2.27847735 C10.8979016,1.89023186 10.7402483,1.60445999 10.5721988,1.42051892 C12.2176585,1.40720458 13.365042,1.75399842 13.5483912,2.43826668 Z" id="形状结合" fill="#FFFFFF"></path>
|
|
24
|
+
<path d="M9.78691037,2.50417127 C9.41404232,1.78496057 8.81138292,1.23999086 8.09496376,1 L7.95280143,1.78102951 C8.42427797,1.9275763 8.82526021,2.27106798 9.08234723,2.72966003 L9.78691037,2.50417127 Z" id="路径" fill="#2879FF"></path>
|
|
25
|
+
</g>
|
|
26
|
+
</g>
|
|
27
|
+
</g>
|
|
28
|
+
</g>
|
|
29
|
+
</g>
|
|
30
|
+
</svg>
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
.danamic-topping {
|
|
2
|
+
margin-top: 10px;
|
|
3
|
+
width: 278px;
|
|
4
|
+
background: #ffffff;
|
|
5
|
+
box-shadow: 0px 0px 8px 0px rgba(127, 145, 180, 0.1);
|
|
6
|
+
border-radius: 12px;
|
|
7
|
+
padding: 12px 16px;
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.danamic-topping-header {
|
|
12
|
+
height: 24px;
|
|
13
|
+
font-size: 16px;
|
|
14
|
+
font-weight: 600;
|
|
15
|
+
color: #3f4755;
|
|
16
|
+
line-height: 24px;
|
|
17
|
+
margin-bottom: 10px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.danamic-topping-header-text {
|
|
21
|
+
margin-left: 4px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.danamic-topping-header-image {
|
|
25
|
+
width: 20px;
|
|
26
|
+
height: 20px;
|
|
27
|
+
position: relative;
|
|
28
|
+
top: -2px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.danamic-topping-item {
|
|
32
|
+
border-top: 1px solid #e9ecf0;
|
|
33
|
+
padding: 16px 0 12px 0;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.danamic-topping-item-header {
|
|
37
|
+
display: flex;
|
|
38
|
+
justify-content: space-between;
|
|
39
|
+
align-items: center;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.danamic-topping-item-header-left {
|
|
43
|
+
display: flex;
|
|
44
|
+
align-items: center;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.danamic-topping-item-header-left-avatar {
|
|
48
|
+
cursor: pointer;
|
|
49
|
+
width: 28px;
|
|
50
|
+
height: 28px;
|
|
51
|
+
position: relative;
|
|
52
|
+
top: -2px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.danamic-topping-item-header-left-name {
|
|
56
|
+
margin-left: 12px;
|
|
57
|
+
font-size: 12px;
|
|
58
|
+
font-weight: 500;
|
|
59
|
+
color: #3f4755;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.danamic-topping-item-header-left-name-text {
|
|
63
|
+
line-height: 18px;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.danamic-topping-item-header-left-time {
|
|
67
|
+
font-size: 12px;
|
|
68
|
+
font-weight: 400;
|
|
69
|
+
color: #89919f;
|
|
70
|
+
line-height: 18px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.danamic-topping-item-header-right {
|
|
74
|
+
font-size: 16px;
|
|
75
|
+
width: 24px;
|
|
76
|
+
height: 24px;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.danamic-topping-item-header-right-diot {
|
|
80
|
+
font-size: 16px;
|
|
81
|
+
width: 24px;
|
|
82
|
+
height: 24px;
|
|
83
|
+
display: flex;
|
|
84
|
+
align-items: center;
|
|
85
|
+
justify-content: center;
|
|
86
|
+
cursor: pointer;
|
|
87
|
+
border-radius: 4px;
|
|
88
|
+
cursor: pointer;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.danamic-topping-item-header-right-diot:hover {
|
|
92
|
+
background: #f0f4fa;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.danamic-topping-item-header-right-popup {
|
|
96
|
+
width: 132px;
|
|
97
|
+
padding: 16px 0;
|
|
98
|
+
text-align: center;
|
|
99
|
+
background: #ffffff;
|
|
100
|
+
box-shadow: 0px 4px 12px 0px rgba(127, 145, 180, 0.2);
|
|
101
|
+
border: 1px solid #f0f2f5;
|
|
102
|
+
position: relative;
|
|
103
|
+
right: -12px;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.danamic-topping-item-header-right-popup-text {
|
|
107
|
+
height: 32px;
|
|
108
|
+
line-height: 32px;
|
|
109
|
+
cursor: pointer;
|
|
110
|
+
user-select: none;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.danamic-topping-item-header-right-popup-text:hover {
|
|
114
|
+
color: #2879ff;
|
|
115
|
+
background: #f7f8fa;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.danamic-topping-item-header-right-popup-text-zhiding {
|
|
119
|
+
font-size: 16px;
|
|
120
|
+
margin-right: 11px;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.danamic-topping-item-header-right-popup::before {
|
|
124
|
+
position: absolute;
|
|
125
|
+
content: "";
|
|
126
|
+
width: 6px;
|
|
127
|
+
height: 6px;
|
|
128
|
+
background-color: #ffffff;
|
|
129
|
+
transform: rotate(-45deg);
|
|
130
|
+
border-top: 1px solid #f0f2f5;
|
|
131
|
+
border-right: 1px solid #f0f2f5;
|
|
132
|
+
top: -4px;
|
|
133
|
+
right: 14px;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.danamic-topping-item-mark {
|
|
137
|
+
display: block;
|
|
138
|
+
width: 12px;
|
|
139
|
+
height: 12px;
|
|
140
|
+
margin: 6px 0 4px 0;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.danamic-topping-item-content {
|
|
144
|
+
font-size: 14px;
|
|
145
|
+
font-weight: 400;
|
|
146
|
+
color: #3f4755;
|
|
147
|
+
line-height: 22px;
|
|
148
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
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["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
14
|
+
var _item = _interopRequireDefault(require("./item"));
|
|
15
|
+
|
|
16
|
+
var _requestApi = require("./request-api");
|
|
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
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
27
|
+
|
|
28
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
29
|
+
|
|
30
|
+
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); }
|
|
31
|
+
|
|
32
|
+
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; }
|
|
33
|
+
|
|
34
|
+
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; }
|
|
35
|
+
|
|
36
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
37
|
+
|
|
38
|
+
var preCls = "danamic-topping";
|
|
39
|
+
|
|
40
|
+
var DynamicTop = function DynamicTop() {
|
|
41
|
+
var _useState = (0, _react.useState)([]),
|
|
42
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
43
|
+
toppingData = _useState2[0],
|
|
44
|
+
setToppingData = _useState2[1];
|
|
45
|
+
|
|
46
|
+
var getData = function getData() {
|
|
47
|
+
(0, _requestApi.getDynamicTop)().then(function (res) {
|
|
48
|
+
if (res.Code === 1) {
|
|
49
|
+
setToppingData(res.Data);
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
}; // @ts-ignore
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
window.reFreshDynamicTopping = getData;
|
|
56
|
+
(0, _react.useEffect)(function () {
|
|
57
|
+
getData();
|
|
58
|
+
}, []);
|
|
59
|
+
if (!toppingData || toppingData.length === 0) return null;
|
|
60
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
61
|
+
className: (0, _classnames["default"])("".concat(preCls))
|
|
62
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
63
|
+
className: (0, _classnames["default"])("".concat(preCls, "-header"))
|
|
64
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
65
|
+
className: (0, _classnames["default"])("".concat(preCls, "-header-image")),
|
|
66
|
+
src: require("./image/topIcon.svg")
|
|
67
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
68
|
+
className: (0, _classnames["default"])("".concat(preCls, "-header-text"))
|
|
69
|
+
}, "\u7F6E\u9876\u52A8\u6001")), toppingData.map(function (item, index) {
|
|
70
|
+
if (index > 2) return;
|
|
71
|
+
return /*#__PURE__*/_react["default"].createElement(_item["default"], {
|
|
72
|
+
key: index,
|
|
73
|
+
refresh: getData,
|
|
74
|
+
data: item
|
|
75
|
+
});
|
|
76
|
+
}));
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
var _default = DynamicTop;
|
|
80
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,140 @@
|
|
|
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["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
14
|
+
var _avatar = _interopRequireDefault(require("../../avatar"));
|
|
15
|
+
|
|
16
|
+
var _popup = _interopRequireDefault(require("../../popup"));
|
|
17
|
+
|
|
18
|
+
var _requestApi = require("./request-api");
|
|
19
|
+
|
|
20
|
+
require("./index.css");
|
|
21
|
+
|
|
22
|
+
var _popDownNotification = require("../../pop-down-notification");
|
|
23
|
+
|
|
24
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
|
+
|
|
26
|
+
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); }
|
|
27
|
+
|
|
28
|
+
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; }
|
|
29
|
+
|
|
30
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
31
|
+
|
|
32
|
+
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."); }
|
|
33
|
+
|
|
34
|
+
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); }
|
|
35
|
+
|
|
36
|
+
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; }
|
|
37
|
+
|
|
38
|
+
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; }
|
|
39
|
+
|
|
40
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
41
|
+
|
|
42
|
+
var preCls = "danamic-topping-item";
|
|
43
|
+
|
|
44
|
+
var Item = function Item(_ref) {
|
|
45
|
+
var _ref$data = _ref.data,
|
|
46
|
+
data = _ref$data === void 0 ? {} : _ref$data,
|
|
47
|
+
refresh = _ref.refresh;
|
|
48
|
+
|
|
49
|
+
var _useState = (0, _react.useState)(function () {
|
|
50
|
+
if (!data) return {};
|
|
51
|
+
var publishUser = data.publishUser;
|
|
52
|
+
return {
|
|
53
|
+
name: publishUser.name,
|
|
54
|
+
avatar: publishUser.avatar,
|
|
55
|
+
userId: publishUser.userId,
|
|
56
|
+
userType: publishUser.userType
|
|
57
|
+
};
|
|
58
|
+
}),
|
|
59
|
+
_useState2 = _slicedToArray(_useState, 1),
|
|
60
|
+
user = _useState2[0];
|
|
61
|
+
|
|
62
|
+
var onHandlerCancel = function onHandlerCancel(userId) {
|
|
63
|
+
(0, _requestApi.delDynamicTop)(userId).then(function (res) {
|
|
64
|
+
if (res.Code == 1) {
|
|
65
|
+
_popDownNotification.Toast.Success("操作成功");
|
|
66
|
+
|
|
67
|
+
setTimeout(function () {
|
|
68
|
+
refresh && refresh();
|
|
69
|
+
}, 1000);
|
|
70
|
+
} else {
|
|
71
|
+
_popDownNotification.Toast.Error(res.Message);
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
var popupContent = function popupContent() {
|
|
77
|
+
var preCla = "".concat(preCls, "-header-right-popup");
|
|
78
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
79
|
+
className: (0, _classnames["default"])("".concat(preCla))
|
|
80
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
81
|
+
className: (0, _classnames["default"])("".concat(preCla, "-text")),
|
|
82
|
+
onClick: function onClick() {
|
|
83
|
+
return onHandlerCancel(data.feedId);
|
|
84
|
+
}
|
|
85
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
86
|
+
className: (0, _classnames["default"])("tu-icon-zhiding ".concat(preCla, "-text-zhiding"))
|
|
87
|
+
}), "\u53D6\u6D88\u7F6E\u9876"));
|
|
88
|
+
}; // const url = getUrlForUserPage({
|
|
89
|
+
// userId: user.userId,
|
|
90
|
+
// userType: user.userType || 2,
|
|
91
|
+
// });
|
|
92
|
+
// const handleOpenUserPage = () => {
|
|
93
|
+
// window.open(url, "_blank");
|
|
94
|
+
// };
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
98
|
+
className: (0, _classnames["default"])("".concat(preCls))
|
|
99
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
100
|
+
className: (0, _classnames["default"])("".concat(preCls, "-header"))
|
|
101
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
102
|
+
className: (0, _classnames["default"])("".concat(preCls, "-header-left"))
|
|
103
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
104
|
+
className: (0, _classnames["default"])("".concat(preCls, "-header-left-avatar")) // onClick={handleOpenUserPage}
|
|
105
|
+
|
|
106
|
+
}, /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
|
|
107
|
+
size: {
|
|
108
|
+
width: 28,
|
|
109
|
+
textNum: 1,
|
|
110
|
+
fontSize: 14
|
|
111
|
+
},
|
|
112
|
+
name: user.name,
|
|
113
|
+
src: user.avatar.small,
|
|
114
|
+
color: user.avatar.color,
|
|
115
|
+
userId: user.userId
|
|
116
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
117
|
+
className: (0, _classnames["default"])("".concat(preCls, "-header-left-name"))
|
|
118
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
119
|
+
className: (0, _classnames["default"])("".concat(preCls, "-header-left-name-text")) // onClick={handleOpenUserPage}
|
|
120
|
+
|
|
121
|
+
}, data.publishUser.name), /*#__PURE__*/_react["default"].createElement("div", {
|
|
122
|
+
className: (0, _classnames["default"])("".concat(preCls, "-header-left-time"))
|
|
123
|
+
}, data.createDate))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
124
|
+
className: (0, _classnames["default"])("".concat(preCls, "-header-right"))
|
|
125
|
+
}, /*#__PURE__*/_react["default"].createElement(_popup["default"], {
|
|
126
|
+
key: data.feedId,
|
|
127
|
+
popup: popupContent()
|
|
128
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
129
|
+
className: (0, _classnames["default"])("tu-icon-diot ".concat(preCls, "-header-right-diot"))
|
|
130
|
+
})))), /*#__PURE__*/_react["default"].createElement("img", {
|
|
131
|
+
className: (0, _classnames["default"])("".concat(preCls, "-mark")),
|
|
132
|
+
src: require("./image/quotationMark.svg"),
|
|
133
|
+
alt: ""
|
|
134
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
135
|
+
className: (0, _classnames["default"])("".concat(preCls, "-content"))
|
|
136
|
+
}, data.content));
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
var _default = Item;
|
|
140
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.delDynamicTop = exports.getDynamicTop = void 0;
|
|
7
|
+
|
|
8
|
+
var _axios = _interopRequireDefault(require("axios"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
|
|
12
|
+
// import { translateDepartsToTreeNode, translateUsersToTreeNode } from './utils';
|
|
13
|
+
// import { getSource } from '../../utils/open-data';
|
|
14
|
+
var tenantId = BSGlobal && BSGlobal.tenantInfo.Id || 0;
|
|
15
|
+
var userId = BSGlobal && BSGlobal.loginUserInfo.Id || 0;
|
|
16
|
+
|
|
17
|
+
var requestDomain = function requestDomain() {
|
|
18
|
+
if (!window.location.hostname.match(/dev/)) return '';
|
|
19
|
+
return "".concat(location.protocol, "//www.tita.gift");
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
var getDynamicTop = function getDynamicTop() {
|
|
23
|
+
return _axios["default"].get("".concat(requestDomain(), "/api/v2/").concat(tenantId, "/").concat(userId, "/user/feednew/GetTopnew?count=3")).then(function (res) {
|
|
24
|
+
return res.data;
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
exports.getDynamicTop = getDynamicTop;
|
|
29
|
+
|
|
30
|
+
var delDynamicTop = function delDynamicTop(feedId) {
|
|
31
|
+
return _axios["default"].get("".concat(requestDomain(), "/api/v2/").concat(tenantId, "/").concat(userId, "/user/feednew/cancelTop?feedId=").concat(feedId)).then(function (res) {
|
|
32
|
+
return res.data;
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
exports.delDynamicTop = delDynamicTop;
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
.titaui-dynamic {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
6
|
+
min-width: 970px;
|
|
7
|
+
height: 100%;
|
|
8
|
+
margin-right: -12px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.titaui-dynamic__header {
|
|
12
|
+
position: absolute;
|
|
13
|
+
display: flex;
|
|
14
|
+
justify-content: space-between;
|
|
15
|
+
height: 68px;
|
|
16
|
+
background: #ffffff;
|
|
17
|
+
box-shadow: 0px 0px 8px 0px #e9ecf0;
|
|
18
|
+
padding: 0 24px;
|
|
19
|
+
width: calc(100% - 14px);
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
z-index: 3;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.titaui-dynamic__header--content-scroll {
|
|
25
|
+
background: rgba(255, 255, 255, 0.88);
|
|
26
|
+
backdrop-filter: blur(4px);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.titaui-dynamic__header-tab {
|
|
30
|
+
display: inline-flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
height: 100%;
|
|
33
|
+
position: relative;
|
|
34
|
+
font-size: 16px;
|
|
35
|
+
color: #141c28;
|
|
36
|
+
line-height: 24px;
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
margin-right: 36px;
|
|
39
|
+
white-space: nowrap;
|
|
40
|
+
word-break: keep-all;
|
|
41
|
+
overflow: hidden;
|
|
42
|
+
text-overflow: ellipsis;
|
|
43
|
+
font-weight: 400;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.titaui-dynamic__header-tab--active {
|
|
47
|
+
color: #2879ff;
|
|
48
|
+
font-weight: 600;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.titaui-dynamic__header-tab--active::before {
|
|
52
|
+
content: "";
|
|
53
|
+
display: inline-block;
|
|
54
|
+
position: absolute;
|
|
55
|
+
bottom: 0;
|
|
56
|
+
left: 50%;
|
|
57
|
+
transform: translateX(-50%);
|
|
58
|
+
width: 24px;
|
|
59
|
+
height: 4px;
|
|
60
|
+
background: linear-gradient(90deg, #4e90ff 0%, #2879ff 100%);
|
|
61
|
+
border-radius: 2px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.titaui-dynamic__header-search {
|
|
65
|
+
display: flex;
|
|
66
|
+
align-items: center;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.titaui-dynamic__content {
|
|
70
|
+
position: relative;
|
|
71
|
+
display: flex;
|
|
72
|
+
flex: 1;
|
|
73
|
+
overflow: auto;
|
|
74
|
+
overflow: overlay;
|
|
75
|
+
padding: 88px 22px 0 20px;
|
|
76
|
+
background: #f0f4fa;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.titaui-dynamic__content-left {
|
|
80
|
+
display: flex;
|
|
81
|
+
flex-direction: column;
|
|
82
|
+
width: calc(100% - 288px);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.titaui-dynamic__content-left-tabs {
|
|
86
|
+
display: flex;
|
|
87
|
+
align-items: center;
|
|
88
|
+
min-height: 48px;
|
|
89
|
+
max-height: 48px;
|
|
90
|
+
background: #ffffff;
|
|
91
|
+
box-shadow: 0px 0px 8px 0px rgba(127, 145, 180, 0.1);
|
|
92
|
+
border-radius: 12px;
|
|
93
|
+
padding-left: 20px;
|
|
94
|
+
margin-bottom: 10px;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.titaui-dynamic__content-left-tab {
|
|
98
|
+
display: inline-flex;
|
|
99
|
+
align-items: center;
|
|
100
|
+
height: 30px;
|
|
101
|
+
padding: 4px 12px;
|
|
102
|
+
background: #ffffff;
|
|
103
|
+
border-radius: 15px;
|
|
104
|
+
font-size: 14px;
|
|
105
|
+
color: #3f4755;
|
|
106
|
+
line-height: 22px;
|
|
107
|
+
box-sizing: border-box;
|
|
108
|
+
cursor: pointer;
|
|
109
|
+
white-space: nowrap;
|
|
110
|
+
word-break: keep-all;
|
|
111
|
+
overflow: hidden;
|
|
112
|
+
text-overflow: ellipsis;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.titaui-dynamic__content-left-tab--active {
|
|
116
|
+
background: rgba(40, 121, 255, 0.1);
|
|
117
|
+
color: #2879ff;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.titaui-dynamic__content-left-loading {
|
|
121
|
+
margin: 0 auto;
|
|
122
|
+
background-image: url("./img/dynamic-loading.gif");
|
|
123
|
+
background-repeat: no-repeat;
|
|
124
|
+
background-size: 100px 40px;
|
|
125
|
+
padding-bottom: 60px;
|
|
126
|
+
width: 100px;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.titaui-dynamic__content-right {
|
|
130
|
+
margin-left: 10px;
|
|
131
|
+
background: #f0f4fa;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.titaui-dynamic__loading {
|
|
135
|
+
position: absolute;
|
|
136
|
+
width: 100%;
|
|
137
|
+
height: 100%;
|
|
138
|
+
z-index: 4;
|
|
139
|
+
background: #f0f4fa;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.titaui-dynamic__loading-img {
|
|
143
|
+
width: 100px;
|
|
144
|
+
position: relative;
|
|
145
|
+
top: 50%;
|
|
146
|
+
left: 50%;
|
|
147
|
+
transform: translate(-50%, -50%);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.titaui-dynamic__empty-loading-block {
|
|
151
|
+
height: 160px;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.titaui-dynamic__no-more-data {
|
|
155
|
+
display: flex;
|
|
156
|
+
justify-content: center;
|
|
157
|
+
align-items: center;
|
|
158
|
+
padding-bottom: 20px;
|
|
159
|
+
font-size: 14px;
|
|
160
|
+
color: #6f7886;
|
|
161
|
+
line-height: 22px;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.titaui-dynamic__no-more-data::before {
|
|
165
|
+
content: "";
|
|
166
|
+
display: inline-block;
|
|
167
|
+
margin-right: 12px;
|
|
168
|
+
width: 192px;
|
|
169
|
+
height: 2px;
|
|
170
|
+
background: linear-gradient(90deg, #f0f4fa 0%, #b8c3d5 100%);
|
|
171
|
+
border-radius: 1px;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.titaui-dynamic__no-more-data::after {
|
|
175
|
+
content: "";
|
|
176
|
+
display: inline-block;
|
|
177
|
+
margin-left: 12px;
|
|
178
|
+
width: 192px;
|
|
179
|
+
height: 2px;
|
|
180
|
+
background: linear-gradient(90deg, #b8c3d5 0%, #f0f4fa 100%);
|
|
181
|
+
border-radius: 1px;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.titaui-dynamic__go-to-top {
|
|
185
|
+
position: fixed;
|
|
186
|
+
bottom: 28px;
|
|
187
|
+
right: 28px;
|
|
188
|
+
display: flex;
|
|
189
|
+
align-items: center;
|
|
190
|
+
justify-content: center;
|
|
191
|
+
width: 52px;
|
|
192
|
+
height: 52px;
|
|
193
|
+
background: rgba(255, 255, 255, 0.86);
|
|
194
|
+
box-shadow: 0px 4px 12px 0px rgba(127, 145, 180, 0.2);
|
|
195
|
+
border-radius: 50%;
|
|
196
|
+
cursor: pointer;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.titaui-dynamic__go-to-top-img {
|
|
200
|
+
display: inline-block;
|
|
201
|
+
width: 24px;
|
|
202
|
+
height: 24px;
|
|
203
|
+
background: url("./img/dynamic-top.svg") no-repeat;
|
|
204
|
+
}
|