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,145 +1,169 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { BodyColumns, ColSize, VirtualRow } from '../types';
|
|
2
|
+
import { DataKey, DataItem, Column } from '../../ele-data-table/types';
|
|
3
|
+
import { PropType } from 'vue';
|
|
4
|
+
|
|
5
|
+
declare const _default: import('vue').DefineComponent<{
|
|
5
6
|
/** 主体列配置 */
|
|
6
|
-
bodyCols:
|
|
7
|
+
bodyCols: {
|
|
8
|
+
type: PropType<BodyColumns>;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
7
11
|
/** 表格主体列宽 */
|
|
8
|
-
colSizes:
|
|
12
|
+
colSizes: {
|
|
13
|
+
type: PropType<ColSize[]>;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
9
16
|
/** 当前行索引 */
|
|
10
|
-
rowIndex:
|
|
11
|
-
|
|
12
|
-
|
|
17
|
+
rowIndex: {
|
|
18
|
+
type: NumberConstructor;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
/** 当前行对象 */
|
|
22
|
+
rowItem: {
|
|
23
|
+
type: PropType<VirtualRow>;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
/** 当前行数据唯一值 */
|
|
27
|
+
rowId: PropType<DataKey>;
|
|
13
28
|
/** 表格多选选中的值 */
|
|
14
29
|
checkedRowKeys: PropType<Set<DataKey>>;
|
|
15
|
-
/** 是否禁用表头选择框 */
|
|
16
|
-
tableSize: PropType<"" | "default" | "small" | "large" | undefined>;
|
|
17
30
|
/** 单元格类名自定义 */
|
|
18
|
-
bodyCellClass: PropType<import(
|
|
31
|
+
bodyCellClass: PropType<import('element-plus').CellCls<DataItem> | undefined>;
|
|
19
32
|
/** 单元格样式自定义 */
|
|
20
|
-
bodyCellStyle: PropType<import(
|
|
33
|
+
bodyCellStyle: PropType<import('element-plus').CellStyle<DataItem> | undefined>;
|
|
21
34
|
/** 单元格合并行列方法 */
|
|
22
35
|
spanMethod: PropType<((data: {
|
|
23
36
|
row: DataItem;
|
|
24
37
|
rowIndex: number;
|
|
25
|
-
column: import(
|
|
38
|
+
column: import('element-plus').TableColumnCtx<DataItem>;
|
|
26
39
|
columnIndex: number;
|
|
27
40
|
}) => number[] | {
|
|
28
41
|
rowspan: number;
|
|
29
42
|
colspan: number;
|
|
30
43
|
} | undefined) | undefined>;
|
|
31
44
|
/** 溢出提示组件全局属性 */
|
|
32
|
-
tableTooltipProps: PropType<boolean | Partial<Pick<import(
|
|
45
|
+
tableTooltipProps: PropType<boolean | Partial<Pick<import('element-plus').ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "showArrow" | "appendTo" | "transition" | "enterable" | "showAfter" | "hideAfter">> | undefined>;
|
|
33
46
|
/** 序号列起始编号 */
|
|
34
47
|
pageIndex: NumberConstructor;
|
|
35
48
|
/** 表格行高 */
|
|
36
49
|
rowHeight: NumberConstructor;
|
|
50
|
+
/** 表格尺寸 */
|
|
51
|
+
tableSize: PropType<"" | "default" | "small" | "large" | undefined>;
|
|
37
52
|
/** 树表格展开图标的列 */
|
|
38
53
|
expandColumnKey: StringConstructor;
|
|
39
54
|
/** 表格展开行的值 */
|
|
40
55
|
expandedRowKeys: PropType<DataKey[]>;
|
|
41
|
-
/** 嵌套数据是否有子级字段名称 */
|
|
42
|
-
hasChildrenName: StringConstructor;
|
|
43
56
|
/** 树表格是否懒加载子级 */
|
|
44
57
|
lazy: BooleanConstructor;
|
|
45
58
|
/** 树表格懒加载方法 */
|
|
46
|
-
load: PropType<((row: DataItem, treeNode: import(
|
|
47
|
-
/**
|
|
59
|
+
load: PropType<((row: DataItem, treeNode: import('element-plus').TreeNode, resolve: (data: DataItem[]) => void) => void) | undefined>;
|
|
60
|
+
/** 树表格行数据缩进级别 */
|
|
48
61
|
level: NumberConstructor;
|
|
49
|
-
/**
|
|
62
|
+
/** 树表格每一级行缩进大小 */
|
|
50
63
|
indent: NumberConstructor;
|
|
51
64
|
/** 是否需要固定单元格高度 */
|
|
52
65
|
fixedCellHeight: BooleanConstructor;
|
|
53
66
|
/** 表格是否是自适应行高 */
|
|
54
67
|
autoRowHeight: BooleanConstructor;
|
|
55
68
|
}, {
|
|
56
|
-
loading: import(
|
|
57
|
-
isChecked: import(
|
|
58
|
-
hasChildren: import(
|
|
59
|
-
rowIndent: import(
|
|
60
|
-
isCollapse: import(
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
69
|
+
loading: import('vue').Ref<boolean>;
|
|
70
|
+
isChecked: import('vue').ComputedRef<boolean>;
|
|
71
|
+
hasChildren: import('vue').ComputedRef<boolean>;
|
|
72
|
+
rowIndent: import('vue').ComputedRef<string | undefined>;
|
|
73
|
+
isCollapse: import('vue').ComputedRef<boolean>;
|
|
74
|
+
onCellCheckedChange: (checked: boolean) => void;
|
|
75
|
+
onCellExpandChange: (expanded: boolean) => void;
|
|
76
|
+
onCellClick: (col: Column, e: MouseEvent) => void;
|
|
77
|
+
onCellDblclick: (col: Column, e: MouseEvent) => void;
|
|
78
|
+
onCellContextmenu: (col: Column, e: MouseEvent) => void;
|
|
79
|
+
onCellMouseenter: (col: Column, e: MouseEvent) => void;
|
|
80
|
+
onCellMouseleave: (col: Column, e: MouseEvent) => void;
|
|
81
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
70
82
|
/** 多选框选中改变事件 */
|
|
71
|
-
cellCheckedChange: (_row:
|
|
83
|
+
cellCheckedChange: (_row: VirtualRow, _checked: boolean) => true;
|
|
72
84
|
/** 展开状态改变事件 */
|
|
73
|
-
cellExpandChange: (_row:
|
|
85
|
+
cellExpandChange: (_row: VirtualRow, _expanded: boolean, _children?: DataItem[]) => true;
|
|
74
86
|
/** 单元格点击事件 */
|
|
75
|
-
cellClick: (_row:
|
|
87
|
+
cellClick: (_row: VirtualRow, _col: Column, _e: MouseEvent) => true;
|
|
76
88
|
/** 单元格双击事件 */
|
|
77
|
-
cellDblclick: (_row:
|
|
89
|
+
cellDblclick: (_row: VirtualRow, _col: Column, _e: MouseEvent) => true;
|
|
78
90
|
/** 单元格右键事件 */
|
|
79
|
-
cellContextmenu: (_row:
|
|
91
|
+
cellContextmenu: (_row: VirtualRow, _col: Column, _e: MouseEvent) => true;
|
|
80
92
|
/** 单元格鼠标移入事件 */
|
|
81
|
-
cellMouseenter: (_row:
|
|
93
|
+
cellMouseenter: (_row: VirtualRow, _col: Column, _e: MouseEvent) => true;
|
|
82
94
|
/** 单元格鼠标移出事件 */
|
|
83
|
-
cellMouseleave: (_row:
|
|
84
|
-
}, string, import(
|
|
95
|
+
cellMouseleave: (_row: VirtualRow, _col: Column, _e: MouseEvent) => true;
|
|
96
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
85
97
|
/** 主体列配置 */
|
|
86
|
-
bodyCols:
|
|
98
|
+
bodyCols: {
|
|
99
|
+
type: PropType<BodyColumns>;
|
|
100
|
+
required: true;
|
|
101
|
+
};
|
|
87
102
|
/** 表格主体列宽 */
|
|
88
|
-
colSizes:
|
|
103
|
+
colSizes: {
|
|
104
|
+
type: PropType<ColSize[]>;
|
|
105
|
+
required: true;
|
|
106
|
+
};
|
|
89
107
|
/** 当前行索引 */
|
|
90
|
-
rowIndex:
|
|
91
|
-
|
|
92
|
-
|
|
108
|
+
rowIndex: {
|
|
109
|
+
type: NumberConstructor;
|
|
110
|
+
required: true;
|
|
111
|
+
};
|
|
112
|
+
/** 当前行对象 */
|
|
113
|
+
rowItem: {
|
|
114
|
+
type: PropType<VirtualRow>;
|
|
115
|
+
required: true;
|
|
116
|
+
};
|
|
117
|
+
/** 当前行数据唯一值 */
|
|
118
|
+
rowId: PropType<DataKey>;
|
|
93
119
|
/** 表格多选选中的值 */
|
|
94
120
|
checkedRowKeys: PropType<Set<DataKey>>;
|
|
95
|
-
/** 是否禁用表头选择框 */
|
|
96
|
-
tableSize: PropType<"" | "default" | "small" | "large" | undefined>;
|
|
97
121
|
/** 单元格类名自定义 */
|
|
98
|
-
bodyCellClass: PropType<import(
|
|
122
|
+
bodyCellClass: PropType<import('element-plus').CellCls<DataItem> | undefined>;
|
|
99
123
|
/** 单元格样式自定义 */
|
|
100
|
-
bodyCellStyle: PropType<import(
|
|
124
|
+
bodyCellStyle: PropType<import('element-plus').CellStyle<DataItem> | undefined>;
|
|
101
125
|
/** 单元格合并行列方法 */
|
|
102
126
|
spanMethod: PropType<((data: {
|
|
103
127
|
row: DataItem;
|
|
104
128
|
rowIndex: number;
|
|
105
|
-
column: import(
|
|
129
|
+
column: import('element-plus').TableColumnCtx<DataItem>;
|
|
106
130
|
columnIndex: number;
|
|
107
131
|
}) => number[] | {
|
|
108
132
|
rowspan: number;
|
|
109
133
|
colspan: number;
|
|
110
134
|
} | undefined) | undefined>;
|
|
111
135
|
/** 溢出提示组件全局属性 */
|
|
112
|
-
tableTooltipProps: PropType<boolean | Partial<Pick<import(
|
|
136
|
+
tableTooltipProps: PropType<boolean | Partial<Pick<import('element-plus').ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "showArrow" | "appendTo" | "transition" | "enterable" | "showAfter" | "hideAfter">> | undefined>;
|
|
113
137
|
/** 序号列起始编号 */
|
|
114
138
|
pageIndex: NumberConstructor;
|
|
115
139
|
/** 表格行高 */
|
|
116
140
|
rowHeight: NumberConstructor;
|
|
141
|
+
/** 表格尺寸 */
|
|
142
|
+
tableSize: PropType<"" | "default" | "small" | "large" | undefined>;
|
|
117
143
|
/** 树表格展开图标的列 */
|
|
118
144
|
expandColumnKey: StringConstructor;
|
|
119
145
|
/** 表格展开行的值 */
|
|
120
146
|
expandedRowKeys: PropType<DataKey[]>;
|
|
121
|
-
/** 嵌套数据是否有子级字段名称 */
|
|
122
|
-
hasChildrenName: StringConstructor;
|
|
123
147
|
/** 树表格是否懒加载子级 */
|
|
124
148
|
lazy: BooleanConstructor;
|
|
125
149
|
/** 树表格懒加载方法 */
|
|
126
|
-
load: PropType<((row: DataItem, treeNode: import(
|
|
127
|
-
/**
|
|
150
|
+
load: PropType<((row: DataItem, treeNode: import('element-plus').TreeNode, resolve: (data: DataItem[]) => void) => void) | undefined>;
|
|
151
|
+
/** 树表格行数据缩进级别 */
|
|
128
152
|
level: NumberConstructor;
|
|
129
|
-
/**
|
|
153
|
+
/** 树表格每一级行缩进大小 */
|
|
130
154
|
indent: NumberConstructor;
|
|
131
155
|
/** 是否需要固定单元格高度 */
|
|
132
156
|
fixedCellHeight: BooleanConstructor;
|
|
133
157
|
/** 表格是否是自适应行高 */
|
|
134
158
|
autoRowHeight: BooleanConstructor;
|
|
135
159
|
}>> & {
|
|
136
|
-
onCellClick?: ((_row:
|
|
137
|
-
onCellDblclick?: ((_row:
|
|
138
|
-
onCellContextmenu?: ((_row:
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
onCellMouseleave?: ((_row:
|
|
160
|
+
onCellClick?: ((_row: VirtualRow, _col: Column, _e: MouseEvent) => any) | undefined;
|
|
161
|
+
onCellDblclick?: ((_row: VirtualRow, _col: Column, _e: MouseEvent) => any) | undefined;
|
|
162
|
+
onCellContextmenu?: ((_row: VirtualRow, _col: Column, _e: MouseEvent) => any) | undefined;
|
|
163
|
+
onCellMouseenter?: ((_row: VirtualRow, _col: Column, _e: MouseEvent) => any) | undefined;
|
|
164
|
+
onCellCheckedChange?: ((_row: VirtualRow, _checked: boolean) => any) | undefined;
|
|
165
|
+
onCellExpandChange?: ((_row: VirtualRow, _expanded: boolean, _children?: DataItem[] | undefined) => any) | undefined;
|
|
166
|
+
onCellMouseleave?: ((_row: VirtualRow, _col: Column, _e: MouseEvent) => any) | undefined;
|
|
143
167
|
}, {
|
|
144
168
|
lazy: boolean;
|
|
145
169
|
fixedCellHeight: boolean;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<{
|
|
3
4
|
/** 是否是选中状态 */
|
|
4
5
|
checked: BooleanConstructor;
|
|
5
6
|
/** 是否是半选状态 */
|
|
@@ -10,10 +11,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
10
11
|
size: PropType<"" | "default" | "small" | "large" | undefined>;
|
|
11
12
|
}, {
|
|
12
13
|
onUpdateModelValue: (modelValue: boolean) => void;
|
|
13
|
-
}, unknown, {}, {}, import(
|
|
14
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
15
|
/** 选中改变事件 */
|
|
15
16
|
change: (_checked: boolean) => true;
|
|
16
|
-
}, string, import(
|
|
17
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
17
18
|
/** 是否是选中状态 */
|
|
18
19
|
checked: BooleanConstructor;
|
|
19
20
|
/** 是否是半选状态 */
|
|
@@ -33,7 +33,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
33
33
|
},
|
|
34
34
|
setup(props, { emit }) {
|
|
35
35
|
const { t } = elementPlus.useLocale();
|
|
36
|
-
const
|
|
36
|
+
const popperRef = vue.ref(null);
|
|
37
37
|
const checkedValue = vue.ref([]);
|
|
38
38
|
const clearFilterText = vue.computed(() => {
|
|
39
39
|
return t("el.table.clearFilter");
|
|
@@ -51,7 +51,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
51
51
|
return t("el.table.resetFilter");
|
|
52
52
|
});
|
|
53
53
|
const hidePopper = () => {
|
|
54
|
-
|
|
54
|
+
popperRef.value && popperRef.value.hide();
|
|
55
55
|
};
|
|
56
56
|
const onBeforeEnter = () => {
|
|
57
57
|
checkedValue.value = props.filtered ?? [];
|
|
@@ -73,7 +73,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
73
73
|
hidePopper();
|
|
74
74
|
};
|
|
75
75
|
return {
|
|
76
|
-
|
|
76
|
+
popperRef,
|
|
77
77
|
checkedValue,
|
|
78
78
|
clearFilterText,
|
|
79
79
|
filteredValue,
|
|
@@ -114,7 +114,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
114
114
|
}, ["stop"]))
|
|
115
115
|
}, [
|
|
116
116
|
vue.createVNode(_component_EleTooltip, {
|
|
117
|
-
ref: "
|
|
117
|
+
ref: "popperRef",
|
|
118
118
|
trigger: "click",
|
|
119
119
|
showArrow: false,
|
|
120
120
|
placement: _ctx.filterPlacement,
|
|
@@ -139,13 +139,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
139
139
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.filters, (item) => {
|
|
140
140
|
return vue.openBlock(), vue.createBlock(_component_ElCheckbox, {
|
|
141
141
|
key: item.value,
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
vue.createTextVNode(vue.toDisplayString(item.text), 1)
|
|
146
|
-
]),
|
|
147
|
-
_: 2
|
|
148
|
-
}, 1032, ["label"]);
|
|
142
|
+
value: item.value,
|
|
143
|
+
label: item.text
|
|
144
|
+
}, null, 8, ["value", "label"]);
|
|
149
145
|
}), 128))
|
|
150
146
|
]),
|
|
151
147
|
_: 1
|
|
@@ -1,49 +1,50 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { EleTooltipInstance } from '../../ele-app/plus';
|
|
2
|
+
import { FilterValue } from '../../ele-data-table/types';
|
|
3
|
+
import { PropType } from 'vue';
|
|
4
|
+
|
|
5
|
+
declare const _default: import('vue').DefineComponent<{
|
|
5
6
|
/** 选中项 */
|
|
6
7
|
filtered: PropType<FilterValue>;
|
|
7
8
|
/** 是否多选 */
|
|
8
9
|
filterMultiple: BooleanConstructor;
|
|
9
10
|
/** 数据项 */
|
|
10
|
-
filters: PropType<import(
|
|
11
|
+
filters: PropType<import('element-plus/es/components/table/src/table-column/defaults').Filters | undefined>;
|
|
11
12
|
/** 弹出框定位 */
|
|
12
13
|
filterPlacement: {
|
|
13
|
-
type: PropType<
|
|
14
|
+
type: PropType<import('element-plus/es/utils/index').EpPropMergeType<StringConstructor, import('element-plus').Placement, unknown> | undefined>;
|
|
14
15
|
default: string;
|
|
15
16
|
};
|
|
16
17
|
}, {
|
|
17
|
-
|
|
18
|
-
checkedValue: import(
|
|
19
|
-
clearFilterText: import(
|
|
20
|
-
filteredValue: import(
|
|
21
|
-
confirmText: import(
|
|
22
|
-
resetText: import(
|
|
18
|
+
popperRef: import('vue').Ref<EleTooltipInstance>;
|
|
19
|
+
checkedValue: import('vue').Ref<string[]>;
|
|
20
|
+
clearFilterText: import('vue').ComputedRef<string>;
|
|
21
|
+
filteredValue: import('vue').ComputedRef<string | undefined>;
|
|
22
|
+
confirmText: import('vue').ComputedRef<string>;
|
|
23
|
+
resetText: import('vue').ComputedRef<string>;
|
|
23
24
|
onItemClick: (value?: string) => void;
|
|
24
25
|
onFilterChange: (filtered: FilterValue) => void;
|
|
25
26
|
onConfirm: () => void;
|
|
26
27
|
onReset: () => void;
|
|
27
28
|
onBeforeEnter: () => void;
|
|
28
|
-
}, unknown, {}, {}, import(
|
|
29
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
29
30
|
/** 选中改变事件 */
|
|
30
31
|
change: (_filtered: FilterValue) => true;
|
|
31
|
-
}, string, import(
|
|
32
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
32
33
|
/** 选中项 */
|
|
33
34
|
filtered: PropType<FilterValue>;
|
|
34
35
|
/** 是否多选 */
|
|
35
36
|
filterMultiple: BooleanConstructor;
|
|
36
37
|
/** 数据项 */
|
|
37
|
-
filters: PropType<import(
|
|
38
|
+
filters: PropType<import('element-plus/es/components/table/src/table-column/defaults').Filters | undefined>;
|
|
38
39
|
/** 弹出框定位 */
|
|
39
40
|
filterPlacement: {
|
|
40
|
-
type: PropType<
|
|
41
|
+
type: PropType<import('element-plus/es/utils/index').EpPropMergeType<StringConstructor, import('element-plus').Placement, unknown> | undefined>;
|
|
41
42
|
default: string;
|
|
42
43
|
};
|
|
43
44
|
}>> & {
|
|
44
45
|
onChange?: ((_filtered: FilterValue) => any) | undefined;
|
|
45
46
|
}, {
|
|
46
|
-
filterPlacement:
|
|
47
|
+
filterPlacement: import('element-plus/es/utils/index').EpPropMergeType<StringConstructor, import('element-plus').Placement, unknown> | undefined;
|
|
47
48
|
filterMultiple: boolean;
|
|
48
49
|
}, {}>;
|
|
49
50
|
export default _default;
|
|
@@ -3,11 +3,11 @@ const vue = require("vue");
|
|
|
3
3
|
const _sfc_main = vue.defineComponent({
|
|
4
4
|
name: "ExpandRow",
|
|
5
5
|
props: {
|
|
6
|
-
/** 列配置 */
|
|
6
|
+
/** 列配置(原始配置) */
|
|
7
7
|
column: Object,
|
|
8
8
|
/** 行索引 */
|
|
9
9
|
rowIndex: Number,
|
|
10
|
-
/** 行数据 */
|
|
10
|
+
/** 行数据(原始数据) */
|
|
11
11
|
rowData: Object
|
|
12
12
|
}
|
|
13
13
|
});
|
|
@@ -21,7 +21,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
21
21
|
const _hoisted_1 = { class: "el-table-v2__row-cell ele-table-td" };
|
|
22
22
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23
23
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
24
|
-
_ctx.column && _ctx.column.
|
|
24
|
+
_ctx.column && _ctx.column.slot ? vue.renderSlot(_ctx.$slots, _ctx.column.slot, vue.normalizeProps(vue.mergeProps({ key: 0 }, { row: _ctx.rowData, column: _ctx.column, $index: _ctx.rowIndex }))) : vue.createCommentVNode("", true)
|
|
25
25
|
]);
|
|
26
26
|
}
|
|
27
27
|
const expandRow = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { DataItem, Column } from '../../ele-data-table/types';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
|
|
4
|
+
declare const _default: import('vue').DefineComponent<{
|
|
5
|
+
/** 列配置(原始配置) */
|
|
6
|
+
column: PropType<Column>;
|
|
6
7
|
/** 行索引 */
|
|
7
8
|
rowIndex: NumberConstructor;
|
|
8
|
-
/** 行数据 */
|
|
9
|
+
/** 行数据(原始数据) */
|
|
9
10
|
rowData: PropType<DataItem>;
|
|
10
|
-
}, unknown, unknown, {}, {}, import(
|
|
11
|
-
/** 列配置 */
|
|
12
|
-
column: PropType<
|
|
11
|
+
}, unknown, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
12
|
+
/** 列配置(原始配置) */
|
|
13
|
+
column: PropType<Column>;
|
|
13
14
|
/** 行索引 */
|
|
14
15
|
rowIndex: NumberConstructor;
|
|
15
|
-
/** 行数据 */
|
|
16
|
+
/** 行数据(原始数据) */
|
|
16
17
|
rowData: PropType<DataItem>;
|
|
17
18
|
}>>, {}, {}>;
|
|
18
19
|
export default _default;
|
|
@@ -6,13 +6,22 @@ const _sfc_main = vue.defineComponent({
|
|
|
6
6
|
components: { CellRender: util.CellRender },
|
|
7
7
|
props: {
|
|
8
8
|
/** 表格主体列配置 */
|
|
9
|
-
bodyCols:
|
|
9
|
+
bodyCols: {
|
|
10
|
+
type: Array,
|
|
11
|
+
required: true
|
|
12
|
+
},
|
|
13
|
+
/** 表格数据 */
|
|
14
|
+
tableData: {
|
|
15
|
+
type: Array,
|
|
16
|
+
required: true
|
|
17
|
+
},
|
|
10
18
|
/** 表格主体列宽 */
|
|
11
|
-
colSizes:
|
|
19
|
+
colSizes: {
|
|
20
|
+
type: Array,
|
|
21
|
+
required: true
|
|
22
|
+
},
|
|
12
23
|
/** 表格主体所有列合计宽度 */
|
|
13
24
|
sumWidth: Number,
|
|
14
|
-
/** 表格数据 */
|
|
15
|
-
tableData: Array,
|
|
16
25
|
/** 表格行高 */
|
|
17
26
|
rowHeight: Number,
|
|
18
27
|
/** 合计行文本 */
|
|
@@ -25,21 +34,17 @@ const _sfc_main = vue.defineComponent({
|
|
|
25
34
|
mouseenter: (_e) => true
|
|
26
35
|
},
|
|
27
36
|
setup(props, { emit }) {
|
|
37
|
+
const data = vue.computed(() => {
|
|
38
|
+
return props.tableData.map((row) => row.rowData);
|
|
39
|
+
});
|
|
28
40
|
const userSums = vue.computed(() => {
|
|
29
|
-
return util.getUserSums(
|
|
30
|
-
props.summaryMethod,
|
|
31
|
-
props.bodyCols,
|
|
32
|
-
props.tableData
|
|
33
|
-
);
|
|
41
|
+
return util.getUserSums(props.summaryMethod, props.bodyCols, data.value);
|
|
34
42
|
});
|
|
35
43
|
const sumCols = vue.computed(() => {
|
|
36
|
-
if (!props.bodyCols) {
|
|
37
|
-
return [];
|
|
38
|
-
}
|
|
39
44
|
const sums = userSums.value;
|
|
40
45
|
return props.bodyCols.map((column, i) => {
|
|
41
|
-
const colSize = props.colSizes
|
|
42
|
-
const sumValue = util.getSumValue(
|
|
46
|
+
const colSize = props.colSizes[i];
|
|
47
|
+
const sumValue = util.getSumValue(data.value, column.dataKey);
|
|
43
48
|
const col = column.originalCol;
|
|
44
49
|
return {
|
|
45
50
|
key: i + "-" + column.key,
|
|
@@ -1,42 +1,61 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { BodyColumns, SumCol, ColSize, VirtualRow } from '../types';
|
|
2
|
+
import { DataItem } from '../../ele-data-table/types';
|
|
3
|
+
import { PropType } from 'vue';
|
|
4
|
+
|
|
5
|
+
declare const _default: import('vue').DefineComponent<{
|
|
5
6
|
/** 表格主体列配置 */
|
|
6
|
-
bodyCols:
|
|
7
|
+
bodyCols: {
|
|
8
|
+
type: PropType<BodyColumns>;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
/** 表格数据 */
|
|
12
|
+
tableData: {
|
|
13
|
+
type: PropType<VirtualRow[]>;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
7
16
|
/** 表格主体列宽 */
|
|
8
|
-
colSizes:
|
|
17
|
+
colSizes: {
|
|
18
|
+
type: PropType<ColSize[]>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
9
21
|
/** 表格主体所有列合计宽度 */
|
|
10
22
|
sumWidth: NumberConstructor;
|
|
11
|
-
/** 表格数据 */
|
|
12
|
-
tableData: PropType<DataItem[]>;
|
|
13
23
|
/** 表格行高 */
|
|
14
24
|
rowHeight: NumberConstructor;
|
|
15
25
|
/** 合计行文本 */
|
|
16
26
|
sumText: StringConstructor;
|
|
17
27
|
/** 合计行自定义方法 */
|
|
18
|
-
summaryMethod: PropType<import(
|
|
28
|
+
summaryMethod: PropType<import('element-plus').SummaryMethod<DataItem> | undefined>;
|
|
19
29
|
}, {
|
|
20
|
-
sumCols: import(
|
|
30
|
+
sumCols: import('vue').ComputedRef<SumCol[]>;
|
|
21
31
|
onMouseenter: (e: MouseEvent) => void;
|
|
22
|
-
}, unknown, {}, {}, import(
|
|
32
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
23
33
|
/** 单元格鼠标移入事件 */
|
|
24
34
|
mouseenter: (_e: MouseEvent) => true;
|
|
25
|
-
}, string, import(
|
|
35
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
26
36
|
/** 表格主体列配置 */
|
|
27
|
-
bodyCols:
|
|
37
|
+
bodyCols: {
|
|
38
|
+
type: PropType<BodyColumns>;
|
|
39
|
+
required: true;
|
|
40
|
+
};
|
|
41
|
+
/** 表格数据 */
|
|
42
|
+
tableData: {
|
|
43
|
+
type: PropType<VirtualRow[]>;
|
|
44
|
+
required: true;
|
|
45
|
+
};
|
|
28
46
|
/** 表格主体列宽 */
|
|
29
|
-
colSizes:
|
|
47
|
+
colSizes: {
|
|
48
|
+
type: PropType<ColSize[]>;
|
|
49
|
+
required: true;
|
|
50
|
+
};
|
|
30
51
|
/** 表格主体所有列合计宽度 */
|
|
31
52
|
sumWidth: NumberConstructor;
|
|
32
|
-
/** 表格数据 */
|
|
33
|
-
tableData: PropType<DataItem[]>;
|
|
34
53
|
/** 表格行高 */
|
|
35
54
|
rowHeight: NumberConstructor;
|
|
36
55
|
/** 合计行文本 */
|
|
37
56
|
sumText: StringConstructor;
|
|
38
57
|
/** 合计行自定义方法 */
|
|
39
|
-
summaryMethod: PropType<import(
|
|
58
|
+
summaryMethod: PropType<import('element-plus').SummaryMethod<DataItem> | undefined>;
|
|
40
59
|
}>> & {
|
|
41
60
|
onMouseenter?: ((_e: MouseEvent) => any) | undefined;
|
|
42
61
|
}, {}, {}>;
|