ele-admin-plus 1.0.2 → 1.1.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/es/components.d.ts +5 -0
- package/es/components.js +86 -76
- package/es/ele-alert/index.d.ts +21 -21
- package/es/ele-alert/props.d.ts +11 -11
- package/es/ele-alert/style/css-var.scss +1 -1
- package/es/ele-alert/style/index.scss +39 -18
- package/es/ele-alert/types/index.d.ts +0 -0
- package/es/ele-app/index.d.ts +1 -1
- package/es/ele-app/style/common.scss +5 -172
- package/es/ele-app/style/css-var.scss +71 -13
- package/es/ele-app/style/index.js +1 -0
- package/es/ele-app/style/index.scss +1 -0
- package/es/ele-app/style/message.scss +30 -8
- package/es/ele-app/style/overwrite.js +1 -0
- package/es/ele-app/style/overwrite.scss +1465 -0
- package/es/ele-app/style/scrollbar.scss +2 -45
- package/es/ele-app/types/index.d.ts +57 -6
- package/es/ele-avatar-group/index.d.ts +19 -19
- package/es/ele-avatar-group/index.js +25 -13
- package/es/ele-avatar-group/props.d.ts +10 -10
- package/es/ele-avatar-group/style/index.js +2 -2
- package/es/ele-avatar-group/style/index.scss +2 -1
- package/es/ele-avatar-group/types/index.d.ts +20 -0
- package/es/ele-bar-code/index.d.ts +2 -2
- package/es/ele-basic-select/components/select-tag.d.ts +6 -6
- package/es/ele-basic-select/index.d.ts +11 -12
- package/es/ele-basic-select/index.js +7 -6
- package/es/ele-basic-select/props.d.ts +3 -3
- package/es/ele-basic-select/style/index.js +1 -1
- package/es/ele-basic-select/style/index.scss +13 -3
- package/es/ele-bottom-bar/index.d.ts +6 -6
- package/es/ele-bottom-bar/props.d.ts +4 -3
- package/es/ele-bottom-bar/style/css-var.scss +1 -1
- package/es/ele-bottom-bar/style/index.scss +1 -0
- package/es/ele-breadcrumb/index.d.ts +2 -2
- package/es/ele-breadcrumb/index.js +2 -2
- package/es/ele-breadcrumb/style/index.scss +1 -0
- package/es/ele-breadcrumb/types/index.d.ts +13 -16
- package/es/ele-card/index.d.ts +11 -9
- package/es/ele-card/index.js +7 -5
- package/es/ele-card/props.d.ts +6 -4
- package/es/ele-card/props.js +2 -0
- package/es/ele-card/style/css-var.scss +3 -3
- package/es/ele-card/style/index.scss +56 -36
- package/es/ele-check-card/components/card-item.d.ts +24 -0
- package/es/ele-check-card/components/card-item.js +50 -0
- package/es/ele-check-card/index.d.ts +51 -0
- package/es/ele-check-card/index.js +131 -0
- package/es/ele-check-card/props.d.ts +32 -0
- package/es/ele-check-card/props.js +38 -0
- package/es/ele-check-card/style/css-var.scss +7 -0
- package/es/ele-check-card/style/index.js +3 -0
- package/es/ele-check-card/style/index.scss +68 -0
- package/es/ele-check-card/types/index.d.ts +32 -0
- package/es/ele-config-provider/index.d.ts +2 -2
- package/es/ele-config-provider/props.d.ts +1 -1
- package/es/ele-config-provider/receiver.d.ts +1 -0
- package/es/ele-config-provider/receiver.js +98 -180
- package/es/ele-config-provider/types/index.d.ts +2 -2
- package/es/ele-count-up/index.d.ts +2 -2
- package/es/ele-cropper/components/cropper-preview.d.ts +2 -2
- package/es/ele-cropper/components/cropper-tools.d.ts +6 -6
- package/es/ele-cropper/components/cropper-tools.js +8 -4
- package/es/ele-cropper/index.d.ts +9 -9
- package/es/ele-cropper/props.d.ts +2 -2
- package/es/ele-cropper/style/index.js +1 -1
- package/es/ele-cropper/style/index.scss +2 -1
- package/es/ele-cropper-modal/index.d.ts +10 -10
- package/es/ele-cropper-modal/props.d.ts +1 -1
- package/es/ele-dashboard/index.d.ts +4 -4
- package/es/ele-dashboard/style/index.scss +2 -1
- package/es/ele-dot/index.d.ts +6 -4
- package/es/ele-dot/index.js +10 -4
- package/es/ele-dot/style/index.scss +1 -0
- package/es/ele-drawer/index.d.ts +20 -18
- package/es/ele-drawer/index.js +13 -9
- package/es/ele-drawer/props.d.ts +7 -5
- package/es/ele-drawer/props.js +2 -0
- package/es/ele-drawer/style/css-var.scss +3 -8
- package/es/ele-drawer/style/index.scss +41 -22
- package/es/ele-dropdown/index.d.ts +122 -0
- package/es/ele-dropdown/index.js +144 -0
- package/es/ele-dropdown/props.d.ts +57 -0
- package/es/ele-dropdown/props.js +26 -0
- package/es/ele-dropdown/style/css-var.scss +7 -0
- package/es/ele-dropdown/style/index.js +5 -0
- package/es/ele-dropdown/style/index.scss +80 -0
- package/es/ele-dropdown/types/index.d.ts +18 -0
- package/es/ele-edit-tag/index.d.ts +15 -15
- package/es/ele-edit-tag/index.js +7 -6
- package/es/ele-edit-tag/props.d.ts +9 -8
- package/es/ele-edit-tag/style/index.js +1 -1
- package/es/ele-edit-tag/style/index.scss +11 -0
- package/es/ele-ellipsis/index.d.ts +15 -11
- package/es/ele-ellipsis/index.js +24 -7
- package/es/ele-ellipsis/props.d.ts +3 -2
- package/es/ele-ellipsis/props.js +2 -0
- package/es/ele-ellipsis/style/index.js +1 -1
- package/es/ele-ellipsis/types/index.d.ts +2 -2
- package/es/ele-file-list/components/file-grid-item.d.ts +11 -7
- package/es/ele-file-list/components/file-grid-item.js +22 -19
- package/es/ele-file-list/components/file-grid.d.ts +162 -9
- package/es/ele-file-list/components/file-grid.js +8 -2
- package/es/ele-file-list/components/file-sort.d.ts +2 -2
- package/es/ele-file-list/components/file-table-item.d.ts +11 -7
- package/es/ele-file-list/components/file-table-item.js +27 -20
- package/es/ele-file-list/components/file-table.d.ts +10 -9
- package/es/ele-file-list/components/file-table.js +8 -2
- package/es/ele-file-list/index.d.ts +14 -5
- package/es/ele-file-list/index.js +10 -7
- package/es/ele-file-list/props.d.ts +13 -1
- package/es/ele-file-list/props.js +4 -0
- package/es/ele-file-list/style/css-var.scss +3 -3
- package/es/ele-file-list/style/index.js +1 -2
- package/es/ele-file-list/style/index.scss +57 -49
- package/es/ele-file-list/types/index.d.ts +26 -3
- package/es/ele-file-list-tool/index.d.ts +2 -2
- package/es/ele-icon-select/components/icon-grid.d.ts +13 -12
- package/es/ele-icon-select/components/icon-grid.js +10 -6
- package/es/ele-icon-select/components/icon-popper.d.ts +24 -23
- package/es/ele-icon-select/components/icon-popper.js +2 -2
- package/es/ele-icon-select/index.d.ts +31 -31
- package/es/ele-icon-select/props.d.ts +14 -13
- package/es/ele-icon-select/style/css-var.scss +7 -0
- package/es/ele-icon-select/style/index.js +1 -1
- package/es/ele-icon-select/style/index.scss +68 -45
- package/es/ele-loading/index.d.ts +2 -2
- package/es/ele-map-picker/components/map-view.d.ts +7 -6
- package/es/ele-map-picker/components/map-view.js +50 -36
- package/es/ele-map-picker/index.d.ts +13 -11
- package/es/ele-map-picker/props.d.ts +6 -4
- package/es/ele-map-picker/props.js +3 -1
- package/es/ele-map-picker/style/css-var.scss +7 -0
- package/es/ele-map-picker/style/index.scss +26 -16
- package/es/ele-menus/index.d.ts +16 -15
- package/es/ele-menus/index.js +107 -161
- package/es/ele-menus/props.d.ts +2 -1
- package/es/ele-menus/props.js +3 -1
- package/es/ele-menus/style/css-var.scss +5 -6
- package/es/ele-menus/style/index.scss +287 -109
- package/es/ele-menus/types/index.d.ts +35 -18
- package/es/ele-menus/util.d.ts +73 -0
- package/es/ele-menus/util.js +303 -0
- package/es/ele-modal/index.d.ts +30 -27
- package/es/ele-modal/index.js +10 -10
- package/es/ele-modal/props.d.ts +11 -8
- package/es/ele-modal/props.js +4 -0
- package/es/ele-modal/style/css-var.scss +1 -1
- package/es/ele-modal/style/index.scss +91 -72
- package/es/ele-modal/util.d.ts +0 -5
- package/es/ele-modal/util.js +17 -10
- package/es/ele-page/index.d.ts +2 -2
- package/es/ele-page/style/css-var.scss +1 -1
- package/es/ele-page/style/index.scss +6 -2
- package/es/ele-pagination/index.d.ts +5 -5
- package/es/ele-pagination/index.js +9 -3
- package/es/ele-pagination/style/css-var.scss +7 -0
- package/es/ele-pagination/style/index.scss +160 -23
- package/es/ele-popconfirm/index.d.ts +393 -0
- package/es/ele-popconfirm/index.js +225 -0
- package/es/ele-popconfirm/props.d.ts +187 -0
- package/es/ele-popconfirm/props.js +55 -0
- package/es/ele-popconfirm/style/css-var.scss +7 -0
- package/es/ele-popconfirm/style/index.js +2 -0
- package/es/ele-popconfirm/style/index.scss +41 -0
- package/es/ele-popover/index.d.ts +386 -0
- package/es/ele-popover/index.js +129 -0
- package/es/ele-popover/props.d.ts +143 -0
- package/es/ele-popover/props.js +17 -0
- package/es/ele-popover/style/css-var.scss +78 -0
- package/es/ele-popover/style/index.js +2 -0
- package/es/ele-popover/style/index.scss +34 -0
- package/es/ele-printer/index.d.ts +9 -9
- package/es/ele-printer/props.d.ts +5 -4
- package/es/ele-pro-layout/components/header-tool.d.ts +2 -2
- package/es/ele-pro-layout/components/pro-header.d.ts +5 -5
- package/es/ele-pro-layout/components/pro-header.js +17 -10
- package/es/ele-pro-layout/components/pro-iframe.d.ts +2 -2
- package/es/ele-pro-layout/components/pro-sidebar.d.ts +5 -4
- package/es/ele-pro-layout/components/pro-sidebar.js +44 -36
- package/es/ele-pro-layout/components/pro-sidebox.d.ts +4 -3
- package/es/ele-pro-layout/components/pro-sidebox.js +43 -35
- package/es/ele-pro-layout/components/pro-tabs.d.ts +14 -13
- package/es/ele-pro-layout/components/pro-tabs.js +7 -3
- package/es/ele-pro-layout/components/sidebar-tool.d.ts +2 -2
- package/es/ele-pro-layout/components/tab-dropdown.d.ts +25 -5
- package/es/ele-pro-layout/components/tab-dropdown.js +55 -21
- package/es/ele-pro-layout/index.d.ts +24 -22
- package/es/ele-pro-layout/index.js +22 -16
- package/es/ele-pro-layout/props.d.ts +6 -3
- package/es/ele-pro-layout/props.js +3 -1
- package/es/ele-pro-layout/style/collapse.scss +22 -23
- package/es/ele-pro-layout/style/css-var.scss +5 -1
- package/es/ele-pro-layout/style/header.scss +9 -5
- package/es/ele-pro-layout/style/index.js +1 -0
- package/es/ele-pro-layout/style/layout-mobile.scss +2 -1
- package/es/ele-pro-layout/style/layout-style.scss +2 -1
- package/es/ele-pro-layout/style/layout-theme.scss +11 -10
- package/es/ele-pro-layout/style/layout.scss +1 -0
- package/es/ele-pro-layout/style/sidebar.scss +119 -101
- package/es/ele-pro-layout/style/tabs.scss +2 -1
- package/es/ele-pro-layout/types/index.d.ts +8 -5
- package/es/ele-pro-layout/util.d.ts +4 -2
- package/es/ele-pro-layout/util.js +20 -9
- package/es/ele-pro-table/components/table-tools.d.ts +3 -3
- package/es/ele-pro-table/components/table-tools.js +17 -45
- package/es/ele-pro-table/components/table-view.d.ts +40 -29
- package/es/ele-pro-table/components/table-view.js +68 -2
- package/es/ele-pro-table/components/tool-column.d.ts +4 -4
- package/es/ele-pro-table/components/tool-column.js +16 -8
- package/es/ele-pro-table/index.d.ts +89 -76
- package/es/ele-pro-table/index.js +38 -25
- package/es/ele-pro-table/props.d.ts +50 -38
- package/es/ele-pro-table/props.js +13 -6
- package/es/ele-pro-table/style/css-var.scss +1 -1
- package/es/ele-pro-table/style/index.js +3 -5
- package/es/ele-pro-table/style/index.scss +274 -78
- package/es/ele-pro-table/types/index.d.ts +15 -11
- package/es/ele-pro-table/util.d.ts +31 -9
- package/es/ele-pro-table/util.js +30 -3
- package/es/ele-qr-code/index.d.ts +6 -6
- package/es/ele-qr-code/index.js +10 -5
- package/es/ele-qr-code/props.d.ts +3 -2
- package/es/ele-qr-code/qrcodegen.js +28 -28
- package/es/ele-qr-code-svg/index.d.ts +4 -4
- package/es/ele-segmented/index.d.ts +3 -3
- package/es/ele-segmented/style/css-var.scss +1 -1
- package/es/ele-segmented/style/index.scss +51 -15
- package/es/ele-segmented/types/index.d.ts +7 -7
- package/es/ele-split-panel/index.d.ts +11 -11
- package/es/ele-split-panel/props.d.ts +5 -4
- package/es/ele-split-panel/style/index.scss +2 -1
- package/es/ele-steps/index.d.ts +6 -5
- package/es/ele-steps/index.js +7 -2
- package/es/ele-steps/style/css-var.scss +7 -0
- package/es/ele-steps/style/index.scss +139 -71
- package/es/ele-steps/types/index.d.ts +3 -2
- package/es/ele-tab-tool/index.d.ts +2 -2
- package/es/ele-tab-wrap/index.d.ts +2 -2
- package/es/ele-table/index.d.ts +2 -2
- package/es/ele-table/style/css-var.scss +1 -1
- package/es/ele-table/style/index.scss +112 -39
- package/es/ele-table-select/index.d.ts +15 -15
- package/es/ele-table-select/props.d.ts +3 -3
- package/es/ele-table-select/style/css-var.scss +7 -0
- package/es/ele-table-select/style/index.scss +15 -2
- package/es/ele-table-select/types/index.d.ts +4 -1
- package/es/ele-tabs/components/tab-title.d.ts +11 -9
- package/es/ele-tabs/components/tab-title.js +27 -22
- package/es/ele-tabs/index.d.ts +157 -21
- package/es/ele-tabs/index.js +18 -4
- package/es/ele-tabs/props.d.ts +6 -5
- package/es/ele-tabs/props.js +3 -1
- package/es/ele-tabs/style/css-var.scss +10 -10
- package/es/ele-tabs/style/index.js +1 -2
- package/es/ele-tabs/style/index.scss +599 -209
- package/es/ele-tabs/types/index.d.ts +17 -2
- package/es/ele-text/index.d.ts +7 -7
- package/es/ele-text/props.d.ts +4 -4
- package/es/ele-text/style/css-var.scss +1 -1
- package/es/ele-text/style/index.scss +1 -0
- package/es/ele-tool/index.d.ts +5 -5
- package/es/ele-tool/index.js +5 -4
- package/es/ele-tool/props.d.ts +1 -1
- package/es/ele-tool/style/css-var.scss +1 -1
- package/es/ele-tool/style/index.js +1 -1
- package/es/ele-tool/style/index.scss +2 -1
- package/es/ele-toolbar/index.d.ts +8 -8
- package/es/ele-toolbar/props.d.ts +5 -4
- package/es/ele-toolbar/style/css-var.scss +1 -1
- package/es/ele-toolbar/style/index.scss +1 -0
- package/es/ele-tooltip/index.d.ts +727 -0
- package/es/ele-tooltip/index.js +167 -0
- package/es/ele-tooltip/props.d.ts +317 -0
- package/es/ele-tooltip/props.js +17 -0
- package/es/ele-tooltip/style/css-var.scss +7 -0
- package/es/ele-tooltip/style/index.js +3 -0
- package/es/ele-tooltip/style/index.scss +66 -0
- package/es/ele-tour/index.d.ts +6 -5
- package/es/ele-tour/index.js +5 -4
- package/es/ele-tour/style/index.js +1 -1
- package/es/ele-tour/style/index.scss +6 -4
- package/es/ele-tour/types/index.d.ts +2 -6
- package/es/ele-tour/util.d.ts +3 -2
- package/es/ele-upload-list/components/list-item.d.ts +6 -3
- package/es/ele-upload-list/components/list-item.js +13 -11
- package/es/ele-upload-list/index.d.ts +13 -11
- package/es/ele-upload-list/index.js +2 -1
- package/es/ele-upload-list/props.d.ts +5 -3
- package/es/ele-upload-list/props.js +2 -0
- package/es/ele-upload-list/style/index.js +1 -1
- package/es/ele-upload-list/style/index.scss +4 -0
- package/es/ele-upload-list/types/index.d.ts +5 -1
- package/es/ele-watermark/index.d.ts +5 -6
- package/es/ele-watermark/index.js +1 -4
- package/es/ele-watermark/props.d.ts +2 -2
- package/es/ele-watermark/util.js +4 -0
- package/es/ele-xg-player/index.d.ts +2 -2
- package/es/icons/ArrowDown.d.ts +2 -2
- package/es/icons/ArrowLeft.d.ts +2 -2
- package/es/icons/ArrowRight.d.ts +2 -2
- package/es/icons/ArrowUp.d.ts +2 -2
- package/es/icons/ColumnHeightOutlined.d.ts +2 -2
- package/es/icons/CompressOutlined.d.ts +2 -2
- package/es/icons/EllipsisOutlined.d.ts +2 -0
- package/es/icons/EllipsisOutlined.js +45 -0
- package/es/icons/ExpandOutlined.d.ts +2 -2
- package/es/icons/FullscreenExitOutlined.d.ts +2 -2
- package/es/icons/FullscreenOutlined.d.ts +2 -2
- package/es/icons/HolderOutlined.d.ts +2 -2
- package/es/icons/LoadingOutlined.d.ts +2 -2
- package/es/icons/VerticalLeftOutlined.d.ts +2 -2
- package/es/icons/VerticalRightOutlined.d.ts +2 -2
- package/es/icons/index.d.ts +1 -0
- package/es/icons/index.js +16 -14
- package/es/style/index.scss +5 -0
- package/es/style/themes/dark-css-var.scss +2 -38
- package/es/style/themes/dark.scss +71 -58
- package/es/style/themes/default.scss +697 -194
- package/es/style/themes/rounded-css-var.scss +6 -0
- package/es/style/themes/rounded.scss +231 -0
- package/es/style/themes/theme-util.scss +62 -0
- package/es/style/util.scss +47 -0
- package/es/utils/core.d.ts +5 -0
- package/es/utils/core.js +4 -0
- package/lib/components.d.ts +5 -0
- package/lib/components.js +86 -76
- package/lib/ele-alert/index.d.ts +21 -21
- package/lib/ele-alert/props.d.ts +11 -11
- package/lib/ele-alert/style/css-var.scss +1 -1
- package/lib/ele-alert/style/index.scss +39 -18
- package/lib/ele-alert/types/index.d.ts +0 -0
- package/lib/ele-app/index.d.ts +1 -1
- package/lib/ele-app/style/common.scss +5 -172
- package/lib/ele-app/style/css-var.scss +71 -13
- package/lib/ele-app/style/index.js +1 -0
- package/lib/ele-app/style/index.scss +1 -0
- package/lib/ele-app/style/message.scss +30 -8
- package/lib/ele-app/style/overwrite.js +2 -0
- package/lib/ele-app/style/overwrite.scss +1465 -0
- package/lib/ele-app/style/scrollbar.scss +2 -45
- package/lib/ele-app/types/index.d.ts +57 -6
- package/lib/ele-avatar-group/index.d.ts +19 -19
- package/lib/ele-avatar-group/index.js +23 -11
- package/lib/ele-avatar-group/props.d.ts +10 -10
- package/lib/ele-avatar-group/style/index.js +2 -2
- package/lib/ele-avatar-group/style/index.scss +2 -1
- package/lib/ele-avatar-group/types/index.d.ts +20 -0
- package/lib/ele-bar-code/index.d.ts +2 -2
- package/lib/ele-basic-select/components/select-tag.d.ts +6 -6
- package/lib/ele-basic-select/index.d.ts +11 -12
- package/lib/ele-basic-select/index.js +7 -6
- package/lib/ele-basic-select/props.d.ts +3 -3
- package/lib/ele-basic-select/style/index.js +1 -1
- package/lib/ele-basic-select/style/index.scss +13 -3
- package/lib/ele-bottom-bar/index.d.ts +6 -6
- package/lib/ele-bottom-bar/props.d.ts +4 -3
- package/lib/ele-bottom-bar/style/css-var.scss +1 -1
- package/lib/ele-bottom-bar/style/index.scss +1 -0
- package/lib/ele-breadcrumb/index.d.ts +2 -2
- package/lib/ele-breadcrumb/index.js +2 -2
- package/lib/ele-breadcrumb/style/index.scss +1 -0
- package/lib/ele-breadcrumb/types/index.d.ts +13 -16
- package/lib/ele-card/index.d.ts +11 -9
- package/lib/ele-card/index.js +6 -4
- package/lib/ele-card/props.d.ts +6 -4
- package/lib/ele-card/props.js +2 -0
- package/lib/ele-card/style/css-var.scss +3 -3
- package/lib/ele-card/style/index.scss +56 -36
- package/lib/ele-check-card/components/card-item.d.ts +24 -0
- package/lib/ele-check-card/components/card-item.js +49 -0
- package/lib/ele-check-card/index.d.ts +51 -0
- package/lib/ele-check-card/index.js +130 -0
- package/lib/ele-check-card/props.d.ts +32 -0
- package/lib/ele-check-card/props.js +38 -0
- package/lib/ele-check-card/style/css-var.scss +7 -0
- package/lib/ele-check-card/style/index.js +4 -0
- package/lib/ele-check-card/style/index.scss +68 -0
- package/lib/ele-check-card/types/index.d.ts +32 -0
- package/lib/ele-config-provider/index.d.ts +2 -2
- package/lib/ele-config-provider/props.d.ts +1 -1
- package/lib/ele-config-provider/receiver.d.ts +1 -0
- package/lib/ele-config-provider/receiver.js +2 -200
- package/lib/ele-config-provider/types/index.d.ts +2 -2
- package/lib/ele-count-up/index.d.ts +2 -2
- package/lib/ele-cropper/components/cropper-preview.d.ts +2 -2
- package/lib/ele-cropper/components/cropper-tools.d.ts +6 -6
- package/lib/ele-cropper/components/cropper-tools.js +8 -4
- package/lib/ele-cropper/index.d.ts +9 -9
- package/lib/ele-cropper/props.d.ts +2 -2
- package/lib/ele-cropper/style/index.js +1 -1
- package/lib/ele-cropper/style/index.scss +2 -1
- package/lib/ele-cropper-modal/index.d.ts +10 -10
- package/lib/ele-cropper-modal/props.d.ts +1 -1
- package/lib/ele-dashboard/index.d.ts +4 -4
- package/lib/ele-dashboard/style/index.scss +2 -1
- package/lib/ele-dot/index.d.ts +6 -4
- package/lib/ele-dot/index.js +9 -3
- package/lib/ele-dot/style/index.scss +1 -0
- package/lib/ele-drawer/index.d.ts +20 -18
- package/lib/ele-drawer/index.js +13 -9
- package/lib/ele-drawer/props.d.ts +7 -5
- package/lib/ele-drawer/props.js +2 -0
- package/lib/ele-drawer/style/css-var.scss +3 -8
- package/lib/ele-drawer/style/index.scss +41 -22
- package/lib/ele-dropdown/index.d.ts +122 -0
- package/lib/ele-dropdown/index.js +143 -0
- package/lib/ele-dropdown/props.d.ts +57 -0
- package/lib/ele-dropdown/props.js +26 -0
- package/lib/ele-dropdown/style/css-var.scss +7 -0
- package/lib/ele-dropdown/style/index.js +6 -0
- package/lib/ele-dropdown/style/index.scss +80 -0
- package/lib/ele-dropdown/types/index.d.ts +18 -0
- package/lib/ele-edit-tag/index.d.ts +15 -15
- package/lib/ele-edit-tag/index.js +7 -6
- package/lib/ele-edit-tag/props.d.ts +9 -8
- package/lib/ele-edit-tag/style/index.js +1 -1
- package/lib/ele-edit-tag/style/index.scss +11 -0
- package/lib/ele-ellipsis/index.d.ts +15 -11
- package/lib/ele-ellipsis/index.js +24 -7
- package/lib/ele-ellipsis/props.d.ts +3 -2
- package/lib/ele-ellipsis/props.js +2 -0
- package/lib/ele-ellipsis/style/index.js +1 -1
- package/lib/ele-ellipsis/types/index.d.ts +2 -2
- package/lib/ele-file-list/components/file-grid-item.d.ts +11 -7
- package/lib/ele-file-list/components/file-grid-item.js +21 -18
- package/lib/ele-file-list/components/file-grid.d.ts +162 -9
- package/lib/ele-file-list/components/file-grid.js +8 -2
- package/lib/ele-file-list/components/file-sort.d.ts +2 -2
- package/lib/ele-file-list/components/file-table-item.d.ts +11 -7
- package/lib/ele-file-list/components/file-table-item.js +26 -19
- package/lib/ele-file-list/components/file-table.d.ts +10 -9
- package/lib/ele-file-list/components/file-table.js +8 -2
- package/lib/ele-file-list/index.d.ts +14 -5
- package/lib/ele-file-list/index.js +9 -6
- package/lib/ele-file-list/props.d.ts +13 -1
- package/lib/ele-file-list/props.js +4 -0
- package/lib/ele-file-list/style/css-var.scss +3 -3
- package/lib/ele-file-list/style/index.js +1 -2
- package/lib/ele-file-list/style/index.scss +57 -49
- package/lib/ele-file-list/types/index.d.ts +26 -3
- package/lib/ele-file-list-tool/index.d.ts +2 -2
- package/lib/ele-icon-select/components/icon-grid.d.ts +13 -12
- package/lib/ele-icon-select/components/icon-grid.js +9 -5
- package/lib/ele-icon-select/components/icon-popper.d.ts +24 -23
- package/lib/ele-icon-select/components/icon-popper.js +2 -2
- package/lib/ele-icon-select/index.d.ts +31 -31
- package/lib/ele-icon-select/props.d.ts +14 -13
- package/lib/ele-icon-select/style/css-var.scss +7 -0
- package/lib/ele-icon-select/style/index.js +1 -1
- package/lib/ele-icon-select/style/index.scss +68 -45
- package/lib/ele-loading/index.d.ts +2 -2
- package/lib/ele-map-picker/components/map-view.d.ts +7 -6
- package/lib/ele-map-picker/components/map-view.js +48 -34
- package/lib/ele-map-picker/index.d.ts +13 -11
- package/lib/ele-map-picker/props.d.ts +6 -4
- package/lib/ele-map-picker/props.js +3 -1
- package/lib/ele-map-picker/style/css-var.scss +7 -0
- package/lib/ele-map-picker/style/index.scss +26 -16
- package/lib/ele-menus/index.d.ts +16 -15
- package/lib/ele-menus/index.js +103 -157
- package/lib/ele-menus/props.d.ts +2 -1
- package/lib/ele-menus/props.js +3 -1
- package/lib/ele-menus/style/css-var.scss +5 -6
- package/lib/ele-menus/style/index.scss +287 -109
- package/lib/ele-menus/types/index.d.ts +35 -18
- package/lib/ele-menus/util.d.ts +73 -0
- package/lib/ele-menus/util.js +303 -0
- package/lib/ele-modal/index.d.ts +30 -27
- package/lib/ele-modal/index.js +9 -9
- package/lib/ele-modal/props.d.ts +11 -8
- package/lib/ele-modal/props.js +4 -0
- package/lib/ele-modal/style/css-var.scss +1 -1
- package/lib/ele-modal/style/index.scss +91 -72
- package/lib/ele-modal/util.d.ts +0 -5
- package/lib/ele-modal/util.js +19 -12
- package/lib/ele-page/index.d.ts +2 -2
- package/lib/ele-page/style/css-var.scss +1 -1
- package/lib/ele-page/style/index.scss +6 -2
- package/lib/ele-pagination/index.d.ts +5 -5
- package/lib/ele-pagination/index.js +9 -3
- package/lib/ele-pagination/style/css-var.scss +7 -0
- package/lib/ele-pagination/style/index.scss +160 -23
- package/lib/ele-popconfirm/index.d.ts +393 -0
- package/lib/ele-popconfirm/index.js +224 -0
- package/lib/ele-popconfirm/props.d.ts +187 -0
- package/lib/ele-popconfirm/props.js +55 -0
- package/lib/ele-popconfirm/style/css-var.scss +7 -0
- package/lib/ele-popconfirm/style/index.js +3 -0
- package/lib/ele-popconfirm/style/index.scss +41 -0
- package/lib/ele-popover/index.d.ts +386 -0
- package/lib/ele-popover/index.js +128 -0
- package/lib/ele-popover/props.d.ts +143 -0
- package/lib/ele-popover/props.js +17 -0
- package/lib/ele-popover/style/css-var.scss +78 -0
- package/lib/ele-popover/style/index.js +3 -0
- package/lib/ele-popover/style/index.scss +34 -0
- package/lib/ele-printer/index.d.ts +9 -9
- package/lib/ele-printer/props.d.ts +5 -4
- package/lib/ele-pro-layout/components/header-tool.d.ts +2 -2
- package/lib/ele-pro-layout/components/pro-header.d.ts +5 -5
- package/lib/ele-pro-layout/components/pro-header.js +16 -9
- package/lib/ele-pro-layout/components/pro-iframe.d.ts +2 -2
- package/lib/ele-pro-layout/components/pro-sidebar.d.ts +5 -4
- package/lib/ele-pro-layout/components/pro-sidebar.js +43 -35
- package/lib/ele-pro-layout/components/pro-sidebox.d.ts +4 -3
- package/lib/ele-pro-layout/components/pro-sidebox.js +42 -34
- package/lib/ele-pro-layout/components/pro-tabs.d.ts +14 -13
- package/lib/ele-pro-layout/components/pro-tabs.js +7 -3
- package/lib/ele-pro-layout/components/sidebar-tool.d.ts +2 -2
- package/lib/ele-pro-layout/components/tab-dropdown.d.ts +25 -5
- package/lib/ele-pro-layout/components/tab-dropdown.js +54 -20
- package/lib/ele-pro-layout/index.d.ts +24 -22
- package/lib/ele-pro-layout/index.js +19 -13
- package/lib/ele-pro-layout/props.d.ts +6 -3
- package/lib/ele-pro-layout/props.js +3 -1
- package/lib/ele-pro-layout/style/collapse.scss +22 -23
- package/lib/ele-pro-layout/style/css-var.scss +5 -1
- package/lib/ele-pro-layout/style/header.scss +9 -5
- package/lib/ele-pro-layout/style/index.js +1 -0
- package/lib/ele-pro-layout/style/layout-mobile.scss +2 -1
- package/lib/ele-pro-layout/style/layout-style.scss +2 -1
- package/lib/ele-pro-layout/style/layout-theme.scss +11 -10
- package/lib/ele-pro-layout/style/layout.scss +1 -0
- package/lib/ele-pro-layout/style/sidebar.scss +119 -101
- package/lib/ele-pro-layout/style/tabs.scss +2 -1
- package/lib/ele-pro-layout/types/index.d.ts +8 -5
- package/lib/ele-pro-layout/util.d.ts +4 -2
- package/lib/ele-pro-layout/util.js +20 -9
- package/lib/ele-pro-table/components/table-tools.d.ts +3 -3
- package/lib/ele-pro-table/components/table-tools.js +15 -43
- package/lib/ele-pro-table/components/table-view.d.ts +40 -29
- package/lib/ele-pro-table/components/table-view.js +68 -2
- package/lib/ele-pro-table/components/tool-column.d.ts +4 -4
- package/lib/ele-pro-table/components/tool-column.js +16 -8
- package/lib/ele-pro-table/index.d.ts +89 -76
- package/lib/ele-pro-table/index.js +33 -20
- package/lib/ele-pro-table/props.d.ts +50 -38
- package/lib/ele-pro-table/props.js +13 -6
- package/lib/ele-pro-table/style/css-var.scss +1 -1
- package/lib/ele-pro-table/style/index.js +3 -5
- package/lib/ele-pro-table/style/index.scss +274 -78
- package/lib/ele-pro-table/types/index.d.ts +15 -11
- package/lib/ele-pro-table/util.d.ts +31 -9
- package/lib/ele-pro-table/util.js +30 -3
- package/lib/ele-qr-code/index.d.ts +6 -6
- package/lib/ele-qr-code/index.js +10 -5
- package/lib/ele-qr-code/props.d.ts +3 -2
- package/lib/ele-qr-code/qrcodegen.js +28 -28
- package/lib/ele-qr-code-svg/index.d.ts +4 -4
- package/lib/ele-segmented/index.d.ts +3 -3
- package/lib/ele-segmented/style/css-var.scss +1 -1
- package/lib/ele-segmented/style/index.scss +51 -15
- package/lib/ele-segmented/types/index.d.ts +7 -7
- package/lib/ele-split-panel/index.d.ts +11 -11
- package/lib/ele-split-panel/props.d.ts +5 -4
- package/lib/ele-split-panel/style/index.scss +2 -1
- package/lib/ele-steps/index.d.ts +6 -5
- package/lib/ele-steps/index.js +7 -2
- package/lib/ele-steps/style/css-var.scss +7 -0
- package/lib/ele-steps/style/index.scss +139 -71
- package/lib/ele-steps/types/index.d.ts +3 -2
- package/lib/ele-tab-tool/index.d.ts +2 -2
- package/lib/ele-tab-wrap/index.d.ts +2 -2
- package/lib/ele-table/index.d.ts +2 -2
- package/lib/ele-table/style/css-var.scss +1 -1
- package/lib/ele-table/style/index.scss +112 -39
- package/lib/ele-table-select/index.d.ts +15 -15
- package/lib/ele-table-select/props.d.ts +3 -3
- package/lib/ele-table-select/style/css-var.scss +7 -0
- package/lib/ele-table-select/style/index.scss +15 -2
- package/lib/ele-table-select/types/index.d.ts +4 -1
- package/lib/ele-tabs/components/tab-title.d.ts +11 -9
- package/lib/ele-tabs/components/tab-title.js +26 -21
- package/lib/ele-tabs/index.d.ts +157 -21
- package/lib/ele-tabs/index.js +18 -4
- package/lib/ele-tabs/props.d.ts +6 -5
- package/lib/ele-tabs/props.js +3 -1
- package/lib/ele-tabs/style/css-var.scss +10 -10
- package/lib/ele-tabs/style/index.js +1 -2
- package/lib/ele-tabs/style/index.scss +599 -209
- package/lib/ele-tabs/types/index.d.ts +17 -2
- package/lib/ele-text/index.d.ts +7 -7
- package/lib/ele-text/props.d.ts +4 -4
- package/lib/ele-text/style/css-var.scss +1 -1
- package/lib/ele-text/style/index.scss +1 -0
- package/lib/ele-tool/index.d.ts +5 -5
- package/lib/ele-tool/index.js +5 -4
- package/lib/ele-tool/props.d.ts +1 -1
- package/lib/ele-tool/style/css-var.scss +1 -1
- package/lib/ele-tool/style/index.js +1 -1
- package/lib/ele-tool/style/index.scss +2 -1
- package/lib/ele-toolbar/index.d.ts +8 -8
- package/lib/ele-toolbar/props.d.ts +5 -4
- package/lib/ele-toolbar/style/css-var.scss +1 -1
- package/lib/ele-toolbar/style/index.scss +1 -0
- package/lib/ele-tooltip/index.d.ts +727 -0
- package/lib/ele-tooltip/index.js +166 -0
- package/lib/ele-tooltip/props.d.ts +317 -0
- package/lib/ele-tooltip/props.js +17 -0
- package/lib/ele-tooltip/style/css-var.scss +7 -0
- package/lib/ele-tooltip/style/index.js +4 -0
- package/lib/ele-tooltip/style/index.scss +66 -0
- package/lib/ele-tour/index.d.ts +6 -5
- package/lib/ele-tour/index.js +4 -3
- package/lib/ele-tour/style/index.js +1 -1
- package/lib/ele-tour/style/index.scss +6 -4
- package/lib/ele-tour/types/index.d.ts +2 -6
- package/lib/ele-tour/util.d.ts +3 -2
- package/lib/ele-upload-list/components/list-item.d.ts +6 -3
- package/lib/ele-upload-list/components/list-item.js +12 -10
- package/lib/ele-upload-list/index.d.ts +13 -11
- package/lib/ele-upload-list/index.js +2 -1
- package/lib/ele-upload-list/props.d.ts +5 -3
- package/lib/ele-upload-list/props.js +2 -0
- package/lib/ele-upload-list/style/index.js +1 -1
- package/lib/ele-upload-list/style/index.scss +4 -0
- package/lib/ele-upload-list/types/index.d.ts +5 -1
- package/lib/ele-watermark/index.d.ts +5 -6
- package/lib/ele-watermark/index.js +0 -3
- package/lib/ele-watermark/props.d.ts +2 -2
- package/lib/ele-watermark/util.js +4 -0
- package/lib/ele-xg-player/index.d.ts +2 -2
- package/lib/icons/ArrowDown.d.ts +2 -2
- package/lib/icons/ArrowLeft.d.ts +2 -2
- package/lib/icons/ArrowRight.d.ts +2 -2
- package/lib/icons/ArrowUp.d.ts +2 -2
- package/lib/icons/ColumnHeightOutlined.d.ts +2 -2
- package/lib/icons/CompressOutlined.d.ts +2 -2
- package/lib/icons/EllipsisOutlined.d.ts +2 -0
- package/lib/icons/EllipsisOutlined.js +44 -0
- package/lib/icons/ExpandOutlined.d.ts +2 -2
- package/lib/icons/FullscreenExitOutlined.d.ts +2 -2
- package/lib/icons/FullscreenOutlined.d.ts +2 -2
- package/lib/icons/HolderOutlined.d.ts +2 -2
- package/lib/icons/LoadingOutlined.d.ts +2 -2
- package/lib/icons/VerticalLeftOutlined.d.ts +2 -2
- package/lib/icons/VerticalRightOutlined.d.ts +2 -2
- package/lib/icons/index.d.ts +1 -0
- package/lib/icons/index.js +2 -0
- package/lib/index.js +7 -7
- package/lib/style/index.scss +5 -0
- package/lib/style/themes/dark-css-var.scss +2 -38
- package/lib/style/themes/dark.scss +71 -58
- package/lib/style/themes/default.scss +697 -194
- package/lib/style/themes/rounded-css-var.scss +6 -0
- package/lib/style/themes/rounded.scss +231 -0
- package/lib/style/themes/theme-util.scss +62 -0
- package/lib/style/util.scss +47 -0
- package/lib/utils/core.d.ts +5 -0
- package/lib/utils/core.js +4 -0
- package/package.json +29 -29
- package/typings/global.d.ts +5 -0
- package/es/ele-menus/style/scrollbar.scss +0 -68
- package/lib/ele-menus/style/scrollbar.scss +0 -68
|
@@ -1,10 +1,21 @@
|
|
|
1
1
|
@use '../../style/themes/default.scss' as *;
|
|
2
|
+
@use '../../style/util.scss' as *;
|
|
2
3
|
|
|
3
4
|
.ele-edit-tag {
|
|
4
5
|
// tag
|
|
5
6
|
.el-tag {
|
|
6
7
|
margin: 0 8px 8px 0;
|
|
7
8
|
vertical-align: top;
|
|
9
|
+
#{elVarName('tag', 'border-radius')}: elVar('border-radius', 'small');
|
|
10
|
+
|
|
11
|
+
&.el-tag--light.el-tag--info {
|
|
12
|
+
#{elVarName('tag', 'text-color')}: elVar('text-color', 'regular');
|
|
13
|
+
border-color: elVar('border-color');
|
|
14
|
+
|
|
15
|
+
.el-tag__close {
|
|
16
|
+
#{elVarName('tag', 'text-color')}: elVar('text-color', 'secondary');
|
|
17
|
+
}
|
|
18
|
+
}
|
|
8
19
|
}
|
|
9
20
|
|
|
10
21
|
// 添加按钮
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { StyleValue } from '../ele-app/types';
|
|
2
|
+
import type { EleTooltipProps } from '../ele-avatar-group/types';
|
|
2
3
|
import type { TextProps } from '../ele-text/props';
|
|
3
4
|
import type { EllipsisTooltip } from './types';
|
|
4
|
-
declare const
|
|
5
|
+
declare const _default: import("vue").DefineComponent<{
|
|
5
6
|
maxLine: NumberConstructor;
|
|
7
|
+
lineHeight: (StringConstructor | NumberConstructor)[];
|
|
6
8
|
tooltip: {
|
|
7
9
|
type: import("vue").PropType<boolean | EllipsisTooltip>;
|
|
8
10
|
default: () => {
|
|
@@ -20,17 +22,19 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
20
22
|
strong: BooleanConstructor;
|
|
21
23
|
italic: BooleanConstructor;
|
|
22
24
|
icon: import("vue").PropType<import("../ele-text/types").TextIcon>;
|
|
23
|
-
iconProps: import("vue").PropType<
|
|
24
|
-
iconStyle: import("vue").PropType<
|
|
25
|
+
iconProps: import("vue").PropType<import("../ele-app/types").ElIconProps>;
|
|
26
|
+
iconStyle: import("vue").PropType<StyleValue>;
|
|
25
27
|
}, {
|
|
26
28
|
textRef: import("vue").Ref<HTMLElement | null>;
|
|
27
29
|
virtualRef: import("vue").Ref<HTMLElement | undefined>;
|
|
28
|
-
tooltipProps: import("vue").ComputedRef<
|
|
30
|
+
tooltipProps: import("vue").ComputedRef<EleTooltipProps>;
|
|
29
31
|
multiLine: import("vue").ComputedRef<boolean>;
|
|
30
32
|
textProps: import("vue").ComputedRef<Partial<TextProps>>;
|
|
33
|
+
rootStyle: import("vue").ComputedRef<StyleValue>;
|
|
31
34
|
onHover: (e: MouseEvent) => void;
|
|
32
35
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
33
36
|
maxLine: NumberConstructor;
|
|
37
|
+
lineHeight: (StringConstructor | NumberConstructor)[];
|
|
34
38
|
tooltip: {
|
|
35
39
|
type: import("vue").PropType<boolean | EllipsisTooltip>;
|
|
36
40
|
default: () => {
|
|
@@ -48,14 +52,14 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
48
52
|
strong: BooleanConstructor;
|
|
49
53
|
italic: BooleanConstructor;
|
|
50
54
|
icon: import("vue").PropType<import("../ele-text/types").TextIcon>;
|
|
51
|
-
iconProps: import("vue").PropType<
|
|
52
|
-
iconStyle: import("vue").PropType<
|
|
55
|
+
iconProps: import("vue").PropType<import("../ele-app/types").ElIconProps>;
|
|
56
|
+
iconStyle: import("vue").PropType<StyleValue>;
|
|
53
57
|
}>>, {
|
|
54
|
-
tooltip: boolean | EllipsisTooltip;
|
|
55
58
|
tag: string;
|
|
56
|
-
|
|
57
|
-
underline: boolean;
|
|
59
|
+
tooltip: boolean | EllipsisTooltip;
|
|
58
60
|
strong: boolean;
|
|
59
61
|
italic: boolean;
|
|
62
|
+
underline: boolean;
|
|
63
|
+
deleted: boolean;
|
|
60
64
|
}, {}>;
|
|
61
|
-
export default
|
|
65
|
+
export default _default;
|
package/es/ele-ellipsis/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, mergeProps, withCtx, renderSlot, normalizeProps, createCommentVNode } from "vue";
|
|
2
|
-
import
|
|
2
|
+
import EleTooltip from "../ele-tooltip/index";
|
|
3
3
|
import { omit, pick } from "../utils/core";
|
|
4
4
|
import EleText from "../ele-text/index";
|
|
5
5
|
import { textPropKeys } from "../ele-text/props";
|
|
6
6
|
import { ellipsisProps } from "./props";
|
|
7
7
|
const _sfc_main = defineComponent({
|
|
8
8
|
name: "EleEllipsis",
|
|
9
|
-
components: { EleText,
|
|
9
|
+
components: { EleText, EleTooltip },
|
|
10
10
|
props: ellipsisProps,
|
|
11
11
|
setup(props) {
|
|
12
12
|
const textRef = ref(null);
|
|
@@ -32,6 +32,21 @@ const _sfc_main = defineComponent({
|
|
|
32
32
|
const textProps = computed(() => {
|
|
33
33
|
return Object.assign({ title: title.value }, pick(props, textPropKeys));
|
|
34
34
|
});
|
|
35
|
+
const rootStyle = computed(() => {
|
|
36
|
+
const style = {};
|
|
37
|
+
const { lineHeight, maxLine } = props;
|
|
38
|
+
if (lineHeight != null) {
|
|
39
|
+
const h = typeof lineHeight === "number" ? `${lineHeight}px` : lineHeight;
|
|
40
|
+
style.lineHeight = h;
|
|
41
|
+
if (multiLine.value) {
|
|
42
|
+
style.height = `calc(${h} * ${maxLine})`;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
if (multiLine.value) {
|
|
46
|
+
style["-webkit-line-clamp"] = maxLine;
|
|
47
|
+
}
|
|
48
|
+
return style;
|
|
49
|
+
});
|
|
35
50
|
const onHover = (e) => {
|
|
36
51
|
if (!props.tooltip) {
|
|
37
52
|
virtualRef.value = void 0;
|
|
@@ -64,6 +79,7 @@ const _sfc_main = defineComponent({
|
|
|
64
79
|
tooltipProps,
|
|
65
80
|
multiLine,
|
|
66
81
|
textProps,
|
|
82
|
+
rootStyle,
|
|
67
83
|
onHover
|
|
68
84
|
};
|
|
69
85
|
}
|
|
@@ -76,19 +92,20 @@ const _export_sfc = (sfc, props) => {
|
|
|
76
92
|
return target;
|
|
77
93
|
};
|
|
78
94
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
79
|
-
const
|
|
95
|
+
const _component_EleTooltip = resolveComponent("EleTooltip");
|
|
80
96
|
const _component_EleText = resolveComponent("EleText");
|
|
81
|
-
return openBlock(), createBlock(_component_EleText, mergeProps(
|
|
97
|
+
return openBlock(), createBlock(_component_EleText, mergeProps(_ctx.textProps, {
|
|
98
|
+
ref: "textRef",
|
|
99
|
+
style: _ctx.rootStyle,
|
|
82
100
|
class: ["ele-ellipsis", { "is-multi-line": _ctx.multiLine }],
|
|
83
|
-
style: _ctx.multiLine ? { "-webkit-line-clamp": _ctx.maxLine } : void 0,
|
|
84
101
|
onMouseover: _ctx.onHover
|
|
85
102
|
}), {
|
|
86
103
|
default: withCtx(() => [
|
|
87
104
|
renderSlot(_ctx.$slots, "default"),
|
|
88
|
-
_ctx.virtualRef ? (openBlock(), createBlock(
|
|
105
|
+
_ctx.virtualRef ? (openBlock(), createBlock(_component_EleTooltip, normalizeProps(mergeProps({ key: 0 }, _ctx.tooltipProps)), null, 16)) : createCommentVNode("", true)
|
|
89
106
|
]),
|
|
90
107
|
_: 3
|
|
91
|
-
}, 16, ["
|
|
108
|
+
}, 16, ["style", "class", "onMouseover"]);
|
|
92
109
|
}
|
|
93
110
|
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
94
111
|
export {
|
|
@@ -5,6 +5,7 @@ import type { EllipsisTooltip } from './types';
|
|
|
5
5
|
*/
|
|
6
6
|
export declare const ellipsisProps: {
|
|
7
7
|
maxLine: NumberConstructor;
|
|
8
|
+
lineHeight: (StringConstructor | NumberConstructor)[];
|
|
8
9
|
tooltip: {
|
|
9
10
|
type: PropType<boolean | EllipsisTooltip>;
|
|
10
11
|
default: () => {
|
|
@@ -22,7 +23,7 @@ export declare const ellipsisProps: {
|
|
|
22
23
|
strong: BooleanConstructor;
|
|
23
24
|
italic: BooleanConstructor;
|
|
24
25
|
icon: PropType<import("../ele-text/types").TextIcon>;
|
|
25
|
-
iconProps: PropType<
|
|
26
|
-
iconStyle: PropType<import("
|
|
26
|
+
iconProps: PropType<import("../ele-app/types").ElIconProps>;
|
|
27
|
+
iconStyle: PropType<import("../ele-app/types").StyleValue>;
|
|
27
28
|
};
|
|
28
29
|
export type EllipsisProps = ExtractPropTypes<typeof ellipsisProps>;
|
package/es/ele-ellipsis/props.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { EleTooltipProps } from '../../ele-avatar-group/types';
|
|
2
2
|
/**
|
|
3
3
|
* 文字提示属性
|
|
4
4
|
*/
|
|
5
|
-
export interface EllipsisTooltip extends
|
|
5
|
+
export interface EllipsisTooltip extends EleTooltipProps {
|
|
6
6
|
/** 是否使用原生的提示 */
|
|
7
7
|
original?: boolean;
|
|
8
8
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
-
import type {
|
|
3
|
-
import type { IconItem, FileItem, ItemContextMenuOption, SelectionType } from '../types';
|
|
4
|
-
declare const
|
|
2
|
+
import type { DropdownItem } from '../../ele-dropdown/types';
|
|
3
|
+
import type { IconItem, FileItem, ItemContextMenuOption, SelectionType, EleDropdownProps, DropdownInstance } from '../types';
|
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
|
5
5
|
item: {
|
|
6
6
|
type: PropType<FileItem>;
|
|
7
7
|
required: true;
|
|
@@ -10,8 +10,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
10
10
|
selections: PropType<FileItem[]>;
|
|
11
11
|
current: PropType<FileItem>;
|
|
12
12
|
icons: PropType<IconItem[]>;
|
|
13
|
+
contextMenus: PropType<DropdownItem[]>;
|
|
14
|
+
contextMenuProps: PropType<EleDropdownProps>;
|
|
13
15
|
}, {
|
|
14
|
-
dropdownRef: import("vue").Ref<
|
|
16
|
+
dropdownRef: import("vue").Ref<DropdownInstance>;
|
|
15
17
|
dropdownVisible: import("vue").Ref<boolean>;
|
|
16
18
|
selectable: import("vue").ComputedRef<boolean>;
|
|
17
19
|
selected: import("vue").ComputedRef<boolean>;
|
|
@@ -25,7 +27,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
25
27
|
click: (_item: FileItem) => true;
|
|
26
28
|
checkChange: (_item: FileItem) => true;
|
|
27
29
|
contextMenu: (_option: ItemContextMenuOption) => true;
|
|
28
|
-
contextOpen: (_ref:
|
|
30
|
+
contextOpen: (_ref: DropdownInstance) => true;
|
|
29
31
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
30
32
|
item: {
|
|
31
33
|
type: PropType<FileItem>;
|
|
@@ -35,10 +37,12 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
35
37
|
selections: PropType<FileItem[]>;
|
|
36
38
|
current: PropType<FileItem>;
|
|
37
39
|
icons: PropType<IconItem[]>;
|
|
40
|
+
contextMenus: PropType<DropdownItem[]>;
|
|
41
|
+
contextMenuProps: PropType<EleDropdownProps>;
|
|
38
42
|
}>> & {
|
|
39
43
|
onClick?: ((_item: FileItem) => any) | undefined;
|
|
40
44
|
onCheckChange?: ((_item: FileItem) => any) | undefined;
|
|
41
45
|
onContextMenu?: ((_option: ItemContextMenuOption) => any) | undefined;
|
|
42
|
-
onContextOpen?: ((_ref:
|
|
46
|
+
onContextOpen?: ((_ref: DropdownInstance) => any) | undefined;
|
|
43
47
|
}, {}, {}>;
|
|
44
|
-
export default
|
|
48
|
+
export default _default;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, withModifiers, createElementVNode, toDisplayString, createCommentVNode, createBlock,
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent, ref, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, withModifiers, createElementVNode, toDisplayString, createCommentVNode, createBlock, mergeProps, createSlots, withCtx, renderSlot } from "vue";
|
|
2
|
+
import EleDropdown from "../../ele-dropdown/index";
|
|
3
3
|
const _sfc_main = defineComponent({
|
|
4
4
|
name: "FileGridItem",
|
|
5
|
-
components: {
|
|
5
|
+
components: { EleDropdown },
|
|
6
6
|
props: {
|
|
7
7
|
// 数据
|
|
8
8
|
item: {
|
|
@@ -16,7 +16,11 @@ const _sfc_main = defineComponent({
|
|
|
16
16
|
// 单选选中数据
|
|
17
17
|
current: Object,
|
|
18
18
|
// 后缀对应的图标
|
|
19
|
-
icons: Array
|
|
19
|
+
icons: Array,
|
|
20
|
+
// 右键菜单
|
|
21
|
+
contextMenus: Array,
|
|
22
|
+
// 右键菜单属性
|
|
23
|
+
contextMenuProps: Object
|
|
20
24
|
},
|
|
21
25
|
emits: {
|
|
22
26
|
click: (_item) => true,
|
|
@@ -114,8 +118,7 @@ const _hoisted_5 = [
|
|
|
114
118
|
_hoisted_4
|
|
115
119
|
];
|
|
116
120
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
117
|
-
const
|
|
118
|
-
const _component_ElDropdown = resolveComponent("ElDropdown");
|
|
121
|
+
const _component_EleDropdown = resolveComponent("EleDropdown");
|
|
119
122
|
return openBlock(), createElementBlock("div", {
|
|
120
123
|
class: normalizeClass([
|
|
121
124
|
"ele-file-list-item",
|
|
@@ -144,32 +147,32 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
144
147
|
class: "ele-file-list-item-checkbox",
|
|
145
148
|
onClick: _cache[1] || (_cache[1] = withModifiers((...args) => _ctx.onCheckChange && _ctx.onCheckChange(...args), ["stop"]))
|
|
146
149
|
}, _hoisted_5)) : createCommentVNode("", true),
|
|
147
|
-
_ctx.$slots.contextMenu ? (openBlock(), createBlock(
|
|
148
|
-
key: 1,
|
|
150
|
+
_ctx.contextMenus || _ctx.$slots.contextMenu ? (openBlock(), createBlock(_component_EleDropdown, mergeProps({ key: 1 }, _ctx.contextMenuProps, {
|
|
149
151
|
ref: "dropdownRef",
|
|
150
152
|
trigger: "click",
|
|
151
153
|
placement: "bottom-start",
|
|
152
154
|
popperClass: "ele-file-list-item-context",
|
|
153
155
|
class: "ele-file-list-item-dropdown",
|
|
156
|
+
items: _ctx.contextMenus,
|
|
154
157
|
onCommand: _ctx.onItemContextMenu,
|
|
155
158
|
onVisibleChange: _ctx.onContextVisibleChange
|
|
156
|
-
}, {
|
|
157
|
-
dropdown: withCtx(() => [
|
|
158
|
-
createVNode(_component_ElDropdownMenu, null, {
|
|
159
|
-
default: withCtx(() => [
|
|
160
|
-
renderSlot(_ctx.$slots, "contextMenu", { item: _ctx.item })
|
|
161
|
-
]),
|
|
162
|
-
_: 3
|
|
163
|
-
})
|
|
164
|
-
]),
|
|
159
|
+
}), createSlots({
|
|
165
160
|
default: withCtx(() => [
|
|
166
161
|
createElementVNode("div", {
|
|
167
162
|
onClick: _cache[2] || (_cache[2] = withModifiers(() => {
|
|
168
163
|
}, ["stop"]))
|
|
169
164
|
})
|
|
170
165
|
]),
|
|
171
|
-
_:
|
|
172
|
-
},
|
|
166
|
+
_: 2
|
|
167
|
+
}, [
|
|
168
|
+
_ctx.$slots.contextMenu ? {
|
|
169
|
+
name: "dropdownMenu",
|
|
170
|
+
fn: withCtx(() => [
|
|
171
|
+
renderSlot(_ctx.$slots, "contextMenu", { item: _ctx.item })
|
|
172
|
+
]),
|
|
173
|
+
key: "0"
|
|
174
|
+
} : void 0
|
|
175
|
+
]), 1040, ["items", "onCommand", "onVisibleChange"])) : createCommentVNode("", true)
|
|
173
176
|
], 2);
|
|
174
177
|
}
|
|
175
178
|
const fileGridItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import type { PropType, Ref } from 'vue';
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
import type GridItemType from "./file-grid-item";
|
|
5
|
-
export type GridItemInstance = InstanceType<typeof GridItemType>;
|
|
6
|
-
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
|
+
import type { IconItem, FileItem, ItemContextMenuOption, SelectionType, ContextMenus, EleDropdownProps, DropdownInstance } from '../types';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
7
4
|
data: PropType<FileItem[]>;
|
|
8
5
|
icons: PropType<IconItem[]>;
|
|
9
6
|
selectionType: PropType<SelectionType>;
|
|
@@ -13,14 +10,168 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
13
10
|
isIndeterminate: BooleanConstructor;
|
|
14
11
|
checkAllText: StringConstructor;
|
|
15
12
|
selectedText: StringConstructor;
|
|
13
|
+
contextMenus: PropType<ContextMenus>;
|
|
14
|
+
contextMenuProps: PropType<EleDropdownProps>;
|
|
16
15
|
}, {
|
|
17
|
-
itemRefs: Ref<
|
|
16
|
+
itemRefs: Ref<({
|
|
17
|
+
$: import("vue").ComponentInternalInstance;
|
|
18
|
+
$data: {};
|
|
19
|
+
$props: {
|
|
20
|
+
key?: string | number | symbol | undefined;
|
|
21
|
+
onClick?: ((_item: FileItem) => any) | undefined;
|
|
22
|
+
style?: unknown;
|
|
23
|
+
readonly selections?: FileItem[] | undefined;
|
|
24
|
+
readonly current?: FileItem | undefined;
|
|
25
|
+
ref?: import("vue").VNodeRef | undefined;
|
|
26
|
+
ref_for?: boolean | undefined;
|
|
27
|
+
ref_key?: string | undefined;
|
|
28
|
+
onVnodeBeforeMount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
29
|
+
[key: string]: any;
|
|
30
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
}>) => void)[] | undefined;
|
|
33
|
+
onVnodeMounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
34
|
+
[key: string]: any;
|
|
35
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
36
|
+
[key: string]: any;
|
|
37
|
+
}>) => void)[] | undefined;
|
|
38
|
+
onVnodeBeforeUpdate?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
39
|
+
[key: string]: any;
|
|
40
|
+
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
41
|
+
[key: string]: any;
|
|
42
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
43
|
+
[key: string]: any;
|
|
44
|
+
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
45
|
+
[key: string]: any;
|
|
46
|
+
}>) => void)[] | undefined;
|
|
47
|
+
onVnodeUpdated?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
48
|
+
[key: string]: any;
|
|
49
|
+
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
50
|
+
[key: string]: any;
|
|
51
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
52
|
+
[key: string]: any;
|
|
53
|
+
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
54
|
+
[key: string]: any;
|
|
55
|
+
}>) => void)[] | undefined;
|
|
56
|
+
onVnodeBeforeUnmount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
57
|
+
[key: string]: any;
|
|
58
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
59
|
+
[key: string]: any;
|
|
60
|
+
}>) => void)[] | undefined;
|
|
61
|
+
onVnodeUnmounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
62
|
+
[key: string]: any;
|
|
63
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
64
|
+
[key: string]: any;
|
|
65
|
+
}>) => void)[] | undefined;
|
|
66
|
+
class?: unknown;
|
|
67
|
+
readonly item: FileItem;
|
|
68
|
+
onCheckChange?: ((_item: FileItem) => any) | undefined;
|
|
69
|
+
onContextMenu?: ((_option: ItemContextMenuOption) => any) | undefined;
|
|
70
|
+
onContextOpen?: ((_ref: DropdownInstance) => any) | undefined;
|
|
71
|
+
readonly selectionType?: SelectionType | undefined;
|
|
72
|
+
readonly icons?: IconItem[] | undefined;
|
|
73
|
+
readonly contextMenus?: import("../../ele-dropdown/types").DropdownItem[] | undefined;
|
|
74
|
+
readonly contextMenuProps?: EleDropdownProps | undefined;
|
|
75
|
+
};
|
|
76
|
+
$attrs: {
|
|
77
|
+
[x: string]: unknown;
|
|
78
|
+
};
|
|
79
|
+
$refs: {
|
|
80
|
+
[x: string]: unknown;
|
|
81
|
+
};
|
|
82
|
+
$slots: Readonly<{
|
|
83
|
+
[name: string]: import("vue").Slot<any> | undefined;
|
|
84
|
+
}>;
|
|
85
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
86
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
87
|
+
$emit: ((event: "click", _item: FileItem) => void) & ((event: "checkChange", _item: FileItem) => void) & ((event: "contextMenu", _option: ItemContextMenuOption) => void) & ((event: "contextOpen", _ref: DropdownInstance) => void);
|
|
88
|
+
$el: any;
|
|
89
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
90
|
+
item: {
|
|
91
|
+
type: PropType<FileItem>;
|
|
92
|
+
required: true;
|
|
93
|
+
};
|
|
94
|
+
selectionType: PropType<SelectionType>;
|
|
95
|
+
selections: PropType<FileItem[]>;
|
|
96
|
+
current: PropType<FileItem>;
|
|
97
|
+
icons: PropType<IconItem[]>;
|
|
98
|
+
contextMenus: PropType<import("../../ele-dropdown/types").DropdownItem[]>;
|
|
99
|
+
contextMenuProps: PropType<EleDropdownProps>;
|
|
100
|
+
}>> & {
|
|
101
|
+
onClick?: ((_item: FileItem) => any) | undefined;
|
|
102
|
+
onCheckChange?: ((_item: FileItem) => any) | undefined;
|
|
103
|
+
onContextMenu?: ((_option: ItemContextMenuOption) => any) | undefined;
|
|
104
|
+
onContextOpen?: ((_ref: DropdownInstance) => any) | undefined;
|
|
105
|
+
}, {
|
|
106
|
+
dropdownRef: Ref<DropdownInstance>;
|
|
107
|
+
dropdownVisible: Ref<boolean>;
|
|
108
|
+
selectable: import("vue").ComputedRef<boolean>;
|
|
109
|
+
selected: import("vue").ComputedRef<boolean>;
|
|
110
|
+
icon: import("vue").ComputedRef<string | undefined>;
|
|
111
|
+
onClick: () => void;
|
|
112
|
+
onCheckChange: () => void;
|
|
113
|
+
onContextmenu: (e: MouseEvent) => void;
|
|
114
|
+
onItemContextMenu: (command: string) => void;
|
|
115
|
+
onContextVisibleChange: (visible: boolean) => void;
|
|
116
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
117
|
+
click: (_item: FileItem) => true;
|
|
118
|
+
checkChange: (_item: FileItem) => true;
|
|
119
|
+
contextMenu: (_option: ItemContextMenuOption) => true;
|
|
120
|
+
contextOpen: (_ref: DropdownInstance) => true;
|
|
121
|
+
}, string, {}, {}, string, {}> & {
|
|
122
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
123
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
124
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
125
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
126
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
127
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
128
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
129
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
130
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
131
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
132
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
133
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
134
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
135
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
136
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
137
|
+
};
|
|
138
|
+
$forceUpdate: () => void;
|
|
139
|
+
$nextTick: typeof import("vue").nextTick;
|
|
140
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
141
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
|
142
|
+
item: {
|
|
143
|
+
type: PropType<FileItem>;
|
|
144
|
+
required: true;
|
|
145
|
+
};
|
|
146
|
+
selectionType: PropType<SelectionType>;
|
|
147
|
+
selections: PropType<FileItem[]>;
|
|
148
|
+
current: PropType<FileItem>;
|
|
149
|
+
icons: PropType<IconItem[]>;
|
|
150
|
+
contextMenus: PropType<import("../../ele-dropdown/types").DropdownItem[]>;
|
|
151
|
+
contextMenuProps: PropType<EleDropdownProps>;
|
|
152
|
+
}>> & {
|
|
153
|
+
onClick?: ((_item: FileItem) => any) | undefined;
|
|
154
|
+
onCheckChange?: ((_item: FileItem) => any) | undefined;
|
|
155
|
+
onContextMenu?: ((_option: ItemContextMenuOption) => any) | undefined;
|
|
156
|
+
onContextOpen?: ((_ref: DropdownInstance) => any) | undefined;
|
|
157
|
+
} & import("vue").ShallowUnwrapRef<{
|
|
158
|
+
dropdownRef: Ref<DropdownInstance>;
|
|
159
|
+
dropdownVisible: Ref<boolean>;
|
|
160
|
+
selectable: import("vue").ComputedRef<boolean>;
|
|
161
|
+
selected: import("vue").ComputedRef<boolean>;
|
|
162
|
+
icon: import("vue").ComputedRef<string | undefined>;
|
|
163
|
+
onClick: () => void;
|
|
164
|
+
onCheckChange: () => void;
|
|
165
|
+
onContextmenu: (e: MouseEvent) => void;
|
|
166
|
+
onItemContextMenu: (command: string) => void;
|
|
167
|
+
onContextVisibleChange: (visible: boolean) => void;
|
|
168
|
+
}> & {} & import("vue").ComponentCustomProperties & {})[]>;
|
|
18
169
|
headerText: import("vue").ComputedRef<string | undefined>;
|
|
19
170
|
onCheckAllChange: () => void;
|
|
20
171
|
onItemClick: (item: FileItem) => void;
|
|
21
172
|
onItemCheckChange: (item: FileItem) => void;
|
|
22
173
|
onItemContextMenu: (option: ItemContextMenuOption) => void;
|
|
23
|
-
onItemContextOpen: (ref:
|
|
174
|
+
onItemContextOpen: (ref: DropdownInstance) => void;
|
|
24
175
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
176
|
checkAllChange: () => true;
|
|
26
177
|
itemClick: (_item: FileItem) => true;
|
|
@@ -36,13 +187,15 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
36
187
|
isIndeterminate: BooleanConstructor;
|
|
37
188
|
checkAllText: StringConstructor;
|
|
38
189
|
selectedText: StringConstructor;
|
|
190
|
+
contextMenus: PropType<ContextMenus>;
|
|
191
|
+
contextMenuProps: PropType<EleDropdownProps>;
|
|
39
192
|
}>> & {
|
|
193
|
+
onItemContextMenu?: ((_option: ItemContextMenuOption) => any) | undefined;
|
|
40
194
|
onCheckAllChange?: (() => any) | undefined;
|
|
41
195
|
onItemClick?: ((_item: FileItem) => any) | undefined;
|
|
42
196
|
onItemCheckChange?: ((_item: FileItem) => any) | undefined;
|
|
43
|
-
onItemContextMenu?: ((_option: ItemContextMenuOption) => any) | undefined;
|
|
44
197
|
}, {
|
|
45
198
|
isCheckAll: boolean;
|
|
46
199
|
isIndeterminate: boolean;
|
|
47
200
|
}, {}>;
|
|
48
|
-
export default
|
|
201
|
+
export default _default;
|
|
@@ -21,7 +21,11 @@ const _sfc_main = defineComponent({
|
|
|
21
21
|
// 全选按钮文字
|
|
22
22
|
checkAllText: String,
|
|
23
23
|
// 选中后的文字
|
|
24
|
-
selectedText: String
|
|
24
|
+
selectedText: String,
|
|
25
|
+
// 右键菜单
|
|
26
|
+
contextMenus: [Array, Function],
|
|
27
|
+
// 右键菜单属性
|
|
28
|
+
contextMenuProps: Object
|
|
25
29
|
},
|
|
26
30
|
emits: {
|
|
27
31
|
checkAllChange: () => true,
|
|
@@ -117,6 +121,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
117
121
|
selections: _ctx.selections,
|
|
118
122
|
current: _ctx.current,
|
|
119
123
|
icons: _ctx.icons,
|
|
124
|
+
contextMenus: typeof _ctx.contextMenus === "function" ? _ctx.contextMenus(item) : _ctx.contextMenus,
|
|
125
|
+
contextMenuProps: _ctx.contextMenuProps,
|
|
120
126
|
onClick: _ctx.onItemClick,
|
|
121
127
|
onCheckChange: _ctx.onItemCheckChange,
|
|
122
128
|
onContextMenu: _ctx.onItemContextMenu,
|
|
@@ -130,7 +136,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
130
136
|
])
|
|
131
137
|
};
|
|
132
138
|
})
|
|
133
|
-
]), 1032, ["item", "selectionType", "selections", "current", "icons", "onClick", "onCheckChange", "onContextMenu", "onContextOpen"]);
|
|
139
|
+
]), 1032, ["item", "selectionType", "selections", "current", "icons", "contextMenus", "contextMenuProps", "onClick", "onCheckChange", "onContextMenu", "onContextOpen"]);
|
|
134
140
|
}), 128))
|
|
135
141
|
])
|
|
136
142
|
]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
2
|
sort: StringConstructor;
|
|
3
3
|
order: StringConstructor;
|
|
4
4
|
name: {
|
|
@@ -13,4 +13,4 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
13
13
|
required: true;
|
|
14
14
|
};
|
|
15
15
|
}>>, {}, {}>;
|
|
16
|
-
export default
|
|
16
|
+
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
-
import type {
|
|
3
|
-
import type { IconItem, FileItem, ColumnItem, ItemContextMenuOption, SelectionType } from '../types';
|
|
4
|
-
declare const
|
|
2
|
+
import type { DropdownItem } from '../../ele-dropdown/types';
|
|
3
|
+
import type { IconItem, FileItem, ColumnItem, ItemContextMenuOption, SelectionType, EleDropdownProps, DropdownInstance } from '../types';
|
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
|
5
5
|
item: {
|
|
6
6
|
type: PropType<FileItem>;
|
|
7
7
|
required: true;
|
|
@@ -11,8 +11,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
11
11
|
current: PropType<FileItem>;
|
|
12
12
|
icons: PropType<IconItem[]>;
|
|
13
13
|
columns: PropType<ColumnItem[]>;
|
|
14
|
+
contextMenus: PropType<DropdownItem[]>;
|
|
15
|
+
contextMenuProps: PropType<EleDropdownProps>;
|
|
14
16
|
}, {
|
|
15
|
-
dropdownRef: import("vue").Ref<
|
|
17
|
+
dropdownRef: import("vue").Ref<DropdownInstance>;
|
|
16
18
|
dropdownVisible: import("vue").Ref<boolean>;
|
|
17
19
|
selectable: import("vue").ComputedRef<boolean>;
|
|
18
20
|
selected: import("vue").ComputedRef<boolean>;
|
|
@@ -26,7 +28,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
26
28
|
click: (_item: FileItem) => true;
|
|
27
29
|
checkChange: (_item: FileItem) => true;
|
|
28
30
|
contextMenu: (_option: ItemContextMenuOption) => true;
|
|
29
|
-
contextOpen: (_ref:
|
|
31
|
+
contextOpen: (_ref: DropdownInstance) => true;
|
|
30
32
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
31
33
|
item: {
|
|
32
34
|
type: PropType<FileItem>;
|
|
@@ -37,10 +39,12 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
37
39
|
current: PropType<FileItem>;
|
|
38
40
|
icons: PropType<IconItem[]>;
|
|
39
41
|
columns: PropType<ColumnItem[]>;
|
|
42
|
+
contextMenus: PropType<DropdownItem[]>;
|
|
43
|
+
contextMenuProps: PropType<EleDropdownProps>;
|
|
40
44
|
}>> & {
|
|
41
45
|
onClick?: ((_item: FileItem) => any) | undefined;
|
|
42
46
|
onCheckChange?: ((_item: FileItem) => any) | undefined;
|
|
43
47
|
onContextMenu?: ((_option: ItemContextMenuOption) => any) | undefined;
|
|
44
|
-
onContextOpen?: ((_ref:
|
|
48
|
+
onContextOpen?: ((_ref: DropdownInstance) => any) | undefined;
|
|
45
49
|
}, {}, {}>;
|
|
46
|
-
export default
|
|
50
|
+
export default _default;
|