ele-admin-plus 1.0.0-beta.2 → 1.0.0-beta.4
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/es/components.d.ts +3 -0
- package/es/components.js +92 -86
- package/es/ele-alert/index.d.ts +62 -0
- package/es/ele-alert/index.js +129 -0
- package/es/ele-alert/props.d.ts +36 -0
- package/es/ele-alert/props.js +48 -0
- package/es/ele-alert/style/css-var.scss +11 -0
- package/es/ele-alert/style/index.js +1 -0
- package/es/ele-alert/style/index.scss +148 -0
- package/es/ele-app/index.d.ts +1 -0
- package/es/ele-app/style/common.scss +134 -32
- package/es/ele-app/style/css-var.scss +2 -2
- package/es/ele-app/types/index.d.ts +27 -0
- package/es/ele-avatar-group/index.d.ts +3 -0
- package/es/ele-avatar-group/index.js +10 -9
- package/es/ele-avatar-group/props.d.ts +1 -0
- package/es/ele-avatar-group/props.js +3 -1
- package/es/ele-avatar-group/style/index.scss +32 -0
- package/es/ele-basic-select/index.d.ts +2 -19171
- package/es/ele-basic-select/index.js +2 -2
- package/es/ele-bottom-bar/style/index.scss +1 -1
- package/es/ele-breadcrumb/index.d.ts +2 -165
- package/es/ele-card/style/index.scss +28 -26
- package/es/ele-config-provider/index.d.ts +3 -7
- package/es/ele-config-provider/index.js +1 -8
- package/es/ele-config-provider/props.d.ts +9 -2
- package/es/ele-config-provider/props.js +5 -3
- package/{lib/ele-config-provider/use-receiver.d.ts → es/ele-config-provider/receiver.d.ts} +8 -2
- package/es/ele-config-provider/receiver.js +198 -0
- package/es/ele-config-provider/types/index.d.ts +24 -13
- package/es/ele-cropper/components/cropper-tools.js +1 -1
- package/es/ele-cropper/index.d.ts +12 -9
- package/es/ele-cropper/index.js +29 -30
- package/es/ele-cropper/props.d.ts +3 -4
- package/es/ele-cropper/style/index.js +1 -1
- package/es/ele-cropper/types/index.d.ts +10 -2
- package/es/ele-cropper-modal/index.d.ts +6 -6
- package/es/ele-cropper-modal/index.js +1 -1
- package/es/ele-cropper-modal/props.d.ts +2 -2
- package/es/ele-dashboard/index.js +1 -1
- package/es/ele-drawer/index.d.ts +2 -355
- package/es/ele-drawer/index.js +1 -1
- package/es/ele-edit-tag/index.d.ts +2 -804
- package/es/ele-edit-tag/index.js +1 -2
- package/es/ele-ellipsis/index.d.ts +6 -3
- package/es/ele-ellipsis/index.js +16 -23
- package/es/ele-ellipsis/props.d.ts +1 -0
- package/es/ele-file-list/components/file-grid-item.d.ts +5 -24370
- package/es/ele-file-list/components/file-grid-item.js +8 -1
- package/es/ele-file-list/components/file-grid.d.ts +4 -2
- package/es/ele-file-list/components/file-table-item.d.ts +5 -24370
- package/es/ele-file-list/components/file-table-item.js +8 -1
- package/es/ele-file-list/components/file-table.d.ts +4 -2
- package/es/ele-file-list/index.d.ts +2 -1561
- package/es/ele-file-list/index.js +25 -15
- package/es/ele-file-list/style/index.scss +0 -1
- package/es/ele-icon-select/components/icon-grid.d.ts +5 -1
- package/es/ele-icon-select/components/icon-grid.js +24 -14
- package/es/ele-icon-select/components/icon-popper.d.ts +15 -1
- package/es/ele-icon-select/components/icon-popper.js +52 -41
- package/es/ele-icon-select/index.d.ts +14 -0
- package/es/ele-icon-select/index.js +9 -2
- package/es/ele-icon-select/props.d.ts +8 -1
- package/es/ele-icon-select/props.js +14 -0
- package/es/ele-icon-select/style/index.scss +142 -140
- package/es/ele-map-picker/components/map-view.js +4 -5
- package/es/ele-map-picker/index.d.ts +6 -1
- package/es/ele-map-picker/index.js +11 -23
- package/es/ele-map-picker/props.d.ts +10 -4
- package/es/ele-map-picker/props.js +9 -7
- package/es/ele-map-picker/style/index.scss +1 -0
- package/es/ele-menus/index.d.ts +2 -156
- package/es/ele-menus/index.js +3 -12
- package/es/ele-menus/props.d.ts +6 -0
- package/es/ele-menus/props.js +2 -0
- package/es/ele-menus/style/index.scss +12 -5
- package/es/ele-modal/index.d.ts +7 -903
- package/es/ele-modal/index.js +38 -49
- package/es/ele-modal/props.d.ts +10 -0
- package/es/ele-modal/props.js +4 -0
- package/es/ele-modal/style/index.scss +1 -1
- package/es/ele-modal/util.d.ts +3 -3
- package/es/ele-modal/util.js +8 -7
- package/es/ele-page/index.d.ts +8 -2
- package/es/ele-page/props.d.ts +4 -1
- package/es/ele-page/props.js +4 -1
- package/es/ele-pagination/index.d.ts +6 -6
- package/es/ele-pagination/props.d.ts +3 -3
- package/es/ele-printer/index.d.ts +37 -0
- package/es/ele-printer/index.js +119 -0
- package/es/ele-printer/props.d.ts +25 -0
- package/es/ele-printer/props.js +32 -0
- package/es/ele-printer/style/index.js +1 -0
- package/es/ele-printer/style/index.scss +58 -0
- package/es/ele-printer/types/index.d.ts +40 -0
- package/es/ele-printer/util.d.ts +39 -0
- package/es/ele-printer/util.js +174 -0
- package/es/ele-pro-layout/components/pro-iframe.d.ts +29 -0
- package/es/ele-pro-layout/components/pro-iframe.js +116 -0
- package/es/ele-pro-layout/components/pro-sidebar.d.ts +3 -9
- package/es/ele-pro-layout/components/pro-sidebar.js +19 -9
- package/es/ele-pro-layout/components/pro-sidebox.d.ts +2 -1
- package/es/ele-pro-layout/components/pro-sidebox.js +19 -5
- package/es/ele-pro-layout/components/{pro-tab-bar.d.ts → pro-tabs.d.ts} +3 -2
- package/es/ele-pro-layout/components/{pro-tab-bar.js → pro-tabs.js} +4 -3
- package/es/ele-pro-layout/index.js +66 -103
- package/es/ele-pro-layout/props.d.ts +6 -4
- package/es/ele-pro-layout/props.js +9 -8
- package/es/ele-pro-layout/style/collapse.scss +60 -42
- package/es/ele-pro-layout/style/css-var.scss +3 -1
- package/es/ele-pro-layout/style/header.scss +8 -3
- package/es/ele-pro-layout/style/layout-mobile.scss +1 -1
- package/es/ele-pro-layout/style/layout-style.scss +9 -4
- package/es/ele-pro-layout/style/layout.scss +14 -1
- package/es/ele-pro-layout/style/sidebar.scss +21 -6
- package/es/ele-pro-layout/style/tabs.scss +3 -26
- package/es/ele-pro-layout/types/index.d.ts +23 -18
- package/es/ele-pro-layout/util.d.ts +8 -12
- package/es/ele-pro-layout/util.js +74 -22
- package/es/ele-pro-table/components/table-tools.d.ts +2 -2
- package/es/ele-pro-table/components/table-tools.js +1 -1
- package/es/ele-pro-table/components/table-view.d.ts +51 -618
- package/es/ele-pro-table/components/table-view.js +11 -24
- package/es/ele-pro-table/index.d.ts +81 -1674
- package/es/ele-pro-table/index.js +90 -129
- package/es/ele-pro-table/props.d.ts +133 -25
- package/es/ele-pro-table/props.js +36 -30
- package/es/ele-pro-table/style/index.scss +96 -57
- package/es/ele-pro-table/types/index.d.ts +24 -4
- package/es/ele-pro-table/util.d.ts +27 -10
- package/es/ele-pro-table/util.js +49 -13
- package/es/ele-segmented/index.d.ts +33 -0
- package/es/ele-segmented/index.js +77 -0
- package/es/ele-segmented/props.d.ts +23 -0
- package/es/ele-segmented/props.js +25 -0
- package/es/ele-segmented/style/css-var.scss +15 -0
- package/es/ele-segmented/style/index.js +4 -0
- package/es/ele-segmented/style/index.scss +102 -0
- package/es/ele-segmented/types/index.d.ts +25 -0
- package/es/ele-split-panel/index.d.ts +7 -8
- package/es/ele-split-panel/index.js +8 -13
- package/es/ele-split-panel/style/index.scss +26 -25
- package/es/ele-steps/index.d.ts +13 -1
- package/es/ele-steps/index.js +14 -14
- package/es/ele-steps/style/index.scss +24 -9
- package/es/ele-table/style/index.scss +1 -0
- package/es/ele-table-select/index.js +1 -1
- package/es/ele-table-select/types/index.d.ts +7 -0
- package/es/ele-tabs/components/tab-title.d.ts +5 -4
- package/es/ele-tabs/index.d.ts +17 -269
- package/es/ele-tabs/index.js +19 -26
- package/es/ele-tabs/props.d.ts +10 -2
- package/es/ele-tabs/props.js +4 -0
- package/es/ele-tabs/style/css-var.scss +7 -7
- package/es/ele-tabs/style/index.scss +4 -3
- package/es/ele-tabs/types/index.d.ts +1 -5
- package/es/ele-text/index.d.ts +2 -0
- package/es/ele-text/index.js +7 -5
- package/es/ele-text/props.d.ts +7 -1
- package/es/ele-text/props.js +5 -1
- package/es/ele-toolbar/index.d.ts +15 -2
- package/es/ele-toolbar/index.js +18 -18
- package/es/ele-toolbar/props.d.ts +8 -2
- package/es/ele-toolbar/props.js +10 -1
- package/es/ele-toolbar/style/index.scss +2 -17
- package/es/ele-tour/index.d.ts +10 -20739
- package/es/ele-tour/index.js +8 -9
- package/es/ele-tour/style/index.scss +5 -4
- package/es/ele-tour/util.js +1 -0
- package/es/ele-upload-list/components/list-item.d.ts +9 -6
- package/es/ele-upload-list/components/list-item.js +21 -24
- package/es/ele-upload-list/index.d.ts +14 -733
- package/es/ele-upload-list/index.js +15 -15
- package/es/ele-upload-list/props.d.ts +5 -0
- package/es/ele-upload-list/props.js +8 -1
- package/es/ele-upload-list/style/index.scss +15 -5
- package/es/ele-upload-list/types/index.d.ts +1 -1
- package/es/ele-watermark/index.js +1 -1
- package/es/ele-watermark/util.js +8 -10
- package/es/ele-xg-player/index.d.ts +1 -1
- package/es/ele-xg-player/index.js +22 -16
- package/es/icons/ArrowDown.js +1 -1
- package/es/icons/ArrowLeft.d.ts +2 -0
- package/es/icons/ArrowLeft.js +30 -0
- package/es/icons/ArrowUp.d.ts +2 -0
- package/es/icons/ArrowUp.js +31 -0
- package/es/icons/index.d.ts +2 -0
- package/es/icons/index.js +24 -20
- package/es/index.d.ts +0 -2
- package/es/index.js +0 -2
- package/es/lang/en_US.js +2 -2
- package/es/lang/zh_CN.js +1 -1
- package/es/lang/zh_TW.js +1 -1
- package/es/style/index.scss +3 -0
- package/es/style/themes/dark-css-var.scss +7 -3
- package/es/style/themes/dark.scss +1 -1
- package/es/style/themes/default.scss +75 -12
- package/es/utils/core.d.ts +13 -33
- package/es/utils/core.js +19 -39
- package/es/utils/menu-util.js +24 -2
- package/es/utils/message.js +1 -1
- package/es/utils/theme-util.d.ts +1 -1
- package/es/utils/theme-util.js +10 -10
- package/lib/components.d.ts +3 -0
- package/lib/components.js +92 -86
- package/lib/ele-alert/index.d.ts +62 -0
- package/lib/ele-alert/index.js +128 -0
- package/lib/ele-alert/props.d.ts +36 -0
- package/lib/ele-alert/props.js +48 -0
- package/lib/ele-alert/style/css-var.scss +11 -0
- package/lib/ele-alert/style/index.js +2 -0
- package/lib/ele-alert/style/index.scss +148 -0
- package/lib/ele-app/index.d.ts +1 -0
- package/lib/ele-app/style/common.scss +134 -32
- package/lib/ele-app/style/css-var.scss +2 -2
- package/lib/ele-app/types/index.d.ts +27 -0
- package/lib/ele-avatar-group/index.d.ts +3 -0
- package/lib/ele-avatar-group/index.js +10 -9
- package/lib/ele-avatar-group/props.d.ts +1 -0
- package/lib/ele-avatar-group/props.js +3 -1
- package/lib/ele-avatar-group/style/index.scss +32 -0
- package/lib/ele-basic-select/index.d.ts +2 -19171
- package/lib/ele-basic-select/index.js +3 -3
- package/lib/ele-bottom-bar/style/index.scss +1 -1
- package/lib/ele-breadcrumb/index.d.ts +2 -165
- package/lib/ele-card/style/index.scss +28 -26
- package/lib/ele-config-provider/index.d.ts +3 -7
- package/lib/ele-config-provider/index.js +11 -18
- package/lib/ele-config-provider/props.d.ts +9 -2
- package/lib/ele-config-provider/props.js +5 -3
- package/{es/ele-config-provider/use-receiver.d.ts → lib/ele-config-provider/receiver.d.ts} +8 -2
- package/lib/ele-config-provider/receiver.js +200 -0
- package/lib/ele-config-provider/types/index.d.ts +24 -13
- package/lib/ele-cropper/components/cropper-tools.js +2 -2
- package/lib/ele-cropper/index.d.ts +12 -9
- package/lib/ele-cropper/index.js +31 -32
- package/lib/ele-cropper/props.d.ts +3 -4
- package/lib/ele-cropper/style/index.js +1 -1
- package/lib/ele-cropper/types/index.d.ts +10 -2
- package/lib/ele-cropper-modal/index.d.ts +6 -6
- package/lib/ele-cropper-modal/index.js +2 -2
- package/lib/ele-cropper-modal/props.d.ts +2 -2
- package/lib/ele-dashboard/index.js +2 -2
- package/lib/ele-drawer/index.d.ts +2 -355
- package/lib/ele-drawer/index.js +1 -1
- package/lib/ele-edit-tag/index.d.ts +2 -804
- package/lib/ele-edit-tag/index.js +2 -3
- package/lib/ele-ellipsis/index.d.ts +6 -3
- package/lib/ele-ellipsis/index.js +15 -22
- package/lib/ele-ellipsis/props.d.ts +1 -0
- package/lib/ele-file-list/components/file-grid-item.d.ts +5 -24370
- package/lib/ele-file-list/components/file-grid-item.js +8 -1
- package/lib/ele-file-list/components/file-grid.d.ts +4 -2
- package/lib/ele-file-list/components/file-table-item.d.ts +5 -24370
- package/lib/ele-file-list/components/file-table-item.js +8 -1
- package/lib/ele-file-list/components/file-table.d.ts +4 -2
- package/lib/ele-file-list/index.d.ts +2 -1561
- package/lib/ele-file-list/index.js +27 -17
- package/lib/ele-file-list/style/index.scss +0 -1
- package/lib/ele-icon-select/components/icon-grid.d.ts +5 -1
- package/lib/ele-icon-select/components/icon-grid.js +23 -13
- package/lib/ele-icon-select/components/icon-popper.d.ts +15 -1
- package/lib/ele-icon-select/components/icon-popper.js +51 -40
- package/lib/ele-icon-select/index.d.ts +14 -0
- package/lib/ele-icon-select/index.js +10 -3
- package/lib/ele-icon-select/props.d.ts +8 -1
- package/lib/ele-icon-select/props.js +14 -0
- package/lib/ele-icon-select/style/index.scss +142 -140
- package/lib/ele-map-picker/components/map-view.js +4 -5
- package/lib/ele-map-picker/index.d.ts +6 -1
- package/lib/ele-map-picker/index.js +14 -26
- package/lib/ele-map-picker/props.d.ts +10 -4
- package/lib/ele-map-picker/props.js +9 -7
- package/lib/ele-map-picker/style/index.scss +1 -0
- package/lib/ele-menus/index.d.ts +2 -156
- package/lib/ele-menus/index.js +11 -20
- package/lib/ele-menus/props.d.ts +6 -0
- package/lib/ele-menus/props.js +2 -0
- package/lib/ele-menus/style/index.scss +12 -5
- package/lib/ele-modal/index.d.ts +7 -903
- package/lib/ele-modal/index.js +63 -74
- package/lib/ele-modal/props.d.ts +10 -0
- package/lib/ele-modal/props.js +4 -0
- package/lib/ele-modal/style/index.scss +1 -1
- package/lib/ele-modal/util.d.ts +3 -3
- package/lib/ele-modal/util.js +8 -7
- package/lib/ele-page/index.d.ts +8 -2
- package/lib/ele-page/props.d.ts +4 -1
- package/lib/ele-page/props.js +4 -1
- package/lib/ele-pagination/index.d.ts +6 -6
- package/lib/ele-pagination/props.d.ts +3 -3
- package/lib/ele-printer/index.d.ts +37 -0
- package/lib/ele-printer/index.js +118 -0
- package/lib/ele-printer/props.d.ts +25 -0
- package/lib/ele-printer/props.js +32 -0
- package/lib/ele-printer/style/index.js +2 -0
- package/lib/ele-printer/style/index.scss +58 -0
- package/lib/ele-printer/types/index.d.ts +40 -0
- package/lib/ele-printer/util.d.ts +39 -0
- package/lib/ele-printer/util.js +174 -0
- package/lib/ele-pro-layout/components/pro-iframe.d.ts +29 -0
- package/lib/ele-pro-layout/components/pro-iframe.js +115 -0
- package/lib/ele-pro-layout/components/pro-sidebar.d.ts +3 -9
- package/lib/ele-pro-layout/components/pro-sidebar.js +17 -7
- package/lib/ele-pro-layout/components/pro-sidebox.d.ts +2 -1
- package/lib/ele-pro-layout/components/pro-sidebox.js +17 -3
- package/lib/ele-pro-layout/components/{pro-tab-bar.d.ts → pro-tabs.d.ts} +3 -2
- package/lib/ele-pro-layout/components/{pro-tab-bar.js → pro-tabs.js} +4 -3
- package/lib/ele-pro-layout/index.js +65 -102
- package/lib/ele-pro-layout/props.d.ts +6 -4
- package/lib/ele-pro-layout/props.js +9 -8
- package/lib/ele-pro-layout/style/collapse.scss +60 -42
- package/lib/ele-pro-layout/style/css-var.scss +3 -1
- package/lib/ele-pro-layout/style/header.scss +8 -3
- package/lib/ele-pro-layout/style/layout-mobile.scss +1 -1
- package/lib/ele-pro-layout/style/layout-style.scss +9 -4
- package/lib/ele-pro-layout/style/layout.scss +14 -1
- package/lib/ele-pro-layout/style/sidebar.scss +21 -6
- package/lib/ele-pro-layout/style/tabs.scss +3 -26
- package/lib/ele-pro-layout/types/index.d.ts +23 -18
- package/lib/ele-pro-layout/util.d.ts +8 -12
- package/lib/ele-pro-layout/util.js +72 -20
- package/lib/ele-pro-table/components/table-tools.d.ts +2 -2
- package/lib/ele-pro-table/components/table-tools.js +2 -2
- package/lib/ele-pro-table/components/table-view.d.ts +51 -618
- package/lib/ele-pro-table/components/table-view.js +11 -24
- package/lib/ele-pro-table/index.d.ts +81 -1674
- package/lib/ele-pro-table/index.js +125 -164
- package/lib/ele-pro-table/props.d.ts +133 -25
- package/lib/ele-pro-table/props.js +35 -29
- package/lib/ele-pro-table/style/index.scss +96 -57
- package/lib/ele-pro-table/types/index.d.ts +24 -4
- package/lib/ele-pro-table/util.d.ts +27 -10
- package/lib/ele-pro-table/util.js +48 -12
- package/lib/ele-segmented/index.d.ts +33 -0
- package/lib/ele-segmented/index.js +76 -0
- package/lib/ele-segmented/props.d.ts +23 -0
- package/lib/ele-segmented/props.js +25 -0
- package/lib/ele-segmented/style/css-var.scss +15 -0
- package/lib/ele-segmented/style/index.js +5 -0
- package/lib/ele-segmented/style/index.scss +102 -0
- package/lib/ele-segmented/types/index.d.ts +25 -0
- package/lib/ele-split-panel/index.d.ts +7 -8
- package/lib/ele-split-panel/index.js +10 -15
- package/lib/ele-split-panel/style/index.scss +26 -25
- package/lib/ele-steps/index.d.ts +13 -1
- package/lib/ele-steps/index.js +13 -13
- package/lib/ele-steps/style/index.scss +24 -9
- package/lib/ele-table/style/index.scss +1 -0
- package/lib/ele-table-select/index.js +2 -2
- package/lib/ele-table-select/types/index.d.ts +7 -0
- package/lib/ele-tabs/components/tab-title.d.ts +5 -4
- package/lib/ele-tabs/index.d.ts +17 -269
- package/lib/ele-tabs/index.js +21 -28
- package/lib/ele-tabs/props.d.ts +10 -2
- package/lib/ele-tabs/props.js +4 -0
- package/lib/ele-tabs/style/css-var.scss +7 -7
- package/lib/ele-tabs/style/index.scss +4 -3
- package/lib/ele-tabs/types/index.d.ts +1 -5
- package/lib/ele-text/index.d.ts +2 -0
- package/lib/ele-text/index.js +7 -5
- package/lib/ele-text/props.d.ts +7 -1
- package/lib/ele-text/props.js +5 -1
- package/lib/ele-toolbar/index.d.ts +15 -2
- package/lib/ele-toolbar/index.js +17 -17
- package/lib/ele-toolbar/props.d.ts +8 -2
- package/lib/ele-toolbar/props.js +10 -1
- package/lib/ele-toolbar/style/index.scss +2 -17
- package/lib/ele-tour/index.d.ts +10 -20739
- package/lib/ele-tour/index.js +9 -10
- package/lib/ele-tour/style/index.scss +5 -4
- package/lib/ele-tour/util.js +1 -0
- package/lib/ele-upload-list/components/list-item.d.ts +9 -6
- package/lib/ele-upload-list/components/list-item.js +20 -23
- package/lib/ele-upload-list/index.d.ts +14 -733
- package/lib/ele-upload-list/index.js +16 -16
- package/lib/ele-upload-list/props.d.ts +5 -0
- package/lib/ele-upload-list/props.js +8 -1
- package/lib/ele-upload-list/style/index.scss +15 -5
- package/lib/ele-upload-list/types/index.d.ts +1 -1
- package/lib/ele-watermark/index.js +2 -2
- package/lib/ele-watermark/util.js +8 -10
- package/lib/ele-xg-player/index.d.ts +1 -1
- package/lib/ele-xg-player/index.js +21 -15
- package/lib/icons/ArrowDown.js +1 -1
- package/lib/icons/ArrowLeft.d.ts +2 -0
- package/lib/icons/ArrowLeft.js +29 -0
- package/lib/icons/ArrowUp.d.ts +2 -0
- package/lib/icons/ArrowUp.js +30 -0
- package/lib/icons/index.d.ts +2 -0
- package/lib/icons/index.js +4 -0
- package/lib/index.d.ts +0 -2
- package/lib/index.js +0 -16
- package/lib/lang/en_US.js +2 -2
- package/lib/lang/zh_CN.js +1 -1
- package/lib/lang/zh_TW.js +1 -1
- package/lib/style/index.scss +3 -0
- package/lib/style/themes/dark-css-var.scss +7 -3
- package/lib/style/themes/dark.scss +1 -1
- package/lib/style/themes/default.scss +75 -12
- package/lib/utils/core.d.ts +13 -33
- package/lib/utils/core.js +19 -39
- package/lib/utils/menu-util.js +24 -2
- package/lib/utils/message.js +1 -1
- package/lib/utils/theme-util.d.ts +1 -1
- package/lib/utils/theme-util.js +10 -10
- package/package.json +19 -18
- package/typings/global.d.ts +3 -1
- package/es/ele-config-provider/keys.d.ts +0 -8
- package/es/ele-config-provider/keys.js +0 -6
- package/es/ele-config-provider/use-receiver.js +0 -38
- package/es/utils/iframe-component.d.ts +0 -8
- package/es/utils/iframe-component.js +0 -70
- package/es/utils/license-util.d.ts +0 -9
- package/es/utils/license-util.js +0 -176
- package/es/utils/printer.d.ts +0 -100
- package/es/utils/printer.js +0 -612
- package/lib/ele-config-provider/keys.d.ts +0 -8
- package/lib/ele-config-provider/keys.js +0 -6
- package/lib/ele-config-provider/use-receiver.js +0 -38
- package/lib/utils/iframe-component.d.ts +0 -8
- package/lib/utils/iframe-component.js +0 -70
- package/lib/utils/license-util.d.ts +0 -9
- package/lib/utils/license-util.js +0 -176
- package/lib/utils/printer.d.ts +0 -100
- package/lib/utils/printer.js +0 -612
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
|
+
title: StringConstructor;
|
|
3
|
+
type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "success" | "warning" | "error" | "info", unknown>>;
|
|
4
|
+
description: StringConstructor;
|
|
5
|
+
closable: {
|
|
6
|
+
type: BooleanConstructor;
|
|
7
|
+
default: boolean;
|
|
8
|
+
};
|
|
9
|
+
center: BooleanConstructor;
|
|
10
|
+
closeText: StringConstructor;
|
|
11
|
+
showIcon: BooleanConstructor;
|
|
12
|
+
effect: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "light" | "dark", unknown>>;
|
|
13
|
+
iconStyle: import("vue").PropType<import("vue").CSSProperties>;
|
|
14
|
+
iconProps: import("vue").PropType<Partial<import("element-plus").IconProps>>;
|
|
15
|
+
closeIconStyle: import("vue").PropType<import("vue").CSSProperties>;
|
|
16
|
+
closeIconProps: import("vue").PropType<Partial<import("element-plus").IconProps>>;
|
|
17
|
+
bodyStyle: import("vue").PropType<import("vue").CSSProperties>;
|
|
18
|
+
titleStyle: import("vue").PropType<import("vue").CSSProperties>;
|
|
19
|
+
descriptionStyle: import("vue").PropType<import("vue").CSSProperties>;
|
|
20
|
+
transitionName: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
}, {
|
|
25
|
+
visible: import("vue").Ref<boolean>;
|
|
26
|
+
isRich: import("vue").ComputedRef<boolean>;
|
|
27
|
+
onClose: (e: MouseEvent) => void;
|
|
28
|
+
open: () => void;
|
|
29
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
30
|
+
close: (_e: MouseEvent) => boolean;
|
|
31
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
32
|
+
title: StringConstructor;
|
|
33
|
+
type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "success" | "warning" | "error" | "info", unknown>>;
|
|
34
|
+
description: StringConstructor;
|
|
35
|
+
closable: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
center: BooleanConstructor;
|
|
40
|
+
closeText: StringConstructor;
|
|
41
|
+
showIcon: BooleanConstructor;
|
|
42
|
+
effect: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "light" | "dark", unknown>>;
|
|
43
|
+
iconStyle: import("vue").PropType<import("vue").CSSProperties>;
|
|
44
|
+
iconProps: import("vue").PropType<Partial<import("element-plus").IconProps>>;
|
|
45
|
+
closeIconStyle: import("vue").PropType<import("vue").CSSProperties>;
|
|
46
|
+
closeIconProps: import("vue").PropType<Partial<import("element-plus").IconProps>>;
|
|
47
|
+
bodyStyle: import("vue").PropType<import("vue").CSSProperties>;
|
|
48
|
+
titleStyle: import("vue").PropType<import("vue").CSSProperties>;
|
|
49
|
+
descriptionStyle: import("vue").PropType<import("vue").CSSProperties>;
|
|
50
|
+
transitionName: {
|
|
51
|
+
type: StringConstructor;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
}>> & {
|
|
55
|
+
onClose?: ((_e: MouseEvent) => any) | undefined;
|
|
56
|
+
}, {
|
|
57
|
+
closable: boolean;
|
|
58
|
+
showIcon: boolean;
|
|
59
|
+
center: boolean;
|
|
60
|
+
transitionName: string;
|
|
61
|
+
}, {}>;
|
|
62
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const vue = require("vue");
|
|
3
|
+
const elementPlus = require("element-plus");
|
|
4
|
+
const iconsVue = require("@element-plus/icons-vue");
|
|
5
|
+
const receiver = require("../ele-config-provider/receiver");
|
|
6
|
+
const props = require("./props");
|
|
7
|
+
const _sfc_main = vue.defineComponent({
|
|
8
|
+
name: "EleAlert",
|
|
9
|
+
components: {
|
|
10
|
+
ElIcon: elementPlus.ElIcon,
|
|
11
|
+
Close: iconsVue.Close,
|
|
12
|
+
CircleCheckFilled: iconsVue.CircleCheckFilled,
|
|
13
|
+
InfoFilled: iconsVue.InfoFilled,
|
|
14
|
+
WarningFilled: iconsVue.WarningFilled,
|
|
15
|
+
CircleCloseFilled: iconsVue.CircleCloseFilled
|
|
16
|
+
},
|
|
17
|
+
props: props.alertProps,
|
|
18
|
+
emits: props.alertEmits,
|
|
19
|
+
setup(props2, { emit, slots }) {
|
|
20
|
+
const { authenticated } = receiver.useLicense();
|
|
21
|
+
const visible = vue.ref(true);
|
|
22
|
+
const isRich = vue.computed(() => {
|
|
23
|
+
return !!props2.description || !!slots.default;
|
|
24
|
+
});
|
|
25
|
+
const onClose = (e) => {
|
|
26
|
+
if (!visible.value || !props2.closable || !authenticated.value) {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
visible.value = false;
|
|
30
|
+
emit("close", e);
|
|
31
|
+
};
|
|
32
|
+
const open = () => {
|
|
33
|
+
if (!visible.value && authenticated.value) {
|
|
34
|
+
visible.value = true;
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
return { visible, isRich, onClose, open };
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
const _export_sfc = (sfc, props2) => {
|
|
41
|
+
const target = sfc.__vccOpts || sfc;
|
|
42
|
+
for (const [key, val] of props2) {
|
|
43
|
+
target[key] = val;
|
|
44
|
+
}
|
|
45
|
+
return target;
|
|
46
|
+
};
|
|
47
|
+
const _hoisted_1 = { key: 0 };
|
|
48
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
49
|
+
const _component_CircleCheckFilled = vue.resolveComponent("CircleCheckFilled");
|
|
50
|
+
const _component_WarningFilled = vue.resolveComponent("WarningFilled");
|
|
51
|
+
const _component_CircleCloseFilled = vue.resolveComponent("CircleCloseFilled");
|
|
52
|
+
const _component_InfoFilled = vue.resolveComponent("InfoFilled");
|
|
53
|
+
const _component_ElIcon = vue.resolveComponent("ElIcon");
|
|
54
|
+
const _component_Close = vue.resolveComponent("Close");
|
|
55
|
+
return vue.openBlock(), vue.createBlock(vue.Transition, { name: _ctx.transitionName }, {
|
|
56
|
+
default: vue.withCtx(() => [
|
|
57
|
+
_ctx.visible ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
58
|
+
key: 0,
|
|
59
|
+
class: vue.normalizeClass([
|
|
60
|
+
"ele-alert",
|
|
61
|
+
{ "is-success": _ctx.type === "success" },
|
|
62
|
+
{ "is-warning": _ctx.type === "warning" },
|
|
63
|
+
{ "is-error": _ctx.type === "error" },
|
|
64
|
+
{ "is-dark": _ctx.effect === "dark" },
|
|
65
|
+
{ "is-center": _ctx.center },
|
|
66
|
+
{ "is-rich": _ctx.isRich }
|
|
67
|
+
])
|
|
68
|
+
}, [
|
|
69
|
+
_ctx.showIcon ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
70
|
+
key: 0,
|
|
71
|
+
class: "ele-alert-icon",
|
|
72
|
+
style: vue.normalizeStyle(_ctx.iconStyle)
|
|
73
|
+
}, [
|
|
74
|
+
vue.renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
75
|
+
vue.createVNode(_component_ElIcon, vue.normalizeProps(vue.guardReactiveProps(_ctx.iconProps)), {
|
|
76
|
+
default: vue.withCtx(() => [
|
|
77
|
+
_ctx.type === "success" ? (vue.openBlock(), vue.createBlock(_component_CircleCheckFilled, { key: 0 })) : _ctx.type === "warning" ? (vue.openBlock(), vue.createBlock(_component_WarningFilled, { key: 1 })) : _ctx.type === "error" ? (vue.openBlock(), vue.createBlock(_component_CircleCloseFilled, { key: 2 })) : (vue.openBlock(), vue.createBlock(_component_InfoFilled, { key: 3 }))
|
|
78
|
+
]),
|
|
79
|
+
_: 1
|
|
80
|
+
}, 16)
|
|
81
|
+
])
|
|
82
|
+
], 4)) : vue.createCommentVNode("", true),
|
|
83
|
+
vue.createElementVNode("div", {
|
|
84
|
+
class: "ele-alert-body",
|
|
85
|
+
style: vue.normalizeStyle(_ctx.bodyStyle)
|
|
86
|
+
}, [
|
|
87
|
+
_ctx.title || _ctx.$slots.title ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
88
|
+
key: 0,
|
|
89
|
+
class: "ele-alert-title",
|
|
90
|
+
style: vue.normalizeStyle(_ctx.titleStyle)
|
|
91
|
+
}, [
|
|
92
|
+
vue.renderSlot(_ctx.$slots, "title", {}, () => [
|
|
93
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.title), 1)
|
|
94
|
+
])
|
|
95
|
+
], 4)) : vue.createCommentVNode("", true),
|
|
96
|
+
_ctx.isRich ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
97
|
+
key: 1,
|
|
98
|
+
class: "ele-alert-text",
|
|
99
|
+
style: vue.normalizeStyle(_ctx.descriptionStyle)
|
|
100
|
+
}, [
|
|
101
|
+
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
102
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.description), 1)
|
|
103
|
+
])
|
|
104
|
+
], 4)) : vue.createCommentVNode("", true)
|
|
105
|
+
], 4),
|
|
106
|
+
vue.renderSlot(_ctx.$slots, "action"),
|
|
107
|
+
_ctx.closable ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
108
|
+
key: 1,
|
|
109
|
+
class: "ele-alert-close",
|
|
110
|
+
style: vue.normalizeStyle(_ctx.closeIconStyle),
|
|
111
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClose && _ctx.onClose(...args))
|
|
112
|
+
}, [
|
|
113
|
+
vue.renderSlot(_ctx.$slots, "closeIcon", {}, () => [
|
|
114
|
+
_ctx.closeText ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1, vue.toDisplayString(_ctx.closeText), 1)) : (vue.openBlock(), vue.createBlock(_component_ElIcon, vue.normalizeProps(vue.mergeProps({ key: 1 }, _ctx.closeIconProps)), {
|
|
115
|
+
default: vue.withCtx(() => [
|
|
116
|
+
vue.createVNode(_component_Close)
|
|
117
|
+
]),
|
|
118
|
+
_: 1
|
|
119
|
+
}, 16))
|
|
120
|
+
])
|
|
121
|
+
], 4)) : vue.createCommentVNode("", true)
|
|
122
|
+
], 2)) : vue.createCommentVNode("", true)
|
|
123
|
+
]),
|
|
124
|
+
_: 3
|
|
125
|
+
}, 8, ["name"]);
|
|
126
|
+
}
|
|
127
|
+
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
128
|
+
module.exports = index;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { PropType, CSSProperties, ExtractPropTypes } from 'vue';
|
|
2
|
+
import type { IconProps } from 'element-plus';
|
|
3
|
+
/**
|
|
4
|
+
* 属性
|
|
5
|
+
*/
|
|
6
|
+
export declare const alertProps: {
|
|
7
|
+
title: StringConstructor;
|
|
8
|
+
type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "success" | "warning" | "error" | "info", unknown>>;
|
|
9
|
+
description: StringConstructor;
|
|
10
|
+
closable: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
center: BooleanConstructor;
|
|
15
|
+
closeText: StringConstructor;
|
|
16
|
+
showIcon: BooleanConstructor;
|
|
17
|
+
effect: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "light" | "dark", unknown>>;
|
|
18
|
+
iconStyle: PropType<CSSProperties>;
|
|
19
|
+
iconProps: PropType<Partial<IconProps>>;
|
|
20
|
+
closeIconStyle: PropType<CSSProperties>;
|
|
21
|
+
closeIconProps: PropType<Partial<IconProps>>;
|
|
22
|
+
bodyStyle: PropType<CSSProperties>;
|
|
23
|
+
titleStyle: PropType<CSSProperties>;
|
|
24
|
+
descriptionStyle: PropType<CSSProperties>;
|
|
25
|
+
transitionName: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export type AlertProps = ExtractPropTypes<typeof alertProps>;
|
|
31
|
+
/**
|
|
32
|
+
* 事件
|
|
33
|
+
*/
|
|
34
|
+
export declare const alertEmits: {
|
|
35
|
+
close: (_e: MouseEvent) => boolean;
|
|
36
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const alertProps = {
|
|
4
|
+
// 标题
|
|
5
|
+
title: String,
|
|
6
|
+
// 类型
|
|
7
|
+
type: String,
|
|
8
|
+
// 描述
|
|
9
|
+
description: String,
|
|
10
|
+
// 是否可关闭
|
|
11
|
+
closable: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
default: true
|
|
14
|
+
},
|
|
15
|
+
// 是否居中
|
|
16
|
+
center: Boolean,
|
|
17
|
+
// 自定义关闭按钮文字
|
|
18
|
+
closeText: String,
|
|
19
|
+
// 是否显示图标
|
|
20
|
+
showIcon: Boolean,
|
|
21
|
+
// 主题
|
|
22
|
+
effect: String,
|
|
23
|
+
// 图标样式
|
|
24
|
+
iconStyle: Object,
|
|
25
|
+
// 图标组件属性
|
|
26
|
+
iconProps: Object,
|
|
27
|
+
// 关闭图标样式
|
|
28
|
+
closeIconStyle: Object,
|
|
29
|
+
// 关闭图标组件属性
|
|
30
|
+
closeIconProps: Object,
|
|
31
|
+
// 内容区样式
|
|
32
|
+
bodyStyle: Object,
|
|
33
|
+
// 标题样式
|
|
34
|
+
titleStyle: Object,
|
|
35
|
+
// 描述样式
|
|
36
|
+
descriptionStyle: Object,
|
|
37
|
+
// 过度动画名称
|
|
38
|
+
transitionName: {
|
|
39
|
+
type: String,
|
|
40
|
+
default: "ele-alert-fade"
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
const alertEmits = {
|
|
44
|
+
// 关闭的事件
|
|
45
|
+
close: (_e) => true
|
|
46
|
+
};
|
|
47
|
+
exports.alertEmits = alertEmits;
|
|
48
|
+
exports.alertProps = alertProps;
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
@use '../../style/themes/default.scss' as *;
|
|
2
|
+
@use './css-var.scss' as *;
|
|
3
|
+
|
|
4
|
+
@include set-alert-var($ele);
|
|
5
|
+
|
|
6
|
+
.ele-alert {
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
padding: eleVar('alert', 'padding');
|
|
10
|
+
border-radius: eleVar('alert', 'radius');
|
|
11
|
+
background: elVar('color-primary', 'light-9');
|
|
12
|
+
border: 1px solid elVar('color-primary', 'light-7');
|
|
13
|
+
transition: opacity 0.2s;
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
position: relative;
|
|
16
|
+
|
|
17
|
+
.ele-alert-icon {
|
|
18
|
+
flex-shrink: 0;
|
|
19
|
+
color: elVar('color-primary');
|
|
20
|
+
font-size: eleVar('alert', 'icon-size');
|
|
21
|
+
margin-right: 8px;
|
|
22
|
+
display: flex;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.ele-alert-body {
|
|
26
|
+
flex: 1;
|
|
27
|
+
overflow: auto;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.ele-alert-title {
|
|
31
|
+
color: eleVar('alert', 'color');
|
|
32
|
+
font-size: eleVar('alert', 'title-size');
|
|
33
|
+
line-height: eleVar('alert', 'title-line-height');
|
|
34
|
+
|
|
35
|
+
& + .ele-alert-text {
|
|
36
|
+
margin-top: 4px;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.ele-alert-text {
|
|
41
|
+
color: eleVar('alert', 'color');
|
|
42
|
+
font-size: eleVar('alert', 'size');
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.ele-alert-close {
|
|
46
|
+
flex-shrink: 0;
|
|
47
|
+
color: eleVar('alert', 'close-color');
|
|
48
|
+
font-size: eleVar('alert', 'close-size');
|
|
49
|
+
transition: color 0.2s;
|
|
50
|
+
margin-left: 8px;
|
|
51
|
+
cursor: pointer;
|
|
52
|
+
display: flex;
|
|
53
|
+
|
|
54
|
+
&:hover {
|
|
55
|
+
color: eleVar('alert', 'close-hover-color');
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// 含有描述
|
|
60
|
+
&.is-rich {
|
|
61
|
+
align-items: flex-start;
|
|
62
|
+
padding: eleVar('alert', 'rich-padding');
|
|
63
|
+
|
|
64
|
+
.ele-alert-icon {
|
|
65
|
+
font-size: eleVar('alert', 'rich-icon-size');
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.ele-alert-title {
|
|
69
|
+
color: eleVar('alert', 'title-color');
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// 类型
|
|
74
|
+
&.is-success {
|
|
75
|
+
background: elVar('color-success', 'light-9');
|
|
76
|
+
border-color: elVar('color-success', 'light-7');
|
|
77
|
+
|
|
78
|
+
.ele-alert-icon {
|
|
79
|
+
color: elVar('color-success');
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&.is-warning {
|
|
84
|
+
background: elVar('color-warning', 'light-9');
|
|
85
|
+
border-color: elVar('color-warning', 'light-7');
|
|
86
|
+
|
|
87
|
+
.ele-alert-icon {
|
|
88
|
+
color: elVar('color-warning');
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&.is-error {
|
|
93
|
+
background: elVar('color-error', 'light-9');
|
|
94
|
+
border-color: elVar('color-error', 'light-7');
|
|
95
|
+
|
|
96
|
+
.ele-alert-icon {
|
|
97
|
+
color: elVar('color-error');
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// 居中
|
|
102
|
+
&.is-center {
|
|
103
|
+
justify-content: center;
|
|
104
|
+
|
|
105
|
+
.ele-alert-body {
|
|
106
|
+
flex: initial;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.ele-alert-close {
|
|
110
|
+
position: absolute;
|
|
111
|
+
right: 12px;
|
|
112
|
+
top: 50%;
|
|
113
|
+
transform: translateY(-50%);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
// 主题
|
|
118
|
+
&.is-dark {
|
|
119
|
+
$hover-color: eleVar('alert-dark', 'close-hover-color');
|
|
120
|
+
#{eleVarName('alert', 'color')}: eleVar('alert-dark', 'color');
|
|
121
|
+
#{eleVarName('alert', 'title-color')}: eleVar('alert-dark', 'title-color');
|
|
122
|
+
#{eleVarName('alert', 'close-color')}: eleVar('alert-dark', 'close-color');
|
|
123
|
+
#{eleVarName('alert', 'close-hover-color')}: #{$hover-color};
|
|
124
|
+
background: elVar('color-primary');
|
|
125
|
+
border: none;
|
|
126
|
+
|
|
127
|
+
.ele-alert-icon {
|
|
128
|
+
color: eleVar('alert-dark', 'title-color');
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
&.is-success {
|
|
132
|
+
background: elVar('color-success');
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
&.is-warning {
|
|
136
|
+
background: elVar('color-warning');
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
&.is-error {
|
|
140
|
+
background: elVar('color-error');
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.ele-alert-fade-enter-from,
|
|
146
|
+
.ele-alert-fade-leave-active {
|
|
147
|
+
opacity: 0;
|
|
148
|
+
}
|
package/lib/ele-app/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export type { ClassValue } from './types';
|
|
1
2
|
declare const _default: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
2
3
|
[key: string]: any;
|
|
3
4
|
}>[] | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
@@ -3,25 +3,23 @@
|
|
|
3
3
|
|
|
4
4
|
@include set-common-var($ele);
|
|
5
5
|
|
|
6
|
-
body {
|
|
7
|
-
margin: 0;
|
|
8
|
-
color: elVar('text-color', 'regular');
|
|
9
|
-
font-size: elVar('font-size', 'base');
|
|
10
|
-
font-family: elVar('font-family');
|
|
11
|
-
line-height: 1.58;
|
|
12
|
-
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
13
|
-
overflow-x: hidden;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
6
|
/* 表单组件宽度撑满 */
|
|
17
7
|
.ele-fluid {
|
|
18
8
|
width: 100%;
|
|
19
9
|
box-sizing: border-box;
|
|
20
10
|
|
|
21
|
-
|
|
22
|
-
&.el-
|
|
11
|
+
&.el-select,
|
|
12
|
+
&.el-input-number,
|
|
13
|
+
&.el-date-editor,
|
|
14
|
+
&.el-date-editor.el-input,
|
|
15
|
+
&.el-date-editor.el-input__wrapper,
|
|
16
|
+
&.el-date-editor > .el-input__wrapper {
|
|
23
17
|
width: 100%;
|
|
18
|
+
box-sizing: border-box;
|
|
19
|
+
}
|
|
24
20
|
|
|
21
|
+
// 日期选择
|
|
22
|
+
&.el-date-editor {
|
|
25
23
|
&.el-input__wrapper {
|
|
26
24
|
width: 100%;
|
|
27
25
|
box-sizing: border-box;
|
|
@@ -54,43 +52,90 @@ body {
|
|
|
54
52
|
}
|
|
55
53
|
|
|
56
54
|
/* 文字提示 */
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
body .el-popper,
|
|
56
|
+
body .el-popper.is-dark {
|
|
57
|
+
color: eleVar('tooltip', 'color');
|
|
58
|
+
border: eleVar('tooltip', 'border');
|
|
59
|
+
background: eleVar('tooltip', 'bg');
|
|
60
|
+
|
|
61
|
+
.el-popper__arrow::before {
|
|
62
|
+
background: eleVar('tooltip', 'arrow-bg');
|
|
63
|
+
border: eleVar('tooltip', 'border');
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
body .el-popper {
|
|
68
|
+
font-size: eleVar('tooltip', 'font-size');
|
|
59
69
|
line-height: eleVar('tooltip', 'line-height');
|
|
60
70
|
border-radius: eleVar('tooltip', 'radius');
|
|
61
|
-
padding: eleVar('tooltip', 'padding');
|
|
62
|
-
box-sizing: border-box;
|
|
63
71
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
72
|
+
.el-popper__arrow,
|
|
73
|
+
.el-popper__arrow::before {
|
|
74
|
+
width: eleVar('tooltip', 'arrow-size');
|
|
75
|
+
height: eleVar('tooltip', 'arrow-size');
|
|
76
|
+
}
|
|
68
77
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
border: eleVar('tooltip-dark', 'border');
|
|
72
|
-
}
|
|
78
|
+
&[data-popper-placement^='top'] > .el-popper__arrow {
|
|
79
|
+
bottom: eleVar('tooltip', 'arrow-offset');
|
|
73
80
|
}
|
|
74
81
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
82
|
+
&[data-popper-placement^='bottom'] > .el-popper__arrow {
|
|
83
|
+
top: eleVar('tooltip', 'arrow-offset');
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&[data-popper-placement^='left'] > .el-popper__arrow {
|
|
87
|
+
right: eleVar('tooltip', 'arrow-offset');
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&[data-popper-placement^='right'] > .el-popper__arrow {
|
|
91
|
+
left: eleVar('tooltip', 'arrow-offset');
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&.is-light {
|
|
95
|
+
color: eleVar('tooltip-light', 'color');
|
|
96
|
+
background: eleVar('tooltip-light', 'bg');
|
|
97
|
+
border: eleVar('tooltip-light', 'border');
|
|
98
|
+
|
|
99
|
+
& > span:not(.el-popper__arrow) {
|
|
100
|
+
background: eleVar('tooltip-light', 'bg');
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.el-popper__arrow::before {
|
|
104
|
+
background: eleVar('tooltip-light', 'arrow-bg');
|
|
105
|
+
border: eleVar('tooltip-light', 'border');
|
|
106
|
+
}
|
|
79
107
|
}
|
|
80
108
|
|
|
81
109
|
&.is-danger,
|
|
82
110
|
&.is-danger .el-popper__arrow::before {
|
|
83
111
|
background: elVar('color-danger');
|
|
112
|
+
border-color: elVar('color-danger');
|
|
84
113
|
}
|
|
85
114
|
|
|
86
115
|
&.is-warning,
|
|
87
116
|
&.is-warning .el-popper__arrow::before {
|
|
88
117
|
background: elVar('color-warning');
|
|
118
|
+
border-color: elVar('color-warning');
|
|
89
119
|
}
|
|
90
120
|
|
|
91
121
|
&.is-success,
|
|
92
122
|
&.is-success .el-popper__arrow::before {
|
|
93
123
|
background: elVar('color-success');
|
|
124
|
+
border-color: elVar('color-success');
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&.is-custom {
|
|
128
|
+
padding: 0;
|
|
129
|
+
|
|
130
|
+
& > span:not(.el-popper__arrow) {
|
|
131
|
+
display: block;
|
|
132
|
+
padding: eleVar('tooltip', 'padding');
|
|
133
|
+
border-radius: eleVar('tooltip', 'radius');
|
|
134
|
+
background: eleVar('tooltip', 'bg');
|
|
135
|
+
box-sizing: border-box;
|
|
136
|
+
position: relative;
|
|
137
|
+
z-index: 2;
|
|
138
|
+
}
|
|
94
139
|
}
|
|
95
140
|
}
|
|
96
141
|
|
|
@@ -109,8 +154,65 @@ div.el-popper {
|
|
|
109
154
|
}
|
|
110
155
|
}
|
|
111
156
|
|
|
112
|
-
/*
|
|
113
|
-
.
|
|
114
|
-
|
|
115
|
-
|
|
157
|
+
/* radio */
|
|
158
|
+
.el-radio .el-radio__inner::after {
|
|
159
|
+
width: elVar('radio', 'input-width');
|
|
160
|
+
height: elVar('radio', 'input-height');
|
|
161
|
+
margin-top: calc(0px - (elVar('radio', 'input-width') / 2));
|
|
162
|
+
margin-left: calc(0px - (elVar('radio', 'input-width') / 2));
|
|
163
|
+
transform: scale(0);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.el-radio .el-radio__input.is-checked .el-radio__inner::after {
|
|
167
|
+
transform: scale(0.375);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/* checkbox */
|
|
171
|
+
.el-checkbox {
|
|
172
|
+
.el-checkbox__label {
|
|
173
|
+
line-height: 1.03;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.el-checkbox__inner::after {
|
|
177
|
+
top: 50%;
|
|
178
|
+
left: 23.5%;
|
|
179
|
+
border-width: 2px;
|
|
180
|
+
transform: rotate(45deg) scale(0) translate(-50%, -50%);
|
|
181
|
+
transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6);
|
|
182
|
+
margin-top: -0.5px;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.el-checkbox__input.is-checked .el-checkbox__inner::after {
|
|
186
|
+
transform: rotate(45deg) scale(1) translate(-50%, -50%);
|
|
187
|
+
transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
&.el-checkbox--large .el-checkbox__inner {
|
|
191
|
+
width: 16px;
|
|
192
|
+
height: 16px;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
&.el-checkbox--small .el-checkbox__inner {
|
|
196
|
+
width: 13px;
|
|
197
|
+
height: 13px;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.el-checkbox__input.is-indeterminate .el-checkbox__inner::before {
|
|
201
|
+
width: 60%;
|
|
202
|
+
height: 2px;
|
|
203
|
+
right: auto;
|
|
204
|
+
top: 50% !important;
|
|
205
|
+
left: 50% !important;
|
|
206
|
+
transform: translateX(-50%);
|
|
207
|
+
margin-top: -1px;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.el-checkbox__input,
|
|
211
|
+
.el-checkbox__inner {
|
|
212
|
+
display: block;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.el-checkbox__original {
|
|
216
|
+
display: none;
|
|
217
|
+
}
|
|
116
218
|
}
|