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,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent, ref, reactive, watch, resolveComponent, openBlock, createBlock, withCtx, createVNode, mergeProps, createTextVNode, toDisplayString, withModifiers, createCommentVNode, createElementVNode } from "vue";
|
|
2
2
|
import { ElForm, ElFormItem, ElInput, ElSelect, ElOption, ElCheckbox, ElButton, ElIcon } from "element-plus";
|
|
3
3
|
import { DownloadOutlined } from "../../icons";
|
|
4
|
-
import { eachTree } from "../../utils/core";
|
|
4
|
+
import { findTree, eachTree } from "../../utils/core";
|
|
5
5
|
import EleTool from "../../ele-tool/index";
|
|
6
6
|
import EleModal from "../../ele-modal/index";
|
|
7
|
-
import { getColItems,
|
|
7
|
+
import { getColItems, columnsExportFilter, getCheckedColumns, getExportData, exportCSV } from "../util";
|
|
8
8
|
import ToolColumnList from "./tool-column-list";
|
|
9
9
|
const _sfc_main = defineComponent({
|
|
10
10
|
name: "ToolExport",
|
|
@@ -23,34 +23,13 @@ const _sfc_main = defineComponent({
|
|
|
23
23
|
ToolColumnList
|
|
24
24
|
},
|
|
25
25
|
props: {
|
|
26
|
-
/** 提示文字 */
|
|
27
|
-
title: String,
|
|
28
26
|
/** 提示位置 */
|
|
29
27
|
placement: String,
|
|
30
|
-
/**
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
untitledText: String,
|
|
36
|
-
/** 文件名文字 */
|
|
37
|
-
fileNameText: String,
|
|
38
|
-
/** 文件名提示文字 */
|
|
39
|
-
fileNamePlaceholderText: String,
|
|
40
|
-
/** 选择数据文字 */
|
|
41
|
-
selectDataText: String,
|
|
42
|
-
/** 选择字段文字 */
|
|
43
|
-
selectColumnText: String,
|
|
44
|
-
/** 当前页数据文字 */
|
|
45
|
-
dataTypePageText: String,
|
|
46
|
-
/** 选中数据文字 */
|
|
47
|
-
dataTypeSelectedText: String,
|
|
48
|
-
/** 全部数据文字 */
|
|
49
|
-
dataTypeAllText: String,
|
|
50
|
-
/** 取消文字 */
|
|
51
|
-
cancelText: String,
|
|
52
|
-
/** 确定文字 */
|
|
53
|
-
okText: String,
|
|
28
|
+
/** 表格国际化 */
|
|
29
|
+
locale: {
|
|
30
|
+
type: Object,
|
|
31
|
+
required: true
|
|
32
|
+
},
|
|
54
33
|
/** 弹窗参数 */
|
|
55
34
|
modalProps: Object,
|
|
56
35
|
/** 列数据 */
|
|
@@ -60,9 +39,11 @@ const _sfc_main = defineComponent({
|
|
|
60
39
|
/** 表格当前页数据 */
|
|
61
40
|
pageData: Array,
|
|
62
41
|
/** 表格全部数据 */
|
|
63
|
-
datasource: Array,
|
|
42
|
+
datasource: [Array, Function],
|
|
64
43
|
/** 单元格合并行列方法 */
|
|
65
44
|
spanMethod: Function,
|
|
45
|
+
/** 表格是否有表头 */
|
|
46
|
+
tableHeader: Boolean,
|
|
66
47
|
/** 是否显示合计行 */
|
|
67
48
|
showSummary: Boolean,
|
|
68
49
|
/** 合计行文本 */
|
|
@@ -71,6 +52,8 @@ const _sfc_main = defineComponent({
|
|
|
71
52
|
summaryMethod: Function,
|
|
72
53
|
/** 序号列起始索引 */
|
|
73
54
|
pageIndex: Number,
|
|
55
|
+
/** 子级字段名 */
|
|
56
|
+
childrenField: String,
|
|
74
57
|
/** 表格请求数据方法 */
|
|
75
58
|
fetch: Function,
|
|
76
59
|
/** 默认文件名 */
|
|
@@ -96,7 +79,7 @@ const _sfc_main = defineComponent({
|
|
|
96
79
|
});
|
|
97
80
|
const fileNameRules = reactive({
|
|
98
81
|
required: true,
|
|
99
|
-
message: props.
|
|
82
|
+
message: props.locale.exportFileNamePlaceholder,
|
|
100
83
|
type: "string",
|
|
101
84
|
trigger: "blur"
|
|
102
85
|
});
|
|
@@ -104,6 +87,10 @@ const _sfc_main = defineComponent({
|
|
|
104
87
|
const colItems = ref([]);
|
|
105
88
|
const isCheckAll = ref(false);
|
|
106
89
|
const isIndeterminate = ref(false);
|
|
90
|
+
const showHeader = ref(true);
|
|
91
|
+
const showFooter = ref(false);
|
|
92
|
+
const showTreeIndex = ref(false);
|
|
93
|
+
const treeIndexDisabled = ref(true);
|
|
107
94
|
const openModal = () => {
|
|
108
95
|
visible.value = true;
|
|
109
96
|
};
|
|
@@ -122,16 +109,19 @@ const _sfc_main = defineComponent({
|
|
|
122
109
|
props.columns,
|
|
123
110
|
colItems.value,
|
|
124
111
|
true,
|
|
125
|
-
|
|
112
|
+
columnsExportFilter
|
|
126
113
|
);
|
|
127
114
|
const { headerData, bodyData, footerData, bodyCols } = getExportData(
|
|
128
115
|
data,
|
|
129
116
|
columns,
|
|
130
117
|
props.spanMethod,
|
|
131
118
|
props.pageIndex,
|
|
132
|
-
|
|
119
|
+
showFooter.value,
|
|
133
120
|
props.sumText,
|
|
134
|
-
props.summaryMethod
|
|
121
|
+
props.summaryMethod,
|
|
122
|
+
props.childrenField,
|
|
123
|
+
showTreeIndex.value,
|
|
124
|
+
showHeader.value
|
|
135
125
|
);
|
|
136
126
|
if (typeof props.beforeExport === "function") {
|
|
137
127
|
const flag = props.beforeExport({
|
|
@@ -187,8 +177,12 @@ const _sfc_main = defineComponent({
|
|
|
187
177
|
const initColItems = () => {
|
|
188
178
|
colItems.value = getColItems(
|
|
189
179
|
props.columns,
|
|
190
|
-
props.
|
|
191
|
-
|
|
180
|
+
props.locale.columnUntitled,
|
|
181
|
+
props.locale.columnIndex,
|
|
182
|
+
props.locale.columnExpand,
|
|
183
|
+
columnsExportFilter,
|
|
184
|
+
true,
|
|
185
|
+
true
|
|
192
186
|
);
|
|
193
187
|
let checkAll = true;
|
|
194
188
|
let indeterminate = false;
|
|
@@ -206,11 +200,12 @@ const _sfc_main = defineComponent({
|
|
|
206
200
|
isCheckAll.value = colItems.value.length > 0 && checkAll;
|
|
207
201
|
isIndeterminate.value = !checkAll && indeterminate;
|
|
208
202
|
};
|
|
209
|
-
const onCheckedChange = (item, checked) => {
|
|
203
|
+
const onCheckedChange = (item, checked, type) => {
|
|
210
204
|
let checkAll = true;
|
|
211
205
|
let indeterminate = false;
|
|
212
206
|
eachTree(colItems.value, (d) => {
|
|
213
|
-
|
|
207
|
+
const flag = item == null ? type === d.type : d.uid === item.uid;
|
|
208
|
+
if (flag) {
|
|
214
209
|
d.checked = checked;
|
|
215
210
|
}
|
|
216
211
|
if (!d.checked && checkAll) {
|
|
@@ -219,7 +214,7 @@ const _sfc_main = defineComponent({
|
|
|
219
214
|
if (d.checked && !indeterminate) {
|
|
220
215
|
indeterminate = true;
|
|
221
216
|
}
|
|
222
|
-
if (
|
|
217
|
+
if (flag && !checkAll && indeterminate) {
|
|
223
218
|
return false;
|
|
224
219
|
}
|
|
225
220
|
});
|
|
@@ -250,19 +245,36 @@ const _sfc_main = defineComponent({
|
|
|
250
245
|
const onReset = () => {
|
|
251
246
|
initColItems();
|
|
252
247
|
};
|
|
248
|
+
const handleTreeIndexChange = (checked) => {
|
|
249
|
+
if (checked) {
|
|
250
|
+
onCheckedChange(void 0, false, "index");
|
|
251
|
+
}
|
|
252
|
+
};
|
|
253
253
|
watch(visible, (visible2) => {
|
|
254
254
|
var _a, _b;
|
|
255
255
|
if (visible2) {
|
|
256
256
|
form.fileName = props.defaultFileName;
|
|
257
257
|
dataType.value = props.defaultDataType;
|
|
258
258
|
initColItems();
|
|
259
|
+
showHeader.value = props.tableHeader;
|
|
260
|
+
showFooter.value = props.showSummary;
|
|
261
|
+
treeIndexDisabled.value = !(props.pageData && props.pageData.some(
|
|
262
|
+
(d) => {
|
|
263
|
+
var _a2;
|
|
264
|
+
return props.childrenField && ((_a2 = d[props.childrenField]) == null ? void 0 : _a2.length);
|
|
265
|
+
}
|
|
266
|
+
)) && findTree(colItems.value, (c) => c.type === "expand") == null;
|
|
267
|
+
if (treeIndexDisabled.value) {
|
|
268
|
+
showTreeIndex.value = false;
|
|
269
|
+
}
|
|
270
|
+
handleTreeIndexChange(showTreeIndex.value);
|
|
259
271
|
return;
|
|
260
272
|
}
|
|
261
273
|
loading.value = false;
|
|
262
274
|
(_b = (_a = formRef.value) == null ? void 0 : _a.clearValidate) == null ? void 0 : _b.call(_a);
|
|
263
275
|
});
|
|
264
276
|
watch(
|
|
265
|
-
() => props.
|
|
277
|
+
() => props.locale.exportFileNamePlaceholder,
|
|
266
278
|
(placeholder) => {
|
|
267
279
|
fileNameRules.message = placeholder;
|
|
268
280
|
}
|
|
@@ -277,13 +289,18 @@ const _sfc_main = defineComponent({
|
|
|
277
289
|
colItems,
|
|
278
290
|
isCheckAll,
|
|
279
291
|
isIndeterminate,
|
|
292
|
+
showHeader,
|
|
293
|
+
showFooter,
|
|
294
|
+
showTreeIndex,
|
|
295
|
+
treeIndexDisabled,
|
|
280
296
|
openModal,
|
|
281
297
|
closeModal,
|
|
282
298
|
handleExport,
|
|
283
299
|
onCheckedChange,
|
|
284
300
|
onSortChange,
|
|
285
301
|
onCheckAllChange,
|
|
286
|
-
onReset
|
|
302
|
+
onReset,
|
|
303
|
+
handleTreeIndexChange
|
|
287
304
|
};
|
|
288
305
|
}
|
|
289
306
|
});
|
|
@@ -297,6 +314,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
297
314
|
const _hoisted_1 = { class: "ele-tool-column is-sortable" };
|
|
298
315
|
const _hoisted_2 = { class: "ele-tool-column-header" };
|
|
299
316
|
const _hoisted_3 = { class: "ele-tool-column-label" };
|
|
317
|
+
const _hoisted_4 = { class: "ele-tool-form-options" };
|
|
300
318
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
301
319
|
const _component_DownloadOutlined = resolveComponent("DownloadOutlined");
|
|
302
320
|
const _component_ElIcon = resolveComponent("ElIcon");
|
|
@@ -311,12 +329,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
311
329
|
const _component_EleModal = resolveComponent("EleModal");
|
|
312
330
|
const _component_EleTool = resolveComponent("EleTool");
|
|
313
331
|
return openBlock(), createBlock(_component_EleTool, {
|
|
314
|
-
title: _ctx.
|
|
332
|
+
title: _ctx.locale.export,
|
|
315
333
|
placement: _ctx.placement,
|
|
316
334
|
onClick: _ctx.openModal
|
|
317
335
|
}, {
|
|
318
336
|
default: withCtx(() => [
|
|
319
|
-
createVNode(_component_ElIcon, { style: { "transform": "scale(1.
|
|
337
|
+
createVNode(_component_ElIcon, { style: { "transform": "scale(1.1)", "transform-origin": "bottom" } }, {
|
|
320
338
|
default: withCtx(() => [
|
|
321
339
|
createVNode(_component_DownloadOutlined)
|
|
322
340
|
]),
|
|
@@ -325,16 +343,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
325
343
|
createVNode(_component_EleModal, mergeProps({
|
|
326
344
|
form: true,
|
|
327
345
|
width: "460px",
|
|
328
|
-
title: _ctx.
|
|
346
|
+
title: _ctx.locale.export,
|
|
329
347
|
position: "center"
|
|
330
|
-
}, _ctx.modalProps, {
|
|
348
|
+
}, _ctx.modalProps || {}, {
|
|
331
349
|
modelValue: _ctx.visible,
|
|
332
|
-
"onUpdate:modelValue": _cache[
|
|
350
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => _ctx.visible = $event)
|
|
333
351
|
}), {
|
|
334
352
|
footer: withCtx(() => [
|
|
335
353
|
createVNode(_component_ElButton, { onClick: _ctx.closeModal }, {
|
|
336
354
|
default: withCtx(() => [
|
|
337
|
-
createTextVNode(toDisplayString(_ctx.
|
|
355
|
+
createTextVNode(toDisplayString(_ctx.locale.exportCancel), 1)
|
|
338
356
|
]),
|
|
339
357
|
_: 1
|
|
340
358
|
}, 8, ["onClick"]),
|
|
@@ -344,7 +362,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
344
362
|
onClick: _ctx.handleExport
|
|
345
363
|
}, {
|
|
346
364
|
default: withCtx(() => [
|
|
347
|
-
createTextVNode(toDisplayString(_ctx.
|
|
365
|
+
createTextVNode(toDisplayString(_ctx.locale.exportOk), 1)
|
|
348
366
|
]),
|
|
349
367
|
_: 1
|
|
350
368
|
}, 8, ["loading", "onClick"])
|
|
@@ -354,13 +372,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
354
372
|
ref: "formRef",
|
|
355
373
|
model: _ctx.form,
|
|
356
374
|
labelWidth: "80px",
|
|
357
|
-
onSubmit: _cache[
|
|
375
|
+
onSubmit: _cache[6] || (_cache[6] = withModifiers(() => {
|
|
358
376
|
}, ["prevent"])),
|
|
359
377
|
class: "ele-tool-export-form"
|
|
360
378
|
}, {
|
|
361
379
|
default: withCtx(() => [
|
|
362
380
|
createVNode(_component_ElFormItem, {
|
|
363
|
-
label: _ctx.
|
|
381
|
+
label: _ctx.locale.exportFileName,
|
|
364
382
|
prop: "fileName",
|
|
365
383
|
rules: _ctx.fileNameRules
|
|
366
384
|
}, {
|
|
@@ -370,33 +388,35 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
370
388
|
clearable: true,
|
|
371
389
|
modelValue: _ctx.form.fileName,
|
|
372
390
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.form.fileName = $event),
|
|
373
|
-
placeholder: _ctx.
|
|
391
|
+
placeholder: _ctx.locale.exportFileNamePlaceholder
|
|
374
392
|
}, null, 8, ["modelValue", "placeholder"])
|
|
375
393
|
]),
|
|
376
394
|
_: 1
|
|
377
395
|
}, 8, ["label", "rules"]),
|
|
378
|
-
createVNode(_component_ElFormItem, {
|
|
396
|
+
createVNode(_component_ElFormItem, {
|
|
397
|
+
label: _ctx.locale.exportSelectData
|
|
398
|
+
}, {
|
|
379
399
|
default: withCtx(() => [
|
|
380
400
|
createVNode(_component_ElSelect, {
|
|
381
401
|
modelValue: _ctx.dataType,
|
|
382
402
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.dataType = $event),
|
|
383
|
-
placeholder: _ctx.
|
|
403
|
+
placeholder: _ctx.locale.exportSelectData
|
|
384
404
|
}, {
|
|
385
405
|
default: withCtx(() => [
|
|
386
406
|
_ctx.pageData != null ? (openBlock(), createBlock(_component_ElOption, {
|
|
387
407
|
key: 0,
|
|
388
408
|
value: "pageData",
|
|
389
|
-
label: _ctx.
|
|
409
|
+
label: _ctx.locale.exportDataTypePage
|
|
390
410
|
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
391
411
|
_ctx.selections != null ? (openBlock(), createBlock(_component_ElOption, {
|
|
392
412
|
key: 1,
|
|
393
413
|
value: "selections",
|
|
394
|
-
label: _ctx.
|
|
414
|
+
label: _ctx.locale.exportDataTypeSelected
|
|
395
415
|
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
396
416
|
_ctx.datasource != null ? (openBlock(), createBlock(_component_ElOption, {
|
|
397
417
|
key: 2,
|
|
398
418
|
value: "data",
|
|
399
|
-
label: _ctx.
|
|
419
|
+
label: _ctx.locale.exportDataTypeAll
|
|
400
420
|
}, null, 8, ["label"])) : createCommentVNode("", true)
|
|
401
421
|
]),
|
|
402
422
|
_: 1
|
|
@@ -404,26 +424,24 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
404
424
|
]),
|
|
405
425
|
_: 1
|
|
406
426
|
}, 8, ["label"]),
|
|
407
|
-
createVNode(_component_ElFormItem, {
|
|
427
|
+
createVNode(_component_ElFormItem, {
|
|
428
|
+
label: _ctx.locale.exportSelectColumn
|
|
429
|
+
}, {
|
|
408
430
|
default: withCtx(() => [
|
|
409
431
|
createElementVNode("div", _hoisted_1, [
|
|
410
432
|
createElementVNode("div", _hoisted_2, [
|
|
411
433
|
createElementVNode("div", _hoisted_3, [
|
|
412
434
|
createVNode(_component_ElCheckbox, {
|
|
435
|
+
label: _ctx.locale.columnTitle,
|
|
413
436
|
modelValue: _ctx.isCheckAll,
|
|
414
437
|
indeterminate: _ctx.isIndeterminate,
|
|
415
438
|
"onUpdate:modelValue": _ctx.onCheckAllChange
|
|
416
|
-
},
|
|
417
|
-
default: withCtx(() => [
|
|
418
|
-
createTextVNode(toDisplayString(_ctx.checkAllText), 1)
|
|
419
|
-
]),
|
|
420
|
-
_: 1
|
|
421
|
-
}, 8, ["modelValue", "indeterminate", "onUpdate:modelValue"])
|
|
439
|
+
}, null, 8, ["label", "modelValue", "indeterminate", "onUpdate:modelValue"])
|
|
422
440
|
]),
|
|
423
441
|
createElementVNode("div", {
|
|
424
442
|
class: "ele-tool-column-link",
|
|
425
443
|
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.onReset && _ctx.onReset(...args))
|
|
426
|
-
}, toDisplayString(_ctx.
|
|
444
|
+
}, toDisplayString(_ctx.locale.columnReset), 1)
|
|
427
445
|
]),
|
|
428
446
|
createVNode(_component_ToolColumnList, {
|
|
429
447
|
data: _ctx.colItems,
|
|
@@ -434,6 +452,34 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
434
452
|
])
|
|
435
453
|
]),
|
|
436
454
|
_: 1
|
|
455
|
+
}, 8, ["label"]),
|
|
456
|
+
createVNode(_component_ElFormItem, {
|
|
457
|
+
label: _ctx.locale.exportOther
|
|
458
|
+
}, {
|
|
459
|
+
default: withCtx(() => [
|
|
460
|
+
createElementVNode("div", _hoisted_4, [
|
|
461
|
+
createVNode(_component_ElCheckbox, {
|
|
462
|
+
label: _ctx.locale.exportOtherHeader,
|
|
463
|
+
modelValue: _ctx.showHeader,
|
|
464
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => _ctx.showHeader = $event),
|
|
465
|
+
disabled: !_ctx.tableHeader
|
|
466
|
+
}, null, 8, ["label", "modelValue", "disabled"]),
|
|
467
|
+
createVNode(_component_ElCheckbox, {
|
|
468
|
+
label: _ctx.locale.exportOtherFooter,
|
|
469
|
+
modelValue: _ctx.showFooter,
|
|
470
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => _ctx.showFooter = $event),
|
|
471
|
+
disabled: !_ctx.showSummary
|
|
472
|
+
}, null, 8, ["label", "modelValue", "disabled"]),
|
|
473
|
+
createVNode(_component_ElCheckbox, {
|
|
474
|
+
label: _ctx.locale.exportOtherTreeIndex,
|
|
475
|
+
modelValue: _ctx.showTreeIndex,
|
|
476
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => _ctx.showTreeIndex = $event),
|
|
477
|
+
disabled: _ctx.treeIndexDisabled,
|
|
478
|
+
onChange: _ctx.handleTreeIndexChange
|
|
479
|
+
}, null, 8, ["label", "modelValue", "disabled", "onChange"])
|
|
480
|
+
])
|
|
481
|
+
]),
|
|
482
|
+
_: 1
|
|
437
483
|
}, 8, ["label"])
|
|
438
484
|
]),
|
|
439
485
|
_: 1
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ExportDataItem } from '../types';
|
|
2
|
+
import { CustomRenderProps } from '../../ele-virtual-table/types';
|
|
2
3
|
import { StyleValues } from '../../ele-app/types';
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
declare const _default: import(
|
|
4
|
+
import { PropType } from 'vue';
|
|
5
|
+
|
|
6
|
+
declare const _default: import('vue').DefineComponent<{
|
|
6
7
|
/** 列数据 */
|
|
7
8
|
col: {
|
|
8
9
|
type: PropType<ExportDataItem>;
|
|
@@ -11,14 +12,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
12
|
/** 列索引 */
|
|
12
13
|
columnIndex: NumberConstructor;
|
|
13
14
|
/** 单元格样式 */
|
|
14
|
-
bodyCellStyle: PropType<import(
|
|
15
|
+
bodyCellStyle: PropType<import('element-plus').CellStyle<import('../types').DataItem> | undefined>;
|
|
15
16
|
/** 单元格类名自定义 */
|
|
16
|
-
bodyCellClass: PropType<import(
|
|
17
|
+
bodyCellClass: PropType<import('element-plus').CellCls<import('../types').DataItem> | undefined>;
|
|
17
18
|
}, {
|
|
18
|
-
renderOpt: import(
|
|
19
|
-
cellStyle: import(
|
|
20
|
-
cellClass: import(
|
|
21
|
-
}, unknown, {}, {}, import(
|
|
19
|
+
renderOpt: import('vue').ComputedRef<CustomRenderProps>;
|
|
20
|
+
cellStyle: import('vue').ComputedRef<StyleValues | undefined>;
|
|
21
|
+
cellClass: import('vue').ComputedRef<string>;
|
|
22
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
22
23
|
/** 列数据 */
|
|
23
24
|
col: {
|
|
24
25
|
type: PropType<ExportDataItem>;
|
|
@@ -27,8 +28,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
27
28
|
/** 列索引 */
|
|
28
29
|
columnIndex: NumberConstructor;
|
|
29
30
|
/** 单元格样式 */
|
|
30
|
-
bodyCellStyle: PropType<import(
|
|
31
|
+
bodyCellStyle: PropType<import('element-plus').CellStyle<import('../types').DataItem> | undefined>;
|
|
31
32
|
/** 单元格类名自定义 */
|
|
32
|
-
bodyCellClass: PropType<import(
|
|
33
|
+
bodyCellClass: PropType<import('element-plus').CellCls<import('../types').DataItem> | undefined>;
|
|
33
34
|
}>>, {}, {}>;
|
|
34
35
|
export default _default;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, normalizeStyle, normalizeClass, createVNode, normalizeProps, guardReactiveProps } from "vue";
|
|
1
|
+
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, normalizeStyle, normalizeClass, Fragment, createTextVNode, toDisplayString, createBlock, withCtx, createVNode, createCommentVNode, normalizeProps, guardReactiveProps } from "vue";
|
|
2
|
+
import { ElIcon } from "element-plus";
|
|
3
|
+
import { ArrowDown } from "../../icons";
|
|
2
4
|
import { CellRender } from "../../ele-virtual-table/util";
|
|
3
5
|
const _sfc_main = defineComponent({
|
|
4
6
|
name: "ToolPrintBodyCell",
|
|
5
|
-
components: { CellRender },
|
|
7
|
+
components: { ElIcon, ArrowDown, CellRender },
|
|
6
8
|
props: {
|
|
7
9
|
/** 列数据 */
|
|
8
10
|
col: {
|
|
@@ -20,8 +22,9 @@ const _sfc_main = defineComponent({
|
|
|
20
22
|
const renderOpt = computed(() => {
|
|
21
23
|
const { text, row, column, index: $index } = props.col;
|
|
22
24
|
const params = [{ row, column, $index }];
|
|
23
|
-
|
|
24
|
-
|
|
25
|
+
const slotName = column ? column.printSlot || column.slot : void 0;
|
|
26
|
+
if (column && !["expand", "selection", "index"].includes(column.type || "") && slotName && typeof slots[slotName] === "function") {
|
|
27
|
+
return { render: slots[slotName], params };
|
|
25
28
|
}
|
|
26
29
|
return { render: () => text, params };
|
|
27
30
|
});
|
|
@@ -35,13 +38,16 @@ const _sfc_main = defineComponent({
|
|
|
35
38
|
});
|
|
36
39
|
const cellStyle = computed(() => {
|
|
37
40
|
if (typeof props.bodyCellStyle === "function") {
|
|
41
|
+
if (cellParam.value.column == null) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
38
44
|
return props.bodyCellStyle(cellParam.value);
|
|
39
45
|
}
|
|
40
46
|
return props.bodyCellStyle;
|
|
41
47
|
});
|
|
42
48
|
const cellClass = computed(() => {
|
|
43
49
|
const classes = [];
|
|
44
|
-
const column =
|
|
50
|
+
const column = cellParam.value.column;
|
|
45
51
|
if (column) {
|
|
46
52
|
if (column.align) {
|
|
47
53
|
classes.push("is-align-" + column.align);
|
|
@@ -72,6 +78,9 @@ const _export_sfc = (sfc, props) => {
|
|
|
72
78
|
};
|
|
73
79
|
const _hoisted_1 = ["colspan", "rowspan"];
|
|
74
80
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
81
|
+
var _a;
|
|
82
|
+
const _component_ArrowDown = resolveComponent("ArrowDown");
|
|
83
|
+
const _component_ElIcon = resolveComponent("ElIcon");
|
|
75
84
|
const _component_CellRender = resolveComponent("CellRender");
|
|
76
85
|
return openBlock(), createElementBlock("td", {
|
|
77
86
|
colspan: _ctx.col.colspan,
|
|
@@ -79,7 +88,42 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
79
88
|
style: normalizeStyle(_ctx.cellStyle),
|
|
80
89
|
class: normalizeClass(_ctx.cellClass)
|
|
81
90
|
}, [
|
|
82
|
-
|
|
91
|
+
"expand" === ((_a = _ctx.col.column) == null ? void 0 : _a.type) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
92
|
+
_ctx.col.text ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
93
|
+
createTextVNode(toDisplayString(_ctx.col.text), 1)
|
|
94
|
+
], 64)) : (openBlock(), createBlock(_component_ElIcon, {
|
|
95
|
+
key: 1,
|
|
96
|
+
style: { "vertical-align": "middle" },
|
|
97
|
+
class: "ele-print-expand-icon"
|
|
98
|
+
}, {
|
|
99
|
+
default: withCtx(() => [
|
|
100
|
+
createVNode(_component_ArrowDown)
|
|
101
|
+
]),
|
|
102
|
+
_: 1
|
|
103
|
+
}))
|
|
104
|
+
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
105
|
+
_ctx.col.isTreeCell ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
106
|
+
_ctx.col.indent ? (openBlock(), createElementBlock("span", {
|
|
107
|
+
key: 0,
|
|
108
|
+
style: normalizeStyle({ paddingLeft: `${_ctx.col.indent * 16}px` }),
|
|
109
|
+
class: "ele-print-tree-indent"
|
|
110
|
+
}, null, 4)) : createCommentVNode("", true),
|
|
111
|
+
createVNode(_component_ElIcon, {
|
|
112
|
+
style: normalizeStyle({
|
|
113
|
+
verticalAlign: "middle",
|
|
114
|
+
marginRight: "2px",
|
|
115
|
+
visibility: _ctx.col.isTreeLeaf ? "hidden" : void 0
|
|
116
|
+
}),
|
|
117
|
+
class: "ele-print-tree-icon"
|
|
118
|
+
}, {
|
|
119
|
+
default: withCtx(() => [
|
|
120
|
+
createVNode(_component_ArrowDown)
|
|
121
|
+
]),
|
|
122
|
+
_: 1
|
|
123
|
+
}, 8, ["style"])
|
|
124
|
+
], 64)) : createCommentVNode("", true),
|
|
125
|
+
createVNode(_component_CellRender, normalizeProps(guardReactiveProps(_ctx.renderOpt)), null, 16)
|
|
126
|
+
], 64))
|
|
83
127
|
], 14, _hoisted_1);
|
|
84
128
|
}
|
|
85
129
|
const toolPrintBodyCell = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ExportDataItem } from '../types';
|
|
2
|
+
import { CustomRenderProps } from '../../ele-virtual-table/types';
|
|
2
3
|
import { StyleValues } from '../../ele-app/types';
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
declare const _default: import(
|
|
4
|
+
import { PropType } from 'vue';
|
|
5
|
+
|
|
6
|
+
declare const _default: import('vue').DefineComponent<{
|
|
6
7
|
/** 列数据 */
|
|
7
8
|
col: {
|
|
8
9
|
type: PropType<ExportDataItem>;
|
|
@@ -11,14 +12,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
12
|
/** 列索引 */
|
|
12
13
|
columnIndex: NumberConstructor;
|
|
13
14
|
/** 单元格样式 */
|
|
14
|
-
headerCellStyle: PropType<import(
|
|
15
|
+
headerCellStyle: PropType<import('element-plus').CellStyle<import('../types').DataItem> | undefined>;
|
|
15
16
|
/** 单元格类名自定义 */
|
|
16
|
-
headerCellClass: PropType<import(
|
|
17
|
+
headerCellClass: PropType<import('element-plus').CellCls<import('../types').DataItem> | undefined>;
|
|
17
18
|
}, {
|
|
18
|
-
renderOpt: import(
|
|
19
|
-
cellStyle: import(
|
|
20
|
-
cellClass: import(
|
|
21
|
-
}, unknown, {}, {}, import(
|
|
19
|
+
renderOpt: import('vue').ComputedRef<CustomRenderProps>;
|
|
20
|
+
cellStyle: import('vue').ComputedRef<StyleValues | undefined>;
|
|
21
|
+
cellClass: import('vue').ComputedRef<string>;
|
|
22
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
22
23
|
/** 列数据 */
|
|
23
24
|
col: {
|
|
24
25
|
type: PropType<ExportDataItem>;
|
|
@@ -27,8 +28,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
27
28
|
/** 列索引 */
|
|
28
29
|
columnIndex: NumberConstructor;
|
|
29
30
|
/** 单元格样式 */
|
|
30
|
-
headerCellStyle: PropType<import(
|
|
31
|
+
headerCellStyle: PropType<import('element-plus').CellStyle<import('../types').DataItem> | undefined>;
|
|
31
32
|
/** 单元格类名自定义 */
|
|
32
|
-
headerCellClass: PropType<import(
|
|
33
|
+
headerCellClass: PropType<import('element-plus').CellCls<import('../types').DataItem> | undefined>;
|
|
33
34
|
}>>, {}, {}>;
|
|
34
35
|
export default _default;
|
|
@@ -34,13 +34,16 @@ const _sfc_main = defineComponent({
|
|
|
34
34
|
});
|
|
35
35
|
const cellStyle = computed(() => {
|
|
36
36
|
if (typeof props.headerCellStyle === "function") {
|
|
37
|
+
if (cellParam.value.column == null) {
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
37
40
|
return props.headerCellStyle(cellParam.value);
|
|
38
41
|
}
|
|
39
42
|
return props.headerCellStyle;
|
|
40
43
|
});
|
|
41
44
|
const cellClass = computed(() => {
|
|
42
45
|
const classes = [];
|
|
43
|
-
const column =
|
|
46
|
+
const column = cellParam.value.column;
|
|
44
47
|
if (column) {
|
|
45
48
|
const align = column.headerAlign || column.align;
|
|
46
49
|
if (align) {
|