easy-component-ui 2.1.0 → 3.0.0
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 -21
- package/README.md +162 -90
- package/dist/assets/icon.css +1 -0
- package/dist/components/Base.js +872 -0
- package/dist/components/ea-alert.js +196 -0
- package/dist/components/ea-avatar.js +159 -0
- package/dist/components/ea-backtop.js +136 -0
- package/dist/components/ea-badge.js +144 -0
- package/dist/components/ea-breadcrumb.js +148 -0
- package/dist/components/ea-button.js +261 -0
- package/dist/components/ea-calendar.js +10 -0
- package/dist/components/ea-calendar2.js +673 -0
- package/dist/components/ea-card.js +85 -0
- package/dist/components/ea-carousel.js +374 -0
- package/dist/components/ea-checkbox.js +446 -0
- package/dist/components/ea-collapse.js +293 -0
- package/dist/components/ea-color-picker.js +888 -0
- package/dist/components/ea-container.js +177 -0
- package/dist/components/ea-countdown.js +121 -0
- package/dist/components/ea-date-picker.js +649 -0
- package/dist/components/ea-descriptions.js +411 -0
- package/dist/components/ea-dialog.js +249 -0
- package/dist/components/ea-drawer.js +194 -0
- package/dist/components/ea-dropdown.js +228 -0
- package/dist/components/ea-empty.js +85 -0
- package/dist/components/ea-icon.js +68 -0
- package/dist/components/ea-image-preview.js +488 -0
- package/dist/components/ea-image.js +302 -0
- package/dist/components/ea-infinite-scroll.js +109 -0
- package/dist/components/ea-input-number.js +367 -0
- package/dist/components/ea-input.js +588 -0
- package/dist/components/ea-layout.js +125 -0
- package/dist/components/ea-link.js +95 -0
- package/dist/components/ea-loading.js +151 -0
- package/dist/components/ea-menu.js +417 -0
- package/dist/components/ea-message-box.js +624 -0
- package/dist/components/ea-message.js +251 -0
- package/dist/components/ea-notification.js +331 -0
- package/dist/components/ea-overlay.js +161 -0
- package/dist/components/ea-page-header.js +108 -0
- package/dist/components/ea-pagination.js +480 -0
- package/dist/components/ea-popconfirm.js +220 -0
- package/dist/components/ea-popover.js +123 -0
- package/dist/components/ea-popper.js +203 -0
- package/dist/components/ea-progress.js +269 -0
- package/dist/components/ea-radio.js +364 -0
- package/dist/components/ea-rate.js +241 -0
- package/dist/components/ea-result.js +100 -0
- package/dist/components/ea-scrollbar.js +235 -0
- package/dist/components/ea-segmented.js +215 -0
- package/dist/components/ea-select.js +598 -0
- package/dist/components/ea-skeleton.js +246 -0
- package/dist/components/ea-slider.js +421 -0
- package/dist/components/ea-space.js +109 -0
- package/dist/components/ea-splitter.js +217 -0
- package/dist/components/ea-statistic.js +6 -0
- package/dist/components/ea-statistic2.js +83 -0
- package/dist/components/ea-steps.js +312 -0
- package/dist/components/ea-switch.js +271 -0
- package/dist/components/ea-table.js +1007 -0
- package/dist/components/ea-tabs.js +501 -0
- package/dist/components/ea-tag.js +234 -0
- package/dist/components/ea-text.js +103 -0
- package/dist/components/ea-time-picker.js +514 -0
- package/dist/components/ea-timeline.js +186 -0
- package/dist/components/ea-tooltip.js +121 -0
- package/dist/components/ea-tour.js +544 -0
- package/dist/components/ea-transfer.js +949 -0
- package/dist/components/ea-tree.js +1088 -0
- package/dist/components/index.js +61 -0
- package/dist/core/FormBase.js +238 -0
- package/dist/css/ea-alert.style.js +4 -0
- package/dist/css/ea-aside.style.js +4 -0
- package/dist/css/ea-avatar.style.js +4 -0
- package/dist/css/ea-backtop.style.js +4 -0
- package/dist/css/ea-badge.style.js +4 -0
- package/dist/css/ea-breadcrumb-item.style.js +4 -0
- package/dist/css/ea-breadcrumb.style.js +4 -0
- package/dist/css/ea-button-group.style.js +4 -0
- package/dist/css/ea-button.style.js +4 -0
- package/dist/css/ea-calendar.style.js +4 -0
- package/dist/css/ea-card.style.js +4 -0
- package/dist/css/ea-carousel-item.style.js +4 -0
- package/dist/css/ea-carousel.style.js +4 -0
- package/dist/css/ea-check-tag.style.js +4 -0
- package/dist/css/ea-checkbox-group.style.js +4 -0
- package/dist/css/ea-checkbox.style.js +4 -0
- package/dist/css/ea-col.style.js +4 -0
- package/dist/css/ea-collapse-item.style.js +4 -0
- package/dist/css/ea-collapse.style.js +4 -0
- package/dist/css/ea-color-picker-panel.style.js +4 -0
- package/dist/css/ea-color-picker.style.js +4 -0
- package/dist/css/ea-container.style.js +4 -0
- package/dist/css/ea-date-picker.style.js +4 -0
- package/dist/css/ea-descriptions-item.style.js +4 -0
- package/dist/css/ea-descriptions.style.js +4 -0
- package/dist/css/ea-dialog.style.js +4 -0
- package/dist/css/ea-drawer.style.js +4 -0
- package/dist/css/ea-dropdown-item.style.js +4 -0
- package/dist/css/ea-dropdown-menu.style.js +4 -0
- package/dist/css/ea-dropdown.style.js +4 -0
- package/dist/css/ea-empty.style.js +4 -0
- package/dist/css/ea-footer.style.js +4 -0
- package/dist/css/ea-header.style.js +4 -0
- package/dist/css/ea-icon.style.js +4 -0
- package/dist/css/ea-image-preview.style.js +4 -0
- package/dist/css/ea-image.style.js +4 -0
- package/dist/css/ea-infinite-scroll.style.js +4 -0
- package/dist/css/ea-input-number.style.js +4 -0
- package/dist/css/ea-input.style.js +4 -0
- package/dist/css/ea-link.style.js +4 -0
- package/dist/css/ea-main.style.js +4 -0
- package/dist/css/ea-menu-item-group.style.js +4 -0
- package/dist/css/ea-menu-item.style.js +4 -0
- package/dist/css/ea-menu.style.js +4 -0
- package/dist/css/ea-message-box.style.js +4 -0
- package/dist/css/ea-message.style.js +4 -0
- package/dist/css/ea-notification.style.js +4 -0
- package/dist/css/ea-option-gropu.style.js +4 -0
- package/dist/css/ea-option.style.js +4 -0
- package/dist/css/ea-overlay.style.js +4 -0
- package/dist/css/ea-page-header.style.js +4 -0
- package/dist/css/ea-pagination.style.js +4 -0
- package/dist/css/ea-popconfirm.style.js +4 -0
- package/dist/css/ea-popover.style.js +4 -0
- package/dist/css/ea-popper.style.js +4 -0
- package/dist/css/ea-progress.style.js +4 -0
- package/dist/css/ea-radio-group.style.js +4 -0
- package/dist/css/ea-radio.style.js +4 -0
- package/dist/css/ea-rate.style.js +4 -0
- package/dist/css/ea-result.style.js +4 -0
- package/dist/css/ea-row.style.js +4 -0
- package/dist/css/ea-scrollbar.style.js +4 -0
- package/dist/css/ea-segmented.style.js +4 -0
- package/dist/css/ea-select.style.js +4 -0
- package/dist/css/ea-skeleton-item.style.js +4 -0
- package/dist/css/ea-skeleton.style.js +4 -0
- package/dist/css/ea-slider.style.js +4 -0
- package/dist/css/ea-space.style.js +4 -0
- package/dist/css/ea-splitter-bar.style.js +4 -0
- package/dist/css/ea-splitter-panel.style.js +4 -0
- package/dist/css/ea-splitter.style.js +4 -0
- package/dist/css/ea-statistic.style.js +4 -0
- package/dist/css/ea-step.style.js +4 -0
- package/dist/css/ea-steps.style.js +4 -0
- package/dist/css/ea-sub-menu.style.js +4 -0
- package/dist/css/ea-switch.style.js +4 -0
- package/dist/css/ea-tab-panel.style.js +4 -0
- package/dist/css/ea-tab.style.js +4 -0
- package/dist/css/ea-table.style.js +4 -0
- package/dist/css/ea-tabs.style.js +4 -0
- package/dist/css/ea-tag.style.js +4 -0
- package/dist/css/ea-text.style.js +4 -0
- package/dist/css/ea-time-picker.style.js +4 -0
- package/dist/css/ea-timeline-item.style.js +4 -0
- package/dist/css/ea-timeline.style.js +4 -0
- package/dist/css/ea-tooltip.style.js +4 -0
- package/dist/css/ea-tour-step.style.js +4 -0
- package/dist/css/ea-tour.style.js +4 -0
- package/dist/css/ea-transfer.style.js +5 -0
- package/dist/css/ea-tree.style.js +6 -0
- package/dist/css/ea-ui-component.style.js +4 -0
- package/dist/favicon.ico +0 -0
- package/dist/utils/Color.js +439 -0
- package/dist/utils/I18nManager.js +218 -0
- package/dist/utils/Utils.js +65 -0
- package/dist/utils/Variables.js +19 -0
- package/dist/utils/timeout.js +9 -0
- package/package.json +294 -11
- package/build/components/Base.js +0 -1
- package/build/components/ea-alert/index.js +0 -1
- package/build/components/ea-alert/src/style/stylesheet.js +0 -1
- package/build/components/ea-aside/index.js +0 -1
- package/build/components/ea-avatar/index.js +0 -1
- package/build/components/ea-avatar/src/assets/defaultAvatar.js +0 -1
- package/build/components/ea-avatar/src/assets/errorAvatar.js +0 -1
- package/build/components/ea-avatar/src/assets/iconAndTextAvatar.js +0 -1
- package/build/components/ea-avatar/src/style/stylesheet.js +0 -1
- package/build/components/ea-backtop/index.js +0 -1
- package/build/components/ea-backtop/src/style/stylesheet.js +0 -1
- package/build/components/ea-badge/index.js +0 -1
- package/build/components/ea-badge/src/style/stylesheet.js +0 -1
- package/build/components/ea-breadcrumb/index.js +0 -1
- package/build/components/ea-breadcrumb/src/style/stylesheet.js +0 -1
- package/build/components/ea-breadcrumb-item/index.js +0 -1
- package/build/components/ea-breadcrumb-item/src/style/style.js +0 -1
- package/build/components/ea-button/index.js +0 -1
- package/build/components/ea-button/src/components/ButtonComm.js +0 -1
- package/build/components/ea-button/src/components/HrefComm.js +0 -1
- package/build/components/ea-button/src/style/stylesheet.js +0 -1
- package/build/components/ea-button-group/index.js +0 -1
- package/build/components/ea-button-group/src/style/stylesheet.js +0 -1
- package/build/components/ea-calendar/index.js +0 -1
- package/build/components/ea-calendar/src/style/stylesheet.js +0 -1
- package/build/components/ea-calendar/src/utils/createChangerElement.js +0 -1
- package/build/components/ea-calendar/src/utils/createThead.js +0 -1
- package/build/components/ea-calendar/src/utils/getDate.js +0 -1
- package/build/components/ea-calendar/src/utils/getUserWeekStart.js +0 -1
- package/build/components/ea-card/index.js +0 -1
- package/build/components/ea-card/src/style/stylesheet.js +0 -1
- package/build/components/ea-carousel/index.js +0 -1
- package/build/components/ea-carousel/src/style/stylesheet.js +0 -1
- package/build/components/ea-carousel/src/utils/handleIndexOverflow.js +0 -1
- package/build/components/ea-carousel-item/index.js +0 -1
- package/build/components/ea-carousel-item/src/style/stylesheet.js +0 -1
- package/build/components/ea-checkbox/index.js +0 -1
- package/build/components/ea-checkbox/src/style/stylesheet.js +0 -1
- package/build/components/ea-checkbox-group/index.js +0 -1
- package/build/components/ea-checkbox-group/src/style/stylesheet.js +0 -1
- package/build/components/ea-collapse/index.js +0 -1
- package/build/components/ea-collapse-item/index.js +0 -1
- package/build/components/ea-collapse-item/src/style/stylesheet.js +0 -1
- package/build/components/ea-container/index.js +0 -1
- package/build/components/ea-date-picker/index.js +0 -1
- package/build/components/ea-date-picker/src/style/stylesheet.js +0 -1
- package/build/components/ea-descriptions/index.js +0 -1
- package/build/components/ea-descriptions/src/components/contentTemplate.js +0 -1
- package/build/components/ea-descriptions/src/components/getTdTemplate_border.js +0 -1
- package/build/components/ea-descriptions/src/components/getTdTemplate_direction.js +0 -1
- package/build/components/ea-descriptions/src/components/getThTemplate_direction.js +0 -1
- package/build/components/ea-descriptions/src/components/getThTemplate_normal.js +0 -1
- package/build/components/ea-descriptions/src/style/stylesheet.js +0 -1
- package/build/components/ea-descriptions-item/index.js +0 -1
- package/build/components/ea-descriptions-item/src/stylesheet.js +0 -1
- package/build/components/ea-drawer/index.js +0 -1
- package/build/components/ea-drawer/src/style/stylesheet.js +0 -1
- package/build/components/ea-empty/index.js +0 -1
- package/build/components/ea-empty/src/assets/emptyStatusSVG.js +0 -1
- package/build/components/ea-empty/src/style/stylesheet.js +0 -1
- package/build/components/ea-footer/index.js +0 -1
- package/build/components/ea-form/index.js +0 -1
- package/build/components/ea-form-item/index.js +0 -1
- package/build/components/ea-form-item/src/style/stylesheet.js +0 -1
- package/build/components/ea-header/index.js +0 -1
- package/build/components/ea-icon/config.json +0 -1030
- package/build/components/ea-icon/css/fontello.css +0 -312
- package/build/components/ea-icon/font/fontello.eot +0 -0
- package/build/components/ea-icon/font/fontello.svg +0 -350
- 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 +0 -1
- package/build/components/ea-icon/index.js +0 -1
- package/build/components/ea-image/index.js +0 -1
- package/build/components/ea-image/src/assets/errorImage.js +0 -1
- package/build/components/ea-image/src/style/stylesheet.js +0 -1
- package/build/components/ea-image/src/utils/createPreviewTools.js +0 -1
- package/build/components/ea-infinite-scroll/index.js +0 -1
- package/build/components/ea-infinite-scroll-item/index.js +0 -1
- package/build/components/ea-input/index.js +0 -1
- package/build/components/ea-input/src/components/createFixIcon.js +0 -1
- package/build/components/ea-input/src/components/createSuggestionBoard.js +0 -1
- package/build/components/ea-input/src/components/createWordLimitElement.js +0 -1
- package/build/components/ea-input/src/style/stylesheet.js +0 -1
- package/build/components/ea-input/src/utils/dispatchEvent.js +0 -1
- package/build/components/ea-input/src/utils/handleSearchResult.js +0 -1
- package/build/components/ea-input/src/utils/handleSuggestionBoardTrigger.js +0 -1
- package/build/components/ea-input-number/index.js +0 -1
- package/build/components/ea-input-number/src/style/stylesheet.js +0 -1
- package/build/components/ea-input-number/src/utils/handleCustomEvent.js +0 -1
- package/build/components/ea-link/index.js +0 -1
- package/build/components/ea-link/src/style/stylesheet.js +0 -1
- package/build/components/ea-loading/index.js +0 -1
- package/build/components/ea-loading/src/style/stylesheet.js +0 -1
- package/build/components/ea-main/index.js +0 -1
- package/build/components/ea-menu/index.js +0 -1
- package/build/components/ea-menu/src/style/stylesheet.js +0 -1
- package/build/components/ea-menu/src/utils/handleMenuItemEvent.js +0 -1
- package/build/components/ea-menu-item/index.js +0 -1
- package/build/components/ea-menu-item/src/style/stylesheet.js +0 -1
- package/build/components/ea-menu-item-group/index.js +0 -1
- package/build/components/ea-menu-item-group/src/style/stylesheet.js +0 -1
- package/build/components/ea-message/index.js +0 -1
- package/build/components/ea-message/src/style/stylesheet.js +0 -1
- package/build/components/ea-message/src/utils/MessageClass.js +0 -1
- package/build/components/ea-message-box/index.js +0 -1
- package/build/components/ea-message-box/src/style/stylesheet.js +0 -1
- package/build/components/ea-message-box/src/utils/EaMessageBoxClass.js +0 -1
- package/build/components/ea-option/index.js +0 -1
- package/build/components/ea-option/src/style/stylesheet.js +0 -1
- package/build/components/ea-option-gropu/index.js +0 -1
- package/build/components/ea-page-header/index.js +0 -1
- package/build/components/ea-page-header/src/style/stylesheet.js +0 -1
- package/build/components/ea-pagination/index.js +0 -1
- package/build/components/ea-pagination/src/components/getMoreItem.js +0 -1
- package/build/components/ea-pagination/src/components/getPageItem.js +0 -1
- package/build/components/ea-pagination/src/components/getShowTotalItem.js +0 -1
- package/build/components/ea-pagination/src/style/stylesheet.js +0 -1
- package/build/components/ea-pane/index.js +0 -1
- package/build/components/ea-pane/src/stylesheet.js +0 -1
- package/build/components/ea-progress/index.js +0 -1
- package/build/components/ea-progress/src/components/SVGComm.js +0 -1
- package/build/components/ea-progress/src/style/stylesheet.js +0 -1
- package/build/components/ea-radio/index.js +0 -1
- package/build/components/ea-radio/src/style/stylesheet.js +0 -1
- package/build/components/ea-radio-group/index.js +0 -1
- package/build/components/ea-rate/index.js +0 -1
- package/build/components/ea-rate/src/components/rateComm.js +0 -1
- package/build/components/ea-rate/src/style/stylesheet.js +0 -1
- package/build/components/ea-result/index.js +0 -1
- package/build/components/ea-result/src/style/stylesheet.js +0 -1
- package/build/components/ea-select/index.js +0 -1
- package/build/components/ea-select/src/style/stylesheet.js +0 -1
- package/build/components/ea-skeleton/index.js +0 -1
- package/build/components/ea-skeleton/src/style/stylesheet.js +0 -1
- package/build/components/ea-skeleton/src/utils/createSkeletonElement.js +0 -1
- package/build/components/ea-skeleton-item/index.js +0 -1
- package/build/components/ea-skeleton-item/src/assets/imageSVG.js +0 -1
- package/build/components/ea-skeleton-item/src/style/stylesheet.js +0 -1
- package/build/components/ea-step/index.js +0 -1
- package/build/components/ea-step/src/style/stylesheet.js +0 -1
- package/build/components/ea-steps/index.js +0 -1
- package/build/components/ea-steps/src/style/stylesheet.js +0 -1
- package/build/components/ea-submenu/index.js +0 -1
- package/build/components/ea-submenu/src/style/stylesheet.js +0 -1
- package/build/components/ea-switch/index.js +0 -1
- package/build/components/ea-switch/src/style/stylesheet.js +0 -1
- package/build/components/ea-tab/index.js +0 -1
- package/build/components/ea-tab/src/style/stylesheet.js +0 -1
- package/build/components/ea-table/index.js +0 -1
- package/build/components/ea-table/src/style/stylesheet.js +0 -1
- package/build/components/ea-table-column/index.js +0 -1
- package/build/components/ea-tabs/index.js +0 -1
- package/build/components/ea-tabs/src/style/stylesheet.js +0 -1
- package/build/components/ea-tag/index.js +0 -1
- package/build/components/ea-tag/src/style/stylesheet.js +0 -1
- package/build/components/ea-textarea/index.js +0 -1
- package/build/components/ea-textarea/src/style/stylesheet.js +0 -1
- package/build/components/ea-time-picker/index.js +0 -1
- package/build/components/ea-time-picker/src/style/stylesheet.js +0 -1
- package/build/components/ea-timeline/index.js +0 -1
- package/build/components/ea-timeline/style/stylesheet.js +0 -1
- package/build/components/ea-timeline-item/index.js +0 -1
- package/build/components/ea-timeline-item/src/style/stylesheet.js +0 -1
- package/build/components/globalConfig.js +0 -1
- package/build/components/index.js +0 -1
- package/build/utils/Validator.js +0 -1
- package/build/utils/createElement.js +0 -1
- package/build/utils/handleDefaultAttrIsTrue.js +0 -1
- package/build/utils/handleTemplate.js +0 -1
- package/build/utils/setStyle.js +0 -1
- package/build/utils/timeout.js +0 -1
- package/components/Base.js +0 -75
- package/components/ea-alert/index.css +0 -91
- package/components/ea-alert/index.js +0 -210
- package/components/ea-alert/index.scss +0 -108
- package/components/ea-alert/src/style/stylesheet.js +0 -85
- package/components/ea-aside/index.css +0 -9
- package/components/ea-aside/index.js +0 -54
- package/components/ea-aside/index.scss +0 -12
- package/components/ea-avatar/index.css +0 -66
- package/components/ea-avatar/index.js +0 -156
- package/components/ea-avatar/index.scss +0 -59
- package/components/ea-avatar/src/assets/defaultAvatar.js +0 -12
- package/components/ea-avatar/src/assets/errorAvatar.js +0 -9
- package/components/ea-avatar/src/assets/iconAndTextAvatar.js +0 -18
- package/components/ea-avatar/src/style/stylesheet.js +0 -61
- package/components/ea-backtop/index.css +0 -27
- package/components/ea-backtop/index.js +0 -167
- package/components/ea-backtop/index.scss +0 -29
- package/components/ea-backtop/src/style/stylesheet.js +0 -21
- package/components/ea-badge/index.css +0 -49
- package/components/ea-badge/index.js +0 -103
- package/components/ea-badge/index.scss +0 -56
- package/components/ea-badge/src/style/stylesheet.js +0 -43
- package/components/ea-breadcrumb/index.css +0 -6
- package/components/ea-breadcrumb/index.js +0 -90
- package/components/ea-breadcrumb/index.scss +0 -7
- package/components/ea-breadcrumb/src/style/stylesheet.js +0 -8
- package/components/ea-breadcrumb-item/index.css +0 -10
- package/components/ea-breadcrumb-item/index.js +0 -23
- package/components/ea-breadcrumb-item/index.scss +0 -12
- package/components/ea-breadcrumb-item/src/style/style.js +0 -12
- package/components/ea-button/index.css +0 -206
- package/components/ea-button/index.js +0 -198
- package/components/ea-button/index.scss +0 -143
- package/components/ea-button/src/components/ButtonComm.js +0 -5
- package/components/ea-button/src/components/HrefComm.js +0 -5
- package/components/ea-button/src/style/stylesheet.js +0 -208
- package/components/ea-button-group/index.css +0 -16
- package/components/ea-button-group/index.js +0 -44
- package/components/ea-button-group/index.scss +0 -20
- package/components/ea-button-group/src/style/stylesheet.js +0 -18
- package/components/ea-calendar/index.css +0 -72
- package/components/ea-calendar/index.js +0 -298
- package/components/ea-calendar/index.scss +0 -106
- package/components/ea-calendar/src/style/stylesheet.js +0 -74
- package/components/ea-calendar/src/utils/createChangerElement.js +0 -10
- package/components/ea-calendar/src/utils/createThead.js +0 -18
- package/components/ea-calendar/src/utils/getDate.js +0 -11
- package/components/ea-calendar/src/utils/getUserWeekStart.js +0 -11
- package/components/ea-card/index.css +0 -25
- package/components/ea-card/index.js +0 -51
- package/components/ea-card/index.scss +0 -24
- package/components/ea-card/src/style/stylesheet.js +0 -19
- package/components/ea-carousel/index.css +0 -103
- package/components/ea-carousel/index.js +0 -222
- package/components/ea-carousel/index.scss +0 -140
- package/components/ea-carousel/src/style/stylesheet.js +0 -105
- package/components/ea-carousel/src/utils/handleIndexOverflow.js +0 -9
- package/components/ea-carousel-item/index.css +0 -20
- package/components/ea-carousel-item/index.js +0 -23
- package/components/ea-carousel-item/index.scss +0 -26
- package/components/ea-carousel-item/src/style/stylesheet.js +0 -22
- package/components/ea-checkbox/index.css +0 -108
- package/components/ea-checkbox/index.js +0 -160
- package/components/ea-checkbox/index.scss +0 -141
- package/components/ea-checkbox/src/style/stylesheet.js +0 -110
- package/components/ea-checkbox-group/index.css +0 -6
- package/components/ea-checkbox-group/index.js +0 -120
- package/components/ea-checkbox-group/index.scss +0 -7
- package/components/ea-checkbox-group/src/style/stylesheet.js +0 -8
- package/components/ea-collapse/index.css +0 -0
- package/components/ea-collapse/index.js +0 -109
- package/components/ea-collapse/index.scss +0 -4
- package/components/ea-collapse-item/index.css +0 -31
- package/components/ea-collapse-item/index.js +0 -111
- package/components/ea-collapse-item/index.scss +0 -46
- package/components/ea-collapse-item/src/style/stylesheet.js +0 -33
- package/components/ea-container/index.css +0 -14
- package/components/ea-container/index.js +0 -85
- package/components/ea-container/index.scss +0 -18
- package/components/ea-date-picker/index.css +0 -17
- package/components/ea-date-picker/index.js +0 -191
- package/components/ea-date-picker/index.scss +0 -29
- package/components/ea-date-picker/src/style/stylesheet.js +0 -19
- package/components/ea-descriptions/index.css +0 -33
- package/components/ea-descriptions/index.js +0 -171
- package/components/ea-descriptions/index.scss +0 -45
- package/components/ea-descriptions/src/components/contentTemplate.js +0 -11
- package/components/ea-descriptions/src/components/getTdTemplate_border.js +0 -6
- package/components/ea-descriptions/src/components/getTdTemplate_direction.js +0 -7
- package/components/ea-descriptions/src/components/getThTemplate_direction.js +0 -7
- package/components/ea-descriptions/src/components/getThTemplate_normal.js +0 -8
- package/components/ea-descriptions/src/style/stylesheet.js +0 -35
- package/components/ea-descriptions-item/index.css +0 -21
- package/components/ea-descriptions-item/index.js +0 -71
- package/components/ea-descriptions-item/index.scss +0 -29
- package/components/ea-descriptions-item/src/stylesheet.js +0 -23
- package/components/ea-drawer/index.css +0 -138
- package/components/ea-drawer/index.js +0 -251
- package/components/ea-drawer/index.scss +0 -208
- package/components/ea-drawer/src/style/stylesheet.js +0 -141
- package/components/ea-empty/index.css +0 -30
- package/components/ea-empty/index.js +0 -93
- package/components/ea-empty/index.scss +0 -30
- package/components/ea-empty/src/assets/emptyStatusSVG.js +0 -6
- package/components/ea-empty/src/style/stylesheet.js +0 -24
- package/components/ea-footer/index.css +0 -7
- package/components/ea-footer/index.js +0 -57
- package/components/ea-footer/index.scss +0 -10
- package/components/ea-form/index.css +0 -0
- package/components/ea-form/index.js +0 -121
- package/components/ea-form/index.scss +0 -0
- package/components/ea-form-item/index.css +0 -62
- package/components/ea-form-item/index.js +0 -152
- package/components/ea-form-item/index.scss +0 -83
- package/components/ea-form-item/src/style/stylesheet.js +0 -64
- package/components/ea-header/index.css +0 -7
- package/components/ea-header/index.js +0 -55
- package/components/ea-header/index.scss +0 -10
- package/components/ea-icon/config.json +0 -1030
- package/components/ea-icon/css/fontello.css +0 -312
- package/components/ea-icon/font/fontello.eot +0 -0
- package/components/ea-icon/font/fontello.svg +0 -350
- package/components/ea-icon/font/fontello.ttf +0 -0
- package/components/ea-icon/font/fontello.woff +0 -0
- package/components/ea-icon/font/fontello.woff2 +0 -0
- package/components/ea-icon/index.css +0 -1
- package/components/ea-icon/index.js +0 -84
- package/components/ea-image/index.css +0 -84
- package/components/ea-image/index.js +0 -182
- package/components/ea-image/index.scss +0 -111
- package/components/ea-image/src/assets/errorImage.js +0 -9
- package/components/ea-image/src/assets/errorImage.svg +0 -7
- package/components/ea-image/src/style/stylesheet.js +0 -86
- package/components/ea-image/src/utils/createPreviewTools.js +0 -140
- package/components/ea-infinite-scroll/index.css +0 -0
- package/components/ea-infinite-scroll/index.js +0 -119
- 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 +0 -18
- package/components/ea-infinite-scroll-item/index.scss +0 -0
- package/components/ea-input/index.css +0 -139
- package/components/ea-input/index.js +0 -398
- package/components/ea-input/index.scss +0 -178
- package/components/ea-input/src/components/createFixIcon.js +0 -108
- package/components/ea-input/src/components/createSuggestionBoard.js +0 -43
- package/components/ea-input/src/components/createWordLimitElement.js +0 -18
- package/components/ea-input/src/style/stylesheet.js +0 -141
- package/components/ea-input/src/utils/dispatchEvent.js +0 -9
- package/components/ea-input/src/utils/handleSearchResult.js +0 -9
- package/components/ea-input/src/utils/handleSuggestionBoardTrigger.js +0 -31
- package/components/ea-input-number/index.css +0 -120
- package/components/ea-input-number/index.js +0 -308
- package/components/ea-input-number/index.scss +0 -132
- package/components/ea-input-number/src/style/stylesheet.js +0 -122
- package/components/ea-input-number/src/utils/handleCustomEvent.js +0 -5
- package/components/ea-link/index.css +0 -48
- package/components/ea-link/index.js +0 -122
- package/components/ea-link/index.scss +0 -36
- package/components/ea-link/src/style/stylesheet.js +0 -50
- package/components/ea-loading/index.css +0 -38
- package/components/ea-loading/index.js +0 -166
- package/components/ea-loading/index.scss +0 -55
- package/components/ea-loading/src/style/stylesheet.js +0 -40
- package/components/ea-main/index.css +0 -8
- package/components/ea-main/index.js +0 -32
- package/components/ea-main/index.scss +0 -11
- package/components/ea-menu/index.css +0 -19
- package/components/ea-menu/index.js +0 -131
- package/components/ea-menu/index.scss +0 -22
- package/components/ea-menu/src/style/stylesheet.js +0 -21
- package/components/ea-menu/src/utils/handleMenuItemEvent.js +0 -32
- package/components/ea-menu-item/index.css +0 -48
- package/components/ea-menu-item/index.js +0 -130
- package/components/ea-menu-item/index.scss +0 -62
- package/components/ea-menu-item/src/style/stylesheet.js +0 -50
- package/components/ea-menu-item-group/index.css +0 -42
- package/components/ea-menu-item-group/index.js +0 -130
- package/components/ea-menu-item-group/index.scss +0 -60
- package/components/ea-menu-item-group/src/style/stylesheet.js +0 -44
- package/components/ea-message/index.css +0 -47
- package/components/ea-message/index.js +0 -171
- package/components/ea-message/index.scss +0 -70
- package/components/ea-message/src/style/stylesheet.js +0 -48
- package/components/ea-message/src/utils/MessageClass.js +0 -67
- package/components/ea-message-box/index.css +0 -85
- package/components/ea-message-box/index.js +0 -211
- package/components/ea-message-box/index.scss +0 -113
- package/components/ea-message-box/src/style/stylesheet.js +0 -87
- package/components/ea-message-box/src/utils/EaMessageBoxClass.js +0 -60
- package/components/ea-option/index.css +0 -24
- package/components/ea-option/index.js +0 -74
- package/components/ea-option/index.scss +0 -31
- package/components/ea-option/src/style/stylesheet.js +0 -26
- package/components/ea-option-gropu/index.css +0 -6
- package/components/ea-option-gropu/index.js +0 -57
- package/components/ea-option-gropu/index.scss +0 -8
- package/components/ea-page-header/index.css +0 -33
- package/components/ea-page-header/index.js +0 -91
- package/components/ea-page-header/index.scss +0 -44
- package/components/ea-page-header/src/style/stylesheet.js +0 -35
- package/components/ea-pagination/index.css +0 -69
- package/components/ea-pagination/index.js +0 -305
- package/components/ea-pagination/index.scss +0 -89
- package/components/ea-pagination/src/components/getMoreItem.js +0 -20
- package/components/ea-pagination/src/components/getPageItem.js +0 -11
- package/components/ea-pagination/src/components/getShowTotalItem.js +0 -7
- package/components/ea-pagination/src/style/stylesheet.js +0 -71
- package/components/ea-pane/index.css +0 -6
- package/components/ea-pane/index.js +0 -52
- package/components/ea-pane/index.scss +0 -7
- package/components/ea-pane/src/stylesheet.js +0 -8
- package/components/ea-progress/index.css +0 -61
- package/components/ea-progress/index.js +0 -249
- package/components/ea-progress/index.scss +0 -74
- package/components/ea-progress/src/components/SVGComm.js +0 -18
- package/components/ea-progress/src/style/stylesheet.js +0 -55
- package/components/ea-radio/index.css +0 -82
- package/components/ea-radio/index.js +0 -137
- package/components/ea-radio/index.scss +0 -119
- package/components/ea-radio/src/style/stylesheet.js +0 -84
- package/components/ea-radio-group/index.css +0 -3
- package/components/ea-radio-group/index.js +0 -96
- package/components/ea-radio-group/index.scss +0 -3
- package/components/ea-rate/index.css +0 -44
- package/components/ea-rate/index.js +0 -243
- package/components/ea-rate/index.scss +0 -55
- package/components/ea-rate/src/components/rateComm.js +0 -20
- package/components/ea-rate/src/style/stylesheet.js +0 -45
- package/components/ea-result/index.css +0 -37
- package/components/ea-result/index.js +0 -109
- package/components/ea-result/index.scss +0 -46
- package/components/ea-result/src/style/stylesheet.js +0 -39
- package/components/ea-select/index.css +0 -47
- package/components/ea-select/index.js +0 -312
- package/components/ea-select/index.scss +0 -70
- package/components/ea-select/src/style/stylesheet.js +0 -49
- package/components/ea-skeleton/index.css +0 -12
- package/components/ea-skeleton/index.js +0 -148
- package/components/ea-skeleton/index.scss +0 -16
- package/components/ea-skeleton/src/style/stylesheet.js +0 -14
- package/components/ea-skeleton/src/utils/createSkeletonElement.js +0 -7
- package/components/ea-skeleton-item/index.css +0 -69
- package/components/ea-skeleton-item/index.js +0 -82
- package/components/ea-skeleton-item/index.scss +0 -107
- package/components/ea-skeleton-item/src/assets/imageSVG.js +0 -8
- package/components/ea-skeleton-item/src/style/stylesheet.js +0 -71
- package/components/ea-step/index.css +0 -84
- package/components/ea-step/index.js +0 -230
- package/components/ea-step/index.scss +0 -110
- package/components/ea-step/src/style/stylesheet.js +0 -86
- package/components/ea-steps/index.css +0 -19
- package/components/ea-steps/index.js +0 -104
- package/components/ea-steps/index.scss +0 -23
- package/components/ea-steps/src/style/stylesheet.js +0 -21
- package/components/ea-submenu/index.css +0 -65
- package/components/ea-submenu/index.js +0 -141
- package/components/ea-submenu/index.scss +0 -88
- package/components/ea-submenu/src/style/stylesheet.js +0 -67
- package/components/ea-switch/index.css +0 -90
- package/components/ea-switch/index.js +0 -189
- package/components/ea-switch/index.scss +0 -117
- package/components/ea-switch/src/style/stylesheet.js +0 -92
- package/components/ea-tab/index.css +0 -68
- package/components/ea-tab/index.js +0 -138
- package/components/ea-tab/index.scss +0 -96
- package/components/ea-tab/src/style/stylesheet.js +0 -70
- package/components/ea-table/index.css +0 -98
- package/components/ea-table/index.js +0 -555
- package/components/ea-table/index.scss +0 -90
- package/components/ea-table/src/style/stylesheet.js +0 -100
- package/components/ea-table-column/index.css +0 -0
- package/components/ea-table-column/index.js +0 -164
- package/components/ea-table-column/index.scss +0 -0
- package/components/ea-tabs/index.css +0 -45
- package/components/ea-tabs/index.js +0 -245
- package/components/ea-tabs/index.scss +0 -64
- package/components/ea-tabs/src/style/stylesheet.js +0 -47
- package/components/ea-tag/index.css +0 -90
- package/components/ea-tag/index.js +0 -107
- package/components/ea-tag/index.scss +0 -71
- package/components/ea-tag/src/style/stylesheet.js +0 -92
- package/components/ea-textarea/index.css +0 -37
- package/components/ea-textarea/index.js +0 -277
- package/components/ea-textarea/index.scss +0 -48
- package/components/ea-textarea/src/style/stylesheet.js +0 -39
- package/components/ea-time-picker/index.css +0 -82
- package/components/ea-time-picker/index.js +0 -379
- package/components/ea-time-picker/index.scss +0 -110
- package/components/ea-time-picker/src/style/stylesheet.js +0 -84
- package/components/ea-timeline/index.css +0 -0
- package/components/ea-timeline/index.js +0 -74
- package/components/ea-timeline/index.scss +0 -1
- package/components/ea-timeline/style/stylesheet.js +0 -3
- package/components/ea-timeline-item/index.css +0 -79
- package/components/ea-timeline-item/index.js +0 -146
- package/components/ea-timeline-item/index.scss +0 -92
- package/components/ea-timeline-item/src/style/stylesheet.js +0 -81
- package/components/ea-ui-base-style.css +0 -0
- package/components/ea-ui-base-style.scss +0 -153
- package/components/globalConfig.js +0 -10
- package/components/index.js +0 -67
- package/public/logo.png +0 -0
- package/utils/Validator.js +0 -16
- package/utils/createElement.js +0 -30
- package/utils/handleDefaultAttrIsTrue.js +0 -11
- package/utils/handleTemplate.js +0 -19
- package/utils/setStyle.js +0 -8
- package/utils/timeout.js +0 -16
|
@@ -1,84 +0,0 @@
|
|
|
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,74 +0,0 @@
|
|
|
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
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import "../ea-ui-base-style.scss";
|
|
@@ -1,79 +0,0 @@
|
|
|
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,146 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,92 +0,0 @@
|
|
|
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,81 +0,0 @@
|
|
|
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
|