ele-admin-plus 1.1.9-beta.8 → 1.1.9
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 +23 -23
- package/es/ele-alert/index.js +2 -2
- package/es/ele-alert/props.d.ts +10 -9
- package/es/ele-app/el.d.ts +7 -1
- package/es/ele-app/index.d.ts +2 -2
- package/es/ele-app/plus.d.ts +9 -0
- package/es/ele-app/style/overwrite/date-picker/index.scss +32 -5
- package/es/ele-avatar-group/index.d.ts +29 -28
- package/es/ele-avatar-group/props.d.ts +10 -9
- package/es/ele-bar-code/index.d.ts +11 -10
- package/es/ele-bar-code/props.d.ts +4 -3
- package/es/ele-basic-select/index.d.ts +37 -35
- package/es/ele-basic-select/index.js +24 -7
- 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 +6 -6
- package/es/ele-bottom-bar/props.d.ts +4 -3
- package/es/ele-breadcrumb/index.d.ts +11 -10
- package/es/ele-breadcrumb/props.d.ts +5 -4
- package/es/ele-card/index.d.ts +12 -12
- package/es/ele-card/props.d.ts +7 -6
- package/es/ele-check-card/components/card-item.d.ts +7 -6
- package/es/ele-check-card/index.d.ts +15 -14
- package/es/ele-check-card/props.d.ts +6 -5
- package/es/ele-config-provider/components/receiver-view.d.ts +3 -3
- package/es/ele-config-provider/components/receiver-view.js +119 -30
- package/es/ele-config-provider/index.d.ts +7 -7
- 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 +6 -10
- package/es/ele-config-provider/receiver.js +32 -117
- package/es/ele-config-provider/types.d.ts +5 -29
- package/es/ele-copyable/index.d.ts +32 -31
- package/es/ele-copyable/props.d.ts +9 -8
- package/es/ele-count-up/index.d.ts +8 -7
- package/es/ele-count-up/props.d.ts +3 -2
- package/es/ele-cropper/components/cropper-preview.d.ts +3 -3
- package/es/ele-cropper/components/cropper-tools.d.ts +12 -11
- package/es/ele-cropper/index.d.ts +16 -15
- package/es/ele-cropper/props.d.ts +4 -3
- package/es/ele-cropper-modal/index.d.ts +16 -15
- package/es/ele-cropper-modal/index.js +1 -1
- package/es/ele-cropper-modal/props.d.ts +7 -6
- package/es/ele-dashboard/index.d.ts +5 -5
- package/es/ele-dashboard/props.d.ts +3 -2
- package/es/ele-data-table/index.d.ts +65 -70
- package/es/ele-data-table/index.js +8 -0
- package/es/ele-data-table/props.d.ts +36 -41
- 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 +4 -4
- package/es/ele-dot/props.d.ts +3 -2
- package/es/ele-drawer/index.d.ts +75 -71
- package/es/ele-drawer/index.js +107 -113
- package/es/ele-drawer/props.d.ts +26 -25
- package/es/ele-drawer/style/index.scss +48 -105
- package/es/ele-dropdown/index.d.ts +66 -65
- package/es/ele-dropdown/props.d.ts +22 -21
- package/es/ele-edit-tag/index.d.ts +33 -32
- package/es/ele-edit-tag/index.js +1 -1
- package/es/ele-edit-tag/props.d.ts +10 -9
- package/es/ele-ellipsis/index.d.ts +23 -22
- package/es/ele-ellipsis/props.d.ts +8 -7
- package/es/ele-file-list/components/file-grid-item.d.ts +13 -12
- package/es/ele-file-list/components/file-grid-item.js +1 -1
- package/es/ele-file-list/components/file-grid.d.ts +10 -9
- package/es/ele-file-list/components/file-sort.d.ts +2 -2
- package/es/ele-file-list/components/file-table-item.d.ts +13 -12
- package/es/ele-file-list/components/file-table-item.js +1 -1
- package/es/ele-file-list/components/file-table.d.ts +10 -9
- package/es/ele-file-list/icons.d.ts +2 -1
- package/es/ele-file-list/index.d.ts +36 -35
- package/es/ele-file-list/props.d.ts +6 -5
- package/es/ele-file-list-tool/index.d.ts +3 -3
- package/es/ele-icon-select/components/icon-grid.d.ts +15 -14
- package/es/ele-icon-select/components/icon-grid.js +1 -1
- package/es/ele-icon-select/index.d.ts +49 -48
- package/es/ele-icon-select/props.d.ts +17 -16
- package/es/ele-loading/index.d.ts +12 -15
- package/es/ele-loading/index.js +10 -16
- package/es/ele-loading/props.d.ts +5 -4
- package/es/ele-map-picker/components/map-view.d.ts +29 -28
- package/es/ele-map-picker/components/map-view.js +1 -1
- package/es/ele-map-picker/index.d.ts +27 -26
- package/es/ele-map-picker/index.js +1 -1
- package/es/ele-map-picker/props.d.ts +8 -7
- package/es/ele-menus/index.d.ts +61 -62
- package/es/ele-menus/index.js +1 -1
- package/es/ele-menus/props.d.ts +16 -17
- package/es/ele-menus/props.js +1 -3
- package/es/ele-menus/style/css-var.scss +1 -5
- package/es/ele-menus/util.d.ts +3 -2
- package/es/ele-modal/index.d.ts +75 -68
- package/es/ele-modal/index.js +164 -186
- package/es/ele-modal/props.d.ts +26 -23
- package/es/ele-modal/props.js +2 -0
- package/es/ele-modal/style/index.scss +103 -175
- package/es/ele-modal/util.d.ts +20 -45
- package/es/ele-modal/util.js +55 -179
- package/es/ele-page/index.d.ts +2 -2
- package/es/ele-page/props.d.ts +2 -1
- package/es/ele-pagination/index.d.ts +40 -29
- package/es/ele-pagination/index.js +20 -5
- package/es/ele-pagination/props.d.ts +19 -12
- package/es/ele-pagination/props.js +7 -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 +90 -89
- package/es/ele-popconfirm/index.js +6 -28
- package/es/ele-popconfirm/props.d.ts +32 -31
- package/es/ele-popover/index.d.ts +69 -68
- package/es/ele-popover/index.js +6 -14
- package/es/ele-popover/props.d.ts +26 -25
- package/es/ele-printer/index.d.ts +18 -18
- package/es/ele-printer/props.d.ts +6 -5
- package/es/ele-printer/util.d.ts +2 -1
- package/es/ele-printer/util.js +1 -1
- package/es/ele-pro-layout/components/header-tool.d.ts +1 -1
- package/es/ele-pro-layout/components/pro-header.d.ts +84 -28
- package/es/ele-pro-layout/components/pro-header.js +110 -20
- package/es/ele-pro-layout/components/pro-iframe.d.ts +7 -7
- package/es/ele-pro-layout/components/pro-iframe.js +31 -41
- package/es/ele-pro-layout/components/pro-sidebar.d.ts +14 -18
- package/es/ele-pro-layout/components/pro-sidebar.js +2 -5
- package/es/ele-pro-layout/components/pro-sidebox.d.ts +16 -20
- package/es/ele-pro-layout/components/pro-sidebox.js +2 -5
- package/es/ele-pro-layout/components/pro-tabs.d.ts +12 -11
- package/es/ele-pro-layout/components/sidebar-tool.d.ts +1 -1
- package/es/ele-pro-layout/components/tab-dropdown.d.ts +8 -7
- package/es/ele-pro-layout/components/tab-dropdown.js +1 -1
- package/es/ele-pro-layout/index.d.ts +97 -97
- package/es/ele-pro-layout/index.js +62 -47
- package/es/ele-pro-layout/props.d.ts +11 -13
- package/es/ele-pro-layout/props.js +2 -4
- package/es/ele-pro-layout/style/css-var.scss +3 -18
- package/es/ele-pro-layout/style/header.scss +74 -9
- package/es/ele-pro-layout/style/layout-mobile.scss +2 -2
- package/es/ele-pro-layout/style/layout-style.scss +8 -3
- package/es/ele-pro-layout/style/layout-theme.scss +48 -23
- package/es/ele-pro-layout/style/layout.scss +38 -8
- package/es/ele-pro-layout/style/sidebar.scss +0 -1
- package/es/ele-pro-layout/style/tabs.scss +19 -11
- package/es/ele-pro-layout/types.d.ts +1 -1
- package/es/ele-pro-layout/util.d.ts +6 -6
- package/es/ele-pro-layout/util.js +2 -3
- package/es/ele-pro-table/components/table-tools.d.ts +107 -15
- package/es/ele-pro-table/components/table-tools.js +125 -8
- package/es/ele-pro-table/components/tool-column-list.d.ts +6 -5
- package/es/ele-pro-table/components/tool-column-list.js +4 -7
- package/es/ele-pro-table/components/tool-column.d.ts +14 -13
- package/es/ele-pro-table/components/tool-column.js +9 -9
- package/es/ele-pro-table/components/tool-export.d.ts +179 -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 +182 -0
- package/es/ele-pro-table/components/tool-print.js +555 -0
- package/es/ele-pro-table/index.d.ts +138 -131
- package/es/ele-pro-table/index.js +107 -37
- 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 +160 -5
- package/es/ele-pro-table/util.d.ts +64 -16
- package/es/ele-pro-table/util.js +155 -28
- package/es/ele-qr-code/index.d.ts +16 -15
- 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 +18 -18
- package/es/ele-segmented/index.d.ts +10 -9
- package/es/ele-segmented/props.d.ts +3 -2
- package/es/ele-split-panel/index.d.ts +18 -17
- package/es/ele-split-panel/props.d.ts +5 -4
- package/es/ele-steps/index.d.ts +33 -33
- package/es/ele-steps/props.d.ts +10 -9
- package/es/ele-tab-tool/index.d.ts +2 -2
- package/es/ele-tab-tool/props.d.ts +2 -1
- package/es/ele-tab-wrap/index.d.ts +6 -6
- package/es/ele-tab-wrap/index.js +2 -1
- package/es/ele-tab-wrap/props.d.ts +3 -2
- package/es/ele-table/index.d.ts +7 -4
- package/es/ele-table/index.js +2 -1
- package/es/ele-table/props.d.ts +5 -2
- 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 +45 -43
- package/es/ele-table-select/index.js +29 -27
- package/es/ele-table-select/props.d.ts +11 -10
- package/es/ele-tabs/components/tab-title.d.ts +9 -8
- package/es/ele-tabs/index.d.ts +43 -55
- package/es/ele-tabs/index.js +1 -0
- package/es/ele-tabs/props.d.ts +17 -23
- package/es/ele-tabs/style/css-var.scss +1 -30
- package/es/ele-tabs/style/index.scss +372 -241
- package/es/ele-tabs/types.d.ts +2 -1
- package/es/ele-text/index.d.ts +12 -12
- package/es/ele-text/props.d.ts +5 -4
- package/es/ele-tool/index.d.ts +8 -8
- 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 +15 -15
- package/es/ele-toolbar/props.d.ts +7 -6
- package/es/ele-tooltip/index.d.ts +59 -58
- package/es/ele-tooltip/index.js +3 -0
- package/es/ele-tooltip/props.d.ts +28 -22
- package/es/ele-tooltip/props.js +2 -0
- package/es/ele-tour/index.d.ts +15 -14
- 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 +37 -36
- 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 +7 -6
- package/es/ele-upload-list/index.d.ts +26 -25
- package/es/ele-upload-list/props.d.ts +6 -5
- package/es/ele-virtual-table/components/body-cell.d.ts +100 -65
- package/es/ele-virtual-table/components/body-cell.js +79 -112
- package/es/ele-virtual-table/components/body-row.d.ts +89 -65
- package/es/ele-virtual-table/components/body-row.js +57 -52
- package/es/ele-virtual-table/components/cell-checkbox.d.ts +5 -4
- package/es/ele-virtual-table/components/cell-filter.d.ts +18 -17
- package/es/ele-virtual-table/components/cell-filter.js +8 -12
- package/es/ele-virtual-table/components/expand-row.d.ts +11 -10
- package/es/ele-virtual-table/components/expand-row.js +3 -3
- package/es/ele-virtual-table/components/footer-row.d.ts +36 -17
- package/es/ele-virtual-table/components/footer-row.js +29 -19
- package/es/ele-virtual-table/components/header-cell.d.ts +16 -15
- package/es/ele-virtual-table/components/header-row.d.ts +12 -11
- package/es/ele-virtual-table/index.d.ts +91 -100
- package/es/ele-virtual-table/index.js +134 -136
- package/es/ele-virtual-table/props.d.ts +49 -51
- package/es/ele-virtual-table/style/index.scss +1 -1
- 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 +64 -17
- package/es/ele-watermark/index.d.ts +15 -14
- package/es/ele-watermark/props.d.ts +4 -3
- package/es/ele-watermark/util.d.ts +3 -2
- package/es/ele-xg-player/index.d.ts +10 -10
- 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/ResizeOutlined.d.ts +2 -0
- package/es/icons/ResizeOutlined.js +30 -0
- 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 +2 -0
- package/es/icons/index.js +60 -56
- package/es/installer.d.ts +2 -2
- package/es/lang/en_US.d.ts +2 -2
- package/es/lang/en_US.js +13 -2
- package/es/lang/zh_CN.d.ts +2 -2
- package/es/lang/zh_CN.js +13 -2
- package/es/lang/zh_TW.d.ts +2 -2
- package/es/lang/zh_TW.js +12 -1
- package/es/style/nprogress.scss +1 -0
- package/es/style/themes/dark.scss +9 -15
- package/es/style/themes/default.scss +58 -81
- package/es/style/themes/rounded.scss +16 -30
- package/es/utils/menu-util.d.ts +3 -2
- package/es/utils/menu-util.js +2 -5
- package/es/utils/message.d.ts +4 -3
- package/es/utils/resolvers.d.ts +2 -2
- package/es/utils/resolvers.js +2 -2
- package/lib/core-installer.d.ts +2 -2
- package/lib/ele-alert/index.cjs +2 -2
- package/lib/ele-alert/index.d.ts +23 -23
- package/lib/ele-alert/props.d.ts +10 -9
- package/lib/ele-app/el.d.ts +7 -1
- package/lib/ele-app/index.d.ts +2 -2
- package/lib/ele-app/plus.d.ts +9 -0
- package/lib/ele-app/style/overwrite/date-picker/index.scss +32 -5
- package/lib/ele-avatar-group/index.d.ts +29 -28
- package/lib/ele-avatar-group/props.d.ts +10 -9
- package/lib/ele-bar-code/index.d.ts +11 -10
- package/lib/ele-bar-code/props.d.ts +4 -3
- package/lib/ele-basic-select/index.cjs +23 -6
- package/lib/ele-basic-select/index.d.ts +37 -35
- 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 +6 -6
- package/lib/ele-bottom-bar/props.d.ts +4 -3
- package/lib/ele-breadcrumb/index.d.ts +11 -10
- package/lib/ele-breadcrumb/props.d.ts +5 -4
- package/lib/ele-card/index.d.ts +12 -12
- package/lib/ele-card/props.d.ts +7 -6
- package/lib/ele-check-card/components/card-item.d.ts +7 -6
- package/lib/ele-check-card/index.d.ts +15 -14
- package/lib/ele-check-card/props.d.ts +6 -5
- package/lib/ele-config-provider/components/receiver-view.cjs +2 -44
- package/lib/ele-config-provider/components/receiver-view.d.ts +3 -3
- package/lib/ele-config-provider/index.d.ts +7 -7
- 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 +41 -2
- package/lib/ele-config-provider/receiver.d.ts +6 -10
- package/lib/ele-config-provider/types.d.ts +5 -29
- package/lib/ele-copyable/index.d.ts +32 -31
- package/lib/ele-copyable/props.d.ts +9 -8
- package/lib/ele-count-up/index.d.ts +8 -7
- package/lib/ele-count-up/props.d.ts +3 -2
- package/lib/ele-cropper/components/cropper-preview.d.ts +3 -3
- package/lib/ele-cropper/components/cropper-tools.d.ts +12 -11
- package/lib/ele-cropper/index.d.ts +16 -15
- package/lib/ele-cropper/props.d.ts +4 -3
- package/lib/ele-cropper-modal/index.cjs +1 -1
- package/lib/ele-cropper-modal/index.d.ts +16 -15
- package/lib/ele-cropper-modal/props.d.ts +7 -6
- package/lib/ele-dashboard/index.d.ts +5 -5
- package/lib/ele-dashboard/props.d.ts +3 -2
- package/lib/ele-data-table/index.cjs +8 -0
- package/lib/ele-data-table/index.d.ts +65 -70
- package/lib/ele-data-table/props.d.ts +36 -41
- 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.d.ts +4 -4
- package/lib/ele-dot/props.d.ts +3 -2
- package/lib/ele-drawer/index.cjs +105 -111
- package/lib/ele-drawer/index.d.ts +75 -71
- package/lib/ele-drawer/props.d.ts +26 -25
- package/lib/ele-drawer/style/index.scss +48 -105
- package/lib/ele-dropdown/index.d.ts +66 -65
- package/lib/ele-dropdown/props.d.ts +22 -21
- package/lib/ele-edit-tag/index.cjs +1 -1
- package/lib/ele-edit-tag/index.d.ts +33 -32
- package/lib/ele-edit-tag/props.d.ts +10 -9
- package/lib/ele-ellipsis/index.d.ts +23 -22
- package/lib/ele-ellipsis/props.d.ts +8 -7
- package/lib/ele-file-list/components/file-grid-item.cjs +1 -1
- package/lib/ele-file-list/components/file-grid-item.d.ts +13 -12
- package/lib/ele-file-list/components/file-grid.d.ts +10 -9
- package/lib/ele-file-list/components/file-sort.d.ts +2 -2
- package/lib/ele-file-list/components/file-table-item.cjs +1 -1
- package/lib/ele-file-list/components/file-table-item.d.ts +13 -12
- package/lib/ele-file-list/components/file-table.d.ts +10 -9
- package/lib/ele-file-list/icons.d.ts +2 -1
- package/lib/ele-file-list/index.d.ts +36 -35
- package/lib/ele-file-list/props.d.ts +6 -5
- package/lib/ele-file-list-tool/index.d.ts +3 -3
- package/lib/ele-icon-select/components/icon-grid.cjs +1 -1
- package/lib/ele-icon-select/components/icon-grid.d.ts +15 -14
- package/lib/ele-icon-select/index.d.ts +49 -48
- package/lib/ele-icon-select/props.d.ts +17 -16
- package/lib/ele-loading/index.cjs +9 -15
- package/lib/ele-loading/index.d.ts +12 -15
- package/lib/ele-loading/props.d.ts +5 -4
- package/lib/ele-map-picker/components/map-view.cjs +1 -1
- package/lib/ele-map-picker/components/map-view.d.ts +29 -28
- package/lib/ele-map-picker/index.cjs +1 -1
- package/lib/ele-map-picker/index.d.ts +27 -26
- package/lib/ele-map-picker/props.d.ts +8 -7
- package/lib/ele-menus/index.cjs +1 -1
- package/lib/ele-menus/index.d.ts +61 -62
- package/lib/ele-menus/props.cjs +1 -3
- package/lib/ele-menus/props.d.ts +16 -17
- package/lib/ele-menus/style/css-var.scss +1 -5
- package/lib/ele-menus/util.d.ts +3 -2
- package/lib/ele-modal/index.cjs +176 -198
- package/lib/ele-modal/index.d.ts +75 -68
- package/lib/ele-modal/props.cjs +2 -0
- package/lib/ele-modal/props.d.ts +26 -23
- package/lib/ele-modal/style/index.scss +103 -175
- package/lib/ele-modal/util.cjs +55 -179
- package/lib/ele-modal/util.d.ts +20 -45
- package/lib/ele-page/index.d.ts +2 -2
- package/lib/ele-page/props.d.ts +2 -1
- package/lib/ele-pagination/index.cjs +19 -4
- package/lib/ele-pagination/index.d.ts +40 -29
- package/lib/ele-pagination/props.cjs +7 -0
- package/lib/ele-pagination/props.d.ts +19 -12
- package/lib/ele-pagination/style/index.scss +9 -0
- package/lib/ele-pagination/types.d.ts +6 -1
- package/lib/ele-popconfirm/index.cjs +5 -27
- package/lib/ele-popconfirm/index.d.ts +90 -89
- package/lib/ele-popconfirm/props.d.ts +32 -31
- package/lib/ele-popover/index.cjs +5 -13
- package/lib/ele-popover/index.d.ts +69 -68
- package/lib/ele-popover/props.d.ts +26 -25
- package/lib/ele-printer/index.d.ts +18 -18
- package/lib/ele-printer/props.d.ts +6 -5
- package/lib/ele-printer/util.cjs +1 -1
- 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 +109 -19
- package/lib/ele-pro-layout/components/pro-header.d.ts +84 -28
- package/lib/ele-pro-layout/components/pro-iframe.cjs +30 -40
- package/lib/ele-pro-layout/components/pro-iframe.d.ts +7 -7
- package/lib/ele-pro-layout/components/pro-sidebar.cjs +2 -5
- package/lib/ele-pro-layout/components/pro-sidebar.d.ts +14 -18
- package/lib/ele-pro-layout/components/pro-sidebox.cjs +2 -5
- package/lib/ele-pro-layout/components/pro-sidebox.d.ts +16 -20
- package/lib/ele-pro-layout/components/pro-tabs.d.ts +12 -11
- package/lib/ele-pro-layout/components/sidebar-tool.d.ts +1 -1
- package/lib/ele-pro-layout/components/tab-dropdown.cjs +1 -1
- package/lib/ele-pro-layout/components/tab-dropdown.d.ts +8 -7
- package/lib/ele-pro-layout/index.cjs +61 -46
- package/lib/ele-pro-layout/index.d.ts +97 -97
- package/lib/ele-pro-layout/props.cjs +2 -4
- package/lib/ele-pro-layout/props.d.ts +11 -13
- package/lib/ele-pro-layout/style/css-var.scss +3 -18
- package/lib/ele-pro-layout/style/header.scss +74 -9
- package/lib/ele-pro-layout/style/layout-mobile.scss +2 -2
- package/lib/ele-pro-layout/style/layout-style.scss +8 -3
- package/lib/ele-pro-layout/style/layout-theme.scss +48 -23
- package/lib/ele-pro-layout/style/layout.scss +38 -8
- package/lib/ele-pro-layout/style/sidebar.scss +0 -1
- package/lib/ele-pro-layout/style/tabs.scss +19 -11
- package/lib/ele-pro-layout/types.d.ts +1 -1
- package/lib/ele-pro-layout/util.cjs +2 -3
- package/lib/ele-pro-layout/util.d.ts +6 -6
- package/lib/ele-pro-table/components/table-tools.cjs +124 -7
- package/lib/ele-pro-table/components/table-tools.d.ts +107 -15
- package/lib/ele-pro-table/components/tool-column-list.cjs +3 -6
- package/lib/ele-pro-table/components/tool-column-list.d.ts +6 -5
- package/lib/ele-pro-table/components/tool-column.cjs +8 -8
- package/lib/ele-pro-table/components/tool-column.d.ts +14 -13
- package/lib/ele-pro-table/components/tool-export.cjs +448 -0
- package/lib/ele-pro-table/components/tool-export.d.ts +179 -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 +554 -0
- package/lib/ele-pro-table/components/tool-print.d.ts +182 -0
- package/lib/ele-pro-table/index.cjs +105 -35
- package/lib/ele-pro-table/index.d.ts +138 -131
- 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 +160 -5
- package/lib/ele-pro-table/util.cjs +154 -27
- package/lib/ele-pro-table/util.d.ts +64 -16
- package/lib/ele-qr-code/index.d.ts +16 -15
- 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 +18 -18
- package/lib/ele-segmented/index.d.ts +10 -9
- package/lib/ele-segmented/props.d.ts +3 -2
- package/lib/ele-split-panel/index.d.ts +18 -17
- package/lib/ele-split-panel/props.d.ts +5 -4
- package/lib/ele-steps/index.d.ts +33 -33
- package/lib/ele-steps/props.d.ts +10 -9
- package/lib/ele-tab-tool/index.d.ts +2 -2
- package/lib/ele-tab-tool/props.d.ts +2 -1
- package/lib/ele-tab-wrap/index.cjs +2 -1
- package/lib/ele-tab-wrap/index.d.ts +6 -6
- 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 +7 -4
- package/lib/ele-table/props.cjs +3 -1
- package/lib/ele-table/props.d.ts +5 -2
- package/lib/ele-table/style/index.scss +35 -0
- package/lib/ele-table-select/index.cjs +29 -27
- package/lib/ele-table-select/index.d.ts +45 -43
- package/lib/ele-table-select/props.d.ts +11 -10
- package/lib/ele-tabs/components/tab-title.d.ts +9 -8
- package/lib/ele-tabs/index.cjs +1 -0
- package/lib/ele-tabs/index.d.ts +43 -55
- package/lib/ele-tabs/props.d.ts +17 -23
- package/lib/ele-tabs/style/css-var.scss +1 -30
- package/lib/ele-tabs/style/index.scss +372 -241
- package/lib/ele-tabs/types.d.ts +2 -1
- package/lib/ele-text/index.d.ts +12 -12
- package/lib/ele-text/props.d.ts +5 -4
- package/lib/ele-tool/index.cjs +1 -3
- package/lib/ele-tool/index.d.ts +8 -8
- package/lib/ele-tool/props.cjs +5 -0
- package/lib/ele-tool/props.d.ts +10 -2
- package/lib/ele-toolbar/index.d.ts +15 -15
- package/lib/ele-toolbar/props.d.ts +7 -6
- package/lib/ele-tooltip/index.cjs +3 -0
- package/lib/ele-tooltip/index.d.ts +59 -58
- package/lib/ele-tooltip/props.cjs +2 -0
- package/lib/ele-tooltip/props.d.ts +28 -22
- package/lib/ele-tour/index.d.ts +15 -14
- 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 +37 -36
- 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.d.ts +7 -6
- package/lib/ele-upload-list/index.d.ts +26 -25
- package/lib/ele-upload-list/props.d.ts +6 -5
- package/lib/ele-virtual-table/components/body-cell.cjs +78 -111
- package/lib/ele-virtual-table/components/body-cell.d.ts +100 -65
- package/lib/ele-virtual-table/components/body-row.cjs +57 -52
- package/lib/ele-virtual-table/components/body-row.d.ts +89 -65
- package/lib/ele-virtual-table/components/cell-checkbox.d.ts +5 -4
- package/lib/ele-virtual-table/components/cell-filter.cjs +7 -11
- package/lib/ele-virtual-table/components/cell-filter.d.ts +18 -17
- package/lib/ele-virtual-table/components/expand-row.cjs +3 -3
- package/lib/ele-virtual-table/components/expand-row.d.ts +11 -10
- package/lib/ele-virtual-table/components/footer-row.cjs +27 -17
- package/lib/ele-virtual-table/components/footer-row.d.ts +36 -17
- package/lib/ele-virtual-table/components/header-cell.d.ts +16 -15
- package/lib/ele-virtual-table/components/header-row.d.ts +12 -11
- package/lib/ele-virtual-table/index.cjs +132 -134
- package/lib/ele-virtual-table/index.d.ts +91 -100
- package/lib/ele-virtual-table/props.d.ts +49 -51
- package/lib/ele-virtual-table/style/index.scss +1 -1
- package/lib/ele-virtual-table/types.d.ts +103 -69
- package/lib/ele-virtual-table/util.cjs +64 -17
- package/lib/ele-virtual-table/util.d.ts +35 -10
- package/lib/ele-watermark/index.d.ts +15 -14
- package/lib/ele-watermark/props.d.ts +4 -3
- package/lib/ele-watermark/util.d.ts +3 -2
- package/lib/ele-xg-player/index.d.ts +10 -10
- 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/ResizeOutlined.cjs +29 -0
- package/lib/icons/ResizeOutlined.d.ts +2 -0
- 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 +4 -0
- package/lib/icons/index.d.ts +2 -0
- package/lib/installer.d.ts +2 -2
- package/lib/lang/en_US.cjs +13 -2
- package/lib/lang/en_US.d.ts +2 -2
- package/lib/lang/zh_CN.cjs +13 -2
- package/lib/lang/zh_CN.d.ts +2 -2
- package/lib/lang/zh_TW.cjs +12 -1
- package/lib/lang/zh_TW.d.ts +2 -2
- package/lib/style/nprogress.scss +1 -0
- package/lib/style/themes/dark.scss +9 -15
- package/lib/style/themes/default.scss +58 -81
- package/lib/style/themes/rounded.scss +16 -30
- package/lib/utils/menu-util.cjs +1 -4
- package/lib/utils/menu-util.d.ts +3 -2
- package/lib/utils/message.d.ts +4 -3
- package/lib/utils/resolvers.cjs +2 -2
- package/lib/utils/resolvers.d.ts +2 -2
- package/package.json +23 -22
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, watch, onMounted, nextTick, resolveComponent, openBlock, createBlock, normalizeProps, guardReactiveProps, withCtx, mergeProps as mergeProps$1, renderSlot, createSlots, renderList, createCommentVNode, createElementBlock, normalizeStyle } from "vue";
|
|
1
|
+
import { defineComponent, ref, shallowRef, computed, watch, onMounted, nextTick, resolveComponent, openBlock, createBlock, normalizeProps, guardReactiveProps, withCtx, mergeProps as mergeProps$1, renderSlot, createSlots, renderList, createCommentVNode, createElementBlock, normalizeStyle } from "vue";
|
|
2
2
|
import { pick } from "../utils/core";
|
|
3
3
|
import { useGlobalProps } from "../ele-config-provider/receiver";
|
|
4
4
|
import EleLoading from "../ele-loading/index";
|
|
@@ -9,7 +9,7 @@ import EleDataTable from "../ele-data-table/index";
|
|
|
9
9
|
import EleVirtualTable from "../ele-virtual-table/index";
|
|
10
10
|
import EleToolbar from "../ele-toolbar/index";
|
|
11
11
|
import TableTools from "./components/table-tools";
|
|
12
|
-
import { getDefaultFilter, getTablePage, getTableLimit, getTableSize, getPaginationProps, mergeProps,
|
|
12
|
+
import { getDefaultFilter, getTablePage, getTableLimit, getTableSize, getRowKey, getPaginationProps, mergeProps, getInitCacheColumns, reloadData, getRequestOrders, getRequestPages, getRequestFilters, getResponseResult, getResponseName, isAutoAmend, sortData } from "./util";
|
|
13
13
|
import { proTableProps, proTableEmits } from "./props";
|
|
14
14
|
const _sfc_main = defineComponent({
|
|
15
15
|
name: "EleProTable",
|
|
@@ -49,6 +49,7 @@ const _sfc_main = defineComponent({
|
|
|
49
49
|
const tableMaximized = ref(false);
|
|
50
50
|
const errorText = ref("");
|
|
51
51
|
const cacheData = ref();
|
|
52
|
+
const tableRowKey = shallowRef(getRowKey(props.rowKey));
|
|
52
53
|
const tableIndex = computed(() => {
|
|
53
54
|
return ((tablePage.value ?? 1) - 1) * (tableLimit.value ?? 0) + 1;
|
|
54
55
|
});
|
|
@@ -60,7 +61,8 @@ const _sfc_main = defineComponent({
|
|
|
60
61
|
{
|
|
61
62
|
total: tableTotal.value,
|
|
62
63
|
pageSize: tableLimit.value,
|
|
63
|
-
currentPage: tablePage.value
|
|
64
|
+
currentPage: tablePage.value,
|
|
65
|
+
hasNext: tableData.value.length >= tableLimit.value
|
|
64
66
|
}
|
|
65
67
|
);
|
|
66
68
|
});
|
|
@@ -89,7 +91,7 @@ const _sfc_main = defineComponent({
|
|
|
89
91
|
pageIndex: tableIndex.value,
|
|
90
92
|
emptyProps: tableEmptyProps.value,
|
|
91
93
|
rowHeight: props.virtual ? props.rowHeight : void 0,
|
|
92
|
-
rowKey:
|
|
94
|
+
rowKey: tableRowKey.value,
|
|
93
95
|
style: props.tableStyle,
|
|
94
96
|
class: "ele-pro-table-view",
|
|
95
97
|
...events,
|
|
@@ -106,9 +108,41 @@ const _sfc_main = defineComponent({
|
|
|
106
108
|
}
|
|
107
109
|
return tools || [];
|
|
108
110
|
});
|
|
109
|
-
const
|
|
111
|
+
const toolExportConfig = computed(() => {
|
|
112
|
+
const globalExportConfig = globalProps.value.exportConfig || {};
|
|
113
|
+
const userExportConfig = props.exportConfig || {};
|
|
114
|
+
return {
|
|
115
|
+
...globalExportConfig,
|
|
116
|
+
...userExportConfig,
|
|
117
|
+
modalProps: {
|
|
118
|
+
...globalExportConfig.modalProps || {},
|
|
119
|
+
...userExportConfig.modalProps || {}
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
});
|
|
123
|
+
const toolPrintConfig = computed(() => {
|
|
124
|
+
const globalPrintConfig = globalProps.value.printConfig || {};
|
|
125
|
+
const userPrintConfig = props.printConfig || {};
|
|
126
|
+
return {
|
|
127
|
+
...globalPrintConfig,
|
|
128
|
+
...userPrintConfig,
|
|
129
|
+
modalProps: {
|
|
130
|
+
...globalPrintConfig.modalProps || {},
|
|
131
|
+
...userPrintConfig.modalProps || {}
|
|
132
|
+
},
|
|
133
|
+
printerProps: {
|
|
134
|
+
...globalPrintConfig.printerProps || {},
|
|
135
|
+
...userPrintConfig.printerProps || {}
|
|
136
|
+
},
|
|
137
|
+
tableProps: {
|
|
138
|
+
...globalPrintConfig.tableProps || {},
|
|
139
|
+
...userPrintConfig.tableProps || {}
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
});
|
|
143
|
+
const loadingProps = computed(() => {
|
|
110
144
|
const zIndex = props.maximizedIndex ?? globalProps.value.maximizedIndex;
|
|
111
|
-
|
|
145
|
+
return {
|
|
112
146
|
...props.loadingProps || {},
|
|
113
147
|
loading: tableLoading.value,
|
|
114
148
|
class: [
|
|
@@ -118,7 +152,6 @@ const _sfc_main = defineComponent({
|
|
|
118
152
|
],
|
|
119
153
|
style: tableMaximized.value ? { zIndex } : void 0
|
|
120
154
|
};
|
|
121
|
-
return option;
|
|
122
155
|
});
|
|
123
156
|
const reload = (option, parent, resolve) => {
|
|
124
157
|
if (option) {
|
|
@@ -148,11 +181,7 @@ const _sfc_main = defineComponent({
|
|
|
148
181
|
tableLimit.value
|
|
149
182
|
);
|
|
150
183
|
cacheData.value = props.datasource;
|
|
151
|
-
tableData.value =
|
|
152
|
-
data,
|
|
153
|
-
getDefaultRowKey(props.rowKey),
|
|
154
|
-
tablePage.value
|
|
155
|
-
);
|
|
184
|
+
tableData.value = data;
|
|
156
185
|
tablePage.value = page;
|
|
157
186
|
tableTotal.value = total;
|
|
158
187
|
onDone({ data, page, total, response: props.datasource });
|
|
@@ -170,6 +199,12 @@ const _sfc_main = defineComponent({
|
|
|
170
199
|
props.datasource({
|
|
171
200
|
page: tablePage.value,
|
|
172
201
|
limit: tableLimit.value,
|
|
202
|
+
pages: getRequestPages(
|
|
203
|
+
tablePage.value,
|
|
204
|
+
tableLimit.value,
|
|
205
|
+
props.request,
|
|
206
|
+
globalProps.value.request
|
|
207
|
+
),
|
|
173
208
|
where: Object.assign({}, tableState.where),
|
|
174
209
|
orders,
|
|
175
210
|
filters: getRequestFilters(filter),
|
|
@@ -212,7 +247,7 @@ const _sfc_main = defineComponent({
|
|
|
212
247
|
if (resolve) {
|
|
213
248
|
resolve(data);
|
|
214
249
|
} else {
|
|
215
|
-
if (isAutoAmend(props.pagination, globalProps.value.pagination) && !data.length && total && tablePage.value && tableLimit.value) {
|
|
250
|
+
if (isAutoAmend(props.pagination, globalProps.value.pagination) && !data.length && total && "*" !== total && tablePage.value && tableLimit.value) {
|
|
216
251
|
const maxPage = Math.ceil(total / tableLimit.value);
|
|
217
252
|
if (maxPage && tablePage.value > maxPage) {
|
|
218
253
|
tablePage.value = maxPage;
|
|
@@ -220,11 +255,7 @@ const _sfc_main = defineComponent({
|
|
|
220
255
|
return;
|
|
221
256
|
}
|
|
222
257
|
}
|
|
223
|
-
tableData.value =
|
|
224
|
-
data,
|
|
225
|
-
getDefaultRowKey(props.rowKey),
|
|
226
|
-
tablePage.value
|
|
227
|
-
);
|
|
258
|
+
tableData.value = data;
|
|
228
259
|
tableTotal.value = total || data.length;
|
|
229
260
|
}
|
|
230
261
|
tableLoading.value = false;
|
|
@@ -247,12 +278,12 @@ const _sfc_main = defineComponent({
|
|
|
247
278
|
nextTick(() => {
|
|
248
279
|
if (props.current != null) {
|
|
249
280
|
methods.setCurrentRowKey(
|
|
250
|
-
getValue(props.current,
|
|
281
|
+
getValue(props.current, tableRowKey.value)
|
|
251
282
|
);
|
|
252
283
|
}
|
|
253
284
|
if (props.selections != null && props.selections.length) {
|
|
254
285
|
methods.setSelectedRowKeys(
|
|
255
|
-
getRowKeys(props.selections,
|
|
286
|
+
getRowKeys(props.selections, tableRowKey.value)
|
|
256
287
|
);
|
|
257
288
|
}
|
|
258
289
|
});
|
|
@@ -327,17 +358,13 @@ const _sfc_main = defineComponent({
|
|
|
327
358
|
return tableData.value;
|
|
328
359
|
};
|
|
329
360
|
const setData = (data) => {
|
|
330
|
-
tableData.value =
|
|
331
|
-
data,
|
|
332
|
-
getDefaultRowKey(props.rowKey),
|
|
333
|
-
tablePage.value
|
|
334
|
-
);
|
|
361
|
+
tableData.value = data;
|
|
335
362
|
};
|
|
336
363
|
const goPageByRowKey = (key) => {
|
|
337
364
|
if (!paginationProps.value || tableLimit.value == null || isFunctionSource.value) {
|
|
338
365
|
return;
|
|
339
366
|
}
|
|
340
|
-
const rowKey =
|
|
367
|
+
const rowKey = tableRowKey.value;
|
|
341
368
|
const data = sortData(props.datasource, tableState.sorter);
|
|
342
369
|
const index2 = data.findIndex((d) => getValue(d, rowKey) === key);
|
|
343
370
|
const page = Math.floor(index2 / tableLimit.value) + 1;
|
|
@@ -355,6 +382,12 @@ const _sfc_main = defineComponent({
|
|
|
355
382
|
callback({
|
|
356
383
|
page: tablePage.value,
|
|
357
384
|
limit: tableLimit.value,
|
|
385
|
+
pages: getRequestPages(
|
|
386
|
+
tablePage.value,
|
|
387
|
+
tableLimit.value,
|
|
388
|
+
props.request,
|
|
389
|
+
globalProps.value.request
|
|
390
|
+
),
|
|
358
391
|
where: Object.assign({}, tableState.where),
|
|
359
392
|
orders,
|
|
360
393
|
filters: getRequestFilters(filter),
|
|
@@ -402,15 +435,19 @@ const _sfc_main = defineComponent({
|
|
|
402
435
|
watch(
|
|
403
436
|
() => props.current,
|
|
404
437
|
(current) => {
|
|
405
|
-
methods.setCurrentRowKey(getValue(current,
|
|
438
|
+
methods.setCurrentRowKey(getValue(current, tableRowKey.value));
|
|
406
439
|
}
|
|
407
440
|
);
|
|
408
441
|
watch(
|
|
409
442
|
() => props.selections,
|
|
410
443
|
(selections) => {
|
|
411
|
-
methods.setSelectedRowKeys(
|
|
412
|
-
|
|
413
|
-
|
|
444
|
+
methods.setSelectedRowKeys(getRowKeys(selections, tableRowKey.value));
|
|
445
|
+
}
|
|
446
|
+
);
|
|
447
|
+
watch(
|
|
448
|
+
() => props.rowKey,
|
|
449
|
+
() => {
|
|
450
|
+
tableRowKey.value = getRowKey(props.rowKey);
|
|
414
451
|
}
|
|
415
452
|
);
|
|
416
453
|
watch(
|
|
@@ -432,13 +469,16 @@ const _sfc_main = defineComponent({
|
|
|
432
469
|
return {
|
|
433
470
|
...methods,
|
|
434
471
|
tableViewRef,
|
|
472
|
+
tableData,
|
|
435
473
|
tableSize,
|
|
436
474
|
tableMaximized,
|
|
437
475
|
tableIndex,
|
|
438
476
|
paginationProps,
|
|
439
477
|
tableProps,
|
|
440
478
|
toolNames,
|
|
441
|
-
|
|
479
|
+
toolExportConfig,
|
|
480
|
+
toolPrintConfig,
|
|
481
|
+
loadingProps,
|
|
442
482
|
onRefresh,
|
|
443
483
|
onSizeChange,
|
|
444
484
|
onColumnsChange,
|
|
@@ -469,21 +509,35 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
469
509
|
const _component_EleDataTable = resolveComponent("EleDataTable");
|
|
470
510
|
const _component_ElePagination = resolveComponent("ElePagination");
|
|
471
511
|
const _component_EleLoading = resolveComponent("EleLoading");
|
|
472
|
-
return openBlock(), createBlock(_component_EleLoading, normalizeProps(guardReactiveProps(_ctx.
|
|
512
|
+
return openBlock(), createBlock(_component_EleLoading, normalizeProps(guardReactiveProps(_ctx.loadingProps)), {
|
|
473
513
|
default: withCtx(() => [
|
|
474
514
|
_ctx.toolbar ? (openBlock(), createBlock(_component_EleToolbar, normalizeProps(mergeProps$1({ key: 0 }, _ctx.toolbar === true ? {} : _ctx.toolbar)), {
|
|
475
515
|
tools: withCtx(() => [
|
|
476
516
|
renderSlot(_ctx.$slots, "tools"),
|
|
477
517
|
_ctx.toolNames && _ctx.toolNames.length ? (openBlock(), createBlock(_component_TableTools, {
|
|
478
518
|
key: 0,
|
|
519
|
+
tools: _ctx.toolNames,
|
|
479
520
|
size: _ctx.tableSize,
|
|
480
521
|
columns: _ctx.columns,
|
|
481
|
-
tools: _ctx.toolNames,
|
|
482
522
|
columnSortable: _ctx.columnSortable,
|
|
483
523
|
columnFixed: _ctx.columnFixed,
|
|
484
524
|
maximized: _ctx.tableMaximized,
|
|
485
525
|
cacheKey: _ctx.cacheKey,
|
|
486
526
|
locale: _ctx.locale,
|
|
527
|
+
selections: _ctx.selections,
|
|
528
|
+
pageData: _ctx.tableData,
|
|
529
|
+
spanMethod: _ctx.spanMethod,
|
|
530
|
+
showSummary: _ctx.showSummary,
|
|
531
|
+
sumText: _ctx.sumText,
|
|
532
|
+
summaryMethod: _ctx.summaryMethod,
|
|
533
|
+
cellStyle: _ctx.cellStyle,
|
|
534
|
+
cellClassName: _ctx.cellClassName,
|
|
535
|
+
headerCellStyle: _ctx.headerCellStyle,
|
|
536
|
+
headerCellClassName: _ctx.headerCellClassName,
|
|
537
|
+
pageIndex: _ctx.tableIndex,
|
|
538
|
+
fetch: _ctx.fetch,
|
|
539
|
+
exportConfig: _ctx.toolExportConfig,
|
|
540
|
+
printConfig: _ctx.toolPrintConfig,
|
|
487
541
|
onReload: _ctx.onRefresh,
|
|
488
542
|
"onUpdate:size": _ctx.onSizeChange,
|
|
489
543
|
"onUpdate:columns": _ctx.onColumnsChange,
|
|
@@ -506,7 +560,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
506
560
|
])
|
|
507
561
|
};
|
|
508
562
|
})
|
|
509
|
-
]), 1032, ["
|
|
563
|
+
]), 1032, ["tools", "size", "columns", "columnSortable", "columnFixed", "maximized", "cacheKey", "locale", "selections", "pageData", "spanMethod", "showSummary", "sumText", "summaryMethod", "cellStyle", "cellClassName", "headerCellStyle", "headerCellClassName", "pageIndex", "fetch", "exportConfig", "printConfig", "onReload", "onUpdate:size", "onUpdate:columns", "onUpdate:maximized"])) : createCommentVNode("", true)
|
|
510
564
|
]),
|
|
511
565
|
default: withCtx(() => [
|
|
512
566
|
renderSlot(_ctx.$slots, "toolbar")
|
|
@@ -516,7 +570,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
516
570
|
renderSlot(_ctx.$slots, "default"),
|
|
517
571
|
_ctx.virtual ? (openBlock(), createBlock(_component_EleVirtualTable, mergeProps$1({ key: 1 }, _ctx.tableProps, { ref: "tableViewRef" }), createSlots({ _: 2 }, [
|
|
518
572
|
renderList(Object.keys(_ctx.$slots).filter(
|
|
519
|
-
(k) => ![
|
|
573
|
+
(k) => ![
|
|
574
|
+
"default",
|
|
575
|
+
"toolbar",
|
|
576
|
+
"tools",
|
|
577
|
+
"footer",
|
|
578
|
+
"printTop",
|
|
579
|
+
"printBottom"
|
|
580
|
+
].includes(k)
|
|
520
581
|
), (name) => {
|
|
521
582
|
return {
|
|
522
583
|
name,
|
|
@@ -527,7 +588,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
527
588
|
})
|
|
528
589
|
]), 1040)) : (openBlock(), createBlock(_component_EleDataTable, mergeProps$1({ key: 2 }, _ctx.tableProps, { ref: "tableViewRef" }), createSlots({ _: 2 }, [
|
|
529
590
|
renderList(Object.keys(_ctx.$slots).filter(
|
|
530
|
-
(k) => ![
|
|
591
|
+
(k) => ![
|
|
592
|
+
"default",
|
|
593
|
+
"toolbar",
|
|
594
|
+
"tools",
|
|
595
|
+
"footer",
|
|
596
|
+
"printTop",
|
|
597
|
+
"printBottom"
|
|
598
|
+
].includes(k)
|
|
531
599
|
), (name) => {
|
|
532
600
|
return {
|
|
533
601
|
name,
|
|
@@ -554,7 +622,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
554
622
|
"tools",
|
|
555
623
|
"footer",
|
|
556
624
|
"empty",
|
|
557
|
-
"append"
|
|
625
|
+
"append",
|
|
626
|
+
"printTop",
|
|
627
|
+
"printBottom"
|
|
558
628
|
].includes(k)
|
|
559
629
|
), (name) => {
|
|
560
630
|
return {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { Where, Datasource, RequestOption, ResponseOption, ParseData, DoneParams, TablePagination, TableLocale, ExportConfig, PrintConfig } from './types';
|
|
2
|
+
import { DataItem, Columns, TableSize } from '../ele-data-table/types';
|
|
3
|
+
import { EleLoadingProps, EleToolbarProps } from '../ele-app/plus';
|
|
4
|
+
import { PropType, ExtractPropTypes } from 'vue';
|
|
5
|
+
|
|
5
6
|
/**
|
|
6
7
|
* 属性
|
|
7
8
|
*/
|
|
@@ -64,9 +65,9 @@ export declare const proTableProps: {
|
|
|
64
65
|
/** 表格全屏状态的高度 */
|
|
65
66
|
maximizedHeight: (StringConstructor | NumberConstructor)[];
|
|
66
67
|
/** 自定义表格样式 */
|
|
67
|
-
tableStyle: PropType<Partial<import(
|
|
68
|
+
tableStyle: PropType<Partial<import('vue').CSSProperties>>;
|
|
68
69
|
/** 自定义底部样式 */
|
|
69
|
-
footerStyle: PropType<Partial<import(
|
|
70
|
+
footerStyle: PropType<Partial<import('vue').CSSProperties>>;
|
|
70
71
|
/** 分页组件 */
|
|
71
72
|
pagination: {
|
|
72
73
|
type: PropType<boolean | TablePagination>;
|
|
@@ -78,18 +79,22 @@ export declare const proTableProps: {
|
|
|
78
79
|
cacheKey: StringConstructor;
|
|
79
80
|
/** 是否虚拟滚动 */
|
|
80
81
|
virtual: BooleanConstructor;
|
|
81
|
-
/**
|
|
82
|
+
/** 虚拟滚动表格行高 */
|
|
82
83
|
rowHeight: NumberConstructor;
|
|
83
84
|
/** 国际化 */
|
|
84
85
|
locale: PropType<Partial<TableLocale>>;
|
|
85
|
-
|
|
86
|
-
|
|
86
|
+
/** 导出配置 */
|
|
87
|
+
exportConfig: PropType<ExportConfig>;
|
|
88
|
+
/** 打印配置 */
|
|
89
|
+
printConfig: PropType<PrintConfig>;
|
|
87
90
|
size: {
|
|
88
|
-
readonly type: PropType<import(
|
|
91
|
+
readonly type: PropType<import('element-plus/es/utils/index').EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
|
|
89
92
|
readonly required: false;
|
|
90
93
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
91
94
|
__epPropKey: true;
|
|
92
95
|
};
|
|
96
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
97
|
+
height: (StringConstructor | NumberConstructor)[];
|
|
93
98
|
maxHeight: (StringConstructor | NumberConstructor)[];
|
|
94
99
|
fit: {
|
|
95
100
|
type: BooleanConstructor;
|
|
@@ -104,11 +109,8 @@ export declare const proTableProps: {
|
|
|
104
109
|
type: PropType<Columns>;
|
|
105
110
|
required: boolean;
|
|
106
111
|
};
|
|
107
|
-
scrollbarAlwaysOn:
|
|
108
|
-
|
|
109
|
-
default: boolean;
|
|
110
|
-
};
|
|
111
|
-
showOverflowTooltip: PropType<boolean | Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "showArrow" | "appendTo" | "transition" | "enterable" | "showAfter" | "hideAfter">> | undefined>;
|
|
112
|
+
scrollbarAlwaysOn: BooleanConstructor;
|
|
113
|
+
showOverflowTooltip: PropType<boolean | Partial<Pick<import('element-plus').ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "showArrow" | "appendTo" | "transition" | "enterable" | "showAfter" | "hideAfter">> | undefined>;
|
|
112
114
|
emptyText: StringConstructor;
|
|
113
115
|
indent: {
|
|
114
116
|
type: NumberConstructor;
|
|
@@ -128,26 +130,26 @@ export declare const proTableProps: {
|
|
|
128
130
|
};
|
|
129
131
|
showSummary: BooleanConstructor;
|
|
130
132
|
sumText: StringConstructor;
|
|
131
|
-
summaryMethod: PropType<import(
|
|
132
|
-
rowClassName: PropType<import(
|
|
133
|
-
rowStyle: PropType<import(
|
|
134
|
-
cellClassName: PropType<import(
|
|
135
|
-
cellStyle: PropType<import(
|
|
136
|
-
headerRowClassName: PropType<import(
|
|
137
|
-
headerRowStyle: PropType<import(
|
|
138
|
-
headerCellClassName: PropType<import(
|
|
139
|
-
headerCellStyle: PropType<import(
|
|
133
|
+
summaryMethod: PropType<import('element-plus').SummaryMethod<any> | undefined>;
|
|
134
|
+
rowClassName: PropType<import('element-plus').ColumnCls<any> | undefined>;
|
|
135
|
+
rowStyle: PropType<import('element-plus').ColumnStyle<any> | undefined>;
|
|
136
|
+
cellClassName: PropType<import('element-plus').CellCls<any> | undefined>;
|
|
137
|
+
cellStyle: PropType<import('element-plus').CellStyle<any> | undefined>;
|
|
138
|
+
headerRowClassName: PropType<import('element-plus').ColumnCls<any> | undefined>;
|
|
139
|
+
headerRowStyle: PropType<import('element-plus').ColumnStyle<any> | undefined>;
|
|
140
|
+
headerCellClassName: PropType<import('element-plus').CellCls<any> | undefined>;
|
|
141
|
+
headerCellStyle: PropType<import('element-plus').CellStyle<any> | undefined>;
|
|
140
142
|
highlightCurrentRow: BooleanConstructor;
|
|
141
143
|
currentRowKey: (StringConstructor | NumberConstructor)[];
|
|
142
144
|
expandRowKeys: PropType<any[] | undefined>;
|
|
143
145
|
defaultExpandAll: BooleanConstructor;
|
|
144
|
-
defaultSort: PropType<import(
|
|
146
|
+
defaultSort: PropType<import('element-plus').Sort | undefined>;
|
|
145
147
|
tooltipEffect: StringConstructor;
|
|
146
|
-
tooltipOptions: PropType<Partial<Pick<import(
|
|
148
|
+
tooltipOptions: PropType<Partial<Pick<import('element-plus').ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "showArrow" | "appendTo" | "transition" | "enterable" | "showAfter" | "hideAfter">> | undefined>;
|
|
147
149
|
spanMethod: PropType<((data: {
|
|
148
150
|
row: any;
|
|
149
151
|
rowIndex: number;
|
|
150
|
-
column: import(
|
|
152
|
+
column: import('element-plus').TableColumnCtx<any>;
|
|
151
153
|
columnIndex: number;
|
|
152
154
|
}) => number[] | {
|
|
153
155
|
rowspan: number;
|
|
@@ -167,9 +169,9 @@ export declare const proTableProps: {
|
|
|
167
169
|
children: string;
|
|
168
170
|
};
|
|
169
171
|
};
|
|
170
|
-
load: PropType<((row: any, treeNode: import(
|
|
172
|
+
load: PropType<((row: any, treeNode: import('element-plus').TreeNode, resolve: (data: any[]) => void) => void) | undefined>;
|
|
171
173
|
tableLayout: {
|
|
172
|
-
type: PropType<"
|
|
174
|
+
type: PropType<"fixed" | "auto">;
|
|
173
175
|
default: string;
|
|
174
176
|
};
|
|
175
177
|
flexible: BooleanConstructor;
|
|
@@ -180,19 +182,20 @@ export declare const proTableProps: {
|
|
|
180
182
|
};
|
|
181
183
|
slotNormalize: {
|
|
182
184
|
type: BooleanConstructor;
|
|
183
|
-
default: boolean;
|
|
185
|
+
default: boolean;
|
|
184
186
|
};
|
|
185
187
|
bottomLine: {
|
|
186
188
|
type: BooleanConstructor;
|
|
189
|
+
/** 自定义响应参数名称 */
|
|
187
190
|
default: boolean;
|
|
188
191
|
};
|
|
189
192
|
emptyProps: {
|
|
190
|
-
type: PropType<import(
|
|
193
|
+
type: PropType<import('../ele-data-table/types').TableEmptyProps>;
|
|
191
194
|
default: () => null;
|
|
192
195
|
};
|
|
193
|
-
rowClickChecked: PropType<import(
|
|
196
|
+
rowClickChecked: PropType<import('../ele-data-table/types').RowClickChecked>;
|
|
194
197
|
reserveCurrent: BooleanConstructor;
|
|
195
|
-
selectedRowKeys: PropType<import(
|
|
198
|
+
selectedRowKeys: PropType<import('../ele-data-table/types').DataKey[]>;
|
|
196
199
|
};
|
|
197
200
|
export type ProTableProps = ExtractPropTypes<typeof proTableProps>;
|
|
198
201
|
/**
|
|
@@ -216,21 +219,22 @@ export declare const proTableEmits: {
|
|
|
216
219
|
select: (_selection: DataItem[], _row: DataItem) => boolean;
|
|
217
220
|
selectAll: (_selection: DataItem[]) => boolean;
|
|
218
221
|
selectionChange: (_selection: DataItem[]) => boolean;
|
|
219
|
-
cellMouseEnter: (_row: DataItem, _column: import(
|
|
220
|
-
cellMouseLeave: (_row: DataItem, _column: import(
|
|
221
|
-
cellClick: (_row: DataItem, _column: import(
|
|
222
|
-
cellDblclick: (_row: DataItem, _column: import(
|
|
223
|
-
cellContextmenu: (_row: DataItem, _column: import(
|
|
224
|
-
rowClick: (_row: DataItem, _column: import(
|
|
225
|
-
rowContextmenu: (_row: DataItem, _column: import(
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
222
|
+
cellMouseEnter: (_row: DataItem, _column: import('./types').Column, _cell: HTMLTableCellElement, _e: MouseEvent) => boolean;
|
|
223
|
+
cellMouseLeave: (_row: DataItem, _column: import('./types').Column, _cell: HTMLTableCellElement, _e: MouseEvent) => boolean;
|
|
224
|
+
cellClick: (_row: DataItem, _column: import('./types').Column, _cell: HTMLTableCellElement, _e: MouseEvent) => boolean;
|
|
225
|
+
cellDblclick: (_row: DataItem, _column: import('./types').Column, _cell: HTMLTableCellElement, _e: MouseEvent) => boolean;
|
|
226
|
+
cellContextmenu: (_row: DataItem, _column: import('./types').Column, _cell: HTMLTableCellElement, _e: MouseEvent) => boolean;
|
|
227
|
+
rowClick: (_row: DataItem, _column: import('./types').Column, _e: MouseEvent) => boolean;
|
|
228
|
+
rowContextmenu: (_row: DataItem, _column: import('./types').Column, _e: MouseEvent) => boolean;
|
|
229
|
+
/** 导出配置 */
|
|
230
|
+
rowDblclick: (_row: DataItem, _column: import('./types').Column, _e: MouseEvent) => boolean;
|
|
231
|
+
headerClick: (_column: import('./types').Column, _e: MouseEvent) => boolean;
|
|
232
|
+
headerContextmenu: (_column: import('./types').Column, _e: MouseEvent) => boolean;
|
|
233
|
+
sortChange: (_sorter: import('./types').Sorter) => boolean;
|
|
234
|
+
filterChange: (_filter: import('./types').Filter) => boolean;
|
|
231
235
|
currentChange: (_current?: DataItem | null | undefined, _old?: DataItem | null | undefined) => boolean;
|
|
232
|
-
headerDragend: (_width: number, _old: number, _column: import(
|
|
236
|
+
headerDragend: (_width: number, _old: number, _column: import('./types').Column, _e: MouseEvent) => boolean;
|
|
233
237
|
expandChange: (_row: DataItem, _expanded: boolean) => boolean;
|
|
234
|
-
'update:currentRowKey': (_currentRowKey?: import(
|
|
235
|
-
'update:selectedRowKeys': (_selectedRowKeys?: import(
|
|
238
|
+
'update:currentRowKey': (_currentRowKey?: import('../ele-data-table/types').DataKey | undefined) => boolean;
|
|
239
|
+
'update:selectedRowKeys': (_selectedRowKeys?: import('../ele-data-table/types').DataKey[] | undefined) => boolean; /** 数组数据源时刷新按钮点击事件 */
|
|
236
240
|
};
|
|
@@ -78,10 +78,14 @@ const proTableProps = {
|
|
|
78
78
|
cacheKey: String,
|
|
79
79
|
/** 是否虚拟滚动 */
|
|
80
80
|
virtual: Boolean,
|
|
81
|
-
/**
|
|
81
|
+
/** 虚拟滚动表格行高 */
|
|
82
82
|
rowHeight: Number,
|
|
83
83
|
/** 国际化 */
|
|
84
|
-
locale: Object
|
|
84
|
+
locale: Object,
|
|
85
|
+
/** 导出配置 */
|
|
86
|
+
exportConfig: Object,
|
|
87
|
+
/** 打印配置 */
|
|
88
|
+
printConfig: Object
|
|
85
89
|
};
|
|
86
90
|
const proTableEmits = {
|
|
87
91
|
...dataTableEmits,
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import 'element-plus/es/components/checkbox/style/index';
|
|
2
2
|
import 'element-plus/es/components/icon/style/index';
|
|
3
|
+
import 'element-plus/es/components/form/style/index';
|
|
4
|
+
import 'element-plus/es/components/form-item/style/index';
|
|
5
|
+
import 'element-plus/es/components/input/style/index';
|
|
6
|
+
import 'element-plus/es/components/select/style/index';
|
|
7
|
+
import 'element-plus/es/components/option/style/index';
|
|
8
|
+
import 'element-plus/es/components/button/style/index';
|
|
3
9
|
import '../../ele-tooltip/style/index';
|
|
4
10
|
import '../../ele-dropdown/style/index';
|
|
5
11
|
import '../../ele-tool/style/index';
|
|
@@ -8,4 +14,7 @@ import '../../ele-loading/style/index';
|
|
|
8
14
|
import '../../ele-pagination/style/index';
|
|
9
15
|
import '../../ele-data-table/style/index';
|
|
10
16
|
import '../../ele-virtual-table/style/index';
|
|
17
|
+
import '../../ele-modal/style/index';
|
|
18
|
+
import '../../ele-printer/style/index';
|
|
19
|
+
import '../../ele-table/style/index';
|
|
11
20
|
import './index.scss';
|
|
@@ -107,7 +107,12 @@
|
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
/* 列配置 */
|
|
110
|
-
.ele-tool-column.ele-popover {
|
|
110
|
+
.ele-tool-column-popover.ele-popover {
|
|
111
|
+
width: eleVar('tool-column', 'width');
|
|
112
|
+
max-width: 100%;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.ele-tool-column {
|
|
111
116
|
width: eleVar('tool-column', 'width');
|
|
112
117
|
max-width: 100%;
|
|
113
118
|
}
|
|
@@ -131,7 +136,8 @@
|
|
|
131
136
|
}
|
|
132
137
|
}
|
|
133
138
|
|
|
134
|
-
.ele-tool-column.ele-
|
|
139
|
+
.ele-tool-column .ele-tool-column-item .ele-tool-column-item-body,
|
|
140
|
+
.ele-tool-column .ele-tool-column-header .ele-tool-column-label {
|
|
135
141
|
.el-checkbox {
|
|
136
142
|
height: eleVar('tool-column', 'item-height');
|
|
137
143
|
line-height: eleVar('tool-column', 'item-height');
|
|
@@ -153,7 +159,7 @@
|
|
|
153
159
|
box-sizing: border-box;
|
|
154
160
|
}
|
|
155
161
|
|
|
156
|
-
.ele-
|
|
162
|
+
.ele-tool-column > .ele-tool-column-list {
|
|
157
163
|
padding: eleVar('tool-column', 'body-padding');
|
|
158
164
|
max-height: eleVar('tool-column', 'max-height');
|
|
159
165
|
box-sizing: border-box;
|
|
@@ -182,6 +188,7 @@
|
|
|
182
188
|
|
|
183
189
|
&.sortable-chosen {
|
|
184
190
|
background: eleVar('tool-column', 'item-hover-bg');
|
|
191
|
+
opacity: 1 !important;
|
|
185
192
|
|
|
186
193
|
& > .ele-tool-column-item-body {
|
|
187
194
|
background: none;
|
|
@@ -189,7 +196,7 @@
|
|
|
189
196
|
}
|
|
190
197
|
|
|
191
198
|
&.sortable-ghost {
|
|
192
|
-
opacity: 0;
|
|
199
|
+
opacity: 0 !important;
|
|
193
200
|
}
|
|
194
201
|
|
|
195
202
|
& > .ele-tool-column-list {
|
|
@@ -230,9 +237,13 @@
|
|
|
230
237
|
color: eleVar('tool-column', 'btn-active-color');
|
|
231
238
|
background: eleVar('tool-column', 'btn-active-bg');
|
|
232
239
|
}
|
|
240
|
+
|
|
241
|
+
& > .el-icon > svg {
|
|
242
|
+
stroke-width: 5;
|
|
243
|
+
}
|
|
233
244
|
}
|
|
234
245
|
|
|
235
|
-
.ele-
|
|
246
|
+
.ele-tool-column.is-sortable {
|
|
236
247
|
.ele-tool-column-item-body {
|
|
237
248
|
padding-left: 6px;
|
|
238
249
|
}
|
|
@@ -241,3 +252,20 @@
|
|
|
241
252
|
padding-left: calc(22px - #{eleVar('tool-column', 'item-padding')});
|
|
242
253
|
}
|
|
243
254
|
}
|
|
255
|
+
|
|
256
|
+
/* 导出和打印的列选择 */
|
|
257
|
+
.ele-tool-export-form,
|
|
258
|
+
.ele-tool-print-form {
|
|
259
|
+
.ele-tool-column {
|
|
260
|
+
border: 1px solid elVar('border-color', 'light');
|
|
261
|
+
border-radius: elVar('border-radius', 'base');
|
|
262
|
+
line-height: normal;
|
|
263
|
+
width: 100%;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.ele-tool-column-header {
|
|
267
|
+
background: elVar('fill-color', 'lighter');
|
|
268
|
+
border-top-left-radius: elVar('border-radius', 'base');
|
|
269
|
+
border-top-right-radius: elVar('border-radius', 'base');
|
|
270
|
+
}
|
|
271
|
+
}
|