ele-admin-plus 1.1.9-beta.9 → 1.2.0-beta.1
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-export.d.ts +1 -0
- package/es/core-export.js +1 -0
- 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/components/message-body.d.ts +39 -0
- package/es/ele-app/components/message-body.js +92 -0
- package/es/ele-app/el.d.ts +4 -1
- package/es/ele-app/index.d.ts +2 -2
- package/es/ele-app/style/message/css-var.scss +0 -4
- package/es/ele-app/style/message/index.scss +199 -77
- package/es/ele-app/style/overwrite/date-picker/index.scss +32 -5
- package/es/ele-app/style/overwrite/input/index.scss +2 -0
- package/es/ele-app/style/overwrite/message-box/index.scss +31 -0
- package/es/ele-app/style/overwrite/tag/css-var.scss +0 -16
- package/es/ele-app/style/overwrite/tag/index.scss +57 -14
- package/es/ele-app/types.d.ts +6 -1
- 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 +120 -31
- package/es/ele-config-provider/index.d.ts +13 -9
- package/es/ele-config-provider/index.js +19 -5
- package/es/ele-config-provider/props.d.ts +12 -6
- package/es/ele-config-provider/props.js +9 -5
- 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 +25 -30
- 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 +10 -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 +76 -72
- 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 +40 -34
- package/es/ele-edit-tag/index.js +5 -3
- package/es/ele-edit-tag/props.d.ts +12 -9
- package/es/ele-edit-tag/props.js +2 -0
- package/es/ele-edit-tag/style/index.scss +11 -4
- 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 +59 -60
- package/es/ele-icon-select/props.d.ts +18 -17
- 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 +62 -63
- package/es/ele-menus/index.js +12 -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 +77 -70
- 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 +87 -146
- package/es/ele-modal/util.d.ts +20 -45
- package/es/ele-modal/util.js +54 -180
- 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 +93 -92
- package/es/ele-popconfirm/index.js +6 -28
- package/es/ele-popconfirm/props.d.ts +33 -32
- package/es/ele-popover/index.d.ts +71 -70
- 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 +85 -29
- 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 +15 -19
- 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 +63 -48
- 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 +5 -5
- 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 +33 -23
- package/es/ele-pro-table/components/table-tools.js +14 -26
- 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 +15 -13
- package/es/ele-pro-table/components/tool-column.js +3 -7
- package/es/ele-pro-table/components/tool-export.d.ts +52 -357
- package/es/ele-pro-table/components/tool-export.js +109 -63
- package/es/ele-pro-table/components/tool-print-body-cell.d.ts +13 -12
- package/es/ele-pro-table/components/tool-print-body-cell.js +50 -6
- package/es/ele-pro-table/components/tool-print-header-cell.d.ts +13 -12
- package/es/ele-pro-table/components/tool-print-header-cell.js +4 -1
- package/es/ele-pro-table/components/tool-print.d.ts +56 -794
- package/es/ele-pro-table/components/tool-print.js +198 -85
- package/es/ele-pro-table/index.d.ts +131 -143
- package/es/ele-pro-table/index.js +110 -79
- package/es/ele-pro-table/props.d.ts +44 -46
- package/es/ele-pro-table/style/index.scss +9 -0
- package/es/ele-pro-table/types.d.ts +45 -0
- package/es/ele-pro-table/util.d.ts +42 -23
- package/es/ele-pro-table/util.js +206 -53
- 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/style/index.scss +16 -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 +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 +62 -61
- 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 +16 -12
- package/es/ele-virtual-table/util.js +32 -24
- 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/LoadingOutlined.js +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/en_US.js +7 -1
- package/es/lang/zh_CN.d.ts +2 -2
- package/es/lang/zh_CN.js +7 -1
- package/es/lang/zh_TW.d.ts +2 -2
- package/es/lang/zh_TW.js +7 -1
- package/es/style/nprogress.scss +1 -0
- package/es/style/themes/dark.scss +9 -15
- package/es/style/themes/default.scss +140 -166
- package/es/style/themes/rounded.scss +27 -45
- package/es/utils/core.d.ts +7 -0
- package/es/utils/core.js +16 -2
- package/es/utils/menu-util.d.ts +3 -2
- package/es/utils/menu-util.js +2 -5
- package/es/utils/message-box.d.ts +25 -0
- package/es/utils/message-box.js +71 -0
- package/es/utils/message.d.ts +45 -20
- package/es/utils/message.js +220 -37
- package/es/utils/resolvers.d.ts +2 -2
- package/lib/core-export.cjs +8 -0
- package/lib/core-export.d.ts +1 -0
- 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/components/message-body.cjs +91 -0
- package/lib/ele-app/components/message-body.d.ts +39 -0
- package/lib/ele-app/el.d.ts +4 -1
- package/lib/ele-app/index.d.ts +2 -2
- package/lib/ele-app/style/message/css-var.scss +0 -4
- package/lib/ele-app/style/message/index.scss +199 -77
- package/lib/ele-app/style/overwrite/date-picker/index.scss +32 -5
- package/lib/ele-app/style/overwrite/input/index.scss +2 -0
- package/lib/ele-app/style/overwrite/message-box/index.scss +31 -0
- package/lib/ele-app/style/overwrite/tag/css-var.scss +0 -16
- package/lib/ele-app/style/overwrite/tag/index.scss +57 -14
- package/lib/ele-app/types.d.ts +6 -1
- 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.cjs +18 -4
- package/lib/ele-config-provider/index.d.ts +13 -9
- package/lib/ele-config-provider/props.cjs +9 -5
- package/lib/ele-config-provider/props.d.ts +12 -6
- 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 +25 -30
- 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 +10 -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 +76 -72
- 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 +5 -3
- package/lib/ele-edit-tag/index.d.ts +40 -34
- package/lib/ele-edit-tag/props.cjs +2 -0
- package/lib/ele-edit-tag/props.d.ts +12 -9
- package/lib/ele-edit-tag/style/index.scss +11 -4
- 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 +59 -60
- package/lib/ele-icon-select/props.d.ts +18 -17
- 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 +12 -1
- package/lib/ele-menus/index.d.ts +62 -63
- 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 +77 -70
- package/lib/ele-modal/props.cjs +2 -0
- package/lib/ele-modal/props.d.ts +26 -23
- package/lib/ele-modal/style/index.scss +87 -146
- package/lib/ele-modal/util.cjs +53 -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 +93 -92
- package/lib/ele-popconfirm/props.d.ts +33 -32
- package/lib/ele-popover/index.cjs +5 -13
- package/lib/ele-popover/index.d.ts +71 -70
- 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 +85 -29
- 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 +15 -19
- 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 +62 -47
- 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 +5 -5
- 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 +14 -26
- package/lib/ele-pro-table/components/table-tools.d.ts +33 -23
- 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 +15 -13
- package/lib/ele-pro-table/components/tool-export.cjs +107 -61
- package/lib/ele-pro-table/components/tool-export.d.ts +52 -357
- package/lib/ele-pro-table/components/tool-print-body-cell.cjs +49 -5
- package/lib/ele-pro-table/components/tool-print-body-cell.d.ts +13 -12
- package/lib/ele-pro-table/components/tool-print-header-cell.cjs +4 -1
- package/lib/ele-pro-table/components/tool-print-header-cell.d.ts +13 -12
- package/lib/ele-pro-table/components/tool-print.cjs +195 -82
- package/lib/ele-pro-table/components/tool-print.d.ts +56 -794
- package/lib/ele-pro-table/index.cjs +108 -77
- 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/style/index.scss +9 -0
- package/lib/ele-pro-table/types.d.ts +45 -0
- package/lib/ele-pro-table/util.cjs +205 -52
- package/lib/ele-pro-table/util.d.ts +42 -23
- 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/style/index.scss +16 -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.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 +62 -61
- 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 +32 -24
- package/lib/ele-virtual-table/util.d.ts +16 -12
- 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.cjs +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.cjs +7 -1
- package/lib/lang/en_US.d.ts +2 -2
- package/lib/lang/zh_CN.cjs +7 -1
- package/lib/lang/zh_CN.d.ts +2 -2
- package/lib/lang/zh_TW.cjs +7 -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 +140 -166
- package/lib/style/themes/rounded.scss +27 -45
- package/lib/utils/core.cjs +16 -2
- package/lib/utils/core.d.ts +7 -0
- package/lib/utils/menu-util.cjs +1 -4
- package/lib/utils/menu-util.d.ts +3 -2
- package/lib/utils/message-box.cjs +71 -0
- package/lib/utils/message-box.d.ts +25 -0
- package/lib/utils/message.cjs +216 -33
- package/lib/utils/message.d.ts +45 -20
- package/lib/utils/resolvers.d.ts +2 -2
- package/package.json +26 -25
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
|
2
|
+
|
|
2
3
|
/**
|
|
3
4
|
* 属性
|
|
4
5
|
*/
|
|
@@ -14,11 +15,11 @@ export declare const virtualTableProps: {
|
|
|
14
15
|
default: null;
|
|
15
16
|
};
|
|
16
17
|
rowKey: {
|
|
17
|
-
type: import(
|
|
18
|
+
type: import('vue').PropType<string | ((row: import('../ele-data-table/types').DataItem) => string) | undefined>;
|
|
18
19
|
required: boolean;
|
|
19
20
|
};
|
|
20
21
|
columns: {
|
|
21
|
-
type: import(
|
|
22
|
+
type: import('vue').PropType<import('../ele-data-table/types').Columns>;
|
|
22
23
|
required: boolean;
|
|
23
24
|
};
|
|
24
25
|
pageIndex: NumberConstructor;
|
|
@@ -37,17 +38,17 @@ export declare const virtualTableProps: {
|
|
|
37
38
|
default: boolean;
|
|
38
39
|
};
|
|
39
40
|
emptyProps: {
|
|
40
|
-
type: import(
|
|
41
|
+
type: import('vue').PropType<import('../ele-data-table/types').TableEmptyProps>;
|
|
41
42
|
default: () => null;
|
|
42
43
|
};
|
|
43
|
-
rowClickChecked: import(
|
|
44
|
+
rowClickChecked: import('vue').PropType<import('../ele-data-table/types').RowClickChecked>;
|
|
44
45
|
reserveCurrent: BooleanConstructor;
|
|
45
|
-
selectedRowKeys: import(
|
|
46
|
-
cacheData: import(
|
|
46
|
+
selectedRowKeys: import('vue').PropType<import('../ele-data-table/types').DataKey[]>;
|
|
47
|
+
cacheData: import('vue').PropType<import('../ele-data-table/types').DataItem[]>;
|
|
47
48
|
width: (StringConstructor | NumberConstructor)[];
|
|
48
49
|
height: (StringConstructor | NumberConstructor)[];
|
|
49
50
|
size: {
|
|
50
|
-
readonly type: import(
|
|
51
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
51
52
|
readonly required: false;
|
|
52
53
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
53
54
|
__epPropKey: true;
|
|
@@ -63,14 +64,11 @@ export declare const virtualTableProps: {
|
|
|
63
64
|
};
|
|
64
65
|
lazy: BooleanConstructor;
|
|
65
66
|
data: {
|
|
66
|
-
type: import(
|
|
67
|
+
type: import('vue').PropType<any[]>;
|
|
67
68
|
default: () => never[];
|
|
68
69
|
};
|
|
69
|
-
scrollbarAlwaysOn:
|
|
70
|
-
|
|
71
|
-
default: boolean;
|
|
72
|
-
};
|
|
73
|
-
showOverflowTooltip: import("vue").PropType<boolean | Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "showArrow" | "appendTo" | "transition" | "enterable" | "showAfter" | "hideAfter">> | undefined>;
|
|
70
|
+
scrollbarAlwaysOn: BooleanConstructor;
|
|
71
|
+
showOverflowTooltip: import('vue').PropType<boolean | Partial<Pick<import('element-plus').ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "showArrow" | "appendTo" | "transition" | "enterable" | "showAfter" | "hideAfter">> | undefined>;
|
|
74
72
|
emptyText: StringConstructor;
|
|
75
73
|
indent: {
|
|
76
74
|
type: NumberConstructor;
|
|
@@ -82,26 +80,26 @@ export declare const virtualTableProps: {
|
|
|
82
80
|
};
|
|
83
81
|
showSummary: BooleanConstructor;
|
|
84
82
|
sumText: StringConstructor;
|
|
85
|
-
summaryMethod: import(
|
|
86
|
-
rowClassName: import(
|
|
87
|
-
rowStyle: import(
|
|
88
|
-
cellClassName: import(
|
|
89
|
-
cellStyle: import(
|
|
90
|
-
headerRowClassName: import(
|
|
91
|
-
headerRowStyle: import(
|
|
92
|
-
headerCellClassName: import(
|
|
93
|
-
headerCellStyle: import(
|
|
83
|
+
summaryMethod: import('vue').PropType<import('element-plus').SummaryMethod<any> | undefined>;
|
|
84
|
+
rowClassName: import('vue').PropType<import('element-plus').ColumnCls<any> | undefined>;
|
|
85
|
+
rowStyle: import('vue').PropType<import('element-plus').ColumnStyle<any> | undefined>;
|
|
86
|
+
cellClassName: import('vue').PropType<import('element-plus').CellCls<any> | undefined>;
|
|
87
|
+
cellStyle: import('vue').PropType<import('element-plus').CellStyle<any> | undefined>;
|
|
88
|
+
headerRowClassName: import('vue').PropType<import('element-plus').ColumnCls<any> | undefined>;
|
|
89
|
+
headerRowStyle: import('vue').PropType<import('element-plus').ColumnStyle<any> | undefined>;
|
|
90
|
+
headerCellClassName: import('vue').PropType<import('element-plus').CellCls<any> | undefined>;
|
|
91
|
+
headerCellStyle: import('vue').PropType<import('element-plus').CellStyle<any> | undefined>;
|
|
94
92
|
highlightCurrentRow: BooleanConstructor;
|
|
95
93
|
currentRowKey: (StringConstructor | NumberConstructor)[];
|
|
96
|
-
expandRowKeys: import(
|
|
94
|
+
expandRowKeys: import('vue').PropType<any[] | undefined>;
|
|
97
95
|
defaultExpandAll: BooleanConstructor;
|
|
98
|
-
defaultSort: import(
|
|
96
|
+
defaultSort: import('vue').PropType<import('element-plus').Sort | undefined>;
|
|
99
97
|
tooltipEffect: StringConstructor;
|
|
100
|
-
tooltipOptions: import(
|
|
101
|
-
spanMethod: import(
|
|
98
|
+
tooltipOptions: import('vue').PropType<Partial<Pick<import('element-plus').ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "showArrow" | "appendTo" | "transition" | "enterable" | "showAfter" | "hideAfter">> | undefined>;
|
|
99
|
+
spanMethod: import('vue').PropType<((data: {
|
|
102
100
|
row: any;
|
|
103
101
|
rowIndex: number;
|
|
104
|
-
column: import(
|
|
102
|
+
column: import('element-plus').TableColumnCtx<any>;
|
|
105
103
|
columnIndex: number;
|
|
106
104
|
}) => number[] | {
|
|
107
105
|
rowspan: number;
|
|
@@ -112,7 +110,7 @@ export declare const virtualTableProps: {
|
|
|
112
110
|
default: boolean;
|
|
113
111
|
};
|
|
114
112
|
treeProps: {
|
|
115
|
-
type: import(
|
|
113
|
+
type: import('vue').PropType<{
|
|
116
114
|
hasChildren?: string | undefined;
|
|
117
115
|
children?: string | undefined;
|
|
118
116
|
} | undefined>;
|
|
@@ -121,9 +119,9 @@ export declare const virtualTableProps: {
|
|
|
121
119
|
children: string;
|
|
122
120
|
};
|
|
123
121
|
};
|
|
124
|
-
load: import(
|
|
122
|
+
load: import('vue').PropType<((row: any, treeNode: import('element-plus').TreeNode, resolve: (data: any[]) => void) => void) | undefined>;
|
|
125
123
|
tableLayout: {
|
|
126
|
-
type: import(
|
|
124
|
+
type: import('vue').PropType<"auto" | "fixed">;
|
|
127
125
|
default: string;
|
|
128
126
|
};
|
|
129
127
|
flexible: BooleanConstructor;
|
|
@@ -133,24 +131,24 @@ export type VirtualTableProps = ExtractPropTypes<typeof virtualTableProps>;
|
|
|
133
131
|
* 事件
|
|
134
132
|
*/
|
|
135
133
|
export declare const virtualTableEmits: {
|
|
136
|
-
select: (_selection: import(
|
|
137
|
-
selectAll: (_selection: import(
|
|
138
|
-
selectionChange: (_selection: import(
|
|
139
|
-
cellMouseEnter: (_row: import(
|
|
140
|
-
cellMouseLeave: (_row: import(
|
|
141
|
-
cellClick: (_row: import(
|
|
142
|
-
cellDblclick: (_row: import(
|
|
143
|
-
cellContextmenu: (_row: import(
|
|
144
|
-
rowClick: (_row: import(
|
|
145
|
-
rowContextmenu: (_row: import(
|
|
146
|
-
rowDblclick: (_row: import(
|
|
147
|
-
headerClick: (_column: import(
|
|
148
|
-
headerContextmenu: (_column: import(
|
|
149
|
-
sortChange: (_sorter: import(
|
|
150
|
-
filterChange: (_filter: import(
|
|
151
|
-
currentChange: (_current?: import(
|
|
152
|
-
headerDragend: (_width: number, _old: number, _column: import(
|
|
153
|
-
expandChange: (_row: import(
|
|
154
|
-
'update:currentRowKey': (_currentRowKey?: import(
|
|
155
|
-
'update:selectedRowKeys': (_selectedRowKeys?: import(
|
|
134
|
+
select: (_selection: import('../ele-data-table/types').DataItem[], _row: import('../ele-data-table/types').DataItem) => boolean;
|
|
135
|
+
selectAll: (_selection: import('../ele-data-table/types').DataItem[]) => boolean;
|
|
136
|
+
selectionChange: (_selection: import('../ele-data-table/types').DataItem[]) => boolean;
|
|
137
|
+
cellMouseEnter: (_row: import('../ele-data-table/types').DataItem, _column: import('../ele-data-table/types').Column, _cell: HTMLTableCellElement, _e: MouseEvent) => boolean;
|
|
138
|
+
cellMouseLeave: (_row: import('../ele-data-table/types').DataItem, _column: import('../ele-data-table/types').Column, _cell: HTMLTableCellElement, _e: MouseEvent) => boolean;
|
|
139
|
+
cellClick: (_row: import('../ele-data-table/types').DataItem, _column: import('../ele-data-table/types').Column, _cell: HTMLTableCellElement, _e: MouseEvent) => boolean;
|
|
140
|
+
cellDblclick: (_row: import('../ele-data-table/types').DataItem, _column: import('../ele-data-table/types').Column, _cell: HTMLTableCellElement, _e: MouseEvent) => boolean;
|
|
141
|
+
cellContextmenu: (_row: import('../ele-data-table/types').DataItem, _column: import('../ele-data-table/types').Column, _cell: HTMLTableCellElement, _e: MouseEvent) => boolean;
|
|
142
|
+
rowClick: (_row: import('../ele-data-table/types').DataItem, _column: import('../ele-data-table/types').Column, _e: MouseEvent) => boolean;
|
|
143
|
+
rowContextmenu: (_row: import('../ele-data-table/types').DataItem, _column: import('../ele-data-table/types').Column, _e: MouseEvent) => boolean;
|
|
144
|
+
rowDblclick: (_row: import('../ele-data-table/types').DataItem, _column: import('../ele-data-table/types').Column, _e: MouseEvent) => boolean;
|
|
145
|
+
headerClick: (_column: import('../ele-data-table/types').Column, _e: MouseEvent) => boolean;
|
|
146
|
+
headerContextmenu: (_column: import('../ele-data-table/types').Column, _e: MouseEvent) => boolean;
|
|
147
|
+
sortChange: (_sorter: import('../ele-data-table/types').Sorter) => boolean;
|
|
148
|
+
filterChange: (_filter: import('../ele-data-table/types').Filter) => boolean;
|
|
149
|
+
currentChange: (_current?: import('../ele-data-table/types').DataItem | null | undefined, _old?: import('../ele-data-table/types').DataItem | null | undefined) => boolean;
|
|
150
|
+
headerDragend: (_width: number, _old: number, _column: import('../ele-data-table/types').Column, _e: MouseEvent) => boolean;
|
|
151
|
+
expandChange: (_row: import('../ele-data-table/types').DataItem, _expanded: boolean) => boolean;
|
|
152
|
+
'update:currentRowKey': (_currentRowKey?: import('../ele-data-table/types').DataKey | undefined) => boolean;
|
|
153
|
+
'update:selectedRowKeys': (_selectedRowKeys?: import('../ele-data-table/types').DataKey[] | undefined) => boolean;
|
|
156
154
|
};
|
|
@@ -653,7 +653,7 @@
|
|
|
653
653
|
}
|
|
654
654
|
|
|
655
655
|
/* 移动端支持触摸滚动 */
|
|
656
|
-
@media (
|
|
656
|
+
@media (pointer: coarse) {
|
|
657
657
|
.ele-virtual-table > .el-table-v2 > .el-table-v2__main {
|
|
658
658
|
& > .el-table-v2__body > div:not(.el-virtual-scrollbar) {
|
|
659
659
|
overflow: auto !important;
|
|
@@ -20,6 +20,31 @@ import type {
|
|
|
20
20
|
} from '../ele-data-table/types';
|
|
21
21
|
export { RowExpandHandler, ScrollStrategy, SortBy, ScrollPos };
|
|
22
22
|
|
|
23
|
+
/**
|
|
24
|
+
* 表格属性
|
|
25
|
+
*/
|
|
26
|
+
export type TableV2Props = Required<Exclude<ElTableV2Props, 'class' | 'style'>>;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* 获取行类名方法
|
|
30
|
+
*/
|
|
31
|
+
export type RowClassFunction = ExtractRowPropGetter<DataItem>;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* 获取行属性方法
|
|
35
|
+
*/
|
|
36
|
+
export type RowPropsFunction = ExtractRowPropGetter<DataItem>;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* 获取表头行类名方法
|
|
40
|
+
*/
|
|
41
|
+
export type HeaderRowClassFunction = HeaderClassNameGetter<DataItem>;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* 获取表头行属性方法
|
|
45
|
+
*/
|
|
46
|
+
export type HeaderRowPropsFunction = ExtractHeaderPropGetter<DataItem>;
|
|
47
|
+
|
|
23
48
|
/**
|
|
24
49
|
* 列配置
|
|
25
50
|
*/
|
|
@@ -30,6 +55,16 @@ export type VirtualColumn = Partial<TableV2Column<DataItem>>;
|
|
|
30
55
|
*/
|
|
31
56
|
export type VirtualColumns = VirtualColumn[];
|
|
32
57
|
|
|
58
|
+
/**
|
|
59
|
+
* 嵌套数据配置项
|
|
60
|
+
*/
|
|
61
|
+
export interface TreeTableProps {
|
|
62
|
+
/** 子级字段名 */
|
|
63
|
+
childrenName: string;
|
|
64
|
+
/** 懒加载标识是否有子级字段名 */
|
|
65
|
+
hasChildrenName: string;
|
|
66
|
+
}
|
|
67
|
+
|
|
33
68
|
/**
|
|
34
69
|
* 主体列配置
|
|
35
70
|
*/
|
|
@@ -47,7 +82,7 @@ export interface BodyColumn {
|
|
|
47
82
|
/** 是否是第一个右侧固定列 */
|
|
48
83
|
isFixedRightFirst?: boolean;
|
|
49
84
|
/** 原始列配置 */
|
|
50
|
-
originalCol
|
|
85
|
+
originalCol: Column;
|
|
51
86
|
}
|
|
52
87
|
|
|
53
88
|
/**
|
|
@@ -84,54 +119,23 @@ export type HeaderColumns = HeaderColumn[];
|
|
|
84
119
|
export type HeaderRows = HeaderColumns[];
|
|
85
120
|
|
|
86
121
|
/**
|
|
87
|
-
*
|
|
88
|
-
*/
|
|
89
|
-
export type TableV2Props = Required<Exclude<ElTableV2Props, 'class' | 'style'>>;
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* 获取行类名方法
|
|
93
|
-
*/
|
|
94
|
-
export type RowClassFunction = ExtractRowPropGetter<DataItem>;
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* 获取行属性方法
|
|
122
|
+
* 数据
|
|
98
123
|
*/
|
|
99
|
-
export
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
|
|
108
|
-
*/
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
export interface TableState {
|
|
115
|
-
/** 单选选中数据 */
|
|
116
|
-
row?: DataItem;
|
|
117
|
-
/** 单选上次选中数据 */
|
|
118
|
-
oldRow?: DataItem;
|
|
119
|
-
/** 多选选中数据 */
|
|
120
|
-
checked: Map<DataKey, DataItem>;
|
|
121
|
-
/** 多选选中是否保留不存在的数据 */
|
|
122
|
-
reserveChecked: boolean;
|
|
123
|
-
/** 表格垂直滚动位置 */
|
|
124
|
-
scrollTop: number;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* 表头列筛选改变事件参数
|
|
129
|
-
*/
|
|
130
|
-
export interface CellFilterChangeParams {
|
|
131
|
-
/** 列配置 */
|
|
132
|
-
column: Column;
|
|
133
|
-
/** 筛选值 */
|
|
134
|
-
value: FilterValue;
|
|
124
|
+
export interface VirtualRow {
|
|
125
|
+
/** 行唯一值 */
|
|
126
|
+
rowId: DataKey;
|
|
127
|
+
/** 行索引 */
|
|
128
|
+
rowIndex: number;
|
|
129
|
+
/** 行原始数据 */
|
|
130
|
+
rowData: DataItem;
|
|
131
|
+
/** 行是否禁用 */
|
|
132
|
+
isDisabled?: boolean;
|
|
133
|
+
/** 是否是展开行 */
|
|
134
|
+
isExpandRow?: boolean;
|
|
135
|
+
/** 子级数据 */
|
|
136
|
+
children?: VirtualRow[];
|
|
137
|
+
/** 懒加载时标识是否有子级数据 */
|
|
138
|
+
hasChildren?: boolean;
|
|
135
139
|
}
|
|
136
140
|
|
|
137
141
|
/**
|
|
@@ -144,26 +148,6 @@ export interface CellSpan {
|
|
|
144
148
|
rowspan?: number;
|
|
145
149
|
}
|
|
146
150
|
|
|
147
|
-
/**
|
|
148
|
-
* 自定义渲染组件属性
|
|
149
|
-
*/
|
|
150
|
-
export interface CustomRenderProps {
|
|
151
|
-
/** 自定义渲染方法 */
|
|
152
|
-
render?: (...params: any) => string | VNode | VNode[] | number | undefined;
|
|
153
|
-
/** 自定义渲染参数 */
|
|
154
|
-
params?: Array<any>;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
/**
|
|
158
|
-
* 嵌套数据配置项
|
|
159
|
-
*/
|
|
160
|
-
export interface TreeTableProps {
|
|
161
|
-
/** 子级字段名 */
|
|
162
|
-
childrenName: string;
|
|
163
|
-
/** 懒加载标识是否有子级字段名 */
|
|
164
|
-
hasChildrenName: string;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
151
|
/**
|
|
168
152
|
* 列尺寸
|
|
169
153
|
*/
|
|
@@ -194,6 +178,32 @@ export interface SumCol extends ColSize {
|
|
|
194
178
|
isFixedRightFirst?: boolean;
|
|
195
179
|
}
|
|
196
180
|
|
|
181
|
+
/**
|
|
182
|
+
* 表头列筛选改变事件参数
|
|
183
|
+
*/
|
|
184
|
+
export interface CellFilterChangeParams {
|
|
185
|
+
/** 列配置 */
|
|
186
|
+
column: Column;
|
|
187
|
+
/** 筛选值 */
|
|
188
|
+
value: FilterValue;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* 表格状态数据
|
|
193
|
+
*/
|
|
194
|
+
export interface TableState {
|
|
195
|
+
/** 单选选中数据 */
|
|
196
|
+
row?: DataItem;
|
|
197
|
+
/** 单选上次选中数据 */
|
|
198
|
+
oldRow?: DataItem;
|
|
199
|
+
/** 多选选中数据 */
|
|
200
|
+
checked: Map<DataKey, DataItem>;
|
|
201
|
+
/** 多选选中是否保留不存在的数据 */
|
|
202
|
+
reserveChecked: boolean;
|
|
203
|
+
/** 表格垂直滚动位置 */
|
|
204
|
+
scrollTop: number;
|
|
205
|
+
}
|
|
206
|
+
|
|
197
207
|
/**
|
|
198
208
|
* 单元格获取自定义配置的参数
|
|
199
209
|
*/
|
|
@@ -207,3 +217,13 @@ export interface CellParams {
|
|
|
207
217
|
/** 行索引 */
|
|
208
218
|
rowIndex: number;
|
|
209
219
|
}
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* 自定义渲染组件属性
|
|
223
|
+
*/
|
|
224
|
+
export interface CustomRenderProps {
|
|
225
|
+
/** 自定义渲染方法 */
|
|
226
|
+
render?: (...params: any) => string | VNode | VNode[] | number | undefined;
|
|
227
|
+
/** 自定义渲染参数 */
|
|
228
|
+
params?: Array<any>;
|
|
229
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { VirtualColumn, VirtualColumns, BodyColumns, HeaderColumn, HeaderRows, ColSize, CustomRenderProps, SortBy, TreeTableProps, CellSpan, CellParams, VirtualRow } from './types';
|
|
2
|
+
import { DataKey, DataItem, Column, Columns, Sorter, Filter, FilterValue, OrderValue, TableSize, RowKey, RowSelectable, TreeProps, ShowOverflowTooltip, SpanMethod, ColumnIndex, SummaryMethod } from '../ele-data-table/types';
|
|
2
3
|
import { TableV2SortOrder } from 'element-plus';
|
|
3
|
-
import
|
|
4
|
-
|
|
4
|
+
import { SetupContext } from 'vue';
|
|
5
|
+
|
|
5
6
|
/**
|
|
6
7
|
* 获取行高
|
|
7
8
|
* @param size 表格尺寸
|
|
@@ -86,16 +87,17 @@ export declare function colSizesIsChanged(colSizes: ColSize[], newSizes: ColSize
|
|
|
86
87
|
* @param bodyCols 主体列配置
|
|
87
88
|
* @param colSizes 列尺寸数据
|
|
88
89
|
*/
|
|
89
|
-
export declare function getTableColumns(bodyCols: BodyColumns, colSizes: ColSize[]): Partial<import(
|
|
90
|
+
export declare function getTableColumns(bodyCols: BodyColumns, colSizes: ColSize[]): Partial<import('element-plus').Column<DataItem>>[];
|
|
90
91
|
/**
|
|
91
92
|
* 处理表格数据
|
|
92
93
|
* @param data 数据
|
|
93
94
|
* @param hasExpandCol 是否有展开列
|
|
94
95
|
* @param childrenName 树表格子级数据字段名
|
|
96
|
+
* @param hasChildrenName 树表格是否有子级字段名
|
|
95
97
|
* @param rowKey 数据唯一值字段名
|
|
96
98
|
* @param selectable 控制行是否可选中的方法
|
|
97
99
|
*/
|
|
98
|
-
export declare function transformTableData(data: DataItem[] | undefined, hasExpandCol: boolean, childrenName: string, rowKey: RowKey, selectable?: RowSelectable | null):
|
|
100
|
+
export declare function transformTableData(data: DataItem[] | undefined, hasExpandCol: boolean, childrenName: string, hasChildrenName: string, rowKey: RowKey, selectable?: RowSelectable | null): VirtualRow[];
|
|
99
101
|
/**
|
|
100
102
|
* 获取值对应的数据
|
|
101
103
|
* @param key 值
|
|
@@ -103,14 +105,14 @@ export declare function transformTableData(data: DataItem[] | undefined, hasExpa
|
|
|
103
105
|
* @param rowKey 数据值字段名
|
|
104
106
|
* @param childrenField 子级字段名
|
|
105
107
|
*/
|
|
106
|
-
export declare function getRowByKey(key: DataKey, data:
|
|
108
|
+
export declare function getRowByKey<T extends DataItem | VirtualRow>(key: DataKey, data: T[], rowKey?: RowKey, childrenField?: string): T | undefined;
|
|
107
109
|
/**
|
|
108
110
|
* 获取平铺后的数据值和数据
|
|
109
111
|
* @param data 表格数据
|
|
110
112
|
* @param rowKey 数据值字段名
|
|
111
113
|
* @param childrenField 子级字段名
|
|
112
114
|
*/
|
|
113
|
-
export declare function getKeysAndList(data?:
|
|
115
|
+
export declare function getKeysAndList<T extends DataItem | VirtualRow>(data?: T[], rowKey?: RowKey, childrenField?: string): [DataKey[], T[]];
|
|
114
116
|
/**
|
|
115
117
|
* 判断是否自适应行高
|
|
116
118
|
* @param hasExpandCol 是否有展开行
|
|
@@ -123,7 +125,7 @@ export declare function isAutoRowHeight(hasExpandCol: boolean, bodyCols: BodyCol
|
|
|
123
125
|
* @param props 属性
|
|
124
126
|
* @param ctx SetupContext
|
|
125
127
|
*/
|
|
126
|
-
export declare function CellRender(props: CustomRenderProps, ctx: SetupContext): (string | number | import(
|
|
128
|
+
export declare function CellRender(props: CustomRenderProps, ctx: SetupContext): (string | number | import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
127
129
|
[key: string]: any;
|
|
128
130
|
}>)[] | undefined;
|
|
129
131
|
/**
|
|
@@ -174,7 +176,7 @@ export declare function getTreeProps(treeProps?: TreeProps): TreeTableProps;
|
|
|
174
176
|
* @param index 自定义起始索引
|
|
175
177
|
* @param pageIndex 表格分页起始索引
|
|
176
178
|
*/
|
|
177
|
-
export declare function getIndexValue(rowIndex
|
|
179
|
+
export declare function getIndexValue(rowIndex: number, index?: ColumnIndex, pageIndex?: number): string;
|
|
178
180
|
/**
|
|
179
181
|
* 获取单元格的跨行和跨列
|
|
180
182
|
* @param column 列配置
|
|
@@ -195,8 +197,10 @@ export declare function getUserSums(summaryMethod?: SummaryMethod, bodyCols?: Bo
|
|
|
195
197
|
* 计算列合计值
|
|
196
198
|
* @param data 表格数据
|
|
197
199
|
* @param prop 列字段名称
|
|
200
|
+
* @param index 列索引
|
|
201
|
+
* @param sumText 第一列文本
|
|
198
202
|
*/
|
|
199
|
-
export declare function getSumValue(data?: DataItem[], prop?: string): string;
|
|
203
|
+
export declare function getSumValue(data?: DataItem[], prop?: string, index?: number, sumText?: string): string;
|
|
200
204
|
/**
|
|
201
205
|
* 获取原始列配置
|
|
202
206
|
* @param columns 列配置
|
|
@@ -219,7 +223,7 @@ export declare function cellIsOverflow(cell: HTMLElement): boolean;
|
|
|
219
223
|
* @param getEl 获取根节点的方法
|
|
220
224
|
*/
|
|
221
225
|
export declare function useAutoResize(getEl: () => HTMLElement | null): {
|
|
222
|
-
wrapWidth: import(
|
|
223
|
-
wrapHeight: import(
|
|
226
|
+
wrapWidth: import('vue').Ref<number>;
|
|
227
|
+
wrapHeight: import('vue').Ref<number>;
|
|
224
228
|
updateWrapSize: () => void;
|
|
225
229
|
};
|
|
@@ -244,24 +244,24 @@ function getTableColumns(bodyCols, colSizes) {
|
|
|
244
244
|
});
|
|
245
245
|
return columns.filter((col) => !!col.width);
|
|
246
246
|
}
|
|
247
|
-
function transformTableData(data, hasExpandCol, childrenName, rowKey, selectable) {
|
|
247
|
+
function transformTableData(data, hasExpandCol, childrenName, hasChildrenName, rowKey, selectable) {
|
|
248
248
|
if (!data || !data.length) {
|
|
249
249
|
return [];
|
|
250
250
|
}
|
|
251
251
|
if (hasExpandCol) {
|
|
252
252
|
return data.map((d, i) => {
|
|
253
|
-
const key = getValue(d, rowKey);
|
|
253
|
+
const key = getValue(d, rowKey) ?? i;
|
|
254
254
|
const temp = {
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
255
|
+
rowId: "_expand_" + key,
|
|
256
|
+
rowIndex: i,
|
|
257
|
+
rowData: d,
|
|
258
|
+
isExpandRow: true
|
|
259
259
|
};
|
|
260
260
|
return {
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
261
|
+
rowId: key,
|
|
262
|
+
rowIndex: i,
|
|
263
|
+
rowData: d,
|
|
264
|
+
isDisabled: !(selectable == null || selectable(d, index) === true),
|
|
265
265
|
children: [temp]
|
|
266
266
|
};
|
|
267
267
|
});
|
|
@@ -272,10 +272,11 @@ function transformTableData(data, hasExpandCol, childrenName, rowKey, selectable
|
|
|
272
272
|
(d) => {
|
|
273
273
|
index++;
|
|
274
274
|
return {
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
275
|
+
rowId: getValue(d, rowKey) ?? index,
|
|
276
|
+
rowIndex: index,
|
|
277
|
+
rowData: d,
|
|
278
|
+
isDisabled: !(selectable == null || selectable(d, index) === true),
|
|
279
|
+
hasChildren: d[hasChildrenName] === true
|
|
279
280
|
};
|
|
280
281
|
},
|
|
281
282
|
childrenName
|
|
@@ -283,7 +284,7 @@ function transformTableData(data, hasExpandCol, childrenName, rowKey, selectable
|
|
|
283
284
|
}
|
|
284
285
|
function getRowByKey(key, data, rowKey, childrenField) {
|
|
285
286
|
if (rowKey == null) {
|
|
286
|
-
return findTree(data, (d) => d.
|
|
287
|
+
return findTree(data, (d) => d.rowId === key && !d.isExpandRow);
|
|
287
288
|
}
|
|
288
289
|
return findTree(data, (d) => getValue(d, rowKey) === key, childrenField);
|
|
289
290
|
}
|
|
@@ -294,8 +295,8 @@ function getKeysAndList(data, rowKey, childrenField) {
|
|
|
294
295
|
data,
|
|
295
296
|
(d) => {
|
|
296
297
|
const flag = rowKey == null;
|
|
297
|
-
if (!flag || !d.
|
|
298
|
-
keys.push(flag ? d.
|
|
298
|
+
if (!flag || !d.isExpandRow) {
|
|
299
|
+
keys.push(flag ? d.rowId : getValue(d, rowKey));
|
|
299
300
|
list.push(d);
|
|
300
301
|
}
|
|
301
302
|
},
|
|
@@ -414,14 +415,18 @@ function getTreeProps(treeProps) {
|
|
|
414
415
|
}
|
|
415
416
|
function getIndexValue(rowIndex, index, pageIndex) {
|
|
416
417
|
if (index == null) {
|
|
417
|
-
return String((pageIndex
|
|
418
|
+
return String((pageIndex ?? 1) + rowIndex);
|
|
418
419
|
}
|
|
419
|
-
|
|
420
|
-
|
|
420
|
+
if (typeof index === "function") {
|
|
421
|
+
return String(index(rowIndex));
|
|
422
|
+
}
|
|
423
|
+
return String(index + rowIndex);
|
|
421
424
|
}
|
|
422
425
|
function getCellSpan(params, spanMethod) {
|
|
426
|
+
var _a;
|
|
423
427
|
const span = { rowspan: 1, colspan: 1 };
|
|
424
|
-
|
|
428
|
+
const type = (_a = params.column) == null ? void 0 : _a.type;
|
|
429
|
+
if ((!type || !["index", "selection", "expand"].includes(type)) && typeof spanMethod === "function") {
|
|
425
430
|
const result = spanMethod(params);
|
|
426
431
|
if (result != null) {
|
|
427
432
|
if (Array.isArray(result)) {
|
|
@@ -445,15 +450,18 @@ function getCellSpan(params, spanMethod) {
|
|
|
445
450
|
return span;
|
|
446
451
|
}
|
|
447
452
|
function getUserSums(summaryMethod, bodyCols, data) {
|
|
448
|
-
if (typeof summaryMethod !== "function" || bodyCols == null) {
|
|
453
|
+
if (typeof summaryMethod !== "function" || bodyCols == null || data == null) {
|
|
449
454
|
return;
|
|
450
455
|
}
|
|
451
456
|
const columns = bodyCols.map((col) => {
|
|
452
457
|
return { ...col.originalCol || {}, property: col.dataKey };
|
|
453
458
|
});
|
|
454
|
-
return summaryMethod({ columns, data
|
|
459
|
+
return summaryMethod({ columns, data });
|
|
455
460
|
}
|
|
456
|
-
function getSumValue(data, prop) {
|
|
461
|
+
function getSumValue(data, prop, index, sumText) {
|
|
462
|
+
if (index === 0) {
|
|
463
|
+
return sumText ?? "Sum";
|
|
464
|
+
}
|
|
457
465
|
if (!data || !prop) {
|
|
458
466
|
return "";
|
|
459
467
|
}
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<{
|
|
3
4
|
width: NumberConstructor;
|
|
4
5
|
height: NumberConstructor;
|
|
5
6
|
rotate: NumberConstructor;
|
|
6
7
|
zIndex: NumberConstructor;
|
|
7
8
|
image: StringConstructor;
|
|
8
|
-
content: import(
|
|
9
|
-
font: import(
|
|
10
|
-
gap: import(
|
|
11
|
-
offset: import(
|
|
9
|
+
content: import('vue').PropType<string | string[]>;
|
|
10
|
+
font: import('vue').PropType<import('./types').WatermarkFont>;
|
|
11
|
+
gap: import('vue').PropType<import('./types').WatermarkGap>;
|
|
12
|
+
offset: import('vue').PropType<import('./types').WatermarkOffset>;
|
|
12
13
|
lineGap: {
|
|
13
14
|
type: NumberConstructor;
|
|
14
15
|
default: number;
|
|
15
16
|
};
|
|
16
|
-
customStyle: import(
|
|
17
|
+
customStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
17
18
|
fixed: BooleanConstructor;
|
|
18
19
|
wrapPosition: {
|
|
19
20
|
type: BooleanConstructor;
|
|
@@ -24,22 +25,22 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
24
25
|
rootKey: Ref<number>;
|
|
25
26
|
rootRef: Ref<HTMLDivElement | null>;
|
|
26
27
|
imgRef: Ref<HTMLDivElement | null>;
|
|
27
|
-
imgStyle: Ref<Partial<import(
|
|
28
|
-
}, unknown, {}, {}, import(
|
|
28
|
+
imgStyle: Ref<Partial<import('vue').CSSProperties>>;
|
|
29
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
29
30
|
width: NumberConstructor;
|
|
30
31
|
height: NumberConstructor;
|
|
31
32
|
rotate: NumberConstructor;
|
|
32
33
|
zIndex: NumberConstructor;
|
|
33
34
|
image: StringConstructor;
|
|
34
|
-
content: import(
|
|
35
|
-
font: import(
|
|
36
|
-
gap: import(
|
|
37
|
-
offset: import(
|
|
35
|
+
content: import('vue').PropType<string | string[]>;
|
|
36
|
+
font: import('vue').PropType<import('./types').WatermarkFont>;
|
|
37
|
+
gap: import('vue').PropType<import('./types').WatermarkGap>;
|
|
38
|
+
offset: import('vue').PropType<import('./types').WatermarkOffset>;
|
|
38
39
|
lineGap: {
|
|
39
40
|
type: NumberConstructor;
|
|
40
41
|
default: number;
|
|
41
42
|
};
|
|
42
|
-
customStyle: import(
|
|
43
|
+
customStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
|
|
43
44
|
fixed: BooleanConstructor;
|
|
44
45
|
wrapPosition: {
|
|
45
46
|
type: BooleanConstructor;
|