ele-admin-plus 1.1.9-beta.1 → 1.1.9-beta.10
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/core-installer.d.ts +2 -2
- package/es/ele-alert/index.d.ts +1 -1
- package/es/ele-alert/index.js +2 -4
- package/es/ele-alert/props.d.ts +10 -9
- package/es/ele-app/el.d.ts +18 -1
- package/es/ele-app/index.d.ts +1 -1
- package/es/ele-app/plus.d.ts +12 -0
- package/es/ele-app/style/overwrite/date-picker/index.scss +32 -5
- package/es/ele-app/style/overwrite/message-box/index.scss +5 -0
- package/es/ele-avatar-group/index.d.ts +4 -3
- package/es/ele-avatar-group/index.js +1 -3
- package/es/ele-avatar-group/props.d.ts +10 -9
- package/es/ele-bar-code/index.d.ts +5 -4
- package/es/ele-bar-code/props.d.ts +4 -3
- package/es/ele-basic-select/index.d.ts +16 -14
- package/es/ele-basic-select/index.js +33 -18
- package/es/ele-basic-select/props.d.ts +9 -8
- package/es/ele-basic-select/util.d.ts +2 -1
- package/es/ele-bottom-bar/index.d.ts +1 -1
- package/es/ele-bottom-bar/props.d.ts +4 -3
- package/es/ele-breadcrumb/index.d.ts +3 -2
- package/es/ele-breadcrumb/props.d.ts +5 -4
- package/es/ele-card/index.d.ts +1 -1
- package/es/ele-card/props.d.ts +7 -6
- package/es/ele-check-card/components/card-item.d.ts +4 -3
- package/es/ele-check-card/index.d.ts +6 -5
- package/es/ele-check-card/index.js +0 -5
- package/es/ele-check-card/props.d.ts +6 -5
- package/es/ele-config-provider/components/receiver-view.d.ts +17 -0
- package/es/ele-config-provider/components/receiver-view.js +134 -0
- package/es/ele-config-provider/index.d.ts +3 -3
- package/es/ele-config-provider/props.d.ts +6 -5
- package/es/ele-config-provider/props.js +2 -2
- package/es/ele-config-provider/receiver.d.ts +5 -9
- package/es/ele-config-provider/receiver.js +35 -116
- package/es/ele-config-provider/types.d.ts +3 -11
- package/es/ele-copyable/index.d.ts +8 -9
- package/es/ele-copyable/index.js +1 -5
- package/es/ele-copyable/props.d.ts +9 -8
- package/es/ele-count-up/index.d.ts +2 -1
- package/es/ele-count-up/props.d.ts +3 -2
- package/es/ele-cropper/components/cropper-preview.d.ts +1 -1
- package/es/ele-cropper/components/cropper-tools.d.ts +4 -3
- package/es/ele-cropper/index.d.ts +11 -10
- package/es/ele-cropper/index.js +1 -5
- package/es/ele-cropper/props.d.ts +4 -3
- package/es/ele-cropper-modal/index.d.ts +3 -2
- package/es/ele-cropper-modal/props.d.ts +7 -6
- package/es/ele-dashboard/index.d.ts +1 -2
- package/es/ele-dashboard/index.js +8 -17
- package/es/ele-dashboard/props.d.ts +3 -2
- package/es/ele-data-table/index.d.ts +10 -15
- package/es/ele-data-table/index.js +9 -1
- package/es/ele-data-table/props.d.ts +38 -43
- package/es/ele-data-table/style/index.scss +4 -0
- package/es/ele-data-table/types.d.ts +18 -16
- package/es/ele-data-table/util.d.ts +15 -9
- package/es/ele-data-table/util.js +14 -0
- package/es/ele-dot/index.d.ts +3 -5
- package/es/ele-dot/index.js +4 -10
- package/es/ele-dot/props.d.ts +3 -2
- package/es/ele-drawer/index.d.ts +10 -9
- package/es/ele-drawer/index.js +14 -11
- package/es/ele-drawer/props.d.ts +26 -25
- package/es/ele-drawer/style/index.scss +1 -1
- package/es/ele-dropdown/index.d.ts +6 -5
- package/es/ele-dropdown/index.js +7 -10
- package/es/ele-dropdown/props.d.ts +22 -21
- package/es/ele-dropdown/style/index.scss +2 -2
- package/es/ele-edit-tag/index.d.ts +9 -2
- package/es/ele-edit-tag/index.js +17 -15
- package/es/ele-edit-tag/props.d.ts +14 -9
- package/es/ele-edit-tag/props.js +5 -1
- package/es/ele-edit-tag/style/index.scss +13 -0
- package/es/ele-ellipsis/index.d.ts +7 -6
- package/es/ele-ellipsis/index.js +4 -27
- package/es/ele-ellipsis/props.d.ts +8 -7
- package/es/ele-file-list/components/file-grid-item.d.ts +6 -5
- package/es/ele-file-list/components/file-grid-item.js +16 -9
- package/es/ele-file-list/components/file-grid.d.ts +6 -5
- package/es/ele-file-list/components/file-grid.js +54 -50
- package/es/ele-file-list/components/file-sort.d.ts +1 -1
- package/es/ele-file-list/components/file-table-item.d.ts +6 -5
- package/es/ele-file-list/components/file-table-item.js +20 -15
- package/es/ele-file-list/components/file-table.d.ts +6 -5
- package/es/ele-file-list/components/file-table.js +92 -86
- package/es/ele-file-list/icons.d.ts +2 -1
- package/es/ele-file-list/index.d.ts +8 -7
- package/es/ele-file-list/index.js +1 -11
- package/es/ele-file-list/props.d.ts +6 -5
- package/es/ele-file-list-tool/index.d.ts +4 -4
- package/es/ele-file-list-tool/index.js +2 -2
- package/es/ele-icon-select/components/icon-grid.d.ts +4 -3
- package/es/ele-icon-select/index.d.ts +27 -14
- package/es/ele-icon-select/index.js +33 -10
- package/es/ele-icon-select/props.d.ts +23 -17
- package/es/ele-icon-select/props.js +6 -1
- package/es/ele-icon-select/style/index.js +1 -0
- package/es/ele-icon-select/style/index.scss +16 -2
- package/es/ele-loading/index.d.ts +3 -4
- package/es/ele-loading/index.js +32 -30
- package/es/ele-loading/props.d.ts +5 -4
- package/es/ele-map-picker/components/map-view.d.ts +51 -27
- package/es/ele-map-picker/components/map-view.js +227 -176
- package/es/ele-map-picker/index.d.ts +45 -22
- package/es/ele-map-picker/index.js +21 -39
- package/es/ele-map-picker/props.d.ts +37 -12
- package/es/ele-map-picker/props.js +20 -6
- package/es/ele-map-picker/style/index.scss +195 -166
- package/es/ele-map-picker/types.d.ts +8 -4
- package/es/ele-menus/index.d.ts +21 -7
- package/es/ele-menus/index.js +78 -14
- package/es/ele-menus/props.d.ts +29 -16
- package/es/ele-menus/props.js +15 -3
- package/es/ele-menus/style/index.js +2 -0
- package/es/ele-menus/style/index.scss +13 -11
- package/es/ele-menus/types.d.ts +9 -9
- package/es/ele-menus/util.d.ts +35 -16
- package/es/ele-menus/util.js +115 -80
- package/es/ele-modal/index.d.ts +7 -6
- package/es/ele-modal/index.js +42 -13
- package/es/ele-modal/props.d.ts +24 -23
- package/es/ele-modal/style/index.scss +49 -13
- package/es/ele-modal/types.d.ts +2 -10
- package/es/ele-modal/util.d.ts +5 -4
- package/es/ele-modal/util.js +22 -57
- package/es/ele-page/index.d.ts +1 -1
- package/es/ele-page/props.d.ts +2 -1
- package/es/ele-pagination/index.d.ts +11 -9
- package/es/ele-pagination/index.js +19 -13
- package/es/ele-pagination/props.d.ts +14 -12
- package/es/ele-pagination/props.js +2 -0
- package/es/ele-pagination/style/index.scss +9 -0
- package/es/ele-pagination/types.d.ts +6 -1
- package/es/ele-popconfirm/index.d.ts +7 -6
- package/es/ele-popconfirm/props.d.ts +32 -31
- package/es/ele-popconfirm/style/index.js +1 -1
- package/es/ele-popover/index.d.ts +5 -4
- package/es/ele-popover/props.d.ts +26 -25
- package/es/ele-popover/style/index.js +0 -1
- package/es/ele-printer/index.d.ts +7 -7
- package/es/ele-printer/index.js +11 -11
- package/es/ele-printer/props.d.ts +6 -5
- package/es/ele-printer/style/index.scss +1 -1
- package/es/ele-printer/util.d.ts +2 -1
- package/es/ele-printer/util.js +4 -2
- package/es/ele-pro-layout/components/header-tool.d.ts +1 -1
- package/es/ele-pro-layout/components/pro-header.d.ts +37 -15
- package/es/ele-pro-layout/components/pro-header.js +75 -16
- package/es/ele-pro-layout/components/pro-iframe.d.ts +4 -3
- package/es/ele-pro-layout/components/pro-iframe.js +46 -23
- package/es/ele-pro-layout/components/pro-sidebar.d.ts +35 -19
- package/es/ele-pro-layout/components/pro-sidebar.js +44 -16
- package/es/ele-pro-layout/components/pro-sidebox.d.ts +37 -15
- package/es/ele-pro-layout/components/pro-sidebox.js +55 -15
- package/es/ele-pro-layout/components/pro-tabs.d.ts +6 -5
- package/es/ele-pro-layout/components/sidebar-tool.d.ts +1 -1
- package/es/ele-pro-layout/components/tab-dropdown.d.ts +5 -4
- package/es/ele-pro-layout/components/tab-dropdown.js +5 -1
- package/es/ele-pro-layout/index.d.ts +44 -27
- package/es/ele-pro-layout/index.js +282 -66
- package/es/ele-pro-layout/props.d.ts +18 -8
- package/es/ele-pro-layout/props.js +9 -0
- package/es/ele-pro-layout/style/tabs.scss +1 -1
- package/es/ele-pro-layout/types.d.ts +29 -3
- package/es/ele-pro-layout/util.d.ts +5 -4
- package/es/ele-pro-table/components/table-tools.d.ts +102 -10
- package/es/ele-pro-table/components/table-tools.js +125 -8
- package/es/ele-pro-table/components/tool-column-list.d.ts +4 -3
- package/es/ele-pro-table/components/tool-column-list.js +4 -7
- package/es/ele-pro-table/components/tool-column.d.ts +5 -4
- package/es/ele-pro-table/components/tool-column.js +9 -9
- package/es/ele-pro-table/components/tool-export.d.ts +456 -0
- package/es/ele-pro-table/components/tool-export.js +449 -0
- package/es/ele-pro-table/components/tool-print-body-cell.d.ts +35 -0
- package/es/ele-pro-table/components/tool-print-body-cell.js +88 -0
- package/es/ele-pro-table/components/tool-print-header-cell.d.ts +35 -0
- package/es/ele-pro-table/components/tool-print-header-cell.js +88 -0
- package/es/ele-pro-table/components/tool-print.d.ts +895 -0
- package/es/ele-pro-table/components/tool-print.js +558 -0
- package/es/ele-pro-table/index.d.ts +37 -29
- package/es/ele-pro-table/index.js +89 -18
- package/es/ele-pro-table/props.d.ts +52 -48
- package/es/ele-pro-table/props.js +6 -2
- package/es/ele-pro-table/style/index.js +9 -0
- package/es/ele-pro-table/style/index.scss +33 -5
- package/es/ele-pro-table/types.d.ts +149 -5
- package/es/ele-pro-table/util.d.ts +57 -5
- package/es/ele-pro-table/util.js +146 -22
- package/es/ele-qr-code/index.d.ts +3 -2
- package/es/ele-qr-code/props.d.ts +4 -3
- package/es/ele-qr-code/util.d.ts +3 -2
- package/es/ele-qr-code-svg/index.d.ts +1 -1
- package/es/ele-segmented/index.d.ts +4 -3
- package/es/ele-segmented/index.js +1 -3
- package/es/ele-segmented/props.d.ts +3 -2
- package/es/ele-split-panel/index.d.ts +11 -9
- package/es/ele-split-panel/index.js +63 -59
- package/es/ele-split-panel/props.d.ts +5 -4
- package/es/ele-steps/index.d.ts +1 -2
- package/es/ele-steps/index.js +2 -4
- package/es/ele-steps/props.d.ts +10 -9
- package/es/ele-tab-tool/index.d.ts +1 -1
- package/es/ele-tab-tool/props.d.ts +2 -1
- package/es/ele-tab-wrap/index.d.ts +1 -1
- package/es/ele-tab-wrap/props.d.ts +3 -2
- package/es/ele-table/index.d.ts +4 -1
- package/es/ele-table/index.js +2 -1
- package/es/ele-table/props.d.ts +4 -1
- package/es/ele-table/props.js +3 -1
- package/es/ele-table/style/index.scss +35 -0
- package/es/ele-table-select/index.d.ts +13 -12
- package/es/ele-table-select/props.d.ts +11 -10
- package/es/ele-tabs/components/tab-title.d.ts +6 -5
- package/es/ele-tabs/index.d.ts +13 -23
- package/es/ele-tabs/index.js +1 -6
- package/es/ele-tabs/props.d.ts +15 -21
- package/es/ele-text/index.d.ts +1 -1
- package/es/ele-text/props.d.ts +5 -4
- package/es/ele-tool/index.d.ts +2 -2
- package/es/ele-tool/index.js +2 -4
- package/es/ele-tool/props.d.ts +10 -2
- package/es/ele-tool/props.js +5 -0
- package/es/ele-toolbar/index.d.ts +1 -1
- package/es/ele-toolbar/props.d.ts +7 -6
- package/es/ele-tooltip/index.d.ts +4 -3
- package/es/ele-tooltip/index.js +9 -13
- package/es/ele-tooltip/props.d.ts +23 -22
- package/es/ele-tooltip/style/css-var.scss +4 -0
- package/es/ele-tooltip/style/index.scss +23 -0
- package/es/ele-tour/index.d.ts +5 -4
- package/es/ele-tour/index.js +80 -77
- package/es/ele-tour/props.d.ts +3 -2
- package/es/ele-tour/util.d.ts +3 -2
- package/es/ele-tree-select/index.d.ts +10 -9
- package/es/ele-tree-select/props.d.ts +12 -11
- package/es/ele-tree-select/util.d.ts +3 -2
- package/es/ele-upload-list/components/list-item.d.ts +10 -5
- package/es/ele-upload-list/components/list-item.js +7 -4
- package/es/ele-upload-list/index.d.ts +12 -5
- package/es/ele-upload-list/index.js +9 -8
- package/es/ele-upload-list/props.d.ts +11 -6
- package/es/ele-upload-list/props.js +5 -1
- package/es/ele-upload-list/style/index.scss +2 -1
- package/es/ele-virtual-table/components/body-cell.d.ts +85 -50
- package/es/ele-virtual-table/components/body-cell.js +79 -112
- package/es/ele-virtual-table/components/body-row.d.ts +72 -48
- package/es/ele-virtual-table/components/body-row.js +57 -52
- package/es/ele-virtual-table/components/cell-checkbox.d.ts +3 -2
- package/es/ele-virtual-table/components/cell-filter.d.ts +9 -8
- package/es/ele-virtual-table/components/cell-filter.js +8 -12
- package/es/ele-virtual-table/components/expand-row.d.ts +10 -9
- package/es/ele-virtual-table/components/expand-row.js +3 -3
- package/es/ele-virtual-table/components/footer-row.d.ts +33 -14
- package/es/ele-virtual-table/components/footer-row.js +29 -19
- package/es/ele-virtual-table/components/header-cell.d.ts +5 -4
- package/es/ele-virtual-table/components/header-row.d.ts +5 -4
- package/es/ele-virtual-table/index.d.ts +23 -32
- package/es/ele-virtual-table/index.js +134 -136
- package/es/ele-virtual-table/props.d.ts +50 -52
- package/es/ele-virtual-table/types.d.ts +103 -69
- package/es/ele-virtual-table/util.d.ts +35 -10
- package/es/ele-virtual-table/util.js +66 -35
- package/es/ele-watermark/index.d.ts +12 -2
- package/es/ele-watermark/index.js +1 -1
- package/es/ele-watermark/props.d.ts +9 -3
- package/es/ele-watermark/props.js +5 -0
- package/es/ele-watermark/util.d.ts +3 -2
- package/es/ele-xg-player/index.d.ts +4 -4
- package/es/icons/AnalysisOutlined.d.ts +1 -1
- package/es/icons/ApplicationOutlined.d.ts +1 -1
- package/es/icons/AppstoreAddOutlined.d.ts +1 -1
- package/es/icons/AppstoreOutlined.d.ts +1 -1
- package/es/icons/ArrowDown.d.ts +1 -1
- package/es/icons/ArrowDownOutlined.d.ts +1 -1
- package/es/icons/ArrowLeft.d.ts +1 -1
- package/es/icons/ArrowLeftOutlined.d.ts +1 -1
- package/es/icons/ArrowRight.d.ts +1 -1
- package/es/icons/ArrowRightOutlined.d.ts +1 -1
- package/es/icons/ArrowUp.d.ts +1 -1
- package/es/icons/ArrowUpOutlined.d.ts +1 -1
- package/es/icons/BellOutlined.d.ts +1 -1
- package/es/icons/BookOutlined.d.ts +1 -1
- package/es/icons/CalendarOutlined.d.ts +1 -1
- package/es/icons/CaretDownFilled.d.ts +1 -1
- package/es/icons/CaretUpFilled.d.ts +1 -1
- package/es/icons/CheckCircleFilled.d.ts +1 -1
- package/es/icons/CheckCircleOutlined.d.ts +1 -1
- package/es/icons/CheckOutlined.d.ts +1 -1
- package/es/icons/CityOutlined.d.ts +1 -1
- package/es/icons/ClockCircleOutlined.d.ts +1 -1
- package/es/icons/CloseCircleFilled.d.ts +1 -1
- package/es/icons/CloseCircleOutlined.d.ts +1 -1
- package/es/icons/CloseOutlined.d.ts +1 -1
- package/es/icons/CloudUploadOutlined.d.ts +1 -1
- package/es/icons/ClusterOutlined.d.ts +1 -1
- package/es/icons/CodeOutlined.d.ts +1 -1
- package/es/icons/ColumnHeightOutlined.d.ts +1 -1
- package/es/icons/CompassOutlined.d.ts +1 -1
- package/es/icons/CompressOutlined.d.ts +1 -1
- package/es/icons/ConnectionOutlined.d.ts +1 -1
- package/es/icons/ControlOutlined.d.ts +1 -1
- package/es/icons/CopyOutlined.d.ts +1 -1
- package/es/icons/CpuOutlined.d.ts +1 -1
- package/es/icons/DashboardOutlined.d.ts +1 -1
- package/es/icons/DatabaseOutlined.d.ts +1 -1
- package/es/icons/DeleteOutlined.d.ts +1 -1
- package/es/icons/DesktopOutlined.d.ts +1 -1
- package/es/icons/DownloadOutlined.d.ts +1 -1
- package/es/icons/DragOutlined.d.ts +1 -1
- package/es/icons/EditOutlined.d.ts +1 -1
- package/es/icons/EllipsisOutlined.d.ts +1 -1
- package/es/icons/EnvironmentOutlined.d.ts +1 -1
- package/es/icons/ExclamationCircleFilled.d.ts +1 -1
- package/es/icons/ExpandOutlined.d.ts +1 -1
- package/es/icons/FileOutlined.d.ts +1 -1
- package/es/icons/FilterFilled.d.ts +1 -1
- package/es/icons/FolderAddOutlined.d.ts +1 -1
- package/es/icons/FolderOutlined.d.ts +1 -1
- package/es/icons/FormOutlined.d.ts +1 -1
- package/es/icons/FullscreenExitOutlined.d.ts +1 -1
- package/es/icons/FullscreenOutlined.d.ts +1 -1
- package/es/icons/FundOutlined.d.ts +1 -1
- package/es/icons/GlobalOutlined.d.ts +1 -1
- package/es/icons/HolderOutlined.d.ts +1 -1
- package/es/icons/HomeOutlined.d.ts +1 -1
- package/es/icons/IdcardOutlined.d.ts +1 -1
- package/es/icons/InfoCircleFilled.d.ts +1 -1
- package/es/icons/LinkOutlined.d.ts +1 -1
- package/es/icons/LoadingDotOutlined.d.ts +1 -1
- package/es/icons/LoadingOutlined.d.ts +1 -1
- package/es/icons/LockOutlined.d.ts +1 -1
- package/es/icons/LogOutlined.d.ts +1 -1
- package/es/icons/LogoutOutlined.d.ts +1 -1
- package/es/icons/MailOutlined.d.ts +1 -1
- package/es/icons/MenuFoldOutlined.d.ts +1 -1
- package/es/icons/MenuUnfoldOutlined.d.ts +1 -1
- package/es/icons/MessageOutlined.d.ts +1 -1
- package/es/icons/MinusCircleOutlined.d.ts +1 -1
- package/es/icons/MobileOutlined.d.ts +1 -1
- package/es/icons/MoonOutlined.d.ts +1 -1
- package/es/icons/MoreOutlined.d.ts +1 -1
- package/es/icons/PauseFilled.d.ts +1 -1
- package/es/icons/PieChartOutlined.d.ts +1 -1
- package/es/icons/PlayFilled.d.ts +1 -1
- package/es/icons/PlusCircleOutlined.d.ts +1 -1
- package/es/icons/PlusOutlined.d.ts +1 -1
- package/es/icons/PrinterOutlined.d.ts +2 -0
- package/es/icons/PrinterOutlined.js +29 -0
- package/es/icons/ProtectOutlined.d.ts +1 -1
- package/es/icons/QuestionCircleFilled.d.ts +1 -1
- package/es/icons/QuestionCircleOutlined.d.ts +1 -1
- package/es/icons/ReloadOutlined.d.ts +1 -1
- package/es/icons/SearchOutlined.d.ts +1 -1
- package/es/icons/SettingOutlined.d.ts +1 -1
- package/es/icons/ShoppingOutlined.d.ts +1 -1
- package/es/icons/SortOutlined.d.ts +1 -1
- package/es/icons/StarFilled.d.ts +1 -1
- package/es/icons/StepBackwardFilled.d.ts +1 -1
- package/es/icons/StepForwardFilled.d.ts +1 -1
- package/es/icons/SuitcaseOutlined.d.ts +1 -1
- package/es/icons/SunOutlined.d.ts +1 -1
- package/es/icons/SwapOutlined.d.ts +1 -1
- package/es/icons/SyncOutlined.d.ts +1 -1
- package/es/icons/TableOutlined.d.ts +1 -1
- package/es/icons/TagOutlined.d.ts +1 -1
- package/es/icons/TimerOutlined.d.ts +1 -1
- package/es/icons/UndoOutlined.d.ts +1 -1
- package/es/icons/UnlockOutlined.d.ts +1 -1
- package/es/icons/UploadOutlined.d.ts +1 -1
- package/es/icons/UserOutlined.d.ts +1 -1
- package/es/icons/VerticalAlignMiddleOutlined.d.ts +1 -1
- package/es/icons/VerticalLeftOutlined.d.ts +1 -1
- package/es/icons/VerticalLeftOutlined.js +2 -2
- package/es/icons/VerticalRightOutlined.d.ts +1 -1
- package/es/icons/VerticalRightOutlined.js +2 -2
- package/es/icons/WarningOutlined.d.ts +1 -1
- package/es/icons/ZoomInOutlined.d.ts +1 -1
- package/es/icons/ZoomOutOutlined.d.ts +1 -1
- package/es/icons/index.d.ts +1 -0
- package/es/icons/index.js +58 -56
- package/es/installer.d.ts +2 -2
- package/es/lang/en_US.d.ts +2 -2
- package/es/lang/en_US.js +15 -3
- package/es/lang/zh_CN.d.ts +2 -2
- package/es/lang/zh_CN.js +15 -3
- package/es/lang/zh_TW.d.ts +2 -2
- package/es/lang/zh_TW.js +14 -2
- package/es/style/index.scss +1 -43
- package/es/style/plus.scss +43 -0
- package/es/style/themes/default.scss +8 -4
- package/es/style/themes/rounded.scss +1 -1
- package/es/style/themes/theme-util.scss +0 -2
- package/es/utils/core.d.ts +5 -0
- package/es/utils/core.js +28 -0
- package/es/utils/menu-util.d.ts +3 -2
- package/es/utils/message.d.ts +4 -3
- package/es/utils/resolvers.d.ts +4 -4
- package/es/utils/resolvers.js +33 -20
- package/lib/core-installer.d.ts +2 -2
- package/lib/ele-alert/index.cjs +2 -4
- package/lib/ele-alert/index.d.ts +1 -1
- package/lib/ele-alert/props.d.ts +10 -9
- package/lib/ele-app/el.d.ts +18 -1
- package/lib/ele-app/index.d.ts +1 -1
- package/lib/ele-app/plus.d.ts +12 -0
- package/lib/ele-app/style/overwrite/date-picker/index.scss +32 -5
- package/lib/ele-app/style/overwrite/message-box/index.scss +5 -0
- package/lib/ele-avatar-group/index.cjs +1 -3
- package/lib/ele-avatar-group/index.d.ts +4 -3
- package/lib/ele-avatar-group/props.d.ts +10 -9
- package/lib/ele-bar-code/index.d.ts +5 -4
- package/lib/ele-bar-code/props.d.ts +4 -3
- package/lib/ele-basic-select/index.cjs +32 -17
- package/lib/ele-basic-select/index.d.ts +16 -14
- package/lib/ele-basic-select/props.d.ts +9 -8
- package/lib/ele-basic-select/util.d.ts +2 -1
- package/lib/ele-bottom-bar/index.d.ts +1 -1
- package/lib/ele-bottom-bar/props.d.ts +4 -3
- package/lib/ele-breadcrumb/index.d.ts +3 -2
- package/lib/ele-breadcrumb/props.d.ts +5 -4
- package/lib/ele-card/index.d.ts +1 -1
- package/lib/ele-card/props.d.ts +7 -6
- package/lib/ele-check-card/components/card-item.d.ts +4 -3
- package/lib/ele-check-card/index.cjs +0 -5
- package/lib/ele-check-card/index.d.ts +6 -5
- package/lib/ele-check-card/props.d.ts +6 -5
- package/lib/ele-config-provider/components/receiver-view.cjs +2 -0
- package/lib/ele-config-provider/components/receiver-view.d.ts +17 -0
- package/lib/ele-config-provider/index.d.ts +3 -3
- package/lib/ele-config-provider/props.cjs +2 -2
- package/lib/ele-config-provider/props.d.ts +6 -5
- package/lib/ele-config-provider/receiver.cjs +45 -2
- package/lib/ele-config-provider/receiver.d.ts +5 -9
- package/lib/ele-config-provider/types.d.ts +3 -11
- package/lib/ele-copyable/index.cjs +0 -4
- package/lib/ele-copyable/index.d.ts +8 -9
- package/lib/ele-copyable/props.d.ts +9 -8
- package/lib/ele-count-up/index.d.ts +2 -1
- package/lib/ele-count-up/props.d.ts +3 -2
- package/lib/ele-cropper/components/cropper-preview.d.ts +1 -1
- package/lib/ele-cropper/components/cropper-tools.d.ts +4 -3
- package/lib/ele-cropper/index.cjs +0 -4
- package/lib/ele-cropper/index.d.ts +11 -10
- package/lib/ele-cropper/props.d.ts +4 -3
- package/lib/ele-cropper-modal/index.d.ts +3 -2
- package/lib/ele-cropper-modal/props.d.ts +7 -6
- package/lib/ele-dashboard/index.cjs +7 -16
- package/lib/ele-dashboard/index.d.ts +1 -2
- package/lib/ele-dashboard/props.d.ts +3 -2
- package/lib/ele-data-table/index.cjs +9 -1
- package/lib/ele-data-table/index.d.ts +10 -15
- package/lib/ele-data-table/props.d.ts +38 -43
- package/lib/ele-data-table/style/index.scss +4 -0
- package/lib/ele-data-table/types.d.ts +18 -16
- package/lib/ele-data-table/util.cjs +14 -0
- package/lib/ele-data-table/util.d.ts +15 -9
- package/lib/ele-dot/index.cjs +3 -9
- package/lib/ele-dot/index.d.ts +3 -5
- package/lib/ele-dot/props.d.ts +3 -2
- package/lib/ele-drawer/index.cjs +13 -10
- package/lib/ele-drawer/index.d.ts +10 -9
- package/lib/ele-drawer/props.d.ts +26 -25
- package/lib/ele-drawer/style/index.scss +1 -1
- package/lib/ele-dropdown/index.cjs +7 -10
- package/lib/ele-dropdown/index.d.ts +6 -5
- package/lib/ele-dropdown/props.d.ts +22 -21
- package/lib/ele-dropdown/style/index.scss +2 -2
- package/lib/ele-edit-tag/index.cjs +16 -14
- package/lib/ele-edit-tag/index.d.ts +9 -2
- package/lib/ele-edit-tag/props.cjs +5 -1
- package/lib/ele-edit-tag/props.d.ts +14 -9
- package/lib/ele-edit-tag/style/index.scss +13 -0
- package/lib/ele-ellipsis/index.cjs +3 -26
- package/lib/ele-ellipsis/index.d.ts +7 -6
- package/lib/ele-ellipsis/props.d.ts +8 -7
- package/lib/ele-file-list/components/file-grid-item.cjs +15 -8
- package/lib/ele-file-list/components/file-grid-item.d.ts +6 -5
- package/lib/ele-file-list/components/file-grid.cjs +53 -49
- package/lib/ele-file-list/components/file-grid.d.ts +6 -5
- package/lib/ele-file-list/components/file-sort.d.ts +1 -1
- package/lib/ele-file-list/components/file-table-item.cjs +19 -14
- package/lib/ele-file-list/components/file-table-item.d.ts +6 -5
- package/lib/ele-file-list/components/file-table.cjs +91 -85
- package/lib/ele-file-list/components/file-table.d.ts +6 -5
- package/lib/ele-file-list/icons.d.ts +2 -1
- package/lib/ele-file-list/index.cjs +0 -10
- package/lib/ele-file-list/index.d.ts +8 -7
- package/lib/ele-file-list/props.d.ts +6 -5
- package/lib/ele-file-list-tool/index.cjs +2 -2
- package/lib/ele-file-list-tool/index.d.ts +4 -4
- package/lib/ele-icon-select/components/icon-grid.d.ts +4 -3
- package/lib/ele-icon-select/index.cjs +39 -16
- package/lib/ele-icon-select/index.d.ts +27 -14
- package/lib/ele-icon-select/props.cjs +6 -1
- package/lib/ele-icon-select/props.d.ts +23 -17
- package/lib/ele-icon-select/style/index.cjs +1 -0
- package/lib/ele-icon-select/style/index.scss +16 -2
- package/lib/ele-loading/index.cjs +31 -29
- package/lib/ele-loading/index.d.ts +3 -4
- package/lib/ele-loading/props.d.ts +5 -4
- package/lib/ele-map-picker/components/map-view.cjs +225 -174
- package/lib/ele-map-picker/components/map-view.d.ts +51 -27
- package/lib/ele-map-picker/index.cjs +20 -38
- package/lib/ele-map-picker/index.d.ts +45 -22
- package/lib/ele-map-picker/props.cjs +20 -6
- package/lib/ele-map-picker/props.d.ts +37 -12
- package/lib/ele-map-picker/style/index.scss +195 -166
- package/lib/ele-map-picker/types.d.ts +8 -4
- package/lib/ele-menus/index.cjs +76 -12
- package/lib/ele-menus/index.d.ts +21 -7
- package/lib/ele-menus/props.cjs +15 -3
- package/lib/ele-menus/props.d.ts +29 -16
- package/lib/ele-menus/style/index.cjs +2 -0
- package/lib/ele-menus/style/index.scss +13 -11
- package/lib/ele-menus/types.d.ts +9 -9
- package/lib/ele-menus/util.cjs +115 -80
- package/lib/ele-menus/util.d.ts +35 -16
- package/lib/ele-modal/index.cjs +41 -12
- package/lib/ele-modal/index.d.ts +7 -6
- package/lib/ele-modal/props.d.ts +24 -23
- package/lib/ele-modal/style/index.scss +49 -13
- package/lib/ele-modal/types.d.ts +2 -10
- package/lib/ele-modal/util.cjs +22 -57
- package/lib/ele-modal/util.d.ts +5 -4
- package/lib/ele-page/index.d.ts +1 -1
- package/lib/ele-page/props.d.ts +2 -1
- package/lib/ele-pagination/index.cjs +18 -12
- package/lib/ele-pagination/index.d.ts +11 -9
- package/lib/ele-pagination/props.cjs +2 -0
- package/lib/ele-pagination/props.d.ts +14 -12
- package/lib/ele-pagination/style/index.scss +9 -0
- package/lib/ele-pagination/types.d.ts +6 -1
- package/lib/ele-popconfirm/index.d.ts +7 -6
- package/lib/ele-popconfirm/props.d.ts +32 -31
- package/lib/ele-popconfirm/style/index.cjs +1 -1
- package/lib/ele-popover/index.d.ts +5 -4
- package/lib/ele-popover/props.d.ts +26 -25
- package/lib/ele-popover/style/index.cjs +0 -1
- package/lib/ele-printer/index.cjs +10 -10
- package/lib/ele-printer/index.d.ts +7 -7
- package/lib/ele-printer/props.d.ts +6 -5
- package/lib/ele-printer/style/index.scss +1 -1
- package/lib/ele-printer/util.cjs +4 -2
- package/lib/ele-printer/util.d.ts +2 -1
- package/lib/ele-pro-layout/components/header-tool.d.ts +1 -1
- package/lib/ele-pro-layout/components/pro-header.cjs +74 -15
- package/lib/ele-pro-layout/components/pro-header.d.ts +37 -15
- package/lib/ele-pro-layout/components/pro-iframe.cjs +45 -22
- package/lib/ele-pro-layout/components/pro-iframe.d.ts +4 -3
- package/lib/ele-pro-layout/components/pro-sidebar.cjs +44 -16
- package/lib/ele-pro-layout/components/pro-sidebar.d.ts +35 -19
- package/lib/ele-pro-layout/components/pro-sidebox.cjs +55 -15
- package/lib/ele-pro-layout/components/pro-sidebox.d.ts +37 -15
- package/lib/ele-pro-layout/components/pro-tabs.d.ts +6 -5
- package/lib/ele-pro-layout/components/sidebar-tool.d.ts +1 -1
- package/lib/ele-pro-layout/components/tab-dropdown.cjs +5 -1
- package/lib/ele-pro-layout/components/tab-dropdown.d.ts +5 -4
- package/lib/ele-pro-layout/index.cjs +281 -65
- package/lib/ele-pro-layout/index.d.ts +44 -27
- package/lib/ele-pro-layout/props.cjs +9 -0
- package/lib/ele-pro-layout/props.d.ts +18 -8
- package/lib/ele-pro-layout/style/tabs.scss +1 -1
- package/lib/ele-pro-layout/types.d.ts +29 -3
- package/lib/ele-pro-layout/util.d.ts +5 -4
- package/lib/ele-pro-table/components/table-tools.cjs +124 -7
- package/lib/ele-pro-table/components/table-tools.d.ts +102 -10
- package/lib/ele-pro-table/components/tool-column-list.cjs +3 -6
- package/lib/ele-pro-table/components/tool-column-list.d.ts +4 -3
- package/lib/ele-pro-table/components/tool-column.cjs +8 -8
- package/lib/ele-pro-table/components/tool-column.d.ts +5 -4
- package/lib/ele-pro-table/components/tool-export.cjs +448 -0
- package/lib/ele-pro-table/components/tool-export.d.ts +456 -0
- package/lib/ele-pro-table/components/tool-print-body-cell.cjs +87 -0
- package/lib/ele-pro-table/components/tool-print-body-cell.d.ts +35 -0
- package/lib/ele-pro-table/components/tool-print-header-cell.cjs +87 -0
- package/lib/ele-pro-table/components/tool-print-header-cell.d.ts +35 -0
- package/lib/ele-pro-table/components/tool-print.cjs +557 -0
- package/lib/ele-pro-table/components/tool-print.d.ts +895 -0
- package/lib/ele-pro-table/index.cjs +87 -16
- package/lib/ele-pro-table/index.d.ts +37 -29
- package/lib/ele-pro-table/props.cjs +6 -2
- package/lib/ele-pro-table/props.d.ts +52 -48
- package/lib/ele-pro-table/style/index.cjs +9 -0
- package/lib/ele-pro-table/style/index.scss +33 -5
- package/lib/ele-pro-table/types.d.ts +149 -5
- package/lib/ele-pro-table/util.cjs +145 -21
- package/lib/ele-pro-table/util.d.ts +57 -5
- package/lib/ele-qr-code/index.d.ts +3 -2
- package/lib/ele-qr-code/props.d.ts +4 -3
- package/lib/ele-qr-code/util.d.ts +3 -2
- package/lib/ele-qr-code-svg/index.d.ts +1 -1
- package/lib/ele-segmented/index.cjs +1 -3
- package/lib/ele-segmented/index.d.ts +4 -3
- package/lib/ele-segmented/props.d.ts +3 -2
- package/lib/ele-split-panel/index.cjs +62 -58
- package/lib/ele-split-panel/index.d.ts +11 -9
- package/lib/ele-split-panel/props.d.ts +5 -4
- package/lib/ele-steps/index.cjs +2 -4
- package/lib/ele-steps/index.d.ts +1 -2
- package/lib/ele-steps/props.d.ts +10 -9
- package/lib/ele-tab-tool/index.d.ts +1 -1
- package/lib/ele-tab-tool/props.d.ts +2 -1
- package/lib/ele-tab-wrap/index.d.ts +1 -1
- package/lib/ele-tab-wrap/props.d.ts +3 -2
- package/lib/ele-table/index.cjs +2 -1
- package/lib/ele-table/index.d.ts +4 -1
- package/lib/ele-table/props.cjs +3 -1
- package/lib/ele-table/props.d.ts +4 -1
- package/lib/ele-table/style/index.scss +35 -0
- package/lib/ele-table-select/index.d.ts +13 -12
- package/lib/ele-table-select/props.d.ts +11 -10
- package/lib/ele-tabs/components/tab-title.d.ts +6 -5
- package/lib/ele-tabs/index.cjs +1 -6
- package/lib/ele-tabs/index.d.ts +13 -23
- package/lib/ele-tabs/props.d.ts +15 -21
- package/lib/ele-text/index.d.ts +1 -1
- package/lib/ele-text/props.d.ts +5 -4
- package/lib/ele-tool/index.cjs +1 -3
- package/lib/ele-tool/index.d.ts +2 -2
- package/lib/ele-tool/props.cjs +5 -0
- package/lib/ele-tool/props.d.ts +10 -2
- package/lib/ele-toolbar/index.d.ts +1 -1
- package/lib/ele-toolbar/props.d.ts +7 -6
- package/lib/ele-tooltip/index.cjs +9 -13
- package/lib/ele-tooltip/index.d.ts +4 -3
- package/lib/ele-tooltip/props.d.ts +23 -22
- package/lib/ele-tooltip/style/css-var.scss +4 -0
- package/lib/ele-tooltip/style/index.scss +23 -0
- package/lib/ele-tour/index.cjs +79 -76
- package/lib/ele-tour/index.d.ts +5 -4
- package/lib/ele-tour/props.d.ts +3 -2
- package/lib/ele-tour/util.d.ts +3 -2
- package/lib/ele-tree-select/index.d.ts +10 -9
- package/lib/ele-tree-select/props.d.ts +12 -11
- package/lib/ele-tree-select/util.d.ts +3 -2
- package/lib/ele-upload-list/components/list-item.cjs +6 -3
- package/lib/ele-upload-list/components/list-item.d.ts +10 -5
- package/lib/ele-upload-list/index.cjs +8 -7
- package/lib/ele-upload-list/index.d.ts +12 -5
- package/lib/ele-upload-list/props.cjs +5 -1
- package/lib/ele-upload-list/props.d.ts +11 -6
- package/lib/ele-upload-list/style/index.scss +2 -1
- package/lib/ele-virtual-table/components/body-cell.cjs +78 -111
- package/lib/ele-virtual-table/components/body-cell.d.ts +85 -50
- package/lib/ele-virtual-table/components/body-row.cjs +57 -52
- package/lib/ele-virtual-table/components/body-row.d.ts +72 -48
- package/lib/ele-virtual-table/components/cell-checkbox.d.ts +3 -2
- package/lib/ele-virtual-table/components/cell-filter.cjs +7 -11
- package/lib/ele-virtual-table/components/cell-filter.d.ts +9 -8
- package/lib/ele-virtual-table/components/expand-row.cjs +3 -3
- package/lib/ele-virtual-table/components/expand-row.d.ts +10 -9
- package/lib/ele-virtual-table/components/footer-row.cjs +27 -17
- package/lib/ele-virtual-table/components/footer-row.d.ts +33 -14
- package/lib/ele-virtual-table/components/header-cell.d.ts +5 -4
- package/lib/ele-virtual-table/components/header-row.d.ts +5 -4
- package/lib/ele-virtual-table/index.cjs +132 -134
- package/lib/ele-virtual-table/index.d.ts +23 -32
- package/lib/ele-virtual-table/props.d.ts +50 -52
- package/lib/ele-virtual-table/types.d.ts +103 -69
- package/lib/ele-virtual-table/util.cjs +65 -34
- package/lib/ele-virtual-table/util.d.ts +35 -10
- package/lib/ele-watermark/index.cjs +1 -1
- package/lib/ele-watermark/index.d.ts +12 -2
- package/lib/ele-watermark/props.cjs +5 -0
- package/lib/ele-watermark/props.d.ts +9 -3
- package/lib/ele-watermark/util.d.ts +3 -2
- package/lib/ele-xg-player/index.d.ts +4 -4
- package/lib/icons/AnalysisOutlined.d.ts +1 -1
- package/lib/icons/ApplicationOutlined.d.ts +1 -1
- package/lib/icons/AppstoreAddOutlined.d.ts +1 -1
- package/lib/icons/AppstoreOutlined.d.ts +1 -1
- package/lib/icons/ArrowDown.d.ts +1 -1
- package/lib/icons/ArrowDownOutlined.d.ts +1 -1
- package/lib/icons/ArrowLeft.d.ts +1 -1
- package/lib/icons/ArrowLeftOutlined.d.ts +1 -1
- package/lib/icons/ArrowRight.d.ts +1 -1
- package/lib/icons/ArrowRightOutlined.d.ts +1 -1
- package/lib/icons/ArrowUp.d.ts +1 -1
- package/lib/icons/ArrowUpOutlined.d.ts +1 -1
- package/lib/icons/BellOutlined.d.ts +1 -1
- package/lib/icons/BookOutlined.d.ts +1 -1
- package/lib/icons/CalendarOutlined.d.ts +1 -1
- package/lib/icons/CaretDownFilled.d.ts +1 -1
- package/lib/icons/CaretUpFilled.d.ts +1 -1
- package/lib/icons/CheckCircleFilled.d.ts +1 -1
- package/lib/icons/CheckCircleOutlined.d.ts +1 -1
- package/lib/icons/CheckOutlined.d.ts +1 -1
- package/lib/icons/CityOutlined.d.ts +1 -1
- package/lib/icons/ClockCircleOutlined.d.ts +1 -1
- package/lib/icons/CloseCircleFilled.d.ts +1 -1
- package/lib/icons/CloseCircleOutlined.d.ts +1 -1
- package/lib/icons/CloseOutlined.d.ts +1 -1
- package/lib/icons/CloudUploadOutlined.d.ts +1 -1
- package/lib/icons/ClusterOutlined.d.ts +1 -1
- package/lib/icons/CodeOutlined.d.ts +1 -1
- package/lib/icons/ColumnHeightOutlined.d.ts +1 -1
- package/lib/icons/CompassOutlined.d.ts +1 -1
- package/lib/icons/CompressOutlined.d.ts +1 -1
- package/lib/icons/ConnectionOutlined.d.ts +1 -1
- package/lib/icons/ControlOutlined.d.ts +1 -1
- package/lib/icons/CopyOutlined.d.ts +1 -1
- package/lib/icons/CpuOutlined.d.ts +1 -1
- package/lib/icons/DashboardOutlined.d.ts +1 -1
- package/lib/icons/DatabaseOutlined.d.ts +1 -1
- package/lib/icons/DeleteOutlined.d.ts +1 -1
- package/lib/icons/DesktopOutlined.d.ts +1 -1
- package/lib/icons/DownloadOutlined.d.ts +1 -1
- package/lib/icons/DragOutlined.d.ts +1 -1
- package/lib/icons/EditOutlined.d.ts +1 -1
- package/lib/icons/EllipsisOutlined.d.ts +1 -1
- package/lib/icons/EnvironmentOutlined.d.ts +1 -1
- package/lib/icons/ExclamationCircleFilled.d.ts +1 -1
- package/lib/icons/ExpandOutlined.d.ts +1 -1
- package/lib/icons/FileOutlined.d.ts +1 -1
- package/lib/icons/FilterFilled.d.ts +1 -1
- package/lib/icons/FolderAddOutlined.d.ts +1 -1
- package/lib/icons/FolderOutlined.d.ts +1 -1
- package/lib/icons/FormOutlined.d.ts +1 -1
- package/lib/icons/FullscreenExitOutlined.d.ts +1 -1
- package/lib/icons/FullscreenOutlined.d.ts +1 -1
- package/lib/icons/FundOutlined.d.ts +1 -1
- package/lib/icons/GlobalOutlined.d.ts +1 -1
- package/lib/icons/HolderOutlined.d.ts +1 -1
- package/lib/icons/HomeOutlined.d.ts +1 -1
- package/lib/icons/IdcardOutlined.d.ts +1 -1
- package/lib/icons/InfoCircleFilled.d.ts +1 -1
- package/lib/icons/LinkOutlined.d.ts +1 -1
- package/lib/icons/LoadingDotOutlined.d.ts +1 -1
- package/lib/icons/LoadingOutlined.d.ts +1 -1
- package/lib/icons/LockOutlined.d.ts +1 -1
- package/lib/icons/LogOutlined.d.ts +1 -1
- package/lib/icons/LogoutOutlined.d.ts +1 -1
- package/lib/icons/MailOutlined.d.ts +1 -1
- package/lib/icons/MenuFoldOutlined.d.ts +1 -1
- package/lib/icons/MenuUnfoldOutlined.d.ts +1 -1
- package/lib/icons/MessageOutlined.d.ts +1 -1
- package/lib/icons/MinusCircleOutlined.d.ts +1 -1
- package/lib/icons/MobileOutlined.d.ts +1 -1
- package/lib/icons/MoonOutlined.d.ts +1 -1
- package/lib/icons/MoreOutlined.d.ts +1 -1
- package/lib/icons/PauseFilled.d.ts +1 -1
- package/lib/icons/PieChartOutlined.d.ts +1 -1
- package/lib/icons/PlayFilled.d.ts +1 -1
- package/lib/icons/PlusCircleOutlined.d.ts +1 -1
- package/lib/icons/PlusOutlined.d.ts +1 -1
- package/lib/icons/PrinterOutlined.cjs +28 -0
- package/lib/icons/PrinterOutlined.d.ts +2 -0
- package/lib/icons/ProtectOutlined.d.ts +1 -1
- package/lib/icons/QuestionCircleFilled.d.ts +1 -1
- package/lib/icons/QuestionCircleOutlined.d.ts +1 -1
- package/lib/icons/ReloadOutlined.d.ts +1 -1
- package/lib/icons/SearchOutlined.d.ts +1 -1
- package/lib/icons/SettingOutlined.d.ts +1 -1
- package/lib/icons/ShoppingOutlined.d.ts +1 -1
- package/lib/icons/SortOutlined.d.ts +1 -1
- package/lib/icons/StarFilled.d.ts +1 -1
- package/lib/icons/StepBackwardFilled.d.ts +1 -1
- package/lib/icons/StepForwardFilled.d.ts +1 -1
- package/lib/icons/SuitcaseOutlined.d.ts +1 -1
- package/lib/icons/SunOutlined.d.ts +1 -1
- package/lib/icons/SwapOutlined.d.ts +1 -1
- package/lib/icons/SyncOutlined.d.ts +1 -1
- package/lib/icons/TableOutlined.d.ts +1 -1
- package/lib/icons/TagOutlined.d.ts +1 -1
- package/lib/icons/TimerOutlined.d.ts +1 -1
- package/lib/icons/UndoOutlined.d.ts +1 -1
- package/lib/icons/UnlockOutlined.d.ts +1 -1
- package/lib/icons/UploadOutlined.d.ts +1 -1
- package/lib/icons/UserOutlined.d.ts +1 -1
- package/lib/icons/VerticalAlignMiddleOutlined.d.ts +1 -1
- package/lib/icons/VerticalLeftOutlined.cjs +2 -2
- package/lib/icons/VerticalLeftOutlined.d.ts +1 -1
- package/lib/icons/VerticalRightOutlined.cjs +2 -2
- package/lib/icons/VerticalRightOutlined.d.ts +1 -1
- package/lib/icons/WarningOutlined.d.ts +1 -1
- package/lib/icons/ZoomInOutlined.d.ts +1 -1
- package/lib/icons/ZoomOutOutlined.d.ts +1 -1
- package/lib/icons/index.cjs +2 -0
- package/lib/icons/index.d.ts +1 -0
- package/lib/installer.d.ts +2 -2
- package/lib/lang/en_US.cjs +15 -3
- package/lib/lang/en_US.d.ts +2 -2
- package/lib/lang/zh_CN.cjs +15 -3
- package/lib/lang/zh_CN.d.ts +2 -2
- package/lib/lang/zh_TW.cjs +14 -2
- package/lib/lang/zh_TW.d.ts +2 -2
- package/lib/style/index.scss +1 -43
- package/lib/style/plus.scss +43 -0
- package/lib/style/themes/default.scss +8 -4
- package/lib/style/themes/rounded.scss +1 -1
- package/lib/style/themes/theme-util.scss +0 -2
- package/lib/utils/core.cjs +28 -0
- package/lib/utils/core.d.ts +5 -0
- package/lib/utils/menu-util.d.ts +3 -2
- package/lib/utils/message.d.ts +4 -3
- package/lib/utils/resolvers.cjs +33 -20
- package/lib/utils/resolvers.d.ts +4 -4
- package/package.json +24 -23
- package/es/ele-popover/style/css-var.scss +0 -8
- package/es/ele-popover/style/index.scss +0 -27
- package/lib/ele-popover/style/css-var.scss +0 -8
- package/lib/ele-popover/style/index.scss +0 -27
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
|
2
|
+
|
|
2
3
|
/**
|
|
3
4
|
* 属性
|
|
4
5
|
*/
|
|
@@ -14,11 +15,11 @@ export declare const virtualTableProps: {
|
|
|
14
15
|
default: null;
|
|
15
16
|
};
|
|
16
17
|
rowKey: {
|
|
17
|
-
type: import(
|
|
18
|
+
type: import('vue').PropType<string | ((row: import("../ele-data-table/types").DataItem) => string) | undefined>;
|
|
18
19
|
required: boolean;
|
|
19
20
|
};
|
|
20
21
|
columns: {
|
|
21
|
-
type: import(
|
|
22
|
+
type: import('vue').PropType<import("../ele-data-table/types").Columns>;
|
|
22
23
|
required: boolean;
|
|
23
24
|
};
|
|
24
25
|
pageIndex: NumberConstructor;
|
|
@@ -37,15 +38,17 @@ export declare const virtualTableProps: {
|
|
|
37
38
|
default: boolean;
|
|
38
39
|
};
|
|
39
40
|
emptyProps: {
|
|
40
|
-
type: import(
|
|
41
|
+
type: import('vue').PropType<import("../ele-data-table/types").TableEmptyProps>;
|
|
41
42
|
default: () => null;
|
|
42
43
|
};
|
|
43
|
-
rowClickChecked: import(
|
|
44
|
+
rowClickChecked: import('vue').PropType<import("../ele-data-table/types").RowClickChecked>;
|
|
44
45
|
reserveCurrent: BooleanConstructor;
|
|
45
|
-
selectedRowKeys: import(
|
|
46
|
-
cacheData: import(
|
|
46
|
+
selectedRowKeys: import('vue').PropType<import("../ele-data-table/types").DataKey[]>;
|
|
47
|
+
cacheData: import('vue').PropType<import("../ele-data-table/types").DataItem[]>;
|
|
48
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
49
|
+
height: (StringConstructor | NumberConstructor)[];
|
|
47
50
|
size: {
|
|
48
|
-
readonly type: import(
|
|
51
|
+
readonly type: import('vue').PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
49
52
|
readonly required: false;
|
|
50
53
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
51
54
|
__epPropKey: true;
|
|
@@ -59,18 +62,13 @@ export declare const virtualTableProps: {
|
|
|
59
62
|
type: StringConstructor;
|
|
60
63
|
default: string;
|
|
61
64
|
};
|
|
62
|
-
width: (StringConstructor | NumberConstructor)[];
|
|
63
65
|
lazy: BooleanConstructor;
|
|
64
66
|
data: {
|
|
65
|
-
type: import(
|
|
67
|
+
type: import('vue').PropType<any[]>;
|
|
66
68
|
default: () => never[];
|
|
67
69
|
};
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
type: BooleanConstructor;
|
|
71
|
-
default: boolean;
|
|
72
|
-
};
|
|
73
|
-
showOverflowTooltip: import("vue").PropType<boolean | Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "showArrow" | "appendTo" | "transition" | "enterable" | "showAfter" | "hideAfter">> | undefined>;
|
|
70
|
+
scrollbarAlwaysOn: BooleanConstructor;
|
|
71
|
+
showOverflowTooltip: import('vue').PropType<boolean | Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "showArrow" | "appendTo" | "transition" | "enterable" | "showAfter" | "hideAfter">> | undefined>;
|
|
74
72
|
emptyText: StringConstructor;
|
|
75
73
|
indent: {
|
|
76
74
|
type: NumberConstructor;
|
|
@@ -82,23 +80,23 @@ export declare const virtualTableProps: {
|
|
|
82
80
|
};
|
|
83
81
|
showSummary: BooleanConstructor;
|
|
84
82
|
sumText: StringConstructor;
|
|
85
|
-
summaryMethod: import(
|
|
86
|
-
rowClassName: import(
|
|
87
|
-
rowStyle: import(
|
|
88
|
-
cellClassName: import(
|
|
89
|
-
cellStyle: import(
|
|
90
|
-
headerRowClassName: import(
|
|
91
|
-
headerRowStyle: import(
|
|
92
|
-
headerCellClassName: import(
|
|
93
|
-
headerCellStyle: import(
|
|
83
|
+
summaryMethod: import('vue').PropType<import("element-plus/es/components/table/src/table/defaults").SummaryMethod<any> | undefined>;
|
|
84
|
+
rowClassName: import('vue').PropType<import("element-plus/es/components/table/src/table/defaults").ColumnCls<any> | undefined>;
|
|
85
|
+
rowStyle: import('vue').PropType<import("element-plus/es/components/table/src/table/defaults").ColumnStyle<any> | undefined>;
|
|
86
|
+
cellClassName: import('vue').PropType<import("element-plus/es/components/table/src/table/defaults").CellCls<any> | undefined>;
|
|
87
|
+
cellStyle: import('vue').PropType<import("element-plus/es/components/table/src/table/defaults").CellStyle<any> | undefined>;
|
|
88
|
+
headerRowClassName: import('vue').PropType<import("element-plus/es/components/table/src/table/defaults").ColumnCls<any> | undefined>;
|
|
89
|
+
headerRowStyle: import('vue').PropType<import("element-plus/es/components/table/src/table/defaults").ColumnStyle<any> | undefined>;
|
|
90
|
+
headerCellClassName: import('vue').PropType<import("element-plus/es/components/table/src/table/defaults").CellCls<any> | undefined>;
|
|
91
|
+
headerCellStyle: import('vue').PropType<import("element-plus/es/components/table/src/table/defaults").CellStyle<any> | undefined>;
|
|
94
92
|
highlightCurrentRow: BooleanConstructor;
|
|
95
93
|
currentRowKey: (StringConstructor | NumberConstructor)[];
|
|
96
|
-
expandRowKeys: import(
|
|
94
|
+
expandRowKeys: import('vue').PropType<any[] | undefined>;
|
|
97
95
|
defaultExpandAll: BooleanConstructor;
|
|
98
|
-
defaultSort: import(
|
|
96
|
+
defaultSort: import('vue').PropType<import("element-plus/es/components/table/src/table/defaults").Sort | undefined>;
|
|
99
97
|
tooltipEffect: StringConstructor;
|
|
100
|
-
tooltipOptions: import(
|
|
101
|
-
spanMethod: import(
|
|
98
|
+
tooltipOptions: import('vue').PropType<Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "showArrow" | "appendTo" | "transition" | "enterable" | "showAfter" | "hideAfter">> | undefined>;
|
|
99
|
+
spanMethod: import('vue').PropType<((data: {
|
|
102
100
|
row: any;
|
|
103
101
|
rowIndex: number;
|
|
104
102
|
column: import("element-plus/es/components/table/src/table-column/defaults").TableColumnCtx<any>;
|
|
@@ -112,7 +110,7 @@ export declare const virtualTableProps: {
|
|
|
112
110
|
default: boolean;
|
|
113
111
|
};
|
|
114
112
|
treeProps: {
|
|
115
|
-
type: import(
|
|
113
|
+
type: import('vue').PropType<{
|
|
116
114
|
hasChildren?: string | undefined;
|
|
117
115
|
children?: string | undefined;
|
|
118
116
|
} | undefined>;
|
|
@@ -121,9 +119,9 @@ export declare const virtualTableProps: {
|
|
|
121
119
|
children: string;
|
|
122
120
|
};
|
|
123
121
|
};
|
|
124
|
-
load: import(
|
|
122
|
+
load: import('vue').PropType<((row: any, treeNode: import("element-plus/es/components/table/src/table/defaults").TreeNode, resolve: (data: any[]) => void) => void) | undefined>;
|
|
125
123
|
tableLayout: {
|
|
126
|
-
type: import(
|
|
124
|
+
type: import('vue').PropType<"auto" | "fixed">;
|
|
127
125
|
default: string;
|
|
128
126
|
};
|
|
129
127
|
flexible: BooleanConstructor;
|
|
@@ -133,24 +131,24 @@ export type VirtualTableProps = ExtractPropTypes<typeof virtualTableProps>;
|
|
|
133
131
|
* 事件
|
|
134
132
|
*/
|
|
135
133
|
export declare const virtualTableEmits: {
|
|
136
|
-
select: (_selection: import(
|
|
137
|
-
selectAll: (_selection: import(
|
|
138
|
-
selectionChange: (_selection: import(
|
|
139
|
-
cellMouseEnter: (_row: import(
|
|
140
|
-
cellMouseLeave: (_row: import(
|
|
141
|
-
cellClick: (_row: import(
|
|
142
|
-
cellDblclick: (_row: import(
|
|
143
|
-
cellContextmenu: (_row: import(
|
|
144
|
-
rowClick: (_row: import(
|
|
145
|
-
rowContextmenu: (_row: import(
|
|
146
|
-
rowDblclick: (_row: import(
|
|
147
|
-
headerClick: (_column: import(
|
|
148
|
-
headerContextmenu: (_column: import(
|
|
149
|
-
sortChange: (_sorter: import(
|
|
150
|
-
filterChange: (_filter: import(
|
|
151
|
-
currentChange: (_current?: import(
|
|
152
|
-
headerDragend: (_width: number, _old: number, _column: import(
|
|
153
|
-
expandChange: (_row: import(
|
|
154
|
-
'update:currentRowKey': (_currentRowKey?: import(
|
|
155
|
-
'update:selectedRowKeys': (_selectedRowKeys?: import(
|
|
134
|
+
select: (_selection: import('../ele-data-table/types').DataItem[], _row: import('../ele-data-table/types').DataItem) => boolean;
|
|
135
|
+
selectAll: (_selection: import('../ele-data-table/types').DataItem[]) => boolean;
|
|
136
|
+
selectionChange: (_selection: import('../ele-data-table/types').DataItem[]) => boolean;
|
|
137
|
+
cellMouseEnter: (_row: import('../ele-data-table/types').DataItem, _column: import('../ele-data-table/types').Column, _cell: HTMLTableCellElement, _e: MouseEvent) => boolean;
|
|
138
|
+
cellMouseLeave: (_row: import('../ele-data-table/types').DataItem, _column: import('../ele-data-table/types').Column, _cell: HTMLTableCellElement, _e: MouseEvent) => boolean;
|
|
139
|
+
cellClick: (_row: import('../ele-data-table/types').DataItem, _column: import('../ele-data-table/types').Column, _cell: HTMLTableCellElement, _e: MouseEvent) => boolean;
|
|
140
|
+
cellDblclick: (_row: import('../ele-data-table/types').DataItem, _column: import('../ele-data-table/types').Column, _cell: HTMLTableCellElement, _e: MouseEvent) => boolean;
|
|
141
|
+
cellContextmenu: (_row: import('../ele-data-table/types').DataItem, _column: import('../ele-data-table/types').Column, _cell: HTMLTableCellElement, _e: MouseEvent) => boolean;
|
|
142
|
+
rowClick: (_row: import('../ele-data-table/types').DataItem, _column: import('../ele-data-table/types').Column, _e: MouseEvent) => boolean;
|
|
143
|
+
rowContextmenu: (_row: import('../ele-data-table/types').DataItem, _column: import('../ele-data-table/types').Column, _e: MouseEvent) => boolean;
|
|
144
|
+
rowDblclick: (_row: import('../ele-data-table/types').DataItem, _column: import('../ele-data-table/types').Column, _e: MouseEvent) => boolean;
|
|
145
|
+
headerClick: (_column: import('../ele-data-table/types').Column, _e: MouseEvent) => boolean;
|
|
146
|
+
headerContextmenu: (_column: import('../ele-data-table/types').Column, _e: MouseEvent) => boolean;
|
|
147
|
+
sortChange: (_sorter: import('../ele-data-table/types').Sorter) => boolean;
|
|
148
|
+
filterChange: (_filter: import('../ele-data-table/types').Filter) => boolean;
|
|
149
|
+
currentChange: (_current?: import('../ele-data-table/types').DataItem | null | undefined, _old?: import('../ele-data-table/types').DataItem | null | undefined) => boolean;
|
|
150
|
+
headerDragend: (_width: number, _old: number, _column: import('../ele-data-table/types').Column, _e: MouseEvent) => boolean;
|
|
151
|
+
expandChange: (_row: import('../ele-data-table/types').DataItem, _expanded: boolean) => boolean;
|
|
152
|
+
'update:currentRowKey': (_currentRowKey?: import('../ele-data-table/types').DataKey | undefined) => boolean;
|
|
153
|
+
'update:selectedRowKeys': (_selectedRowKeys?: import('../ele-data-table/types').DataKey[] | undefined) => boolean;
|
|
156
154
|
};
|
|
@@ -20,6 +20,31 @@ import type {
|
|
|
20
20
|
} from '../ele-data-table/types';
|
|
21
21
|
export { RowExpandHandler, ScrollStrategy, SortBy, ScrollPos };
|
|
22
22
|
|
|
23
|
+
/**
|
|
24
|
+
* 表格属性
|
|
25
|
+
*/
|
|
26
|
+
export type TableV2Props = Required<Exclude<ElTableV2Props, 'class' | 'style'>>;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* 获取行类名方法
|
|
30
|
+
*/
|
|
31
|
+
export type RowClassFunction = ExtractRowPropGetter<DataItem>;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* 获取行属性方法
|
|
35
|
+
*/
|
|
36
|
+
export type RowPropsFunction = ExtractRowPropGetter<DataItem>;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* 获取表头行类名方法
|
|
40
|
+
*/
|
|
41
|
+
export type HeaderRowClassFunction = HeaderClassNameGetter<DataItem>;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* 获取表头行属性方法
|
|
45
|
+
*/
|
|
46
|
+
export type HeaderRowPropsFunction = ExtractHeaderPropGetter<DataItem>;
|
|
47
|
+
|
|
23
48
|
/**
|
|
24
49
|
* 列配置
|
|
25
50
|
*/
|
|
@@ -30,6 +55,16 @@ export type VirtualColumn = Partial<TableV2Column<DataItem>>;
|
|
|
30
55
|
*/
|
|
31
56
|
export type VirtualColumns = VirtualColumn[];
|
|
32
57
|
|
|
58
|
+
/**
|
|
59
|
+
* 嵌套数据配置项
|
|
60
|
+
*/
|
|
61
|
+
export interface TreeTableProps {
|
|
62
|
+
/** 子级字段名 */
|
|
63
|
+
childrenName: string;
|
|
64
|
+
/** 懒加载标识是否有子级字段名 */
|
|
65
|
+
hasChildrenName: string;
|
|
66
|
+
}
|
|
67
|
+
|
|
33
68
|
/**
|
|
34
69
|
* 主体列配置
|
|
35
70
|
*/
|
|
@@ -47,7 +82,7 @@ export interface BodyColumn {
|
|
|
47
82
|
/** 是否是第一个右侧固定列 */
|
|
48
83
|
isFixedRightFirst?: boolean;
|
|
49
84
|
/** 原始列配置 */
|
|
50
|
-
originalCol
|
|
85
|
+
originalCol: Column;
|
|
51
86
|
}
|
|
52
87
|
|
|
53
88
|
/**
|
|
@@ -84,54 +119,23 @@ export type HeaderColumns = HeaderColumn[];
|
|
|
84
119
|
export type HeaderRows = HeaderColumns[];
|
|
85
120
|
|
|
86
121
|
/**
|
|
87
|
-
*
|
|
88
|
-
*/
|
|
89
|
-
export
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
|
|
98
|
-
*/
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
export type HeaderRowClassFunction = HeaderClassNameGetter<DataItem>;
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* 获取表头行属性方法
|
|
108
|
-
*/
|
|
109
|
-
export type HeaderRowPropsFunction = ExtractHeaderPropGetter<DataItem>;
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* 表格状态
|
|
113
|
-
*/
|
|
114
|
-
export interface TableState {
|
|
115
|
-
/** 单选选中数据 */
|
|
116
|
-
row?: DataItem;
|
|
117
|
-
/** 单选上次选中数据 */
|
|
118
|
-
oldRow?: DataItem;
|
|
119
|
-
/** 多选选中数据 */
|
|
120
|
-
checked: Map<DataKey, DataItem>;
|
|
121
|
-
/** 多选选中是否保留不存在的数据 */
|
|
122
|
-
reserveChecked: boolean;
|
|
123
|
-
/** 表格垂直滚动位置 */
|
|
124
|
-
scrollTop: number;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* 表头列筛选改变事件参数
|
|
129
|
-
*/
|
|
130
|
-
export interface CellFilterChangeParams {
|
|
131
|
-
/** 列配置 */
|
|
132
|
-
column: Column;
|
|
133
|
-
/** 筛选值 */
|
|
134
|
-
value: FilterValue;
|
|
122
|
+
* 数据
|
|
123
|
+
*/
|
|
124
|
+
export interface VirtualRow {
|
|
125
|
+
/** 行唯一值 */
|
|
126
|
+
rowId: DataKey;
|
|
127
|
+
/** 行索引 */
|
|
128
|
+
rowIndex: number;
|
|
129
|
+
/** 行原始数据 */
|
|
130
|
+
rowData: DataItem;
|
|
131
|
+
/** 行是否禁用 */
|
|
132
|
+
isDisabled?: boolean;
|
|
133
|
+
/** 是否是展开行 */
|
|
134
|
+
isExpandRow?: boolean;
|
|
135
|
+
/** 子级数据 */
|
|
136
|
+
children?: VirtualRow[];
|
|
137
|
+
/** 懒加载时标识是否有子级数据 */
|
|
138
|
+
hasChildren?: boolean;
|
|
135
139
|
}
|
|
136
140
|
|
|
137
141
|
/**
|
|
@@ -144,26 +148,6 @@ export interface CellSpan {
|
|
|
144
148
|
rowspan?: number;
|
|
145
149
|
}
|
|
146
150
|
|
|
147
|
-
/**
|
|
148
|
-
* 自定义渲染组件属性
|
|
149
|
-
*/
|
|
150
|
-
export interface CustomRenderProps {
|
|
151
|
-
/** 自定义渲染方法 */
|
|
152
|
-
render?: (...params: any) => string | VNode | VNode[] | undefined;
|
|
153
|
-
/** 自定义渲染参数 */
|
|
154
|
-
params?: Array<any>;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
/**
|
|
158
|
-
* 嵌套数据配置项
|
|
159
|
-
*/
|
|
160
|
-
export interface TreeTableProps {
|
|
161
|
-
/** 子级字段名 */
|
|
162
|
-
childrenName: string;
|
|
163
|
-
/** 懒加载标识是否有子级字段名 */
|
|
164
|
-
hasChildrenName: string;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
151
|
/**
|
|
168
152
|
* 列尺寸
|
|
169
153
|
*/
|
|
@@ -193,3 +177,53 @@ export interface SumCol extends ColSize {
|
|
|
193
177
|
/** 是否是第一个右侧固定列 */
|
|
194
178
|
isFixedRightFirst?: boolean;
|
|
195
179
|
}
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* 表头列筛选改变事件参数
|
|
183
|
+
*/
|
|
184
|
+
export interface CellFilterChangeParams {
|
|
185
|
+
/** 列配置 */
|
|
186
|
+
column: Column;
|
|
187
|
+
/** 筛选值 */
|
|
188
|
+
value: FilterValue;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* 表格状态数据
|
|
193
|
+
*/
|
|
194
|
+
export interface TableState {
|
|
195
|
+
/** 单选选中数据 */
|
|
196
|
+
row?: DataItem;
|
|
197
|
+
/** 单选上次选中数据 */
|
|
198
|
+
oldRow?: DataItem;
|
|
199
|
+
/** 多选选中数据 */
|
|
200
|
+
checked: Map<DataKey, DataItem>;
|
|
201
|
+
/** 多选选中是否保留不存在的数据 */
|
|
202
|
+
reserveChecked: boolean;
|
|
203
|
+
/** 表格垂直滚动位置 */
|
|
204
|
+
scrollTop: number;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* 单元格获取自定义配置的参数
|
|
209
|
+
*/
|
|
210
|
+
export interface CellParams {
|
|
211
|
+
/** 列配置 */
|
|
212
|
+
column?: Column;
|
|
213
|
+
/** 列索引 */
|
|
214
|
+
columnIndex: number;
|
|
215
|
+
/** 行数据 */
|
|
216
|
+
row: DataItem;
|
|
217
|
+
/** 行索引 */
|
|
218
|
+
rowIndex: number;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* 自定义渲染组件属性
|
|
223
|
+
*/
|
|
224
|
+
export interface CustomRenderProps {
|
|
225
|
+
/** 自定义渲染方法 */
|
|
226
|
+
render?: (...params: any) => string | VNode | VNode[] | number | undefined;
|
|
227
|
+
/** 自定义渲染参数 */
|
|
228
|
+
params?: Array<any>;
|
|
229
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { VirtualColumn, VirtualColumns, BodyColumns, HeaderColumn, HeaderRows, ColSize, CustomRenderProps, SortBy, TreeTableProps, CellSpan, CellParams, VirtualRow } from './types';
|
|
2
|
+
import { DataKey, DataItem, Column, Columns, Sorter, Filter, FilterValue, OrderValue, TableSize, RowKey, RowSelectable, TreeProps, ShowOverflowTooltip, SpanMethod, ColumnIndex, SummaryMethod } from '../ele-data-table/types';
|
|
2
3
|
import { TableV2SortOrder } from 'element-plus';
|
|
3
|
-
import
|
|
4
|
-
|
|
4
|
+
import { SetupContext } from 'vue';
|
|
5
|
+
|
|
5
6
|
/**
|
|
6
7
|
* 获取行高
|
|
7
8
|
* @param size 表格尺寸
|
|
@@ -86,16 +87,17 @@ export declare function colSizesIsChanged(colSizes: ColSize[], newSizes: ColSize
|
|
|
86
87
|
* @param bodyCols 主体列配置
|
|
87
88
|
* @param colSizes 列尺寸数据
|
|
88
89
|
*/
|
|
89
|
-
export declare function getTableColumns(bodyCols: BodyColumns, colSizes: ColSize[]): Partial<import(
|
|
90
|
+
export declare function getTableColumns(bodyCols: BodyColumns, colSizes: ColSize[]): Partial<import('element-plus').Column<DataItem>>[];
|
|
90
91
|
/**
|
|
91
92
|
* 处理表格数据
|
|
92
93
|
* @param data 数据
|
|
93
94
|
* @param hasExpandCol 是否有展开列
|
|
94
95
|
* @param childrenName 树表格子级数据字段名
|
|
96
|
+
* @param hasChildrenName 树表格是否有子级字段名
|
|
95
97
|
* @param rowKey 数据唯一值字段名
|
|
96
98
|
* @param selectable 控制行是否可选中的方法
|
|
97
99
|
*/
|
|
98
|
-
export declare function transformTableData(data: DataItem[] | undefined, hasExpandCol: boolean, childrenName: string, rowKey: RowKey, selectable?: RowSelectable | null):
|
|
100
|
+
export declare function transformTableData(data: DataItem[] | undefined, hasExpandCol: boolean, childrenName: string, hasChildrenName: string, rowKey: RowKey, selectable?: RowSelectable | null): VirtualRow[];
|
|
99
101
|
/**
|
|
100
102
|
* 获取值对应的数据
|
|
101
103
|
* @param key 值
|
|
@@ -103,14 +105,14 @@ export declare function transformTableData(data: DataItem[] | undefined, hasExpa
|
|
|
103
105
|
* @param rowKey 数据值字段名
|
|
104
106
|
* @param childrenField 子级字段名
|
|
105
107
|
*/
|
|
106
|
-
export declare function getRowByKey(key: DataKey, data:
|
|
108
|
+
export declare function getRowByKey<T extends DataItem | VirtualRow>(key: DataKey, data: T[], rowKey?: RowKey, childrenField?: string): T | undefined;
|
|
107
109
|
/**
|
|
108
110
|
* 获取平铺后的数据值和数据
|
|
109
111
|
* @param data 表格数据
|
|
110
112
|
* @param rowKey 数据值字段名
|
|
111
113
|
* @param childrenField 子级字段名
|
|
112
114
|
*/
|
|
113
|
-
export declare function getKeysAndList(data?:
|
|
115
|
+
export declare function getKeysAndList<T extends DataItem | VirtualRow>(data?: T[], rowKey?: RowKey, childrenField?: string): [DataKey[], T[]];
|
|
114
116
|
/**
|
|
115
117
|
* 判断是否自适应行高
|
|
116
118
|
* @param hasExpandCol 是否有展开行
|
|
@@ -123,7 +125,7 @@ export declare function isAutoRowHeight(hasExpandCol: boolean, bodyCols: BodyCol
|
|
|
123
125
|
* @param props 属性
|
|
124
126
|
* @param ctx SetupContext
|
|
125
127
|
*/
|
|
126
|
-
export declare function CellRender(props: CustomRenderProps, ctx: SetupContext): (string | import(
|
|
128
|
+
export declare function CellRender(props: CustomRenderProps, ctx: SetupContext): (string | number | import('vue').VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
127
129
|
[key: string]: any;
|
|
128
130
|
}>)[] | undefined;
|
|
129
131
|
/**
|
|
@@ -168,6 +170,29 @@ export declare function getSelectableFunction(cols: BodyColumns): ((row: any, in
|
|
|
168
170
|
* @param treeProps 嵌套数据配置项
|
|
169
171
|
*/
|
|
170
172
|
export declare function getTreeProps(treeProps?: TreeProps): TreeTableProps;
|
|
173
|
+
/**
|
|
174
|
+
* 获取序号列值
|
|
175
|
+
* @param rowIndex 行索引
|
|
176
|
+
* @param index 自定义起始索引
|
|
177
|
+
* @param pageIndex 表格分页起始索引
|
|
178
|
+
*/
|
|
179
|
+
export declare function getIndexValue(rowIndex: number, index?: ColumnIndex, pageIndex?: number): string;
|
|
180
|
+
/**
|
|
181
|
+
* 获取单元格的跨行和跨列
|
|
182
|
+
* @param column 列配置
|
|
183
|
+
* @param columnIndex 列索引
|
|
184
|
+
* @param row 行数据
|
|
185
|
+
* @param rowIndex 行索引
|
|
186
|
+
* @param spanMethod 跨行跨列方法
|
|
187
|
+
*/
|
|
188
|
+
export declare function getCellSpan(params: CellParams, spanMethod?: SpanMethod): CellSpan;
|
|
189
|
+
/**
|
|
190
|
+
* 获取自定义的合计列
|
|
191
|
+
* @param summaryMethod 自定义方法
|
|
192
|
+
* @param bodyCols 表格主体列配置
|
|
193
|
+
* @param data 表格数据
|
|
194
|
+
*/
|
|
195
|
+
export declare function getUserSums(summaryMethod?: SummaryMethod, bodyCols?: BodyColumns, data?: DataItem[]): string[] | undefined;
|
|
171
196
|
/**
|
|
172
197
|
* 计算列合计值
|
|
173
198
|
* @param data 表格数据
|
|
@@ -196,7 +221,7 @@ export declare function cellIsOverflow(cell: HTMLElement): boolean;
|
|
|
196
221
|
* @param getEl 获取根节点的方法
|
|
197
222
|
*/
|
|
198
223
|
export declare function useAutoResize(getEl: () => HTMLElement | null): {
|
|
199
|
-
wrapWidth: import(
|
|
200
|
-
wrapHeight: import(
|
|
224
|
+
wrapWidth: import('vue').Ref<number>;
|
|
225
|
+
wrapHeight: import('vue').Ref<number>;
|
|
201
226
|
updateWrapSize: () => void;
|
|
202
227
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref, onMounted, onBeforeMount, onActivated, onDeactivated } from "vue";
|
|
2
2
|
import { TableV2SortOrder } from "element-plus";
|
|
3
|
-
import { omit, mapTree, findTree, eachTree,
|
|
3
|
+
import { omit, mapTree, findTree, eachTree, contentIsEllipsis, debounce } from "../utils/core";
|
|
4
4
|
import { getColFixedNumber, getValue } from "../ele-data-table/util";
|
|
5
5
|
function getRowHeight(size, rowHeight) {
|
|
6
6
|
if (rowHeight != null && rowHeight > 0) {
|
|
@@ -244,24 +244,24 @@ function getTableColumns(bodyCols, colSizes) {
|
|
|
244
244
|
});
|
|
245
245
|
return columns.filter((col) => !!col.width);
|
|
246
246
|
}
|
|
247
|
-
function transformTableData(data, hasExpandCol, childrenName, rowKey, selectable) {
|
|
247
|
+
function transformTableData(data, hasExpandCol, childrenName, hasChildrenName, rowKey, selectable) {
|
|
248
248
|
if (!data || !data.length) {
|
|
249
249
|
return [];
|
|
250
250
|
}
|
|
251
251
|
if (hasExpandCol) {
|
|
252
252
|
return data.map((d, i) => {
|
|
253
|
-
const key = getValue(d, rowKey);
|
|
253
|
+
const key = getValue(d, rowKey) ?? i;
|
|
254
254
|
const temp = {
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
255
|
+
rowId: "_expand_" + key,
|
|
256
|
+
rowIndex: i,
|
|
257
|
+
rowData: d,
|
|
258
|
+
isExpandRow: true
|
|
259
259
|
};
|
|
260
260
|
return {
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
261
|
+
rowId: key,
|
|
262
|
+
rowIndex: i,
|
|
263
|
+
rowData: d,
|
|
264
|
+
isDisabled: !(selectable == null || selectable(d, index) === true),
|
|
265
265
|
children: [temp]
|
|
266
266
|
};
|
|
267
267
|
});
|
|
@@ -272,10 +272,11 @@ function transformTableData(data, hasExpandCol, childrenName, rowKey, selectable
|
|
|
272
272
|
(d) => {
|
|
273
273
|
index++;
|
|
274
274
|
return {
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
275
|
+
rowId: getValue(d, rowKey) ?? index,
|
|
276
|
+
rowIndex: index,
|
|
277
|
+
rowData: d,
|
|
278
|
+
isDisabled: !(selectable == null || selectable(d, index) === true),
|
|
279
|
+
hasChildren: d[hasChildrenName] === true
|
|
279
280
|
};
|
|
280
281
|
},
|
|
281
282
|
childrenName
|
|
@@ -283,7 +284,7 @@ function transformTableData(data, hasExpandCol, childrenName, rowKey, selectable
|
|
|
283
284
|
}
|
|
284
285
|
function getRowByKey(key, data, rowKey, childrenField) {
|
|
285
286
|
if (rowKey == null) {
|
|
286
|
-
return findTree(data, (d) => d.
|
|
287
|
+
return findTree(data, (d) => d.rowId === key && !d.isExpandRow);
|
|
287
288
|
}
|
|
288
289
|
return findTree(data, (d) => getValue(d, rowKey) === key, childrenField);
|
|
289
290
|
}
|
|
@@ -294,8 +295,8 @@ function getKeysAndList(data, rowKey, childrenField) {
|
|
|
294
295
|
data,
|
|
295
296
|
(d) => {
|
|
296
297
|
const flag = rowKey == null;
|
|
297
|
-
if (!flag || !d.
|
|
298
|
-
keys.push(flag ? d.
|
|
298
|
+
if (!flag || !d.isExpandRow) {
|
|
299
|
+
keys.push(flag ? d.rowId : getValue(d, rowKey));
|
|
299
300
|
list.push(d);
|
|
300
301
|
}
|
|
301
302
|
},
|
|
@@ -412,6 +413,49 @@ function getTreeProps(treeProps) {
|
|
|
412
413
|
hasChildrenName: hasChildren || "hasChildren"
|
|
413
414
|
};
|
|
414
415
|
}
|
|
416
|
+
function getIndexValue(rowIndex, index, pageIndex) {
|
|
417
|
+
if (index == null) {
|
|
418
|
+
return String((pageIndex ?? 1) + rowIndex);
|
|
419
|
+
}
|
|
420
|
+
if (typeof index === "function") {
|
|
421
|
+
return String(index(rowIndex));
|
|
422
|
+
}
|
|
423
|
+
return String(index + rowIndex);
|
|
424
|
+
}
|
|
425
|
+
function getCellSpan(params, spanMethod) {
|
|
426
|
+
const span = { rowspan: 1, colspan: 1 };
|
|
427
|
+
if (typeof spanMethod === "function") {
|
|
428
|
+
const result = spanMethod(params);
|
|
429
|
+
if (result != null) {
|
|
430
|
+
if (Array.isArray(result)) {
|
|
431
|
+
const [rowspan, colspan] = result;
|
|
432
|
+
if (rowspan != null) {
|
|
433
|
+
span.rowspan = rowspan;
|
|
434
|
+
}
|
|
435
|
+
if (colspan != null) {
|
|
436
|
+
span.colspan = colspan;
|
|
437
|
+
}
|
|
438
|
+
} else {
|
|
439
|
+
if (result.rowspan != null) {
|
|
440
|
+
span.rowspan = result.rowspan;
|
|
441
|
+
}
|
|
442
|
+
if (result.colspan != null) {
|
|
443
|
+
span.colspan = result.colspan;
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
return span;
|
|
449
|
+
}
|
|
450
|
+
function getUserSums(summaryMethod, bodyCols, data) {
|
|
451
|
+
if (typeof summaryMethod !== "function" || bodyCols == null || data == null) {
|
|
452
|
+
return;
|
|
453
|
+
}
|
|
454
|
+
const columns = bodyCols.map((col) => {
|
|
455
|
+
return { ...col.originalCol || {}, property: col.dataKey };
|
|
456
|
+
});
|
|
457
|
+
return summaryMethod({ columns, data });
|
|
458
|
+
}
|
|
415
459
|
function getSumValue(data, prop) {
|
|
416
460
|
if (!data || !prop) {
|
|
417
461
|
return "";
|
|
@@ -452,23 +496,7 @@ function floorSize(size) {
|
|
|
452
496
|
}
|
|
453
497
|
function cellIsOverflow(cell) {
|
|
454
498
|
const cellChild = cell.querySelector(".ele-table-cell");
|
|
455
|
-
|
|
456
|
-
return false;
|
|
457
|
-
}
|
|
458
|
-
const range = document.createRange();
|
|
459
|
-
range.setStart(cellChild, 0);
|
|
460
|
-
range.setEnd(cellChild, cellChild.childNodes.length);
|
|
461
|
-
const {
|
|
462
|
-
width
|
|
463
|
-
/* , height */
|
|
464
|
-
} = range.getBoundingClientRect();
|
|
465
|
-
const rangeWidth = floorSize(width);
|
|
466
|
-
const style = getCurrentStyle(cellChild);
|
|
467
|
-
const left = Number.parseInt(style.paddingLeft) || 0;
|
|
468
|
-
const right = Number.parseInt(style.paddingRight) || 0;
|
|
469
|
-
const horizontalPadding = left + right;
|
|
470
|
-
return rangeWidth + horizontalPadding > cellChild.offsetWidth || //rangeHeight + verticalPadding > cellChild.offsetHeight ||
|
|
471
|
-
cellChild.scrollWidth > cellChild.offsetWidth;
|
|
499
|
+
return contentIsEllipsis(cellChild, "horizontal");
|
|
472
500
|
}
|
|
473
501
|
function useAutoResize(getEl) {
|
|
474
502
|
const wrapWidth = ref(0);
|
|
@@ -530,12 +558,14 @@ export {
|
|
|
530
558
|
computeFixedPositions,
|
|
531
559
|
floorSize,
|
|
532
560
|
generateRowCols,
|
|
561
|
+
getCellSpan,
|
|
533
562
|
getColFiltered,
|
|
534
563
|
getColKey,
|
|
535
564
|
getColWidth,
|
|
536
565
|
getColumnByKey,
|
|
537
566
|
getDefaultFiltered,
|
|
538
567
|
getDefaultSort,
|
|
568
|
+
getIndexValue,
|
|
539
569
|
getKeysAndList,
|
|
540
570
|
getNumberSize,
|
|
541
571
|
getOrderValue,
|
|
@@ -548,6 +578,7 @@ export {
|
|
|
548
578
|
getTableColumns,
|
|
549
579
|
getTableHeight,
|
|
550
580
|
getTreeProps,
|
|
581
|
+
getUserSums,
|
|
551
582
|
isAutoRowHeight,
|
|
552
583
|
transformTableData,
|
|
553
584
|
useAutoResize
|