@titaui/pc 1.6.8 → 1.6.12
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/index.js +1 -1
- package/lib/components/button/icon-btn/index.css +38 -0
- package/lib/components/button/icon-btn/index.js +62 -0
- package/lib/components/button/index.css +3 -0
- package/lib/components/button/index.js +16 -9
- package/lib/components/button/rect-btn/index.css +82 -0
- package/lib/components/button/rect-btn/index.js +62 -0
- package/lib/components/button/text-btn/index.css +0 -0
- package/lib/components/button/text-btn/index.js +15 -0
- package/lib/components/button/types.js +5 -0
- package/lib/components/change-okr/index.js +1 -1
- package/lib/components/change-okr/styledComponents.js +1 -1
- package/lib/components/communication/style.js +1 -1
- package/lib/components/condition-render/index.js +20 -0
- package/lib/components/create-okr/constant.js +1 -1
- package/lib/components/create-okr/fields/index.js +1 -1
- package/lib/components/create-okr/request-api.js +1 -1
- package/lib/components/create-okr/style.js +1 -1
- package/lib/components/create-okr/utils/helper.js +1 -1
- package/lib/components/delete-confirm-pop/style.js +1 -1
- package/lib/components/drawer/index.css +3 -1
- package/lib/components/drawer/index.js +2 -1
- package/lib/components/dropdown-layer/index.js +1 -1
- package/lib/components/dynamic/constant.js +1 -1
- package/lib/components/dynamic/dynamic-item/components/header/index.css +0 -5
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +8 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/constant.js +1 -1
- package/lib/components/dynamic/dynamic-like-ranking/index.css +1 -0
- package/lib/components/dynamic/dynamic-topping/request-api.js +1 -1
- package/lib/components/dynamic/export-module/index.js +1 -1
- package/lib/components/dynamic/index.js +1 -1
- package/lib/components/dynamic/request-api.js +1 -1
- package/lib/components/dynamic/util.js +1 -1
- package/lib/components/eReport/eReportLists/style.js +1 -1
- package/lib/components/eReport/eReportShare/style.js +1 -1
- package/lib/components/eReport/eReportShare/toast/style.js +1 -1
- package/lib/components/edit-kr-wight/style/index.js +1 -1
- package/lib/components/emotionsSelector/style.js +1 -1
- package/lib/components/file-list/index.js +1 -1
- package/lib/components/follower-visitor/img/follower-visitor-follower.png +0 -0
- package/lib/components/follower-visitor/img/follower-visitor-visitor.png +0 -0
- package/lib/components/follower-visitor/index.css +35 -0
- package/lib/components/follower-visitor/index.js +152 -0
- package/lib/components/follower-visitor/request-api.js +14 -0
- package/lib/components/form/form-fields/radios/index.css +25 -0
- package/lib/components/form/form-fields/radios/index.js +53 -0
- package/lib/components/form/index.js +5 -2
- package/lib/components/grid-page/commen-components/index.js +4 -4
- package/lib/components/grid-page/commen-components/scroll-tips.js +1 -1
- package/lib/components/grid-page/util/network.js +1 -1
- package/lib/components/help-card/image/canceled.svg +13 -0
- package/lib/components/help-card/image/helpzx.svg +8 -0
- package/lib/components/help-card/image/kefu.svg +18 -0
- package/lib/components/help-card/image/kefu1.svg +8 -0
- package/lib/components/help-card/image/okr-shequ.svg +14 -0
- package/lib/components/help-card/image/question.svg +20 -0
- package/lib/components/help-card/image/yuyueyanshi.svg +8 -0
- package/lib/components/help-card/index.css +219 -0
- package/lib/components/help-card/index.js +282 -0
- package/lib/components/help-card/request-api.js +34 -0
- package/lib/components/invite-people/img/invite-people.png +0 -0
- package/lib/components/invite-people/index.css +9 -0
- package/lib/components/invite-people/index.js +28 -0
- package/lib/components/mblog/common/index.js +3 -3
- package/lib/components/mblog/style.js +1 -1
- package/lib/components/menus/components/drag-resize/index.css +18 -0
- package/lib/components/menus/components/drag-resize/index.js +77 -0
- package/lib/components/menus/components/flip-menu-card/back-icon.svg +25 -0
- package/lib/components/menus/components/flip-menu-card/flip-back-header.js +28 -0
- package/lib/components/menus/components/flip-menu-card/index.css +89 -0
- package/lib/components/menus/components/flip-menu-card/index.js +193 -0
- package/lib/components/menus/components/flip-menu-card/precls.js +8 -0
- package/lib/components/menus/components/menu-card/index.css +29 -0
- package/lib/components/menus/components/menu-card/index.js +53 -0
- package/lib/components/menus/components/menu-close-btn/index.css +42 -0
- package/lib/components/menus/components/menu-close-btn/index.js +40 -0
- package/lib/components/menus/components/menu-tree/images/appraisal-menu/PF-shezhi.svg +8 -0
- package/lib/components/menus/components/menu-tree/images/appraisal-menu/ZBmuban.svg +8 -0
- package/lib/components/menus/components/menu-tree/images/appraisal-menu/bumen.svg +9 -0
- package/lib/components/menus/components/menu-tree/images/appraisal-menu/kaohe.svg +10 -0
- package/lib/components/menus/components/menu-tree/images/appraisal-menu/uniEA10.svg +8 -0
- package/lib/components/menus/components/menu-tree/images/appraisal-menu/untitled.svg +10 -0
- package/lib/components/menus/components/menu-tree/images/arrow.svg +9 -0
- package/lib/components/menus/components/menu-tree/images/caidan-xiashu.svg +16 -0
- package/lib/components/menus/components/menu-tree/images/okr-menu/ditu.svg +18 -0
- package/lib/components/menus/components/menu-tree/images/okr-menu/guanzhu.svg +14 -0
- package/lib/components/menus/components/menu-tree/images/okr-menu/okr-gongsi.svg +18 -0
- package/lib/components/menus/components/menu-tree/images/okr-menu/okr.svg +19 -0
- package/lib/components/menus/components/menu-tree/images/okr-menu/rw-zx.svg +16 -0
- package/lib/components/menus/components/menu-tree/images/user-concern-add.svg +29 -0
- package/lib/components/menus/components/menu-tree/images/yibiao.svg +14 -0
- package/lib/components/menus/components/menu-tree/index.css +33 -0
- package/lib/components/menus/components/menu-tree/index.js +66 -0
- package/lib/components/menus/components/menu-tree/precls.js +8 -0
- package/lib/components/menus/components/menu-tree/tree-node/company-all-node.js +48 -0
- package/lib/components/menus/components/menu-tree/tree-node/compony-node/index.css +17 -0
- package/lib/components/menus/components/menu-tree/tree-node/compony-node/index.js +41 -0
- package/lib/components/menus/components/menu-tree/tree-node/depart-node/index.css +24 -0
- package/lib/components/menus/components/menu-tree/tree-node/depart-node/index.js +73 -0
- package/lib/components/{button/admin-button/primary.js → menus/components/menu-tree/tree-node/group-name-node.js} +7 -14
- package/lib/components/menus/components/menu-tree/tree-node/index.css +360 -0
- package/lib/components/menus/components/menu-tree/tree-node/index.js +91 -0
- package/lib/components/menus/components/menu-tree/tree-node/menu-item-node.js +40 -0
- package/lib/components/menus/components/menu-tree/tree-node/menu-node.js +36 -0
- package/lib/components/menus/components/menu-tree/tree-node/user-concern-node.js +86 -0
- package/lib/components/menus/components/menu-tree/tree-node/user-node/index.css +56 -0
- package/lib/components/menus/components/menu-tree/tree-node/user-node/index.js +111 -0
- package/lib/components/menus/components/search-colleague/index.css +53 -0
- package/lib/components/menus/components/search-colleague/index.js +88 -0
- package/lib/components/menus/context.js +14 -0
- package/lib/components/menus/export-modules/appraisal-menus/datas.js +109 -0
- package/lib/components/menus/export-modules/appraisal-menus/index.css +0 -0
- package/lib/components/menus/export-modules/appraisal-menus/index.js +89 -0
- package/lib/components/menus/export-modules/depart-menus/helper.js +54 -0
- package/lib/components/menus/export-modules/depart-menus/index.css +0 -0
- package/lib/components/menus/export-modules/depart-menus/index.js +99 -0
- package/lib/components/menus/export-modules/okr-menus/datas.js +189 -0
- package/lib/components/menus/export-modules/okr-menus/index.css +33 -0
- package/lib/components/menus/export-modules/okr-menus/index.js +166 -0
- package/lib/components/menus/export-modules/subordinate-menus/helper.js +25 -0
- package/lib/components/menus/export-modules/subordinate-menus/index.js +108 -0
- package/lib/components/menus/index.css +20 -0
- package/lib/components/menus/index.js +51 -0
- package/lib/components/menus/precls.js +8 -0
- package/lib/components/menus/request-apis.js +97 -0
- package/lib/components/menus/types.js +5 -0
- package/lib/components/menus/utils.js +33 -0
- package/lib/components/nav-top/components/menu/index.css +90 -0
- package/lib/components/nav-top/components/menu/index.js +115 -0
- package/lib/components/nav-top/components/user-message/components/empty/index.css +30 -0
- package/lib/components/nav-top/components/user-message/components/empty/index.js +36 -0
- package/lib/components/nav-top/components/user-message/components/inform/index.css +114 -0
- package/lib/components/nav-top/components/user-message/components/inform/index.js +152 -0
- package/lib/components/nav-top/components/user-message/components/remind/index.css +159 -0
- package/lib/components/nav-top/components/user-message/components/remind/index.js +120 -0
- package/lib/components/nav-top/components/user-message/components/reply/index.css +132 -0
- package/lib/components/nav-top/components/user-message/components/reply/index.js +100 -0
- package/lib/components/nav-top/components/user-message/components/tab-title/index.js +31 -0
- package/lib/components/nav-top/components/user-message/components/todos/index.css +129 -0
- package/lib/components/nav-top/components/user-message/components/todos/index.js +98 -0
- package/lib/components/nav-top/components/user-message/constant.js +39 -0
- package/lib/components/nav-top/components/user-message/images/app-tixing.svg +30 -0
- package/lib/components/nav-top/components/user-message/images/bell.svg +18 -0
- package/lib/components/nav-top/components/user-message/images/empty-img.svg +130 -0
- package/lib/components/nav-top/components/user-message/images/user-photo.png +0 -0
- package/lib/components/nav-top/components/user-message/index.css +77 -0
- package/lib/components/nav-top/components/user-message/index.js +180 -0
- package/lib/components/nav-top/components/user-message/msg/index.css +122 -0
- package/lib/components/nav-top/components/user-message/msg/index.js +102 -0
- package/lib/components/nav-top/components/user-own-menu/index.css +61 -0
- package/lib/components/{button/admin-button/drop-down-arrow.js → nav-top/components/user-own-menu/index.js} +29 -54
- package/lib/components/nav-top/components/version/index.css +22 -0
- package/lib/components/{button/export-button → nav-top/components/version}/index.js +31 -40
- package/lib/components/nav-top/constant.js +42 -0
- package/lib/components/nav-top/images/app-tixing.svg +30 -0
- package/lib/components/nav-top/images/bell.svg +18 -0
- package/lib/components/nav-top/images/empty-img.svg +130 -0
- package/lib/components/nav-top/images/exit.svg +21 -0
- package/lib/components/nav-top/images/home.png +0 -0
- package/lib/components/nav-top/images/manage.png +0 -0
- package/lib/components/nav-top/images/manage.svg +21 -0
- package/lib/components/nav-top/images/open.svg +21 -0
- package/lib/components/nav-top/images/own-home.svg +19 -0
- package/lib/components/nav-top/images/qiye-o.svg +25 -0
- package/lib/components/nav-top/images/set.svg +19 -0
- package/lib/components/nav-top/images/user-photo.png +0 -0
- package/lib/components/nav-top/images/version.png +0 -0
- package/lib/components/nav-top/index.css +89 -0
- package/lib/components/nav-top/index.js +137 -0
- package/lib/components/nav-top/interface.js +5 -0
- package/lib/components/nav-top/mock.js +36 -0
- package/lib/components/nav-top/utils.js +77 -0
- package/lib/components/okr-detail/auth.js +1 -1
- package/lib/components/okr-detail/base-info/util.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/constant.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/style.js +1 -1
- package/lib/components/okr-detail/context.js +1 -1
- package/lib/components/okr-detail/detail-header/delete-confirm/style.js +1 -1
- package/lib/components/okr-detail/detail-header/enums.js +1 -1
- package/lib/components/okr-detail/e-list/constant.js +1 -1
- package/lib/components/okr-detail/e-list/util.js +1 -1
- package/lib/components/okr-detail/okr-list/create-kr-item/style.js +1 -1
- package/lib/components/okr-detail/okr-list/drag-order-kr.js +1 -1
- package/lib/components/okr-detail/okr-list/index.js +1 -2
- package/lib/components/okr-detail/request-apis.js +1 -1
- package/lib/components/okr-detail/schedule/util.js +1 -1
- package/lib/components/okr-flow/index.js +1 -1
- package/lib/components/okr-flow/mini-map/utils.js +1 -1
- package/lib/components/okr-flow/open-data/index.js +1 -1
- package/lib/components/okr-flow/request-apis.js +1 -1
- package/lib/components/okr-flow/utils/config.js +1 -1
- package/lib/components/okr-flow/utils/index.js +1 -1
- package/lib/components/okr-flow/utils/tree-handler.js +1 -1
- package/lib/components/okr-progress/request-apis.js +1 -1
- package/lib/components/okr-progress/util.js +1 -1
- package/lib/components/okr-progress-detail/utils.js +1 -1
- package/lib/components/okr-progress-modal/helper.js +1 -1
- package/lib/components/okr-progress-modal/style.js +1 -1
- package/lib/components/okr-progress-modal/textarea/style.js +1 -1
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/style.js +1 -1
- package/lib/components/okr-review/ReviewPop/style.js +1 -1
- package/lib/components/okr-review/components/ReviewItem/style.js +1 -1
- package/lib/components/okr-review/components/confirm-pop/style.js +1 -1
- package/lib/components/okr-review/style.js +1 -1
- package/lib/components/okr-share/common-painter/utils.js +1 -1
- package/lib/components/okr-share/pink-card/images.js +1 -1
- package/lib/components/okr-share/request-apis.js +1 -1
- package/lib/components/okrcase-library/index.css +0 -1
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +1 -1
- package/lib/components/okrcase-library/server/network.js +1 -1
- package/lib/components/open-data-painter/index.js +1 -1
- package/lib/components/operation-records/style.js +1 -1
- package/lib/components/period-selector/common.js +2 -2
- package/lib/components/period-selector/components/button/style.js +1 -1
- package/lib/components/period-selector/components/selector/style.js +1 -1
- package/lib/components/period-selector/helper/index.js +1 -1
- package/lib/components/period-selector/mockData.js +1 -1
- package/lib/components/period-selector/style.js +1 -1
- package/lib/components/photo-card/components/card/index.css +196 -0
- package/lib/components/photo-card/components/card/index.js +106 -0
- package/lib/components/photo-card/data.js +19 -0
- package/lib/components/photo-card/images/user-add.svg +19 -0
- package/lib/components/photo-card/images/user-photo.png +0 -0
- package/lib/components/photo-card/images/user-role.svg +38 -0
- package/lib/components/photo-card/index.css +29 -0
- package/lib/components/photo-card/index.js +51 -0
- package/lib/components/photo-card/types/image.d.js +1 -0
- package/lib/components/photo-card/types/react-app-env.d.js +2 -0
- package/lib/components/point-demo/drop-down-box/index.css +98 -0
- package/lib/components/point-demo/drop-down-box/index.js +159 -0
- package/lib/components/point-demo/image/demo-bcg.png +0 -0
- package/lib/components/point-demo/image/down.svg +14 -0
- package/lib/components/point-demo/image/icon-canceled.svg +7 -0
- package/lib/components/point-demo/image/logo.svg +64 -0
- package/lib/components/point-demo/index.css +348 -0
- package/lib/components/point-demo/index.js +657 -0
- package/lib/components/point-demo/input/index.css +74 -0
- package/lib/components/point-demo/input/index.js +176 -0
- package/lib/components/point-demo/point-demo.js +93 -0
- package/lib/components/point-demo/popup/index.css +7 -0
- package/lib/components/point-demo/popup/index.js +113 -0
- package/lib/components/point-demo/popup/placement.js +44 -0
- package/lib/components/point-demo/popup/rc-trigger.css +127 -0
- package/lib/components/pop-down-notification/components/SuccessRender.js +1 -1
- package/lib/components/pop-down-notification/style/index.js +1 -1
- package/lib/components/praise-record/style.js +1 -1
- package/lib/components/progress/index.js +1 -1
- package/lib/components/publish-dynamic-modal/requist-api.js +1 -1
- package/lib/components/radio/radio.js +1 -1
- package/lib/components/tabs/index.js +1 -1
- package/lib/components/task-relation/helper.js +1 -1
- package/lib/components/task-relation/request-api.js +1 -1
- package/lib/components/tita-chart/index.js +4 -4
- package/lib/components/tita-chart/util/index.js +12 -12
- package/lib/components/tita-chart/util/utils.js +1 -1
- package/lib/components/tooltip/index.js +1 -1
- package/lib/components/tooltip/tooltip-text/index.js +10 -4
- package/lib/components/tree/index.js +1 -1
- package/lib/components/upload/style.js +1 -1
- package/lib/components/upload/util.js +1 -1
- package/lib/components/upvote/request-apis.js +1 -1
- package/lib/components/user-selector/export-modules/field-tree-selector/index.js +2 -2
- package/lib/components/user-selector/export-modules/field-tree-selector/multiple-selector/index.js +2 -2
- package/lib/components/user-selector/export-modules/field-tree-selector/single-selector/index.js +4 -1
- package/lib/components/user-selector/export-modules/field-tree-selector/single-selector/user-list.js +1 -1
- package/lib/components/user-selector/index.js +1 -1
- package/lib/components/user-selector/layout/index.css +1 -1
- package/lib/components/user-selector/layout/index.js +4 -1
- package/lib/components/user-selector/request-apis.js +1 -1
- package/lib/components/user-selector/utils.js +1 -1
- package/lib/components/version-change-modal/constant.js +45 -0
- package/lib/components/version-change-modal/images/header-b.png +0 -0
- package/lib/components/version-change-modal/images/header-g.png +0 -0
- package/lib/components/version-change-modal/images/header-y.png +0 -0
- package/lib/components/version-change-modal/images/okr.png +0 -0
- package/lib/components/version-change-modal/images/okre.png +0 -0
- package/lib/components/version-change-modal/images/performance.png +0 -0
- package/lib/components/version-change-modal/images/performancePlus.png +0 -0
- package/lib/components/version-change-modal/images/project.png +0 -0
- package/lib/components/version-change-modal/images/title.png +0 -0
- package/lib/components/version-change-modal/index.css +150 -0
- package/lib/components/version-change-modal/index.js +175 -0
- package/lib/components/version-change-modal/interface.js +5 -0
- package/lib/components/version-change-modal/request-api.js +41 -0
- package/lib/components/viewer/index.js +1 -1
- package/lib/components-v1/avatar/styles.js +1 -1
- package/lib/components-v1/buttonv2/style/style.js +1 -1
- package/lib/components-v1/input/Input.js +1 -1
- package/lib/components-v1/input/InputNumber.js +1 -1
- package/lib/components-v1/input/style/index.js +1 -1
- package/lib/components-v1/popConfirm/style.js +1 -1
- package/lib/components-v1/radio/style/index.css +3 -3
- package/lib/components-v1/tabs/style.js +1 -1
- package/lib/components-v1/textarea/style.js +1 -1
- package/lib/components-v1/userSelector/UserSelectorPop.js +1 -1
- package/lib/components-v1/userSelector/style.js +1 -1
- package/lib/index.js +56 -6
- package/lib/pages/aha2021/index.css +42 -0
- package/lib/pages/aha2021/index.js +62 -0
- package/lib/pages/group-management/components/PopDownNotification/components/SuccessRender.js +1 -1
- package/lib/pages/group-management/components/PopDownNotification/style/index.js +1 -1
- package/lib/pages/group-management/components/openData/index.js +1 -1
- package/lib/pages/group-management/groupInterface.js +10 -10
- package/lib/pages/home-page/components/data-list/table/columns/index.js +1 -1
- package/lib/pages/okr-map/hooks/useStorage.js +2 -2
- package/lib/pages/okr-map/open-data/index.js +1 -1
- package/lib/pages/okr-map/request-apis.js +1 -1
- package/lib/pages/okr-map/utils.js +12 -9
- package/lib/pages/personal-info/components/base-info/index.css +36 -0
- package/lib/pages/personal-info/components/base-info/index.js +179 -0
- package/lib/pages/personal-info/index.css +3 -0
- package/lib/pages/personal-info/index.js +27 -0
- package/lib/pages/personal-info/request-api.js +32 -0
- package/lib/utils/auth.js +1 -1
- package/lib/utils/bs-global.js +16 -1
- package/lib/utils/format-time.js +1 -1
- package/lib/utils/helpers.js +1 -1
- package/lib/utils/mblog.js +1 -1
- package/lib/utils/open-data.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/request-v1.js +2 -2
- package/lib/utils/request.js +1 -1
- package/lib/utils/roundWeight.js +2 -2
- package/lib/utils/tools.js +3 -4
- package/package.json +2 -1
- package/lib/components/button/admin-button/default.js +0 -35
- package/lib/components/button/admin-button/index.css +0 -86
- package/lib/components/button/admin-button/index.js +0 -40
- package/lib/components/button/admin-button/secondary.js +0 -35
- package/lib/components/button/export-button/index.css +0 -51
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
.input-demo-box {
|
|
2
|
+
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
3
|
+
position: relative;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.input-demo-box .required {
|
|
7
|
+
color: #F05E5E;
|
|
8
|
+
font-size: 14px;
|
|
9
|
+
margin-left: 4px;
|
|
10
|
+
vertical-align: middle;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.input-demo-box .input-demo-box-label {
|
|
14
|
+
position: relative;
|
|
15
|
+
font-size: 14px;
|
|
16
|
+
font-weight: 600;
|
|
17
|
+
line-height: 22px;
|
|
18
|
+
color: #3F4755;
|
|
19
|
+
display: inline-block;
|
|
20
|
+
margin-bottom: 4px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.input-demo-box input {
|
|
24
|
+
border: 1px solid #E9ECF0;
|
|
25
|
+
border-radius: 4px;
|
|
26
|
+
height: 34px;
|
|
27
|
+
box-sizing: border-box !important;
|
|
28
|
+
font-size: 14px;
|
|
29
|
+
color: #3F4755;
|
|
30
|
+
outline: none;
|
|
31
|
+
padding: 0 10px;
|
|
32
|
+
width: 100%;
|
|
33
|
+
transition: border 0.3s;
|
|
34
|
+
-moz-transition: border 0.3s;
|
|
35
|
+
/* Firefox 4 */
|
|
36
|
+
-webkit-transition: border 0.3s;
|
|
37
|
+
/* Safari and Chrome */
|
|
38
|
+
-o-transition: border 0.3s;
|
|
39
|
+
/* Opera */
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.input-demo-box input:hover {
|
|
43
|
+
border: 1px solid #2879ff;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.input-demo-box input::-webkit-input-placeholder, .input-demo-box .inputHead {
|
|
47
|
+
color: #BFC7D5;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.input-demo-box .input-demo-box-focus {
|
|
51
|
+
border: 1px solid #2879FF !important;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.input-demo-box .input-demo-box-empty {
|
|
55
|
+
border: 1px solid #F05E5E !important;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.input-demo-box .input-demo-box-error {
|
|
59
|
+
color: #F05E5E;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.input-demo-box .input-demo-box-info {
|
|
63
|
+
color: #8d979e;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.input-demo-box .input-demo-box-msg {
|
|
67
|
+
font-size: 12px;
|
|
68
|
+
margin-top: 2px;
|
|
69
|
+
padding-left: 8px;
|
|
70
|
+
position: absolute;
|
|
71
|
+
bottom: -20px;
|
|
72
|
+
line-height: 20px;
|
|
73
|
+
left: 0;
|
|
74
|
+
}
|
|
@@ -0,0 +1,176 @@
|
|
|
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
|
+
require("./index.css");
|
|
13
|
+
|
|
14
|
+
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
|
+
|
|
16
|
+
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; }
|
|
17
|
+
|
|
18
|
+
function _extends() { _extends = Object.assign || 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); }
|
|
19
|
+
|
|
20
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
21
|
+
|
|
22
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
23
|
+
|
|
24
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
25
|
+
|
|
26
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
27
|
+
|
|
28
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
29
|
+
|
|
30
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
31
|
+
|
|
32
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
33
|
+
|
|
34
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
35
|
+
|
|
36
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
37
|
+
|
|
38
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
39
|
+
|
|
40
|
+
var InputForm = /*#__PURE__*/function (_Component) {
|
|
41
|
+
_inherits(InputForm, _Component);
|
|
42
|
+
|
|
43
|
+
var _super = _createSuper(InputForm);
|
|
44
|
+
|
|
45
|
+
function InputForm(props) {
|
|
46
|
+
var _this;
|
|
47
|
+
|
|
48
|
+
_classCallCheck(this, InputForm);
|
|
49
|
+
|
|
50
|
+
_this = _super.call(this, props);
|
|
51
|
+
|
|
52
|
+
_this.focus = function () {
|
|
53
|
+
return _this.refs.inputRef.focus();
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
_this.onChange = function (e) {
|
|
57
|
+
_this.props.onChange(e.target.value.trim());
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
_this.handleFocus = function (e) {
|
|
61
|
+
_this.setState({
|
|
62
|
+
focus: true
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
_this.props.onFocus(e.target.value.trim());
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
_this.handleBlur = function (e) {
|
|
69
|
+
_this.setState({
|
|
70
|
+
focus: false
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
_this.props.onBlur(e.target.value.trim());
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
_this.handleKeyPress = function (e) {
|
|
77
|
+
if (e.key === "Enter") {
|
|
78
|
+
_this.props.onKeyPress && _this.props.onKeyPress();
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
_this.state = {
|
|
83
|
+
focus: false
|
|
84
|
+
};
|
|
85
|
+
return _this;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
_createClass(InputForm, [{
|
|
89
|
+
key: "render",
|
|
90
|
+
value: function render() {
|
|
91
|
+
var errMsg = this.props.errMsg;
|
|
92
|
+
var styleSheet = {
|
|
93
|
+
input: {
|
|
94
|
+
height: 32,
|
|
95
|
+
width: "100%",
|
|
96
|
+
borderColor: this.props.isError ? "#F05E5E" : "#2879FF"
|
|
97
|
+
},
|
|
98
|
+
tips: {
|
|
99
|
+
fontSize: 12,
|
|
100
|
+
color: "#8f9ca6",
|
|
101
|
+
height: 20,
|
|
102
|
+
lineHeight: "20px",
|
|
103
|
+
marginTop: 4,
|
|
104
|
+
marginLeft: 8
|
|
105
|
+
},
|
|
106
|
+
errMsg: {
|
|
107
|
+
fontSize: 12,
|
|
108
|
+
color: "#F05E5E",
|
|
109
|
+
height: 20,
|
|
110
|
+
lineHeight: "20px",
|
|
111
|
+
marginTop: 4,
|
|
112
|
+
marginLeft: 8
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
var inputProps = {
|
|
116
|
+
value: this.props.value,
|
|
117
|
+
onChange: this.onChange,
|
|
118
|
+
placeholder: this.props.placeholder,
|
|
119
|
+
type: this.props.type,
|
|
120
|
+
className: this.props.errMsg ? "input-demo-box-empty" : this.state.focus ? "input-demo-box-focus" : "",
|
|
121
|
+
onFocus: this.handleFocus,
|
|
122
|
+
onBlur: this.handleBlur,
|
|
123
|
+
onKeyPress: this.handleKeyPress,
|
|
124
|
+
maxLength: this.props.maxlength,
|
|
125
|
+
autoComplete: this.props.type == "password" ? "new-password" : this.props.autoComplete,
|
|
126
|
+
id: this.props.id
|
|
127
|
+
};
|
|
128
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
129
|
+
className: "".concat(this.props.className, " input-demo-box"),
|
|
130
|
+
style: this.props.style
|
|
131
|
+
}, this.props.label && /*#__PURE__*/_react["default"].createElement("label", {
|
|
132
|
+
className: "input-demo-box-label",
|
|
133
|
+
htmlFor: this.props.id
|
|
134
|
+
}, this.props.label, this.props.required && /*#__PURE__*/_react["default"].createElement("span", {
|
|
135
|
+
className: "required"
|
|
136
|
+
}, "*")), /*#__PURE__*/_react["default"].createElement("input", _extends({
|
|
137
|
+
ref: "inputRef"
|
|
138
|
+
}, inputProps)), this.props.info && !this.props.errMsg ? /*#__PURE__*/_react["default"].createElement("span", {
|
|
139
|
+
className: "input-demo-box-info input-demo-box-msg"
|
|
140
|
+
}, this.props.info) : /*#__PURE__*/_react["default"].createElement("span", {
|
|
141
|
+
className: "input-demo-box-error input-demo-box-msg"
|
|
142
|
+
}, this.props.errMsg));
|
|
143
|
+
}
|
|
144
|
+
}]);
|
|
145
|
+
|
|
146
|
+
return InputForm;
|
|
147
|
+
}(_react.Component);
|
|
148
|
+
|
|
149
|
+
exports["default"] = InputForm;
|
|
150
|
+
InputForm.defaultProps = {
|
|
151
|
+
className: '',
|
|
152
|
+
//覆盖样式
|
|
153
|
+
label: "",
|
|
154
|
+
//文本名称
|
|
155
|
+
value: "",
|
|
156
|
+
//输入框 的value
|
|
157
|
+
isError: false,
|
|
158
|
+
// 校验状态
|
|
159
|
+
errMsg: "",
|
|
160
|
+
//错误信息
|
|
161
|
+
info: "",
|
|
162
|
+
//提示信息
|
|
163
|
+
type: "text",
|
|
164
|
+
required: false,
|
|
165
|
+
//是否渲染 *
|
|
166
|
+
style: {},
|
|
167
|
+
placeholder: "",
|
|
168
|
+
maxLength: "",
|
|
169
|
+
id: "",
|
|
170
|
+
autoComplete: "off",
|
|
171
|
+
//是否关闭自动完成事件
|
|
172
|
+
onChange: function onChange(val) {},
|
|
173
|
+
onBlur: function onBlur(val) {},
|
|
174
|
+
onFocus: function onFocus(val) {},
|
|
175
|
+
onKeyPress: function onKeyPress(val) {}
|
|
176
|
+
};
|
|
@@ -0,0 +1,93 @@
|
|
|
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 _reactDom = _interopRequireDefault(require("react-dom"));
|
|
13
|
+
|
|
14
|
+
var _ = _interopRequireDefault(require("./"));
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
+
|
|
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); }
|
|
19
|
+
|
|
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; }
|
|
21
|
+
|
|
22
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
23
|
+
|
|
24
|
+
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."); }
|
|
25
|
+
|
|
26
|
+
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); }
|
|
27
|
+
|
|
28
|
+
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; }
|
|
29
|
+
|
|
30
|
+
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; }
|
|
31
|
+
|
|
32
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
33
|
+
|
|
34
|
+
var _default = function _default(props) {
|
|
35
|
+
var _useState = (0, _react.useState)(true),
|
|
36
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
37
|
+
visible = _useState2[0],
|
|
38
|
+
setVisible = _useState2[1]; //判断了一天后86400000毫秒之后再次弹窗
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
var version = BSGlobal.tenantAuthentication.Version;
|
|
42
|
+
var role = BSGlobal.loginUserInfo.Role;
|
|
43
|
+
var source = BSGlobal.tenantInfo.Source;
|
|
44
|
+
var newdate = new Date().getTime();
|
|
45
|
+
var isSubmitted = localStorage.getItem('isSubmitted');
|
|
46
|
+
var time = Number(localStorage.getItem("pointDemoTime"));
|
|
47
|
+
|
|
48
|
+
if (!isSubmitted) {
|
|
49
|
+
if (time && newdate > time) {
|
|
50
|
+
if (version === 1 && role === 2) {
|
|
51
|
+
setTimeout(function () {
|
|
52
|
+
var date = new Date().getTime() + 86400000;
|
|
53
|
+
localStorage.setItem("pointDemoTime", date);
|
|
54
|
+
var bod = document.querySelector('body');
|
|
55
|
+
var newDiv = document.createElement('div');
|
|
56
|
+
newDiv.classList.add('point-demo-model');
|
|
57
|
+
bod.appendChild(newDiv);
|
|
58
|
+
|
|
59
|
+
_reactDom["default"].render( /*#__PURE__*/_react["default"].createElement(_["default"], {
|
|
60
|
+
visible: visible,
|
|
61
|
+
setVisible: setVisible
|
|
62
|
+
}), document.querySelector('.point-demo-model'));
|
|
63
|
+
}, 30000);
|
|
64
|
+
}
|
|
65
|
+
} else if (!time) {
|
|
66
|
+
if (version === 1 && role === 2) {
|
|
67
|
+
setTimeout(function () {
|
|
68
|
+
var date = new Date().getTime() + 86400000;
|
|
69
|
+
localStorage.setItem("pointDemoTime", date);
|
|
70
|
+
var bod = document.querySelector('body');
|
|
71
|
+
var newDiv = document.createElement('div');
|
|
72
|
+
newDiv.classList.add('point-demo-model');
|
|
73
|
+
bod.appendChild(newDiv);
|
|
74
|
+
|
|
75
|
+
_reactDom["default"].render( /*#__PURE__*/_react["default"].createElement(_["default"], {
|
|
76
|
+
visible: visible,
|
|
77
|
+
setVisible: setVisible
|
|
78
|
+
}), document.querySelector('.point-demo-model'));
|
|
79
|
+
}, 30000);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
} // let bod = document.querySelector('body');
|
|
83
|
+
// let newDiv = document.createElement('div');
|
|
84
|
+
// newDiv.classList.add('point-demo-model');
|
|
85
|
+
// bod.appendChild(newDiv);
|
|
86
|
+
// ReactDOM.render(
|
|
87
|
+
// <PointDemo />,
|
|
88
|
+
// document.querySelector('.point-demo-model')
|
|
89
|
+
// )
|
|
90
|
+
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,113 @@
|
|
|
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 _rcTrigger = _interopRequireDefault(require("@titaui/rc-trigger"));
|
|
13
|
+
|
|
14
|
+
var _placement = _interopRequireDefault(require("./placement"));
|
|
15
|
+
|
|
16
|
+
require("./rc-trigger.css");
|
|
17
|
+
|
|
18
|
+
require("./index.css");
|
|
19
|
+
|
|
20
|
+
var _excluded = ["mask", "destroyPopupOnHide", "action", "popupPlacement", "builtinPlacements", "popupVisible", "zIndex", "popupAlign"];
|
|
21
|
+
|
|
22
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
|
+
|
|
24
|
+
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); }
|
|
25
|
+
|
|
26
|
+
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; }
|
|
27
|
+
|
|
28
|
+
function _extends() { _extends = Object.assign || 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); }
|
|
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 _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
43
|
+
|
|
44
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
45
|
+
|
|
46
|
+
var preCls = 'titaui-popup';
|
|
47
|
+
|
|
48
|
+
var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
49
|
+
var _props$mask = props.mask,
|
|
50
|
+
mask = _props$mask === void 0 ? true : _props$mask,
|
|
51
|
+
_props$destroyPopupOn = props.destroyPopupOnHide,
|
|
52
|
+
destroyPopupOnHide = _props$destroyPopupOn === void 0 ? true : _props$destroyPopupOn,
|
|
53
|
+
_props$action = props.action,
|
|
54
|
+
action = _props$action === void 0 ? ['click'] : _props$action,
|
|
55
|
+
_props$popupPlacement = props.popupPlacement,
|
|
56
|
+
popupPlacement = _props$popupPlacement === void 0 ? "bottomRight" : _props$popupPlacement,
|
|
57
|
+
_props$builtinPlaceme = props.builtinPlacements,
|
|
58
|
+
builtinPlacements = _props$builtinPlaceme === void 0 ? _placement["default"] : _props$builtinPlaceme,
|
|
59
|
+
_props$popupVisible = props.popupVisible,
|
|
60
|
+
popupVisible = _props$popupVisible === void 0 ? false : _props$popupVisible,
|
|
61
|
+
_props$zIndex = props.zIndex,
|
|
62
|
+
zIndex = _props$zIndex === void 0 ? 9999999 : _props$zIndex,
|
|
63
|
+
_props$popupAlign = props.popupAlign,
|
|
64
|
+
popupAlign = _props$popupAlign === void 0 ? {
|
|
65
|
+
offset: [0, 0],
|
|
66
|
+
overflow: {
|
|
67
|
+
adjustX: true,
|
|
68
|
+
adjustY: true
|
|
69
|
+
},
|
|
70
|
+
targetOffset: [0, 0]
|
|
71
|
+
} : _props$popupAlign,
|
|
72
|
+
restProps = _objectWithoutProperties(props, _excluded); // 内部控制状态
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
var _useState = (0, _react.useState)(popupVisible),
|
|
76
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
77
|
+
visible = _useState2[0],
|
|
78
|
+
setVisible = _useState2[1]; // 外部控制显示隐藏时,内部改变状态
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
(0, _react.useEffect)(function () {
|
|
82
|
+
setVisible(popupVisible);
|
|
83
|
+
}, [popupVisible]); // 提供外部调用open&close,使用ref的方式调用
|
|
84
|
+
|
|
85
|
+
(0, _react.useImperativeHandle)(ref, function () {
|
|
86
|
+
return {
|
|
87
|
+
open: function open() {
|
|
88
|
+
return setVisible(true);
|
|
89
|
+
},
|
|
90
|
+
close: function close() {
|
|
91
|
+
return setVisible(false);
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
});
|
|
95
|
+
return /*#__PURE__*/_react["default"].createElement(_rcTrigger["default"], _extends({
|
|
96
|
+
mask: mask,
|
|
97
|
+
action: action,
|
|
98
|
+
popupVisible: visible,
|
|
99
|
+
popupStyle: {
|
|
100
|
+
zIndex: zIndex
|
|
101
|
+
},
|
|
102
|
+
popupClassName: preCls,
|
|
103
|
+
popupPlacement: popupPlacement,
|
|
104
|
+
builtinPlacements: builtinPlacements,
|
|
105
|
+
destroyPopupOnHide: destroyPopupOnHide,
|
|
106
|
+
onPopupVisibleChange: function onPopupVisibleChange(visible) {
|
|
107
|
+
setVisible(visible);
|
|
108
|
+
},
|
|
109
|
+
popupAlign: popupAlign
|
|
110
|
+
}, restProps));
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _left$center$right$to;
|
|
9
|
+
|
|
10
|
+
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; }
|
|
11
|
+
|
|
12
|
+
var _default = (_left$center$right$to = {
|
|
13
|
+
'left': {
|
|
14
|
+
'points': ['cr', 'cl']
|
|
15
|
+
},
|
|
16
|
+
'center': {
|
|
17
|
+
'points': ['cr', 'cr']
|
|
18
|
+
},
|
|
19
|
+
'right': {
|
|
20
|
+
'points': ['cl', 'cr']
|
|
21
|
+
},
|
|
22
|
+
'top': {
|
|
23
|
+
'points': ['bc', 'tc']
|
|
24
|
+
},
|
|
25
|
+
'bottom': {
|
|
26
|
+
'points': ['tc', 'bc']
|
|
27
|
+
},
|
|
28
|
+
'topLeft': {
|
|
29
|
+
'points': ['bl', 'tl']
|
|
30
|
+
},
|
|
31
|
+
'topRight': {
|
|
32
|
+
'points': ['br', 'tr']
|
|
33
|
+
}
|
|
34
|
+
}, _defineProperty(_left$center$right$to, "center", {
|
|
35
|
+
'points': ['cc', 'cc']
|
|
36
|
+
}), _defineProperty(_left$center$right$to, 'centerRight', {
|
|
37
|
+
'points': ['cl', 'cl']
|
|
38
|
+
}), _defineProperty(_left$center$right$to, 'bottomRight', {
|
|
39
|
+
'points': ['tr', 'br']
|
|
40
|
+
}), _defineProperty(_left$center$right$to, 'bottomLeft', {
|
|
41
|
+
'points': ['tl', 'bl']
|
|
42
|
+
}), _left$center$right$to);
|
|
43
|
+
|
|
44
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
.rc-trigger-popup {
|
|
2
|
+
position: absolute;
|
|
3
|
+
left: -9999px;
|
|
4
|
+
top: -9999px;
|
|
5
|
+
z-index: 1050;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.rc-trigger-popup-hidden {
|
|
9
|
+
display: none;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.rc-trigger-popup-zoom-enter,
|
|
13
|
+
.rc-trigger-popup-zoom-appear {
|
|
14
|
+
opacity: 0;
|
|
15
|
+
animation-duration: 0.3s;
|
|
16
|
+
animation-fill-mode: both;
|
|
17
|
+
animation-timing-function: cubic-bezier(0.18, 0.89, 0.32, 1.28);
|
|
18
|
+
animation-play-state: paused;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.rc-trigger-popup-zoom-leave {
|
|
22
|
+
animation-duration: 0.3s;
|
|
23
|
+
animation-fill-mode: both;
|
|
24
|
+
animation-timing-function: cubic-bezier(0.6, -0.3, 0.74, 0.05);
|
|
25
|
+
animation-play-state: paused;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.rc-trigger-popup-zoom-enter.rc-trigger-popup-zoom-enter-active,
|
|
29
|
+
.rc-trigger-popup-zoom-appear.rc-trigger-popup-zoom-appear-active {
|
|
30
|
+
animation-name: rcTriggerZoomIn;
|
|
31
|
+
animation-play-state: running;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.rc-trigger-popup-zoom-leave.rc-trigger-popup-zoom-leave-active {
|
|
35
|
+
animation-name: rcTriggerZoomOut;
|
|
36
|
+
animation-play-state: running;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@keyframes rcTriggerZoomIn {
|
|
40
|
+
0% {
|
|
41
|
+
opacity: 0;
|
|
42
|
+
transform-origin: 50% 50%;
|
|
43
|
+
transform: scale(0, 0);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
100% {
|
|
47
|
+
opacity: 1;
|
|
48
|
+
transform-origin: 50% 50%;
|
|
49
|
+
transform: scale(1, 1);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@keyframes rcTriggerZoomOut {
|
|
54
|
+
0% {
|
|
55
|
+
opacity: 1;
|
|
56
|
+
transform-origin: 50% 50%;
|
|
57
|
+
transform: scale(1, 1);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
100% {
|
|
61
|
+
opacity: 0;
|
|
62
|
+
transform-origin: 50% 50%;
|
|
63
|
+
transform: scale(0, 0);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.rc-trigger-popup-mask {
|
|
68
|
+
position: fixed;
|
|
69
|
+
top: 0;
|
|
70
|
+
right: 0;
|
|
71
|
+
left: 0;
|
|
72
|
+
bottom: 0;
|
|
73
|
+
height: 100%;
|
|
74
|
+
filter: alpha(opacity=50);
|
|
75
|
+
z-index: 1050;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.rc-trigger-popup-mask-hidden {
|
|
79
|
+
display: none;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.rc-trigger-popup-fade-enter,
|
|
83
|
+
.rc-trigger-popup-fade-appear {
|
|
84
|
+
opacity: 0;
|
|
85
|
+
animation-duration: 0.3s;
|
|
86
|
+
animation-fill-mode: both;
|
|
87
|
+
animation-timing-function: cubic-bezier(0.55, 0, 0.55, 0.2);
|
|
88
|
+
animation-play-state: paused;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.rc-trigger-popup-fade-leave {
|
|
92
|
+
animation-duration: 0.3s;
|
|
93
|
+
animation-fill-mode: both;
|
|
94
|
+
animation-timing-function: cubic-bezier(0.55, 0, 0.55, 0.2);
|
|
95
|
+
animation-play-state: paused;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.rc-trigger-popup-fade-enter.rc-trigger-popup-fade-enter-active,
|
|
99
|
+
.rc-trigger-popup-fade-appear.rc-trigger-popup-fade-appear-active {
|
|
100
|
+
animation-name: rcTriggerMaskFadeIn;
|
|
101
|
+
animation-play-state: running;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.rc-trigger-popup-fade-leave.rc-trigger-popup-fade-leave-active {
|
|
105
|
+
animation-name: rcDialogFadeOut;
|
|
106
|
+
animation-play-state: running;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
@keyframes rcTriggerMaskFadeIn {
|
|
110
|
+
0% {
|
|
111
|
+
opacity: 0;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
100% {
|
|
115
|
+
opacity: 1;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
@keyframes rcDialogFadeOut {
|
|
120
|
+
0% {
|
|
121
|
+
opacity: 1;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
100% {
|
|
125
|
+
opacity: 0;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.RenderError = RenderError;
|
|
7
6
|
exports.RenderSuccess = RenderSuccess;
|
|
8
7
|
exports.RenderWarning = RenderWarning;
|
|
8
|
+
exports.RenderError = RenderError;
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.PraiseContent = exports.PraiseRecordDetail = exports.PraiseRecordContent = exports.PraiseRecordItems = exports.PraiseRecordMore = exports.PraiseRecordList = exports.PraiseRecordClose = exports.PraiseRecordHead = exports.PraiseRecordContainer = exports.PraiseRecordWrapper = void 0;
|
|
7
7
|
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
9
|
|