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,8 +1,12 @@
|
|
|
1
1
|
import type {
|
|
2
2
|
EleDataTableInstance,
|
|
3
3
|
EleVirtualTableInstance,
|
|
4
|
-
ElePaginationProps
|
|
4
|
+
ElePaginationProps,
|
|
5
|
+
EleModalProps,
|
|
6
|
+
ElePrinterProps,
|
|
7
|
+
EleTableProps
|
|
5
8
|
} from '../ele-app/plus';
|
|
9
|
+
import type { PaginationTotal } from '../ele-pagination/types';
|
|
6
10
|
import type {
|
|
7
11
|
DataItem,
|
|
8
12
|
Column,
|
|
@@ -13,6 +17,7 @@ import type {
|
|
|
13
17
|
TableSize,
|
|
14
18
|
ResolveFunction
|
|
15
19
|
} from '../ele-data-table/types';
|
|
20
|
+
import type { BodyColumns } from '../ele-virtual-table/types';
|
|
16
21
|
export type {
|
|
17
22
|
DataItem,
|
|
18
23
|
Column,
|
|
@@ -24,6 +29,11 @@ export type {
|
|
|
24
29
|
ResolveFunction
|
|
25
30
|
};
|
|
26
31
|
|
|
32
|
+
/**
|
|
33
|
+
* 分页参数
|
|
34
|
+
*/
|
|
35
|
+
export type Pages = Record<string, number>;
|
|
36
|
+
|
|
27
37
|
/**
|
|
28
38
|
* 搜索参数
|
|
29
39
|
*/
|
|
@@ -47,6 +57,8 @@ export interface DatasourceParams {
|
|
|
47
57
|
page?: number;
|
|
48
58
|
/** 每页显示数量 */
|
|
49
59
|
limit?: number;
|
|
60
|
+
/** 分页参数 */
|
|
61
|
+
pages: Pages;
|
|
50
62
|
/** 搜索参数 */
|
|
51
63
|
where: Where;
|
|
52
64
|
/** 排序参数 */
|
|
@@ -116,6 +128,10 @@ export type OrderValue = string | number | boolean | null | undefined;
|
|
|
116
128
|
* 请求参数设置
|
|
117
129
|
*/
|
|
118
130
|
export interface RequestOption {
|
|
131
|
+
/** 页码参数名称 */
|
|
132
|
+
pageName?: string;
|
|
133
|
+
/** 每页数量参数名称 */
|
|
134
|
+
limitName?: string;
|
|
119
135
|
/** 排序字段参数名称 */
|
|
120
136
|
sortName?: string;
|
|
121
137
|
/** 排序方式参数名称 */
|
|
@@ -137,7 +153,7 @@ export interface ResponseOption {
|
|
|
137
153
|
}
|
|
138
154
|
|
|
139
155
|
/**
|
|
140
|
-
*
|
|
156
|
+
* 响应数据解析方法
|
|
141
157
|
*/
|
|
142
158
|
export type ParseData = (data: unknown) => DatasourceResult;
|
|
143
159
|
|
|
@@ -159,10 +175,10 @@ export interface OrderItem {
|
|
|
159
175
|
export interface DoneParams<T> {
|
|
160
176
|
/** 当前页数据 */
|
|
161
177
|
data: T[];
|
|
178
|
+
/** 总数量 */
|
|
179
|
+
total?: PaginationTotal;
|
|
162
180
|
/** 当前页码 */
|
|
163
181
|
page?: number;
|
|
164
|
-
/** 总数量 */
|
|
165
|
-
total?: number;
|
|
166
182
|
/** 数据源原始数据 */
|
|
167
183
|
response?: any;
|
|
168
184
|
}
|
|
@@ -188,7 +204,14 @@ export interface TablePagination extends ElePaginationProps {
|
|
|
188
204
|
/**
|
|
189
205
|
* 内置工具按钮
|
|
190
206
|
*/
|
|
191
|
-
export type TableTool =
|
|
207
|
+
export type TableTool =
|
|
208
|
+
| 'reload'
|
|
209
|
+
| 'size'
|
|
210
|
+
| 'columns'
|
|
211
|
+
| 'maximized'
|
|
212
|
+
| 'export'
|
|
213
|
+
| 'print'
|
|
214
|
+
| string;
|
|
192
215
|
|
|
193
216
|
/**
|
|
194
217
|
* 列配置
|
|
@@ -211,6 +234,11 @@ export interface ColItem {
|
|
|
211
234
|
*/
|
|
212
235
|
export type FetchCallback = (options: DatasourceParams) => void;
|
|
213
236
|
|
|
237
|
+
/**
|
|
238
|
+
* 请求方法
|
|
239
|
+
*/
|
|
240
|
+
export type FetchFunction = (callback: FetchCallback) => void;
|
|
241
|
+
|
|
214
242
|
/**
|
|
215
243
|
* 前端分页排序方法返回结果
|
|
216
244
|
*/
|
|
@@ -258,6 +286,122 @@ export type TableViewInstance =
|
|
|
258
286
|
| EleVirtualTableInstance
|
|
259
287
|
| null;
|
|
260
288
|
|
|
289
|
+
/**
|
|
290
|
+
* 导出的数据来源类型
|
|
291
|
+
*/
|
|
292
|
+
export type ExportDataType = 'selections' | 'pageData' | 'data';
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* 导出的数据每一项
|
|
296
|
+
*/
|
|
297
|
+
export interface ExportDataItem {
|
|
298
|
+
/** 唯一值 */
|
|
299
|
+
key?: string;
|
|
300
|
+
/** 行数据 */
|
|
301
|
+
row?: DataItem;
|
|
302
|
+
/** 行索引 */
|
|
303
|
+
index: number;
|
|
304
|
+
/** 列配置 */
|
|
305
|
+
column?: Column;
|
|
306
|
+
/** 文本 */
|
|
307
|
+
text?: string;
|
|
308
|
+
/** 所占列数 */
|
|
309
|
+
colspan?: number;
|
|
310
|
+
/** 所占行数 */
|
|
311
|
+
rowspan?: number;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* 导出数据封装返回结果
|
|
316
|
+
*/
|
|
317
|
+
export interface ExportDataResult {
|
|
318
|
+
/** 表头数据 */
|
|
319
|
+
headerData: ExportDataItem[][];
|
|
320
|
+
/** 主体数据 */
|
|
321
|
+
bodyData: ExportDataItem[][];
|
|
322
|
+
/** 表尾数据 */
|
|
323
|
+
footerData: ExportDataItem[][];
|
|
324
|
+
/** 主体列配置 */
|
|
325
|
+
bodyCols: BodyColumns;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* 导出数据前的钩子函数的参数
|
|
330
|
+
*/
|
|
331
|
+
export interface BeforeExportParams {
|
|
332
|
+
/** 导出的数据 */
|
|
333
|
+
data: DataItem[];
|
|
334
|
+
/** 导出的列配置 */
|
|
335
|
+
columns?: Columns;
|
|
336
|
+
/** 导出的表头数据封装 */
|
|
337
|
+
headerData: ExportDataItem[][];
|
|
338
|
+
/** 导出的主体数据封装 */
|
|
339
|
+
bodyData: ExportDataItem[][];
|
|
340
|
+
/** 导出的页脚数据封装 */
|
|
341
|
+
footerData: ExportDataItem[][];
|
|
342
|
+
/** 主体列配置 */
|
|
343
|
+
bodyCols: BodyColumns;
|
|
344
|
+
/** 文件名 */
|
|
345
|
+
fileName?: string;
|
|
346
|
+
/** 关闭确定按钮的加载状态 */
|
|
347
|
+
hideLoading: () => void;
|
|
348
|
+
/** 关闭弹窗 */
|
|
349
|
+
closeModal: () => void;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* 导出数据前的钩子函数
|
|
354
|
+
*/
|
|
355
|
+
export type BeforeExport = (params: BeforeExportParams) => boolean | void;
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* 导出配置
|
|
359
|
+
*/
|
|
360
|
+
export interface ExportConfig {
|
|
361
|
+
/** 弹窗参数 */
|
|
362
|
+
modalProps?: EleModalProps;
|
|
363
|
+
/** 表格全部数据 */
|
|
364
|
+
datasource?: Datasource;
|
|
365
|
+
/** 导出前的钩子函数 */
|
|
366
|
+
beforeExport?: BeforeExport;
|
|
367
|
+
/** 默认数据类型 */
|
|
368
|
+
dataType?: ExportDataType;
|
|
369
|
+
/** 默认文件名 */
|
|
370
|
+
fileName?: string;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* 打印配置
|
|
375
|
+
*/
|
|
376
|
+
export interface PrintConfig {
|
|
377
|
+
/** 弹窗参数 */
|
|
378
|
+
modalProps?: EleModalProps;
|
|
379
|
+
/** 打印组件参数 */
|
|
380
|
+
printerProps?: ElePrinterProps;
|
|
381
|
+
/** 打印表格参数 */
|
|
382
|
+
tableProps?: EleTableProps;
|
|
383
|
+
/** 表格全部数据 */
|
|
384
|
+
datasource?: Datasource;
|
|
385
|
+
/** 打印前的钩子函数 */
|
|
386
|
+
beforePrint?: BeforeExport;
|
|
387
|
+
/** 默认数据类型 */
|
|
388
|
+
dataType?: ExportDataType;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* 打印参数
|
|
393
|
+
*/
|
|
394
|
+
export interface TablePrintOptions extends ExportDataResult {
|
|
395
|
+
/** 是否开始打印 */
|
|
396
|
+
printing: boolean;
|
|
397
|
+
/** 是否有表头 */
|
|
398
|
+
hasHeader: boolean;
|
|
399
|
+
/** 是否有表尾 */
|
|
400
|
+
hasFooter: boolean;
|
|
401
|
+
/** 打印的数据 */
|
|
402
|
+
data: DataItem[];
|
|
403
|
+
}
|
|
404
|
+
|
|
261
405
|
/**
|
|
262
406
|
* 国际化
|
|
263
407
|
*/
|
|
@@ -266,6 +410,8 @@ export interface TableLocale {
|
|
|
266
410
|
sizes: string;
|
|
267
411
|
columns: string;
|
|
268
412
|
maximized: string;
|
|
413
|
+
export: string;
|
|
414
|
+
print: string;
|
|
269
415
|
sizeLarge: string;
|
|
270
416
|
sizeDefault: string;
|
|
271
417
|
sizeSmall: string;
|
|
@@ -274,4 +420,13 @@ export interface TableLocale {
|
|
|
274
420
|
columnUntitled: string;
|
|
275
421
|
columnFixedLeft: string;
|
|
276
422
|
columnFixedRight: string;
|
|
423
|
+
exportOk: string;
|
|
424
|
+
exportCancel: string;
|
|
425
|
+
exportFileName: string;
|
|
426
|
+
exportFileNamePlaceholder: string;
|
|
427
|
+
exportSelectData: string;
|
|
428
|
+
exportSelectColumn: string;
|
|
429
|
+
exportDataTypePage: string;
|
|
430
|
+
exportDataTypeSelected: string;
|
|
431
|
+
exportDataTypeAll: string;
|
|
277
432
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { Pages, Orders, Filters, OrderItem, RequestOption, ResponseOption, TablePagination, DatasourceResult, ResponseResult, ReloadDataResult, ColItem, ProProps, ExportDataItem, ExportDataResult } from './types';
|
|
2
|
+
import { DataItem, Column, Columns, Sorter, Filter, TableSize, TreeProps, RowKey, SpanMethod, SummaryMethod } from '../ele-data-table/types';
|
|
3
|
+
import { ElePaginationProps } from '../ele-app/plus';
|
|
4
|
+
|
|
4
5
|
/**
|
|
5
6
|
* 合并复合属性
|
|
6
7
|
* @param props 属性
|
|
@@ -26,7 +27,7 @@ export declare function getTableLimit(pagination: boolean | TablePagination | un
|
|
|
26
27
|
* @param globalPagination 全局配置分页组件属性
|
|
27
28
|
* @param pageProps 分页相关的属性
|
|
28
29
|
*/
|
|
29
|
-
export declare function getPaginationProps(size: TableSize, pagination: boolean | TablePagination | undefined, globalPagination: boolean | TablePagination | undefined, pageProps?: Pick<ElePaginationProps, 'total' | 'pageSize' | 'currentPage'>): ElePaginationProps | null;
|
|
30
|
+
export declare function getPaginationProps(size: TableSize, pagination: boolean | TablePagination | undefined, globalPagination: boolean | TablePagination | undefined, pageProps?: Pick<ElePaginationProps, 'total' | 'pageSize' | 'currentPage' | 'hasNext'>): ElePaginationProps | null;
|
|
30
31
|
/**
|
|
31
32
|
* 判断是否开启自动修正页码
|
|
32
33
|
* @param pagination 分页组件属性
|
|
@@ -74,6 +75,14 @@ export declare function getRequestOrders(sorter?: Sorter, request?: RequestOptio
|
|
|
74
75
|
* @param filter 筛选条件
|
|
75
76
|
*/
|
|
76
77
|
export declare function getRequestFilters(filter?: Filter): Filters;
|
|
78
|
+
/**
|
|
79
|
+
* 生成请求的分页参数
|
|
80
|
+
* @param page 页码
|
|
81
|
+
* @param limit 每页数量
|
|
82
|
+
* @param request 请求参数配置
|
|
83
|
+
* @param globalRequest 全局请求参数配置
|
|
84
|
+
*/
|
|
85
|
+
export declare function getRequestPages(page: number, limit: number, request?: RequestOption, globalRequest?: RequestOption): Pages;
|
|
77
86
|
/**
|
|
78
87
|
* 获取数据源请求结果
|
|
79
88
|
* @param data 数据源请求的原始数据
|
|
@@ -108,7 +117,7 @@ export declare function sortData(datasource?: DataItem[], sorter?: Sorter): Data
|
|
|
108
117
|
* 获取列配置标识
|
|
109
118
|
* @param column 列数据
|
|
110
119
|
*/
|
|
111
|
-
export declare function getColId(column
|
|
120
|
+
export declare function getColId(column: Column): string | undefined;
|
|
112
121
|
/**
|
|
113
122
|
* 获取初始显示的列数据
|
|
114
123
|
* @param columns 列数据
|
|
@@ -127,7 +136,16 @@ export declare function getInitCacheColumns(columns: Columns, cacheKey?: string,
|
|
|
127
136
|
* @param cols 列配置数据
|
|
128
137
|
* @param sortable 是否进行排序
|
|
129
138
|
*/
|
|
130
|
-
export declare function getCheckedColumns(columns: Columns | undefined, cols: ColItem[], sortable?: boolean): Columns;
|
|
139
|
+
export declare function getCheckedColumns(columns: Columns | undefined, cols: ColItem[], sortable?: boolean, filter?: (item: Column) => boolean): Columns;
|
|
140
|
+
/**
|
|
141
|
+
* 获取列展示列表数据
|
|
142
|
+
* @param columns 列配置
|
|
143
|
+
* @param untitledText 未命名列文字
|
|
144
|
+
* @param filter 过滤列的方法
|
|
145
|
+
* @param sortFixed 是否对固定列排序
|
|
146
|
+
* @param cancelFixed 是否取消固定列
|
|
147
|
+
*/
|
|
148
|
+
export declare function getColItems(columns?: Columns, untitledText?: string, filter?: (item: Column) => boolean, sortFixed?: boolean, cancelFixed?: boolean): ColItem[];
|
|
131
149
|
/**
|
|
132
150
|
* 获取列配置
|
|
133
151
|
* @param columns 列数据
|
|
@@ -154,19 +172,49 @@ export declare function getSizeCacheKey(cacheKey: string): string;
|
|
|
154
172
|
*/
|
|
155
173
|
export declare function getCacheSize(cacheKey?: string): TableSize;
|
|
156
174
|
/**
|
|
157
|
-
*
|
|
175
|
+
* 获取 rowKey
|
|
158
176
|
* @param rowKey 自定义 rowKey
|
|
159
177
|
*/
|
|
160
|
-
export declare function
|
|
178
|
+
export declare function getRowKey(rowKey?: RowKey): string | ((row: DataItem) => string);
|
|
161
179
|
/**
|
|
162
|
-
*
|
|
163
|
-
* @param
|
|
180
|
+
* 导出获取单元格文本
|
|
181
|
+
* @param column 列配置
|
|
182
|
+
* @param row 行数据
|
|
183
|
+
* @param index 行索引
|
|
184
|
+
* @param pageIndex 序号列起始索引
|
|
164
185
|
*/
|
|
165
|
-
export declare function
|
|
186
|
+
export declare function getCellText(column: Column | undefined, row: DataItem, index: number, pageIndex?: number): string;
|
|
166
187
|
/**
|
|
167
|
-
*
|
|
168
|
-
* @param
|
|
169
|
-
* @param
|
|
170
|
-
|
|
188
|
+
* 导出获取表头单元格文本
|
|
189
|
+
* @param column 列配置
|
|
190
|
+
* @param index 行索引
|
|
191
|
+
*/
|
|
192
|
+
export declare function getHeaderCellText(column: Column | undefined, index: number): string;
|
|
193
|
+
/**
|
|
194
|
+
* 获取导出的数据
|
|
195
|
+
* @param data 元数据
|
|
196
|
+
* @param columns 列配置
|
|
197
|
+
* @param spanMethod 单元格合并方法
|
|
198
|
+
* @param pageIndex 序号列起始索引
|
|
199
|
+
* @param showSummary 是否显示合计行
|
|
200
|
+
* @param sumText 合计行文本
|
|
201
|
+
* @param summaryMethod 合计行自定义方法
|
|
202
|
+
*/
|
|
203
|
+
export declare function getExportData(data: DataItem[], columns: Columns, spanMethod?: SpanMethod, pageIndex?: number, showSummary?: boolean, sumText?: string, summaryMethod?: SummaryMethod): ExportDataResult;
|
|
204
|
+
/**
|
|
205
|
+
* 导出csv文件
|
|
206
|
+
* @param fileName 文件名
|
|
207
|
+
* @param headerData 表头数据
|
|
208
|
+
* @param bodyData 主体数据
|
|
209
|
+
*/
|
|
210
|
+
export declare function exportCSV(fileName: string, headerData: ExportDataItem[][], bodyData: ExportDataItem[][], footerData: ExportDataItem[][]): void;
|
|
211
|
+
/**
|
|
212
|
+
* 导出判断列是否显示
|
|
213
|
+
* @param item 列配置
|
|
214
|
+
*/
|
|
215
|
+
export declare function columnsExportFilter(item: Column): boolean;
|
|
216
|
+
/**
|
|
217
|
+
* 打印判断列是否显示
|
|
218
|
+
* @param item 列配置
|
|
171
219
|
*/
|
|
172
|
-
export declare function
|
|
220
|
+
export declare function columnsPrintFilter(item: Column): boolean;
|
package/es/ele-pro-table/util.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { omit, eachTree, findTree, uuid, mapTree } from "../utils/core";
|
|
2
|
+
import { getValue, getColFixedNumber } from "../ele-data-table/util";
|
|
3
|
+
import { getIndexValue, analyseColumns, getCellSpan, getUserSums, getSumValue } from "../ele-virtual-table/util";
|
|
3
4
|
function mergeProps(props, globalProps) {
|
|
4
5
|
if (props == null) {
|
|
5
6
|
return globalProps ?? true;
|
|
@@ -64,6 +65,8 @@ function getDefaultFilter(columns) {
|
|
|
64
65
|
}
|
|
65
66
|
function getRequestName(globalRequest, request) {
|
|
66
67
|
const defaultRequest = {
|
|
68
|
+
pageName: "page",
|
|
69
|
+
limitName: "limit",
|
|
67
70
|
sortName: "sort",
|
|
68
71
|
orderName: "order",
|
|
69
72
|
ascValue: "asc",
|
|
@@ -142,6 +145,16 @@ function getRequestFilters(filter) {
|
|
|
142
145
|
}
|
|
143
146
|
return filters;
|
|
144
147
|
}
|
|
148
|
+
function getRequestPages(page, limit, request, globalRequest) {
|
|
149
|
+
const pages = {};
|
|
150
|
+
const { pageName, limitName } = getRequestName(globalRequest, request);
|
|
151
|
+
if (!pageName || !limitName) {
|
|
152
|
+
return pages;
|
|
153
|
+
}
|
|
154
|
+
pages[pageName] = page;
|
|
155
|
+
pages[limitName] = limit;
|
|
156
|
+
return pages;
|
|
157
|
+
}
|
|
145
158
|
function getResponseResult(data, response, globalResponse, lazy, treeOpt) {
|
|
146
159
|
if (!data || Array.isArray(data)) {
|
|
147
160
|
return { data: getResponseData(data, lazy, treeOpt) };
|
|
@@ -204,7 +217,10 @@ function sortData(datasource, sorter) {
|
|
|
204
217
|
return data;
|
|
205
218
|
}
|
|
206
219
|
function getColId(column) {
|
|
207
|
-
|
|
220
|
+
if (column.columnKey == null || column.columnKey === "") {
|
|
221
|
+
return column.prop;
|
|
222
|
+
}
|
|
223
|
+
return column.columnKey;
|
|
208
224
|
}
|
|
209
225
|
function getInitColumns(columns) {
|
|
210
226
|
const data = [];
|
|
@@ -230,7 +246,7 @@ function getInitCacheColumns(columns, cacheKey, sortable) {
|
|
|
230
246
|
}
|
|
231
247
|
return getCheckedColumns(columns, cache, sortable);
|
|
232
248
|
}
|
|
233
|
-
function getCheckedColumns(columns, cols, sortable) {
|
|
249
|
+
function getCheckedColumns(columns, cols, sortable, filter) {
|
|
234
250
|
const data = [];
|
|
235
251
|
if (!columns || !columns.length) {
|
|
236
252
|
return data;
|
|
@@ -240,26 +256,23 @@ function getCheckedColumns(columns, cols, sortable) {
|
|
|
240
256
|
if (colId == null) {
|
|
241
257
|
return;
|
|
242
258
|
}
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
return false;
|
|
248
|
-
}
|
|
249
|
-
});
|
|
259
|
+
if (filter && !filter(d)) {
|
|
260
|
+
return;
|
|
261
|
+
}
|
|
262
|
+
const temp = findTree(cols, (t) => t.uid === colId);
|
|
250
263
|
if (temp && !temp.checked) {
|
|
251
264
|
return;
|
|
252
265
|
}
|
|
253
266
|
const fixed = (temp == null ? void 0 : temp.fixed) ?? d.fixed;
|
|
254
267
|
const uid = uuid(8);
|
|
255
|
-
if (d.children) {
|
|
256
|
-
const children = getCheckedColumns(d.children, cols, sortable);
|
|
268
|
+
if (d.children && d.children.length) {
|
|
269
|
+
const children = getCheckedColumns(d.children, cols, sortable, filter);
|
|
257
270
|
if (children.length) {
|
|
258
271
|
data.push({ ...d, fixed, uid, children });
|
|
259
272
|
}
|
|
260
|
-
|
|
261
|
-
data.push({ ...d, fixed, uid });
|
|
273
|
+
return;
|
|
262
274
|
}
|
|
275
|
+
data.push({ ...d, fixed, uid });
|
|
263
276
|
});
|
|
264
277
|
if (!sortable || !data.length) {
|
|
265
278
|
return data;
|
|
@@ -305,6 +318,28 @@ function getCheckedColumns(columns, cols, sortable) {
|
|
|
305
318
|
});
|
|
306
319
|
return data;
|
|
307
320
|
}
|
|
321
|
+
function getColItems(columns, untitledText, filter, sortFixed, cancelFixed) {
|
|
322
|
+
const temp = columns == null ? [] : [...columns];
|
|
323
|
+
if (sortFixed) {
|
|
324
|
+
temp.sort((a, b) => {
|
|
325
|
+
return getColFixedNumber(a.fixed) - getColFixedNumber(b.fixed);
|
|
326
|
+
});
|
|
327
|
+
}
|
|
328
|
+
return mapTree(temp, (d, _i, parent) => {
|
|
329
|
+
const colId = getColId(d);
|
|
330
|
+
if (colId == null || filter && !filter(d)) {
|
|
331
|
+
return;
|
|
332
|
+
}
|
|
333
|
+
return {
|
|
334
|
+
uid: colId,
|
|
335
|
+
//prop: d.prop,
|
|
336
|
+
//columnKey: d.columnKey,
|
|
337
|
+
label: d.label || untitledText,
|
|
338
|
+
checked: !d.hideInTable,
|
|
339
|
+
fixed: cancelFixed ? false : parent == null ? d.fixed : false
|
|
340
|
+
};
|
|
341
|
+
});
|
|
342
|
+
}
|
|
308
343
|
function getSettingCols(columns, untitledText, cacheKey) {
|
|
309
344
|
const cacheResult = getCacheCols(cacheKey);
|
|
310
345
|
if (cacheResult) {
|
|
@@ -359,31 +394,122 @@ function getCacheSize(cacheKey) {
|
|
|
359
394
|
}
|
|
360
395
|
}
|
|
361
396
|
}
|
|
362
|
-
function getDefaultRowKey(rowKey) {
|
|
363
|
-
return rowKey ? void 0 : "_rowKey";
|
|
364
|
-
}
|
|
365
397
|
function getRowKey(rowKey) {
|
|
366
|
-
|
|
398
|
+
if (rowKey != null) {
|
|
399
|
+
return rowKey;
|
|
400
|
+
}
|
|
401
|
+
return (row) => {
|
|
402
|
+
return JSON.stringify(row);
|
|
403
|
+
};
|
|
367
404
|
}
|
|
368
|
-
function
|
|
369
|
-
if (
|
|
370
|
-
return
|
|
405
|
+
function getCellText(column, row, index, pageIndex) {
|
|
406
|
+
if (!column) {
|
|
407
|
+
return "";
|
|
371
408
|
}
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
409
|
+
if (column.type === "index") {
|
|
410
|
+
return getIndexValue(index, column.index, pageIndex);
|
|
411
|
+
}
|
|
412
|
+
const propValue = getValue(row, column.prop);
|
|
413
|
+
if (typeof column.formatter === "function") {
|
|
414
|
+
return column.formatter(row, column, propValue, index);
|
|
415
|
+
}
|
|
416
|
+
return propValue == null ? "" : String(propValue);
|
|
417
|
+
}
|
|
418
|
+
function getHeaderCellText(column, index) {
|
|
419
|
+
if (!column) {
|
|
420
|
+
return "";
|
|
421
|
+
}
|
|
422
|
+
if (typeof column.renderHeader === "function") {
|
|
423
|
+
return column.renderHeader({ column, $index: index });
|
|
424
|
+
}
|
|
425
|
+
return column.label == null ? "" : String(column.label);
|
|
426
|
+
}
|
|
427
|
+
function getExportData(data, columns, spanMethod, pageIndex, showSummary, sumText, summaryMethod) {
|
|
428
|
+
const { rows: headerRows, cols: bodyCols } = analyseColumns(columns);
|
|
429
|
+
const bodyData = [];
|
|
430
|
+
data.forEach((row, index) => {
|
|
431
|
+
const bodyRowData = [];
|
|
432
|
+
bodyCols.forEach((col, columnIndex) => {
|
|
433
|
+
const { key, originalCol: column } = col;
|
|
434
|
+
const { colspan, rowspan } = getCellSpan(
|
|
435
|
+
{ column, columnIndex, row, rowIndex: index },
|
|
436
|
+
spanMethod
|
|
437
|
+
);
|
|
438
|
+
const isNone = colspan == 0 || rowspan == 0;
|
|
439
|
+
const text = isNone ? "" : getCellText(column, row, index, pageIndex);
|
|
440
|
+
bodyRowData.push({ key, row, index, column, text, colspan, rowspan });
|
|
441
|
+
});
|
|
442
|
+
bodyData.push(bodyRowData);
|
|
376
443
|
});
|
|
444
|
+
const headerData = [];
|
|
445
|
+
headerRows.forEach((headerCols, index) => {
|
|
446
|
+
const headerRowData = [];
|
|
447
|
+
headerCols.forEach((col) => {
|
|
448
|
+
const { key, colspan, rowspan, originalCol: column } = col;
|
|
449
|
+
const isNone = colspan == 0 || rowspan == 0;
|
|
450
|
+
const text = isNone ? "" : getHeaderCellText(column, index);
|
|
451
|
+
headerRowData.push({ key, index, column, text, colspan, rowspan });
|
|
452
|
+
});
|
|
453
|
+
headerData.push(headerRowData);
|
|
454
|
+
});
|
|
455
|
+
const footerData = [];
|
|
456
|
+
if (showSummary && data.length) {
|
|
457
|
+
const footerRowData = [];
|
|
458
|
+
const userSums = getUserSums(summaryMethod, bodyCols, data);
|
|
459
|
+
bodyCols.forEach((col, i) => {
|
|
460
|
+
const { key, dataKey, originalCol: column } = col;
|
|
461
|
+
const sumValue = getSumValue(data, dataKey);
|
|
462
|
+
footerRowData.push({
|
|
463
|
+
key,
|
|
464
|
+
column,
|
|
465
|
+
text: userSums == null ? i === 0 ? sumText : sumValue : userSums[i],
|
|
466
|
+
index: 0
|
|
467
|
+
});
|
|
468
|
+
});
|
|
469
|
+
footerData.push(footerRowData);
|
|
470
|
+
}
|
|
471
|
+
return { headerData, bodyData, footerData, bodyCols };
|
|
472
|
+
}
|
|
473
|
+
function exportCSV(fileName, headerData, bodyData, footerData) {
|
|
474
|
+
const csvRows = [];
|
|
475
|
+
[...headerData, ...bodyData, ...footerData].forEach((item) => {
|
|
476
|
+
csvRows.push(item.map((d) => d.text ?? "").join(","));
|
|
477
|
+
});
|
|
478
|
+
const content = encodeURIComponent(csvRows.join("\n"));
|
|
479
|
+
const a = document.createElement("a");
|
|
480
|
+
a.href = "data:text/csv;charset=utf-8," + content;
|
|
481
|
+
a.download = fileName + ".csv";
|
|
482
|
+
a.style.display = "none";
|
|
483
|
+
document.body.appendChild(a);
|
|
484
|
+
a.click();
|
|
485
|
+
document.body.removeChild(a);
|
|
486
|
+
}
|
|
487
|
+
function columnsExportFilter(item) {
|
|
488
|
+
if (item.hideInExport) {
|
|
489
|
+
return false;
|
|
490
|
+
}
|
|
491
|
+
return !item.type || !["selection", "expand"].includes(item.type);
|
|
492
|
+
}
|
|
493
|
+
function columnsPrintFilter(item) {
|
|
494
|
+
if (item.hideInPrint) {
|
|
495
|
+
return false;
|
|
496
|
+
}
|
|
497
|
+
return !item.type || !["selection", "expand"].includes(item.type);
|
|
377
498
|
}
|
|
378
499
|
export {
|
|
379
|
-
|
|
500
|
+
columnsExportFilter,
|
|
501
|
+
columnsPrintFilter,
|
|
502
|
+
exportCSV,
|
|
380
503
|
getCacheCols,
|
|
381
504
|
getCacheSize,
|
|
505
|
+
getCellText,
|
|
382
506
|
getCheckedColumns,
|
|
383
507
|
getColId,
|
|
508
|
+
getColItems,
|
|
384
509
|
getColsCacheKey,
|
|
385
510
|
getDefaultFilter,
|
|
386
|
-
|
|
511
|
+
getExportData,
|
|
512
|
+
getHeaderCellText,
|
|
387
513
|
getInitCacheColumns,
|
|
388
514
|
getInitColumns,
|
|
389
515
|
getOrderItems,
|
|
@@ -391,6 +517,7 @@ export {
|
|
|
391
517
|
getRequestFilters,
|
|
392
518
|
getRequestName,
|
|
393
519
|
getRequestOrders,
|
|
520
|
+
getRequestPages,
|
|
394
521
|
getResponseData,
|
|
395
522
|
getResponseName,
|
|
396
523
|
getResponseResult,
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { StyleValues } from '../ele-app/types';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<{
|
|
3
4
|
value: StringConstructor;
|
|
4
5
|
size: {
|
|
5
6
|
type: NumberConstructor;
|
|
6
7
|
default: number;
|
|
7
8
|
};
|
|
8
9
|
level: {
|
|
9
|
-
type: import(
|
|
10
|
+
type: import('vue').PropType<import('./types').Level>;
|
|
10
11
|
default: string;
|
|
11
12
|
};
|
|
12
13
|
bgColor: {
|
|
@@ -21,24 +22,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
21
22
|
type: NumberConstructor;
|
|
22
23
|
default: number;
|
|
23
24
|
};
|
|
24
|
-
imageSettings: import(
|
|
25
|
-
customStyle: import(
|
|
25
|
+
imageSettings: import('vue').PropType<import('./types').ImageSettings>;
|
|
26
|
+
customStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
26
27
|
}, {
|
|
27
|
-
canvasRef: import(
|
|
28
|
-
imageRef: import(
|
|
29
|
-
imageSrc: import(
|
|
30
|
-
canvasStyle: import(
|
|
28
|
+
canvasRef: import('vue').Ref<HTMLCanvasElement | null>;
|
|
29
|
+
imageRef: import('vue').Ref<HTMLImageElement | null>;
|
|
30
|
+
imageSrc: import('vue').ComputedRef<string | undefined>;
|
|
31
|
+
canvasStyle: import('vue').ComputedRef<StyleValues>;
|
|
31
32
|
render: () => void;
|
|
32
|
-
}, unknown, {}, {}, import(
|
|
33
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
33
34
|
done: () => boolean;
|
|
34
|
-
}, string, import(
|
|
35
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
35
36
|
value: StringConstructor;
|
|
36
37
|
size: {
|
|
37
38
|
type: NumberConstructor;
|
|
38
39
|
default: number;
|
|
39
40
|
};
|
|
40
41
|
level: {
|
|
41
|
-
type: import(
|
|
42
|
+
type: import('vue').PropType<import('./types').Level>;
|
|
42
43
|
default: string;
|
|
43
44
|
};
|
|
44
45
|
bgColor: {
|
|
@@ -53,14 +54,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
53
54
|
type: NumberConstructor;
|
|
54
55
|
default: number;
|
|
55
56
|
};
|
|
56
|
-
imageSettings: import(
|
|
57
|
-
customStyle: import(
|
|
57
|
+
imageSettings: import('vue').PropType<import('./types').ImageSettings>;
|
|
58
|
+
customStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
58
59
|
}>> & {
|
|
59
60
|
onDone?: (() => any) | undefined;
|
|
60
61
|
}, {
|
|
61
62
|
margin: number;
|
|
62
63
|
size: number;
|
|
63
|
-
level: import(
|
|
64
|
+
level: import('./types').Level;
|
|
64
65
|
bgColor: string;
|
|
65
66
|
fgColor: string;
|
|
66
67
|
}, {}>;
|