ele-admin-plus 1.0.0-beta.1 → 1.0.0-beta.3
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/components.d.ts +3 -0
- package/es/components.js +92 -86
- package/es/ele-alert/index.d.ts +62 -0
- package/es/ele-alert/index.js +129 -0
- package/es/ele-alert/props.d.ts +36 -0
- package/es/ele-alert/props.js +48 -0
- package/es/ele-alert/style/css-var.scss +11 -0
- package/es/ele-alert/style/index.js +1 -0
- package/es/ele-alert/style/index.scss +148 -0
- package/es/ele-app/index.d.ts +1 -0
- package/es/ele-app/style/common.scss +124 -30
- package/es/ele-app/style/css-var.scss +2 -2
- package/es/ele-app/types/index.d.ts +27 -0
- package/es/ele-avatar-group/index.d.ts +3 -0
- package/es/ele-avatar-group/index.js +10 -9
- package/es/ele-avatar-group/props.d.ts +1 -0
- package/es/ele-avatar-group/props.js +3 -1
- package/es/ele-avatar-group/style/index.scss +32 -0
- package/es/ele-basic-select/index.d.ts +2 -19171
- package/es/ele-basic-select/index.js +2 -2
- package/es/ele-bottom-bar/style/index.scss +1 -1
- package/es/ele-breadcrumb/index.d.ts +2 -165
- package/es/ele-card/style/index.scss +28 -26
- package/es/ele-config-provider/index.d.ts +3 -7
- package/es/ele-config-provider/index.js +1 -8
- package/es/ele-config-provider/props.d.ts +9 -2
- package/es/ele-config-provider/props.js +5 -3
- package/{lib/ele-config-provider/use-receiver.d.ts → es/ele-config-provider/receiver.d.ts} +8 -2
- package/es/ele-config-provider/receiver.js +198 -0
- package/es/ele-config-provider/types/index.d.ts +24 -13
- package/es/ele-cropper/components/cropper-tools.js +1 -1
- package/es/ele-cropper/index.d.ts +12 -9
- package/es/ele-cropper/index.js +29 -30
- package/es/ele-cropper/props.d.ts +3 -4
- package/es/ele-cropper/style/index.js +1 -1
- package/es/ele-cropper/types/index.d.ts +10 -2
- package/es/ele-cropper-modal/index.d.ts +6 -6
- package/es/ele-cropper-modal/index.js +1 -1
- package/es/ele-cropper-modal/props.d.ts +2 -2
- package/es/ele-dashboard/index.js +1 -1
- package/es/ele-drawer/index.d.ts +2 -355
- package/es/ele-drawer/index.js +1 -1
- package/es/ele-edit-tag/index.d.ts +2 -804
- package/es/ele-edit-tag/index.js +1 -2
- package/es/ele-ellipsis/index.d.ts +6 -3
- package/es/ele-ellipsis/index.js +16 -23
- package/es/ele-ellipsis/props.d.ts +1 -0
- package/es/ele-file-list/components/file-grid-item.d.ts +5 -24370
- package/es/ele-file-list/components/file-grid-item.js +8 -1
- package/es/ele-file-list/components/file-grid.d.ts +4 -2
- package/es/ele-file-list/components/file-table-item.d.ts +5 -24370
- package/es/ele-file-list/components/file-table-item.js +8 -1
- package/es/ele-file-list/components/file-table.d.ts +4 -2
- package/es/ele-file-list/index.d.ts +2 -1561
- package/es/ele-file-list/index.js +25 -15
- package/es/ele-file-list/style/index.scss +0 -1
- package/es/ele-icon-select/components/icon-grid.d.ts +5 -1
- package/es/ele-icon-select/components/icon-grid.js +24 -14
- package/es/ele-icon-select/components/icon-popper.d.ts +15 -1
- package/es/ele-icon-select/components/icon-popper.js +52 -41
- package/es/ele-icon-select/index.d.ts +14 -0
- package/es/ele-icon-select/index.js +9 -2
- package/es/ele-icon-select/props.d.ts +8 -1
- package/es/ele-icon-select/props.js +14 -0
- package/es/ele-icon-select/style/index.scss +142 -140
- package/es/ele-map-picker/components/map-view.js +4 -5
- package/es/ele-map-picker/index.d.ts +6 -1
- package/es/ele-map-picker/index.js +11 -23
- package/es/ele-map-picker/props.d.ts +10 -4
- package/es/ele-map-picker/props.js +9 -7
- package/es/ele-map-picker/style/index.scss +1 -0
- package/es/ele-menus/index.d.ts +2 -156
- package/es/ele-menus/index.js +3 -12
- package/es/ele-menus/props.d.ts +6 -0
- package/es/ele-menus/props.js +2 -0
- package/es/ele-menus/style/index.scss +12 -5
- package/es/ele-modal/index.d.ts +7 -903
- package/es/ele-modal/index.js +38 -49
- package/es/ele-modal/props.d.ts +10 -0
- package/es/ele-modal/props.js +4 -0
- package/es/ele-modal/style/index.scss +1 -1
- package/es/ele-modal/util.d.ts +3 -3
- package/es/ele-modal/util.js +8 -7
- package/es/ele-page/index.d.ts +8 -2
- package/es/ele-page/props.d.ts +4 -1
- package/es/ele-page/props.js +4 -1
- package/es/ele-pagination/index.d.ts +6 -6
- package/es/ele-pagination/props.d.ts +3 -3
- package/es/ele-printer/index.d.ts +37 -0
- package/es/ele-printer/index.js +119 -0
- package/es/ele-printer/props.d.ts +25 -0
- package/es/ele-printer/props.js +32 -0
- package/es/ele-printer/style/index.js +1 -0
- package/es/ele-printer/style/index.scss +56 -0
- package/es/ele-printer/types/index.d.ts +40 -0
- package/es/ele-printer/util.d.ts +39 -0
- package/es/ele-printer/util.js +174 -0
- package/es/ele-pro-layout/components/pro-iframe.d.ts +29 -0
- package/es/ele-pro-layout/components/pro-iframe.js +116 -0
- package/es/ele-pro-layout/components/pro-sidebar.d.ts +3 -9
- package/es/ele-pro-layout/components/pro-sidebar.js +19 -9
- package/es/ele-pro-layout/components/pro-sidebox.d.ts +2 -1
- package/es/ele-pro-layout/components/pro-sidebox.js +19 -5
- package/es/ele-pro-layout/components/{pro-tab-bar.d.ts → pro-tabs.d.ts} +3 -2
- package/es/ele-pro-layout/components/{pro-tab-bar.js → pro-tabs.js} +4 -3
- package/es/ele-pro-layout/index.js +66 -103
- package/es/ele-pro-layout/props.d.ts +6 -4
- package/es/ele-pro-layout/props.js +9 -8
- package/es/ele-pro-layout/style/collapse.scss +60 -42
- package/es/ele-pro-layout/style/css-var.scss +3 -1
- package/es/ele-pro-layout/style/header.scss +8 -3
- package/es/ele-pro-layout/style/layout-mobile.scss +1 -1
- package/es/ele-pro-layout/style/layout-style.scss +9 -4
- package/es/ele-pro-layout/style/layout.scss +14 -1
- package/es/ele-pro-layout/style/sidebar.scss +21 -6
- package/es/ele-pro-layout/style/tabs.scss +3 -26
- package/es/ele-pro-layout/types/index.d.ts +23 -18
- package/es/ele-pro-layout/util.d.ts +8 -12
- package/es/ele-pro-layout/util.js +74 -22
- package/es/ele-pro-table/components/table-tools.d.ts +2 -2
- package/es/ele-pro-table/components/table-tools.js +1 -1
- package/es/ele-pro-table/components/table-view.d.ts +51 -618
- package/es/ele-pro-table/components/table-view.js +11 -24
- package/es/ele-pro-table/index.d.ts +81 -1674
- package/es/ele-pro-table/index.js +90 -129
- package/es/ele-pro-table/props.d.ts +133 -25
- package/es/ele-pro-table/props.js +36 -30
- package/es/ele-pro-table/style/index.scss +96 -57
- package/es/ele-pro-table/types/index.d.ts +24 -4
- package/es/ele-pro-table/util.d.ts +27 -10
- package/es/ele-pro-table/util.js +49 -13
- package/es/ele-segmented/index.d.ts +33 -0
- package/es/ele-segmented/index.js +77 -0
- package/es/ele-segmented/props.d.ts +23 -0
- package/es/ele-segmented/props.js +25 -0
- package/es/ele-segmented/style/css-var.scss +15 -0
- package/es/ele-segmented/style/index.js +4 -0
- package/es/ele-segmented/style/index.scss +102 -0
- package/es/ele-segmented/types/index.d.ts +25 -0
- package/es/ele-split-panel/index.d.ts +7 -8
- package/es/ele-split-panel/index.js +8 -13
- package/es/ele-split-panel/style/index.scss +26 -25
- package/es/ele-steps/index.d.ts +13 -1
- package/es/ele-steps/index.js +14 -14
- package/es/ele-steps/style/index.scss +24 -9
- package/es/ele-table/style/index.scss +1 -0
- package/es/ele-table-select/index.js +1 -1
- package/es/ele-table-select/types/index.d.ts +7 -0
- package/es/ele-tabs/components/tab-title.d.ts +5 -4
- package/es/ele-tabs/index.d.ts +17 -269
- package/es/ele-tabs/index.js +19 -26
- package/es/ele-tabs/props.d.ts +10 -2
- package/es/ele-tabs/props.js +4 -0
- package/es/ele-tabs/style/css-var.scss +7 -7
- package/es/ele-tabs/style/index.scss +4 -3
- package/es/ele-tabs/types/index.d.ts +1 -5
- package/es/ele-text/index.d.ts +2 -0
- package/es/ele-text/index.js +6 -4
- package/es/ele-text/props.d.ts +7 -1
- package/es/ele-text/props.js +5 -1
- package/es/ele-toolbar/index.d.ts +15 -2
- package/es/ele-toolbar/index.js +18 -18
- package/es/ele-toolbar/props.d.ts +8 -2
- package/es/ele-toolbar/props.js +10 -1
- package/es/ele-toolbar/style/index.scss +2 -17
- package/es/ele-tour/index.d.ts +10 -20739
- package/es/ele-tour/index.js +8 -9
- package/es/ele-tour/style/index.scss +4 -4
- package/es/ele-tour/util.js +1 -0
- package/es/ele-upload-list/components/list-item.d.ts +9 -6
- package/es/ele-upload-list/components/list-item.js +21 -24
- package/es/ele-upload-list/index.d.ts +14 -733
- package/es/ele-upload-list/index.js +15 -15
- package/es/ele-upload-list/props.d.ts +5 -0
- package/es/ele-upload-list/props.js +8 -1
- package/es/ele-upload-list/style/index.scss +15 -5
- package/es/ele-upload-list/types/index.d.ts +1 -1
- package/es/ele-watermark/index.js +1 -1
- package/es/ele-watermark/util.js +8 -10
- package/es/ele-xg-player/index.d.ts +1 -1
- package/es/ele-xg-player/index.js +22 -16
- package/es/icons/ArrowDown.js +1 -1
- package/es/icons/ArrowLeft.d.ts +2 -0
- package/es/icons/ArrowLeft.js +30 -0
- package/es/icons/ArrowUp.d.ts +2 -0
- package/es/icons/ArrowUp.js +31 -0
- package/es/icons/index.d.ts +2 -0
- package/es/icons/index.js +24 -20
- package/es/index.d.ts +0 -2
- package/es/index.js +0 -2
- package/es/lang/en_US.js +2 -2
- package/es/lang/zh_CN.js +1 -1
- package/es/lang/zh_TW.js +1 -1
- package/es/style/index.scss +3 -0
- package/es/style/themes/dark-css-var.scss +7 -3
- package/es/style/themes/dark.scss +1 -1
- package/es/style/themes/default.scss +75 -12
- package/es/utils/core.d.ts +13 -33
- package/es/utils/core.js +19 -39
- package/es/utils/menu-util.js +24 -2
- package/es/utils/message.js +1 -1
- package/es/utils/theme-util.d.ts +1 -1
- package/es/utils/theme-util.js +11 -37
- package/lib/components.d.ts +3 -0
- package/lib/components.js +92 -86
- package/lib/ele-alert/index.d.ts +62 -0
- package/lib/ele-alert/index.js +128 -0
- package/lib/ele-alert/props.d.ts +36 -0
- package/lib/ele-alert/props.js +48 -0
- package/lib/ele-alert/style/css-var.scss +11 -0
- package/lib/ele-alert/style/index.js +2 -0
- package/lib/ele-alert/style/index.scss +148 -0
- package/lib/ele-app/index.d.ts +1 -0
- package/lib/ele-app/style/common.scss +124 -30
- package/lib/ele-app/style/css-var.scss +2 -2
- package/lib/ele-app/types/index.d.ts +27 -0
- package/lib/ele-avatar-group/index.d.ts +3 -0
- package/lib/ele-avatar-group/index.js +10 -9
- package/lib/ele-avatar-group/props.d.ts +1 -0
- package/lib/ele-avatar-group/props.js +3 -1
- package/lib/ele-avatar-group/style/index.scss +32 -0
- package/lib/ele-basic-select/index.d.ts +2 -19171
- package/lib/ele-basic-select/index.js +3 -3
- package/lib/ele-bottom-bar/style/index.scss +1 -1
- package/lib/ele-breadcrumb/index.d.ts +2 -165
- package/lib/ele-card/style/index.scss +28 -26
- package/lib/ele-config-provider/index.d.ts +3 -7
- package/lib/ele-config-provider/index.js +11 -18
- package/lib/ele-config-provider/props.d.ts +9 -2
- package/lib/ele-config-provider/props.js +5 -3
- package/{es/ele-config-provider/use-receiver.d.ts → lib/ele-config-provider/receiver.d.ts} +8 -2
- package/lib/ele-config-provider/receiver.js +200 -0
- package/lib/ele-config-provider/types/index.d.ts +24 -13
- package/lib/ele-cropper/components/cropper-tools.js +2 -2
- package/lib/ele-cropper/index.d.ts +12 -9
- package/lib/ele-cropper/index.js +31 -32
- package/lib/ele-cropper/props.d.ts +3 -4
- package/lib/ele-cropper/style/index.js +1 -1
- package/lib/ele-cropper/types/index.d.ts +10 -2
- package/lib/ele-cropper-modal/index.d.ts +6 -6
- package/lib/ele-cropper-modal/index.js +2 -2
- package/lib/ele-cropper-modal/props.d.ts +2 -2
- package/lib/ele-dashboard/index.js +2 -2
- package/lib/ele-drawer/index.d.ts +2 -355
- package/lib/ele-drawer/index.js +1 -1
- package/lib/ele-edit-tag/index.d.ts +2 -804
- package/lib/ele-edit-tag/index.js +2 -3
- package/lib/ele-ellipsis/index.d.ts +6 -3
- package/lib/ele-ellipsis/index.js +15 -22
- package/lib/ele-ellipsis/props.d.ts +1 -0
- package/lib/ele-file-list/components/file-grid-item.d.ts +5 -24370
- package/lib/ele-file-list/components/file-grid-item.js +8 -1
- package/lib/ele-file-list/components/file-grid.d.ts +4 -2
- package/lib/ele-file-list/components/file-table-item.d.ts +5 -24370
- package/lib/ele-file-list/components/file-table-item.js +8 -1
- package/lib/ele-file-list/components/file-table.d.ts +4 -2
- package/lib/ele-file-list/index.d.ts +2 -1561
- package/lib/ele-file-list/index.js +27 -17
- package/lib/ele-file-list/style/index.scss +0 -1
- package/lib/ele-icon-select/components/icon-grid.d.ts +5 -1
- package/lib/ele-icon-select/components/icon-grid.js +23 -13
- package/lib/ele-icon-select/components/icon-popper.d.ts +15 -1
- package/lib/ele-icon-select/components/icon-popper.js +51 -40
- package/lib/ele-icon-select/index.d.ts +14 -0
- package/lib/ele-icon-select/index.js +10 -3
- package/lib/ele-icon-select/props.d.ts +8 -1
- package/lib/ele-icon-select/props.js +14 -0
- package/lib/ele-icon-select/style/index.scss +142 -140
- package/lib/ele-map-picker/components/map-view.js +4 -5
- package/lib/ele-map-picker/index.d.ts +6 -1
- package/lib/ele-map-picker/index.js +14 -26
- package/lib/ele-map-picker/props.d.ts +10 -4
- package/lib/ele-map-picker/props.js +9 -7
- package/lib/ele-map-picker/style/index.scss +1 -0
- package/lib/ele-menus/index.d.ts +2 -156
- package/lib/ele-menus/index.js +11 -20
- package/lib/ele-menus/props.d.ts +6 -0
- package/lib/ele-menus/props.js +2 -0
- package/lib/ele-menus/style/index.scss +12 -5
- package/lib/ele-modal/index.d.ts +7 -903
- package/lib/ele-modal/index.js +63 -74
- package/lib/ele-modal/props.d.ts +10 -0
- package/lib/ele-modal/props.js +4 -0
- package/lib/ele-modal/style/index.scss +1 -1
- package/lib/ele-modal/util.d.ts +3 -3
- package/lib/ele-modal/util.js +8 -7
- package/lib/ele-page/index.d.ts +8 -2
- package/lib/ele-page/props.d.ts +4 -1
- package/lib/ele-page/props.js +4 -1
- package/lib/ele-pagination/index.d.ts +6 -6
- package/lib/ele-pagination/props.d.ts +3 -3
- package/lib/ele-printer/index.d.ts +37 -0
- package/lib/ele-printer/index.js +118 -0
- package/lib/ele-printer/props.d.ts +25 -0
- package/lib/ele-printer/props.js +32 -0
- package/lib/ele-printer/style/index.js +2 -0
- package/lib/ele-printer/style/index.scss +56 -0
- package/lib/ele-printer/types/index.d.ts +40 -0
- package/lib/ele-printer/util.d.ts +39 -0
- package/lib/ele-printer/util.js +174 -0
- package/lib/ele-pro-layout/components/pro-iframe.d.ts +29 -0
- package/lib/ele-pro-layout/components/pro-iframe.js +115 -0
- package/lib/ele-pro-layout/components/pro-sidebar.d.ts +3 -9
- package/lib/ele-pro-layout/components/pro-sidebar.js +17 -7
- package/lib/ele-pro-layout/components/pro-sidebox.d.ts +2 -1
- package/lib/ele-pro-layout/components/pro-sidebox.js +17 -3
- package/lib/ele-pro-layout/components/{pro-tab-bar.d.ts → pro-tabs.d.ts} +3 -2
- package/lib/ele-pro-layout/components/{pro-tab-bar.js → pro-tabs.js} +4 -3
- package/lib/ele-pro-layout/index.js +65 -102
- package/lib/ele-pro-layout/props.d.ts +6 -4
- package/lib/ele-pro-layout/props.js +9 -8
- package/lib/ele-pro-layout/style/collapse.scss +60 -42
- package/lib/ele-pro-layout/style/css-var.scss +3 -1
- package/lib/ele-pro-layout/style/header.scss +8 -3
- package/lib/ele-pro-layout/style/layout-mobile.scss +1 -1
- package/lib/ele-pro-layout/style/layout-style.scss +9 -4
- package/lib/ele-pro-layout/style/layout.scss +14 -1
- package/lib/ele-pro-layout/style/sidebar.scss +21 -6
- package/lib/ele-pro-layout/style/tabs.scss +3 -26
- package/lib/ele-pro-layout/types/index.d.ts +23 -18
- package/lib/ele-pro-layout/util.d.ts +8 -12
- package/lib/ele-pro-layout/util.js +72 -20
- package/lib/ele-pro-table/components/table-tools.d.ts +2 -2
- package/lib/ele-pro-table/components/table-tools.js +2 -2
- package/lib/ele-pro-table/components/table-view.d.ts +51 -618
- package/lib/ele-pro-table/components/table-view.js +11 -24
- package/lib/ele-pro-table/index.d.ts +81 -1674
- package/lib/ele-pro-table/index.js +125 -164
- package/lib/ele-pro-table/props.d.ts +133 -25
- package/lib/ele-pro-table/props.js +35 -29
- package/lib/ele-pro-table/style/index.scss +96 -57
- package/lib/ele-pro-table/types/index.d.ts +24 -4
- package/lib/ele-pro-table/util.d.ts +27 -10
- package/lib/ele-pro-table/util.js +48 -12
- package/lib/ele-segmented/index.d.ts +33 -0
- package/lib/ele-segmented/index.js +76 -0
- package/lib/ele-segmented/props.d.ts +23 -0
- package/lib/ele-segmented/props.js +25 -0
- package/lib/ele-segmented/style/css-var.scss +15 -0
- package/lib/ele-segmented/style/index.js +5 -0
- package/lib/ele-segmented/style/index.scss +102 -0
- package/lib/ele-segmented/types/index.d.ts +25 -0
- package/lib/ele-split-panel/index.d.ts +7 -8
- package/lib/ele-split-panel/index.js +10 -15
- package/lib/ele-split-panel/style/index.scss +26 -25
- package/lib/ele-steps/index.d.ts +13 -1
- package/lib/ele-steps/index.js +13 -13
- package/lib/ele-steps/style/index.scss +24 -9
- package/lib/ele-table/style/index.scss +1 -0
- package/lib/ele-table-select/index.js +2 -2
- package/lib/ele-table-select/types/index.d.ts +7 -0
- package/lib/ele-tabs/components/tab-title.d.ts +5 -4
- package/lib/ele-tabs/index.d.ts +17 -269
- package/lib/ele-tabs/index.js +21 -28
- package/lib/ele-tabs/props.d.ts +10 -2
- package/lib/ele-tabs/props.js +4 -0
- package/lib/ele-tabs/style/css-var.scss +7 -7
- package/lib/ele-tabs/style/index.scss +4 -3
- package/lib/ele-tabs/types/index.d.ts +1 -5
- package/lib/ele-text/index.d.ts +2 -0
- package/lib/ele-text/index.js +6 -4
- package/lib/ele-text/props.d.ts +7 -1
- package/lib/ele-text/props.js +5 -1
- package/lib/ele-toolbar/index.d.ts +15 -2
- package/lib/ele-toolbar/index.js +17 -17
- package/lib/ele-toolbar/props.d.ts +8 -2
- package/lib/ele-toolbar/props.js +10 -1
- package/lib/ele-toolbar/style/index.scss +2 -17
- package/lib/ele-tour/index.d.ts +10 -20739
- package/lib/ele-tour/index.js +9 -10
- package/lib/ele-tour/style/index.scss +4 -4
- package/lib/ele-tour/util.js +1 -0
- package/lib/ele-upload-list/components/list-item.d.ts +9 -6
- package/lib/ele-upload-list/components/list-item.js +20 -23
- package/lib/ele-upload-list/index.d.ts +14 -733
- package/lib/ele-upload-list/index.js +16 -16
- package/lib/ele-upload-list/props.d.ts +5 -0
- package/lib/ele-upload-list/props.js +8 -1
- package/lib/ele-upload-list/style/index.scss +15 -5
- package/lib/ele-upload-list/types/index.d.ts +1 -1
- package/lib/ele-watermark/index.js +2 -2
- package/lib/ele-watermark/util.js +8 -10
- package/lib/ele-xg-player/index.d.ts +1 -1
- package/lib/ele-xg-player/index.js +21 -15
- package/lib/icons/ArrowDown.js +1 -1
- package/lib/icons/ArrowLeft.d.ts +2 -0
- package/lib/icons/ArrowLeft.js +29 -0
- package/lib/icons/ArrowUp.d.ts +2 -0
- package/lib/icons/ArrowUp.js +30 -0
- package/lib/icons/index.d.ts +2 -0
- package/lib/icons/index.js +4 -0
- package/lib/index.d.ts +0 -2
- package/lib/index.js +0 -16
- package/lib/lang/en_US.js +2 -2
- package/lib/lang/zh_CN.js +1 -1
- package/lib/lang/zh_TW.js +1 -1
- package/lib/style/index.scss +3 -0
- package/lib/style/themes/dark-css-var.scss +7 -3
- package/lib/style/themes/dark.scss +1 -1
- package/lib/style/themes/default.scss +75 -12
- package/lib/utils/core.d.ts +13 -33
- package/lib/utils/core.js +19 -39
- package/lib/utils/menu-util.js +24 -2
- package/lib/utils/message.js +1 -1
- package/lib/utils/theme-util.d.ts +1 -1
- package/lib/utils/theme-util.js +18 -44
- package/package.json +19 -18
- package/typings/global.d.ts +3 -1
- package/es/ele-config-provider/keys.d.ts +0 -8
- package/es/ele-config-provider/keys.js +0 -6
- package/es/ele-config-provider/use-receiver.js +0 -38
- package/es/utils/iframe-component.d.ts +0 -8
- package/es/utils/iframe-component.js +0 -70
- package/es/utils/license-util.d.ts +0 -9
- package/es/utils/license-util.js +0 -176
- package/es/utils/printer.d.ts +0 -100
- package/es/utils/printer.js +0 -612
- package/lib/ele-config-provider/keys.d.ts +0 -8
- package/lib/ele-config-provider/keys.js +0 -6
- package/lib/ele-config-provider/use-receiver.js +0 -38
- package/lib/utils/iframe-component.d.ts +0 -8
- package/lib/utils/iframe-component.js +0 -70
- package/lib/utils/license-util.d.ts +0 -9
- package/lib/utils/license-util.js +0 -176
- package/lib/utils/printer.d.ts +0 -100
- package/lib/utils/printer.js +0 -612
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, watch, onMounted, nextTick, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createBlock, withCtx, renderSlot,
|
|
1
|
+
import { defineComponent, ref, computed, watch, onMounted, nextTick, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createBlock, normalizeProps, mergeProps, withCtx, renderSlot, createCommentVNode, createSlots, createVNode, renderList, guardReactiveProps } from "vue";
|
|
2
2
|
import { ElEmpty } from "element-plus";
|
|
3
|
-
import {
|
|
4
|
-
import { useGlobalProps } from "../ele-config-provider/
|
|
5
|
-
import { omit, eachTree } from "../utils/core";
|
|
3
|
+
import { pick, eachTree } from "../utils/core";
|
|
4
|
+
import { useLicense, useGlobalProps } from "../ele-config-provider/receiver";
|
|
6
5
|
import ElePagination from "../ele-pagination/index";
|
|
7
6
|
import EleToolbar from "../ele-toolbar/index";
|
|
8
7
|
import TableTools from "./components/table-tools";
|
|
9
8
|
import TableView from "./components/table-view";
|
|
10
|
-
import { useTableMethods, useTableEvents,
|
|
11
|
-
import { proTableProps, proTableEmits } from "./props";
|
|
9
|
+
import { useTableMethods, useTableEvents, getTablePage, getTableLimit, getTableSize, getPaginationProps, getInitCacheColumns, getRequestFilters, reloadData, getResponseName, getRequestName, getOrderItems, getValue, isDisableRow, selectionIsChange, sortData } from "./util";
|
|
10
|
+
import { proTableProps, proTableEmits, tablePropKeys } from "./props";
|
|
12
11
|
const _sfc_main = defineComponent({
|
|
13
12
|
name: "EleProTable",
|
|
14
13
|
components: { ElEmpty, ElePagination, EleToolbar, TableTools, TableView },
|
|
@@ -25,13 +24,17 @@ const _sfc_main = defineComponent({
|
|
|
25
24
|
const current = { sorter: null, filter: null, where: {} };
|
|
26
25
|
const tableViewRef = ref(null);
|
|
27
26
|
const tableData = ref([]);
|
|
28
|
-
const tablePage = ref(
|
|
29
|
-
|
|
27
|
+
const tablePage = ref(
|
|
28
|
+
getTablePage(props.pagination, globalProps.value.pagination)
|
|
29
|
+
);
|
|
30
|
+
const tableLimit = ref(
|
|
31
|
+
getTableLimit(props.pagination, globalProps.value.pagination)
|
|
32
|
+
);
|
|
30
33
|
const tableTotal = ref(0);
|
|
31
34
|
const tableLoading = ref(props.loading);
|
|
32
35
|
const tableCols = ref([]);
|
|
33
36
|
const tableSize = ref(
|
|
34
|
-
|
|
37
|
+
getTableSize(props.cacheKey, props.size, globalProps.value.size)
|
|
35
38
|
);
|
|
36
39
|
const tableMaximized = ref(false);
|
|
37
40
|
const errorText = ref("");
|
|
@@ -41,33 +44,48 @@ const _sfc_main = defineComponent({
|
|
|
41
44
|
return ((tablePage.value ?? 1) - 1) * (tableLimit.value ?? 0) + 1;
|
|
42
45
|
});
|
|
43
46
|
const paginationProps = computed(() => {
|
|
44
|
-
|
|
47
|
+
return getPaginationProps(
|
|
48
|
+
tableSize.value,
|
|
49
|
+
props.pagination,
|
|
50
|
+
globalProps.value.pagination,
|
|
51
|
+
{
|
|
52
|
+
total: tableTotal.value,
|
|
53
|
+
pageSize: tableLimit.value,
|
|
54
|
+
currentPage: tablePage.value
|
|
55
|
+
}
|
|
56
|
+
);
|
|
57
|
+
});
|
|
58
|
+
const tableProps = computed(() => {
|
|
59
|
+
const isMaximized = tableMaximized.value && props.maximizedHeight;
|
|
60
|
+
const opt = {
|
|
61
|
+
data: tableData.value,
|
|
62
|
+
height: isMaximized ? props.maximizedHeight : props.height,
|
|
63
|
+
stripe: props.stripe ?? globalProps.value.stripe ?? false,
|
|
64
|
+
border: props.border ?? globalProps.value.border ?? false,
|
|
65
|
+
size: tableSize.value,
|
|
66
|
+
load: tableLoad,
|
|
67
|
+
columns: tableCols.value,
|
|
68
|
+
pageIndex: tableIndex.value,
|
|
69
|
+
loading: tableLoading.value
|
|
70
|
+
};
|
|
71
|
+
return Object.assign(pick(props, tablePropKeys), opt);
|
|
72
|
+
});
|
|
73
|
+
const tableStyle = computed(() => {
|
|
74
|
+
if (!tableMaximized.value) {
|
|
45
75
|
return {};
|
|
46
76
|
}
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
const pageProps = {
|
|
55
|
-
total: tableTotal.value,
|
|
56
|
-
pageSize: tableLimit.value,
|
|
57
|
-
currentPage: tablePage.value
|
|
58
|
-
};
|
|
59
|
-
if (typeof props.pagination === "object") {
|
|
60
|
-
return {
|
|
61
|
-
...defaultProps,
|
|
62
|
-
...omit(props.pagination, "autoAmend"),
|
|
63
|
-
...pageProps
|
|
64
|
-
};
|
|
77
|
+
const zIndex = props.maximizedIndex ?? globalProps.value.maximizedIndex;
|
|
78
|
+
return { zIndex };
|
|
79
|
+
});
|
|
80
|
+
const tableTools = computed(() => {
|
|
81
|
+
const tools = props.tools ?? globalProps.value.tools ?? true;
|
|
82
|
+
if (tools === true) {
|
|
83
|
+
return ["reload", "size", "columns", "maximized"];
|
|
65
84
|
}
|
|
66
|
-
return
|
|
85
|
+
return tools || [];
|
|
67
86
|
});
|
|
68
87
|
const reload = (option, parent, resolve) => {
|
|
69
88
|
if (!authenticated.value) {
|
|
70
|
-
errorText.value = UNAUTHORIZED_TIP;
|
|
71
89
|
return;
|
|
72
90
|
}
|
|
73
91
|
if (option) {
|
|
@@ -104,8 +122,10 @@ const _sfc_main = defineComponent({
|
|
|
104
122
|
filter,
|
|
105
123
|
parent
|
|
106
124
|
}).then((response) => {
|
|
107
|
-
const
|
|
108
|
-
|
|
125
|
+
const parseData = props.parseData ?? globalProps.value.parseData;
|
|
126
|
+
const result = parseData ? parseData(response) : response;
|
|
127
|
+
const { data, total } = getResponseResult(result);
|
|
128
|
+
requestCallback(data, total, parent, result, resolve);
|
|
109
129
|
}).catch((e) => {
|
|
110
130
|
requestCallback(e == null ? void 0 : e.message);
|
|
111
131
|
resolve && console.error(e);
|
|
@@ -140,7 +160,7 @@ const _sfc_main = defineComponent({
|
|
|
140
160
|
"返回的数据格式与配置的不一致, 返回的数据:",
|
|
141
161
|
response,
|
|
142
162
|
"需要的格式:",
|
|
143
|
-
getResponseName()
|
|
163
|
+
getResponseName(globalProps.value.response, props.response)
|
|
144
164
|
);
|
|
145
165
|
return;
|
|
146
166
|
}
|
|
@@ -169,12 +189,13 @@ const _sfc_main = defineComponent({
|
|
|
169
189
|
};
|
|
170
190
|
const getRequestOrders = (sorter) => {
|
|
171
191
|
const orders = {};
|
|
172
|
-
const { sortName, orderName } = getRequestName(
|
|
192
|
+
const { sortName, orderName, ascValue, descValue } = getRequestName(
|
|
193
|
+
globalProps.value.request,
|
|
194
|
+
props.request
|
|
195
|
+
);
|
|
173
196
|
if (!sortName || !orderName) {
|
|
174
197
|
return orders;
|
|
175
198
|
}
|
|
176
|
-
const ascValue = getAscendingValue();
|
|
177
|
-
const descValue = getDescendingValue();
|
|
178
199
|
const items = getOrderItems(sorter);
|
|
179
200
|
if (items.length === 1) {
|
|
180
201
|
orders[sortName] = items[0].field;
|
|
@@ -185,17 +206,19 @@ const _sfc_main = defineComponent({
|
|
|
185
206
|
return orders;
|
|
186
207
|
};
|
|
187
208
|
const getResponseResult = (data) => {
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
return { data: getResponseData(result) };
|
|
209
|
+
if (!data || Array.isArray(data)) {
|
|
210
|
+
return { data: getResponseData(data) };
|
|
191
211
|
}
|
|
192
|
-
const { dataName, countName } = getResponseName(
|
|
212
|
+
const { dataName, countName } = getResponseName(
|
|
213
|
+
globalProps.value.response,
|
|
214
|
+
props.response
|
|
215
|
+
);
|
|
193
216
|
if (!dataName) {
|
|
194
217
|
return {};
|
|
195
218
|
}
|
|
196
219
|
return {
|
|
197
|
-
data: getResponseData(getValue(
|
|
198
|
-
total: (countName ? getValue(
|
|
220
|
+
data: getResponseData(getValue(data, dataName)),
|
|
221
|
+
total: (countName ? getValue(data, countName) : void 0) ?? 0
|
|
199
222
|
};
|
|
200
223
|
};
|
|
201
224
|
const getResponseData = (data) => {
|
|
@@ -210,28 +233,6 @@ const _sfc_main = defineComponent({
|
|
|
210
233
|
return temp;
|
|
211
234
|
});
|
|
212
235
|
};
|
|
213
|
-
const getRequestName = () => {
|
|
214
|
-
return Object.assign(
|
|
215
|
-
{ sortName: "sort", orderName: "order" },
|
|
216
|
-
globalProps.value.request,
|
|
217
|
-
props.request
|
|
218
|
-
);
|
|
219
|
-
};
|
|
220
|
-
const getResponseName = () => {
|
|
221
|
-
return Object.assign(
|
|
222
|
-
{ dataName: "list", countName: "count" },
|
|
223
|
-
globalProps.value.response,
|
|
224
|
-
props.response
|
|
225
|
-
);
|
|
226
|
-
};
|
|
227
|
-
const getAscendingValue = () => {
|
|
228
|
-
const global = globalProps.value.ascendingValue;
|
|
229
|
-
return props.ascendingValue ?? global ?? "asc";
|
|
230
|
-
};
|
|
231
|
-
const getDescendingValue = () => {
|
|
232
|
-
const global = globalProps.value.descendingValue;
|
|
233
|
-
return props.descendingValue ?? global ?? "desc";
|
|
234
|
-
};
|
|
235
236
|
const getDefaultSorter = () => {
|
|
236
237
|
return props.defaultSort ?? {};
|
|
237
238
|
};
|
|
@@ -422,7 +423,7 @@ const _sfc_main = defineComponent({
|
|
|
422
423
|
watch(
|
|
423
424
|
() => props.size,
|
|
424
425
|
(size) => {
|
|
425
|
-
tableSize.value =
|
|
426
|
+
tableSize.value = getTableSize(void 0, size, globalProps.value.size);
|
|
426
427
|
}
|
|
427
428
|
);
|
|
428
429
|
watch(
|
|
@@ -446,9 +447,11 @@ const _sfc_main = defineComponent({
|
|
|
446
447
|
watch(
|
|
447
448
|
globalProps,
|
|
448
449
|
(config) => {
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
450
|
+
tableSize.value = getTableSize(
|
|
451
|
+
props.cacheKey,
|
|
452
|
+
props.size,
|
|
453
|
+
config.size
|
|
454
|
+
);
|
|
452
455
|
},
|
|
453
456
|
{ deep: true }
|
|
454
457
|
);
|
|
@@ -470,6 +473,9 @@ const _sfc_main = defineComponent({
|
|
|
470
473
|
destroyed,
|
|
471
474
|
tableIndex,
|
|
472
475
|
paginationProps,
|
|
476
|
+
tableProps,
|
|
477
|
+
tableStyle,
|
|
478
|
+
tableTools,
|
|
473
479
|
tableLoad,
|
|
474
480
|
onRefresh,
|
|
475
481
|
onSizeChange,
|
|
@@ -510,25 +516,20 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
510
516
|
return openBlock(), createElementBlock("div", {
|
|
511
517
|
class: normalizeClass([
|
|
512
518
|
"ele-pro-table",
|
|
513
|
-
{ "is-
|
|
514
|
-
{ "is-header-ellipsis": _ctx.headerEllipsis }
|
|
519
|
+
{ "is-sticky": _ctx.sticky },
|
|
520
|
+
{ "is-header-ellipsis": _ctx.headerEllipsis },
|
|
521
|
+
{ "is-maximized": _ctx.tableMaximized }
|
|
515
522
|
]),
|
|
516
|
-
style: normalizeStyle(
|
|
523
|
+
style: normalizeStyle(_ctx.tableStyle)
|
|
517
524
|
}, [
|
|
518
|
-
_ctx.toolbar ? (openBlock(), createBlock(_component_EleToolbar, {
|
|
519
|
-
key: 0,
|
|
520
|
-
title: _ctx.title,
|
|
521
|
-
subtitle: _ctx.subtitle,
|
|
522
|
-
theme: _ctx.toolbarTheme,
|
|
523
|
-
form: _ctx.toolbarForm,
|
|
524
|
-
style: normalizeStyle(_ctx.toolbarStyle)
|
|
525
|
-
}, {
|
|
525
|
+
_ctx.toolbar ? (openBlock(), createBlock(_component_EleToolbar, normalizeProps(mergeProps({ key: 0 }, _ctx.toolbar === true ? {} : _ctx.toolbar)), {
|
|
526
526
|
tools: withCtx(() => [
|
|
527
527
|
renderSlot(_ctx.$slots, "tools"),
|
|
528
|
-
|
|
528
|
+
_ctx.tableTools && _ctx.tableTools.length ? (openBlock(), createBlock(_component_TableTools, {
|
|
529
|
+
key: 0,
|
|
529
530
|
size: _ctx.tableSize,
|
|
530
531
|
columns: _ctx.columns,
|
|
531
|
-
tools: _ctx.
|
|
532
|
+
tools: _ctx.tableTools,
|
|
532
533
|
columnSortable: _ctx.columnSortable,
|
|
533
534
|
columnFixed: _ctx.columnFixed,
|
|
534
535
|
maximized: _ctx.tableMaximized,
|
|
@@ -538,57 +539,17 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
538
539
|
"onUpdate:size": _ctx.onSizeChange,
|
|
539
540
|
"onUpdate:columns": _ctx.onColumnsChange,
|
|
540
541
|
"onUpdate:maximized": _ctx.onMaximizedChange
|
|
541
|
-
}, null, 8, ["size", "columns", "tools", "columnSortable", "columnFixed", "maximized", "cacheKey", "locale", "onReload", "onUpdate:size", "onUpdate:columns", "onUpdate:maximized"])
|
|
542
|
+
}, null, 8, ["size", "columns", "tools", "columnSortable", "columnFixed", "maximized", "cacheKey", "locale", "onReload", "onUpdate:size", "onUpdate:columns", "onUpdate:maximized"])) : createCommentVNode("", true)
|
|
542
543
|
]),
|
|
543
544
|
default: withCtx(() => [
|
|
544
545
|
renderSlot(_ctx.$slots, "toolbar")
|
|
545
546
|
]),
|
|
546
547
|
_: 3
|
|
547
|
-
},
|
|
548
|
+
}, 16)) : createCommentVNode("", true),
|
|
548
549
|
renderSlot(_ctx.$slots, "default"),
|
|
549
|
-
!_ctx.destroyed ? (openBlock(), createBlock(_component_TableView, {
|
|
550
|
-
key: 1,
|
|
550
|
+
!_ctx.destroyed ? (openBlock(), createBlock(_component_TableView, mergeProps({ key: 1 }, _ctx.tableProps, {
|
|
551
551
|
ref: "tableViewRef",
|
|
552
|
-
|
|
553
|
-
height: _ctx.tableMaximized && _ctx.maximizedHeight ? _ctx.maximizedHeight : _ctx.height,
|
|
554
|
-
maxHeight: _ctx.maxHeight,
|
|
555
|
-
stripe: _ctx.stripe,
|
|
556
|
-
border: _ctx.border,
|
|
557
|
-
size: _ctx.tableSize,
|
|
558
|
-
fit: _ctx.fit,
|
|
559
|
-
showHeader: _ctx.showHeader,
|
|
560
|
-
highlightCurrentRow: _ctx.highlightCurrentRow,
|
|
561
|
-
currentRowKey: _ctx.currentRowKey,
|
|
562
|
-
rowClassName: _ctx.rowClassName,
|
|
563
|
-
rowStyle: _ctx.rowStyle,
|
|
564
|
-
cellClassName: _ctx.cellClassName,
|
|
565
|
-
cellStyle: _ctx.cellStyle,
|
|
566
|
-
headerRowClassName: _ctx.headerRowClassName,
|
|
567
|
-
headerRowStyle: _ctx.headerRowStyle,
|
|
568
|
-
headerCellClassName: _ctx.headerCellClassName,
|
|
569
|
-
headerCellStyle: _ctx.headerCellStyle,
|
|
570
|
-
rowKey: _ctx.rowKey,
|
|
571
|
-
defaultExpandAll: _ctx.defaultExpandAll,
|
|
572
|
-
expandRowKeys: _ctx.expandRowKeys,
|
|
573
|
-
defaultSort: _ctx.defaultSort,
|
|
574
|
-
tooltipEffect: _ctx.tooltipEffect,
|
|
575
|
-
tooltipOptions: _ctx.tooltipOptions,
|
|
576
|
-
showSummary: _ctx.showSummary,
|
|
577
|
-
sumText: _ctx.sumText,
|
|
578
|
-
summaryMethod: _ctx.summaryMethod,
|
|
579
|
-
spanMethod: _ctx.spanMethod,
|
|
580
|
-
selectOnIndeterminate: _ctx.selectOnIndeterminate,
|
|
581
|
-
indent: _ctx.indent,
|
|
582
|
-
lazy: _ctx.lazy,
|
|
583
|
-
load: _ctx.tableLoad,
|
|
584
|
-
treeProps: _ctx.treeProps,
|
|
585
|
-
tableLayout: _ctx.tableLayout,
|
|
586
|
-
scrollbarAlwaysOn: _ctx.scrollbarAlwaysOn,
|
|
587
|
-
flexible: _ctx.flexible,
|
|
588
|
-
columns: _ctx.tableCols,
|
|
589
|
-
pageIndex: _ctx.tableIndex,
|
|
590
|
-
loading: _ctx.tableLoading,
|
|
591
|
-
style: normalizeStyle(_ctx.tableStyle),
|
|
552
|
+
style: _ctx.tableStyle,
|
|
592
553
|
onSelect: _ctx.tableEvents.onSelect,
|
|
593
554
|
onSelectAll: _ctx.tableEvents.onSelectAll,
|
|
594
555
|
onCellMouseEnter: _ctx.tableEvents.onCellMouseEnter,
|
|
@@ -607,7 +568,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
607
568
|
onSortChange: _ctx.onSortChange,
|
|
608
569
|
onFilterChange: _ctx.onFilterChange,
|
|
609
570
|
onCurrentChange: _ctx.onCurrentChange
|
|
610
|
-
}, createSlots({
|
|
571
|
+
}), createSlots({
|
|
611
572
|
empty: withCtx(() => [
|
|
612
573
|
renderSlot(_ctx.$slots, "empty", {
|
|
613
574
|
text: _ctx.emptyText,
|
|
@@ -631,14 +592,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
631
592
|
])
|
|
632
593
|
};
|
|
633
594
|
})
|
|
634
|
-
]),
|
|
635
|
-
_ctx.
|
|
595
|
+
]), 1040, ["style", "onSelect", "onSelectAll", "onCellMouseEnter", "onCellMouseLeave", "onCellClick", "onCellDblclick", "onCellContextmenu", "onRowContextmenu", "onRowDblclick", "onHeaderClick", "onHeaderContextmenu", "onHeaderDragend", "onExpandChange", "onRowClick", "onSelectionChange", "onSortChange", "onFilterChange", "onCurrentChange"])) : createCommentVNode("", true),
|
|
596
|
+
_ctx.paginationProps || _ctx.$slots.footer ? (openBlock(), createElementBlock("div", {
|
|
636
597
|
key: 2,
|
|
637
598
|
class: "ele-pro-table-footer",
|
|
638
599
|
style: normalizeStyle(_ctx.footerStyle)
|
|
639
600
|
}, [
|
|
640
601
|
renderSlot(_ctx.$slots, "footer"),
|
|
641
|
-
_ctx.
|
|
602
|
+
_ctx.paginationProps && _ctx.paginationProps.total ? (openBlock(), createBlock(_component_ElePagination, mergeProps({ key: 0 }, _ctx.paginationProps, {
|
|
642
603
|
"onUpdate:currentPage": _ctx.onPageCurrentChange,
|
|
643
604
|
"onUpdate:pageSize": _ctx.onPageSizeChange
|
|
644
605
|
}), createSlots({ _: 2 }, [
|
|
@@ -1,17 +1,117 @@
|
|
|
1
1
|
import type { PropType, CSSProperties, ExtractPropTypes } from 'vue';
|
|
2
|
-
import
|
|
3
|
-
import type { Column, Columns, DataItem, Where, Datasource, RequestOption, ResponseOption, ParseData, Sorter, Filter,
|
|
2
|
+
import tableProps from 'element-plus/es/components/table/src/table/defaults';
|
|
3
|
+
import type { Column, Columns, DataItem, Where, Datasource, RequestOption, ResponseOption, ParseData, Sorter, Filter, DoneParams, TablePagination, TableToolbar, TableTool, TableSize, RowClickChecked, TableLocale } from './types';
|
|
4
|
+
/**
|
|
5
|
+
* 表格组件属性
|
|
6
|
+
*/
|
|
7
|
+
export declare const tableViewProps: {
|
|
8
|
+
columns: {
|
|
9
|
+
type: PropType<Columns>;
|
|
10
|
+
required: boolean;
|
|
11
|
+
};
|
|
12
|
+
loading: BooleanConstructor;
|
|
13
|
+
pageIndex: NumberConstructor;
|
|
14
|
+
data: {
|
|
15
|
+
type: PropType<any[]>;
|
|
16
|
+
default: () => never[];
|
|
17
|
+
};
|
|
18
|
+
size: {
|
|
19
|
+
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
20
|
+
readonly required: false;
|
|
21
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
22
|
+
__epPropKey: true;
|
|
23
|
+
};
|
|
24
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
25
|
+
height: (StringConstructor | NumberConstructor)[];
|
|
26
|
+
maxHeight: (StringConstructor | NumberConstructor)[];
|
|
27
|
+
fit: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
stripe: BooleanConstructor;
|
|
32
|
+
border: BooleanConstructor;
|
|
33
|
+
rowKey: PropType<string | ((row: any) => string) | undefined>;
|
|
34
|
+
showHeader: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
showSummary: BooleanConstructor;
|
|
39
|
+
sumText: StringConstructor;
|
|
40
|
+
summaryMethod: PropType<import("element-plus/es/components/table/src/table/defaults").SummaryMethod<any> | undefined>;
|
|
41
|
+
rowClassName: PropType<import("element-plus/es/components/table/src/table/defaults").ColumnCls<any> | undefined>;
|
|
42
|
+
rowStyle: PropType<import("element-plus/es/components/table/src/table/defaults").ColumnStyle<any> | undefined>;
|
|
43
|
+
cellClassName: PropType<import("element-plus/es/components/table/src/table/defaults").CellCls<any> | undefined>;
|
|
44
|
+
cellStyle: PropType<import("element-plus/es/components/table/src/table/defaults").CellStyle<any> | undefined>;
|
|
45
|
+
headerRowClassName: PropType<import("element-plus/es/components/table/src/table/defaults").ColumnCls<any> | undefined>;
|
|
46
|
+
headerRowStyle: PropType<import("element-plus/es/components/table/src/table/defaults").ColumnStyle<any> | undefined>;
|
|
47
|
+
headerCellClassName: PropType<import("element-plus/es/components/table/src/table/defaults").CellCls<any> | undefined>;
|
|
48
|
+
headerCellStyle: PropType<import("element-plus/es/components/table/src/table/defaults").CellStyle<any> | undefined>;
|
|
49
|
+
highlightCurrentRow: BooleanConstructor;
|
|
50
|
+
currentRowKey: (StringConstructor | NumberConstructor)[];
|
|
51
|
+
emptyText: StringConstructor;
|
|
52
|
+
expandRowKeys: PropType<any[] | undefined>;
|
|
53
|
+
defaultExpandAll: BooleanConstructor;
|
|
54
|
+
defaultSort: PropType<import("element-plus/es/components/table/src/table/defaults").Sort | undefined>;
|
|
55
|
+
tooltipEffect: StringConstructor;
|
|
56
|
+
tooltipOptions: PropType<Partial<Pick<import("element-plus").ElTooltipProps, "showArrow" | "effect" | "enterable" | "popperClass" | "offset" | "placement" | "popperOptions" | "showAfter" | "hideAfter">> | undefined>;
|
|
57
|
+
spanMethod: PropType<((data: {
|
|
58
|
+
row: any;
|
|
59
|
+
rowIndex: number;
|
|
60
|
+
column: import("element-plus/es/components/table/src/table-column/defaults").TableColumnCtx<any>;
|
|
61
|
+
columnIndex: number;
|
|
62
|
+
}) => number[] | {
|
|
63
|
+
rowspan: number;
|
|
64
|
+
colspan: number;
|
|
65
|
+
} | undefined) | undefined>;
|
|
66
|
+
selectOnIndeterminate: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
70
|
+
indent: {
|
|
71
|
+
type: NumberConstructor;
|
|
72
|
+
default: number;
|
|
73
|
+
};
|
|
74
|
+
treeProps: {
|
|
75
|
+
type: PropType<{
|
|
76
|
+
hasChildren?: string | undefined;
|
|
77
|
+
children?: string | undefined;
|
|
78
|
+
} | undefined>;
|
|
79
|
+
default: () => {
|
|
80
|
+
hasChildren: string;
|
|
81
|
+
children: string;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
lazy: BooleanConstructor;
|
|
85
|
+
load: PropType<((row: any, treeNode: import("element-plus/es/components/table/src/table/defaults").TreeNode, resolve: (data: any[]) => void) => void) | undefined>;
|
|
86
|
+
style: {
|
|
87
|
+
type: PropType<CSSProperties>;
|
|
88
|
+
default: () => {};
|
|
89
|
+
};
|
|
90
|
+
className: {
|
|
91
|
+
type: StringConstructor;
|
|
92
|
+
default: string;
|
|
93
|
+
};
|
|
94
|
+
tableLayout: {
|
|
95
|
+
type: PropType<"fixed" | "auto">;
|
|
96
|
+
default: string;
|
|
97
|
+
};
|
|
98
|
+
scrollbarAlwaysOn: {
|
|
99
|
+
type: BooleanConstructor;
|
|
100
|
+
default: boolean;
|
|
101
|
+
};
|
|
102
|
+
flexible: BooleanConstructor;
|
|
103
|
+
};
|
|
4
104
|
/**
|
|
5
105
|
* 属性
|
|
6
106
|
*/
|
|
7
107
|
export declare const proTableProps: {
|
|
8
|
-
|
|
108
|
+
stripe: {
|
|
9
109
|
type: BooleanConstructor;
|
|
10
|
-
default:
|
|
110
|
+
default: null;
|
|
11
111
|
};
|
|
12
|
-
|
|
13
|
-
type:
|
|
14
|
-
|
|
112
|
+
border: {
|
|
113
|
+
type: BooleanConstructor;
|
|
114
|
+
default: null;
|
|
15
115
|
};
|
|
16
116
|
datasource: {
|
|
17
117
|
type: PropType<Datasource>;
|
|
@@ -21,8 +121,6 @@ export declare const proTableProps: {
|
|
|
21
121
|
request: PropType<RequestOption>;
|
|
22
122
|
response: PropType<ResponseOption>;
|
|
23
123
|
parseData: PropType<ParseData>;
|
|
24
|
-
ascendingValue: StringConstructor;
|
|
25
|
-
descendingValue: StringConstructor;
|
|
26
124
|
loadOnCreated: {
|
|
27
125
|
type: BooleanConstructor;
|
|
28
126
|
default: boolean;
|
|
@@ -31,21 +129,15 @@ export declare const proTableProps: {
|
|
|
31
129
|
type: BooleanConstructor;
|
|
32
130
|
default: boolean;
|
|
33
131
|
};
|
|
34
|
-
loading: BooleanConstructor;
|
|
35
132
|
selections: PropType<DataItem[]>;
|
|
36
133
|
current: PropType<DataItem | null>;
|
|
37
134
|
toolbar: {
|
|
38
|
-
type:
|
|
135
|
+
type: PropType<boolean | TableToolbar>;
|
|
39
136
|
default: boolean;
|
|
40
137
|
};
|
|
41
|
-
toolbarTheme: PropType<ToolbarTheme>;
|
|
42
|
-
toolbarStyle: PropType<CSSProperties>;
|
|
43
|
-
toolbarForm: BooleanConstructor;
|
|
44
|
-
title: StringConstructor;
|
|
45
|
-
subtitle: StringConstructor;
|
|
46
138
|
tools: {
|
|
47
|
-
type: PropType<TableTool[]>;
|
|
48
|
-
default: () =>
|
|
139
|
+
type: PropType<boolean | TableTool[]>;
|
|
140
|
+
default: () => null;
|
|
49
141
|
};
|
|
50
142
|
columnSortable: {
|
|
51
143
|
type: BooleanConstructor;
|
|
@@ -55,10 +147,7 @@ export declare const proTableProps: {
|
|
|
55
147
|
type: BooleanConstructor;
|
|
56
148
|
default: boolean;
|
|
57
149
|
};
|
|
58
|
-
maximizedIndex:
|
|
59
|
-
type: NumberConstructor;
|
|
60
|
-
default: number;
|
|
61
|
-
};
|
|
150
|
+
maximizedIndex: NumberConstructor;
|
|
62
151
|
maximizedHeight: (StringConstructor | NumberConstructor)[];
|
|
63
152
|
headerEllipsis: {
|
|
64
153
|
type: BooleanConstructor;
|
|
@@ -68,11 +157,18 @@ export declare const proTableProps: {
|
|
|
68
157
|
tableStyle: PropType<CSSProperties>;
|
|
69
158
|
footerStyle: PropType<CSSProperties>;
|
|
70
159
|
pagination: {
|
|
71
|
-
type: PropType<boolean |
|
|
72
|
-
default:
|
|
160
|
+
type: PropType<boolean | TablePagination>;
|
|
161
|
+
default: () => null;
|
|
73
162
|
};
|
|
163
|
+
sticky: BooleanConstructor;
|
|
74
164
|
cacheKey: StringConstructor;
|
|
75
165
|
locale: PropType<TableLocale>;
|
|
166
|
+
columns: {
|
|
167
|
+
type: PropType<Columns>;
|
|
168
|
+
required: boolean;
|
|
169
|
+
};
|
|
170
|
+
loading: BooleanConstructor;
|
|
171
|
+
pageIndex: NumberConstructor;
|
|
76
172
|
data: {
|
|
77
173
|
type: PropType<any[]>;
|
|
78
174
|
default: () => never[];
|
|
@@ -90,7 +186,6 @@ export declare const proTableProps: {
|
|
|
90
186
|
type: BooleanConstructor;
|
|
91
187
|
default: boolean;
|
|
92
188
|
};
|
|
93
|
-
stripe: BooleanConstructor;
|
|
94
189
|
rowKey: PropType<string | ((row: any) => string) | undefined>;
|
|
95
190
|
showHeader: {
|
|
96
191
|
type: BooleanConstructor;
|
|
@@ -163,6 +258,7 @@ export declare const proTableProps: {
|
|
|
163
258
|
flexible: BooleanConstructor;
|
|
164
259
|
};
|
|
165
260
|
export type ProTableProps = ExtractPropTypes<typeof proTableProps>;
|
|
261
|
+
export type TableViewProps = ExtractPropTypes<typeof tableViewProps>;
|
|
166
262
|
/**
|
|
167
263
|
* 事件
|
|
168
264
|
*/
|
|
@@ -187,12 +283,19 @@ export declare const tableEmits: {
|
|
|
187
283
|
expandChange: (_row: DataItem, _expanded: boolean) => boolean;
|
|
188
284
|
};
|
|
189
285
|
export declare const proTableEmits: {
|
|
286
|
+
/** 表格数据请求完成事件 */
|
|
190
287
|
done: (_result: DoneParams<DataItem>, _parent?: DataItem) => boolean;
|
|
288
|
+
/** 更新多选选中数据 */
|
|
191
289
|
'update:selections': (_selections: DataItem[]) => boolean;
|
|
290
|
+
/** 更新单选选中数据 */
|
|
192
291
|
'update:current': (_current?: DataItem | null) => boolean;
|
|
292
|
+
/** 列配置改变事件 */
|
|
193
293
|
columnsChange: (_columns: Columns) => boolean;
|
|
294
|
+
/** 表格尺寸改变事件 */
|
|
194
295
|
sizeChange: (_size: TableSize) => boolean;
|
|
296
|
+
/** 表格最大化切换事件 */
|
|
195
297
|
maximizedChange: (_maximized: boolean) => boolean;
|
|
298
|
+
/** 数组数据源时刷新按钮点击事件 */
|
|
196
299
|
refresh: () => boolean;
|
|
197
300
|
select: (_selection: DataItem[], _row: DataItem) => boolean;
|
|
198
301
|
selectAll: (_selection: DataItem[]) => boolean;
|
|
@@ -213,3 +316,8 @@ export declare const proTableEmits: {
|
|
|
213
316
|
headerDragend: (_width: number, _old: number, _column: Column, _e: MouseEvent) => boolean;
|
|
214
317
|
expandChange: (_row: DataItem, _expanded: boolean) => boolean;
|
|
215
318
|
};
|
|
319
|
+
export type TablePropKeys = Array<keyof typeof tableProps>;
|
|
320
|
+
/**
|
|
321
|
+
* 表格组件属性名
|
|
322
|
+
*/
|
|
323
|
+
export declare const tablePropKeys: TablePropKeys;
|