ele-admin-plus 1.1.9-beta.1 → 1.1.9-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/core-installer.d.ts +2 -2
- package/es/ele-alert/index.d.ts +1 -1
- package/es/ele-alert/index.js +4 -6
- package/es/ele-alert/props.d.ts +10 -9
- package/es/ele-app/el.d.ts +18 -1
- package/es/ele-app/index.d.ts +1 -1
- package/es/ele-app/plus.d.ts +12 -0
- package/es/ele-app/style/overwrite/date-picker/index.scss +32 -5
- package/es/ele-app/style/overwrite/message-box/index.scss +5 -0
- package/es/ele-avatar-group/index.d.ts +4 -3
- package/es/ele-avatar-group/index.js +1 -3
- package/es/ele-avatar-group/props.d.ts +10 -9
- package/es/ele-bar-code/index.d.ts +5 -4
- package/es/ele-bar-code/props.d.ts +4 -3
- package/es/ele-basic-select/index.d.ts +17 -15
- package/es/ele-basic-select/index.js +40 -19
- 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 +1 -1
- package/es/ele-bottom-bar/props.d.ts +4 -3
- package/es/ele-breadcrumb/index.d.ts +3 -2
- package/es/ele-breadcrumb/props.d.ts +5 -4
- package/es/ele-card/index.d.ts +1 -1
- package/es/ele-card/props.d.ts +7 -6
- package/es/ele-check-card/components/card-item.d.ts +4 -3
- package/es/ele-check-card/index.d.ts +6 -5
- package/es/ele-check-card/index.js +0 -5
- package/es/ele-check-card/props.d.ts +6 -5
- package/es/ele-config-provider/components/receiver-view.d.ts +17 -0
- package/es/ele-config-provider/components/receiver-view.js +134 -0
- package/es/ele-config-provider/index.d.ts +3 -3
- package/es/ele-config-provider/props.d.ts +6 -5
- package/es/ele-config-provider/props.js +2 -2
- package/es/ele-config-provider/receiver.d.ts +5 -9
- package/es/ele-config-provider/receiver.js +35 -116
- package/es/ele-config-provider/types.d.ts +6 -12
- package/es/ele-copyable/index.d.ts +8 -9
- package/es/ele-copyable/index.js +1 -5
- package/es/ele-copyable/props.d.ts +9 -8
- package/es/ele-count-up/index.d.ts +2 -1
- package/es/ele-count-up/props.d.ts +3 -2
- package/es/ele-cropper/components/cropper-preview.d.ts +1 -1
- package/es/ele-cropper/components/cropper-tools.d.ts +4 -3
- package/es/ele-cropper/index.d.ts +11 -10
- package/es/ele-cropper/index.js +1 -5
- package/es/ele-cropper/props.d.ts +4 -3
- package/es/ele-cropper-modal/index.d.ts +3 -2
- 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 +1 -2
- package/es/ele-dashboard/index.js +8 -17
- package/es/ele-dashboard/props.d.ts +3 -2
- package/es/ele-data-table/index.d.ts +10 -15
- package/es/ele-data-table/index.js +9 -1
- package/es/ele-data-table/props.d.ts +38 -43
- package/es/ele-data-table/style/index.scss +4 -0
- package/es/ele-data-table/types.d.ts +18 -16
- package/es/ele-data-table/util.d.ts +15 -9
- package/es/ele-data-table/util.js +14 -0
- package/es/ele-dot/index.d.ts +3 -5
- package/es/ele-dot/index.js +4 -10
- package/es/ele-dot/props.d.ts +3 -2
- package/es/ele-drawer/index.d.ts +8 -4
- package/es/ele-drawer/index.js +111 -114
- package/es/ele-drawer/props.d.ts +26 -25
- package/es/ele-drawer/style/index.scss +49 -106
- package/es/ele-dropdown/index.d.ts +6 -5
- package/es/ele-dropdown/index.js +7 -10
- package/es/ele-dropdown/props.d.ts +22 -21
- package/es/ele-dropdown/style/index.scss +2 -2
- package/es/ele-edit-tag/index.d.ts +9 -2
- package/es/ele-edit-tag/index.js +18 -16
- package/es/ele-edit-tag/props.d.ts +14 -9
- package/es/ele-edit-tag/props.js +5 -1
- package/es/ele-edit-tag/style/index.scss +13 -0
- package/es/ele-ellipsis/index.d.ts +7 -6
- package/es/ele-ellipsis/index.js +4 -27
- package/es/ele-ellipsis/props.d.ts +8 -7
- package/es/ele-file-list/components/file-grid-item.d.ts +6 -5
- package/es/ele-file-list/components/file-grid-item.js +17 -10
- package/es/ele-file-list/components/file-grid.d.ts +6 -5
- package/es/ele-file-list/components/file-grid.js +54 -50
- package/es/ele-file-list/components/file-sort.d.ts +1 -1
- package/es/ele-file-list/components/file-table-item.d.ts +6 -5
- package/es/ele-file-list/components/file-table-item.js +21 -16
- package/es/ele-file-list/components/file-table.d.ts +6 -5
- package/es/ele-file-list/components/file-table.js +92 -86
- package/es/ele-file-list/icons.d.ts +2 -1
- package/es/ele-file-list/index.d.ts +8 -7
- package/es/ele-file-list/index.js +1 -11
- package/es/ele-file-list/props.d.ts +6 -5
- package/es/ele-file-list-tool/index.d.ts +4 -4
- package/es/ele-file-list-tool/index.js +2 -2
- package/es/ele-icon-select/components/icon-grid.d.ts +4 -3
- package/es/ele-icon-select/components/icon-grid.js +1 -1
- package/es/ele-icon-select/index.d.ts +27 -14
- package/es/ele-icon-select/index.js +33 -10
- package/es/ele-icon-select/props.d.ts +23 -17
- package/es/ele-icon-select/props.js +6 -1
- package/es/ele-icon-select/style/index.js +1 -0
- package/es/ele-icon-select/style/index.scss +16 -2
- package/es/ele-loading/index.d.ts +1 -6
- package/es/ele-loading/index.js +39 -43
- package/es/ele-loading/props.d.ts +5 -4
- package/es/ele-map-picker/components/map-view.d.ts +51 -27
- package/es/ele-map-picker/components/map-view.js +227 -176
- package/es/ele-map-picker/index.d.ts +45 -22
- package/es/ele-map-picker/index.js +22 -40
- package/es/ele-map-picker/props.d.ts +37 -12
- package/es/ele-map-picker/props.js +20 -6
- package/es/ele-map-picker/style/index.scss +195 -166
- package/es/ele-map-picker/types.d.ts +8 -4
- package/es/ele-menus/index.d.ts +19 -7
- package/es/ele-menus/index.js +78 -14
- package/es/ele-menus/props.d.ts +27 -16
- package/es/ele-menus/props.js +13 -3
- package/es/ele-menus/style/css-var.scss +1 -5
- package/es/ele-menus/style/index.js +2 -0
- package/es/ele-menus/style/index.scss +13 -11
- package/es/ele-menus/types.d.ts +9 -9
- package/es/ele-menus/util.d.ts +35 -16
- package/es/ele-menus/util.js +115 -80
- package/es/ele-modal/index.d.ts +18 -11
- package/es/ele-modal/index.js +175 -167
- package/es/ele-modal/props.d.ts +26 -23
- package/es/ele-modal/props.js +2 -0
- package/es/ele-modal/style/index.scss +134 -159
- package/es/ele-modal/types.d.ts +2 -10
- package/es/ele-modal/util.d.ts +20 -45
- package/es/ele-modal/util.js +53 -214
- package/es/ele-page/index.d.ts +1 -1
- package/es/ele-page/props.d.ts +2 -1
- package/es/ele-pagination/index.d.ts +20 -9
- package/es/ele-pagination/index.js +22 -13
- package/es/ele-pagination/props.d.ts +19 -12
- package/es/ele-pagination/props.js +7 -0
- package/es/ele-pagination/style/index.scss +9 -0
- package/es/ele-pagination/types.d.ts +6 -1
- package/es/ele-popconfirm/index.d.ts +4 -3
- package/es/ele-popconfirm/index.js +6 -28
- package/es/ele-popconfirm/props.d.ts +32 -31
- package/es/ele-popconfirm/style/index.js +1 -1
- package/es/ele-popover/index.d.ts +7 -6
- package/es/ele-popover/index.js +6 -14
- package/es/ele-popover/props.d.ts +26 -25
- package/es/ele-popover/style/index.js +0 -1
- package/es/ele-printer/index.d.ts +7 -7
- package/es/ele-printer/index.js +11 -11
- package/es/ele-printer/props.d.ts +6 -5
- package/es/ele-printer/style/index.scss +1 -1
- package/es/ele-printer/util.d.ts +2 -1
- package/es/ele-printer/util.js +4 -2
- package/es/ele-pro-layout/components/header-tool.d.ts +1 -1
- package/es/ele-pro-layout/components/pro-header.d.ts +94 -17
- package/es/ele-pro-layout/components/pro-header.js +177 -28
- package/es/ele-pro-layout/components/pro-iframe.d.ts +4 -3
- package/es/ele-pro-layout/components/pro-iframe.js +46 -23
- package/es/ele-pro-layout/components/pro-sidebar.d.ts +30 -19
- package/es/ele-pro-layout/components/pro-sidebar.js +41 -16
- package/es/ele-pro-layout/components/pro-sidebox.d.ts +32 -15
- package/es/ele-pro-layout/components/pro-sidebox.js +52 -15
- package/es/ele-pro-layout/components/pro-tabs.d.ts +6 -5
- package/es/ele-pro-layout/components/sidebar-tool.d.ts +1 -1
- package/es/ele-pro-layout/components/tab-dropdown.d.ts +5 -4
- package/es/ele-pro-layout/components/tab-dropdown.js +6 -2
- package/es/ele-pro-layout/index.d.ts +54 -39
- package/es/ele-pro-layout/index.js +319 -87
- package/es/ele-pro-layout/props.d.ts +17 -10
- package/es/ele-pro-layout/props.js +8 -1
- 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 +23 -3
- package/es/ele-pro-layout/style/sidebar.scss +0 -1
- package/es/ele-pro-layout/style/tabs.scss +20 -12
- package/es/ele-pro-layout/types.d.ts +30 -4
- package/es/ele-pro-layout/util.d.ts +5 -4
- package/es/ele-pro-table/components/table-tools.d.ts +102 -10
- package/es/ele-pro-table/components/table-tools.js +125 -8
- package/es/ele-pro-table/components/tool-column-list.d.ts +4 -3
- package/es/ele-pro-table/components/tool-column-list.js +4 -7
- package/es/ele-pro-table/components/tool-column.d.ts +5 -4
- package/es/ele-pro-table/components/tool-column.js +9 -9
- package/es/ele-pro-table/components/tool-export.d.ts +456 -0
- package/es/ele-pro-table/components/tool-export.js +449 -0
- package/es/ele-pro-table/components/tool-print-body-cell.d.ts +35 -0
- package/es/ele-pro-table/components/tool-print-body-cell.js +88 -0
- package/es/ele-pro-table/components/tool-print-header-cell.d.ts +35 -0
- package/es/ele-pro-table/components/tool-print-header-cell.js +88 -0
- package/es/ele-pro-table/components/tool-print.d.ts +895 -0
- package/es/ele-pro-table/components/tool-print.js +555 -0
- package/es/ele-pro-table/index.d.ts +36 -30
- package/es/ele-pro-table/index.js +91 -19
- package/es/ele-pro-table/props.d.ts +52 -48
- package/es/ele-pro-table/props.js +6 -2
- package/es/ele-pro-table/style/index.js +9 -0
- package/es/ele-pro-table/style/index.scss +33 -5
- package/es/ele-pro-table/types.d.ts +149 -5
- package/es/ele-pro-table/util.d.ts +58 -6
- package/es/ele-pro-table/util.js +146 -22
- package/es/ele-qr-code/index.d.ts +3 -2
- 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 +1 -1
- package/es/ele-segmented/index.d.ts +4 -3
- package/es/ele-segmented/index.js +1 -3
- package/es/ele-segmented/props.d.ts +3 -2
- package/es/ele-split-panel/index.d.ts +11 -9
- package/es/ele-split-panel/index.js +63 -59
- package/es/ele-split-panel/props.d.ts +5 -4
- package/es/ele-steps/index.d.ts +1 -2
- package/es/ele-steps/index.js +2 -4
- package/es/ele-steps/props.d.ts +10 -9
- package/es/ele-tab-tool/index.d.ts +1 -1
- package/es/ele-tab-tool/props.d.ts +2 -1
- package/es/ele-tab-wrap/index.d.ts +1 -1
- 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 -1
- package/es/ele-table/index.js +2 -1
- package/es/ele-table/props.d.ts +4 -1
- package/es/ele-table/props.js +3 -1
- package/es/ele-table/style/index.scss +35 -0
- package/es/ele-table-select/index.d.ts +24 -22
- package/es/ele-table-select/index.js +27 -26
- package/es/ele-table-select/props.d.ts +11 -10
- package/es/ele-tabs/components/tab-title.d.ts +6 -5
- package/es/ele-tabs/index.d.ts +13 -23
- package/es/ele-tabs/index.js +2 -6
- package/es/ele-tabs/props.d.ts +15 -21
- 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 +1 -1
- package/es/ele-text/props.d.ts +5 -4
- package/es/ele-tool/index.d.ts +2 -2
- package/es/ele-tool/index.js +2 -4
- package/es/ele-tool/props.d.ts +10 -2
- package/es/ele-tool/props.js +5 -0
- package/es/ele-toolbar/index.d.ts +1 -1
- package/es/ele-toolbar/props.d.ts +7 -6
- package/es/ele-tooltip/index.d.ts +4 -3
- package/es/ele-tooltip/index.js +12 -13
- package/es/ele-tooltip/props.d.ts +28 -22
- package/es/ele-tooltip/props.js +2 -0
- package/es/ele-tooltip/style/css-var.scss +4 -0
- package/es/ele-tooltip/style/index.scss +23 -0
- package/es/ele-tour/index.d.ts +5 -4
- package/es/ele-tour/index.js +80 -77
- 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 +10 -9
- 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 +10 -5
- package/es/ele-upload-list/components/list-item.js +7 -4
- package/es/ele-upload-list/index.d.ts +12 -5
- package/es/ele-upload-list/index.js +9 -8
- package/es/ele-upload-list/props.d.ts +11 -6
- package/es/ele-upload-list/props.js +5 -1
- package/es/ele-upload-list/style/index.scss +2 -1
- package/es/ele-virtual-table/components/body-cell.d.ts +85 -50
- package/es/ele-virtual-table/components/body-cell.js +79 -112
- package/es/ele-virtual-table/components/body-row.d.ts +72 -48
- package/es/ele-virtual-table/components/body-row.js +57 -52
- package/es/ele-virtual-table/components/cell-checkbox.d.ts +3 -2
- package/es/ele-virtual-table/components/cell-filter.d.ts +9 -8
- package/es/ele-virtual-table/components/cell-filter.js +8 -12
- package/es/ele-virtual-table/components/expand-row.d.ts +10 -9
- package/es/ele-virtual-table/components/expand-row.js +3 -3
- package/es/ele-virtual-table/components/footer-row.d.ts +33 -14
- package/es/ele-virtual-table/components/footer-row.js +29 -19
- package/es/ele-virtual-table/components/header-cell.d.ts +5 -4
- package/es/ele-virtual-table/components/header-row.d.ts +5 -4
- package/es/ele-virtual-table/index.d.ts +23 -32
- package/es/ele-virtual-table/index.js +134 -136
- package/es/ele-virtual-table/props.d.ts +50 -52
- package/es/ele-virtual-table/style/index.scss +1 -1
- package/es/ele-virtual-table/types.d.ts +103 -69
- package/es/ele-virtual-table/util.d.ts +35 -10
- package/es/ele-virtual-table/util.js +66 -35
- package/es/ele-watermark/index.d.ts +12 -2
- package/es/ele-watermark/index.js +1 -1
- package/es/ele-watermark/props.d.ts +9 -3
- package/es/ele-watermark/props.js +5 -0
- package/es/ele-watermark/util.d.ts +3 -2
- package/es/ele-xg-player/index.d.ts +4 -4
- package/es/icons/AnalysisOutlined.d.ts +1 -1
- package/es/icons/ApplicationOutlined.d.ts +1 -1
- package/es/icons/AppstoreAddOutlined.d.ts +1 -1
- package/es/icons/AppstoreOutlined.d.ts +1 -1
- package/es/icons/ArrowDown.d.ts +1 -1
- package/es/icons/ArrowDownOutlined.d.ts +1 -1
- package/es/icons/ArrowLeft.d.ts +1 -1
- package/es/icons/ArrowLeftOutlined.d.ts +1 -1
- package/es/icons/ArrowRight.d.ts +1 -1
- package/es/icons/ArrowRightOutlined.d.ts +1 -1
- package/es/icons/ArrowUp.d.ts +1 -1
- package/es/icons/ArrowUpOutlined.d.ts +1 -1
- package/es/icons/BellOutlined.d.ts +1 -1
- package/es/icons/BookOutlined.d.ts +1 -1
- package/es/icons/CalendarOutlined.d.ts +1 -1
- package/es/icons/CaretDownFilled.d.ts +1 -1
- package/es/icons/CaretUpFilled.d.ts +1 -1
- package/es/icons/CheckCircleFilled.d.ts +1 -1
- package/es/icons/CheckCircleOutlined.d.ts +1 -1
- package/es/icons/CheckOutlined.d.ts +1 -1
- package/es/icons/CityOutlined.d.ts +1 -1
- package/es/icons/ClockCircleOutlined.d.ts +1 -1
- package/es/icons/CloseCircleFilled.d.ts +1 -1
- package/es/icons/CloseCircleOutlined.d.ts +1 -1
- package/es/icons/CloseOutlined.d.ts +1 -1
- package/es/icons/CloudUploadOutlined.d.ts +1 -1
- package/es/icons/ClusterOutlined.d.ts +1 -1
- package/es/icons/CodeOutlined.d.ts +1 -1
- package/es/icons/ColumnHeightOutlined.d.ts +1 -1
- package/es/icons/CompassOutlined.d.ts +1 -1
- package/es/icons/CompressOutlined.d.ts +1 -1
- package/es/icons/ConnectionOutlined.d.ts +1 -1
- package/es/icons/ControlOutlined.d.ts +1 -1
- package/es/icons/CopyOutlined.d.ts +1 -1
- package/es/icons/CpuOutlined.d.ts +1 -1
- package/es/icons/DashboardOutlined.d.ts +1 -1
- package/es/icons/DatabaseOutlined.d.ts +1 -1
- package/es/icons/DeleteOutlined.d.ts +1 -1
- package/es/icons/DesktopOutlined.d.ts +1 -1
- package/es/icons/DownloadOutlined.d.ts +1 -1
- package/es/icons/DragOutlined.d.ts +1 -1
- package/es/icons/EditOutlined.d.ts +1 -1
- package/es/icons/EllipsisOutlined.d.ts +1 -1
- package/es/icons/EnvironmentOutlined.d.ts +1 -1
- package/es/icons/ExclamationCircleFilled.d.ts +1 -1
- package/es/icons/ExpandOutlined.d.ts +1 -1
- package/es/icons/FileOutlined.d.ts +1 -1
- package/es/icons/FilterFilled.d.ts +1 -1
- package/es/icons/FolderAddOutlined.d.ts +1 -1
- package/es/icons/FolderOutlined.d.ts +1 -1
- package/es/icons/FormOutlined.d.ts +1 -1
- package/es/icons/FullscreenExitOutlined.d.ts +1 -1
- package/es/icons/FullscreenOutlined.d.ts +1 -1
- package/es/icons/FundOutlined.d.ts +1 -1
- package/es/icons/GlobalOutlined.d.ts +1 -1
- package/es/icons/HolderOutlined.d.ts +1 -1
- package/es/icons/HomeOutlined.d.ts +1 -1
- package/es/icons/IdcardOutlined.d.ts +1 -1
- package/es/icons/InfoCircleFilled.d.ts +1 -1
- package/es/icons/LinkOutlined.d.ts +1 -1
- package/es/icons/LoadingDotOutlined.d.ts +1 -1
- package/es/icons/LoadingOutlined.d.ts +1 -1
- package/es/icons/LockOutlined.d.ts +1 -1
- package/es/icons/LogOutlined.d.ts +1 -1
- package/es/icons/LogoutOutlined.d.ts +1 -1
- package/es/icons/MailOutlined.d.ts +1 -1
- package/es/icons/MenuFoldOutlined.d.ts +1 -1
- package/es/icons/MenuUnfoldOutlined.d.ts +1 -1
- package/es/icons/MessageOutlined.d.ts +1 -1
- package/es/icons/MinusCircleOutlined.d.ts +1 -1
- package/es/icons/MobileOutlined.d.ts +1 -1
- package/es/icons/MoonOutlined.d.ts +1 -1
- package/es/icons/MoreOutlined.d.ts +1 -1
- package/es/icons/PauseFilled.d.ts +1 -1
- package/es/icons/PieChartOutlined.d.ts +1 -1
- package/es/icons/PlayFilled.d.ts +1 -1
- package/es/icons/PlusCircleOutlined.d.ts +1 -1
- package/es/icons/PlusOutlined.d.ts +1 -1
- package/es/icons/PrinterOutlined.d.ts +2 -0
- package/es/icons/PrinterOutlined.js +29 -0
- package/es/icons/ProtectOutlined.d.ts +1 -1
- package/es/icons/QuestionCircleFilled.d.ts +1 -1
- package/es/icons/QuestionCircleOutlined.d.ts +1 -1
- package/es/icons/ReloadOutlined.d.ts +1 -1
- package/es/icons/ResizeOutlined.d.ts +2 -0
- package/es/icons/ResizeOutlined.js +30 -0
- package/es/icons/SearchOutlined.d.ts +1 -1
- package/es/icons/SettingOutlined.d.ts +1 -1
- package/es/icons/ShoppingOutlined.d.ts +1 -1
- package/es/icons/SortOutlined.d.ts +1 -1
- package/es/icons/StarFilled.d.ts +1 -1
- package/es/icons/StepBackwardFilled.d.ts +1 -1
- package/es/icons/StepForwardFilled.d.ts +1 -1
- package/es/icons/SuitcaseOutlined.d.ts +1 -1
- package/es/icons/SunOutlined.d.ts +1 -1
- package/es/icons/SwapOutlined.d.ts +1 -1
- package/es/icons/SyncOutlined.d.ts +1 -1
- package/es/icons/TableOutlined.d.ts +1 -1
- package/es/icons/TagOutlined.d.ts +1 -1
- package/es/icons/TimerOutlined.d.ts +1 -1
- package/es/icons/UndoOutlined.d.ts +1 -1
- package/es/icons/UnlockOutlined.d.ts +1 -1
- package/es/icons/UploadOutlined.d.ts +1 -1
- package/es/icons/UserOutlined.d.ts +1 -1
- package/es/icons/VerticalAlignMiddleOutlined.d.ts +1 -1
- package/es/icons/VerticalLeftOutlined.d.ts +1 -1
- package/es/icons/VerticalLeftOutlined.js +2 -2
- package/es/icons/VerticalRightOutlined.d.ts +1 -1
- package/es/icons/VerticalRightOutlined.js +2 -2
- package/es/icons/WarningOutlined.d.ts +1 -1
- package/es/icons/ZoomInOutlined.d.ts +1 -1
- package/es/icons/ZoomOutOutlined.d.ts +1 -1
- package/es/icons/index.d.ts +2 -0
- package/es/icons/index.js +60 -56
- package/es/installer.d.ts +2 -2
- package/es/lang/en_US.d.ts +2 -2
- package/es/lang/en_US.js +15 -3
- package/es/lang/zh_CN.d.ts +2 -2
- package/es/lang/zh_CN.js +15 -3
- package/es/lang/zh_TW.d.ts +2 -2
- package/es/lang/zh_TW.js +14 -2
- package/es/style/index.scss +1 -43
- package/es/style/plus.scss +43 -0
- package/es/style/themes/dark.scss +9 -15
- package/es/style/themes/default.scss +64 -84
- package/es/style/themes/rounded.scss +17 -31
- package/es/style/themes/theme-util.scss +0 -2
- package/es/utils/core.d.ts +5 -0
- package/es/utils/core.js +28 -0
- package/es/utils/menu-util.d.ts +3 -2
- package/es/utils/message.d.ts +4 -3
- package/es/utils/resolvers.d.ts +4 -4
- package/es/utils/resolvers.js +33 -20
- package/lib/core-installer.d.ts +2 -2
- package/lib/ele-alert/index.cjs +4 -6
- package/lib/ele-alert/index.d.ts +1 -1
- package/lib/ele-alert/props.d.ts +10 -9
- package/lib/ele-app/el.d.ts +18 -1
- package/lib/ele-app/index.d.ts +1 -1
- package/lib/ele-app/plus.d.ts +12 -0
- package/lib/ele-app/style/overwrite/date-picker/index.scss +32 -5
- package/lib/ele-app/style/overwrite/message-box/index.scss +5 -0
- package/lib/ele-avatar-group/index.cjs +1 -3
- package/lib/ele-avatar-group/index.d.ts +4 -3
- package/lib/ele-avatar-group/props.d.ts +10 -9
- package/lib/ele-bar-code/index.d.ts +5 -4
- package/lib/ele-bar-code/props.d.ts +4 -3
- package/lib/ele-basic-select/index.cjs +39 -18
- package/lib/ele-basic-select/index.d.ts +17 -15
- 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 +1 -1
- package/lib/ele-bottom-bar/props.d.ts +4 -3
- package/lib/ele-breadcrumb/index.d.ts +3 -2
- package/lib/ele-breadcrumb/props.d.ts +5 -4
- package/lib/ele-card/index.d.ts +1 -1
- package/lib/ele-card/props.d.ts +7 -6
- package/lib/ele-check-card/components/card-item.d.ts +4 -3
- package/lib/ele-check-card/index.cjs +0 -5
- package/lib/ele-check-card/index.d.ts +6 -5
- package/lib/ele-check-card/props.d.ts +6 -5
- package/lib/ele-config-provider/components/receiver-view.cjs +2 -0
- package/lib/ele-config-provider/components/receiver-view.d.ts +17 -0
- package/lib/ele-config-provider/index.d.ts +3 -3
- package/lib/ele-config-provider/props.cjs +2 -2
- package/lib/ele-config-provider/props.d.ts +6 -5
- package/lib/ele-config-provider/receiver.cjs +45 -2
- package/lib/ele-config-provider/receiver.d.ts +5 -9
- package/lib/ele-config-provider/types.d.ts +6 -12
- package/lib/ele-copyable/index.cjs +0 -4
- package/lib/ele-copyable/index.d.ts +8 -9
- package/lib/ele-copyable/props.d.ts +9 -8
- package/lib/ele-count-up/index.d.ts +2 -1
- package/lib/ele-count-up/props.d.ts +3 -2
- package/lib/ele-cropper/components/cropper-preview.d.ts +1 -1
- package/lib/ele-cropper/components/cropper-tools.d.ts +4 -3
- package/lib/ele-cropper/index.cjs +0 -4
- package/lib/ele-cropper/index.d.ts +11 -10
- 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 +3 -2
- package/lib/ele-cropper-modal/props.d.ts +7 -6
- package/lib/ele-dashboard/index.cjs +7 -16
- package/lib/ele-dashboard/index.d.ts +1 -2
- package/lib/ele-dashboard/props.d.ts +3 -2
- package/lib/ele-data-table/index.cjs +9 -1
- package/lib/ele-data-table/index.d.ts +10 -15
- package/lib/ele-data-table/props.d.ts +38 -43
- package/lib/ele-data-table/style/index.scss +4 -0
- package/lib/ele-data-table/types.d.ts +18 -16
- package/lib/ele-data-table/util.cjs +14 -0
- package/lib/ele-data-table/util.d.ts +15 -9
- package/lib/ele-dot/index.cjs +3 -9
- package/lib/ele-dot/index.d.ts +3 -5
- package/lib/ele-dot/props.d.ts +3 -2
- package/lib/ele-drawer/index.cjs +109 -112
- package/lib/ele-drawer/index.d.ts +8 -4
- package/lib/ele-drawer/props.d.ts +26 -25
- package/lib/ele-drawer/style/index.scss +49 -106
- package/lib/ele-dropdown/index.cjs +7 -10
- package/lib/ele-dropdown/index.d.ts +6 -5
- package/lib/ele-dropdown/props.d.ts +22 -21
- package/lib/ele-dropdown/style/index.scss +2 -2
- package/lib/ele-edit-tag/index.cjs +17 -15
- package/lib/ele-edit-tag/index.d.ts +9 -2
- package/lib/ele-edit-tag/props.cjs +5 -1
- package/lib/ele-edit-tag/props.d.ts +14 -9
- package/lib/ele-edit-tag/style/index.scss +13 -0
- package/lib/ele-ellipsis/index.cjs +3 -26
- package/lib/ele-ellipsis/index.d.ts +7 -6
- package/lib/ele-ellipsis/props.d.ts +8 -7
- package/lib/ele-file-list/components/file-grid-item.cjs +16 -9
- package/lib/ele-file-list/components/file-grid-item.d.ts +6 -5
- package/lib/ele-file-list/components/file-grid.cjs +53 -49
- package/lib/ele-file-list/components/file-grid.d.ts +6 -5
- package/lib/ele-file-list/components/file-sort.d.ts +1 -1
- package/lib/ele-file-list/components/file-table-item.cjs +20 -15
- package/lib/ele-file-list/components/file-table-item.d.ts +6 -5
- package/lib/ele-file-list/components/file-table.cjs +91 -85
- package/lib/ele-file-list/components/file-table.d.ts +6 -5
- package/lib/ele-file-list/icons.d.ts +2 -1
- package/lib/ele-file-list/index.cjs +0 -10
- package/lib/ele-file-list/index.d.ts +8 -7
- package/lib/ele-file-list/props.d.ts +6 -5
- package/lib/ele-file-list-tool/index.cjs +2 -2
- package/lib/ele-file-list-tool/index.d.ts +4 -4
- package/lib/ele-icon-select/components/icon-grid.cjs +1 -1
- package/lib/ele-icon-select/components/icon-grid.d.ts +4 -3
- package/lib/ele-icon-select/index.cjs +39 -16
- package/lib/ele-icon-select/index.d.ts +27 -14
- package/lib/ele-icon-select/props.cjs +6 -1
- package/lib/ele-icon-select/props.d.ts +23 -17
- package/lib/ele-icon-select/style/index.cjs +1 -0
- package/lib/ele-icon-select/style/index.scss +16 -2
- package/lib/ele-loading/index.cjs +38 -42
- package/lib/ele-loading/index.d.ts +1 -6
- package/lib/ele-loading/props.d.ts +5 -4
- package/lib/ele-map-picker/components/map-view.cjs +225 -174
- package/lib/ele-map-picker/components/map-view.d.ts +51 -27
- package/lib/ele-map-picker/index.cjs +21 -39
- package/lib/ele-map-picker/index.d.ts +45 -22
- package/lib/ele-map-picker/props.cjs +20 -6
- package/lib/ele-map-picker/props.d.ts +37 -12
- package/lib/ele-map-picker/style/index.scss +195 -166
- package/lib/ele-map-picker/types.d.ts +8 -4
- package/lib/ele-menus/index.cjs +76 -12
- package/lib/ele-menus/index.d.ts +19 -7
- package/lib/ele-menus/props.cjs +13 -3
- package/lib/ele-menus/props.d.ts +27 -16
- package/lib/ele-menus/style/css-var.scss +1 -5
- package/lib/ele-menus/style/index.cjs +2 -0
- package/lib/ele-menus/style/index.scss +13 -11
- package/lib/ele-menus/types.d.ts +9 -9
- package/lib/ele-menus/util.cjs +115 -80
- package/lib/ele-menus/util.d.ts +35 -16
- package/lib/ele-modal/index.cjs +187 -179
- package/lib/ele-modal/index.d.ts +18 -11
- package/lib/ele-modal/props.cjs +2 -0
- package/lib/ele-modal/props.d.ts +26 -23
- package/lib/ele-modal/style/index.scss +134 -159
- package/lib/ele-modal/types.d.ts +2 -10
- package/lib/ele-modal/util.cjs +53 -214
- package/lib/ele-modal/util.d.ts +20 -45
- package/lib/ele-page/index.d.ts +1 -1
- package/lib/ele-page/props.d.ts +2 -1
- package/lib/ele-pagination/index.cjs +21 -12
- package/lib/ele-pagination/index.d.ts +20 -9
- package/lib/ele-pagination/props.cjs +7 -0
- package/lib/ele-pagination/props.d.ts +19 -12
- package/lib/ele-pagination/style/index.scss +9 -0
- package/lib/ele-pagination/types.d.ts +6 -1
- package/lib/ele-popconfirm/index.cjs +5 -27
- package/lib/ele-popconfirm/index.d.ts +4 -3
- package/lib/ele-popconfirm/props.d.ts +32 -31
- package/lib/ele-popconfirm/style/index.cjs +1 -1
- package/lib/ele-popover/index.cjs +5 -13
- package/lib/ele-popover/index.d.ts +7 -6
- package/lib/ele-popover/props.d.ts +26 -25
- package/lib/ele-popover/style/index.cjs +0 -1
- package/lib/ele-printer/index.cjs +10 -10
- package/lib/ele-printer/index.d.ts +7 -7
- package/lib/ele-printer/props.d.ts +6 -5
- package/lib/ele-printer/style/index.scss +1 -1
- package/lib/ele-printer/util.cjs +4 -2
- 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 +176 -27
- package/lib/ele-pro-layout/components/pro-header.d.ts +94 -17
- package/lib/ele-pro-layout/components/pro-iframe.cjs +45 -22
- package/lib/ele-pro-layout/components/pro-iframe.d.ts +4 -3
- package/lib/ele-pro-layout/components/pro-sidebar.cjs +41 -16
- package/lib/ele-pro-layout/components/pro-sidebar.d.ts +30 -19
- package/lib/ele-pro-layout/components/pro-sidebox.cjs +52 -15
- package/lib/ele-pro-layout/components/pro-sidebox.d.ts +32 -15
- package/lib/ele-pro-layout/components/pro-tabs.d.ts +6 -5
- package/lib/ele-pro-layout/components/sidebar-tool.d.ts +1 -1
- package/lib/ele-pro-layout/components/tab-dropdown.cjs +6 -2
- package/lib/ele-pro-layout/components/tab-dropdown.d.ts +5 -4
- package/lib/ele-pro-layout/index.cjs +318 -86
- package/lib/ele-pro-layout/index.d.ts +54 -39
- package/lib/ele-pro-layout/props.cjs +8 -1
- package/lib/ele-pro-layout/props.d.ts +17 -10
- 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 +23 -3
- package/lib/ele-pro-layout/style/sidebar.scss +0 -1
- package/lib/ele-pro-layout/style/tabs.scss +20 -12
- package/lib/ele-pro-layout/types.d.ts +30 -4
- package/lib/ele-pro-layout/util.d.ts +5 -4
- package/lib/ele-pro-table/components/table-tools.cjs +124 -7
- package/lib/ele-pro-table/components/table-tools.d.ts +102 -10
- package/lib/ele-pro-table/components/tool-column-list.cjs +3 -6
- package/lib/ele-pro-table/components/tool-column-list.d.ts +4 -3
- package/lib/ele-pro-table/components/tool-column.cjs +8 -8
- package/lib/ele-pro-table/components/tool-column.d.ts +5 -4
- package/lib/ele-pro-table/components/tool-export.cjs +448 -0
- package/lib/ele-pro-table/components/tool-export.d.ts +456 -0
- package/lib/ele-pro-table/components/tool-print-body-cell.cjs +87 -0
- package/lib/ele-pro-table/components/tool-print-body-cell.d.ts +35 -0
- package/lib/ele-pro-table/components/tool-print-header-cell.cjs +87 -0
- package/lib/ele-pro-table/components/tool-print-header-cell.d.ts +35 -0
- package/lib/ele-pro-table/components/tool-print.cjs +554 -0
- package/lib/ele-pro-table/components/tool-print.d.ts +895 -0
- package/lib/ele-pro-table/index.cjs +89 -17
- package/lib/ele-pro-table/index.d.ts +36 -30
- package/lib/ele-pro-table/props.cjs +6 -2
- package/lib/ele-pro-table/props.d.ts +52 -48
- package/lib/ele-pro-table/style/index.cjs +9 -0
- package/lib/ele-pro-table/style/index.scss +33 -5
- package/lib/ele-pro-table/types.d.ts +149 -5
- package/lib/ele-pro-table/util.cjs +145 -21
- package/lib/ele-pro-table/util.d.ts +58 -6
- package/lib/ele-qr-code/index.d.ts +3 -2
- 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 +1 -1
- package/lib/ele-segmented/index.cjs +1 -3
- package/lib/ele-segmented/index.d.ts +4 -3
- package/lib/ele-segmented/props.d.ts +3 -2
- package/lib/ele-split-panel/index.cjs +62 -58
- package/lib/ele-split-panel/index.d.ts +11 -9
- package/lib/ele-split-panel/props.d.ts +5 -4
- package/lib/ele-steps/index.cjs +2 -4
- package/lib/ele-steps/index.d.ts +1 -2
- package/lib/ele-steps/props.d.ts +10 -9
- package/lib/ele-tab-tool/index.d.ts +1 -1
- 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 +1 -1
- package/lib/ele-tab-wrap/props.d.ts +3 -2
- package/lib/ele-table/index.cjs +2 -1
- package/lib/ele-table/index.d.ts +4 -1
- package/lib/ele-table/props.cjs +3 -1
- package/lib/ele-table/props.d.ts +4 -1
- package/lib/ele-table/style/index.scss +35 -0
- package/lib/ele-table-select/index.cjs +27 -26
- package/lib/ele-table-select/index.d.ts +24 -22
- package/lib/ele-table-select/props.d.ts +11 -10
- package/lib/ele-tabs/components/tab-title.d.ts +6 -5
- package/lib/ele-tabs/index.cjs +2 -6
- package/lib/ele-tabs/index.d.ts +13 -23
- package/lib/ele-tabs/props.d.ts +15 -21
- 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 +1 -1
- package/lib/ele-text/props.d.ts +5 -4
- package/lib/ele-tool/index.cjs +1 -3
- package/lib/ele-tool/index.d.ts +2 -2
- package/lib/ele-tool/props.cjs +5 -0
- package/lib/ele-tool/props.d.ts +10 -2
- package/lib/ele-toolbar/index.d.ts +1 -1
- package/lib/ele-toolbar/props.d.ts +7 -6
- package/lib/ele-tooltip/index.cjs +12 -13
- package/lib/ele-tooltip/index.d.ts +4 -3
- package/lib/ele-tooltip/props.cjs +2 -0
- package/lib/ele-tooltip/props.d.ts +28 -22
- package/lib/ele-tooltip/style/css-var.scss +4 -0
- package/lib/ele-tooltip/style/index.scss +23 -0
- package/lib/ele-tour/index.cjs +79 -76
- package/lib/ele-tour/index.d.ts +5 -4
- 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 +10 -9
- 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.cjs +6 -3
- package/lib/ele-upload-list/components/list-item.d.ts +10 -5
- package/lib/ele-upload-list/index.cjs +8 -7
- package/lib/ele-upload-list/index.d.ts +12 -5
- package/lib/ele-upload-list/props.cjs +5 -1
- package/lib/ele-upload-list/props.d.ts +11 -6
- package/lib/ele-upload-list/style/index.scss +2 -1
- package/lib/ele-virtual-table/components/body-cell.cjs +78 -111
- package/lib/ele-virtual-table/components/body-cell.d.ts +85 -50
- package/lib/ele-virtual-table/components/body-row.cjs +57 -52
- package/lib/ele-virtual-table/components/body-row.d.ts +72 -48
- package/lib/ele-virtual-table/components/cell-checkbox.d.ts +3 -2
- package/lib/ele-virtual-table/components/cell-filter.cjs +7 -11
- package/lib/ele-virtual-table/components/cell-filter.d.ts +9 -8
- package/lib/ele-virtual-table/components/expand-row.cjs +3 -3
- package/lib/ele-virtual-table/components/expand-row.d.ts +10 -9
- package/lib/ele-virtual-table/components/footer-row.cjs +27 -17
- package/lib/ele-virtual-table/components/footer-row.d.ts +33 -14
- package/lib/ele-virtual-table/components/header-cell.d.ts +5 -4
- package/lib/ele-virtual-table/components/header-row.d.ts +5 -4
- package/lib/ele-virtual-table/index.cjs +132 -134
- package/lib/ele-virtual-table/index.d.ts +23 -32
- package/lib/ele-virtual-table/props.d.ts +50 -52
- package/lib/ele-virtual-table/style/index.scss +1 -1
- package/lib/ele-virtual-table/types.d.ts +103 -69
- package/lib/ele-virtual-table/util.cjs +65 -34
- package/lib/ele-virtual-table/util.d.ts +35 -10
- package/lib/ele-watermark/index.cjs +1 -1
- package/lib/ele-watermark/index.d.ts +12 -2
- package/lib/ele-watermark/props.cjs +5 -0
- package/lib/ele-watermark/props.d.ts +9 -3
- package/lib/ele-watermark/util.d.ts +3 -2
- package/lib/ele-xg-player/index.d.ts +4 -4
- package/lib/icons/AnalysisOutlined.d.ts +1 -1
- package/lib/icons/ApplicationOutlined.d.ts +1 -1
- package/lib/icons/AppstoreAddOutlined.d.ts +1 -1
- package/lib/icons/AppstoreOutlined.d.ts +1 -1
- package/lib/icons/ArrowDown.d.ts +1 -1
- package/lib/icons/ArrowDownOutlined.d.ts +1 -1
- package/lib/icons/ArrowLeft.d.ts +1 -1
- package/lib/icons/ArrowLeftOutlined.d.ts +1 -1
- package/lib/icons/ArrowRight.d.ts +1 -1
- package/lib/icons/ArrowRightOutlined.d.ts +1 -1
- package/lib/icons/ArrowUp.d.ts +1 -1
- package/lib/icons/ArrowUpOutlined.d.ts +1 -1
- package/lib/icons/BellOutlined.d.ts +1 -1
- package/lib/icons/BookOutlined.d.ts +1 -1
- package/lib/icons/CalendarOutlined.d.ts +1 -1
- package/lib/icons/CaretDownFilled.d.ts +1 -1
- package/lib/icons/CaretUpFilled.d.ts +1 -1
- package/lib/icons/CheckCircleFilled.d.ts +1 -1
- package/lib/icons/CheckCircleOutlined.d.ts +1 -1
- package/lib/icons/CheckOutlined.d.ts +1 -1
- package/lib/icons/CityOutlined.d.ts +1 -1
- package/lib/icons/ClockCircleOutlined.d.ts +1 -1
- package/lib/icons/CloseCircleFilled.d.ts +1 -1
- package/lib/icons/CloseCircleOutlined.d.ts +1 -1
- package/lib/icons/CloseOutlined.d.ts +1 -1
- package/lib/icons/CloudUploadOutlined.d.ts +1 -1
- package/lib/icons/ClusterOutlined.d.ts +1 -1
- package/lib/icons/CodeOutlined.d.ts +1 -1
- package/lib/icons/ColumnHeightOutlined.d.ts +1 -1
- package/lib/icons/CompassOutlined.d.ts +1 -1
- package/lib/icons/CompressOutlined.d.ts +1 -1
- package/lib/icons/ConnectionOutlined.d.ts +1 -1
- package/lib/icons/ControlOutlined.d.ts +1 -1
- package/lib/icons/CopyOutlined.d.ts +1 -1
- package/lib/icons/CpuOutlined.d.ts +1 -1
- package/lib/icons/DashboardOutlined.d.ts +1 -1
- package/lib/icons/DatabaseOutlined.d.ts +1 -1
- package/lib/icons/DeleteOutlined.d.ts +1 -1
- package/lib/icons/DesktopOutlined.d.ts +1 -1
- package/lib/icons/DownloadOutlined.d.ts +1 -1
- package/lib/icons/DragOutlined.d.ts +1 -1
- package/lib/icons/EditOutlined.d.ts +1 -1
- package/lib/icons/EllipsisOutlined.d.ts +1 -1
- package/lib/icons/EnvironmentOutlined.d.ts +1 -1
- package/lib/icons/ExclamationCircleFilled.d.ts +1 -1
- package/lib/icons/ExpandOutlined.d.ts +1 -1
- package/lib/icons/FileOutlined.d.ts +1 -1
- package/lib/icons/FilterFilled.d.ts +1 -1
- package/lib/icons/FolderAddOutlined.d.ts +1 -1
- package/lib/icons/FolderOutlined.d.ts +1 -1
- package/lib/icons/FormOutlined.d.ts +1 -1
- package/lib/icons/FullscreenExitOutlined.d.ts +1 -1
- package/lib/icons/FullscreenOutlined.d.ts +1 -1
- package/lib/icons/FundOutlined.d.ts +1 -1
- package/lib/icons/GlobalOutlined.d.ts +1 -1
- package/lib/icons/HolderOutlined.d.ts +1 -1
- package/lib/icons/HomeOutlined.d.ts +1 -1
- package/lib/icons/IdcardOutlined.d.ts +1 -1
- package/lib/icons/InfoCircleFilled.d.ts +1 -1
- package/lib/icons/LinkOutlined.d.ts +1 -1
- package/lib/icons/LoadingDotOutlined.d.ts +1 -1
- package/lib/icons/LoadingOutlined.d.ts +1 -1
- package/lib/icons/LockOutlined.d.ts +1 -1
- package/lib/icons/LogOutlined.d.ts +1 -1
- package/lib/icons/LogoutOutlined.d.ts +1 -1
- package/lib/icons/MailOutlined.d.ts +1 -1
- package/lib/icons/MenuFoldOutlined.d.ts +1 -1
- package/lib/icons/MenuUnfoldOutlined.d.ts +1 -1
- package/lib/icons/MessageOutlined.d.ts +1 -1
- package/lib/icons/MinusCircleOutlined.d.ts +1 -1
- package/lib/icons/MobileOutlined.d.ts +1 -1
- package/lib/icons/MoonOutlined.d.ts +1 -1
- package/lib/icons/MoreOutlined.d.ts +1 -1
- package/lib/icons/PauseFilled.d.ts +1 -1
- package/lib/icons/PieChartOutlined.d.ts +1 -1
- package/lib/icons/PlayFilled.d.ts +1 -1
- package/lib/icons/PlusCircleOutlined.d.ts +1 -1
- package/lib/icons/PlusOutlined.d.ts +1 -1
- package/lib/icons/PrinterOutlined.cjs +28 -0
- package/lib/icons/PrinterOutlined.d.ts +2 -0
- package/lib/icons/ProtectOutlined.d.ts +1 -1
- package/lib/icons/QuestionCircleFilled.d.ts +1 -1
- package/lib/icons/QuestionCircleOutlined.d.ts +1 -1
- package/lib/icons/ReloadOutlined.d.ts +1 -1
- package/lib/icons/ResizeOutlined.cjs +29 -0
- package/lib/icons/ResizeOutlined.d.ts +2 -0
- package/lib/icons/SearchOutlined.d.ts +1 -1
- package/lib/icons/SettingOutlined.d.ts +1 -1
- package/lib/icons/ShoppingOutlined.d.ts +1 -1
- package/lib/icons/SortOutlined.d.ts +1 -1
- package/lib/icons/StarFilled.d.ts +1 -1
- package/lib/icons/StepBackwardFilled.d.ts +1 -1
- package/lib/icons/StepForwardFilled.d.ts +1 -1
- package/lib/icons/SuitcaseOutlined.d.ts +1 -1
- package/lib/icons/SunOutlined.d.ts +1 -1
- package/lib/icons/SwapOutlined.d.ts +1 -1
- package/lib/icons/SyncOutlined.d.ts +1 -1
- package/lib/icons/TableOutlined.d.ts +1 -1
- package/lib/icons/TagOutlined.d.ts +1 -1
- package/lib/icons/TimerOutlined.d.ts +1 -1
- package/lib/icons/UndoOutlined.d.ts +1 -1
- package/lib/icons/UnlockOutlined.d.ts +1 -1
- package/lib/icons/UploadOutlined.d.ts +1 -1
- package/lib/icons/UserOutlined.d.ts +1 -1
- package/lib/icons/VerticalAlignMiddleOutlined.d.ts +1 -1
- package/lib/icons/VerticalLeftOutlined.cjs +2 -2
- package/lib/icons/VerticalLeftOutlined.d.ts +1 -1
- package/lib/icons/VerticalRightOutlined.cjs +2 -2
- package/lib/icons/VerticalRightOutlined.d.ts +1 -1
- package/lib/icons/WarningOutlined.d.ts +1 -1
- package/lib/icons/ZoomInOutlined.d.ts +1 -1
- package/lib/icons/ZoomOutOutlined.d.ts +1 -1
- package/lib/icons/index.cjs +4 -0
- package/lib/icons/index.d.ts +2 -0
- package/lib/installer.d.ts +2 -2
- package/lib/lang/en_US.cjs +15 -3
- package/lib/lang/en_US.d.ts +2 -2
- package/lib/lang/zh_CN.cjs +15 -3
- package/lib/lang/zh_CN.d.ts +2 -2
- package/lib/lang/zh_TW.cjs +14 -2
- package/lib/lang/zh_TW.d.ts +2 -2
- package/lib/style/index.scss +1 -43
- package/lib/style/plus.scss +43 -0
- package/lib/style/themes/dark.scss +9 -15
- package/lib/style/themes/default.scss +64 -84
- package/lib/style/themes/rounded.scss +17 -31
- package/lib/style/themes/theme-util.scss +0 -2
- package/lib/utils/core.cjs +28 -0
- package/lib/utils/core.d.ts +5 -0
- package/lib/utils/menu-util.d.ts +3 -2
- package/lib/utils/message.d.ts +4 -3
- package/lib/utils/resolvers.cjs +33 -20
- package/lib/utils/resolvers.d.ts +4 -4
- package/package.json +24 -23
- package/es/ele-popover/style/css-var.scss +0 -8
- package/es/ele-popover/style/index.scss +0 -27
- package/lib/ele-popover/style/css-var.scss +0 -8
- package/lib/ele-popover/style/index.scss +0 -27
|
@@ -107,7 +107,12 @@
|
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
/* 列配置 */
|
|
110
|
-
.ele-tool-column.ele-popover {
|
|
110
|
+
.ele-tool-column-popover.ele-popover {
|
|
111
|
+
width: eleVar('tool-column', 'width');
|
|
112
|
+
max-width: 100%;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.ele-tool-column {
|
|
111
116
|
width: eleVar('tool-column', 'width');
|
|
112
117
|
max-width: 100%;
|
|
113
118
|
}
|
|
@@ -131,7 +136,8 @@
|
|
|
131
136
|
}
|
|
132
137
|
}
|
|
133
138
|
|
|
134
|
-
.ele-tool-column.ele-
|
|
139
|
+
.ele-tool-column .ele-tool-column-item .ele-tool-column-item-body,
|
|
140
|
+
.ele-tool-column .ele-tool-column-header .ele-tool-column-label {
|
|
135
141
|
.el-checkbox {
|
|
136
142
|
height: eleVar('tool-column', 'item-height');
|
|
137
143
|
line-height: eleVar('tool-column', 'item-height');
|
|
@@ -153,7 +159,7 @@
|
|
|
153
159
|
box-sizing: border-box;
|
|
154
160
|
}
|
|
155
161
|
|
|
156
|
-
.ele-
|
|
162
|
+
.ele-tool-column > .ele-tool-column-list {
|
|
157
163
|
padding: eleVar('tool-column', 'body-padding');
|
|
158
164
|
max-height: eleVar('tool-column', 'max-height');
|
|
159
165
|
box-sizing: border-box;
|
|
@@ -182,6 +188,7 @@
|
|
|
182
188
|
|
|
183
189
|
&.sortable-chosen {
|
|
184
190
|
background: eleVar('tool-column', 'item-hover-bg');
|
|
191
|
+
opacity: 1 !important;
|
|
185
192
|
|
|
186
193
|
& > .ele-tool-column-item-body {
|
|
187
194
|
background: none;
|
|
@@ -189,7 +196,7 @@
|
|
|
189
196
|
}
|
|
190
197
|
|
|
191
198
|
&.sortable-ghost {
|
|
192
|
-
opacity: 0;
|
|
199
|
+
opacity: 0 !important;
|
|
193
200
|
}
|
|
194
201
|
|
|
195
202
|
& > .ele-tool-column-list {
|
|
@@ -230,9 +237,13 @@
|
|
|
230
237
|
color: eleVar('tool-column', 'btn-active-color');
|
|
231
238
|
background: eleVar('tool-column', 'btn-active-bg');
|
|
232
239
|
}
|
|
240
|
+
|
|
241
|
+
& > .el-icon > svg {
|
|
242
|
+
stroke-width: 5;
|
|
243
|
+
}
|
|
233
244
|
}
|
|
234
245
|
|
|
235
|
-
.ele-
|
|
246
|
+
.ele-tool-column.is-sortable {
|
|
236
247
|
.ele-tool-column-item-body {
|
|
237
248
|
padding-left: 6px;
|
|
238
249
|
}
|
|
@@ -241,3 +252,20 @@
|
|
|
241
252
|
padding-left: calc(22px - #{eleVar('tool-column', 'item-padding')});
|
|
242
253
|
}
|
|
243
254
|
}
|
|
255
|
+
|
|
256
|
+
/* 导出和打印的列选择 */
|
|
257
|
+
.ele-tool-export-form,
|
|
258
|
+
.ele-tool-print-form {
|
|
259
|
+
.ele-tool-column {
|
|
260
|
+
border: 1px solid elVar('border-color', 'light');
|
|
261
|
+
border-radius: elVar('border-radius', 'base');
|
|
262
|
+
line-height: normal;
|
|
263
|
+
width: 100%;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.ele-tool-column-header {
|
|
267
|
+
background: elVar('fill-color', 'lighter');
|
|
268
|
+
border-top-left-radius: elVar('border-radius', 'base');
|
|
269
|
+
border-top-right-radius: elVar('border-radius', 'base');
|
|
270
|
+
}
|
|
271
|
+
}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import type {
|
|
2
2
|
EleDataTableInstance,
|
|
3
3
|
EleVirtualTableInstance,
|
|
4
|
-
ElePaginationProps
|
|
4
|
+
ElePaginationProps,
|
|
5
|
+
EleModalProps,
|
|
6
|
+
ElePrinterProps,
|
|
7
|
+
EleTableProps
|
|
5
8
|
} from '../ele-app/plus';
|
|
9
|
+
import type { PaginationTotal } from '../ele-pagination/types';
|
|
6
10
|
import type {
|
|
7
11
|
DataItem,
|
|
8
12
|
Column,
|
|
@@ -13,6 +17,7 @@ import type {
|
|
|
13
17
|
TableSize,
|
|
14
18
|
ResolveFunction
|
|
15
19
|
} from '../ele-data-table/types';
|
|
20
|
+
import type { BodyColumns } from '../ele-virtual-table/types';
|
|
16
21
|
export type {
|
|
17
22
|
DataItem,
|
|
18
23
|
Column,
|
|
@@ -137,7 +142,7 @@ export interface ResponseOption {
|
|
|
137
142
|
}
|
|
138
143
|
|
|
139
144
|
/**
|
|
140
|
-
*
|
|
145
|
+
* 响应数据解析方法
|
|
141
146
|
*/
|
|
142
147
|
export type ParseData = (data: unknown) => DatasourceResult;
|
|
143
148
|
|
|
@@ -159,10 +164,10 @@ export interface OrderItem {
|
|
|
159
164
|
export interface DoneParams<T> {
|
|
160
165
|
/** 当前页数据 */
|
|
161
166
|
data: T[];
|
|
167
|
+
/** 总数量 */
|
|
168
|
+
total?: PaginationTotal;
|
|
162
169
|
/** 当前页码 */
|
|
163
170
|
page?: number;
|
|
164
|
-
/** 总数量 */
|
|
165
|
-
total?: number;
|
|
166
171
|
/** 数据源原始数据 */
|
|
167
172
|
response?: any;
|
|
168
173
|
}
|
|
@@ -188,7 +193,14 @@ export interface TablePagination extends ElePaginationProps {
|
|
|
188
193
|
/**
|
|
189
194
|
* 内置工具按钮
|
|
190
195
|
*/
|
|
191
|
-
export type TableTool =
|
|
196
|
+
export type TableTool =
|
|
197
|
+
| 'reload'
|
|
198
|
+
| 'size'
|
|
199
|
+
| 'columns'
|
|
200
|
+
| 'maximized'
|
|
201
|
+
| 'export'
|
|
202
|
+
| 'print'
|
|
203
|
+
| string;
|
|
192
204
|
|
|
193
205
|
/**
|
|
194
206
|
* 列配置
|
|
@@ -211,6 +223,11 @@ export interface ColItem {
|
|
|
211
223
|
*/
|
|
212
224
|
export type FetchCallback = (options: DatasourceParams) => void;
|
|
213
225
|
|
|
226
|
+
/**
|
|
227
|
+
* 请求方法
|
|
228
|
+
*/
|
|
229
|
+
export type FetchFunction = (callback: FetchCallback) => void;
|
|
230
|
+
|
|
214
231
|
/**
|
|
215
232
|
* 前端分页排序方法返回结果
|
|
216
233
|
*/
|
|
@@ -258,6 +275,122 @@ export type TableViewInstance =
|
|
|
258
275
|
| EleVirtualTableInstance
|
|
259
276
|
| null;
|
|
260
277
|
|
|
278
|
+
/**
|
|
279
|
+
* 导出的数据来源类型
|
|
280
|
+
*/
|
|
281
|
+
export type ExportDataType = 'selections' | 'pageData' | 'data';
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* 导出的数据每一项
|
|
285
|
+
*/
|
|
286
|
+
export interface ExportDataItem {
|
|
287
|
+
/** 唯一值 */
|
|
288
|
+
key?: string;
|
|
289
|
+
/** 行数据 */
|
|
290
|
+
row?: DataItem;
|
|
291
|
+
/** 行索引 */
|
|
292
|
+
index: number;
|
|
293
|
+
/** 列配置 */
|
|
294
|
+
column?: Column;
|
|
295
|
+
/** 文本 */
|
|
296
|
+
text?: string;
|
|
297
|
+
/** 所占列数 */
|
|
298
|
+
colspan?: number;
|
|
299
|
+
/** 所占行数 */
|
|
300
|
+
rowspan?: number;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* 导出数据封装返回结果
|
|
305
|
+
*/
|
|
306
|
+
export interface ExportDataResult {
|
|
307
|
+
/** 表头数据 */
|
|
308
|
+
headerData: ExportDataItem[][];
|
|
309
|
+
/** 主体数据 */
|
|
310
|
+
bodyData: ExportDataItem[][];
|
|
311
|
+
/** 表尾数据 */
|
|
312
|
+
footerData: ExportDataItem[][];
|
|
313
|
+
/** 主体列配置 */
|
|
314
|
+
bodyCols: BodyColumns;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* 导出数据前的钩子函数的参数
|
|
319
|
+
*/
|
|
320
|
+
export interface BeforeExportParams {
|
|
321
|
+
/** 导出的数据 */
|
|
322
|
+
data: DataItem[];
|
|
323
|
+
/** 导出的列配置 */
|
|
324
|
+
columns?: Columns;
|
|
325
|
+
/** 导出的表头数据封装 */
|
|
326
|
+
headerData: ExportDataItem[][];
|
|
327
|
+
/** 导出的主体数据封装 */
|
|
328
|
+
bodyData: ExportDataItem[][];
|
|
329
|
+
/** 导出的页脚数据封装 */
|
|
330
|
+
footerData: ExportDataItem[][];
|
|
331
|
+
/** 主体列配置 */
|
|
332
|
+
bodyCols: BodyColumns;
|
|
333
|
+
/** 文件名 */
|
|
334
|
+
fileName?: string;
|
|
335
|
+
/** 关闭确定按钮的加载状态 */
|
|
336
|
+
hideLoading: () => void;
|
|
337
|
+
/** 关闭弹窗 */
|
|
338
|
+
closeModal: () => void;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* 导出数据前的钩子函数
|
|
343
|
+
*/
|
|
344
|
+
export type BeforeExport = (params: BeforeExportParams) => boolean | void;
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* 导出配置
|
|
348
|
+
*/
|
|
349
|
+
export interface ExportConfig {
|
|
350
|
+
/** 弹窗参数 */
|
|
351
|
+
modalProps?: EleModalProps;
|
|
352
|
+
/** 表格全部数据 */
|
|
353
|
+
datasource?: Datasource;
|
|
354
|
+
/** 导出前的钩子函数 */
|
|
355
|
+
beforeExport?: BeforeExport;
|
|
356
|
+
/** 默认数据类型 */
|
|
357
|
+
dataType?: ExportDataType;
|
|
358
|
+
/** 默认文件名 */
|
|
359
|
+
fileName?: string;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
/**
|
|
363
|
+
* 打印配置
|
|
364
|
+
*/
|
|
365
|
+
export interface PrintConfig {
|
|
366
|
+
/** 弹窗参数 */
|
|
367
|
+
modalProps?: EleModalProps;
|
|
368
|
+
/** 打印组件参数 */
|
|
369
|
+
printerProps?: ElePrinterProps;
|
|
370
|
+
/** 打印表格参数 */
|
|
371
|
+
tableProps?: EleTableProps;
|
|
372
|
+
/** 表格全部数据 */
|
|
373
|
+
datasource?: Datasource;
|
|
374
|
+
/** 打印前的钩子函数 */
|
|
375
|
+
beforePrint?: BeforeExport;
|
|
376
|
+
/** 默认数据类型 */
|
|
377
|
+
dataType?: ExportDataType;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* 打印参数
|
|
382
|
+
*/
|
|
383
|
+
export interface TablePrintOptions extends ExportDataResult {
|
|
384
|
+
/** 是否开始打印 */
|
|
385
|
+
printing: boolean;
|
|
386
|
+
/** 是否有表头 */
|
|
387
|
+
hasHeader: boolean;
|
|
388
|
+
/** 是否有表尾 */
|
|
389
|
+
hasFooter: boolean;
|
|
390
|
+
/** 打印的数据 */
|
|
391
|
+
data: DataItem[];
|
|
392
|
+
}
|
|
393
|
+
|
|
261
394
|
/**
|
|
262
395
|
* 国际化
|
|
263
396
|
*/
|
|
@@ -266,6 +399,8 @@ export interface TableLocale {
|
|
|
266
399
|
sizes: string;
|
|
267
400
|
columns: string;
|
|
268
401
|
maximized: string;
|
|
402
|
+
export: string;
|
|
403
|
+
print: string;
|
|
269
404
|
sizeLarge: string;
|
|
270
405
|
sizeDefault: string;
|
|
271
406
|
sizeSmall: string;
|
|
@@ -274,4 +409,13 @@ export interface TableLocale {
|
|
|
274
409
|
columnUntitled: string;
|
|
275
410
|
columnFixedLeft: string;
|
|
276
411
|
columnFixedRight: string;
|
|
412
|
+
exportOk: string;
|
|
413
|
+
exportCancel: string;
|
|
414
|
+
exportFileName: string;
|
|
415
|
+
exportFileNamePlaceholder: string;
|
|
416
|
+
exportSelectData: string;
|
|
417
|
+
exportSelectColumn: string;
|
|
418
|
+
exportDataTypePage: string;
|
|
419
|
+
exportDataTypeSelected: string;
|
|
420
|
+
exportDataTypeAll: string;
|
|
277
421
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { Orders, Filters, OrderItem, RequestOption, ResponseOption, TablePagination, DatasourceResult, ResponseResult, ReloadDataResult, ColItem, ProProps, ExportDataItem, ExportDataResult } from './types';
|
|
2
|
+
import { DataItem, Column, Columns, Sorter, Filter, TableSize, TreeProps, RowKey, SpanMethod, SummaryMethod } from '../ele-data-table/types';
|
|
3
|
+
import { ElePaginationProps } from '../ele-app/plus';
|
|
4
|
+
|
|
4
5
|
/**
|
|
5
6
|
* 合并复合属性
|
|
6
7
|
* @param props 属性
|
|
@@ -26,7 +27,7 @@ export declare function getTableLimit(pagination: boolean | TablePagination | un
|
|
|
26
27
|
* @param globalPagination 全局配置分页组件属性
|
|
27
28
|
* @param pageProps 分页相关的属性
|
|
28
29
|
*/
|
|
29
|
-
export declare function getPaginationProps(size: TableSize, pagination: boolean | TablePagination | undefined, globalPagination: boolean | TablePagination | undefined, pageProps?: Pick<ElePaginationProps, 'total' | 'pageSize' | 'currentPage'>): ElePaginationProps | null;
|
|
30
|
+
export declare function getPaginationProps(size: TableSize, pagination: boolean | TablePagination | undefined, globalPagination: boolean | TablePagination | undefined, pageProps?: Pick<ElePaginationProps, 'total' | 'pageSize' | 'currentPage' | 'hasNext'>): ElePaginationProps | null;
|
|
30
31
|
/**
|
|
31
32
|
* 判断是否开启自动修正页码
|
|
32
33
|
* @param pagination 分页组件属性
|
|
@@ -108,7 +109,7 @@ export declare function sortData(datasource?: DataItem[], sorter?: Sorter): Data
|
|
|
108
109
|
* 获取列配置标识
|
|
109
110
|
* @param column 列数据
|
|
110
111
|
*/
|
|
111
|
-
export declare function getColId(column
|
|
112
|
+
export declare function getColId(column: Column): string | undefined;
|
|
112
113
|
/**
|
|
113
114
|
* 获取初始显示的列数据
|
|
114
115
|
* @param columns 列数据
|
|
@@ -127,7 +128,16 @@ export declare function getInitCacheColumns(columns: Columns, cacheKey?: string,
|
|
|
127
128
|
* @param cols 列配置数据
|
|
128
129
|
* @param sortable 是否进行排序
|
|
129
130
|
*/
|
|
130
|
-
export declare function getCheckedColumns(columns: Columns | undefined, cols: ColItem[], sortable?: boolean): Columns;
|
|
131
|
+
export declare function getCheckedColumns(columns: Columns | undefined, cols: ColItem[], sortable?: boolean, filter?: (item: Column) => boolean): Columns;
|
|
132
|
+
/**
|
|
133
|
+
* 获取列展示列表数据
|
|
134
|
+
* @param columns 列配置
|
|
135
|
+
* @param untitledText 未命名列文字
|
|
136
|
+
* @param filter 过滤列的方法
|
|
137
|
+
* @param sortFixed 是否对固定列排序
|
|
138
|
+
* @param cancelFixed 是否取消固定列
|
|
139
|
+
*/
|
|
140
|
+
export declare function getColItems(columns?: Columns, untitledText?: string, filter?: (item: Column) => boolean, sortFixed?: boolean, cancelFixed?: boolean): ColItem[];
|
|
131
141
|
/**
|
|
132
142
|
* 获取列配置
|
|
133
143
|
* @param columns 列数据
|
|
@@ -170,3 +180,45 @@ export declare function getRowKey(rowKey?: RowKey): string | ((row: DataItem) =>
|
|
|
170
180
|
* @param page 页码
|
|
171
181
|
*/
|
|
172
182
|
export declare function addDefaultRowKey(data: DataItem[], rowKey: string | undefined, page: number): DataItem[];
|
|
183
|
+
/**
|
|
184
|
+
* 导出获取单元格文本
|
|
185
|
+
* @param column 列配置
|
|
186
|
+
* @param row 行数据
|
|
187
|
+
* @param index 行索引
|
|
188
|
+
* @param pageIndex 序号列起始索引
|
|
189
|
+
*/
|
|
190
|
+
export declare function getCellText(column: Column | undefined, row: DataItem, index: number, pageIndex?: number): string;
|
|
191
|
+
/**
|
|
192
|
+
* 导出获取表头单元格文本
|
|
193
|
+
* @param column 列配置
|
|
194
|
+
* @param index 行索引
|
|
195
|
+
*/
|
|
196
|
+
export declare function getHeaderCellText(column: Column | undefined, index: number): string;
|
|
197
|
+
/**
|
|
198
|
+
* 获取导出的数据
|
|
199
|
+
* @param data 元数据
|
|
200
|
+
* @param columns 列配置
|
|
201
|
+
* @param spanMethod 单元格合并方法
|
|
202
|
+
* @param pageIndex 序号列起始索引
|
|
203
|
+
* @param showSummary 是否显示合计行
|
|
204
|
+
* @param sumText 合计行文本
|
|
205
|
+
* @param summaryMethod 合计行自定义方法
|
|
206
|
+
*/
|
|
207
|
+
export declare function getExportData(data: DataItem[], columns: Columns, spanMethod?: SpanMethod, pageIndex?: number, showSummary?: boolean, sumText?: string, summaryMethod?: SummaryMethod): ExportDataResult;
|
|
208
|
+
/**
|
|
209
|
+
* 导出csv文件
|
|
210
|
+
* @param fileName 文件名
|
|
211
|
+
* @param headerData 表头数据
|
|
212
|
+
* @param bodyData 主体数据
|
|
213
|
+
*/
|
|
214
|
+
export declare function exportCSV(fileName: string, headerData: ExportDataItem[][], bodyData: ExportDataItem[][], footerData: ExportDataItem[][]): void;
|
|
215
|
+
/**
|
|
216
|
+
* 导出判断列是否显示
|
|
217
|
+
* @param item 列配置
|
|
218
|
+
*/
|
|
219
|
+
export declare function columnsExportFilter(item: Column): boolean;
|
|
220
|
+
/**
|
|
221
|
+
* 打印判断列是否显示
|
|
222
|
+
* @param item 列配置
|
|
223
|
+
*/
|
|
224
|
+
export declare function columnsPrintFilter(item: Column): boolean;
|
package/es/ele-pro-table/util.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { omit, eachTree, findTree, uuid, mapTree } from "../utils/core";
|
|
2
|
+
import { getValue, getColFixedNumber } from "../ele-data-table/util";
|
|
3
|
+
import { getIndexValue, analyseColumns, getCellSpan, getUserSums, getSumValue } from "../ele-virtual-table/util";
|
|
3
4
|
function mergeProps(props, globalProps) {
|
|
4
5
|
if (props == null) {
|
|
5
6
|
return globalProps ?? true;
|
|
@@ -204,7 +205,10 @@ function sortData(datasource, sorter) {
|
|
|
204
205
|
return data;
|
|
205
206
|
}
|
|
206
207
|
function getColId(column) {
|
|
207
|
-
|
|
208
|
+
if (column.columnKey == null || column.columnKey === "") {
|
|
209
|
+
return column.prop;
|
|
210
|
+
}
|
|
211
|
+
return column.columnKey;
|
|
208
212
|
}
|
|
209
213
|
function getInitColumns(columns) {
|
|
210
214
|
const data = [];
|
|
@@ -230,7 +234,7 @@ function getInitCacheColumns(columns, cacheKey, sortable) {
|
|
|
230
234
|
}
|
|
231
235
|
return getCheckedColumns(columns, cache, sortable);
|
|
232
236
|
}
|
|
233
|
-
function getCheckedColumns(columns, cols, sortable) {
|
|
237
|
+
function getCheckedColumns(columns, cols, sortable, filter) {
|
|
234
238
|
const data = [];
|
|
235
239
|
if (!columns || !columns.length) {
|
|
236
240
|
return data;
|
|
@@ -240,26 +244,23 @@ function getCheckedColumns(columns, cols, sortable) {
|
|
|
240
244
|
if (colId == null) {
|
|
241
245
|
return;
|
|
242
246
|
}
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
return false;
|
|
248
|
-
}
|
|
249
|
-
});
|
|
247
|
+
if (filter && !filter(d)) {
|
|
248
|
+
return;
|
|
249
|
+
}
|
|
250
|
+
const temp = findTree(cols, (t) => t.uid === colId);
|
|
250
251
|
if (temp && !temp.checked) {
|
|
251
252
|
return;
|
|
252
253
|
}
|
|
253
254
|
const fixed = (temp == null ? void 0 : temp.fixed) ?? d.fixed;
|
|
254
255
|
const uid = uuid(8);
|
|
255
|
-
if (d.children) {
|
|
256
|
-
const children = getCheckedColumns(d.children, cols, sortable);
|
|
256
|
+
if (d.children && d.children.length) {
|
|
257
|
+
const children = getCheckedColumns(d.children, cols, sortable, filter);
|
|
257
258
|
if (children.length) {
|
|
258
259
|
data.push({ ...d, fixed, uid, children });
|
|
259
260
|
}
|
|
260
|
-
|
|
261
|
-
data.push({ ...d, fixed, uid });
|
|
261
|
+
return;
|
|
262
262
|
}
|
|
263
|
+
data.push({ ...d, fixed, uid });
|
|
263
264
|
});
|
|
264
265
|
if (!sortable || !data.length) {
|
|
265
266
|
return data;
|
|
@@ -305,6 +306,28 @@ function getCheckedColumns(columns, cols, sortable) {
|
|
|
305
306
|
});
|
|
306
307
|
return data;
|
|
307
308
|
}
|
|
309
|
+
function getColItems(columns, untitledText, filter, sortFixed, cancelFixed) {
|
|
310
|
+
const temp = columns == null ? [] : [...columns];
|
|
311
|
+
if (sortFixed) {
|
|
312
|
+
temp.sort((a, b) => {
|
|
313
|
+
return getColFixedNumber(a.fixed) - getColFixedNumber(b.fixed);
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
return mapTree(temp, (d, _i, parent) => {
|
|
317
|
+
const colId = getColId(d);
|
|
318
|
+
if (colId == null || filter && !filter(d)) {
|
|
319
|
+
return;
|
|
320
|
+
}
|
|
321
|
+
return {
|
|
322
|
+
uid: colId,
|
|
323
|
+
//prop: d.prop,
|
|
324
|
+
//columnKey: d.columnKey,
|
|
325
|
+
label: d.label || untitledText,
|
|
326
|
+
checked: !d.hideInTable,
|
|
327
|
+
fixed: cancelFixed ? false : parent == null ? d.fixed : false
|
|
328
|
+
};
|
|
329
|
+
});
|
|
330
|
+
}
|
|
308
331
|
function getSettingCols(columns, untitledText, cacheKey) {
|
|
309
332
|
const cacheResult = getCacheCols(cacheKey);
|
|
310
333
|
if (cacheResult) {
|
|
@@ -360,30 +383,131 @@ function getCacheSize(cacheKey) {
|
|
|
360
383
|
}
|
|
361
384
|
}
|
|
362
385
|
function getDefaultRowKey(rowKey) {
|
|
363
|
-
return rowKey
|
|
386
|
+
return rowKey == null ? "_rowKey" : void 0;
|
|
364
387
|
}
|
|
365
388
|
function getRowKey(rowKey) {
|
|
366
389
|
return rowKey ?? getDefaultRowKey();
|
|
367
390
|
}
|
|
368
391
|
function addDefaultRowKey(data, rowKey, page) {
|
|
369
|
-
if (rowKey
|
|
370
|
-
|
|
392
|
+
if (rowKey != null && typeof rowKey === "string" && rowKey) {
|
|
393
|
+
data.forEach((d, i) => {
|
|
394
|
+
if (d[rowKey] == null) {
|
|
395
|
+
d[rowKey] = `${page}-${i}`;
|
|
396
|
+
}
|
|
397
|
+
});
|
|
398
|
+
}
|
|
399
|
+
return data;
|
|
400
|
+
}
|
|
401
|
+
function getCellText(column, row, index, pageIndex) {
|
|
402
|
+
if (!column) {
|
|
403
|
+
return "";
|
|
371
404
|
}
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
405
|
+
if (column.type === "index") {
|
|
406
|
+
return getIndexValue(index, column.index, pageIndex);
|
|
407
|
+
}
|
|
408
|
+
const propValue = getValue(row, column.prop);
|
|
409
|
+
if (typeof column.formatter === "function") {
|
|
410
|
+
return column.formatter(row, column, propValue, index);
|
|
411
|
+
}
|
|
412
|
+
return propValue == null ? "" : String(propValue);
|
|
413
|
+
}
|
|
414
|
+
function getHeaderCellText(column, index) {
|
|
415
|
+
if (!column) {
|
|
416
|
+
return "";
|
|
417
|
+
}
|
|
418
|
+
if (typeof column.renderHeader === "function") {
|
|
419
|
+
return column.renderHeader({ column, $index: index });
|
|
420
|
+
}
|
|
421
|
+
return column.label == null ? "" : String(column.label);
|
|
422
|
+
}
|
|
423
|
+
function getExportData(data, columns, spanMethod, pageIndex, showSummary, sumText, summaryMethod) {
|
|
424
|
+
const { rows: headerRows, cols: bodyCols } = analyseColumns(columns);
|
|
425
|
+
const bodyData = [];
|
|
426
|
+
data.forEach((row, index) => {
|
|
427
|
+
const bodyRowData = [];
|
|
428
|
+
bodyCols.forEach((col, columnIndex) => {
|
|
429
|
+
const { key, originalCol: column } = col;
|
|
430
|
+
const { colspan, rowspan } = getCellSpan(
|
|
431
|
+
{ column, columnIndex, row, rowIndex: index },
|
|
432
|
+
spanMethod
|
|
433
|
+
);
|
|
434
|
+
const isNone = colspan == 0 || rowspan == 0;
|
|
435
|
+
const text = isNone ? "" : getCellText(column, row, index, pageIndex);
|
|
436
|
+
bodyRowData.push({ key, row, index, column, text, colspan, rowspan });
|
|
437
|
+
});
|
|
438
|
+
bodyData.push(bodyRowData);
|
|
376
439
|
});
|
|
440
|
+
const headerData = [];
|
|
441
|
+
headerRows.forEach((headerCols, index) => {
|
|
442
|
+
const headerRowData = [];
|
|
443
|
+
headerCols.forEach((col) => {
|
|
444
|
+
const { key, colspan, rowspan, originalCol: column } = col;
|
|
445
|
+
const isNone = colspan == 0 || rowspan == 0;
|
|
446
|
+
const text = isNone ? "" : getHeaderCellText(column, index);
|
|
447
|
+
headerRowData.push({ key, index, column, text, colspan, rowspan });
|
|
448
|
+
});
|
|
449
|
+
headerData.push(headerRowData);
|
|
450
|
+
});
|
|
451
|
+
const footerData = [];
|
|
452
|
+
if (showSummary && data.length) {
|
|
453
|
+
const footerRowData = [];
|
|
454
|
+
const userSums = getUserSums(summaryMethod, bodyCols, data);
|
|
455
|
+
bodyCols.forEach((col, i) => {
|
|
456
|
+
const { key, dataKey, originalCol: column } = col;
|
|
457
|
+
const sumValue = getSumValue(data, dataKey);
|
|
458
|
+
footerRowData.push({
|
|
459
|
+
key,
|
|
460
|
+
column,
|
|
461
|
+
text: userSums == null ? i === 0 ? sumText : sumValue : userSums[i],
|
|
462
|
+
index: 0
|
|
463
|
+
});
|
|
464
|
+
});
|
|
465
|
+
footerData.push(footerRowData);
|
|
466
|
+
}
|
|
467
|
+
return { headerData, bodyData, footerData, bodyCols };
|
|
468
|
+
}
|
|
469
|
+
function exportCSV(fileName, headerData, bodyData, footerData) {
|
|
470
|
+
const csvRows = [];
|
|
471
|
+
[...headerData, ...bodyData, ...footerData].forEach((item) => {
|
|
472
|
+
csvRows.push(item.map((d) => d.text ?? "").join(","));
|
|
473
|
+
});
|
|
474
|
+
const content = encodeURIComponent(csvRows.join("\n"));
|
|
475
|
+
const a = document.createElement("a");
|
|
476
|
+
a.href = "data:text/csv;charset=utf-8," + content;
|
|
477
|
+
a.download = fileName + ".csv";
|
|
478
|
+
a.style.display = "none";
|
|
479
|
+
document.body.appendChild(a);
|
|
480
|
+
a.click();
|
|
481
|
+
document.body.removeChild(a);
|
|
482
|
+
}
|
|
483
|
+
function columnsExportFilter(item) {
|
|
484
|
+
if (item.hideInExport) {
|
|
485
|
+
return false;
|
|
486
|
+
}
|
|
487
|
+
return !item.type || !["selection", "expand"].includes(item.type);
|
|
488
|
+
}
|
|
489
|
+
function columnsPrintFilter(item) {
|
|
490
|
+
if (item.hideInPrint) {
|
|
491
|
+
return false;
|
|
492
|
+
}
|
|
493
|
+
return !item.type || !["selection", "expand"].includes(item.type);
|
|
377
494
|
}
|
|
378
495
|
export {
|
|
379
496
|
addDefaultRowKey,
|
|
497
|
+
columnsExportFilter,
|
|
498
|
+
columnsPrintFilter,
|
|
499
|
+
exportCSV,
|
|
380
500
|
getCacheCols,
|
|
381
501
|
getCacheSize,
|
|
502
|
+
getCellText,
|
|
382
503
|
getCheckedColumns,
|
|
383
504
|
getColId,
|
|
505
|
+
getColItems,
|
|
384
506
|
getColsCacheKey,
|
|
385
507
|
getDefaultFilter,
|
|
386
508
|
getDefaultRowKey,
|
|
509
|
+
getExportData,
|
|
510
|
+
getHeaderCellText,
|
|
387
511
|
getInitCacheColumns,
|
|
388
512
|
getInitColumns,
|
|
389
513
|
getOrderItems,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { StyleValues } from '../ele-app/types';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<{
|
|
3
4
|
value: StringConstructor;
|
|
4
5
|
size: {
|
|
5
6
|
type: NumberConstructor;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { Level, ImageSettings } from './types';
|
|
2
|
+
import { PropType, ExtractPropTypes } from 'vue';
|
|
3
|
+
|
|
3
4
|
/**
|
|
4
5
|
* 属性
|
|
5
6
|
*/
|
|
@@ -34,7 +35,7 @@ export declare const qrCodeProps: {
|
|
|
34
35
|
/** 自定义图片 */
|
|
35
36
|
imageSettings: PropType<ImageSettings>;
|
|
36
37
|
/** 自定义样式 */
|
|
37
|
-
customStyle: PropType<Partial<import(
|
|
38
|
+
customStyle: PropType<Partial<import('vue').CSSProperties>>;
|
|
38
39
|
};
|
|
39
40
|
export type QrCodeProps = ExtractPropTypes<typeof qrCodeProps>;
|
|
40
41
|
/**
|
package/es/ele-qr-code/util.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { ImageSettings, Modules, Excavation } from './types';
|
|
2
|
+
import { default as qrcodegen } from './qrcodegen';
|
|
3
|
+
|
|
3
4
|
export declare const ERROR_LEVEL_MAP: {
|
|
4
5
|
L: qrcodegen.QrCode.Ecc;
|
|
5
6
|
M: qrcodegen.QrCode.Ecc;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { ElTabsInstance } from '../ele-app/el';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<{
|
|
3
4
|
modelValue: (StringConstructor | NumberConstructor)[];
|
|
4
5
|
block: BooleanConstructor;
|
|
5
6
|
disabled: BooleanConstructor;
|
|
@@ -24,8 +25,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
24
25
|
};
|
|
25
26
|
size: import("vue").PropType<import("./types").SegmentedSize>;
|
|
26
27
|
}>> & {
|
|
27
|
-
"onUpdate:modelValue"?: ((_value: string | number) => any) | undefined;
|
|
28
28
|
onChange?: ((_active: string | number) => any) | undefined;
|
|
29
|
+
"onUpdate:modelValue"?: ((_value: string | number) => any) | undefined;
|
|
29
30
|
}, {
|
|
30
31
|
disabled: boolean;
|
|
31
32
|
block: boolean;
|