@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
|
@@ -47,7 +47,8 @@ function PeriodSelector(_ref) {
|
|
|
47
47
|
var align = _ref.align,
|
|
48
48
|
className = _ref.className,
|
|
49
49
|
children = _ref.children,
|
|
50
|
-
isFetch = _ref.isFetch,
|
|
50
|
+
_ref$isFetch = _ref.isFetch,
|
|
51
|
+
isFetch = _ref$isFetch === void 0 ? true : _ref$isFetch,
|
|
51
52
|
onChange = _ref.onChange,
|
|
52
53
|
selected = _ref.selected,
|
|
53
54
|
selectorClass = _ref.selectorClass,
|
|
@@ -61,6 +62,12 @@ function PeriodSelector(_ref) {
|
|
|
61
62
|
showQuarter = _ref$showQuarter === void 0 ? true : _ref$showQuarter,
|
|
62
63
|
_ref$showYear = _ref.showYear,
|
|
63
64
|
showYear = _ref$showYear === void 0 ? true : _ref$showYear,
|
|
65
|
+
_ref$showBimonthly = _ref.showBimonthly,
|
|
66
|
+
showBimonthly = _ref$showBimonthly === void 0 ? true : _ref$showBimonthly,
|
|
67
|
+
_ref$showHalfYear = _ref.showHalfYear,
|
|
68
|
+
showHalfYear = _ref$showHalfYear === void 0 ? true : _ref$showHalfYear,
|
|
69
|
+
_ref$startMonth = _ref.startMonth,
|
|
70
|
+
startMonth = _ref$startMonth === void 0 ? 1 : _ref$startMonth,
|
|
64
71
|
yearsRange = _ref.yearsRange,
|
|
65
72
|
wrapperStyle = _ref.wrapperStyle,
|
|
66
73
|
popClass = _ref.popClass,
|
|
@@ -68,10 +75,13 @@ function PeriodSelector(_ref) {
|
|
|
68
75
|
|
|
69
76
|
var _useState = (0, _react.useState)({
|
|
70
77
|
hasSetting: true,
|
|
71
|
-
isOpenCustom:
|
|
72
|
-
isOpenMonth:
|
|
73
|
-
isOpenQuarter:
|
|
74
|
-
isOpenYear:
|
|
78
|
+
isOpenCustom: showCustom,
|
|
79
|
+
isOpenMonth: showMonth,
|
|
80
|
+
isOpenQuarter: showQuarter,
|
|
81
|
+
isOpenYear: showYear,
|
|
82
|
+
isOpenBimonthly: showBimonthly,
|
|
83
|
+
isOpenHalfYear: showHalfYear,
|
|
84
|
+
yearStartMonth: 1
|
|
75
85
|
}),
|
|
76
86
|
_useState2 = _slicedToArray(_useState, 2),
|
|
77
87
|
cycleSetting = _useState2[0],
|
|
@@ -91,42 +101,27 @@ function PeriodSelector(_ref) {
|
|
|
91
101
|
visible = _useState6[0],
|
|
92
102
|
setVisible = _useState6[1];
|
|
93
103
|
|
|
104
|
+
var fetchRef = (0, _react.useRef)(false);
|
|
94
105
|
(0, _react.useEffect)(function () {
|
|
95
106
|
if (selected) {
|
|
96
107
|
setSelectedPeriod(selected);
|
|
97
108
|
}
|
|
98
109
|
}, []);
|
|
99
110
|
(0, _react.useEffect)(function () {
|
|
111
|
+
if (!visible && (!isFetch || fetchRef.current)) return;
|
|
100
112
|
var url = (0, _helper.getApiUrl)("okr/cycleSetting");
|
|
101
|
-
var period = {
|
|
102
|
-
annualNum: new Date().getFullYear() + "",
|
|
103
|
-
cycleType: "2",
|
|
104
|
-
yqmNum: "".concat((0, _moment["default"])().quarter())
|
|
105
|
-
};
|
|
106
113
|
|
|
107
114
|
if (isFetch) {
|
|
108
115
|
(0, _helper.taker)(url, "GET").then(function (res) {
|
|
109
116
|
if (res.Code == 1) {
|
|
117
|
+
fetchRef.current = true;
|
|
110
118
|
setCycleSetting(res.Data);
|
|
111
119
|
|
|
112
120
|
if (selected) {
|
|
113
121
|
setSelectedPeriod(selected);
|
|
114
122
|
} else {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
// 季度开启,默认显示当前季度
|
|
118
|
-
setSelectedPeriod(period);
|
|
119
|
-
} else if (res.Data.isOpenMonth) {
|
|
120
|
-
// 季度关闭,月度开启,默认显示当前月
|
|
121
|
-
period = {
|
|
122
|
-
annualNum: new Date().getFullYear() + "",
|
|
123
|
-
cycleType: "3",
|
|
124
|
-
yqmNum: new Date().getMonth() + 1 + ""
|
|
125
|
-
};
|
|
126
|
-
setSelectedPeriod(period);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
onChange && onChange(period);
|
|
123
|
+
setSelectedPeriod((0, _common.getDefalutCycle)(res.Data));
|
|
124
|
+
onChange && onChange((0, _common.getDefalutCycle)(res.Data));
|
|
130
125
|
}
|
|
131
126
|
}
|
|
132
127
|
})["catch"](function (error) {
|
|
@@ -136,11 +131,11 @@ function PeriodSelector(_ref) {
|
|
|
136
131
|
if (selected) {
|
|
137
132
|
setSelectedPeriod(selected);
|
|
138
133
|
} else {
|
|
139
|
-
setSelectedPeriod(
|
|
140
|
-
onChange && onChange(
|
|
134
|
+
setSelectedPeriod((0, _common.getDefalutCycle)(cycleSetting));
|
|
135
|
+
onChange && onChange((0, _common.getDefalutCycle)(cycleSetting));
|
|
141
136
|
}
|
|
142
137
|
}
|
|
143
|
-
}, []);
|
|
138
|
+
}, [visible]);
|
|
144
139
|
|
|
145
140
|
var popup = /*#__PURE__*/_react["default"].createElement(_selector["default"], {
|
|
146
141
|
className: selectorClass,
|
|
@@ -150,6 +145,9 @@ function PeriodSelector(_ref) {
|
|
|
150
145
|
showMonth: isFetch ? cycleSetting.isOpenMonth : showMonth,
|
|
151
146
|
showQuarter: isFetch ? cycleSetting.isOpenQuarter : showQuarter,
|
|
152
147
|
showYear: isFetch ? cycleSetting.isOpenYear : showYear,
|
|
148
|
+
showHalfYear: isFetch ? cycleSetting.isOpenHalfYear : showHalfYear,
|
|
149
|
+
showDoubleMonth: isFetch ? cycleSetting.isOpenBimonthly : showBimonthly,
|
|
150
|
+
startMonth: isFetch ? cycleSetting.yearStartMonth : startMonth,
|
|
153
151
|
onSelected: function onSelected(period) {
|
|
154
152
|
setSelectedPeriod(period);
|
|
155
153
|
onChange && onChange(period);
|
|
@@ -202,5 +200,8 @@ PeriodSelector.defaultProps = {
|
|
|
202
200
|
showYear: true,
|
|
203
201
|
yearsRange: [2020, new Date().getFullYear() + 1]
|
|
204
202
|
};
|
|
203
|
+
PeriodSelector.formatPeriod = _common.formatPeriod;
|
|
204
|
+
PeriodSelector.getDateRangeByCycle = _common.getDateRangeByCycle;
|
|
205
|
+
PeriodSelector.getDefalutCycle = _common.getDefalutCycle;
|
|
205
206
|
var _default = PeriodSelector;
|
|
206
207
|
exports["default"] = _default;
|
|
@@ -17,7 +17,7 @@ require("./rc-trigger.css");
|
|
|
17
17
|
|
|
18
18
|
require("./index.css");
|
|
19
19
|
|
|
20
|
-
var _excluded = ["extraClass", "mask", "destroyPopupOnHide", "action", "popupPlacement", "builtinPlacements", "popupVisible", "zIndex", "popupAlign"];
|
|
20
|
+
var _excluded = ["extraClass", "mask", "destroyPopupOnHide", "action", "popupPlacement", "builtinPlacements", "popupVisible", "zIndex", "onPopupVisibleChange", "popupAlign"];
|
|
21
21
|
|
|
22
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
23
|
|
|
@@ -62,6 +62,7 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
62
62
|
popupVisible = _props$popupVisible === void 0 ? false : _props$popupVisible,
|
|
63
63
|
_props$zIndex = props.zIndex,
|
|
64
64
|
zIndex = _props$zIndex === void 0 ? 2000 : _props$zIndex,
|
|
65
|
+
_onPopupVisibleChange = props.onPopupVisibleChange,
|
|
65
66
|
_props$popupAlign = props.popupAlign,
|
|
66
67
|
popupAlign = _props$popupAlign === void 0 ? {
|
|
67
68
|
offset: [0, 0],
|
|
@@ -108,6 +109,7 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
108
109
|
destroyPopupOnHide: destroyPopupOnHide,
|
|
109
110
|
onPopupVisibleChange: function onPopupVisibleChange(visible) {
|
|
110
111
|
setVisible(visible);
|
|
112
|
+
_onPopupVisibleChange && _onPopupVisibleChange(visible);
|
|
111
113
|
},
|
|
112
114
|
popupAlign: popupAlign
|
|
113
115
|
}, restProps));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _publishDynamicModal = _interopRequireDefault(require("./publish-dynamic-modal"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
|
|
12
|
+
var _default = _publishDynamicModal["default"];
|
|
13
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,191 @@
|
|
|
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 _dialog = _interopRequireDefault(require("../dialog"));
|
|
13
|
+
|
|
14
|
+
var _mblog = _interopRequireDefault(require("../mblog"));
|
|
15
|
+
|
|
16
|
+
var _requistApi = require("./requist-api");
|
|
17
|
+
|
|
18
|
+
var _popDownNotification = require("../pop-down-notification");
|
|
19
|
+
|
|
20
|
+
var _bsGlobal = require("../../utils/bs-global");
|
|
21
|
+
|
|
22
|
+
require("./publish-dynamic-modal.css");
|
|
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
|
+
function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure undefined"); }
|
|
43
|
+
|
|
44
|
+
var prefix = "publish-dynamic-modal";
|
|
45
|
+
|
|
46
|
+
var PublishDynamicModal = function PublishDynamicModal(_ref) {
|
|
47
|
+
_objectDestructuringEmpty(_ref);
|
|
48
|
+
|
|
49
|
+
var _useState = (0, _react.useState)(false),
|
|
50
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
51
|
+
visible = _useState2[0],
|
|
52
|
+
setVisible = _useState2[1];
|
|
53
|
+
|
|
54
|
+
var _useState3 = (0, _react.useState)(1),
|
|
55
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
56
|
+
submitStatus = _useState4[0],
|
|
57
|
+
setSubmitStatus = _useState4[1];
|
|
58
|
+
|
|
59
|
+
var _useState5 = (0, _react.useState)(true),
|
|
60
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
61
|
+
isShare = _useState6[0],
|
|
62
|
+
setIsShare = _useState6[1];
|
|
63
|
+
|
|
64
|
+
var onMblogSubmit = function onMblogSubmit(submitType, sendData) {
|
|
65
|
+
sendData['FileUrls'] = sendData['FileUrl'];
|
|
66
|
+
sendData['Visibility'] = sendData['visibility'];
|
|
67
|
+
delete sendData['FileUrl'];
|
|
68
|
+
delete sendData['visibility'];
|
|
69
|
+
|
|
70
|
+
if (submitType === "submit") {
|
|
71
|
+
setSubmitStatus(2);
|
|
72
|
+
|
|
73
|
+
if (isShare) {
|
|
74
|
+
(0, _requistApi.addShare)(sendData).then(function (resp) {
|
|
75
|
+
if (resp.Code === 1) {
|
|
76
|
+
_popDownNotification.Toast.Success("发布成功", {
|
|
77
|
+
canClose: false
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
localStorage.removeItem("mblogLocalStroage_".concat((0, _bsGlobal.getUserInfo)().Id, "_commentsTypeKey_").concat(isShare ? "share" : "announcement"));
|
|
81
|
+
setVisible(false);
|
|
82
|
+
setSubmitStatus(1);
|
|
83
|
+
setTimeout(function () {
|
|
84
|
+
// @ts-ignore 跳到我的发布页签
|
|
85
|
+
window.setTabsToPublish && window.setTabsToPublish();
|
|
86
|
+
}, 2000);
|
|
87
|
+
} else {
|
|
88
|
+
_popDownNotification.Toast.Error(resp.Message, {
|
|
89
|
+
canClose: false
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
setSubmitStatus(0);
|
|
93
|
+
}
|
|
94
|
+
})["catch"](function (err) {
|
|
95
|
+
setSubmitStatus(0);
|
|
96
|
+
|
|
97
|
+
_popDownNotification.Toast.Error(err, {
|
|
98
|
+
canClose: false
|
|
99
|
+
});
|
|
100
|
+
});
|
|
101
|
+
} else {
|
|
102
|
+
(0, _requistApi.addNotice)(sendData).then(function (resp) {
|
|
103
|
+
if (resp.Code === 1) {
|
|
104
|
+
_popDownNotification.Toast.Success("发布成功", {
|
|
105
|
+
canClose: false
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
localStorage.removeItem("mblogLocalStroage_".concat((0, _bsGlobal.getUserInfo)().Id, "_commentsTypeKey_").concat(isShare ? "share" : "announcement"));
|
|
109
|
+
setVisible(false);
|
|
110
|
+
setSubmitStatus(1);
|
|
111
|
+
setTimeout(function () {
|
|
112
|
+
// @ts-ignore 跳到我的发布页签
|
|
113
|
+
window.setTabsToPublish && window.setTabsToPublish();
|
|
114
|
+
}, 2000);
|
|
115
|
+
} else {
|
|
116
|
+
_popDownNotification.Toast.Error(resp.Message, {
|
|
117
|
+
canClose: false
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
setSubmitStatus(0);
|
|
121
|
+
}
|
|
122
|
+
})["catch"](function (err) {
|
|
123
|
+
setSubmitStatus(0);
|
|
124
|
+
|
|
125
|
+
_popDownNotification.Toast.Error(err, {
|
|
126
|
+
canClose: false
|
|
127
|
+
});
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
var hidePublishDynamicModal = function hidePublishDynamicModal() {
|
|
134
|
+
setVisible(false);
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
var showPublishShareDynamicModal = function showPublishShareDynamicModal() {
|
|
138
|
+
setIsShare(true);
|
|
139
|
+
setVisible(true);
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
var showPublishAnnouncementDynamicModal = function showPublishAnnouncementDynamicModal() {
|
|
143
|
+
setIsShare(false);
|
|
144
|
+
setVisible(true);
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
(0, _react.useEffect)(function () {
|
|
148
|
+
// @ts-ignore
|
|
149
|
+
window.hidePublishDynamicModal = hidePublishDynamicModal; // @ts-ignore
|
|
150
|
+
|
|
151
|
+
window.showPublishShareDynamicModal = showPublishShareDynamicModal; // @ts-ignore
|
|
152
|
+
|
|
153
|
+
window.showPublishAnnouncementDynamicModal = showPublishAnnouncementDynamicModal;
|
|
154
|
+
}, []);
|
|
155
|
+
return /*#__PURE__*/_react["default"].createElement(_dialog["default"], {
|
|
156
|
+
title: isShare ? "发分享" : "发公告",
|
|
157
|
+
visible: visible,
|
|
158
|
+
onClose: hidePublishDynamicModal,
|
|
159
|
+
noFooter: true,
|
|
160
|
+
style: {
|
|
161
|
+
width: "480px"
|
|
162
|
+
},
|
|
163
|
+
destroyOnClose: true
|
|
164
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
165
|
+
className: prefix
|
|
166
|
+
}, /*#__PURE__*/_react["default"].createElement(_mblog["default"], {
|
|
167
|
+
defaultContent: isShare ? "" : "@[所有同事:all_members] ",
|
|
168
|
+
placeholderText: isShare ? "分享你此刻的想法" : "重要的通知可以发公告哦",
|
|
169
|
+
isHasPlaceholder: true,
|
|
170
|
+
isShowRangeDropDown: true,
|
|
171
|
+
isShowSendSms: false,
|
|
172
|
+
isShowBtnCancel: false,
|
|
173
|
+
isShowRange: true,
|
|
174
|
+
submitText: "\u53D1\u5E03",
|
|
175
|
+
initialTextHeight: 96,
|
|
176
|
+
autoResizing: false,
|
|
177
|
+
autoFocus: false,
|
|
178
|
+
showAtAll: isShare ? false : true,
|
|
179
|
+
privateValue: 1,
|
|
180
|
+
userSelectorPopAlign: "top left",
|
|
181
|
+
emotionsSelectorPopAlign: "top left",
|
|
182
|
+
commentsTypeKey: isShare ? "share" : "announcement",
|
|
183
|
+
disableRangeSelect: false,
|
|
184
|
+
submitStatus: submitStatus // 提交状态,0:失败,1:成功,2:提交中
|
|
185
|
+
,
|
|
186
|
+
onMblogSubmit: onMblogSubmit
|
|
187
|
+
})));
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
var _default = PublishDynamicModal;
|
|
191
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.addNotice = exports.addShare = void 0;
|
|
7
|
+
|
|
8
|
+
var _qs = _interopRequireDefault(require("qs"));
|
|
9
|
+
|
|
10
|
+
var _request = require("../../utils/request");
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
+
|
|
14
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
15
|
+
|
|
16
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
17
|
+
|
|
18
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
19
|
+
|
|
20
|
+
var addShare = function addShare(data) {
|
|
21
|
+
return (0, _request.rpost)('v2')("user/feed/AddShare", _objectSpread(_objectSpread({}, data), {}, {
|
|
22
|
+
ObjType: 0,
|
|
23
|
+
ObjId: 0,
|
|
24
|
+
IsSendSMS: false
|
|
25
|
+
}), {
|
|
26
|
+
'headers': {
|
|
27
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
28
|
+
},
|
|
29
|
+
'transformRequest': _qs["default"].stringify
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
exports.addShare = addShare;
|
|
34
|
+
|
|
35
|
+
var addNotice = function addNotice(data) {
|
|
36
|
+
return (0, _request.rpost)('v2')("user/feed/addNotice", _objectSpread(_objectSpread({}, data), {}, {
|
|
37
|
+
ObjType: 0,
|
|
38
|
+
ObjId: 0,
|
|
39
|
+
IsSendSMS: false
|
|
40
|
+
}), {
|
|
41
|
+
'headers': {
|
|
42
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
43
|
+
},
|
|
44
|
+
'transformRequest': _qs["default"].stringify
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
exports.addNotice = addNotice;
|
|
@@ -5,12 +5,16 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports["default"] = void 0;
|
|
8
|
+
exports.RadioGroup = exports["default"] = void 0;
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
+
var _radioGroup = _interopRequireDefault(require("./radioGroup"));
|
|
13
|
+
|
|
12
14
|
require("./index.css");
|
|
13
15
|
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
+
|
|
14
18
|
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); }
|
|
15
19
|
|
|
16
20
|
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; }
|
|
@@ -36,7 +40,9 @@ var Radio = function Radio(props) {
|
|
|
36
40
|
checked = props.checked,
|
|
37
41
|
name = props.name,
|
|
38
42
|
value = props.value,
|
|
39
|
-
onChange = props.onChange
|
|
43
|
+
onChange = props.onChange,
|
|
44
|
+
_props$className = props.className,
|
|
45
|
+
className = _props$className === void 0 ? '' : _props$className;
|
|
40
46
|
|
|
41
47
|
var _useState = (0, _react.useState)(getChecked(checked)),
|
|
42
48
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -64,7 +70,7 @@ var Radio = function Radio(props) {
|
|
|
64
70
|
}
|
|
65
71
|
}, [checked]);
|
|
66
72
|
return /*#__PURE__*/_react["default"].createElement("label", {
|
|
67
|
-
className: "titaui-radio-wrapper",
|
|
73
|
+
className: "titaui-radio-wrapper ".concat(className),
|
|
68
74
|
onMouseUp: function onMouseUp() {
|
|
69
75
|
onChange && onChange(value);
|
|
70
76
|
}
|
|
@@ -85,4 +91,6 @@ var Radio = function Radio(props) {
|
|
|
85
91
|
};
|
|
86
92
|
|
|
87
93
|
var _default = Radio;
|
|
88
|
-
exports["default"] = _default;
|
|
94
|
+
exports["default"] = _default;
|
|
95
|
+
var RadioGroup = _radioGroup["default"];
|
|
96
|
+
exports.RadioGroup = RadioGroup;
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
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); }
|
|
13
|
+
|
|
14
|
+
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; }
|
|
15
|
+
|
|
16
|
+
var SearchKeyHandle = function SearchKeyHandle(_ref) {
|
|
17
|
+
var _ref$str = _ref.str,
|
|
18
|
+
str = _ref$str === void 0 ? "" : _ref$str,
|
|
19
|
+
_ref$keyWord = _ref.keyWord,
|
|
20
|
+
keyWord = _ref$keyWord === void 0 ? "" : _ref$keyWord,
|
|
21
|
+
_ref$color = _ref.color,
|
|
22
|
+
color = _ref$color === void 0 ? "#F05E5E" : _ref$color;
|
|
23
|
+
if (!str || !keyWord) return /*#__PURE__*/_react["default"].createElement("span", null, str);
|
|
24
|
+
var result = str.split(keyWord);
|
|
25
|
+
return /*#__PURE__*/_react["default"].createElement("span", null, result.map(function (item, index) {
|
|
26
|
+
if (index !== result.length - 1) {
|
|
27
|
+
return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, item, /*#__PURE__*/_react["default"].createElement("span", {
|
|
28
|
+
style: {
|
|
29
|
+
color: color
|
|
30
|
+
}
|
|
31
|
+
}, keyWord));
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
return item;
|
|
35
|
+
}));
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
var _default = SearchKeyHandle;
|
|
39
|
+
exports["default"] = _default;
|