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,84 @@
|
|
|
1
|
-
export const stylesheet=
|
|
1
|
+
export const stylesheet = `
|
|
2
|
+
.ea-time-picker_wrap {
|
|
3
|
+
position: relative;
|
|
4
|
+
}
|
|
5
|
+
.ea-time-picker_wrap .ea-time-picker_dropdown-wrap {
|
|
6
|
+
position: absolute;
|
|
7
|
+
bottom: -12px;
|
|
8
|
+
left: 0;
|
|
9
|
+
transform-origin: center top;
|
|
10
|
+
transform: translateY(100%) scaleY(0);
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
background-color: #fff;
|
|
13
|
+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
|
14
|
+
z-index: 2;
|
|
15
|
+
}
|
|
16
|
+
.ea-time-picker_wrap .ea-time-picker_dropdown-wrap::before {
|
|
17
|
+
content: "";
|
|
18
|
+
position: absolute;
|
|
19
|
+
top: 0;
|
|
20
|
+
left: 0.5rem;
|
|
21
|
+
border: 0.5rem solid transparent;
|
|
22
|
+
border-bottom-color: #fff;
|
|
23
|
+
transform: translateY(-100%);
|
|
24
|
+
}
|
|
25
|
+
.ea-time-picker_wrap .ea-time-picker_dropdown-wrap .ea-time-picker_dropdown-inner-wrap {
|
|
26
|
+
display: flex;
|
|
27
|
+
position: relative;
|
|
28
|
+
margin: 1rem 0;
|
|
29
|
+
}
|
|
30
|
+
.ea-time-picker_wrap .ea-time-picker_dropdown-wrap .ea-time-picker_dropdown-inner-wrap::before, .ea-time-picker_wrap .ea-time-picker_dropdown-wrap .ea-time-picker_dropdown-inner-wrap::after {
|
|
31
|
+
content: "";
|
|
32
|
+
position: absolute;
|
|
33
|
+
left: 0;
|
|
34
|
+
transform: translateY(-50%);
|
|
35
|
+
width: 100%;
|
|
36
|
+
}
|
|
37
|
+
.ea-time-picker_wrap .ea-time-picker_dropdown-wrap .ea-time-picker_dropdown-inner-wrap::before {
|
|
38
|
+
top: calc(50% - 16px);
|
|
39
|
+
border-bottom: 1px solid #e4e7ed;
|
|
40
|
+
}
|
|
41
|
+
.ea-time-picker_wrap .ea-time-picker_dropdown-wrap .ea-time-picker_dropdown-inner-wrap::after {
|
|
42
|
+
top: calc(50% + 16px);
|
|
43
|
+
border-bottom: 1px solid #e4e7ed;
|
|
44
|
+
}
|
|
45
|
+
.ea-time-picker_wrap .ea-time-picker_dropdown-wrap .ea-time-picker_dropdown-inner-wrap .ea-time-picker_dropdown-inner {
|
|
46
|
+
flex: 1;
|
|
47
|
+
max-height: 190px;
|
|
48
|
+
box-sizing: border-box;
|
|
49
|
+
padding: 5rem 0;
|
|
50
|
+
text-align: center;
|
|
51
|
+
overflow: auto;
|
|
52
|
+
scrollbar-width: none;
|
|
53
|
+
margin-block-start: 0;
|
|
54
|
+
margin-block-end: 0;
|
|
55
|
+
margin-inline-start: 0px;
|
|
56
|
+
margin-inline-end: 0px;
|
|
57
|
+
padding-inline-start: 0px;
|
|
58
|
+
list-style-type: none;
|
|
59
|
+
}
|
|
60
|
+
.ea-time-picker_wrap .ea-time-picker_dropdown-wrap .ea-time-picker_dropdown-inner-wrap .ea-time-picker_dropdown-inner .ea-time-picker_dropdown-item {
|
|
61
|
+
height: 32px;
|
|
62
|
+
line-height: 32px;
|
|
63
|
+
font-size: 12px;
|
|
64
|
+
color: #606266;
|
|
65
|
+
transition: color 0.3s;
|
|
66
|
+
}
|
|
67
|
+
.ea-time-picker_wrap .ea-time-picker_dropdown-wrap .ea-time-picker_dropdown-inner-wrap .ea-time-picker_dropdown-inner .ea-time-picker_dropdown-item.is-active {
|
|
68
|
+
color: #409eff;
|
|
69
|
+
}
|
|
70
|
+
.ea-time-picker_wrap .ea-time-picker_dropdown-wrap .ea-time-picker_dropdown-inner-wrap .ea-time-picker_dropdown-inner .ea-time-picker_dropdown-item.is-disabled {
|
|
71
|
+
color: #c0c4cc;
|
|
72
|
+
}
|
|
73
|
+
.ea-time-picker_wrap .ea-time-picker_dropdown-wrap .ea-time-picker_dropdown-button-group {
|
|
74
|
+
text-align: right;
|
|
75
|
+
box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.1);
|
|
76
|
+
border-top: 1px solid rgba(0, 0, 0, 0.1);
|
|
77
|
+
}
|
|
78
|
+
.ea-time-picker_wrap.is-open .ea-time-picker_dropdown-wrap {
|
|
79
|
+
transform: translateY(100%) scaleY(1);
|
|
80
|
+
}
|
|
81
|
+
.ea-time-picker_wrap.with-transition .ea-time-picker_dropdown-wrap {
|
|
82
|
+
transition: transform 0.3s ease-in-out;
|
|
83
|
+
}
|
|
84
|
+
`;
|
|
File without changes
|
|
@@ -1 +1,74 @@
|
|
|
1
|
-
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import Base from '../Base.js';
|
|
3
|
+
|
|
4
|
+
import "../ea-timeline-item/index.js"
|
|
5
|
+
|
|
6
|
+
import { handleDefaultAttrIsTrue } from '../../utils/handleDefaultAttrIsTrue.js';
|
|
7
|
+
import { timeout } from '../../utils/timeout.js';
|
|
8
|
+
|
|
9
|
+
import { stylesheet } from './style/stylesheet.js';
|
|
10
|
+
|
|
11
|
+
export class EaTimeline extends Base {
|
|
12
|
+
#wrap;
|
|
13
|
+
|
|
14
|
+
#container;
|
|
15
|
+
|
|
16
|
+
constructor() {
|
|
17
|
+
super();
|
|
18
|
+
|
|
19
|
+
const shadowRoot = this.attachShadow({ mode: 'open' });
|
|
20
|
+
shadowRoot.innerHTML = `
|
|
21
|
+
<div class='ea-timeline_wrap' part='container'>
|
|
22
|
+
<ul class='ea-timeline-item_container' part='list-wrap'>
|
|
23
|
+
<slot></slot>
|
|
24
|
+
</ul>
|
|
25
|
+
</div>
|
|
26
|
+
`;
|
|
27
|
+
|
|
28
|
+
this.#wrap = shadowRoot.querySelector('.ea-timeline_wrap');
|
|
29
|
+
this.#container = shadowRoot.querySelector('.ea-timeline-item_container');
|
|
30
|
+
|
|
31
|
+
this.build(shadowRoot, stylesheet);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// ------- reverse 时间线排序 -------
|
|
35
|
+
// #region
|
|
36
|
+
get reverse() {
|
|
37
|
+
const attr = this.getAttribute('reverse');
|
|
38
|
+
|
|
39
|
+
return handleDefaultAttrIsTrue(attr);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
set reverse(value) {
|
|
43
|
+
this.setAttribute('reverse', value);
|
|
44
|
+
|
|
45
|
+
this.#sortTimeline(value);
|
|
46
|
+
}
|
|
47
|
+
// #endregion
|
|
48
|
+
// ------- end -------
|
|
49
|
+
|
|
50
|
+
#sortTimeline(flag) {
|
|
51
|
+
flag = flag === "true" || flag === true ? true : false;
|
|
52
|
+
|
|
53
|
+
const timelineItems = Array.from(this.querySelectorAll('ea-timeline-item'));
|
|
54
|
+
const timeArr = timelineItems.sort((a, b) => {
|
|
55
|
+
const aTime = new Date(a.time);
|
|
56
|
+
const bTime = new Date(b.time);
|
|
57
|
+
|
|
58
|
+
return flag ? (bTime - aTime) : (aTime - bTime);
|
|
59
|
+
})
|
|
60
|
+
|
|
61
|
+
timeArr.forEach((item, index) => {
|
|
62
|
+
this.appendChild(item);
|
|
63
|
+
})
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
connectedCallback() {
|
|
67
|
+
this.reverse = this.reverse;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
if (!customElements.get('ea-timeline')) {
|
|
72
|
+
customElements.define('ea-timeline', EaTimeline);
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "../ea-ui-base-style.scss";
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
.ea-timeline-item_wrap {
|
|
2
|
+
position: relative;
|
|
3
|
+
padding-bottom: 20px;
|
|
4
|
+
padding-left: 28px;
|
|
5
|
+
list-style: none;
|
|
6
|
+
}
|
|
7
|
+
.ea-timeline-item_wrap .ea-timeline-item_circle {
|
|
8
|
+
position: absolute;
|
|
9
|
+
left: 0;
|
|
10
|
+
z-index: 1;
|
|
11
|
+
display: block;
|
|
12
|
+
width: 12px;
|
|
13
|
+
height: 12px;
|
|
14
|
+
font-size: 12px;
|
|
15
|
+
border-radius: 50%;
|
|
16
|
+
background-color: #e4e7ed;
|
|
17
|
+
}
|
|
18
|
+
.ea-timeline-item_wrap .ea-timeline-item_circle.ea-timeline-item--primary {
|
|
19
|
+
background-color: #409eff;
|
|
20
|
+
color: #409eff;
|
|
21
|
+
}
|
|
22
|
+
.ea-timeline-item_wrap .ea-timeline-item_circle.ea-timeline-item--success {
|
|
23
|
+
background-color: #67c23a;
|
|
24
|
+
color: #67c23a;
|
|
25
|
+
}
|
|
26
|
+
.ea-timeline-item_wrap .ea-timeline-item_circle.ea-timeline-item--warning {
|
|
27
|
+
background-color: #e6a23c;
|
|
28
|
+
color: #e6a23c;
|
|
29
|
+
}
|
|
30
|
+
.ea-timeline-item_wrap .ea-timeline-item_circle.ea-timeline-item--danger {
|
|
31
|
+
background-color: #f56c6c;
|
|
32
|
+
color: #f56c6c;
|
|
33
|
+
}
|
|
34
|
+
.ea-timeline-item_wrap .ea-timeline-item_circle.ea-timeline-item--info {
|
|
35
|
+
background-color: #e4e7ed;
|
|
36
|
+
color: #e4e7ed;
|
|
37
|
+
}
|
|
38
|
+
.ea-timeline-item_wrap .ea-timeline-item_tail {
|
|
39
|
+
z-index: 0;
|
|
40
|
+
position: absolute;
|
|
41
|
+
left: 0.3281rem;
|
|
42
|
+
height: 100%;
|
|
43
|
+
border-left: 2px solid #e4e7ed;
|
|
44
|
+
}
|
|
45
|
+
.ea-timeline-item_wrap .ea-timeline-item_container {
|
|
46
|
+
position: relative;
|
|
47
|
+
top: -4px;
|
|
48
|
+
font-size: 14px;
|
|
49
|
+
display: flex;
|
|
50
|
+
flex-direction: column;
|
|
51
|
+
}
|
|
52
|
+
.ea-timeline-item_wrap .ea-timeline-item_container .ea-timeline-item_timestamp {
|
|
53
|
+
color: #909399;
|
|
54
|
+
line-height: 1;
|
|
55
|
+
margin-top: 8px;
|
|
56
|
+
}
|
|
57
|
+
.ea-timeline-item_wrap .ea-timeline-item_container .ea-timeline-item_content {
|
|
58
|
+
color: #303133;
|
|
59
|
+
}
|
|
60
|
+
.ea-timeline-item_wrap .ea-timeline-item_container.ea-timeline-item_timestamp--top {
|
|
61
|
+
flex-direction: column-reverse;
|
|
62
|
+
}
|
|
63
|
+
.ea-timeline-item_wrap .ea-timeline-item_container.ea-timeline-item_timestamp--top .ea-timeline-item_timestamp {
|
|
64
|
+
margin-top: 0;
|
|
65
|
+
margin-bottom: 8px;
|
|
66
|
+
}
|
|
67
|
+
.ea-timeline-item_wrap .ea-timeline-item_container.ea-timeline-item_timestamp--bottom {
|
|
68
|
+
flex-direction: column;
|
|
69
|
+
}
|
|
70
|
+
.ea-timeline-item_wrap.ea-timeline-item_circle--large .ea-timeline-item_circle {
|
|
71
|
+
width: 14px;
|
|
72
|
+
height: 14px;
|
|
73
|
+
}
|
|
74
|
+
.ea-timeline-item_wrap.ea-timeline-item_circle--large .ea-timeline-item_tail {
|
|
75
|
+
left: 0.3906rem;
|
|
76
|
+
}
|
|
77
|
+
.ea-timeline-item_wrap.ea-timeline-item_circle--large .ea-timeline-item_container {
|
|
78
|
+
font-size: 16px;
|
|
79
|
+
}
|
|
@@ -1 +1,146 @@
|
|
|
1
|
-
import Base from
|
|
1
|
+
import Base from '../Base.js';
|
|
2
|
+
|
|
3
|
+
import { stylesheet } from './src/style/stylesheet.js';
|
|
4
|
+
|
|
5
|
+
export class EaTimelineItem extends Base {
|
|
6
|
+
#wrap;
|
|
7
|
+
|
|
8
|
+
#timeWrap;
|
|
9
|
+
|
|
10
|
+
#timelineCircle;
|
|
11
|
+
#timelineTimestamp;
|
|
12
|
+
constructor() {
|
|
13
|
+
super();
|
|
14
|
+
|
|
15
|
+
const shadowRoot = this.attachShadow({ mode: 'open' });
|
|
16
|
+
shadowRoot.innerHTML = `
|
|
17
|
+
<div class='ea-timeline-item_wrap' part='container'>
|
|
18
|
+
<div class='ea-timeline-item_circle' part='circle'></div>
|
|
19
|
+
<div class='ea-timeline-item_tail' part='tail'></div>
|
|
20
|
+
<div class='ea-timeline-item_container' part='body'>
|
|
21
|
+
<div class='ea-timeline-item_content' part='content'>
|
|
22
|
+
<slot></slot>
|
|
23
|
+
</div>
|
|
24
|
+
<div class='ea-timeline-item_timestamp' part='timestamp'></div>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
`;
|
|
28
|
+
|
|
29
|
+
this.#wrap = shadowRoot.querySelector('.ea-timeline-item_wrap');
|
|
30
|
+
this.#timeWrap = shadowRoot.querySelector('.ea-timeline-item_timestamp');
|
|
31
|
+
this.#timelineCircle = shadowRoot.querySelector('.ea-timeline-item_circle');
|
|
32
|
+
this.#timelineTimestamp = shadowRoot.querySelector('.ea-timeline-item_timestamp');
|
|
33
|
+
|
|
34
|
+
this.build(shadowRoot, stylesheet);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// ------- time 时间 -------
|
|
38
|
+
// #region
|
|
39
|
+
get time() {
|
|
40
|
+
return this.getAttribute('time') || "";
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
set time(value) {
|
|
44
|
+
if (!value) return;
|
|
45
|
+
|
|
46
|
+
this.setAttribute('time', value);
|
|
47
|
+
|
|
48
|
+
this.#timelineTimestamp.innerText = value;
|
|
49
|
+
}
|
|
50
|
+
// #endregion
|
|
51
|
+
// ------- end -------
|
|
52
|
+
|
|
53
|
+
// ------- type 时间线类型 -------
|
|
54
|
+
// #region
|
|
55
|
+
get typeList() {
|
|
56
|
+
return ["primary", "success", "warning", "danger", "info"];
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
get type() {
|
|
60
|
+
const attr = this.getAttribute('type');
|
|
61
|
+
|
|
62
|
+
return this.typeList.includes(attr) ? attr : "info";
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
set type(value) {
|
|
66
|
+
this.setAttribute('type', value);
|
|
67
|
+
|
|
68
|
+
this.#timelineCircle.classList.add(`ea-timeline-item--${value}`);
|
|
69
|
+
}
|
|
70
|
+
// #endregion
|
|
71
|
+
// ------- end -------
|
|
72
|
+
|
|
73
|
+
// ------- color 时间线颜色 -------
|
|
74
|
+
// #region
|
|
75
|
+
get color() {
|
|
76
|
+
return this.getAttribute('color') || "";
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
set color(value) {
|
|
80
|
+
if (!value) return;
|
|
81
|
+
|
|
82
|
+
this.setAttribute('color', value);
|
|
83
|
+
|
|
84
|
+
const isColor = new Option().style.color = value;
|
|
85
|
+
|
|
86
|
+
if (isColor !== "") this.#timelineCircle.style.backgroundColor = value;
|
|
87
|
+
}
|
|
88
|
+
// #endregion
|
|
89
|
+
// ------- end -------
|
|
90
|
+
|
|
91
|
+
// ------- size 时间线尺寸 -------
|
|
92
|
+
// #region
|
|
93
|
+
get sizeList() {
|
|
94
|
+
return ["normal", "large"];
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
get size() {
|
|
98
|
+
const attr = this.getAttribute('size');
|
|
99
|
+
|
|
100
|
+
return this.sizeList.includes(attr) ? attr : "normal";
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
set size(value) {
|
|
104
|
+
this.setAttribute('size', value);
|
|
105
|
+
|
|
106
|
+
this.#wrap.classList.add(`ea-timeline-item_circle--${value}`);
|
|
107
|
+
}
|
|
108
|
+
// #endregion
|
|
109
|
+
// ------- end -------
|
|
110
|
+
|
|
111
|
+
// ------- placement 时间的显示位置 -------
|
|
112
|
+
// #region
|
|
113
|
+
get placementList() {
|
|
114
|
+
return ["top", "bottom"];
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
get placement() {
|
|
118
|
+
const attr = this.getAttribute('placement');
|
|
119
|
+
|
|
120
|
+
return this.placementList.includes(attr) ? attr : "bottom";
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
set placement(value) {
|
|
124
|
+
this.setAttribute('placement', value);
|
|
125
|
+
|
|
126
|
+
this.#timeWrap.classList.add(`ea-timeline-item_timestamp--${value}`);
|
|
127
|
+
}
|
|
128
|
+
// #endregion
|
|
129
|
+
// ------- end -------d
|
|
130
|
+
|
|
131
|
+
connectedCallback() {
|
|
132
|
+
this.time = this.time;
|
|
133
|
+
|
|
134
|
+
this.type = this.type;
|
|
135
|
+
|
|
136
|
+
this.color = this.color;
|
|
137
|
+
|
|
138
|
+
this.size = this.size;
|
|
139
|
+
|
|
140
|
+
this.placement = this.placement;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
if (!customElements.get('ea-timeline-item')) {
|
|
145
|
+
customElements.define('ea-timeline-item', EaTimelineItem);
|
|
146
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
@import "../ea-ui-base-style.scss";
|
|
2
|
+
|
|
3
|
+
$types: (
|
|
4
|
+
"primary": #409eff,
|
|
5
|
+
"success": #67c23a,
|
|
6
|
+
"warning": #e6a23c,
|
|
7
|
+
"danger": #f56c6c,
|
|
8
|
+
"info": #e4e7ed,
|
|
9
|
+
);
|
|
10
|
+
|
|
11
|
+
.ea-timeline-item_wrap {
|
|
12
|
+
position: relative;
|
|
13
|
+
padding-bottom: 20px;
|
|
14
|
+
padding-left: 28px;
|
|
15
|
+
list-style: none;
|
|
16
|
+
|
|
17
|
+
.ea-timeline-item_circle {
|
|
18
|
+
position: absolute;
|
|
19
|
+
left: 0;
|
|
20
|
+
z-index: 1;
|
|
21
|
+
|
|
22
|
+
display: block;
|
|
23
|
+
width: 12px;
|
|
24
|
+
height: 12px;
|
|
25
|
+
font-size: 12px;
|
|
26
|
+
|
|
27
|
+
border-radius: 50%;
|
|
28
|
+
background-color: #e4e7ed;
|
|
29
|
+
|
|
30
|
+
@each $type in map-keys($types) {
|
|
31
|
+
&.ea-timeline-item--#{$type} {
|
|
32
|
+
background-color: map-get($types, $type);
|
|
33
|
+
color: map-get($types, $type);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.ea-timeline-item_tail {
|
|
39
|
+
z-index: 0;
|
|
40
|
+
position: absolute;
|
|
41
|
+
left: 0.3281rem;
|
|
42
|
+
height: 100%;
|
|
43
|
+
border-left: 2px solid #e4e7ed;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.ea-timeline-item_container {
|
|
47
|
+
position: relative;
|
|
48
|
+
top: -4px;
|
|
49
|
+
font-size: 14px;
|
|
50
|
+
|
|
51
|
+
display: flex;
|
|
52
|
+
flex-direction: column;
|
|
53
|
+
|
|
54
|
+
.ea-timeline-item_timestamp {
|
|
55
|
+
color: #909399;
|
|
56
|
+
line-height: 1;
|
|
57
|
+
margin-top: 8px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.ea-timeline-item_content {
|
|
61
|
+
color: #303133;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&.ea-timeline-item_timestamp--top {
|
|
65
|
+
flex-direction: column-reverse;
|
|
66
|
+
|
|
67
|
+
.ea-timeline-item_timestamp {
|
|
68
|
+
margin-top: 0;
|
|
69
|
+
margin-bottom: 8px;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&.ea-timeline-item_timestamp--bottom {
|
|
74
|
+
flex-direction: column;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&.ea-timeline-item_circle--large {
|
|
79
|
+
.ea-timeline-item_circle {
|
|
80
|
+
width: 14px;
|
|
81
|
+
height: 14px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.ea-timeline-item_tail {
|
|
85
|
+
left: 0.3906rem;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.ea-timeline-item_container {
|
|
89
|
+
font-size: 16px;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
@@ -1 +1,81 @@
|
|
|
1
|
-
export const stylesheet=
|
|
1
|
+
export const stylesheet = `
|
|
2
|
+
.ea-timeline-item_wrap {
|
|
3
|
+
position: relative;
|
|
4
|
+
padding-bottom: 20px;
|
|
5
|
+
padding-left: 28px;
|
|
6
|
+
list-style: none;
|
|
7
|
+
}
|
|
8
|
+
.ea-timeline-item_wrap .ea-timeline-item_circle {
|
|
9
|
+
position: absolute;
|
|
10
|
+
left: 0;
|
|
11
|
+
z-index: 1;
|
|
12
|
+
display: block;
|
|
13
|
+
width: 12px;
|
|
14
|
+
height: 12px;
|
|
15
|
+
font-size: 12px;
|
|
16
|
+
border-radius: 50%;
|
|
17
|
+
background-color: #e4e7ed;
|
|
18
|
+
}
|
|
19
|
+
.ea-timeline-item_wrap .ea-timeline-item_circle.ea-timeline-item--primary {
|
|
20
|
+
background-color: #409eff;
|
|
21
|
+
color: #409eff;
|
|
22
|
+
}
|
|
23
|
+
.ea-timeline-item_wrap .ea-timeline-item_circle.ea-timeline-item--success {
|
|
24
|
+
background-color: #67c23a;
|
|
25
|
+
color: #67c23a;
|
|
26
|
+
}
|
|
27
|
+
.ea-timeline-item_wrap .ea-timeline-item_circle.ea-timeline-item--warning {
|
|
28
|
+
background-color: #e6a23c;
|
|
29
|
+
color: #e6a23c;
|
|
30
|
+
}
|
|
31
|
+
.ea-timeline-item_wrap .ea-timeline-item_circle.ea-timeline-item--danger {
|
|
32
|
+
background-color: #f56c6c;
|
|
33
|
+
color: #f56c6c;
|
|
34
|
+
}
|
|
35
|
+
.ea-timeline-item_wrap .ea-timeline-item_circle.ea-timeline-item--info {
|
|
36
|
+
background-color: #e4e7ed;
|
|
37
|
+
color: #e4e7ed;
|
|
38
|
+
}
|
|
39
|
+
.ea-timeline-item_wrap .ea-timeline-item_tail {
|
|
40
|
+
z-index: 0;
|
|
41
|
+
position: absolute;
|
|
42
|
+
left: 0.3281rem;
|
|
43
|
+
height: 100%;
|
|
44
|
+
border-left: 2px solid #e4e7ed;
|
|
45
|
+
}
|
|
46
|
+
.ea-timeline-item_wrap .ea-timeline-item_container {
|
|
47
|
+
position: relative;
|
|
48
|
+
top: -4px;
|
|
49
|
+
font-size: 14px;
|
|
50
|
+
display: flex;
|
|
51
|
+
flex-direction: column;
|
|
52
|
+
}
|
|
53
|
+
.ea-timeline-item_wrap .ea-timeline-item_container .ea-timeline-item_timestamp {
|
|
54
|
+
color: #909399;
|
|
55
|
+
line-height: 1;
|
|
56
|
+
margin-top: 8px;
|
|
57
|
+
}
|
|
58
|
+
.ea-timeline-item_wrap .ea-timeline-item_container .ea-timeline-item_content {
|
|
59
|
+
color: #303133;
|
|
60
|
+
}
|
|
61
|
+
.ea-timeline-item_wrap .ea-timeline-item_container.ea-timeline-item_timestamp--top {
|
|
62
|
+
flex-direction: column-reverse;
|
|
63
|
+
}
|
|
64
|
+
.ea-timeline-item_wrap .ea-timeline-item_container.ea-timeline-item_timestamp--top .ea-timeline-item_timestamp {
|
|
65
|
+
margin-top: 0;
|
|
66
|
+
margin-bottom: 8px;
|
|
67
|
+
}
|
|
68
|
+
.ea-timeline-item_wrap .ea-timeline-item_container.ea-timeline-item_timestamp--bottom {
|
|
69
|
+
flex-direction: column;
|
|
70
|
+
}
|
|
71
|
+
.ea-timeline-item_wrap.ea-timeline-item_circle--large .ea-timeline-item_circle {
|
|
72
|
+
width: 14px;
|
|
73
|
+
height: 14px;
|
|
74
|
+
}
|
|
75
|
+
.ea-timeline-item_wrap.ea-timeline-item_circle--large .ea-timeline-item_tail {
|
|
76
|
+
left: 0.3906rem;
|
|
77
|
+
}
|
|
78
|
+
.ea-timeline-item_wrap.ea-timeline-item_circle--large .ea-timeline-item_container {
|
|
79
|
+
font-size: 16px;
|
|
80
|
+
}
|
|
81
|
+
`;
|
|
File without changes
|