ele-admin-plus 1.1.9-beta.9 → 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 +2 -1
- package/es/ele-app/index.d.ts +2 -2
- 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 +4 -3
- 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 +3 -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 +63 -68
- package/es/ele-data-table/props.d.ts +36 -41
- package/es/ele-data-table/types.d.ts +8 -16
- package/es/ele-data-table/util.d.ts +10 -9
- 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 +85 -146
- 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 -31
- package/es/ele-pagination/index.js +4 -1
- package/es/ele-pagination/props.d.ts +17 -11
- package/es/ele-pagination/props.js +5 -0
- 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-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 +22 -21
- package/es/ele-pro-table/components/table-tools.js +1 -1
- package/es/ele-pro-table/components/tool-column-list.d.ts +6 -5
- package/es/ele-pro-table/components/tool-column-list.js +3 -7
- package/es/ele-pro-table/components/tool-column.d.ts +14 -13
- package/es/ele-pro-table/components/tool-column.js +3 -7
- package/es/ele-pro-table/components/tool-export.d.ts +24 -302
- package/es/ele-pro-table/components/tool-export.js +10 -12
- package/es/ele-pro-table/components/tool-print-body-cell.d.ts +13 -12
- package/es/ele-pro-table/components/tool-print-header-cell.d.ts +13 -12
- package/es/ele-pro-table/components/tool-print.d.ts +30 -747
- package/es/ele-pro-table/components/tool-print.js +26 -18
- package/es/ele-pro-table/index.d.ts +131 -143
- package/es/ele-pro-table/index.js +51 -29
- package/es/ele-pro-table/props.d.ts +44 -46
- package/es/ele-pro-table/types.d.ts +13 -0
- package/es/ele-pro-table/util.d.ts +26 -22
- package/es/ele-pro-table/util.js +49 -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 +4 -4
- package/es/ele-table/props.d.ts +3 -2
- 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 +7 -7
- package/es/ele-tool/props.d.ts +3 -2
- 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 -64
- package/es/ele-virtual-table/components/body-cell.js +52 -70
- 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 +19 -14
- 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 +88 -68
- package/es/ele-virtual-table/util.d.ts +13 -11
- package/es/ele-virtual-table/util.js +25 -22
- 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 +1 -1
- 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/VerticalRightOutlined.d.ts +1 -1
- package/es/icons/WarningOutlined.d.ts +1 -1
- package/es/icons/ZoomInOutlined.d.ts +1 -1
- package/es/icons/ZoomOutOutlined.d.ts +1 -1
- package/es/icons/index.d.ts +1 -0
- package/es/icons/index.js +50 -48
- package/es/installer.d.ts +2 -2
- package/es/lang/en_US.d.ts +2 -2
- package/es/lang/zh_CN.d.ts +2 -2
- package/es/lang/zh_TW.d.ts +2 -2
- 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/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 +2 -1
- package/lib/ele-app/index.d.ts +2 -2
- 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.d.ts +4 -3
- 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 +3 -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.d.ts +63 -68
- package/lib/ele-data-table/props.d.ts +36 -41
- package/lib/ele-data-table/types.d.ts +8 -16
- package/lib/ele-data-table/util.d.ts +10 -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 +85 -146
- 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 +4 -1
- package/lib/ele-pagination/index.d.ts +40 -31
- package/lib/ele-pagination/props.cjs +5 -0
- package/lib/ele-pagination/props.d.ts +17 -11
- 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.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 +1 -1
- package/lib/ele-pro-table/components/table-tools.d.ts +22 -21
- package/lib/ele-pro-table/components/tool-column-list.cjs +2 -6
- package/lib/ele-pro-table/components/tool-column-list.d.ts +6 -5
- package/lib/ele-pro-table/components/tool-column.cjs +2 -6
- package/lib/ele-pro-table/components/tool-column.d.ts +14 -13
- package/lib/ele-pro-table/components/tool-export.cjs +9 -11
- package/lib/ele-pro-table/components/tool-export.d.ts +24 -302
- package/lib/ele-pro-table/components/tool-print-body-cell.d.ts +13 -12
- package/lib/ele-pro-table/components/tool-print-header-cell.d.ts +13 -12
- package/lib/ele-pro-table/components/tool-print.cjs +24 -16
- package/lib/ele-pro-table/components/tool-print.d.ts +30 -747
- package/lib/ele-pro-table/index.cjs +49 -27
- package/lib/ele-pro-table/index.d.ts +131 -143
- package/lib/ele-pro-table/props.d.ts +44 -46
- package/lib/ele-pro-table/types.d.ts +13 -0
- package/lib/ele-pro-table/util.cjs +48 -27
- package/lib/ele-pro-table/util.d.ts +26 -22
- 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.d.ts +4 -4
- package/lib/ele-table/props.d.ts +3 -2
- 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.d.ts +7 -7
- package/lib/ele-tool/props.d.ts +3 -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 +52 -70
- package/lib/ele-virtual-table/components/body-cell.d.ts +100 -64
- 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 +19 -14
- 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 +88 -68
- package/lib/ele-virtual-table/util.cjs +25 -22
- package/lib/ele-virtual-table/util.d.ts +13 -11
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- package/lib/icons/VerticalRightOutlined.d.ts +1 -1
- package/lib/icons/WarningOutlined.d.ts +1 -1
- package/lib/icons/ZoomInOutlined.d.ts +1 -1
- package/lib/icons/ZoomOutOutlined.d.ts +1 -1
- package/lib/icons/index.cjs +2 -0
- package/lib/icons/index.d.ts +1 -0
- package/lib/installer.d.ts +2 -2
- package/lib/lang/en_US.d.ts +2 -2
- package/lib/lang/zh_CN.d.ts +2 -2
- 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.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,
|
|
@@ -179,11 +181,7 @@ const _sfc_main = defineComponent({
|
|
|
179
181
|
tableLimit.value
|
|
180
182
|
);
|
|
181
183
|
cacheData.value = props.datasource;
|
|
182
|
-
tableData.value =
|
|
183
|
-
data,
|
|
184
|
-
getDefaultRowKey(props.rowKey),
|
|
185
|
-
tablePage.value
|
|
186
|
-
);
|
|
184
|
+
tableData.value = data;
|
|
187
185
|
tablePage.value = page;
|
|
188
186
|
tableTotal.value = total;
|
|
189
187
|
onDone({ data, page, total, response: props.datasource });
|
|
@@ -201,6 +199,12 @@ const _sfc_main = defineComponent({
|
|
|
201
199
|
props.datasource({
|
|
202
200
|
page: tablePage.value,
|
|
203
201
|
limit: tableLimit.value,
|
|
202
|
+
pages: getRequestPages(
|
|
203
|
+
tablePage.value,
|
|
204
|
+
tableLimit.value,
|
|
205
|
+
props.request,
|
|
206
|
+
globalProps.value.request
|
|
207
|
+
),
|
|
204
208
|
where: Object.assign({}, tableState.where),
|
|
205
209
|
orders,
|
|
206
210
|
filters: getRequestFilters(filter),
|
|
@@ -251,11 +255,7 @@ const _sfc_main = defineComponent({
|
|
|
251
255
|
return;
|
|
252
256
|
}
|
|
253
257
|
}
|
|
254
|
-
tableData.value =
|
|
255
|
-
data,
|
|
256
|
-
getDefaultRowKey(props.rowKey),
|
|
257
|
-
tablePage.value
|
|
258
|
-
);
|
|
258
|
+
tableData.value = data;
|
|
259
259
|
tableTotal.value = total || data.length;
|
|
260
260
|
}
|
|
261
261
|
tableLoading.value = false;
|
|
@@ -278,12 +278,12 @@ const _sfc_main = defineComponent({
|
|
|
278
278
|
nextTick(() => {
|
|
279
279
|
if (props.current != null) {
|
|
280
280
|
methods.setCurrentRowKey(
|
|
281
|
-
getValue(props.current,
|
|
281
|
+
getValue(props.current, tableRowKey.value)
|
|
282
282
|
);
|
|
283
283
|
}
|
|
284
284
|
if (props.selections != null && props.selections.length) {
|
|
285
285
|
methods.setSelectedRowKeys(
|
|
286
|
-
getRowKeys(props.selections,
|
|
286
|
+
getRowKeys(props.selections, tableRowKey.value)
|
|
287
287
|
);
|
|
288
288
|
}
|
|
289
289
|
});
|
|
@@ -358,17 +358,13 @@ const _sfc_main = defineComponent({
|
|
|
358
358
|
return tableData.value;
|
|
359
359
|
};
|
|
360
360
|
const setData = (data) => {
|
|
361
|
-
tableData.value =
|
|
362
|
-
data,
|
|
363
|
-
getDefaultRowKey(props.rowKey),
|
|
364
|
-
tablePage.value
|
|
365
|
-
);
|
|
361
|
+
tableData.value = data;
|
|
366
362
|
};
|
|
367
363
|
const goPageByRowKey = (key) => {
|
|
368
364
|
if (!paginationProps.value || tableLimit.value == null || isFunctionSource.value) {
|
|
369
365
|
return;
|
|
370
366
|
}
|
|
371
|
-
const rowKey =
|
|
367
|
+
const rowKey = tableRowKey.value;
|
|
372
368
|
const data = sortData(props.datasource, tableState.sorter);
|
|
373
369
|
const index2 = data.findIndex((d) => getValue(d, rowKey) === key);
|
|
374
370
|
const page = Math.floor(index2 / tableLimit.value) + 1;
|
|
@@ -386,6 +382,12 @@ const _sfc_main = defineComponent({
|
|
|
386
382
|
callback({
|
|
387
383
|
page: tablePage.value,
|
|
388
384
|
limit: tableLimit.value,
|
|
385
|
+
pages: getRequestPages(
|
|
386
|
+
tablePage.value,
|
|
387
|
+
tableLimit.value,
|
|
388
|
+
props.request,
|
|
389
|
+
globalProps.value.request
|
|
390
|
+
),
|
|
389
391
|
where: Object.assign({}, tableState.where),
|
|
390
392
|
orders,
|
|
391
393
|
filters: getRequestFilters(filter),
|
|
@@ -433,15 +435,19 @@ const _sfc_main = defineComponent({
|
|
|
433
435
|
watch(
|
|
434
436
|
() => props.current,
|
|
435
437
|
(current) => {
|
|
436
|
-
methods.setCurrentRowKey(getValue(current,
|
|
438
|
+
methods.setCurrentRowKey(getValue(current, tableRowKey.value));
|
|
437
439
|
}
|
|
438
440
|
);
|
|
439
441
|
watch(
|
|
440
442
|
() => props.selections,
|
|
441
443
|
(selections) => {
|
|
442
|
-
methods.setSelectedRowKeys(
|
|
443
|
-
|
|
444
|
-
|
|
444
|
+
methods.setSelectedRowKeys(getRowKeys(selections, tableRowKey.value));
|
|
445
|
+
}
|
|
446
|
+
);
|
|
447
|
+
watch(
|
|
448
|
+
() => props.rowKey,
|
|
449
|
+
() => {
|
|
450
|
+
tableRowKey.value = getRowKey(props.rowKey);
|
|
445
451
|
}
|
|
446
452
|
);
|
|
447
453
|
watch(
|
|
@@ -564,7 +570,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
564
570
|
renderSlot(_ctx.$slots, "default"),
|
|
565
571
|
_ctx.virtual ? (openBlock(), createBlock(_component_EleVirtualTable, mergeProps$1({ key: 1 }, _ctx.tableProps, { ref: "tableViewRef" }), createSlots({ _: 2 }, [
|
|
566
572
|
renderList(Object.keys(_ctx.$slots).filter(
|
|
567
|
-
(k) => ![
|
|
573
|
+
(k) => ![
|
|
574
|
+
"default",
|
|
575
|
+
"toolbar",
|
|
576
|
+
"tools",
|
|
577
|
+
"footer",
|
|
578
|
+
"printTop",
|
|
579
|
+
"printBottom"
|
|
580
|
+
].includes(k)
|
|
568
581
|
), (name) => {
|
|
569
582
|
return {
|
|
570
583
|
name,
|
|
@@ -575,7 +588,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
575
588
|
})
|
|
576
589
|
]), 1040)) : (openBlock(), createBlock(_component_EleDataTable, mergeProps$1({ key: 2 }, _ctx.tableProps, { ref: "tableViewRef" }), createSlots({ _: 2 }, [
|
|
577
590
|
renderList(Object.keys(_ctx.$slots).filter(
|
|
578
|
-
(k) => ![
|
|
591
|
+
(k) => ![
|
|
592
|
+
"default",
|
|
593
|
+
"toolbar",
|
|
594
|
+
"tools",
|
|
595
|
+
"footer",
|
|
596
|
+
"printTop",
|
|
597
|
+
"printBottom"
|
|
598
|
+
].includes(k)
|
|
579
599
|
), (name) => {
|
|
580
600
|
return {
|
|
581
601
|
name,
|
|
@@ -602,7 +622,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
602
622
|
"tools",
|
|
603
623
|
"footer",
|
|
604
624
|
"empty",
|
|
605
|
-
"append"
|
|
625
|
+
"append",
|
|
626
|
+
"printTop",
|
|
627
|
+
"printBottom"
|
|
606
628
|
].includes(k)
|
|
607
629
|
), (name) => {
|
|
608
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>;
|
|
@@ -86,14 +87,14 @@ export declare const proTableProps: {
|
|
|
86
87
|
exportConfig: PropType<ExportConfig>;
|
|
87
88
|
/** 打印配置 */
|
|
88
89
|
printConfig: PropType<PrintConfig>;
|
|
89
|
-
width: (StringConstructor | NumberConstructor)[];
|
|
90
|
-
height: (StringConstructor | NumberConstructor)[];
|
|
91
90
|
size: {
|
|
92
|
-
readonly type: PropType<import(
|
|
91
|
+
readonly type: PropType<import('element-plus/es/utils/index').EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
|
|
93
92
|
readonly required: false;
|
|
94
93
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
95
94
|
__epPropKey: true;
|
|
96
95
|
};
|
|
96
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
97
|
+
height: (StringConstructor | NumberConstructor)[];
|
|
97
98
|
maxHeight: (StringConstructor | NumberConstructor)[];
|
|
98
99
|
fit: {
|
|
99
100
|
type: BooleanConstructor;
|
|
@@ -108,11 +109,8 @@ export declare const proTableProps: {
|
|
|
108
109
|
type: PropType<Columns>;
|
|
109
110
|
required: boolean;
|
|
110
111
|
};
|
|
111
|
-
scrollbarAlwaysOn:
|
|
112
|
-
|
|
113
|
-
default: boolean;
|
|
114
|
-
};
|
|
115
|
-
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>;
|
|
116
114
|
emptyText: StringConstructor;
|
|
117
115
|
indent: {
|
|
118
116
|
type: NumberConstructor;
|
|
@@ -132,26 +130,26 @@ export declare const proTableProps: {
|
|
|
132
130
|
};
|
|
133
131
|
showSummary: BooleanConstructor;
|
|
134
132
|
sumText: StringConstructor;
|
|
135
|
-
summaryMethod: PropType<import(
|
|
136
|
-
rowClassName: PropType<import(
|
|
137
|
-
rowStyle: PropType<import(
|
|
138
|
-
cellClassName: PropType<import(
|
|
139
|
-
cellStyle: PropType<import(
|
|
140
|
-
headerRowClassName: PropType<import(
|
|
141
|
-
headerRowStyle: PropType<import(
|
|
142
|
-
headerCellClassName: PropType<import(
|
|
143
|
-
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>;
|
|
144
142
|
highlightCurrentRow: BooleanConstructor;
|
|
145
143
|
currentRowKey: (StringConstructor | NumberConstructor)[];
|
|
146
144
|
expandRowKeys: PropType<any[] | undefined>;
|
|
147
145
|
defaultExpandAll: BooleanConstructor;
|
|
148
|
-
defaultSort: PropType<import(
|
|
146
|
+
defaultSort: PropType<import('element-plus').Sort | undefined>;
|
|
149
147
|
tooltipEffect: StringConstructor;
|
|
150
|
-
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>;
|
|
151
149
|
spanMethod: PropType<((data: {
|
|
152
150
|
row: any;
|
|
153
151
|
rowIndex: number;
|
|
154
|
-
column: import(
|
|
152
|
+
column: import('element-plus').TableColumnCtx<any>;
|
|
155
153
|
columnIndex: number;
|
|
156
154
|
}) => number[] | {
|
|
157
155
|
rowspan: number;
|
|
@@ -171,9 +169,9 @@ export declare const proTableProps: {
|
|
|
171
169
|
children: string;
|
|
172
170
|
};
|
|
173
171
|
};
|
|
174
|
-
load: PropType<((row: any, treeNode: import(
|
|
172
|
+
load: PropType<((row: any, treeNode: import('element-plus').TreeNode, resolve: (data: any[]) => void) => void) | undefined>;
|
|
175
173
|
tableLayout: {
|
|
176
|
-
type: PropType<"
|
|
174
|
+
type: PropType<"fixed" | "auto">;
|
|
177
175
|
default: string;
|
|
178
176
|
};
|
|
179
177
|
flexible: BooleanConstructor;
|
|
@@ -192,12 +190,12 @@ export declare const proTableProps: {
|
|
|
192
190
|
default: boolean;
|
|
193
191
|
};
|
|
194
192
|
emptyProps: {
|
|
195
|
-
type: PropType<import(
|
|
193
|
+
type: PropType<import('../ele-data-table/types').TableEmptyProps>;
|
|
196
194
|
default: () => null;
|
|
197
195
|
};
|
|
198
|
-
rowClickChecked: PropType<import(
|
|
196
|
+
rowClickChecked: PropType<import('../ele-data-table/types').RowClickChecked>;
|
|
199
197
|
reserveCurrent: BooleanConstructor;
|
|
200
|
-
selectedRowKeys: PropType<import(
|
|
198
|
+
selectedRowKeys: PropType<import('../ele-data-table/types').DataKey[]>;
|
|
201
199
|
};
|
|
202
200
|
export type ProTableProps = ExtractPropTypes<typeof proTableProps>;
|
|
203
201
|
/**
|
|
@@ -221,22 +219,22 @@ export declare const proTableEmits: {
|
|
|
221
219
|
select: (_selection: DataItem[], _row: DataItem) => boolean;
|
|
222
220
|
selectAll: (_selection: DataItem[]) => boolean;
|
|
223
221
|
selectionChange: (_selection: DataItem[]) => boolean;
|
|
224
|
-
cellMouseEnter: (_row: DataItem, _column: import(
|
|
225
|
-
cellMouseLeave: (_row: DataItem, _column: import(
|
|
226
|
-
cellClick: (_row: DataItem, _column: import(
|
|
227
|
-
cellDblclick: (_row: DataItem, _column: import(
|
|
228
|
-
cellContextmenu: (_row: DataItem, _column: import(
|
|
229
|
-
rowClick: (_row: DataItem, _column: import(
|
|
230
|
-
rowContextmenu: (_row: DataItem, _column: import(
|
|
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;
|
|
231
229
|
/** 导出配置 */
|
|
232
|
-
rowDblclick: (_row: DataItem, _column: import(
|
|
233
|
-
headerClick: (_column: import(
|
|
234
|
-
headerContextmenu: (_column: import(
|
|
235
|
-
sortChange: (_sorter: import(
|
|
236
|
-
filterChange: (_filter: import(
|
|
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;
|
|
237
235
|
currentChange: (_current?: DataItem | null | undefined, _old?: DataItem | null | undefined) => boolean;
|
|
238
|
-
headerDragend: (_width: number, _old: number, _column: import(
|
|
236
|
+
headerDragend: (_width: number, _old: number, _column: import('./types').Column, _e: MouseEvent) => boolean;
|
|
239
237
|
expandChange: (_row: DataItem, _expanded: boolean) => boolean;
|
|
240
|
-
'update:currentRowKey': (_currentRowKey?: import(
|
|
241
|
-
'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; /** 数组数据源时刷新按钮点击事件 */
|
|
242
240
|
};
|
|
@@ -29,6 +29,11 @@ export type {
|
|
|
29
29
|
ResolveFunction
|
|
30
30
|
};
|
|
31
31
|
|
|
32
|
+
/**
|
|
33
|
+
* 分页参数
|
|
34
|
+
*/
|
|
35
|
+
export type Pages = Record<string, number>;
|
|
36
|
+
|
|
32
37
|
/**
|
|
33
38
|
* 搜索参数
|
|
34
39
|
*/
|
|
@@ -52,6 +57,8 @@ export interface DatasourceParams {
|
|
|
52
57
|
page?: number;
|
|
53
58
|
/** 每页显示数量 */
|
|
54
59
|
limit?: number;
|
|
60
|
+
/** 分页参数 */
|
|
61
|
+
pages: Pages;
|
|
55
62
|
/** 搜索参数 */
|
|
56
63
|
where: Where;
|
|
57
64
|
/** 排序参数 */
|
|
@@ -121,6 +128,10 @@ export type OrderValue = string | number | boolean | null | undefined;
|
|
|
121
128
|
* 请求参数设置
|
|
122
129
|
*/
|
|
123
130
|
export interface RequestOption {
|
|
131
|
+
/** 页码参数名称 */
|
|
132
|
+
pageName?: string;
|
|
133
|
+
/** 每页数量参数名称 */
|
|
134
|
+
limitName?: string;
|
|
124
135
|
/** 排序字段参数名称 */
|
|
125
136
|
sortName?: string;
|
|
126
137
|
/** 排序方式参数名称 */
|
|
@@ -387,6 +398,8 @@ export interface TablePrintOptions extends ExportDataResult {
|
|
|
387
398
|
hasHeader: boolean;
|
|
388
399
|
/** 是否有表尾 */
|
|
389
400
|
hasFooter: boolean;
|
|
401
|
+
/** 打印的数据 */
|
|
402
|
+
data: DataItem[];
|
|
390
403
|
}
|
|
391
404
|
|
|
392
405
|
/**
|
|
@@ -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 列数据
|
|
@@ -130,11 +139,13 @@ export declare function getInitCacheColumns(columns: Columns, cacheKey?: string,
|
|
|
130
139
|
export declare function getCheckedColumns(columns: Columns | undefined, cols: ColItem[], sortable?: boolean, filter?: (item: Column) => boolean): Columns;
|
|
131
140
|
/**
|
|
132
141
|
* 获取列展示列表数据
|
|
133
|
-
* @param columns
|
|
142
|
+
* @param columns 列配置
|
|
134
143
|
* @param untitledText 未命名列文字
|
|
135
|
-
* @param filter
|
|
144
|
+
* @param filter 过滤列的方法
|
|
145
|
+
* @param sortFixed 是否对固定列排序
|
|
146
|
+
* @param cancelFixed 是否取消固定列
|
|
136
147
|
*/
|
|
137
|
-
export declare function getColItems(columns?: Columns, untitledText?: string, filter?: (item: Column) => boolean): ColItem[];
|
|
148
|
+
export declare function getColItems(columns?: Columns, untitledText?: string, filter?: (item: Column) => boolean, sortFixed?: boolean, cancelFixed?: boolean): ColItem[];
|
|
138
149
|
/**
|
|
139
150
|
* 获取列配置
|
|
140
151
|
* @param columns 列数据
|
|
@@ -160,23 +171,11 @@ export declare function getSizeCacheKey(cacheKey: string): string;
|
|
|
160
171
|
* @param cacheKey 缓存的名称
|
|
161
172
|
*/
|
|
162
173
|
export declare function getCacheSize(cacheKey?: string): TableSize;
|
|
163
|
-
/**
|
|
164
|
-
* 获取默认 rowKey
|
|
165
|
-
* @param rowKey 自定义 rowKey
|
|
166
|
-
*/
|
|
167
|
-
export declare function getDefaultRowKey(rowKey?: RowKey): "_rowKey" | undefined;
|
|
168
174
|
/**
|
|
169
175
|
* 获取 rowKey
|
|
170
176
|
* @param rowKey 自定义 rowKey
|
|
171
177
|
*/
|
|
172
|
-
export declare function getRowKey(rowKey?: RowKey): string | ((row: DataItem) => string)
|
|
173
|
-
/**
|
|
174
|
-
* 数据添加默认的 rowKey 字段
|
|
175
|
-
* @param data 数据
|
|
176
|
-
* @param rowKey 字段名
|
|
177
|
-
* @param page 页码
|
|
178
|
-
*/
|
|
179
|
-
export declare function addDefaultRowKey(data: DataItem[], rowKey: string | undefined, page: number): DataItem[];
|
|
178
|
+
export declare function getRowKey(rowKey?: RowKey): string | ((row: DataItem) => string);
|
|
180
179
|
/**
|
|
181
180
|
* 导出获取单元格文本
|
|
182
181
|
* @param column 列配置
|
|
@@ -213,4 +212,9 @@ export declare function exportCSV(fileName: string, headerData: ExportDataItem[]
|
|
|
213
212
|
* 导出判断列是否显示
|
|
214
213
|
* @param item 列配置
|
|
215
214
|
*/
|
|
216
|
-
export declare function
|
|
215
|
+
export declare function columnsExportFilter(item: Column): boolean;
|
|
216
|
+
/**
|
|
217
|
+
* 打印判断列是否显示
|
|
218
|
+
* @param item 列配置
|
|
219
|
+
*/
|
|
220
|
+
export declare function columnsPrintFilter(item: Column): boolean;
|
package/es/ele-pro-table/util.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { omit, eachTree, findTree, uuid, mapTree } from "../utils/core";
|
|
2
|
-
import { getValue } from "../ele-data-table/util";
|
|
2
|
+
import { getValue, getColFixedNumber } from "../ele-data-table/util";
|
|
3
3
|
import { getIndexValue, analyseColumns, getCellSpan, getUserSums, getSumValue } from "../ele-virtual-table/util";
|
|
4
4
|
function mergeProps(props, globalProps) {
|
|
5
5
|
if (props == null) {
|
|
@@ -65,6 +65,8 @@ function getDefaultFilter(columns) {
|
|
|
65
65
|
}
|
|
66
66
|
function getRequestName(globalRequest, request) {
|
|
67
67
|
const defaultRequest = {
|
|
68
|
+
pageName: "page",
|
|
69
|
+
limitName: "limit",
|
|
68
70
|
sortName: "sort",
|
|
69
71
|
orderName: "order",
|
|
70
72
|
ascValue: "asc",
|
|
@@ -143,6 +145,16 @@ function getRequestFilters(filter) {
|
|
|
143
145
|
}
|
|
144
146
|
return filters;
|
|
145
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
|
+
}
|
|
146
158
|
function getResponseResult(data, response, globalResponse, lazy, treeOpt) {
|
|
147
159
|
if (!data || Array.isArray(data)) {
|
|
148
160
|
return { data: getResponseData(data, lazy, treeOpt) };
|
|
@@ -205,7 +217,10 @@ function sortData(datasource, sorter) {
|
|
|
205
217
|
return data;
|
|
206
218
|
}
|
|
207
219
|
function getColId(column) {
|
|
208
|
-
|
|
220
|
+
if (column.columnKey == null || column.columnKey === "") {
|
|
221
|
+
return column.prop;
|
|
222
|
+
}
|
|
223
|
+
return column.columnKey;
|
|
209
224
|
}
|
|
210
225
|
function getInitColumns(columns) {
|
|
211
226
|
const data = [];
|
|
@@ -303,19 +318,25 @@ function getCheckedColumns(columns, cols, sortable, filter) {
|
|
|
303
318
|
});
|
|
304
319
|
return data;
|
|
305
320
|
}
|
|
306
|
-
function getColItems(columns, untitledText, filter) {
|
|
307
|
-
|
|
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) => {
|
|
308
329
|
const colId = getColId(d);
|
|
309
|
-
if (
|
|
330
|
+
if (colId == null || filter && !filter(d)) {
|
|
310
331
|
return;
|
|
311
332
|
}
|
|
312
333
|
return {
|
|
313
334
|
uid: colId,
|
|
314
|
-
prop: d.prop,
|
|
315
|
-
columnKey: d.columnKey,
|
|
335
|
+
//prop: d.prop,
|
|
336
|
+
//columnKey: d.columnKey,
|
|
316
337
|
label: d.label || untitledText,
|
|
317
338
|
checked: !d.hideInTable,
|
|
318
|
-
fixed: d.fixed
|
|
339
|
+
fixed: cancelFixed ? false : parent == null ? d.fixed : false
|
|
319
340
|
};
|
|
320
341
|
});
|
|
321
342
|
}
|
|
@@ -373,21 +394,13 @@ function getCacheSize(cacheKey) {
|
|
|
373
394
|
}
|
|
374
395
|
}
|
|
375
396
|
}
|
|
376
|
-
function getDefaultRowKey(rowKey) {
|
|
377
|
-
return rowKey ? void 0 : "_rowKey";
|
|
378
|
-
}
|
|
379
397
|
function getRowKey(rowKey) {
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
function addDefaultRowKey(data, rowKey, page) {
|
|
383
|
-
if (rowKey == null) {
|
|
384
|
-
return data;
|
|
398
|
+
if (rowKey != null) {
|
|
399
|
+
return rowKey;
|
|
385
400
|
}
|
|
386
|
-
return
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
return item;
|
|
390
|
-
});
|
|
401
|
+
return (row) => {
|
|
402
|
+
return JSON.stringify(row);
|
|
403
|
+
};
|
|
391
404
|
}
|
|
392
405
|
function getCellText(column, row, index, pageIndex) {
|
|
393
406
|
if (!column) {
|
|
@@ -398,7 +411,7 @@ function getCellText(column, row, index, pageIndex) {
|
|
|
398
411
|
}
|
|
399
412
|
const propValue = getValue(row, column.prop);
|
|
400
413
|
if (typeof column.formatter === "function") {
|
|
401
|
-
return column.formatter(row, column, propValue, index
|
|
414
|
+
return column.formatter(row, column, propValue, index);
|
|
402
415
|
}
|
|
403
416
|
return propValue == null ? "" : String(propValue);
|
|
404
417
|
}
|
|
@@ -407,8 +420,7 @@ function getHeaderCellText(column, index) {
|
|
|
407
420
|
return "";
|
|
408
421
|
}
|
|
409
422
|
if (typeof column.renderHeader === "function") {
|
|
410
|
-
|
|
411
|
-
return column.renderHeader(params);
|
|
423
|
+
return column.renderHeader({ column, $index: index });
|
|
412
424
|
}
|
|
413
425
|
return column.label == null ? "" : String(column.label);
|
|
414
426
|
}
|
|
@@ -472,13 +484,22 @@ function exportCSV(fileName, headerData, bodyData, footerData) {
|
|
|
472
484
|
a.click();
|
|
473
485
|
document.body.removeChild(a);
|
|
474
486
|
}
|
|
475
|
-
function
|
|
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
|
+
}
|
|
476
497
|
return !item.type || !["selection", "expand"].includes(item.type);
|
|
477
498
|
}
|
|
478
499
|
export {
|
|
479
|
-
|
|
500
|
+
columnsExportFilter,
|
|
501
|
+
columnsPrintFilter,
|
|
480
502
|
exportCSV,
|
|
481
|
-
exportColumnsfilter,
|
|
482
503
|
getCacheCols,
|
|
483
504
|
getCacheSize,
|
|
484
505
|
getCellText,
|
|
@@ -487,7 +508,6 @@ export {
|
|
|
487
508
|
getColItems,
|
|
488
509
|
getColsCacheKey,
|
|
489
510
|
getDefaultFilter,
|
|
490
|
-
getDefaultRowKey,
|
|
491
511
|
getExportData,
|
|
492
512
|
getHeaderCellText,
|
|
493
513
|
getInitCacheColumns,
|
|
@@ -497,6 +517,7 @@ export {
|
|
|
497
517
|
getRequestFilters,
|
|
498
518
|
getRequestName,
|
|
499
519
|
getRequestOrders,
|
|
520
|
+
getRequestPages,
|
|
500
521
|
getResponseData,
|
|
501
522
|
getResponseName,
|
|
502
523
|
getResponseResult,
|