@titaui/pc 1.12.17-beta.2 → 1.12.17-beta.3
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.js +1 -1
- package/lib/components/avatar/num-avatar/index.js +1 -1
- package/lib/components/book-demo/components/pc/components/content/index.js +1 -1
- package/lib/components/button/default-button/index.js +1 -1
- package/lib/components/button/icon-btn/index.js +1 -1
- package/lib/components/cascader/index.js +1 -1
- package/lib/components/cascader/time.js +1 -1
- package/lib/components/change-okr-modal/Filter.js +2 -2
- package/lib/components/change-okr-modal/Item.js +2 -2
- package/lib/components/change-okr-modal/filterTab.js +2 -2
- package/lib/components/change-okr-modal/index.js +4 -6
- package/lib/components/common-share/publishMblog.js +2 -4
- package/lib/components/communication/CommunicationAttachments.js +2 -2
- package/lib/components/communication/ConvertUserName.js +2 -2
- package/lib/components/communication/index.js +2 -2
- package/lib/components/create-okr-modal/fields/okr-type-detail.js +2 -4
- package/lib/components/create-okr-modal/fields/okr-visibility-detail.js +2 -4
- package/lib/components/create-okr-modal/index.js +2 -4
- package/lib/components/create-okr-modal/objectType.js +2 -2
- package/lib/components/create-okr-modal/request-api.js +12 -16
- package/lib/components/create-okr-modal/utils/helper.js +2 -6
- package/lib/components/date-picker/BodyItem.js +3 -3
- package/lib/components/date-picker/CalendarBody.js +3 -3
- package/lib/components/date-picker/CalendarHeader.js +3 -3
- package/lib/components/date-picker/index.js +2 -2
- package/lib/components/date-range-picker/index.js +2 -2
- package/lib/components/delete-confirm-pop/ConfirmPop.js +2 -2
- package/lib/components/dialog/index.js +1 -1
- package/lib/components/dialog-confirm/index.js +1 -1
- package/lib/components/drawer/headerDrop.js +1 -1
- package/lib/components/drawer/index.js +1 -1
- package/lib/components/drawer-manager/drawerWrapper.js +3 -5
- package/lib/components/drawer-manager/index.js +1 -1
- package/lib/components/drop-selector/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-chart/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-learning/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-reply/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +1 -1
- package/lib/components/eReport/eReportListEmpty.js +2 -2
- package/lib/components/eReport/eReportLists/reportList.js +2 -2
- package/lib/components/eReport/eReportShare/index.js +2 -2
- package/lib/components/eReport/eReportShare/toast/index.js +2 -2
- package/lib/components/edit-kr-wight/EditKrWightModal.js +2 -2
- package/lib/components/edit-kr-wight/FormItemV2.js +2 -2
- package/lib/components/emotions-selector/selector-content.js +2 -2
- package/lib/components/emotions-selector/selector-pop.js +2 -2
- package/lib/components/ereport-list/index.js +2 -2
- package/lib/components/error-boundary/index.js +2 -2
- package/lib/components/firework/index.js +2 -6
- package/lib/components/form/form-fields/date/index.js +15 -14
- package/lib/components/form/form-fields/dropdown/index.js +1 -1
- package/lib/components/form/form-fields/input/index.js +1 -1
- package/lib/components/form/form-fields/input-verification-code/index.js +2 -4
- package/lib/components/form/form-fields/user/index.js +1 -1
- package/lib/components/grid-layout/util/network.js +6 -10
- package/lib/components/help-card/index.js +1 -1
- package/lib/components/mblog/components/ConfirmPop.js +2 -2
- package/lib/components/mblog/components/MblogAction.js +2 -2
- package/lib/components/mblog/components/MblogContent.js +2 -2
- package/lib/components/mblog/index.js +2 -2
- package/lib/components/menus/components/menu-tree/images/interview-menu/setting.svg +16 -0
- package/lib/components/menus/components/menu-tree/index.js +1 -1
- package/lib/components/menus/components/menu-tree/tree-node/index.css +28 -0
- package/lib/components/menus/components/menu-tree/tree-node/index.js +1 -1
- package/lib/components/menus/export-modules/interview-menus/constant.js +45 -34
- package/lib/components/menus/export-modules/interview-menus/handle-highlight.js +20 -0
- package/lib/components/menus/export-modules/interview-menus/index.js +11 -8
- package/lib/components/nav-top/components/app-center/index.css +3 -9
- package/lib/components/nav-top/components/app-center/index.js +7 -7
- package/lib/components/nav-top/components/user-message/index.css +4 -4
- package/lib/components/nav-top/index.css +4 -8
- package/lib/components/nav-top/index.js +3 -3
- package/lib/components/okr-detail/auth.js +2 -2
- package/lib/components/okr-detail/base-info/other-infos/principal/index.js +2 -4
- package/lib/components/okr-detail/components/ao-nice/index.js +4 -6
- package/lib/components/okr-detail/components/base-okr-type/confirm/buttonv2.js +2 -2
- package/lib/components/okr-detail/components/base-okr-type/confirm/confirm.js +2 -2
- package/lib/components/okr-detail/components/base-okr-type/object-type.js +2 -2
- package/lib/components/okr-detail/components/header/edit-name.js +2 -4
- package/lib/components/okr-detail/components/header/o-avatar.js +2 -4
- package/lib/components/okr-detail/components/header/o-classify.js +2 -4
- package/lib/components/okr-detail/components/header/o-score.js +1 -1
- package/lib/components/okr-detail/components/icon-text/index.js +1 -1
- package/lib/components/okr-detail/components/o-classify.js +2 -4
- package/lib/components/okr-detail/components/o-progress-update/index.js +2 -4
- package/lib/components/okr-detail/components/okr-tree/index.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +2 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +2 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +2 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/index.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +2 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +2 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/kr-push-score.js +3 -3
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.js +2 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/edit-child-okr-weight.js +6 -8
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +2 -4
- package/lib/components/okr-detail/detail-footer/index.js +2 -4
- package/lib/components/okr-detail/detail-header/index.js +10 -12
- package/lib/components/okr-detail/okr-list/index.js +2 -4
- package/lib/components/okr-detail/request-apis.js +2 -6
- package/lib/components/okr-flow/child-node/fields/creator.js +2 -4
- package/lib/components/okr-flow/child-node/work-node.js +2 -4
- package/lib/components/okr-flow/export-modal/index.js +12 -4
- package/lib/components/okr-flow/export-modules/okr-search-panel/index.js +8 -10
- package/lib/components/okr-flow/request-apis.js +2 -6
- package/lib/components/okr-flow/root-node/index.js +2 -4
- package/lib/components/okr-progress/components/o-progress-update/index.js +2 -4
- package/lib/components/okr-progress-modal/index.js +2 -4
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +4 -6
- package/lib/components/okr-review/ReviewPop/components/Toast/index.js +2 -2
- package/lib/components/okr-review/ReviewPop/index.js +2 -2
- package/lib/components/okr-review/components/ReviewItem/index.js +2 -2
- package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +2 -2
- package/lib/components/okr-review/index.js +2 -2
- package/lib/components/okr-share/common-painter/darwAvatar.js +4 -8
- package/lib/components/okr-share/common-painter/openDataPainter.js +2 -6
- package/lib/components/okr-share/common-painter/utils.js +4 -8
- package/lib/components/okr-share/pink-card/drawDepartmentName.js +2 -6
- package/lib/components/okr-share/pink-card/drawKrs.js +2 -6
- package/lib/components/okr-share/pink-card/drawQuote.js +2 -6
- package/lib/components/okr-share/pink-card/drawUserName.js +2 -6
- package/lib/components/okr-share/pink-card/index.js +2 -6
- package/lib/components/okr-share/publishMblog.js +2 -4
- package/lib/components/okr-share/shareCardSelector.js +4 -6
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +4 -4
- package/lib/components/okrcase-library/server/network.js +20 -24
- package/lib/components/open-data-painter/index.js +2 -6
- package/lib/components/operation-records/OperationRecordItem.js +2 -2
- package/lib/components/operation-records/index.js +2 -2
- package/lib/components/pagination/pagination.js +1 -1
- package/lib/components/period-selector/components/button/index.js +1 -1
- package/lib/components/period-selector/helper/index.js +2 -6
- package/lib/components/picker/components/cross.svg +17 -0
- package/lib/components/picker/components/panels/date-panel/date-body.js +31 -19
- package/lib/components/picker/components/panels/date-panel/date-head.js +8 -8
- package/lib/components/picker/components/panels/date-panel/index.js +2 -2
- package/lib/components/picker/components/panels/month-panel/index.css +5 -0
- package/lib/components/picker/components/panels/month-panel/index.js +3 -3
- package/lib/components/picker/components/panels/month-panel/month-body.js +4 -5
- package/lib/components/picker/components/panels/month-panel/month-head.js +2 -2
- package/lib/components/picker/components/panels/year-panel/index.css +5 -0
- package/lib/components/picker/components/panels/year-panel/index.js +2 -2
- package/lib/components/picker/components/panels/year-panel/year-body.js +10 -3
- package/lib/components/picker/components/panels/year-panel/year-head.js +1 -1
- package/lib/components/picker/components/picker-trigger/index.css +6 -1
- package/lib/components/picker/components/picker-trigger/index.js +16 -11
- package/lib/components/picker/context.js +17 -2
- package/lib/components/picker/index.css +29 -1
- package/lib/components/picker/index.js +3 -0
- package/lib/components/picker/picker-panels.js +79 -64
- package/lib/components/picker/picker.js +45 -31
- package/lib/components/picker/range-picker/components/picker-trigger/index.css +97 -0
- package/lib/components/picker/range-picker/components/picker-trigger/index.js +109 -0
- package/lib/components/picker/range-picker/components/placeholder/index.js +91 -0
- package/lib/components/picker/range-picker/components/select-input/index.js +72 -0
- package/lib/components/picker/range-picker/components/shortcuts/index.js +45 -0
- package/lib/components/picker/range-picker/index.css +158 -0
- package/lib/components/picker/range-picker/index.js +263 -0
- package/lib/components/picker/utils.js +168 -11
- package/lib/components/point-demo/drop-down-box/index.js +1 -1
- package/lib/components/point-demo/input/index.js +3 -3
- package/lib/components/point-demo/popup/index.js +1 -1
- package/lib/components/popup/index.js +1 -1
- package/lib/components/praise-record/PraiseRecordItem.js +2 -2
- package/lib/components/praise-record/index.js +2 -2
- package/lib/components/range-picker-pop/index.js +3 -3
- package/lib/components/range-selector-pop/RangeList.js +2 -2
- package/lib/components/range-selector-pop/RangeSelectorPop.js +2 -2
- package/lib/components/rich-editor/models/schema.js +2 -2
- package/lib/components/rich-editor/plugins/block/block-quote/index.js +2 -2
- package/lib/components/rich-editor/plugins/block/heading/index.js +2 -2
- package/lib/components/rich-editor/plugins/block/lists/index.js +2 -2
- package/lib/components/rich-editor/plugins/block/paragraph/index.js +2 -2
- package/lib/components/rich-editor/plugins/core/index.js +2 -2
- package/lib/components/rich-editor/plugins/extension/alignment/index.js +2 -2
- package/lib/components/rich-editor/plugins/extension/placeholder/index.js +2 -2
- package/lib/components/rich-editor/plugins/inline/color/index.js +2 -2
- package/lib/components/rich-editor/plugins/inline/delete-line/index.js +2 -2
- package/lib/components/rich-editor/plugins/inline/em/index.js +2 -2
- package/lib/components/rich-editor/plugins/inline/link/index.js +2 -2
- package/lib/components/rich-editor/plugins/inline/strong/index.js +2 -2
- package/lib/components/rich-editor/plugins/inline/under-line/index.js +2 -2
- package/lib/components/rich-editor/react/reactNodeView.js +4 -4
- package/lib/components/rich-editor/react/uiProvider.js +2 -2
- package/lib/components/rich-editor/ui/Popup/index.js +2 -2
- package/lib/components/scroll-container/index.js +2 -2
- package/lib/components/scrollbar/index.js +1 -1
- package/lib/components/scrollbar/scroll-mask/index.js +1 -1
- package/lib/components/scrollbar/simplebar-react.js +1 -1
- package/lib/components/search-dropdown/index.js +1 -1
- package/lib/components/select/Option.js +3 -3
- package/lib/components/select/index.js +3 -3
- package/lib/components/select-layer/index.js +1 -1
- package/lib/components/select-tags/index.js +1 -1
- package/lib/components/superset-charts/fetch-assets-and-append/get-assets-with-cache.js +2 -6
- package/lib/components/superset-charts/fetch-assets-and-append/index.js +4 -8
- package/lib/components/survey-model/request-api.js +2 -6
- package/lib/components/switch/index.js +1 -1
- package/lib/components/table/index.js +1 -1
- package/lib/components/tabs/index.js +1 -1
- package/lib/components/task-relation-modal/index.js +5 -7
- package/lib/components/task-relation-modal/okr-relation/relation-task-model/index.js +1 -1
- package/lib/components/task-relation-modal/okr-relation/relation-work-model/index.js +1 -1
- package/lib/components/task-relation-modal/tree/category-tree/index.js +2 -4
- package/lib/components/task-relation-modal/tree/okr-tree/index.js +2 -4
- package/lib/components/task-relation-modal/tree/work-tree/index.js +2 -4
- package/lib/components/task-relation-modal/tree-node/index.js +1 -1
- package/lib/components/task-relation-modal/work-relation/index.js +5 -7
- package/lib/components/task-tree/task-item-node/e-project.js +2 -4
- package/lib/components/task-tree/task-item-node/e-task.js +2 -4
- package/lib/components/task-tree/task-item-node/task-node-render.js +1 -1
- package/lib/components/task-tree/task-tree.js +1 -1
- package/lib/components/textarea/index.js +1 -1
- package/lib/components/time-picker/time-picker-selector.js +1 -1
- package/lib/components/time-picker/time-picker.js +1 -1
- package/lib/components/time-picker/timer-picker-input.js +1 -1
- package/lib/components/tita-chart/charts/liquid-ball.js +1 -1
- package/lib/components/tita-chart/charts/pie.js +1 -1
- package/lib/components/tita-chart/errorBoundary/index.js +2 -2
- package/lib/components/toast/index.js +8 -12
- package/lib/components/tooltip/error-tip.js +1 -1
- package/lib/components/tooltip/tooltip.js +1 -1
- package/lib/components/tree/index.js +1 -1
- package/lib/components/upload/components/uploadedPreview.js +2 -2
- package/lib/components/upload/index.js +2 -2
- package/lib/components/upvote/index.js +5 -7
- package/lib/components/user-selector/export-modules/multiple-user-selector--bak/index.js +1 -1
- package/lib/components/user-selector/select-tree/choose-tree/index.js +1 -1
- package/lib/components/user-selector/select-tree/selected-tree/index.js +1 -1
- package/lib/components/version-change-modal/index.js +4 -6
- package/lib/components/version-change-modal/request-api.js +2 -6
- package/lib/components/viewer/ImageListRender.js +2 -2
- package/lib/components/viewer/index.js +2 -2
- package/lib/components/weekly-report/card.js +12 -4
- package/lib/components/weekly-report/common-painter/darwAvatar.js +6 -10
- package/lib/components/weekly-report/common-painter/drawName.js +2 -6
- package/lib/components/weekly-report/common-painter/openDataPainter.js +2 -6
- package/lib/components/weekly-report/index.js +4 -6
- package/lib/components-v1/animate/AnimateChild.js +2 -2
- package/lib/components-v1/animate/animate.js +2 -2
- package/lib/components-v1/avatar/index.js +2 -2
- package/lib/components-v1/buttonv2/ButtonOutlined.js +2 -2
- package/lib/components-v1/buttonv2/ButtonRounded.js +2 -2
- package/lib/components-v1/buttonv2/DefaultButton.js +2 -2
- package/lib/components-v1/confirm/index.js +2 -2
- package/lib/components-v1/dropDownSelector/StatelessDropdown.js +2 -2
- package/lib/components-v1/dropDownSelector/dropDownSelector.js +2 -2
- package/lib/components-v1/input/Input.js +3 -3
- package/lib/components-v1/input/InputNumber.js +2 -2
- package/lib/components-v1/placement/placement.js +2 -2
- package/lib/components-v1/placement/placementInner.js +2 -2
- package/lib/components-v1/pop/Pop.js +2 -2
- package/lib/components-v1/pop/PopInner.js +2 -2
- package/lib/components-v1/portals/Portals.js +2 -2
- package/lib/components-v1/progress/CircleProgress.js +2 -2
- package/lib/components-v1/progress/LineProgress.js +2 -2
- package/lib/components-v1/progress/index.js +2 -2
- package/lib/components-v1/radio/radio.js +2 -2
- package/lib/components-v1/radio/radioGroup.js +2 -2
- package/lib/components-v1/search/index.js +2 -2
- package/lib/components-v1/select/Option.js +3 -3
- package/lib/components-v1/select/index.js +3 -3
- package/lib/components-v1/tabs/index.js +2 -2
- package/lib/components-v1/textarea/index.js +2 -2
- package/lib/components-v1/transition/index.js +2 -2
- package/lib/components-v1/userSelector/UserSelectorPop.js +2 -2
- package/lib/components-v1/userSelector/components/MultiMode/CommonList.js +2 -2
- package/lib/components-v1/userSelector/components/MultiMode/DepartmentList.js +2 -2
- package/lib/components-v1/userSelector/components/MultiMode/DepartmentTree.js +2 -2
- package/lib/components-v1/userSelector/components/MultiMode/SubsList.js +2 -2
- package/lib/components-v1/userSelector/components/MultiMode/index.js +2 -2
- package/lib/components-v1/userSelector/components/SearchBar.js +2 -2
- package/lib/components-v1/userSelector/components/SingleMode.js +2 -2
- package/lib/components-v1/userSelector/components/UserItem.js +2 -2
- package/lib/components-v1/userSelector/index.js +2 -2
- package/lib/pages/appointment-demo/drop-down-box/index.js +1 -1
- package/lib/pages/appointment-demo/input/index.js +3 -3
- package/lib/pages/appointment-demo/popup/index.js +1 -1
- package/lib/pages/group-management/components/input-form/index.js +3 -3
- package/lib/pages/group-management/components/radio/index.js +1 -1
- package/lib/pages/group-management/groupInterface.js +2 -6
- package/lib/pages/group-management/page-view/importGroupStaff/index.js +1 -1
- package/lib/pages/group-management/tree/index.js +1 -1
- package/lib/pages/new-okr-list/request-api.js +14 -18
- package/lib/pages/okr-map/export-modules/okr-map/okr-map.js +3 -5
- package/lib/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +1 -1
- package/lib/pages/okr-map/request-apis.js +2 -6
- package/lib/pages/okr-map/share-dialog/index.js +1 -1
- package/lib/utils/auth.js +2 -2
- package/lib/utils/open-data.js +4 -6
- package/lib/utils/request-v1.js +2 -6
- package/lib/utils/request.js +2 -6
- package/package.json +1 -1
- package/lib/components/book-demo-award/components/pc/components/checkbox/index.css +0 -54
- package/lib/components/book-demo-award/components/pc/components/checkbox/index.js +0 -126
- package/lib/components/book-demo-award/components/pc/components/content/index.css +0 -124
- package/lib/components/book-demo-award/components/pc/components/content/index.js +0 -372
- package/lib/components/book-demo-award/components/pc/components/drop-select/index.css +0 -41
- package/lib/components/book-demo-award/components/pc/components/drop-select/index.js +0 -86
- package/lib/components/book-demo-award/components/pc/components/error-info/index.css +0 -6
- package/lib/components/book-demo-award/components/pc/components/error-info/index.js +0 -24
- package/lib/components/book-demo-award/components/pc/components/input/index.css +0 -56
- package/lib/components/book-demo-award/components/pc/components/input/index.js +0 -94
- package/lib/components/book-demo-award/components/pc/components/phone/index.css +0 -68
- package/lib/components/book-demo-award/components/pc/components/phone/index.js +0 -95
- package/lib/components/book-demo-award/components/pc/components/verify-code/index.css +0 -45
- package/lib/components/book-demo-award/components/pc/components/verify-code/index.js +0 -139
- package/lib/components/book-demo-award/components/pc/index.css +0 -22
- package/lib/components/book-demo-award/components/pc/index.js +0 -174
- package/lib/components/book-demo-award/constant.js +0 -812
- package/lib/components/book-demo-award/img/demo-close.svg +0 -16
- package/lib/components/book-demo-award/img/demo-down.svg +0 -7
- package/lib/components/book-demo-award/img/demo-learning.jpg +0 -0
- package/lib/components/book-demo-award/img/demo-okr.jpg +0 -0
- package/lib/components/book-demo-award/img/demo-performance.jpg +0 -0
- package/lib/components/book-demo-award/img/demo-universal.jpg +0 -0
- package/lib/components/book-demo-award/img/order-award.png +0 -0
- package/lib/components/book-demo-award/index.js +0 -22
- package/lib/components/book-demo-award/interface.js +0 -17
- package/lib/components/book-demo-award/request.js +0 -50
- package/lib/components/book-demo-award/utils.js +0 -82
- package/lib/components/nav-top/components/app-center/images/yuyue-award.png +0 -0
- package/lib/components/nav-top/images/app-center.svg +0 -21
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _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
|
-
require("./index.css");
|
|
15
|
-
|
|
16
|
-
var _errorInfo = _interopRequireDefault(require("../error-info"));
|
|
17
|
-
|
|
18
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
-
|
|
20
|
-
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); }
|
|
21
|
-
|
|
22
|
-
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; }
|
|
23
|
-
|
|
24
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
25
|
-
|
|
26
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
27
|
-
|
|
28
|
-
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; }
|
|
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 = "titaui-book-demo-checkbox";
|
|
43
|
-
|
|
44
|
-
var BookDemoCheckbox = function BookDemoCheckbox(_ref) {
|
|
45
|
-
var name = _ref.name,
|
|
46
|
-
id = _ref.id,
|
|
47
|
-
required = _ref.required,
|
|
48
|
-
halfWidth = _ref.halfWidth,
|
|
49
|
-
option = _ref.option,
|
|
50
|
-
multiSelect = _ref.multiSelect,
|
|
51
|
-
onChange = _ref.onChange;
|
|
52
|
-
|
|
53
|
-
var _useState = (0, _react.useState)(false),
|
|
54
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
55
|
-
hasErr = _useState2[0],
|
|
56
|
-
setHasErr = _useState2[1];
|
|
57
|
-
|
|
58
|
-
var _useState3 = (0, _react.useState)({}),
|
|
59
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
60
|
-
result = _useState4[0],
|
|
61
|
-
setResult = _useState4[1];
|
|
62
|
-
|
|
63
|
-
var handleChangeInputValue = function handleChangeInputValue(selectedId) {
|
|
64
|
-
var tempResult;
|
|
65
|
-
|
|
66
|
-
if (!multiSelect) {
|
|
67
|
-
tempResult = _objectSpread({}, result);
|
|
68
|
-
Object.keys(result).forEach(function (key) {
|
|
69
|
-
tempResult[key].isSelected = false;
|
|
70
|
-
});
|
|
71
|
-
tempResult[selectedId].isSelected = true;
|
|
72
|
-
setHasErr(false);
|
|
73
|
-
setResult(tempResult);
|
|
74
|
-
|
|
75
|
-
if (onChange) {
|
|
76
|
-
onChange(name, id, tempResult, false);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
return;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
tempResult = _objectSpread({}, result);
|
|
83
|
-
tempResult[selectedId].isSelected = !tempResult[selectedId].isSelected;
|
|
84
|
-
var selectedLength = Object.values(tempResult).filter(function (item) {
|
|
85
|
-
return item.isSelected;
|
|
86
|
-
}).length;
|
|
87
|
-
setHasErr(required && selectedLength === 0);
|
|
88
|
-
setResult(tempResult);
|
|
89
|
-
|
|
90
|
-
if (onChange) {
|
|
91
|
-
onChange(name, id, tempResult, required && selectedLength === 0);
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
(0, _react.useEffect)(function () {
|
|
96
|
-
var tempResult = {};
|
|
97
|
-
option.forEach(function (item) {
|
|
98
|
-
tempResult[item.value] = {
|
|
99
|
-
text: item.text,
|
|
100
|
-
isSelected: false
|
|
101
|
-
};
|
|
102
|
-
});
|
|
103
|
-
setResult(tempResult);
|
|
104
|
-
}, []);
|
|
105
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
106
|
-
className: (0, _classnames["default"])(preCls, _defineProperty({}, "".concat(preCls, "--full-row"), !halfWidth))
|
|
107
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
108
|
-
className: (0, _classnames["default"])("".concat(preCls, "__name"), _defineProperty({}, "".concat(preCls, "__name--required"), required))
|
|
109
|
-
}, name), /*#__PURE__*/_react["default"].createElement("div", {
|
|
110
|
-
className: "".concat(preCls, "__options")
|
|
111
|
-
}, option.map(function (item) {
|
|
112
|
-
var _result$item$value;
|
|
113
|
-
|
|
114
|
-
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
115
|
-
className: (0, _classnames["default"])("".concat(preCls, "__options-item"), _defineProperty({}, "".concat(preCls, "__options-item--selected"), (_result$item$value = result[item.value]) === null || _result$item$value === void 0 ? void 0 : _result$item$value.isSelected)),
|
|
116
|
-
onClick: function onClick() {
|
|
117
|
-
handleChangeInputValue(item.value);
|
|
118
|
-
}
|
|
119
|
-
}, item.text);
|
|
120
|
-
})), /*#__PURE__*/_react["default"].createElement(_errorInfo["default"], {
|
|
121
|
-
errMsg: hasErr ? "请至少选择一项" : ""
|
|
122
|
-
}));
|
|
123
|
-
};
|
|
124
|
-
|
|
125
|
-
var _default = BookDemoCheckbox;
|
|
126
|
-
exports["default"] = _default;
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
.titaui-book-demo-pc-content {
|
|
2
|
-
display: flex;
|
|
3
|
-
background-color: #ffffff;
|
|
4
|
-
border-radius: 24px;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.titaui-book-demo-pc-content__left {
|
|
8
|
-
width: 358px;
|
|
9
|
-
height: 502px;
|
|
10
|
-
background: linear-gradient(135deg, #FFC04E 0%, #FF0041 100%);
|
|
11
|
-
border-radius: 24px 0px 0px 24px;
|
|
12
|
-
position: relative;
|
|
13
|
-
overflow: hidden;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.titaui-book-demo-pc-content__left__bg {
|
|
17
|
-
position: absolute;
|
|
18
|
-
left: 0;
|
|
19
|
-
right: 0;
|
|
20
|
-
bottom: 0;
|
|
21
|
-
top: 0;
|
|
22
|
-
background-image: url("../../../../img/order-award.png");
|
|
23
|
-
background-size: cover;
|
|
24
|
-
height: 100%;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.titaui-book-demo-pc-content__left-title {
|
|
28
|
-
margin: 36px 0 0 32px;
|
|
29
|
-
font-size: 26px;
|
|
30
|
-
font-weight: 600;
|
|
31
|
-
color: #ffffff;
|
|
32
|
-
line-height: 40px;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.titaui-book-demo-pc-content__left-desc {
|
|
36
|
-
margin: 4px 0 0 32px;
|
|
37
|
-
font-size: 14px;
|
|
38
|
-
color: #ffffff;
|
|
39
|
-
line-height: 22px;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.titaui-book-demo-pc-content__right {
|
|
43
|
-
flex: 1;
|
|
44
|
-
margin: 48px 0 0 32px;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.titaui-book-demo-pc-content__right-form {
|
|
48
|
-
display: grid;
|
|
49
|
-
grid-template-columns: 1fr 1fr;
|
|
50
|
-
column-gap: 12px;
|
|
51
|
-
row-gap: 20px;
|
|
52
|
-
padding-right: 22px;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.titaui-book-demo-pc-content__right-commit {
|
|
56
|
-
height: 88px;
|
|
57
|
-
background: #ffffff;
|
|
58
|
-
border-radius: 0px 0px 24px 0px;
|
|
59
|
-
display: flex;
|
|
60
|
-
justify-content: center;
|
|
61
|
-
align-items: center;
|
|
62
|
-
flex-direction: column;
|
|
63
|
-
position: absolute;
|
|
64
|
-
bottom: 0;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.titaui-book-demo-pc-content__right-commit-btn {
|
|
68
|
-
margin-top: 12px;
|
|
69
|
-
width: 310px;
|
|
70
|
-
height: 40px;
|
|
71
|
-
background: #2879ff;
|
|
72
|
-
border: none;
|
|
73
|
-
outline: none;
|
|
74
|
-
color: #ffffff;
|
|
75
|
-
border-radius: 20px;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.titaui-book-demo-pc-content__right-commit-btn:hover {
|
|
79
|
-
cursor: pointer;
|
|
80
|
-
background: #5c8eff;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.titaui-book-demo-pc-content__right-commit-btn--disabled {
|
|
84
|
-
background: rgba(40, 121, 255, 0.4);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.titaui-book-demo-pc-content__right-commit-btn--disabled:hover {
|
|
88
|
-
background: rgba(40, 121, 255, 0.4);
|
|
89
|
-
cursor: not-allowed;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.titaui-book-demo-pc-content__right-commit--shadow::before {
|
|
93
|
-
content: '';
|
|
94
|
-
position: absolute;
|
|
95
|
-
width: 302px;
|
|
96
|
-
height: 16px;
|
|
97
|
-
background: #f0f2f5;
|
|
98
|
-
border-radius: 8px;
|
|
99
|
-
filter: blur(4px);
|
|
100
|
-
bottom: 76px;
|
|
101
|
-
right: 44px;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.titaui-book-demo-pc-content__privacy {
|
|
105
|
-
margin-top: 12px;
|
|
106
|
-
display: flex;
|
|
107
|
-
align-items: center;
|
|
108
|
-
grid-column-start: 1;
|
|
109
|
-
grid-column-end: 3;
|
|
110
|
-
font-size: 12px;
|
|
111
|
-
line-height: 18px;
|
|
112
|
-
padding-bottom: 8px;
|
|
113
|
-
position: relative;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.titaui-book-demo-pc-content__privacy-aggre {
|
|
117
|
-
margin-left: 4px;
|
|
118
|
-
color: #3f4755;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.titaui-book-demo-pc-content__privacy-link {
|
|
122
|
-
margin-left: 4px;
|
|
123
|
-
color: #2879ff;
|
|
124
|
-
}
|
|
@@ -1,372 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _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 _input = _interopRequireDefault(require("../input"));
|
|
15
|
-
|
|
16
|
-
var _utils = require("../../../../utils");
|
|
17
|
-
|
|
18
|
-
var _checkbox = _interopRequireDefault(require("../../../../../checkbox"));
|
|
19
|
-
|
|
20
|
-
var _dropSelect = _interopRequireDefault(require("../drop-select"));
|
|
21
|
-
|
|
22
|
-
var _verifyCode = _interopRequireDefault(require("../verify-code"));
|
|
23
|
-
|
|
24
|
-
var _checkbox2 = _interopRequireDefault(require("../checkbox"));
|
|
25
|
-
|
|
26
|
-
var _phone = _interopRequireDefault(require("../phone"));
|
|
27
|
-
|
|
28
|
-
var _toast = _interopRequireDefault(require("../../../../../toast"));
|
|
29
|
-
|
|
30
|
-
var _constant = require("../../../../constant");
|
|
31
|
-
|
|
32
|
-
var _scrollbar = _interopRequireDefault(require("../../../../../scrollbar"));
|
|
33
|
-
|
|
34
|
-
var _conditionRender = _interopRequireDefault(require("../../../../../condition-render"));
|
|
35
|
-
|
|
36
|
-
var _request = require("../../../../request");
|
|
37
|
-
|
|
38
|
-
require("./index.css");
|
|
39
|
-
|
|
40
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
41
|
-
|
|
42
|
-
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); }
|
|
43
|
-
|
|
44
|
-
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; }
|
|
45
|
-
|
|
46
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
47
|
-
|
|
48
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
49
|
-
|
|
50
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
51
|
-
|
|
52
|
-
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; }
|
|
53
|
-
|
|
54
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
55
|
-
|
|
56
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
57
|
-
|
|
58
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
59
|
-
|
|
60
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
61
|
-
|
|
62
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
63
|
-
|
|
64
|
-
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."); }
|
|
65
|
-
|
|
66
|
-
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); }
|
|
67
|
-
|
|
68
|
-
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; }
|
|
69
|
-
|
|
70
|
-
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; }
|
|
71
|
-
|
|
72
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
73
|
-
|
|
74
|
-
var preCls = "titaui-book-demo-pc-content";
|
|
75
|
-
var uname = window.BSGlobal && window.BSGlobal.loginUserInfo.Name || "";
|
|
76
|
-
var uid = window.BSGlobal && window.BSGlobal.tenantInfo.Id || "";
|
|
77
|
-
var Source = window.BSGlobal && window.BSGlobal.tenantInfo.Source || (0, _utils.getSource)();
|
|
78
|
-
var lname = window.BSGlobal && window.BSGlobal.loginUserInfo.Name || "";
|
|
79
|
-
var lmobile = window.BSGlobal && window.BSGlobal.loginUserInfo.Mobile || "";
|
|
80
|
-
var lcompany = window.BSGlobal && window.BSGlobal.tenantInfo.Name || "";
|
|
81
|
-
|
|
82
|
-
var BookDemoPCContent = function BookDemoPCContent(_ref) {
|
|
83
|
-
var type = _ref.type,
|
|
84
|
-
onSubmitSuccess = _ref.onSubmitSuccess,
|
|
85
|
-
_ref$source = _ref.source,
|
|
86
|
-
source = _ref$source === void 0 ? 0 : _ref$source,
|
|
87
|
-
onChange = _ref.onChange;
|
|
88
|
-
|
|
89
|
-
var _useState = (0, _react.useState)((0, _utils.getTypeData)(type)),
|
|
90
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
91
|
-
data = _useState2[0],
|
|
92
|
-
setData = _useState2[1];
|
|
93
|
-
|
|
94
|
-
var _useState3 = (0, _react.useState)(false),
|
|
95
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
96
|
-
isFormOverflow = _useState4[0],
|
|
97
|
-
setIsFormOverflow = _useState4[1];
|
|
98
|
-
|
|
99
|
-
var _useState5 = (0, _react.useState)(false),
|
|
100
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
101
|
-
isAggrePrivacy = _useState6[0],
|
|
102
|
-
setIsAggrePrivacy = _useState6[1];
|
|
103
|
-
|
|
104
|
-
var _useState7 = (0, _react.useState)(true),
|
|
105
|
-
_useState8 = _slicedToArray(_useState7, 2),
|
|
106
|
-
hasErr = _useState8[0],
|
|
107
|
-
setHasErr = _useState8[1];
|
|
108
|
-
|
|
109
|
-
var _useState9 = (0, _react.useState)(false),
|
|
110
|
-
_useState10 = _slicedToArray(_useState9, 2),
|
|
111
|
-
isLoading = _useState10[0],
|
|
112
|
-
setIsLoading = _useState10[1];
|
|
113
|
-
|
|
114
|
-
var _useState11 = (0, _react.useState)([]),
|
|
115
|
-
_useState12 = _slicedToArray(_useState11, 2),
|
|
116
|
-
result = _useState12[0],
|
|
117
|
-
setResult = _useState12[1];
|
|
118
|
-
|
|
119
|
-
var formRef = (0, _react.useRef)(document.createElement("div"));
|
|
120
|
-
|
|
121
|
-
var handleChangeAggrePrivacyValue = function handleChangeAggrePrivacyValue(value) {
|
|
122
|
-
setIsAggrePrivacy(value);
|
|
123
|
-
};
|
|
124
|
-
|
|
125
|
-
var handleValueChange = function handleValueChange(name, id, value, hasError, other) {
|
|
126
|
-
var index = result.findIndex(function (item) {
|
|
127
|
-
return item.name === name;
|
|
128
|
-
});
|
|
129
|
-
result[index].value = value;
|
|
130
|
-
result[index].hasErr = hasError;
|
|
131
|
-
|
|
132
|
-
if (id === "verificationCode") {
|
|
133
|
-
result[index].yzmGuid = other.yzmGuid;
|
|
134
|
-
result[index].handelChangeImage = other.handelChangeImage;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
setResult(_toConsumableArray(result));
|
|
138
|
-
|
|
139
|
-
if (onChange) {
|
|
140
|
-
onChange(result);
|
|
141
|
-
}
|
|
142
|
-
};
|
|
143
|
-
|
|
144
|
-
var emptyFun = function emptyFun() {};
|
|
145
|
-
|
|
146
|
-
var handleCommit = function handleCommit() {
|
|
147
|
-
if (hasErr || isLoading) return;
|
|
148
|
-
setIsLoading(true);
|
|
149
|
-
var verificationData = result.filter(function (item) {
|
|
150
|
-
return item.type === "verificationCode";
|
|
151
|
-
})[0];
|
|
152
|
-
var yzmGuidVal = verificationData.yzmGuid || "";
|
|
153
|
-
var handelChangeImage = verificationData.handelChangeImage || emptyFun;
|
|
154
|
-
var setErrMsg = verificationData.setErrMsg || emptyFun;
|
|
155
|
-
var content = uid ? "\u79DF\u6237ID\uFF1A".concat(uid, "\uFF0C\u79DF\u6237\u8D26\u53F7\u540D\u79F0\uFF1A").concat(uname, ",") : "";
|
|
156
|
-
result.forEach(function (item) {
|
|
157
|
-
if (typeof item.value === "string") {
|
|
158
|
-
content += "".concat(item.name, ": ").concat(item.value, ",");
|
|
159
|
-
} else {
|
|
160
|
-
var tempValue = "";
|
|
161
|
-
Object.values(item.value).forEach(function (value) {
|
|
162
|
-
if (value.isSelected) {
|
|
163
|
-
tempValue += "".concat(value.text, ",");
|
|
164
|
-
}
|
|
165
|
-
});
|
|
166
|
-
tempValue = tempValue.slice(0, tempValue.length - 1);
|
|
167
|
-
content += "".concat(item.name, ": ").concat(tempValue, ",");
|
|
168
|
-
}
|
|
169
|
-
});
|
|
170
|
-
content = content.slice(0, content.length - 1);
|
|
171
|
-
(0, _request.sendEmailBookDemo)({
|
|
172
|
-
title: "预约演示",
|
|
173
|
-
content: "".concat(content, " @fromNew."),
|
|
174
|
-
code: verificationData.value,
|
|
175
|
-
yzmGuidVal: yzmGuidVal.indexOf("?") !== -1 ? yzmGuidVal.slice(0, yzmGuidVal.indexOf("?")) : yzmGuidVal,
|
|
176
|
-
source: source > 0 ? source : Source
|
|
177
|
-
}).then(function (res) {
|
|
178
|
-
if (res.data.Code) {
|
|
179
|
-
(0, _request.sendBookDemoJson)((0, _utils.bookDemoTransformDataToJson)(result, source > 0 ? source : Source, _constant.DemoTypeTextMap[type], content));
|
|
180
|
-
|
|
181
|
-
_toast["default"].Success("提交成功", {
|
|
182
|
-
style: {
|
|
183
|
-
position: "fixed"
|
|
184
|
-
},
|
|
185
|
-
canClose: false
|
|
186
|
-
});
|
|
187
|
-
|
|
188
|
-
if (onSubmitSuccess) {
|
|
189
|
-
onSubmitSuccess();
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
localStorage.setItem("isSubmitted", "1");
|
|
193
|
-
var trickerContent = _constant.trackerInfo[type];
|
|
194
|
-
|
|
195
|
-
if (window.titaTracker && !localStorage.getItem("titaccc")) {
|
|
196
|
-
window.titaTracker("action").record(_objectSpread({
|
|
197
|
-
actionName: "提交预约演示",
|
|
198
|
-
productName: "预约演示"
|
|
199
|
-
}, trickerContent));
|
|
200
|
-
}
|
|
201
|
-
} else {
|
|
202
|
-
setErrMsg(res.data.Message);
|
|
203
|
-
|
|
204
|
-
_toast["default"].Warning(res.data.Message, {
|
|
205
|
-
style: {
|
|
206
|
-
position: "fixed"
|
|
207
|
-
},
|
|
208
|
-
canClose: false
|
|
209
|
-
});
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
handelChangeImage();
|
|
213
|
-
})["catch"](function (error) {
|
|
214
|
-
_toast["default"].Error(error, {
|
|
215
|
-
style: {
|
|
216
|
-
position: "fixed"
|
|
217
|
-
},
|
|
218
|
-
canClose: false
|
|
219
|
-
});
|
|
220
|
-
})["finally"](function () {
|
|
221
|
-
setIsLoading(false);
|
|
222
|
-
});
|
|
223
|
-
};
|
|
224
|
-
|
|
225
|
-
var renderItem = function renderItem(item) {
|
|
226
|
-
switch (item.type) {
|
|
227
|
-
case "text":
|
|
228
|
-
return /*#__PURE__*/_react["default"].createElement(_input["default"], _extends({}, item, {
|
|
229
|
-
onChange: handleValueChange
|
|
230
|
-
}));
|
|
231
|
-
|
|
232
|
-
case "phone":
|
|
233
|
-
return /*#__PURE__*/_react["default"].createElement(_phone["default"], _extends({}, item, {
|
|
234
|
-
onChange: handleValueChange
|
|
235
|
-
}));
|
|
236
|
-
|
|
237
|
-
case "dropSelect":
|
|
238
|
-
return /*#__PURE__*/_react["default"].createElement(_dropSelect["default"], _extends({}, item, {
|
|
239
|
-
onChange: handleValueChange
|
|
240
|
-
}));
|
|
241
|
-
|
|
242
|
-
case "checkbox":
|
|
243
|
-
return /*#__PURE__*/_react["default"].createElement(_checkbox2["default"], _extends({}, item, {
|
|
244
|
-
onChange: handleValueChange
|
|
245
|
-
}));
|
|
246
|
-
|
|
247
|
-
case "verificationCode":
|
|
248
|
-
return /*#__PURE__*/_react["default"].createElement(_verifyCode["default"], _extends({}, item, {
|
|
249
|
-
onChange: handleValueChange
|
|
250
|
-
}));
|
|
251
|
-
|
|
252
|
-
default:
|
|
253
|
-
return /*#__PURE__*/_react["default"].createElement("span", null);
|
|
254
|
-
}
|
|
255
|
-
};
|
|
256
|
-
|
|
257
|
-
(0, _react.useEffect)(function () {
|
|
258
|
-
var resultHasErr = !isAggrePrivacy || result.filter(function (item) {
|
|
259
|
-
return item.required && item.hasErr;
|
|
260
|
-
}).length > 0;
|
|
261
|
-
setHasErr(resultHasErr);
|
|
262
|
-
}, [result, isAggrePrivacy]);
|
|
263
|
-
(0, _react.useEffect)(function () {
|
|
264
|
-
setTimeout(function () {
|
|
265
|
-
if (formRef.current.offsetHeight > 366) {
|
|
266
|
-
setIsFormOverflow(true);
|
|
267
|
-
}
|
|
268
|
-
}, 0);
|
|
269
|
-
var formField = data.formField.map(function (item) {
|
|
270
|
-
if (item.id === "username") {
|
|
271
|
-
return _objectSpread(_objectSpread({}, item), {}, {
|
|
272
|
-
value: lname,
|
|
273
|
-
hasErr: !lname
|
|
274
|
-
});
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
if (item.id === "phone") {
|
|
278
|
-
return _objectSpread(_objectSpread({}, item), {}, {
|
|
279
|
-
value: lmobile,
|
|
280
|
-
hasErr: !lmobile
|
|
281
|
-
});
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
if (item.id === "tenantName") {
|
|
285
|
-
return _objectSpread(_objectSpread({}, item), {}, {
|
|
286
|
-
value: lcompany,
|
|
287
|
-
hasErr: !lcompany
|
|
288
|
-
});
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
return item;
|
|
292
|
-
});
|
|
293
|
-
data.formField = formField;
|
|
294
|
-
setData(_objectSpread({}, data));
|
|
295
|
-
setResult(formField.map(function (item) {
|
|
296
|
-
return {
|
|
297
|
-
name: item.name,
|
|
298
|
-
value: item.type === "dropSelect" ? item.option[0].text : item.value,
|
|
299
|
-
id: item.id,
|
|
300
|
-
hasErr: !(item.value || item.type === "dropSelect"),
|
|
301
|
-
required: item.required,
|
|
302
|
-
type: item.type,
|
|
303
|
-
multiSelect: item.multiSelect
|
|
304
|
-
};
|
|
305
|
-
}));
|
|
306
|
-
var trickerContent = _constant.trackerInfo[type];
|
|
307
|
-
|
|
308
|
-
if (window.titaTracker && !localStorage.getItem("titaccc")) {
|
|
309
|
-
window.titaTracker("action").record({
|
|
310
|
-
actionName: "点开预约演示",
|
|
311
|
-
productName: "预约演示",
|
|
312
|
-
actionGroup: trickerContent.actionGroup
|
|
313
|
-
});
|
|
314
|
-
}
|
|
315
|
-
}, []);
|
|
316
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
317
|
-
className: preCls
|
|
318
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
319
|
-
className: "".concat(preCls, "__left")
|
|
320
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
321
|
-
className: "".concat(preCls, "__left__bg")
|
|
322
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
323
|
-
className: "".concat(preCls, "__left-title")
|
|
324
|
-
}, data.title), /*#__PURE__*/_react["default"].createElement("div", {
|
|
325
|
-
className: "".concat(preCls, "__left-desc")
|
|
326
|
-
}, data.desc))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
327
|
-
className: "".concat(preCls, "__right")
|
|
328
|
-
}, /*#__PURE__*/_react["default"].createElement(_scrollbar["default"], {
|
|
329
|
-
style: {
|
|
330
|
-
maxHeight: "366px"
|
|
331
|
-
}
|
|
332
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
333
|
-
className: (0, _classnames["default"])("".concat(preCls, "__right-form")),
|
|
334
|
-
ref: formRef
|
|
335
|
-
}, data.formField.map(function (item) {
|
|
336
|
-
return renderItem(item);
|
|
337
|
-
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
338
|
-
className: (0, _classnames["default"])(_defineProperty({}, "".concat(preCls, "__right-commit--shadow"), isFormOverflow))
|
|
339
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
340
|
-
className: (0, _classnames["default"])("".concat(preCls, "__right-commit"))
|
|
341
|
-
}, /*#__PURE__*/_react["default"].createElement("button", {
|
|
342
|
-
type: "button",
|
|
343
|
-
className: (0, _classnames["default"])("".concat(preCls, "__right-commit-btn"), _defineProperty({}, "".concat(preCls, "__right-commit-btn--disabled"), hasErr || isLoading)),
|
|
344
|
-
onClick: handleCommit
|
|
345
|
-
}, "\u63D0\u4EA4", /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
346
|
-
condition: isLoading
|
|
347
|
-
}, /*#__PURE__*/_react["default"].createElement("span", null, "\u4E2D\u3002\u3002\u3002"))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
348
|
-
className: "".concat(preCls, "__privacy")
|
|
349
|
-
}, /*#__PURE__*/_react["default"].createElement(_checkbox["default"], {
|
|
350
|
-
onChange: handleChangeAggrePrivacyValue
|
|
351
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
352
|
-
className: "".concat(preCls, "__privacy-aggre")
|
|
353
|
-
}, "\u6211\u5DF2\u9605\u8BFB\u5E76\u540C\u610F "), /*#__PURE__*/_react["default"].createElement("a", {
|
|
354
|
-
href: "https://okr.tita.com/#/privacy",
|
|
355
|
-
target: "_blank",
|
|
356
|
-
className: "".concat(preCls, "__privacy-link"),
|
|
357
|
-
rel: "noreferrer"
|
|
358
|
-
}, "\u300A\u9690\u79C1\u653F\u7B56\u300B"), "\u548C", /*#__PURE__*/_react["default"].createElement("a", {
|
|
359
|
-
target: "_blank",
|
|
360
|
-
className: "".concat(preCls, "__privacy-link"),
|
|
361
|
-
href: "https://okr.tita.com/#/userAgreement",
|
|
362
|
-
rel: "noreferrer"
|
|
363
|
-
}, "\u300A\u7528\u6237\u670D\u52A1\u534F\u8BAE\u300B")))));
|
|
364
|
-
};
|
|
365
|
-
|
|
366
|
-
BookDemoPCContent.defaultProps = {
|
|
367
|
-
source: 0,
|
|
368
|
-
onChange: function onChange() {},
|
|
369
|
-
onSubmitSuccess: function onSubmitSuccess() {}
|
|
370
|
-
};
|
|
371
|
-
var _default = BookDemoPCContent;
|
|
372
|
-
exports["default"] = _default;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
.titaui-book-demo-drop-select {
|
|
2
|
-
display: flex;
|
|
3
|
-
word-break: keep-all;
|
|
4
|
-
border-bottom: 1px solid #e9ecf0;
|
|
5
|
-
position: relative;
|
|
6
|
-
padding-bottom: 5px;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.titaui-book-demo-drop-select--full-row {
|
|
10
|
-
grid-column-start: 1;
|
|
11
|
-
grid-column-end: 3;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.titaui-book-demo-drop-select__name {
|
|
15
|
-
font-size: 14px;
|
|
16
|
-
color: #89919f;
|
|
17
|
-
line-height: 22px;
|
|
18
|
-
white-space: nowrap;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.titaui-book-demo-drop-select__name--required::after {
|
|
22
|
-
content: '*';
|
|
23
|
-
display: inline-block;
|
|
24
|
-
color: #f05e5e;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.titaui-book-demo-drop-select__value {
|
|
28
|
-
display: inline-flex;
|
|
29
|
-
justify-content: space-between;
|
|
30
|
-
cursor: pointer;
|
|
31
|
-
width: calc(100% - 4px);
|
|
32
|
-
padding-left: 8px;
|
|
33
|
-
font-size: 14px;
|
|
34
|
-
color: #3f4755;
|
|
35
|
-
line-height: 22px;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.titaui-book-demo-drop-select__value-down {
|
|
39
|
-
width: 10px;
|
|
40
|
-
align-self: center;
|
|
41
|
-
}
|