easy-component-ui 2.0.5 → 2.1.1
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/LICENSE +21 -0
- package/README.md +90 -0
- package/build/components/Base.js +1 -0
- package/build/components/ea-alert/index.js +1 -0
- package/build/components/ea-alert/src/style/stylesheet.js +1 -0
- package/build/components/ea-aside/index.js +1 -0
- package/build/components/ea-avatar/index.js +1 -0
- package/build/components/ea-avatar/src/assets/defaultAvatar.js +1 -0
- package/build/components/ea-avatar/src/assets/errorAvatar.js +1 -0
- package/build/components/ea-avatar/src/assets/iconAndTextAvatar.js +1 -0
- package/build/components/ea-avatar/src/style/stylesheet.js +1 -0
- package/build/components/ea-backtop/index.js +1 -0
- package/build/components/ea-backtop/src/style/stylesheet.js +1 -0
- package/build/components/ea-badge/index.js +1 -0
- package/build/components/ea-badge/src/style/stylesheet.js +1 -0
- package/build/components/ea-breadcrumb/index.js +1 -0
- package/build/components/ea-breadcrumb/src/style/stylesheet.js +1 -0
- package/build/components/ea-breadcrumb-item/index.js +1 -0
- package/build/components/ea-breadcrumb-item/src/style/style.js +1 -0
- package/build/components/ea-button/index.js +1 -0
- package/build/components/ea-button/src/components/ButtonComm.js +1 -0
- package/build/components/ea-button/src/components/HrefComm.js +1 -0
- package/build/components/ea-button/src/style/stylesheet.js +1 -0
- package/build/components/ea-button-group/index.js +1 -0
- package/build/components/ea-button-group/src/style/stylesheet.js +1 -0
- package/build/components/ea-calendar/index.js +1 -0
- package/build/components/ea-calendar/src/style/stylesheet.js +1 -0
- package/build/components/ea-calendar/src/utils/createChangerElement.js +1 -0
- package/build/components/ea-calendar/src/utils/createThead.js +1 -0
- package/build/components/ea-calendar/src/utils/getDate.js +1 -0
- package/build/components/ea-calendar/src/utils/getUserWeekStart.js +1 -0
- package/build/components/ea-card/index.js +1 -0
- package/build/components/ea-card/src/style/stylesheet.js +1 -0
- package/build/components/ea-carousel/index.js +1 -0
- package/build/components/ea-carousel/src/style/stylesheet.js +1 -0
- package/build/components/ea-carousel/src/utils/handleIndexOverflow.js +1 -0
- package/build/components/ea-carousel-item/index.js +1 -0
- package/build/components/ea-carousel-item/src/style/stylesheet.js +1 -0
- package/build/components/ea-checkbox/index.js +1 -0
- package/build/components/ea-checkbox/src/style/stylesheet.js +1 -0
- package/build/components/ea-checkbox-group/index.js +1 -0
- package/build/components/ea-checkbox-group/src/style/stylesheet.js +1 -0
- package/build/components/ea-collapse/index.js +1 -0
- package/build/components/ea-collapse-item/index.js +1 -0
- package/build/components/ea-collapse-item/src/style/stylesheet.js +1 -0
- package/build/components/ea-container/index.js +1 -0
- package/build/components/ea-date-picker/index.js +1 -0
- package/build/components/ea-date-picker/src/style/stylesheet.js +1 -0
- package/build/components/ea-descriptions/index.js +1 -0
- package/build/components/ea-descriptions/src/components/contentTemplate.js +1 -0
- package/build/components/ea-descriptions/src/components/getTdTemplate_border.js +1 -0
- package/build/components/ea-descriptions/src/components/getTdTemplate_direction.js +1 -0
- package/build/components/ea-descriptions/src/components/getThTemplate_direction.js +1 -0
- package/build/components/ea-descriptions/src/components/getThTemplate_normal.js +1 -0
- package/build/components/ea-descriptions/src/style/stylesheet.js +1 -0
- package/build/components/ea-descriptions-item/index.js +1 -0
- package/build/components/ea-descriptions-item/src/stylesheet.js +1 -0
- package/build/components/ea-drawer/index.js +1 -0
- package/build/components/ea-drawer/src/style/stylesheet.js +1 -0
- package/build/components/ea-empty/index.js +1 -0
- package/build/components/ea-empty/src/assets/emptyStatusSVG.js +1 -0
- package/build/components/ea-empty/src/style/stylesheet.js +1 -0
- package/build/components/ea-footer/index.js +1 -0
- package/build/components/ea-form/index.js +1 -0
- package/build/components/ea-form-item/index.js +1 -0
- package/build/components/ea-form-item/src/style/stylesheet.js +1 -0
- package/build/components/ea-header/index.js +1 -0
- package/build/components/ea-icon/config.json +1030 -0
- package/{components/ea-icon/css/fontello-codes.css → build/components/ea-icon/css/fontello.css} +312 -123
- package/build/components/ea-icon/font/fontello.eot +0 -0
- package/build/components/ea-icon/font/fontello.svg +350 -0
- package/build/components/ea-icon/font/fontello.ttf +0 -0
- package/build/components/ea-icon/font/fontello.woff +0 -0
- package/build/components/ea-icon/font/fontello.woff2 +0 -0
- package/build/components/ea-icon/index.css +1 -0
- package/build/components/ea-icon/index.js +1 -0
- package/build/components/ea-image/index.js +1 -0
- package/build/components/ea-image/src/assets/errorImage.js +1 -0
- package/build/components/ea-image/src/style/stylesheet.js +1 -0
- package/build/components/ea-image/src/utils/createPreviewTools.js +1 -0
- package/build/components/ea-infinite-scroll/index.js +1 -0
- package/build/components/ea-infinite-scroll-item/index.js +1 -0
- package/build/components/ea-input/index.js +1 -0
- package/build/components/ea-input/src/components/createFixIcon.js +1 -0
- package/build/components/ea-input/src/components/createSuggestionBoard.js +1 -0
- package/build/components/ea-input/src/components/createWordLimitElement.js +1 -0
- package/build/components/ea-input/src/style/stylesheet.js +1 -0
- package/build/components/ea-input/src/utils/dispatchEvent.js +1 -0
- package/build/components/ea-input/src/utils/handleSearchResult.js +1 -0
- package/build/components/ea-input/src/utils/handleSuggestionBoardTrigger.js +1 -0
- package/build/components/ea-input-number/index.js +1 -0
- package/build/components/ea-input-number/src/style/stylesheet.js +1 -0
- package/build/components/ea-input-number/src/utils/handleCustomEvent.js +1 -0
- package/build/components/ea-link/index.js +1 -0
- package/build/components/ea-link/src/style/stylesheet.js +1 -0
- package/build/components/ea-loading/index.js +1 -0
- package/build/components/ea-loading/src/style/stylesheet.js +1 -0
- package/build/components/ea-main/index.js +1 -0
- package/build/components/ea-menu/index.js +1 -0
- package/build/components/ea-menu/src/style/stylesheet.js +1 -0
- package/build/components/ea-menu/src/utils/handleMenuItemEvent.js +1 -0
- package/build/components/ea-menu-item/index.js +1 -0
- package/build/components/ea-menu-item/src/style/stylesheet.js +1 -0
- package/build/components/ea-menu-item-group/index.js +1 -0
- package/build/components/ea-menu-item-group/src/style/stylesheet.js +1 -0
- package/build/components/ea-message/index.js +1 -0
- package/build/components/ea-message/src/style/stylesheet.js +1 -0
- package/build/components/ea-message/src/utils/MessageClass.js +1 -0
- package/build/components/ea-message-box/index.js +1 -0
- package/build/components/ea-message-box/src/style/stylesheet.js +1 -0
- package/build/components/ea-message-box/src/utils/EaMessageBoxClass.js +1 -0
- package/build/components/ea-option/index.js +1 -0
- package/build/components/ea-option/src/style/stylesheet.js +1 -0
- package/build/components/ea-option-gropu/index.js +1 -0
- package/build/components/ea-page-header/index.js +1 -0
- package/build/components/ea-page-header/src/style/stylesheet.js +1 -0
- package/build/components/ea-pagination/index.js +1 -0
- package/build/components/ea-pagination/src/components/getMoreItem.js +1 -0
- package/build/components/ea-pagination/src/components/getPageItem.js +1 -0
- package/build/components/ea-pagination/src/components/getShowTotalItem.js +1 -0
- package/build/components/ea-pagination/src/style/stylesheet.js +1 -0
- package/build/components/ea-pane/index.js +1 -0
- package/build/components/ea-pane/src/stylesheet.js +1 -0
- package/build/components/ea-progress/index.js +1 -0
- package/build/components/ea-progress/src/components/SVGComm.js +1 -0
- package/build/components/ea-progress/src/style/stylesheet.js +1 -0
- package/build/components/ea-radio/index.js +1 -0
- package/build/components/ea-radio/src/style/stylesheet.js +1 -0
- package/build/components/ea-radio-group/index.js +1 -0
- package/build/components/ea-rate/index.js +1 -0
- package/build/components/ea-rate/src/components/rateComm.js +1 -0
- package/build/components/ea-rate/src/style/stylesheet.js +1 -0
- package/build/components/ea-result/index.js +1 -0
- package/build/components/ea-result/src/style/stylesheet.js +1 -0
- package/build/components/ea-select/index.js +1 -0
- package/build/components/ea-select/src/style/stylesheet.js +1 -0
- package/build/components/ea-skeleton/index.js +1 -0
- package/build/components/ea-skeleton/src/style/stylesheet.js +1 -0
- package/build/components/ea-skeleton/src/utils/createSkeletonElement.js +1 -0
- package/build/components/ea-skeleton-item/index.js +1 -0
- package/build/components/ea-skeleton-item/src/assets/imageSVG.js +1 -0
- package/build/components/ea-skeleton-item/src/style/stylesheet.js +1 -0
- package/build/components/ea-step/index.js +1 -0
- package/build/components/ea-step/src/style/stylesheet.js +1 -0
- package/build/components/ea-steps/index.js +1 -0
- package/build/components/ea-steps/src/style/stylesheet.js +1 -0
- package/build/components/ea-submenu/index.js +1 -0
- package/build/components/ea-submenu/src/style/stylesheet.js +1 -0
- package/build/components/ea-switch/index.js +1 -0
- package/build/components/ea-switch/src/style/stylesheet.js +1 -0
- package/build/components/ea-tab/index.js +1 -0
- package/build/components/ea-tab/src/style/stylesheet.js +1 -0
- package/build/components/ea-table/index.js +1 -0
- package/build/components/ea-table/src/style/stylesheet.js +1 -0
- package/build/components/ea-table-column/index.js +1 -0
- package/build/components/ea-tabs/index.js +1 -0
- package/build/components/ea-tabs/src/style/stylesheet.js +1 -0
- package/build/components/ea-tag/index.js +1 -0
- package/build/components/ea-tag/src/style/stylesheet.js +1 -0
- package/build/components/ea-textarea/index.js +1 -0
- package/build/components/ea-textarea/src/style/stylesheet.js +1 -0
- package/build/components/ea-time-picker/index.js +1 -0
- package/build/components/ea-time-picker/src/style/stylesheet.js +1 -0
- package/build/components/ea-timeline/index.js +1 -0
- package/build/components/ea-timeline/style/stylesheet.js +1 -0
- package/build/components/ea-timeline-item/index.js +1 -0
- package/build/components/ea-timeline-item/src/style/stylesheet.js +1 -0
- package/build/components/globalConfig.js +1 -0
- package/build/components/index.js +1 -0
- package/build/utils/Validator.js +1 -0
- package/build/utils/createElement.js +1 -0
- package/build/utils/handleDefaultAttrIsTrue.js +1 -0
- package/build/utils/handleTemplate.js +1 -0
- package/build/utils/setStyle.js +1 -0
- package/build/utils/timeout.js +1 -0
- package/components/Base.js +75 -1
- package/components/ea-alert/index.css +91 -0
- package/components/ea-alert/index.js +210 -1
- package/components/ea-alert/index.scss +108 -0
- package/components/ea-alert/src/style/stylesheet.js +85 -1
- package/components/ea-aside/index.css +9 -0
- package/components/ea-aside/index.js +54 -1
- package/components/ea-aside/index.scss +12 -0
- package/components/ea-avatar/index.css +66 -0
- package/components/ea-avatar/index.js +156 -1
- package/components/ea-avatar/index.scss +59 -0
- package/components/ea-avatar/src/assets/defaultAvatar.js +12 -1
- package/components/ea-avatar/src/assets/errorAvatar.js +9 -1
- package/components/ea-avatar/src/assets/iconAndTextAvatar.js +18 -1
- package/components/ea-avatar/src/style/stylesheet.js +61 -1
- package/components/ea-backtop/index.css +27 -0
- package/components/ea-backtop/index.js +167 -1
- package/components/ea-backtop/index.scss +29 -0
- package/components/ea-backtop/src/style/stylesheet.js +21 -1
- package/components/ea-badge/index.css +49 -0
- package/components/ea-badge/index.js +103 -1
- package/components/ea-badge/index.scss +56 -0
- package/components/ea-badge/src/style/stylesheet.js +43 -1
- package/components/ea-breadcrumb/index.css +6 -0
- package/components/ea-breadcrumb/index.js +90 -1
- package/components/ea-breadcrumb/index.scss +7 -0
- package/components/ea-breadcrumb/src/style/stylesheet.js +8 -1
- package/components/ea-breadcrumb-item/index.css +10 -0
- package/components/ea-breadcrumb-item/index.js +23 -1
- package/components/ea-breadcrumb-item/index.scss +12 -0
- package/components/ea-breadcrumb-item/src/style/style.js +12 -1
- package/components/ea-button/index.css +206 -0
- package/components/ea-button/index.js +198 -1
- package/components/ea-button/index.scss +143 -0
- package/components/ea-button/src/components/ButtonComm.js +5 -1
- package/components/ea-button/src/components/HrefComm.js +5 -1
- package/components/ea-button/src/style/stylesheet.js +208 -1
- package/components/ea-button-group/index.css +16 -0
- package/components/ea-button-group/index.js +44 -1
- package/components/ea-button-group/index.scss +20 -0
- package/components/ea-button-group/src/style/stylesheet.js +18 -1
- package/components/ea-calendar/index.css +72 -0
- package/components/ea-calendar/index.js +298 -1
- package/components/ea-calendar/index.scss +106 -0
- package/components/ea-calendar/src/style/stylesheet.js +74 -1
- package/components/ea-calendar/src/utils/createChangerElement.js +10 -1
- package/components/ea-calendar/src/utils/createThead.js +18 -1
- package/components/ea-calendar/src/utils/getDate.js +11 -1
- package/components/ea-calendar/src/utils/getUserWeekStart.js +11 -1
- package/components/ea-card/index.css +25 -0
- package/components/ea-card/index.js +51 -1
- package/components/ea-card/index.scss +24 -0
- package/components/ea-card/src/style/stylesheet.js +19 -1
- package/components/ea-carousel/index.css +103 -0
- package/components/ea-carousel/index.js +222 -1
- package/components/ea-carousel/index.scss +140 -0
- package/components/ea-carousel/src/style/stylesheet.js +105 -1
- package/components/ea-carousel/src/utils/handleIndexOverflow.js +9 -1
- package/components/ea-carousel-item/index.css +20 -0
- package/components/ea-carousel-item/index.js +23 -1
- package/components/ea-carousel-item/index.scss +26 -0
- package/components/ea-carousel-item/src/style/stylesheet.js +22 -1
- package/components/ea-checkbox/index.css +108 -0
- package/components/ea-checkbox/index.js +160 -1
- package/components/ea-checkbox/index.scss +141 -0
- package/components/ea-checkbox/src/style/stylesheet.js +110 -1
- package/components/ea-checkbox-group/index.css +6 -0
- package/components/ea-checkbox-group/index.js +120 -1
- package/components/ea-checkbox-group/index.scss +7 -0
- package/components/ea-checkbox-group/src/style/stylesheet.js +8 -1
- package/components/ea-collapse/index.css +0 -0
- package/components/ea-collapse/index.js +109 -1
- package/components/ea-collapse/index.scss +4 -0
- package/components/ea-collapse-item/index.css +31 -0
- package/components/ea-collapse-item/index.js +111 -1
- package/components/ea-collapse-item/index.scss +46 -0
- package/components/ea-collapse-item/src/style/stylesheet.js +33 -1
- package/components/ea-container/index.css +14 -0
- package/components/ea-container/index.js +85 -1
- package/components/ea-container/index.scss +18 -0
- package/components/ea-date-picker/index.css +17 -0
- package/components/ea-date-picker/index.js +191 -1
- package/components/ea-date-picker/index.scss +29 -0
- package/components/ea-date-picker/src/style/stylesheet.js +19 -1
- package/components/ea-descriptions/index.css +33 -0
- package/components/ea-descriptions/index.js +171 -1
- package/components/ea-descriptions/index.scss +45 -0
- package/components/ea-descriptions/src/components/contentTemplate.js +11 -1
- package/components/ea-descriptions/src/components/getTdTemplate_border.js +6 -1
- package/components/ea-descriptions/src/components/getTdTemplate_direction.js +7 -1
- package/components/ea-descriptions/src/components/getThTemplate_direction.js +7 -1
- package/components/ea-descriptions/src/components/getThTemplate_normal.js +8 -1
- package/components/ea-descriptions/src/style/stylesheet.js +35 -1
- package/components/ea-descriptions-item/index.css +21 -0
- package/components/ea-descriptions-item/index.js +71 -1
- package/components/ea-descriptions-item/index.scss +29 -0
- package/components/ea-descriptions-item/src/stylesheet.js +23 -1
- package/components/ea-drawer/index.css +138 -0
- package/components/ea-drawer/index.js +251 -1
- package/components/ea-drawer/index.scss +208 -0
- package/components/ea-drawer/src/style/stylesheet.js +141 -1
- package/components/ea-empty/index.css +30 -0
- package/components/ea-empty/index.js +93 -1
- package/components/ea-empty/index.scss +30 -0
- package/components/ea-empty/src/assets/emptyStatusSVG.js +6 -1
- package/components/ea-empty/src/style/stylesheet.js +24 -1
- package/components/ea-footer/index.css +7 -0
- package/components/ea-footer/index.js +57 -1
- package/components/ea-footer/index.scss +10 -0
- package/components/ea-form/index.css +0 -0
- package/components/ea-form/index.js +121 -1
- package/components/ea-form/index.scss +0 -0
- package/components/ea-form-item/index.css +62 -0
- package/components/ea-form-item/index.js +152 -1
- package/components/ea-form-item/index.scss +83 -0
- package/components/ea-form-item/src/style/stylesheet.js +64 -1
- package/components/ea-header/index.css +7 -0
- package/components/ea-header/index.js +55 -1
- package/components/ea-header/index.scss +10 -0
- package/components/ea-icon/css/fontello.css +312 -226
- package/components/ea-icon/index.css +1 -2
- package/components/ea-icon/index.js +84 -1
- package/components/ea-image/index.css +84 -0
- package/components/ea-image/index.js +182 -1
- package/components/ea-image/index.scss +111 -0
- package/components/ea-image/src/assets/errorImage.js +9 -1
- package/components/ea-image/src/assets/errorImage.svg +7 -0
- package/components/ea-image/src/style/stylesheet.js +86 -1
- package/components/ea-image/src/utils/createPreviewTools.js +140 -1
- package/components/ea-infinite-scroll/index.css +0 -0
- package/components/ea-infinite-scroll/index.js +119 -1
- package/components/ea-infinite-scroll/index.scss +0 -0
- package/components/ea-infinite-scroll-item/index.css +0 -0
- package/components/ea-infinite-scroll-item/index.js +18 -1
- package/components/ea-infinite-scroll-item/index.scss +0 -0
- package/components/ea-input/index.css +139 -0
- package/components/ea-input/index.js +398 -1
- package/components/ea-input/index.scss +178 -0
- package/components/ea-input/src/components/createFixIcon.js +108 -1
- package/components/ea-input/src/components/createSuggestionBoard.js +43 -1
- package/components/ea-input/src/components/createWordLimitElement.js +18 -1
- package/components/ea-input/src/style/stylesheet.js +141 -1
- package/components/ea-input/src/utils/dispatchEvent.js +9 -1
- package/components/ea-input/src/utils/handleSearchResult.js +9 -1
- package/components/ea-input/src/utils/handleSuggestionBoardTrigger.js +31 -1
- package/components/ea-input-number/index.css +120 -0
- package/components/ea-input-number/index.js +308 -1
- package/components/ea-input-number/index.scss +132 -0
- package/components/ea-input-number/src/style/stylesheet.js +122 -1
- package/components/ea-input-number/src/utils/handleCustomEvent.js +5 -1
- package/components/ea-link/index.css +48 -0
- package/components/ea-link/index.js +122 -1
- package/components/ea-link/index.scss +36 -0
- package/components/ea-link/src/style/stylesheet.js +50 -1
- package/components/ea-loading/index.css +38 -0
- package/components/ea-loading/index.js +166 -1
- package/components/ea-loading/index.scss +55 -0
- package/components/ea-loading/src/style/stylesheet.js +40 -1
- package/components/ea-main/index.css +8 -0
- package/components/ea-main/index.js +32 -1
- package/components/ea-main/index.scss +11 -0
- package/components/ea-menu/index.css +19 -0
- package/components/ea-menu/index.js +131 -1
- package/components/ea-menu/index.scss +22 -0
- package/components/ea-menu/src/style/stylesheet.js +21 -1
- package/components/ea-menu/src/utils/handleMenuItemEvent.js +32 -1
- package/components/ea-menu-item/index.css +48 -0
- package/components/ea-menu-item/index.js +130 -1
- package/components/ea-menu-item/index.scss +62 -0
- package/components/ea-menu-item/src/style/stylesheet.js +50 -1
- package/components/ea-menu-item-group/index.css +42 -0
- package/components/ea-menu-item-group/index.js +130 -1
- package/components/ea-menu-item-group/index.scss +60 -0
- package/components/ea-menu-item-group/src/style/stylesheet.js +44 -1
- package/components/ea-message/index.css +47 -0
- package/components/ea-message/index.js +171 -1
- package/components/ea-message/index.scss +70 -0
- package/components/ea-message/src/style/stylesheet.js +48 -1
- package/components/ea-message/src/utils/MessageClass.js +67 -1
- package/components/ea-message-box/index.css +85 -0
- package/components/ea-message-box/index.js +211 -1
- package/components/ea-message-box/index.scss +113 -0
- package/components/ea-message-box/src/style/stylesheet.js +87 -1
- package/components/ea-message-box/src/utils/EaMessageBoxClass.js +60 -1
- package/components/ea-option/index.css +24 -0
- package/components/ea-option/index.js +74 -1
- package/components/ea-option/index.scss +31 -0
- package/components/ea-option/src/style/stylesheet.js +26 -1
- package/components/ea-option-gropu/index.css +6 -0
- package/components/ea-option-gropu/index.js +57 -1
- package/components/ea-option-gropu/index.scss +8 -0
- package/components/ea-page-header/index.css +33 -0
- package/components/ea-page-header/index.js +91 -1
- package/components/ea-page-header/index.scss +44 -0
- package/components/ea-page-header/src/style/stylesheet.js +35 -1
- package/components/ea-pagination/index.css +69 -0
- package/components/ea-pagination/index.js +305 -1
- package/components/ea-pagination/index.scss +89 -0
- package/components/ea-pagination/src/components/getMoreItem.js +20 -1
- package/components/ea-pagination/src/components/getPageItem.js +11 -1
- package/components/ea-pagination/src/components/getShowTotalItem.js +7 -1
- package/components/ea-pagination/src/style/stylesheet.js +71 -1
- package/components/ea-pane/index.css +6 -0
- package/components/ea-pane/index.js +52 -1
- package/components/ea-pane/index.scss +7 -0
- package/components/ea-pane/src/stylesheet.js +8 -1
- package/components/ea-progress/index.css +61 -0
- package/components/ea-progress/index.js +249 -1
- package/components/ea-progress/index.scss +74 -0
- package/components/ea-progress/src/components/SVGComm.js +18 -1
- package/components/ea-progress/src/style/stylesheet.js +55 -1
- package/components/ea-radio/index.css +82 -0
- package/components/ea-radio/index.js +137 -1
- package/components/ea-radio/index.scss +119 -0
- package/components/ea-radio/src/style/stylesheet.js +84 -1
- package/components/ea-radio-group/index.css +3 -0
- package/components/ea-radio-group/index.js +96 -1
- package/components/ea-radio-group/index.scss +3 -0
- package/components/ea-rate/index.css +44 -0
- package/components/ea-rate/index.js +243 -1
- package/components/ea-rate/index.scss +55 -0
- package/components/ea-rate/src/components/rateComm.js +20 -1
- package/components/ea-rate/src/style/stylesheet.js +45 -1
- package/components/ea-result/index.css +37 -0
- package/components/ea-result/index.js +109 -1
- package/components/ea-result/index.scss +46 -0
- package/components/ea-result/src/style/stylesheet.js +39 -1
- package/components/ea-select/index.css +47 -0
- package/components/ea-select/index.js +312 -1
- package/components/ea-select/index.scss +70 -0
- package/components/ea-select/src/style/stylesheet.js +49 -1
- package/components/ea-skeleton/index.css +12 -0
- package/components/ea-skeleton/index.js +148 -1
- package/components/ea-skeleton/index.scss +16 -0
- package/components/ea-skeleton/src/style/stylesheet.js +14 -1
- package/components/ea-skeleton/src/utils/createSkeletonElement.js +7 -1
- package/components/ea-skeleton-item/index.css +69 -0
- package/components/ea-skeleton-item/index.js +82 -1
- package/components/ea-skeleton-item/index.scss +107 -0
- package/components/ea-skeleton-item/src/assets/imageSVG.js +8 -1
- package/components/ea-skeleton-item/src/style/stylesheet.js +71 -1
- package/components/ea-step/index.css +84 -0
- package/components/ea-step/index.js +230 -1
- package/components/ea-step/index.scss +110 -0
- package/components/ea-step/src/style/stylesheet.js +86 -1
- package/components/ea-steps/index.css +19 -0
- package/components/ea-steps/index.js +104 -1
- package/components/ea-steps/index.scss +23 -0
- package/components/ea-steps/src/style/stylesheet.js +21 -1
- package/components/ea-submenu/index.css +65 -0
- package/components/ea-submenu/index.js +141 -1
- package/components/ea-submenu/index.scss +88 -0
- package/components/ea-submenu/src/style/stylesheet.js +67 -1
- package/components/ea-switch/index.css +90 -0
- package/components/ea-switch/index.js +189 -1
- package/components/ea-switch/index.scss +117 -0
- package/components/ea-switch/src/style/stylesheet.js +92 -1
- package/components/ea-tab/index.css +68 -0
- package/components/ea-tab/index.js +138 -1
- package/components/ea-tab/index.scss +96 -0
- package/components/ea-tab/src/style/stylesheet.js +70 -1
- package/components/ea-table/index.css +98 -0
- package/components/ea-table/index.js +555 -1
- package/components/ea-table/index.scss +90 -0
- package/components/ea-table/src/style/stylesheet.js +100 -1
- package/components/ea-table-column/index.css +0 -0
- package/components/ea-table-column/index.js +164 -1
- package/components/ea-table-column/index.scss +0 -0
- package/components/ea-tabs/index.css +45 -0
- package/components/ea-tabs/index.js +245 -1
- package/components/ea-tabs/index.scss +64 -0
- package/components/ea-tabs/src/style/stylesheet.js +47 -1
- package/components/ea-tag/index.css +90 -0
- package/components/ea-tag/index.js +107 -1
- package/components/ea-tag/index.scss +71 -0
- package/components/ea-tag/src/style/stylesheet.js +92 -1
- package/components/ea-textarea/index.css +37 -0
- package/components/ea-textarea/index.js +277 -1
- package/components/ea-textarea/index.scss +48 -0
- package/components/ea-textarea/src/style/stylesheet.js +39 -1
- package/components/ea-time-picker/index.css +82 -0
- package/components/ea-time-picker/index.js +379 -1
- package/components/ea-time-picker/index.scss +110 -0
- package/components/ea-time-picker/src/style/stylesheet.js +84 -1
- package/components/ea-timeline/index.css +0 -0
- package/components/ea-timeline/index.js +74 -1
- package/components/ea-timeline/index.scss +1 -0
- package/components/ea-timeline/style/stylesheet.js +3 -1
- package/components/ea-timeline-item/index.css +79 -0
- package/components/ea-timeline-item/index.js +146 -1
- package/components/ea-timeline-item/index.scss +92 -0
- package/components/ea-timeline-item/src/style/stylesheet.js +81 -1
- package/components/ea-ui-base-style.css +0 -0
- package/components/ea-ui-base-style.scss +153 -0
- package/components/globalConfig.js +10 -0
- package/components/index.js +67 -0
- package/package.json +2 -2
- package/public/logo.png +0 -0
- package/utils/Validator.js +16 -1
- package/utils/createElement.js +30 -1
- package/utils/handleDefaultAttrIsTrue.js +11 -1
- package/utils/handleTemplate.js +19 -1
- package/utils/setStyle.js +8 -1
- package/utils/timeout.js +16 -1
- package/components/ea-icon/css/animation.css +0 -85
- package/components/ea-icon/css/fontello-embedded.css +0 -181
- package/components/ea-icon/css/fontello-ie7-codes.css +0 -123
- package/components/ea-icon/css/fontello-ie7.css +0 -134
|
@@ -1 +1,122 @@
|
|
|
1
|
-
import Base from
|
|
1
|
+
import Base from '../Base.js'
|
|
2
|
+
import "../ea-icon/index.js"
|
|
3
|
+
|
|
4
|
+
import { stylesheet } from './src/style/stylesheet.js';
|
|
5
|
+
|
|
6
|
+
export class EaLink extends Base {
|
|
7
|
+
#container;
|
|
8
|
+
constructor() {
|
|
9
|
+
super();
|
|
10
|
+
|
|
11
|
+
const shadowRoot = this.attachShadow({ mode: 'open' });
|
|
12
|
+
shadowRoot.innerHTML = `
|
|
13
|
+
<a class="ea-link" part="container">
|
|
14
|
+
<slot></slot>
|
|
15
|
+
</a>
|
|
16
|
+
`;
|
|
17
|
+
|
|
18
|
+
this.#container = shadowRoot.querySelector('.ea-link');
|
|
19
|
+
|
|
20
|
+
this.build(shadowRoot, stylesheet);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
get LINK_TYPE() {
|
|
24
|
+
return ['primary', 'success', 'info', 'warning', 'danger'];
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// ------- href链接 -------
|
|
28
|
+
// #region
|
|
29
|
+
get href() {
|
|
30
|
+
return this.getAttribute('href');
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
set href(value) {
|
|
34
|
+
if (!value) return;
|
|
35
|
+
|
|
36
|
+
this.setAttribute('href', value);
|
|
37
|
+
this.#container.href = value;
|
|
38
|
+
}
|
|
39
|
+
// #endregion
|
|
40
|
+
// ------- end -------
|
|
41
|
+
|
|
42
|
+
// ------- type类型 -------
|
|
43
|
+
// #region
|
|
44
|
+
get type() {
|
|
45
|
+
const attr = this.getAttribute('type');
|
|
46
|
+
return this.LINK_TYPE.includes(attr) ? attr : null;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
set type(value) {
|
|
50
|
+
if (!value) return;
|
|
51
|
+
|
|
52
|
+
if (this.LINK_TYPE.includes(value)) this.#container.classList.add(value);
|
|
53
|
+
}
|
|
54
|
+
// #endregion
|
|
55
|
+
// ------- end -------
|
|
56
|
+
|
|
57
|
+
// ------- disabled禁用状态 -------
|
|
58
|
+
// #region
|
|
59
|
+
get disabled() {
|
|
60
|
+
return this.getAttrBoolean('disabled');
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
set disabled(value) {
|
|
64
|
+
this.setAttribute('disabled', value);
|
|
65
|
+
this.#container.classList.toggle('disabled', value);
|
|
66
|
+
this.style.cursor = value ? 'not-allowed' : 'pointer';
|
|
67
|
+
}
|
|
68
|
+
// #endregion
|
|
69
|
+
// ------- end -------
|
|
70
|
+
|
|
71
|
+
// ------- underline下划线 -------
|
|
72
|
+
// #region
|
|
73
|
+
get underline() {
|
|
74
|
+
return this.getAttrBoolean('underline');
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
set underline(value) {
|
|
78
|
+
this.setAttribute('underline', value);
|
|
79
|
+
this.#container.classList.toggle('underline', value);
|
|
80
|
+
}
|
|
81
|
+
// #endregion
|
|
82
|
+
// ------- end -------
|
|
83
|
+
|
|
84
|
+
// ------- icon图标 -------
|
|
85
|
+
// #region
|
|
86
|
+
get icon() {
|
|
87
|
+
return this.getAttribute('icon');
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
set icon(value) {
|
|
91
|
+
if (!value) return;
|
|
92
|
+
|
|
93
|
+
const icon = document.createElement('ea-icon');
|
|
94
|
+
icon.icon = value;
|
|
95
|
+
this.#container.insertBefore(icon, this.#container.firstChild);
|
|
96
|
+
}
|
|
97
|
+
// #endregion
|
|
98
|
+
// ------- end -------
|
|
99
|
+
|
|
100
|
+
connectedCallback() {
|
|
101
|
+
this.style.display = 'inline-block';
|
|
102
|
+
|
|
103
|
+
// 设置链接
|
|
104
|
+
this.href = this.href;
|
|
105
|
+
|
|
106
|
+
// 设置类型
|
|
107
|
+
this.type = this.type;
|
|
108
|
+
|
|
109
|
+
// 禁用状态
|
|
110
|
+
this.disabled = this.disabled;
|
|
111
|
+
|
|
112
|
+
// 设置下划线
|
|
113
|
+
this.underline = this.underline;
|
|
114
|
+
|
|
115
|
+
// 图标
|
|
116
|
+
this.icon = this.icon;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
if (!window.customElements.get("ea-link")) {
|
|
121
|
+
window.customElements.define("ea-link", EaLink);
|
|
122
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
@import "../ea-ui-base-style.scss";
|
|
2
|
+
|
|
3
|
+
@mixin ea-link-theme($theme-name, $color) {
|
|
4
|
+
&.#{$theme-name} {
|
|
5
|
+
color: $color;
|
|
6
|
+
|
|
7
|
+
&:hover {
|
|
8
|
+
color: lighten($color, 10);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@if ($theme-name == "disabled") {
|
|
12
|
+
pointer-events: none;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.ea-link {
|
|
18
|
+
text-decoration: none;
|
|
19
|
+
color: $color-default-text;
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
|
|
22
|
+
&:hover {
|
|
23
|
+
color: lighten($color-default-text, 10);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&.underline:hover {
|
|
27
|
+
text-decoration: underline;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@include ea-link-theme("primary", $color-primary-bgc);
|
|
31
|
+
@include ea-link-theme("success", $color-success-bgc);
|
|
32
|
+
@include ea-link-theme("info", $color-info-bgc);
|
|
33
|
+
@include ea-link-theme("warning", $color-warning-bgc);
|
|
34
|
+
@include ea-link-theme("danger", $color-danger-bgc);
|
|
35
|
+
@include ea-link-theme("disabled", $color-disabled-text);
|
|
36
|
+
}
|
|
@@ -1 +1,50 @@
|
|
|
1
|
-
export const stylesheet=
|
|
1
|
+
export const stylesheet = `
|
|
2
|
+
.ea-link {
|
|
3
|
+
text-decoration: none;
|
|
4
|
+
color: #606266;
|
|
5
|
+
cursor: pointer;
|
|
6
|
+
}
|
|
7
|
+
.ea-link:hover {
|
|
8
|
+
color: #797b80;
|
|
9
|
+
}
|
|
10
|
+
.ea-link.underline:hover {
|
|
11
|
+
text-decoration: underline;
|
|
12
|
+
}
|
|
13
|
+
.ea-link.primary {
|
|
14
|
+
color: #409eff;
|
|
15
|
+
}
|
|
16
|
+
.ea-link.primary:hover {
|
|
17
|
+
color: #73b8ff;
|
|
18
|
+
}
|
|
19
|
+
.ea-link.success {
|
|
20
|
+
color: #67c23a;
|
|
21
|
+
}
|
|
22
|
+
.ea-link.success:hover {
|
|
23
|
+
color: #85cf60;
|
|
24
|
+
}
|
|
25
|
+
.ea-link.info {
|
|
26
|
+
color: #909399;
|
|
27
|
+
}
|
|
28
|
+
.ea-link.info:hover {
|
|
29
|
+
color: #abadb1;
|
|
30
|
+
}
|
|
31
|
+
.ea-link.warning {
|
|
32
|
+
color: #e6a23c;
|
|
33
|
+
}
|
|
34
|
+
.ea-link.warning:hover {
|
|
35
|
+
color: #ecb869;
|
|
36
|
+
}
|
|
37
|
+
.ea-link.danger {
|
|
38
|
+
color: #f56c6c;
|
|
39
|
+
}
|
|
40
|
+
.ea-link.danger:hover {
|
|
41
|
+
color: #f89c9c;
|
|
42
|
+
}
|
|
43
|
+
.ea-link.disabled {
|
|
44
|
+
color: #c0c4cc;
|
|
45
|
+
pointer-events: none;
|
|
46
|
+
}
|
|
47
|
+
.ea-link.disabled:hover {
|
|
48
|
+
color: #dcdee3;
|
|
49
|
+
}
|
|
50
|
+
`;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
.ea-loading_wrap {
|
|
2
|
+
position: relative;
|
|
3
|
+
}
|
|
4
|
+
.ea-loading_wrap .ea-loading_mask {
|
|
5
|
+
position: absolute;
|
|
6
|
+
top: 0;
|
|
7
|
+
left: 0;
|
|
8
|
+
display: none;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
align-items: center;
|
|
11
|
+
width: 100%;
|
|
12
|
+
height: 100%;
|
|
13
|
+
background-color: hsla(0, 0%, 100%, 0.9);
|
|
14
|
+
z-index: 1;
|
|
15
|
+
transition: background-color 0.2s;
|
|
16
|
+
}
|
|
17
|
+
.ea-loading_wrap .ea-loading_spinner,
|
|
18
|
+
.ea-loading_wrap .ea-loading_text {
|
|
19
|
+
color: #409eff;
|
|
20
|
+
}
|
|
21
|
+
.ea-loading_wrap .ea-loading_spinner {
|
|
22
|
+
font-size: 2rem;
|
|
23
|
+
}
|
|
24
|
+
.ea-loading_wrap .ea-loading_text {
|
|
25
|
+
margin-left: 0.5rem;
|
|
26
|
+
}
|
|
27
|
+
.ea-loading_wrap.ea-loading_wrap--fullscreen {
|
|
28
|
+
position: fixed;
|
|
29
|
+
left: 0;
|
|
30
|
+
top: 0;
|
|
31
|
+
z-index: 3000;
|
|
32
|
+
width: 100%;
|
|
33
|
+
height: 100%;
|
|
34
|
+
overflow: hidden;
|
|
35
|
+
}
|
|
36
|
+
.ea-loading_wrap.ea-loading_wrap--loading .ea-loading_mask {
|
|
37
|
+
display: flex;
|
|
38
|
+
}
|
|
@@ -1 +1,166 @@
|
|
|
1
|
-
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import Base from '../Base.js';
|
|
3
|
+
import "../ea-icon/index.js";
|
|
4
|
+
|
|
5
|
+
import { stylesheet } from './src/style/stylesheet.js';
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
export class EaLoading extends Base {
|
|
9
|
+
#wrap;
|
|
10
|
+
|
|
11
|
+
#loadingWrap;
|
|
12
|
+
|
|
13
|
+
#spinner;
|
|
14
|
+
constructor() {
|
|
15
|
+
super();
|
|
16
|
+
|
|
17
|
+
const shadowRoot = this.attachShadow({ mode: 'open' });
|
|
18
|
+
shadowRoot.innerHTML = `
|
|
19
|
+
<div class="ea-loading_wrap" part="container">
|
|
20
|
+
<div class="ea-loading_mask" part="mask-wrap">
|
|
21
|
+
<ea-icon icon="icon-spin6 animate-spin" class="ea-loading_spinner" part="icon"></ea-icon>
|
|
22
|
+
</div>
|
|
23
|
+
<div class="ea-loading_content" part="content-wrap">
|
|
24
|
+
<slot></slot>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
`;
|
|
28
|
+
|
|
29
|
+
this.#wrap = shadowRoot.querySelector('.ea-loading_wrap');
|
|
30
|
+
this.#loadingWrap = shadowRoot.querySelector('.ea-loading_mask');
|
|
31
|
+
this.#spinner = shadowRoot.querySelector('.ea-loading_spinner');
|
|
32
|
+
|
|
33
|
+
this.build(shadowRoot, stylesheet);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// ------- loading 加载状态 -------
|
|
37
|
+
// #region
|
|
38
|
+
get loading() {
|
|
39
|
+
return this.getAttrBoolean('loading') || false;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
set loading(flag) {
|
|
43
|
+
this.setAttribute('loading', flag);
|
|
44
|
+
|
|
45
|
+
this.#wrap.classList.toggle('ea-loading_wrap--loading', flag);
|
|
46
|
+
|
|
47
|
+
this.#handleFullscreen(this.fullscreen, flag, this.lock);
|
|
48
|
+
}
|
|
49
|
+
// #endregion
|
|
50
|
+
// ------- end -------
|
|
51
|
+
|
|
52
|
+
// ------- spinner 加载图标 -------
|
|
53
|
+
// #region
|
|
54
|
+
get spinner() {
|
|
55
|
+
return this.getAttribute('spinner') || "icon-spin6";
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
set spinner(val) {
|
|
59
|
+
this.setAttribute('spinner', val);
|
|
60
|
+
|
|
61
|
+
this.#spinner.icon = `${val} animate-spin`
|
|
62
|
+
}
|
|
63
|
+
// #endregion
|
|
64
|
+
// ------- end -------
|
|
65
|
+
|
|
66
|
+
// ------- spinner-size 加载图标大小 -------
|
|
67
|
+
// #region
|
|
68
|
+
get spinnerSize() {
|
|
69
|
+
return this.getAttrNumber('spinner-size') || 16;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
set spinnerSize(val) {
|
|
73
|
+
this.setAttribute('spinner-size', val);
|
|
74
|
+
|
|
75
|
+
this.#spinner.style.fontSize = `${val}px`;
|
|
76
|
+
}
|
|
77
|
+
// #endregion
|
|
78
|
+
// ------- end -------
|
|
79
|
+
|
|
80
|
+
// ------- background 背景颜色 -------
|
|
81
|
+
// #region
|
|
82
|
+
get background() {
|
|
83
|
+
return this.getAttribute('background') || "hsla(0, 0%, 100%, 0.9)";
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
set background(val) {
|
|
87
|
+
this.setAttribute('background', val);
|
|
88
|
+
|
|
89
|
+
this.#loadingWrap.style.backgroundColor = val;
|
|
90
|
+
}
|
|
91
|
+
// #endregion
|
|
92
|
+
// ------- end -------
|
|
93
|
+
|
|
94
|
+
// ------- text 文本 -------
|
|
95
|
+
// #region
|
|
96
|
+
get text() {
|
|
97
|
+
return this.getAttribute('text') || "";
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
set text(val) {
|
|
101
|
+
if (!val) return;
|
|
102
|
+
|
|
103
|
+
this.setAttribute('text', val);
|
|
104
|
+
}
|
|
105
|
+
// #endregion
|
|
106
|
+
// ------- end -------
|
|
107
|
+
|
|
108
|
+
// ------- fullscreen 全屏 -------
|
|
109
|
+
// #region
|
|
110
|
+
get fullscreen() {
|
|
111
|
+
return this.getAttrBoolean('fullscreen') || false;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
set fullscreen(val) {
|
|
115
|
+
if (!val) return;
|
|
116
|
+
|
|
117
|
+
this.setAttribute('fullscreen', val);
|
|
118
|
+
}
|
|
119
|
+
// #endregion
|
|
120
|
+
// ------- end -------
|
|
121
|
+
|
|
122
|
+
// ------- lock 全屏是否锁定 -------
|
|
123
|
+
// #region
|
|
124
|
+
get lock() {
|
|
125
|
+
return this.getAttrBoolean('lock') || false;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
set lock(val) {
|
|
129
|
+
if (!val) return;
|
|
130
|
+
|
|
131
|
+
this.setAttribute('lock', val);
|
|
132
|
+
}
|
|
133
|
+
// #endregion
|
|
134
|
+
// ------- end -------
|
|
135
|
+
|
|
136
|
+
#handleFullscreen(isFullscreen, isLoading, isLock) {
|
|
137
|
+
if (isFullscreen) {
|
|
138
|
+
this.#wrap.classList.toggle('ea-loading_wrap--fullscreen', isLoading);
|
|
139
|
+
|
|
140
|
+
if (isLock) document.body.style.overflow = isLoading ? 'hidden' : 'auto';
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
connectedCallback() {
|
|
145
|
+
this.fullscreen = this.fullscreen;
|
|
146
|
+
|
|
147
|
+
this.loading = this.loading;
|
|
148
|
+
|
|
149
|
+
this.spinnerSize = this.spinnerSize;
|
|
150
|
+
|
|
151
|
+
this.spinner = this.spinner;
|
|
152
|
+
|
|
153
|
+
this.background = this.background;
|
|
154
|
+
|
|
155
|
+
if (this.text) {
|
|
156
|
+
const el = document.createElement('div');
|
|
157
|
+
el.className = 'ea-loading_text';
|
|
158
|
+
el.innerHTML = this.text;
|
|
159
|
+
this.#loadingWrap.appendChild(el);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
if (!customElements.get('ea-loading')) {
|
|
165
|
+
customElements.define('ea-loading', EaLoading);
|
|
166
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
@import "../ea-ui-base-style.scss";
|
|
2
|
+
|
|
3
|
+
.ea-loading_wrap {
|
|
4
|
+
position: relative;
|
|
5
|
+
|
|
6
|
+
.ea-loading_mask {
|
|
7
|
+
position: absolute;
|
|
8
|
+
top: 0;
|
|
9
|
+
left: 0;
|
|
10
|
+
|
|
11
|
+
display: none;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
align-items: center;
|
|
14
|
+
|
|
15
|
+
width: 100%;
|
|
16
|
+
height: 100%;
|
|
17
|
+
|
|
18
|
+
background-color: hsla(0, 0%, 100%, 0.9);
|
|
19
|
+
z-index: 1;
|
|
20
|
+
|
|
21
|
+
transition: background-color 0.2s;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.ea-loading_spinner,
|
|
25
|
+
.ea-loading_text {
|
|
26
|
+
color: $color-primary-bgc;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.ea-loading_spinner {
|
|
30
|
+
font-size: 2rem;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.ea-loading_text {
|
|
34
|
+
margin-left: 0.5rem;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&.ea-loading_wrap--fullscreen {
|
|
38
|
+
position: fixed;
|
|
39
|
+
left: 0;
|
|
40
|
+
top: 0;
|
|
41
|
+
|
|
42
|
+
z-index: 3000;
|
|
43
|
+
|
|
44
|
+
width: 100%;
|
|
45
|
+
height: 100%;
|
|
46
|
+
|
|
47
|
+
overflow: hidden;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&.ea-loading_wrap--loading {
|
|
51
|
+
.ea-loading_mask {
|
|
52
|
+
display: flex;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -1 +1,40 @@
|
|
|
1
|
-
export const stylesheet=
|
|
1
|
+
export const stylesheet = `
|
|
2
|
+
.ea-loading_wrap {
|
|
3
|
+
position: relative;
|
|
4
|
+
}
|
|
5
|
+
.ea-loading_wrap .ea-loading_mask {
|
|
6
|
+
position: absolute;
|
|
7
|
+
top: 0;
|
|
8
|
+
left: 0;
|
|
9
|
+
display: none;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
align-items: center;
|
|
12
|
+
width: 100%;
|
|
13
|
+
height: 100%;
|
|
14
|
+
background-color: hsla(0, 0%, 100%, 0.9);
|
|
15
|
+
z-index: 1;
|
|
16
|
+
transition: background-color 0.2s;
|
|
17
|
+
}
|
|
18
|
+
.ea-loading_wrap .ea-loading_spinner,
|
|
19
|
+
.ea-loading_wrap .ea-loading_text {
|
|
20
|
+
color: #409eff;
|
|
21
|
+
}
|
|
22
|
+
.ea-loading_wrap .ea-loading_spinner {
|
|
23
|
+
font-size: 2rem;
|
|
24
|
+
}
|
|
25
|
+
.ea-loading_wrap .ea-loading_text {
|
|
26
|
+
margin-left: 0.5rem;
|
|
27
|
+
}
|
|
28
|
+
.ea-loading_wrap.ea-loading_wrap--fullscreen {
|
|
29
|
+
position: fixed;
|
|
30
|
+
left: 0;
|
|
31
|
+
top: 0;
|
|
32
|
+
z-index: 3000;
|
|
33
|
+
width: 100%;
|
|
34
|
+
height: 100%;
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
}
|
|
37
|
+
.ea-loading_wrap.ea-loading_wrap--loading .ea-loading_mask {
|
|
38
|
+
display: flex;
|
|
39
|
+
}
|
|
40
|
+
`;
|
|
@@ -1 +1,32 @@
|
|
|
1
|
-
import Base from
|
|
1
|
+
import Base from '../Base.js';
|
|
2
|
+
import '../ea-icon/index.js'
|
|
3
|
+
|
|
4
|
+
const stylesheet = `
|
|
5
|
+
.ea-main_wrap {
|
|
6
|
+
width: 100%;
|
|
7
|
+
height: 100%;
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
padding: 0 20px;
|
|
10
|
+
overflow: auto;
|
|
11
|
+
color: #333;
|
|
12
|
+
}
|
|
13
|
+
`;
|
|
14
|
+
|
|
15
|
+
export class EaMain extends Base {
|
|
16
|
+
constructor() {
|
|
17
|
+
super();
|
|
18
|
+
|
|
19
|
+
const shadowRoot = this.attachShadow({ mode: 'open' });
|
|
20
|
+
shadowRoot.innerHTML = `
|
|
21
|
+
<main class="ea-main_wrap" part="container">
|
|
22
|
+
<slot></slot>
|
|
23
|
+
</main>
|
|
24
|
+
`;
|
|
25
|
+
|
|
26
|
+
this.build(shadowRoot, stylesheet);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
if (!customElements.get('ea-main')) {
|
|
31
|
+
customElements.define('ea-main', EaMain);
|
|
32
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
.ea-menu_wrap {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: row;
|
|
4
|
+
align-items: center;
|
|
5
|
+
padding: 0 20px;
|
|
6
|
+
}
|
|
7
|
+
.ea-menu_wrap.is-vertical {
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
align-items: flex-start;
|
|
10
|
+
border-right: 1px solid #e6e6e6;
|
|
11
|
+
overflow: auto;
|
|
12
|
+
}
|
|
13
|
+
.ea-menu_wrap.is-vertical ::slotted(ea-menu-item),
|
|
14
|
+
.ea-menu_wrap.is-vertical ::slotted(ea-submenu) {
|
|
15
|
+
width: 100%;
|
|
16
|
+
}
|
|
17
|
+
.ea-menu_wrap.is-vertical ::slotted(ea-submenu) {
|
|
18
|
+
width: 100%;
|
|
19
|
+
}
|