ele-admin-plus 1.1.6-beta.5 → 1.1.6
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/ele-alert/index.d.ts +6 -6
- package/es/ele-alert/props.d.ts +1 -1
- package/{lib/ele-app/types/element.d.ts → es/ele-app/el.d.ts} +101 -4
- package/es/ele-app/index.d.ts +0 -1
- package/es/ele-app/plus.d.ts +75 -0
- package/es/ele-app/style/common/index.js +1 -1
- package/es/ele-app/style/message/index.js +2 -2
- package/es/ele-app/style/overwrite/autocomplete/index.js +1 -1
- package/es/ele-app/style/overwrite/backtop/index.js +1 -1
- package/es/ele-app/style/overwrite/cascader/index.js +1 -1
- package/es/ele-app/style/overwrite/checkbox/index.js +1 -1
- package/es/ele-app/style/overwrite/color-picker/index.js +1 -1
- package/es/ele-app/style/overwrite/date-picker/index.js +1 -1
- package/es/ele-app/style/overwrite/descriptions/index.js +1 -1
- package/es/ele-app/style/overwrite/image-viewer/index.js +1 -1
- package/es/ele-app/style/overwrite/index.js +17 -17
- package/es/ele-app/style/overwrite/message-box/index.js +2 -2
- package/es/ele-app/style/overwrite/notification/index.js +2 -2
- package/es/ele-app/style/overwrite/popper/index.js +1 -1
- package/es/ele-app/style/overwrite/radio/index.js +1 -1
- package/es/ele-app/style/overwrite/select/index.js +1 -1
- package/es/ele-app/style/overwrite/table-filter/index.js +1 -1
- package/es/ele-app/style/overwrite/tag/index.js +1 -1
- package/es/ele-app/style/overwrite/tree/index.js +1 -1
- package/es/ele-app/style/overwrite/tree/index.scss +3 -1
- package/es/ele-app/style/overwrite/tree-select/index.js +1 -1
- package/es/ele-app/style/overwrite/tree-select/index.scss +4 -0
- package/es/ele-app/style/scrollbar/index.js +1 -1
- package/es/ele-app/{types/core.d.ts → types.d.ts} +10 -4
- package/es/ele-avatar-group/index.d.ts +2 -2
- package/es/ele-avatar-group/types.d.ts +21 -0
- package/{lib/ele-bar-code/types/index.d.ts → es/ele-bar-code/types.d.ts} +2 -0
- package/es/ele-basic-select/index.d.ts +8 -7
- package/{lib/ele-basic-select/types/index.d.ts → es/ele-basic-select/types.d.ts} +11 -8
- package/es/ele-breadcrumb/index.d.ts +1 -1
- package/es/ele-breadcrumb/types.d.ts +21 -0
- package/es/ele-check-card/components/card-item.d.ts +1 -1
- package/es/ele-check-card/index.d.ts +4 -4
- package/es/ele-check-card/props.d.ts +1 -1
- package/es/ele-check-card/types.d.ts +37 -0
- package/es/ele-config-provider/index.d.ts +2 -2
- package/es/ele-config-provider/props.d.ts +1 -1
- package/es/ele-config-provider/types.d.ts +124 -0
- package/es/ele-copyable/index.d.ts +5 -7
- package/es/ele-copyable/props.d.ts +1 -1
- package/{lib/ele-copyable/types/index.d.ts → es/ele-copyable/types.d.ts} +4 -2
- package/es/ele-cropper/index.d.ts +0 -2
- package/es/ele-cropper/types.d.ts +98 -0
- package/es/ele-cropper-modal/index.d.ts +2 -2
- package/es/ele-cropper-modal/props.d.ts +1 -1
- package/es/ele-data-table/index.d.ts +5 -2
- package/{lib/ele-data-table/types/index.d.ts → es/ele-data-table/types.d.ts} +111 -74
- package/es/ele-data-table/util.d.ts +2 -1
- package/es/ele-drawer/index.d.ts +3 -3
- package/es/ele-dropdown/index.d.ts +1 -1
- package/es/ele-dropdown/types.d.ts +20 -0
- package/es/ele-edit-tag/index.d.ts +3 -3
- package/{lib/ele-edit-tag/types/index.d.ts → es/ele-edit-tag/types.d.ts} +1 -0
- package/es/ele-ellipsis/index.d.ts +3 -3
- package/es/ele-ellipsis/props.d.ts +1 -1
- package/es/ele-ellipsis/types.d.ts +9 -0
- package/es/ele-file-list/components/file-grid-item.d.ts +1 -1
- package/es/ele-file-list/components/file-grid.d.ts +1 -1
- package/es/ele-file-list/components/file-table-item.d.ts +1 -1
- package/es/ele-file-list/components/file-table.d.ts +1 -1
- package/es/ele-file-list/index.d.ts +2 -2
- package/es/ele-file-list/props.d.ts +1 -1
- package/es/ele-file-list/types.d.ts +105 -0
- package/es/ele-icon-select/components/icon-grid.d.ts +1 -1
- package/es/ele-icon-select/index.d.ts +5 -5
- package/es/ele-icon-select/props.d.ts +1 -1
- package/es/ele-icon-select/types.d.ts +16 -0
- package/es/ele-loading/{types/index.d.ts → types.d.ts} +6 -4
- package/es/ele-map-picker/components/map-view.d.ts +14 -12
- package/es/ele-map-picker/index.d.ts +6 -6
- package/es/ele-map-picker/props.d.ts +2 -1
- package/es/ele-map-picker/types.d.ts +93 -0
- package/es/ele-menus/index.d.ts +1 -1
- package/es/ele-menus/types.d.ts +96 -0
- package/es/ele-modal/index.d.ts +8 -10
- package/{lib/ele-modal/types/index.d.ts → es/ele-modal/types.d.ts} +22 -7
- package/es/ele-popconfirm/index.d.ts +10 -9
- package/es/ele-popconfirm/props.d.ts +1 -1
- package/es/ele-popover/index.d.ts +1 -1
- package/es/ele-popover/props.d.ts +19 -19
- package/es/ele-printer/types.d.ts +48 -0
- package/es/ele-pro-layout/components/pro-sidebar.d.ts +1 -1
- package/es/ele-pro-layout/components/pro-sidebox.d.ts +1 -1
- package/es/ele-pro-layout/components/pro-tabs.d.ts +1 -1
- package/es/ele-pro-layout/components/tab-dropdown.d.ts +1 -1
- package/es/ele-pro-layout/index.d.ts +15 -11
- package/es/ele-pro-layout/props.d.ts +1 -1
- package/es/ele-pro-layout/types.d.ts +253 -0
- package/es/ele-pro-table/index.d.ts +8 -9
- package/es/ele-pro-table/props.d.ts +4 -4
- package/es/ele-pro-table/types.d.ts +277 -0
- package/es/ele-pro-table/util.d.ts +1 -1
- package/es/ele-qr-code/index.d.ts +1 -1
- package/es/ele-qr-code/types.d.ts +41 -0
- package/es/ele-qr-code-svg/index.d.ts +1 -1
- package/es/ele-segmented/index.d.ts +2 -2
- package/es/ele-segmented/types.d.ts +28 -0
- package/es/ele-steps/{types/index.d.ts → types.d.ts} +5 -3
- package/es/ele-table-select/index.d.ts +12 -12
- package/es/ele-table-select/props.d.ts +1 -1
- package/es/ele-tabs/components/tab-title.d.ts +1 -1
- package/es/ele-tabs/index.d.ts +8 -7
- package/es/ele-tabs/props.d.ts +2 -1
- package/es/ele-tabs/types.d.ts +64 -0
- package/es/ele-text/index.d.ts +4 -4
- package/es/ele-text/props.d.ts +1 -1
- package/es/ele-text/types.d.ts +35 -0
- package/es/ele-tooltip/index.d.ts +1 -1
- package/es/ele-tooltip/props.d.ts +7 -7
- package/es/ele-tour/index.d.ts +1 -1
- package/es/ele-tour/types.d.ts +42 -0
- package/es/ele-tour/util.d.ts +1 -1
- package/es/ele-tree-select/index.d.ts +4 -3
- package/es/ele-tree-select/props.d.ts +1 -1
- package/es/ele-tree-select/style/index.scss +4 -0
- package/es/ele-tree-select/{types/index.d.ts → types.d.ts} +5 -1
- package/es/ele-upload-list/components/list-item.d.ts +1 -1
- package/es/ele-upload-list/index.d.ts +4 -4
- package/es/ele-upload-list/props.d.ts +1 -1
- package/es/ele-upload-list/types.d.ts +45 -0
- package/es/ele-virtual-table/components/body-cell.d.ts +1 -1
- package/es/ele-virtual-table/components/body-row.d.ts +1 -1
- package/es/ele-virtual-table/components/cell-filter.d.ts +1 -1
- package/es/ele-virtual-table/index.d.ts +10 -9
- package/es/ele-virtual-table/types.d.ts +195 -0
- package/es/ele-watermark/index.d.ts +1 -1
- package/es/ele-watermark/types.d.ts +39 -0
- package/lib/ele-alert/index.d.ts +6 -6
- package/lib/ele-alert/props.d.ts +1 -1
- package/{es/ele-app/types/element.d.ts → lib/ele-app/el.d.ts} +101 -4
- package/lib/ele-app/index.d.ts +0 -1
- package/lib/ele-app/plus.d.ts +75 -0
- package/lib/ele-app/style/message/index.cjs +1 -1
- package/lib/ele-app/style/overwrite/message-box/index.cjs +1 -1
- package/lib/ele-app/style/overwrite/notification/index.cjs +1 -1
- package/lib/ele-app/style/overwrite/tree/index.scss +3 -1
- package/lib/ele-app/style/overwrite/tree-select/index.scss +4 -0
- package/lib/ele-app/{types/core.d.ts → types.d.ts} +10 -4
- package/lib/ele-avatar-group/index.d.ts +2 -2
- package/lib/ele-avatar-group/types.d.ts +21 -0
- package/{es/ele-bar-code/types/index.d.ts → lib/ele-bar-code/types.d.ts} +2 -0
- package/lib/ele-basic-select/index.d.ts +8 -7
- package/{es/ele-basic-select/types/index.d.ts → lib/ele-basic-select/types.d.ts} +11 -8
- package/lib/ele-breadcrumb/index.d.ts +1 -1
- package/lib/ele-breadcrumb/types.d.ts +21 -0
- package/lib/ele-check-card/components/card-item.d.ts +1 -1
- package/lib/ele-check-card/index.d.ts +4 -4
- package/lib/ele-check-card/props.d.ts +1 -1
- package/lib/ele-check-card/types.d.ts +37 -0
- package/lib/ele-config-provider/index.d.ts +2 -2
- package/lib/ele-config-provider/props.d.ts +1 -1
- package/lib/ele-config-provider/types.d.ts +124 -0
- package/lib/ele-copyable/index.d.ts +5 -7
- package/lib/ele-copyable/props.d.ts +1 -1
- package/{es/ele-copyable/types/index.d.ts → lib/ele-copyable/types.d.ts} +4 -2
- package/lib/ele-cropper/index.d.ts +0 -2
- package/lib/ele-cropper/types.d.ts +98 -0
- package/lib/ele-cropper-modal/index.d.ts +2 -2
- package/lib/ele-cropper-modal/props.d.ts +1 -1
- package/lib/ele-data-table/index.d.ts +5 -2
- package/{es/ele-data-table/types/index.d.ts → lib/ele-data-table/types.d.ts} +111 -74
- package/lib/ele-data-table/util.d.ts +2 -1
- package/lib/ele-drawer/index.d.ts +3 -3
- package/lib/ele-dropdown/index.d.ts +1 -1
- package/lib/ele-dropdown/types.d.ts +20 -0
- package/lib/ele-edit-tag/index.d.ts +3 -3
- package/{es/ele-edit-tag/types/index.d.ts → lib/ele-edit-tag/types.d.ts} +1 -0
- package/lib/ele-ellipsis/index.d.ts +3 -3
- package/lib/ele-ellipsis/props.d.ts +1 -1
- package/lib/ele-ellipsis/types.d.ts +9 -0
- package/lib/ele-file-list/components/file-grid-item.d.ts +1 -1
- package/lib/ele-file-list/components/file-grid.d.ts +1 -1
- package/lib/ele-file-list/components/file-table-item.d.ts +1 -1
- package/lib/ele-file-list/components/file-table.d.ts +1 -1
- package/lib/ele-file-list/index.d.ts +2 -2
- package/lib/ele-file-list/props.d.ts +1 -1
- package/lib/ele-file-list/types.d.ts +105 -0
- package/lib/ele-icon-select/components/icon-grid.d.ts +1 -1
- package/lib/ele-icon-select/index.d.ts +5 -5
- package/lib/ele-icon-select/props.d.ts +1 -1
- package/lib/ele-icon-select/types.d.ts +16 -0
- package/lib/ele-loading/{types/index.d.ts → types.d.ts} +6 -4
- package/lib/ele-map-picker/components/map-view.d.ts +14 -12
- package/lib/ele-map-picker/index.d.ts +6 -6
- package/lib/ele-map-picker/props.d.ts +2 -1
- package/lib/ele-map-picker/types.d.ts +93 -0
- package/lib/ele-menus/index.d.ts +1 -1
- package/lib/ele-menus/types.d.ts +96 -0
- package/lib/ele-modal/index.d.ts +8 -10
- package/{es/ele-modal/types/index.d.ts → lib/ele-modal/types.d.ts} +22 -7
- package/lib/ele-popconfirm/index.d.ts +10 -9
- package/lib/ele-popconfirm/props.d.ts +1 -1
- package/lib/ele-popover/index.d.ts +1 -1
- package/lib/ele-popover/props.d.ts +19 -19
- package/lib/ele-printer/types.d.ts +48 -0
- package/lib/ele-pro-layout/components/pro-sidebar.d.ts +1 -1
- package/lib/ele-pro-layout/components/pro-sidebox.d.ts +1 -1
- package/lib/ele-pro-layout/components/pro-tabs.d.ts +1 -1
- package/lib/ele-pro-layout/components/tab-dropdown.d.ts +1 -1
- package/lib/ele-pro-layout/index.d.ts +15 -11
- package/lib/ele-pro-layout/props.d.ts +1 -1
- package/lib/ele-pro-layout/types.d.ts +253 -0
- package/lib/ele-pro-table/index.d.ts +8 -9
- package/lib/ele-pro-table/props.d.ts +4 -4
- package/lib/ele-pro-table/types.d.ts +277 -0
- package/lib/ele-pro-table/util.d.ts +1 -1
- package/lib/ele-qr-code/index.d.ts +1 -1
- package/lib/ele-qr-code/types.d.ts +41 -0
- package/lib/ele-qr-code-svg/index.d.ts +1 -1
- package/lib/ele-segmented/index.d.ts +2 -2
- package/lib/ele-segmented/types.d.ts +28 -0
- package/lib/ele-steps/{types/index.d.ts → types.d.ts} +5 -3
- package/lib/ele-table-select/index.d.ts +12 -12
- package/lib/ele-table-select/props.d.ts +1 -1
- package/lib/ele-tabs/components/tab-title.d.ts +1 -1
- package/lib/ele-tabs/index.d.ts +8 -7
- package/lib/ele-tabs/props.d.ts +2 -1
- package/lib/ele-tabs/types.d.ts +64 -0
- package/lib/ele-text/index.d.ts +4 -4
- package/lib/ele-text/props.d.ts +1 -1
- package/lib/ele-text/types.d.ts +35 -0
- package/lib/ele-tooltip/index.d.ts +1 -1
- package/lib/ele-tooltip/props.d.ts +7 -7
- package/lib/ele-tour/index.d.ts +1 -1
- package/lib/ele-tour/types.d.ts +42 -0
- package/lib/ele-tour/util.d.ts +1 -1
- package/lib/ele-tree-select/index.d.ts +4 -3
- package/lib/ele-tree-select/props.d.ts +1 -1
- package/lib/ele-tree-select/style/index.scss +4 -0
- package/lib/ele-tree-select/{types/index.d.ts → types.d.ts} +5 -1
- package/lib/ele-upload-list/components/list-item.d.ts +1 -1
- package/lib/ele-upload-list/index.d.ts +4 -4
- package/lib/ele-upload-list/props.d.ts +1 -1
- package/lib/ele-upload-list/types.d.ts +45 -0
- package/lib/ele-virtual-table/components/body-cell.d.ts +1 -1
- package/lib/ele-virtual-table/components/body-row.d.ts +1 -1
- package/lib/ele-virtual-table/components/cell-filter.d.ts +1 -1
- package/lib/ele-virtual-table/index.d.ts +10 -9
- package/lib/ele-virtual-table/types.d.ts +195 -0
- package/lib/ele-watermark/index.d.ts +1 -1
- package/lib/ele-watermark/types.d.ts +39 -0
- package/package.json +88 -8
- package/es/ele-app/types/components.d.ts +0 -51
- package/es/ele-app/types/index.d.ts +0 -3
- package/es/ele-avatar-group/types/index.d.ts +0 -20
- package/es/ele-breadcrumb/types/index.d.ts +0 -19
- package/es/ele-check-card/types/index.d.ts +0 -32
- package/es/ele-config-provider/types/index.d.ts +0 -102
- package/es/ele-cropper/types/index.d.ts +0 -77
- package/es/ele-dropdown/types/index.d.ts +0 -18
- package/es/ele-ellipsis/types/index.d.ts +0 -8
- package/es/ele-file-list/types/index.d.ts +0 -95
- package/es/ele-icon-select/types/index.d.ts +0 -16
- package/es/ele-map-picker/types/index.d.ts +0 -88
- package/es/ele-menus/types/index.d.ts +0 -78
- package/es/ele-printer/types/index.d.ts +0 -44
- package/es/ele-pro-layout/types/index.d.ts +0 -226
- package/es/ele-pro-table/types/index.d.ts +0 -219
- package/es/ele-qr-code/types/index.d.ts +0 -38
- package/es/ele-segmented/types/index.d.ts +0 -25
- package/es/ele-tabs/types/index.d.ts +0 -50
- package/es/ele-text/types/index.d.ts +0 -13
- package/es/ele-tour/types/index.d.ts +0 -38
- package/es/ele-upload-list/types/index.d.ts +0 -42
- package/es/ele-virtual-table/types/index.d.ts +0 -161
- package/es/ele-watermark/types/index.d.ts +0 -36
- package/lib/ele-app/types/components.d.ts +0 -51
- package/lib/ele-app/types/index.d.ts +0 -3
- package/lib/ele-avatar-group/types/index.d.ts +0 -20
- package/lib/ele-breadcrumb/types/index.d.ts +0 -19
- package/lib/ele-check-card/types/index.d.ts +0 -32
- package/lib/ele-config-provider/types/index.d.ts +0 -102
- package/lib/ele-cropper/types/index.d.ts +0 -77
- package/lib/ele-dropdown/types/index.d.ts +0 -18
- package/lib/ele-ellipsis/types/index.d.ts +0 -8
- package/lib/ele-file-list/types/index.d.ts +0 -95
- package/lib/ele-icon-select/types/index.d.ts +0 -16
- package/lib/ele-map-picker/types/index.d.ts +0 -88
- package/lib/ele-menus/types/index.d.ts +0 -78
- package/lib/ele-printer/types/index.d.ts +0 -44
- package/lib/ele-pro-layout/types/index.d.ts +0 -226
- package/lib/ele-pro-table/types/index.d.ts +0 -219
- package/lib/ele-qr-code/types/index.d.ts +0 -38
- package/lib/ele-segmented/types/index.d.ts +0 -25
- package/lib/ele-tabs/types/index.d.ts +0 -50
- package/lib/ele-text/types/index.d.ts +0 -13
- package/lib/ele-tour/types/index.d.ts +0 -38
- package/lib/ele-upload-list/types/index.d.ts +0 -42
- package/lib/ele-virtual-table/types/index.d.ts +0 -161
- package/lib/ele-watermark/types/index.d.ts +0 -36
- /package/es/ele-dashboard/{types/index.d.ts → types.d.ts} +0 -0
- /package/es/ele-dot/{types/index.d.ts → types.d.ts} +0 -0
- /package/es/ele-pagination/{types/index.d.ts → types.d.ts} +0 -0
- /package/es/ele-toolbar/{types/index.d.ts → types.d.ts} +0 -0
- /package/lib/ele-dashboard/{types/index.d.ts → types.d.ts} +0 -0
- /package/lib/ele-dot/{types/index.d.ts → types.d.ts} +0 -0
- /package/lib/ele-pagination/{types/index.d.ts → types.d.ts} +0 -0
- /package/lib/ele-toolbar/{types/index.d.ts → types.d.ts} +0 -0
|
@@ -1,208 +1,245 @@
|
|
|
1
1
|
import type { Sort } from 'element-plus/es/components/table';
|
|
2
|
-
import type {
|
|
2
|
+
import type {
|
|
3
|
+
ElTableProps,
|
|
4
|
+
ElColumnProps,
|
|
5
|
+
ElTableInstance,
|
|
6
|
+
ElEmptyProps
|
|
7
|
+
} from '../ele-app/el';
|
|
8
|
+
|
|
3
9
|
/**
|
|
4
10
|
* 数据唯一键
|
|
5
11
|
*/
|
|
6
12
|
export type DataKey = string | number;
|
|
13
|
+
|
|
7
14
|
/**
|
|
8
15
|
* 数据
|
|
9
16
|
*/
|
|
10
17
|
export interface DataItem extends Record<keyof any, any> {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
18
|
+
/** 子级数据 */
|
|
19
|
+
children?: DataItem[];
|
|
20
|
+
/** 是否为模拟数据 */
|
|
21
|
+
_isMock?: boolean;
|
|
22
|
+
/** 行唯一值 */
|
|
23
|
+
_rowKey?: DataKey | null;
|
|
24
|
+
/** 行索引 */
|
|
25
|
+
_rowIndex?: number;
|
|
26
|
+
/** 行是否禁用 */
|
|
27
|
+
_rowDisabled?: boolean;
|
|
28
|
+
/** 是否是展开行 */
|
|
29
|
+
_isExpandRow?: boolean;
|
|
30
|
+
/** 展开行对应的行数据 */
|
|
31
|
+
_expandParent?: DataItem;
|
|
32
|
+
/** 展开行对应的行索引 */
|
|
33
|
+
_expandParantIndex?: number;
|
|
27
34
|
}
|
|
35
|
+
|
|
28
36
|
/**
|
|
29
37
|
* 原始列属性
|
|
30
38
|
*/
|
|
31
39
|
export type TableColumn = Partial<ElColumnProps>;
|
|
40
|
+
|
|
32
41
|
/**
|
|
33
42
|
* 列属性
|
|
34
43
|
*/
|
|
35
44
|
export interface Column extends TableColumn {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
/** 唯一标识 */
|
|
46
|
+
uid?: string;
|
|
47
|
+
/** 插槽名称 */
|
|
48
|
+
slot?: string;
|
|
49
|
+
/** 表头插槽名称 */
|
|
50
|
+
headerSlot?: string;
|
|
51
|
+
/** 是否隐藏 */
|
|
52
|
+
hideInTable?: boolean;
|
|
53
|
+
/** 是否不显示在列配置中 */
|
|
54
|
+
hideInSetting?: boolean;
|
|
55
|
+
/** 子级 */
|
|
56
|
+
children?: Columns;
|
|
48
57
|
}
|
|
58
|
+
|
|
49
59
|
/**
|
|
50
60
|
* 列属性
|
|
51
61
|
*/
|
|
52
62
|
export type Columns = Column[];
|
|
63
|
+
|
|
53
64
|
/**
|
|
54
65
|
* 排序方式
|
|
55
66
|
*/
|
|
56
67
|
export interface Sorter extends Partial<Sort> {
|
|
57
|
-
|
|
58
|
-
|
|
68
|
+
/** 列配置 */
|
|
69
|
+
column?: Column;
|
|
59
70
|
}
|
|
71
|
+
|
|
60
72
|
/**
|
|
61
73
|
* 筛选条件
|
|
62
74
|
*/
|
|
63
75
|
export type Filter = Record<string, FilterValue>;
|
|
76
|
+
|
|
64
77
|
/**
|
|
65
78
|
* 筛选值
|
|
66
79
|
*/
|
|
67
80
|
export type FilterValue = string[] | undefined;
|
|
81
|
+
|
|
68
82
|
/**
|
|
69
83
|
* 排序方式值
|
|
70
84
|
*/
|
|
71
85
|
export type OrderValue = Exclude<Sorter['order'], undefined>;
|
|
86
|
+
|
|
72
87
|
/**
|
|
73
88
|
* 表格状态
|
|
74
89
|
*/
|
|
75
90
|
export interface TableState {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
91
|
+
/** 当前排序参数 */
|
|
92
|
+
sorter?: Sorter;
|
|
93
|
+
/** 当前筛选参数 */
|
|
94
|
+
filter?: Filter;
|
|
95
|
+
/** 单选选中值 */
|
|
96
|
+
key: DataKey | null;
|
|
97
|
+
/** 单选选中数据 */
|
|
98
|
+
row?: DataItem;
|
|
99
|
+
/** 单选上次选中数据 */
|
|
100
|
+
oldRow?: DataItem;
|
|
101
|
+
/** 多选选中值 */
|
|
102
|
+
checkedKeys: DataKey[];
|
|
103
|
+
/** 多选选中数据 */
|
|
104
|
+
checked: DataItem[];
|
|
105
|
+
/** 多选选中是否保留不存在的数据 */
|
|
106
|
+
reserveChecked: boolean;
|
|
92
107
|
}
|
|
108
|
+
|
|
93
109
|
/**
|
|
94
110
|
* 多选时行点击选中
|
|
95
111
|
*/
|
|
96
112
|
export type RowClickChecked = boolean | 'smart';
|
|
113
|
+
|
|
97
114
|
/**
|
|
98
115
|
* 表格空组件属性
|
|
99
116
|
*/
|
|
100
117
|
export type TableEmptyProps = boolean | ElEmptyProps;
|
|
118
|
+
|
|
101
119
|
/**
|
|
102
120
|
* 获取表格实例
|
|
103
121
|
*/
|
|
104
122
|
export type GetInstance = () => ElTableInstance | undefined | null;
|
|
123
|
+
|
|
105
124
|
/**
|
|
106
125
|
* 表格实例方法
|
|
107
126
|
*/
|
|
108
127
|
export interface TableMethods {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
128
|
+
clearSelection: () => void;
|
|
129
|
+
getSelectionRows: () => DataItem[] | undefined;
|
|
130
|
+
toggleRowSelection: (row: DataItem, selected?: boolean) => void;
|
|
131
|
+
toggleAllSelection: () => void;
|
|
132
|
+
toggleRowExpansion: (row: DataItem, expanded?: boolean) => void;
|
|
133
|
+
setCurrentRow: (row?: DataItem | null) => void;
|
|
134
|
+
clearSort: () => void;
|
|
135
|
+
clearFilter: (columnKeys?: string[]) => void;
|
|
136
|
+
doLayout: () => void;
|
|
137
|
+
sort: (prop: string, order: string) => void;
|
|
138
|
+
scrollTo: (options: number | ScrollToOptions, yCoord?: number) => void;
|
|
139
|
+
setScrollTop: (top?: number) => void;
|
|
140
|
+
setScrollLeft: (left?: number) => void;
|
|
141
|
+
/** 设置单选选中值 */
|
|
142
|
+
setCurrentRowKey: (key?: DataKey | null) => void;
|
|
143
|
+
/** 获取单选选中数据 */
|
|
144
|
+
getCurrentRow: () => DataItem | undefined;
|
|
145
|
+
/** 设置多选选中数据 */
|
|
146
|
+
setSelectedRows: (rows?: DataItem[]) => void;
|
|
147
|
+
/** 设置多选选中值 */
|
|
148
|
+
setSelectedRowKeys: (keys?: DataKey[], rows?: DataItem[]) => void;
|
|
149
|
+
/** 切换所有行展开状态 */
|
|
150
|
+
toggleRowExpansionAll: (expanded?: boolean) => void;
|
|
151
|
+
/** 更新单选和多选选中 */
|
|
152
|
+
updateSelectedAndChecked: () => void;
|
|
134
153
|
}
|
|
154
|
+
|
|
135
155
|
/**
|
|
136
156
|
* 表格尺寸
|
|
137
157
|
*/
|
|
138
158
|
export type TableSize = ElTableProps<DataItem>['size'];
|
|
159
|
+
|
|
139
160
|
/**
|
|
140
161
|
* 树表格懒加载方法
|
|
141
162
|
*/
|
|
142
163
|
export type TableLoad = ElTableProps<DataItem>['load'];
|
|
164
|
+
|
|
143
165
|
/**
|
|
144
166
|
* 树表格懒加载回调
|
|
145
167
|
*/
|
|
146
168
|
export type ResolveFunction = (data: DataItem[]) => void;
|
|
169
|
+
|
|
147
170
|
/**
|
|
148
171
|
* 嵌套数据配置项
|
|
149
172
|
*/
|
|
150
173
|
export interface TreeProps {
|
|
151
|
-
|
|
152
|
-
|
|
174
|
+
hasChildren?: string;
|
|
175
|
+
children?: string;
|
|
153
176
|
}
|
|
177
|
+
|
|
154
178
|
/**
|
|
155
179
|
* 溢出提示组件属性
|
|
156
180
|
*/
|
|
157
181
|
export type ShowOverflowTooltip = Column['showOverflowTooltip'];
|
|
182
|
+
|
|
158
183
|
/**
|
|
159
184
|
* 溢出提示组件主题
|
|
160
185
|
*/
|
|
161
186
|
export type TooltipEffect = ElTableProps<DataItem>['tooltipEffect'];
|
|
187
|
+
|
|
162
188
|
/**
|
|
163
189
|
* 溢出提示组件全局配置
|
|
164
190
|
*/
|
|
165
191
|
export type TooltipOptions = ElTableProps<DataItem>['tooltipOptions'];
|
|
192
|
+
|
|
166
193
|
/**
|
|
167
194
|
* 单元格类名自定义
|
|
168
195
|
*/
|
|
169
196
|
export type CellClass = ElTableProps<DataItem>['cellClassName'];
|
|
197
|
+
|
|
170
198
|
/**
|
|
171
199
|
* 单元格样式自定义
|
|
172
200
|
*/
|
|
173
201
|
export type CellStyle = ElTableProps<DataItem>['cellStyle'];
|
|
202
|
+
|
|
174
203
|
/**
|
|
175
204
|
* 行类名自定义
|
|
176
205
|
*/
|
|
177
206
|
export type RowClass = ElTableProps<DataItem>['rowClassName'];
|
|
207
|
+
|
|
178
208
|
/**
|
|
179
209
|
* 行样式自定义
|
|
180
210
|
*/
|
|
181
211
|
export type RowStyle = ElTableProps<DataItem>['rowStyle'];
|
|
212
|
+
|
|
182
213
|
/**
|
|
183
214
|
* 表头单元格类名自定义
|
|
184
215
|
*/
|
|
185
216
|
export type HeaderCellClass = ElTableProps<DataItem>['headerCellClassName'];
|
|
217
|
+
|
|
186
218
|
/**
|
|
187
219
|
* 表头单元格样式自定义
|
|
188
220
|
*/
|
|
189
221
|
export type HeaderCellStyle = ElTableProps<DataItem>['headerCellStyle'];
|
|
222
|
+
|
|
190
223
|
/**
|
|
191
224
|
* 表头行类名自定义
|
|
192
225
|
*/
|
|
193
226
|
export type HeaderRowClass = ElTableProps<DataItem>['headerRowClassName'];
|
|
227
|
+
|
|
194
228
|
/**
|
|
195
229
|
* 表头行样式自定义
|
|
196
230
|
*/
|
|
197
231
|
export type HeaderRowStyle = ElTableProps<DataItem>['headerRowStyle'];
|
|
232
|
+
|
|
198
233
|
/**
|
|
199
234
|
* 单元格合并方法
|
|
200
235
|
*/
|
|
201
236
|
export type SpanMethod = ElTableProps<DataItem>['spanMethod'];
|
|
237
|
+
|
|
202
238
|
/**
|
|
203
239
|
* 行数据唯一值的字段名
|
|
204
240
|
*/
|
|
205
241
|
export type RowKey = ElTableProps<DataItem>['rowKey'];
|
|
242
|
+
|
|
206
243
|
/**
|
|
207
244
|
* 控制行是否可选中的方法
|
|
208
245
|
*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Slots, VNode } from 'vue';
|
|
2
|
-
import type { Emitter
|
|
2
|
+
import type { Emitter } from '../ele-app/types';
|
|
3
|
+
import type { ElEmptyProps, ElTableInstance } from '../ele-app/el';
|
|
3
4
|
import type { dataTableEmits } from './props';
|
|
4
5
|
import type { DataKey, DataItem, Column, Columns, Sorter, Filter, GetInstance, TableMethods, ShowOverflowTooltip, TooltipEffect, TooltipOptions, RowClass, RowKey } from './types';
|
|
5
6
|
/**
|
package/es/ele-drawer/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ElDrawerInstance } from '../ele-app/
|
|
1
|
+
import type { ElDrawerInstance } from '../ele-app/el';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
|
3
3
|
headerStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
4
4
|
titleStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
@@ -13,7 +13,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13
13
|
appendToBody: BooleanConstructor;
|
|
14
14
|
appendTo: import("element-plus/es/utils/index").EpPropFinalized<(new (...args: any[]) => string & {}) | (() => string) | ((new (...args: any[]) => string & {}) | (() => string))[], unknown, unknown, "body", boolean>;
|
|
15
15
|
beforeClose: {
|
|
16
|
-
readonly type: import("vue").PropType<import("element-plus").DialogBeforeCloseFn>;
|
|
16
|
+
readonly type: import("vue").PropType<import("element-plus").DialogBeforeCloseFn>;
|
|
17
17
|
readonly required: false;
|
|
18
18
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
19
19
|
__epPropKey: true;
|
|
@@ -90,7 +90,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
90
90
|
appendToBody: BooleanConstructor;
|
|
91
91
|
appendTo: import("element-plus/es/utils/index").EpPropFinalized<(new (...args: any[]) => string & {}) | (() => string) | ((new (...args: any[]) => string & {}) | (() => string))[], unknown, unknown, "body", boolean>;
|
|
92
92
|
beforeClose: {
|
|
93
|
-
readonly type: import("vue").PropType<import("element-plus").DialogBeforeCloseFn>;
|
|
93
|
+
readonly type: import("vue").PropType<import("element-plus").DialogBeforeCloseFn>;
|
|
94
94
|
readonly required: false;
|
|
95
95
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
96
96
|
__epPropKey: true;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ElDropdownProps, ElDropdownInstance } from '../ele-app/
|
|
1
|
+
import type { ElDropdownProps, ElDropdownInstance } from '../ele-app/el';
|
|
2
2
|
import { omit } from '../utils/core';
|
|
3
3
|
import type { DropdownItem } from './types';
|
|
4
4
|
declare const _default: import("vue").DefineComponent<{
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { StyleValue } from '../ele-app/types';
|
|
2
|
+
import type { ElIconProps, ElDropdownItemProps } from '../ele-app/el';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* 下拉菜单数据
|
|
6
|
+
*/
|
|
7
|
+
export interface DropdownItem extends ElDropdownItemProps {
|
|
8
|
+
/** 循环的 key */
|
|
9
|
+
key?: string | number | symbol;
|
|
10
|
+
/** 标题 */
|
|
11
|
+
title?: string;
|
|
12
|
+
/** 图标属性 */
|
|
13
|
+
iconProps?: ElIconProps;
|
|
14
|
+
/** 图标样式 */
|
|
15
|
+
iconStyle?: StyleValue;
|
|
16
|
+
/** 插槽名称 */
|
|
17
|
+
slot?: Exclude<string, 'default'>;
|
|
18
|
+
/** 是否为危险样式 */
|
|
19
|
+
danger?: boolean;
|
|
20
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ElInputInstance } from '../ele-app/
|
|
1
|
+
import type { ElInputInstance } from '../ele-app/el';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
|
3
3
|
modelValue: import("vue").PropType<string[]>;
|
|
4
4
|
type: import("vue").PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, "" | "success" | "warning" | "info" | "danger", unknown> | undefined>;
|
|
@@ -11,7 +11,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
11
|
buttonStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
12
12
|
validator: import("vue").PropType<import("./types").Validator>;
|
|
13
13
|
beforeRemove: import("vue").PropType<import("./types").BeforeRemove>;
|
|
14
|
-
tooltipProps: import("vue").PropType<Partial<import("../ele-tooltip/props").TooltipProps>>;
|
|
14
|
+
tooltipProps: import("vue").PropType<Partial<import("../ele-tooltip/props").TooltipProps>>; /** 提示信息 */
|
|
15
15
|
}, {
|
|
16
16
|
inputRef: import("vue").Ref<ElInputInstance>;
|
|
17
17
|
isEdit: import("vue").Ref<boolean>;
|
|
@@ -38,7 +38,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
38
38
|
buttonStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
39
39
|
validator: import("vue").PropType<import("./types").Validator>;
|
|
40
40
|
beforeRemove: import("vue").PropType<import("./types").BeforeRemove>;
|
|
41
|
-
tooltipProps: import("vue").PropType<Partial<import("../ele-tooltip/props").TooltipProps>>;
|
|
41
|
+
tooltipProps: import("vue").PropType<Partial<import("../ele-tooltip/props").TooltipProps>>; /** 提示信息 */
|
|
42
42
|
}>> & {
|
|
43
43
|
"onUpdate:modelValue"?: ((_value?: string[] | undefined) => any) | undefined;
|
|
44
44
|
}, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EleTextProps, EleTextInstance } from '../ele-app/
|
|
1
|
+
import type { EleTextProps, EleTextInstance } from '../ele-app/plus';
|
|
2
2
|
import type { EllipsisTooltip } from './types';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
maxLine: NumberConstructor;
|
|
@@ -20,7 +20,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
20
20
|
strong: BooleanConstructor;
|
|
21
21
|
italic: BooleanConstructor;
|
|
22
22
|
icon: import("vue").PropType<import("../ele-text/types").TextIcon>;
|
|
23
|
-
iconProps: import("vue").PropType<import("../ele-app/
|
|
23
|
+
iconProps: import("vue").PropType<import("../ele-app/el").ElIconProps>;
|
|
24
24
|
iconStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
25
25
|
}, {
|
|
26
26
|
textRef: import("vue").Ref<EleTextInstance>;
|
|
@@ -50,7 +50,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
50
50
|
strong: BooleanConstructor;
|
|
51
51
|
italic: BooleanConstructor;
|
|
52
52
|
icon: import("vue").PropType<import("../ele-text/types").TextIcon>;
|
|
53
|
-
iconProps: import("vue").PropType<import("../ele-app/
|
|
53
|
+
iconProps: import("vue").PropType<import("../ele-app/el").ElIconProps>;
|
|
54
54
|
iconStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
55
55
|
}>>, {
|
|
56
56
|
tag: string;
|
|
@@ -26,7 +26,7 @@ export declare const ellipsisProps: {
|
|
|
26
26
|
strong: BooleanConstructor;
|
|
27
27
|
italic: BooleanConstructor;
|
|
28
28
|
icon: PropType<import("../ele-text/types").TextIcon>;
|
|
29
|
-
iconProps: PropType<import("../ele-app/
|
|
29
|
+
iconProps: PropType<import("../ele-app/el").ElIconProps>;
|
|
30
30
|
iconStyle: PropType<Partial<import("vue").CSSProperties>>;
|
|
31
31
|
};
|
|
32
32
|
export type EllipsisProps = ExtractPropTypes<typeof ellipsisProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
-
import type { EleDropdownProps, EleDropdownInstance } from '../../ele-app/
|
|
2
|
+
import type { EleDropdownProps, EleDropdownInstance } from '../../ele-app/plus';
|
|
3
3
|
import type { DropdownItem } from '../../ele-dropdown/types';
|
|
4
4
|
import type { IconItem, FileItem, ItemContextMenuOption, SelectionType } from '../types';
|
|
5
5
|
declare const _default: import("vue").DefineComponent<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PropType, Ref } from 'vue';
|
|
2
|
-
import type { EleDropdownProps, EleDropdownInstance } from '../../ele-app/
|
|
2
|
+
import type { EleDropdownProps, EleDropdownInstance } from '../../ele-app/plus';
|
|
3
3
|
import type { GridItemInstance } from '../props';
|
|
4
4
|
import type { IconItem, FileItem, ItemContextMenuOption, SelectionType, ContextMenus } from '../types';
|
|
5
5
|
declare const _default: import("vue").DefineComponent<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
-
import type { EleDropdownProps, EleDropdownInstance } from '../../ele-app/
|
|
2
|
+
import type { EleDropdownProps, EleDropdownInstance } from '../../ele-app/plus';
|
|
3
3
|
import type { DropdownItem } from '../../ele-dropdown/types';
|
|
4
4
|
import type { IconItem, FileItem, ColumnItem, ItemContextMenuOption, SelectionType } from '../types';
|
|
5
5
|
declare const _default: import("vue").DefineComponent<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PropType, Ref } from 'vue';
|
|
2
|
-
import type { EleDropdownProps, EleDropdownInstance } from '../../ele-app/
|
|
2
|
+
import type { EleDropdownProps, EleDropdownInstance } from '../../ele-app/plus';
|
|
3
3
|
import type { TableItemInstance } from '../props';
|
|
4
4
|
import type { IconItem, FileItem, ColumnItem, ItemContextMenuOption, SelectionType, ContextMenus } from '../types';
|
|
5
5
|
declare const _default: import("vue").DefineComponent<{
|
|
@@ -26,7 +26,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
26
26
|
columns: import("vue").PropType<import("./types").ColumnItem[]>;
|
|
27
27
|
boxChoose: BooleanConstructor;
|
|
28
28
|
contextMenus: import("vue").PropType<import("./types").ContextMenus>;
|
|
29
|
-
contextMenuProps: import("vue").PropType<import("../ele-app/
|
|
29
|
+
contextMenuProps: import("vue").PropType<import("../ele-app/plus").EleDropdownProps>;
|
|
30
30
|
locale: import("vue").PropType<Partial<FileListLocale>>;
|
|
31
31
|
}, {
|
|
32
32
|
lang: import("vue").ComputedRef<FileListLocale>;
|
|
@@ -71,7 +71,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
71
71
|
columns: import("vue").PropType<import("./types").ColumnItem[]>;
|
|
72
72
|
boxChoose: BooleanConstructor;
|
|
73
73
|
contextMenus: import("vue").PropType<import("./types").ContextMenus>;
|
|
74
|
-
contextMenuProps: import("vue").PropType<import("../ele-app/
|
|
74
|
+
contextMenuProps: import("vue").PropType<import("../ele-app/plus").EleDropdownProps>;
|
|
75
75
|
locale: import("vue").PropType<Partial<FileListLocale>>;
|
|
76
76
|
}>> & {
|
|
77
77
|
onSortChange?: ((_sorter: SortValue) => any) | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PropType, ExtractPropTypes } from 'vue';
|
|
2
|
-
import type { EleDropdownProps } from '../ele-app/
|
|
2
|
+
import type { EleDropdownProps } from '../ele-app/plus';
|
|
3
3
|
import type FileGridItem from "./components/file-grid-item";
|
|
4
4
|
import type FileTableItem from "./components/file-table-item";
|
|
5
5
|
import type { IconItem, FileItem, SortValue, ItemContextMenuOption, ColumnItem, SelectionType, ContextMenus, FileListLocale } from './types';
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import type { StyleValue } from '../ele-app/types';
|
|
2
|
+
import type { DropdownItem } from '../ele-dropdown/types';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* 图标数据
|
|
6
|
+
*/
|
|
7
|
+
export interface IconItem {
|
|
8
|
+
/** 图标地址 */
|
|
9
|
+
icon: string;
|
|
10
|
+
/** 类型 */
|
|
11
|
+
type?: IconItemType;
|
|
12
|
+
/** 对应文件后缀 */
|
|
13
|
+
suffixes?: string[];
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* 图标类型
|
|
18
|
+
*/
|
|
19
|
+
export type IconItemType = 'file' | 'dir';
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* 文件数据格式
|
|
23
|
+
*/
|
|
24
|
+
export interface FileItem extends Record<string | number | symbol, unknown> {
|
|
25
|
+
/** 唯一标识 */
|
|
26
|
+
key: string;
|
|
27
|
+
/** 文件名称 */
|
|
28
|
+
name: string;
|
|
29
|
+
/** 文件访问地址 */
|
|
30
|
+
url?: string;
|
|
31
|
+
/** 缩略图访问地址 */
|
|
32
|
+
thumbnail?: string;
|
|
33
|
+
/** 是否是文件夹 */
|
|
34
|
+
isDirectory?: boolean;
|
|
35
|
+
/** 文件大小 */
|
|
36
|
+
length?: string;
|
|
37
|
+
/** 文件修改日期 */
|
|
38
|
+
updateTime?: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* 排序结果
|
|
43
|
+
*/
|
|
44
|
+
export interface SortValue {
|
|
45
|
+
/** 排序字段 */
|
|
46
|
+
sort: string;
|
|
47
|
+
/** 排序方式 */
|
|
48
|
+
order?: 'asc' | 'desc' | null;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* 表格自定义列
|
|
53
|
+
*/
|
|
54
|
+
export interface ColumnItem {
|
|
55
|
+
/** 标题 */
|
|
56
|
+
title?: string;
|
|
57
|
+
/** 字段名 */
|
|
58
|
+
prop: string;
|
|
59
|
+
/** 插槽 */
|
|
60
|
+
slot?: string;
|
|
61
|
+
/** 表头插槽 */
|
|
62
|
+
headerSlot?: string;
|
|
63
|
+
/** 自定义样式 */
|
|
64
|
+
style?: StyleValue;
|
|
65
|
+
/** 自定义表头样式 */
|
|
66
|
+
headerStyle?: StyleValue;
|
|
67
|
+
/** 是否可以排序 */
|
|
68
|
+
sortable?: boolean;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* 右键菜单事件参数
|
|
73
|
+
*/
|
|
74
|
+
export interface ItemContextMenuOption {
|
|
75
|
+
/** 指令 */
|
|
76
|
+
key: string;
|
|
77
|
+
/** 数据 */
|
|
78
|
+
item: FileItem;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* 选择框类型
|
|
83
|
+
*/
|
|
84
|
+
export type SelectionType = 'checkbox' | 'radio';
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* 获取右键菜单方法
|
|
88
|
+
*/
|
|
89
|
+
export type ContextMenusFunc = (item: FileItem) => DropdownItem[];
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* 右键菜单属性
|
|
93
|
+
*/
|
|
94
|
+
export type ContextMenus = DropdownItem[] | ContextMenusFunc;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* 国际化
|
|
98
|
+
*/
|
|
99
|
+
export interface FileListLocale {
|
|
100
|
+
selectAll: string;
|
|
101
|
+
selectTips: string;
|
|
102
|
+
fileName: string;
|
|
103
|
+
fileSize: string;
|
|
104
|
+
fileTimestamp: string;
|
|
105
|
+
}
|