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,219 +0,0 @@
|
|
|
1
|
-
import type { EleDataTableInstance, EleVirtualTableInstance, ElePaginationProps } from '../../ele-app/types';
|
|
2
|
-
import type { DataItem, Column, Columns, Sorter, Filter, TableColumn, TableSize, ResolveFunction } from '../../ele-data-table/types';
|
|
3
|
-
export type { DataItem, Column, Columns, Sorter, Filter, TableColumn, TableSize, ResolveFunction };
|
|
4
|
-
/**
|
|
5
|
-
* 搜索参数
|
|
6
|
-
*/
|
|
7
|
-
export type Where = Record<keyof any, any>;
|
|
8
|
-
/**
|
|
9
|
-
* 排序参数
|
|
10
|
-
*/
|
|
11
|
-
export type Orders = Record<string, OrderValue>;
|
|
12
|
-
/**
|
|
13
|
-
* 筛选参数
|
|
14
|
-
*/
|
|
15
|
-
export type Filters = Record<string, any>;
|
|
16
|
-
/**
|
|
17
|
-
* 数据源方法参数
|
|
18
|
-
*/
|
|
19
|
-
export interface DatasourceParams {
|
|
20
|
-
/** 页码 */
|
|
21
|
-
page?: number;
|
|
22
|
-
/** 每页显示数量 */
|
|
23
|
-
limit?: number;
|
|
24
|
-
/** 搜索参数 */
|
|
25
|
-
where: Where;
|
|
26
|
-
/** 排序参数 */
|
|
27
|
-
orders: Orders;
|
|
28
|
-
/** 筛选参数 */
|
|
29
|
-
filters: Filters;
|
|
30
|
-
/** 排序方式 */
|
|
31
|
-
sorter: Sorter;
|
|
32
|
-
/** 筛选条件 */
|
|
33
|
-
filter: Filter;
|
|
34
|
-
/** 树表懒加载父级数据 */
|
|
35
|
-
parent?: DataItem;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* 数据源方法返回结果
|
|
39
|
-
*/
|
|
40
|
-
export type DatasourceResult = DataItem[] | Record<string, any> | undefined;
|
|
41
|
-
/**
|
|
42
|
-
* 数据源方法
|
|
43
|
-
* @param params 参数
|
|
44
|
-
*/
|
|
45
|
-
export type DatasourceFunction = (params: DatasourceParams) => Promise<DatasourceResult>;
|
|
46
|
-
/**
|
|
47
|
-
* 数据源
|
|
48
|
-
*/
|
|
49
|
-
export type Datasource = DataItem[] | DatasourceFunction;
|
|
50
|
-
/**
|
|
51
|
-
* 刷新方法参数
|
|
52
|
-
*/
|
|
53
|
-
export interface ReloadParams {
|
|
54
|
-
/** 页码 */
|
|
55
|
-
page?: number;
|
|
56
|
-
/** 每页数量 */
|
|
57
|
-
limit?: number;
|
|
58
|
-
/** 搜索参数 */
|
|
59
|
-
where?: Where;
|
|
60
|
-
/** 排序方式 */
|
|
61
|
-
sorter?: Sorter;
|
|
62
|
-
/** 筛选条件 */
|
|
63
|
-
filter?: Filter;
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* 刷新方法
|
|
67
|
-
* @param option 刷新参数
|
|
68
|
-
* @param parent 树表格父级数据
|
|
69
|
-
* @param resolve 树表格懒加载方法
|
|
70
|
-
*/
|
|
71
|
-
export type ReloadFunction = (option?: ReloadParams, parent?: DataItem, resolve?: ResolveFunction) => void;
|
|
72
|
-
/**
|
|
73
|
-
* 排序的值
|
|
74
|
-
*/
|
|
75
|
-
export type OrderValue = string | number | boolean | null | undefined;
|
|
76
|
-
/**
|
|
77
|
-
* 请求参数设置
|
|
78
|
-
*/
|
|
79
|
-
export interface RequestOption {
|
|
80
|
-
/** 排序字段参数名称 */
|
|
81
|
-
sortName?: string;
|
|
82
|
-
/** 排序方式参数名称 */
|
|
83
|
-
orderName?: string;
|
|
84
|
-
/** 升序的排序值 */
|
|
85
|
-
ascValue?: OrderValue;
|
|
86
|
-
/** 降序的排序值 */
|
|
87
|
-
descValue?: OrderValue;
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* 响应参数设置
|
|
91
|
-
*/
|
|
92
|
-
export interface ResponseOption {
|
|
93
|
-
/** 数据列表字段名称 */
|
|
94
|
-
dataName?: string;
|
|
95
|
-
/** 数据总数字段名称 */
|
|
96
|
-
countName?: string;
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* 响应数据解析
|
|
100
|
-
*/
|
|
101
|
-
export type ParseData = (data: unknown) => DatasourceResult;
|
|
102
|
-
/**
|
|
103
|
-
* 排序方式封装
|
|
104
|
-
*/
|
|
105
|
-
export interface OrderItem {
|
|
106
|
-
/** 排序字段名 */
|
|
107
|
-
field: string;
|
|
108
|
-
/** 是否是降序 */
|
|
109
|
-
descend: boolean;
|
|
110
|
-
/** 自定义排序方法 */
|
|
111
|
-
sortMethod?: (a: DataItem, b: DataItem) => number;
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* 渲染完成事件参数
|
|
115
|
-
*/
|
|
116
|
-
export interface DoneParams<T> {
|
|
117
|
-
/** 当前页数据 */
|
|
118
|
-
data: T[];
|
|
119
|
-
/** 当前页码 */
|
|
120
|
-
page?: number;
|
|
121
|
-
/** 总数量 */
|
|
122
|
-
total?: number;
|
|
123
|
-
/** 数据源原始数据 */
|
|
124
|
-
response?: any;
|
|
125
|
-
}
|
|
126
|
-
/**
|
|
127
|
-
* 渲染完成事件
|
|
128
|
-
*/
|
|
129
|
-
export type DoneFunction<T> = (
|
|
130
|
-
/** 返回结果 */
|
|
131
|
-
result: DoneParams<T>,
|
|
132
|
-
/** 树形表格时父级数据 */
|
|
133
|
-
parent?: T) => void;
|
|
134
|
-
/**
|
|
135
|
-
* 分页组件属性
|
|
136
|
-
*/
|
|
137
|
-
export interface TablePagination extends ElePaginationProps {
|
|
138
|
-
/** 是否自动修正页码 */
|
|
139
|
-
autoAmend?: boolean;
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* 内置工具按钮
|
|
143
|
-
*/
|
|
144
|
-
export type TableTool = 'reload' | 'size' | 'columns' | 'maximized' | string;
|
|
145
|
-
/**
|
|
146
|
-
* 列配置
|
|
147
|
-
*/
|
|
148
|
-
export interface ColItem {
|
|
149
|
-
/** 列配置标识 */
|
|
150
|
-
uid: string;
|
|
151
|
-
/** 标题 */
|
|
152
|
-
label?: string;
|
|
153
|
-
/** 是否选中 */
|
|
154
|
-
checked?: boolean;
|
|
155
|
-
/** 是否固定 */
|
|
156
|
-
fixed?: boolean | string;
|
|
157
|
-
/** 子级数据 */
|
|
158
|
-
children?: ColItem[];
|
|
159
|
-
}
|
|
160
|
-
/**
|
|
161
|
-
* 请求回调参数
|
|
162
|
-
*/
|
|
163
|
-
export type FetchCallback = (options: DatasourceParams) => void;
|
|
164
|
-
/**
|
|
165
|
-
* 前端分页排序方法返回结果
|
|
166
|
-
*/
|
|
167
|
-
export interface ReloadDataResult {
|
|
168
|
-
/** 当前数据 */
|
|
169
|
-
data: DataItem[];
|
|
170
|
-
/** 当前页码 */
|
|
171
|
-
page: number;
|
|
172
|
-
/** 总数量 */
|
|
173
|
-
total: number;
|
|
174
|
-
}
|
|
175
|
-
/**
|
|
176
|
-
* 请求结果
|
|
177
|
-
*/
|
|
178
|
-
export interface ResponseResult {
|
|
179
|
-
/** 当前数据 */
|
|
180
|
-
data?: DataItem[];
|
|
181
|
-
/** 总数量 */
|
|
182
|
-
total?: number;
|
|
183
|
-
}
|
|
184
|
-
/**
|
|
185
|
-
* 复合属性类型
|
|
186
|
-
*/
|
|
187
|
-
export type ProProps<T extends Record<keyof any, any>> = boolean | T;
|
|
188
|
-
/**
|
|
189
|
-
* 表格状态
|
|
190
|
-
*/
|
|
191
|
-
export interface TableState {
|
|
192
|
-
/** 当前排序参数 */
|
|
193
|
-
sorter: Sorter;
|
|
194
|
-
/** 当前筛选参数 */
|
|
195
|
-
filter: Filter;
|
|
196
|
-
/** 当前搜索参数 */
|
|
197
|
-
where: Where;
|
|
198
|
-
}
|
|
199
|
-
/**
|
|
200
|
-
* 表格组件实例
|
|
201
|
-
*/
|
|
202
|
-
export type TableViewInstance = EleDataTableInstance | EleVirtualTableInstance | null;
|
|
203
|
-
/**
|
|
204
|
-
* 国际化
|
|
205
|
-
*/
|
|
206
|
-
export interface TableLocale {
|
|
207
|
-
refresh: string;
|
|
208
|
-
sizes: string;
|
|
209
|
-
columns: string;
|
|
210
|
-
maximized: string;
|
|
211
|
-
sizeLarge: string;
|
|
212
|
-
sizeDefault: string;
|
|
213
|
-
sizeSmall: string;
|
|
214
|
-
columnTitle: string;
|
|
215
|
-
columnReset: string;
|
|
216
|
-
columnUntitled: string;
|
|
217
|
-
columnFixedLeft: string;
|
|
218
|
-
columnFixedRight: string;
|
|
219
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 容错等级
|
|
3
|
-
*/
|
|
4
|
-
export type Level = 'L' | 'M' | 'Q' | 'H';
|
|
5
|
-
/**
|
|
6
|
-
* 自定义图片参数
|
|
7
|
-
*/
|
|
8
|
-
export interface ImageSettings {
|
|
9
|
-
/** 地址 */
|
|
10
|
-
src?: string;
|
|
11
|
-
/** 高度 */
|
|
12
|
-
height?: number;
|
|
13
|
-
/** 宽度 */
|
|
14
|
-
width?: number;
|
|
15
|
-
/** x坐标 */
|
|
16
|
-
x?: number;
|
|
17
|
-
/** y坐标 */
|
|
18
|
-
y?: number;
|
|
19
|
-
/** 是否擦除图片区域二维码 */
|
|
20
|
-
excavate?: boolean;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* 二维码数据
|
|
24
|
-
*/
|
|
25
|
-
export type Modules = boolean[][];
|
|
26
|
-
/**
|
|
27
|
-
* 擦除区域
|
|
28
|
-
*/
|
|
29
|
-
export interface Excavation {
|
|
30
|
-
/** x坐标 */
|
|
31
|
-
x: number;
|
|
32
|
-
/** y坐标 */
|
|
33
|
-
y: number;
|
|
34
|
-
/** 宽度 */
|
|
35
|
-
w: number;
|
|
36
|
-
/** 高度 */
|
|
37
|
-
h: number;
|
|
38
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { Component } from 'vue';
|
|
2
|
-
import type { StyleValue, ElIconProps } from '../../ele-app/types';
|
|
3
|
-
/**
|
|
4
|
-
* 尺寸
|
|
5
|
-
*/
|
|
6
|
-
export type SegmentedSize = 'large' | 'default' | 'small';
|
|
7
|
-
/**
|
|
8
|
-
* 数据
|
|
9
|
-
*/
|
|
10
|
-
export interface SegmentedItem extends Record<keyof any, any> {
|
|
11
|
-
/** 标题 */
|
|
12
|
-
label?: string;
|
|
13
|
-
/** 值 */
|
|
14
|
-
value: string | number;
|
|
15
|
-
/** 图标 */
|
|
16
|
-
icon?: string | Component;
|
|
17
|
-
/** 是否禁用 */
|
|
18
|
-
disabled?: boolean;
|
|
19
|
-
/** 自定义样式 */
|
|
20
|
-
style?: StyleValue;
|
|
21
|
-
/** 自定义图标属性 */
|
|
22
|
-
iconProps?: ElIconProps;
|
|
23
|
-
/** 自定义图标样式 */
|
|
24
|
-
iconStyle?: StyleValue;
|
|
25
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import type SortableJs from 'sortablejs';
|
|
2
|
-
import type { ElTabPaneProps } from '../../ele-app/types';
|
|
3
|
-
import type { DropdownItem } from '../../ele-dropdown/types';
|
|
4
|
-
/**
|
|
5
|
-
* 页签数据
|
|
6
|
-
*/
|
|
7
|
-
export interface TabPaneItem extends ElTabPaneProps {
|
|
8
|
-
/** 插槽名称 */
|
|
9
|
-
slot?: string;
|
|
10
|
-
/** 元数据 */
|
|
11
|
-
meta?: any;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* 尺寸
|
|
15
|
-
*/
|
|
16
|
-
export type TabSize = 'large' | 'default' | 'small';
|
|
17
|
-
/**
|
|
18
|
-
* 风格类型
|
|
19
|
-
*/
|
|
20
|
-
export type TabType = 'default' | 'card' | 'border-card' | 'plain' | 'simple' | 'indicator' | 'button';
|
|
21
|
-
/**
|
|
22
|
-
* 页签事件参数
|
|
23
|
-
*/
|
|
24
|
-
export interface TabEventOption {
|
|
25
|
-
/** 页签标识 */
|
|
26
|
-
name?: string | number;
|
|
27
|
-
/** 页签数据 */
|
|
28
|
-
item?: TabPaneItem;
|
|
29
|
-
/** 当前选中的页签标识 */
|
|
30
|
-
active?: string | number;
|
|
31
|
-
/** 事件标识 */
|
|
32
|
-
command?: string;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* 获取右键菜单方法
|
|
36
|
-
*/
|
|
37
|
-
export type ContextMenusFunc = (item?: TabPaneItem) => DropdownItem[];
|
|
38
|
-
/**
|
|
39
|
-
* 右键菜单属性
|
|
40
|
-
*/
|
|
41
|
-
export type ContextMenus = DropdownItem[] | ContextMenusFunc;
|
|
42
|
-
/**
|
|
43
|
-
* 页签实例数据
|
|
44
|
-
*/
|
|
45
|
-
export interface TabCurrent {
|
|
46
|
-
/** 拖拽排序实例 */
|
|
47
|
-
sortIns?: SortableJs | null;
|
|
48
|
-
/** 鼠标滚轮事件节流 */
|
|
49
|
-
isScroll?: boolean;
|
|
50
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Component } from 'vue';
|
|
2
|
-
/**
|
|
3
|
-
* 文本类型
|
|
4
|
-
*/
|
|
5
|
-
export type TextType = 'default' | 'heading' | 'secondary' | 'placeholder' | 'primary' | 'success' | 'warning' | 'danger' | 'info' | null;
|
|
6
|
-
/**
|
|
7
|
-
* 文本大小
|
|
8
|
-
*/
|
|
9
|
-
export type TextSize = 'xxxl' | 'xxl' | 'xl' | 'lg' | 'md' | 'base' | 'sm' | 'xs' | null;
|
|
10
|
-
/**
|
|
11
|
-
* 图标
|
|
12
|
-
*/
|
|
13
|
-
export type TextIcon = string | Component;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import type { ElePopoverProps } from '../../ele-app/types';
|
|
2
|
-
/**
|
|
3
|
-
* 引导步骤指向元素
|
|
4
|
-
*/
|
|
5
|
-
export type TourStepTarget = HTMLElement | (() => HTMLElement);
|
|
6
|
-
/**
|
|
7
|
-
* 引导步骤
|
|
8
|
-
*/
|
|
9
|
-
export interface TourStep {
|
|
10
|
-
/** 指向元素 */
|
|
11
|
-
target?: TourStepTarget;
|
|
12
|
-
/** 标题 */
|
|
13
|
-
title?: string;
|
|
14
|
-
/** 描述 */
|
|
15
|
-
description?: string;
|
|
16
|
-
/** 内间距 */
|
|
17
|
-
padding?: number;
|
|
18
|
-
/** 是否开启遮罩层 */
|
|
19
|
-
mask?: boolean;
|
|
20
|
-
/** 气泡组件属性 */
|
|
21
|
-
popoverProps?: ElePopoverProps;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* 元素距离
|
|
25
|
-
*/
|
|
26
|
-
export interface Offset {
|
|
27
|
-
top: number;
|
|
28
|
-
left: number;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* 国际化
|
|
32
|
-
*/
|
|
33
|
-
export interface TourLocale {
|
|
34
|
-
skip: string;
|
|
35
|
-
prev: string;
|
|
36
|
-
next: string;
|
|
37
|
-
finish: string;
|
|
38
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 数据类型
|
|
3
|
-
*/
|
|
4
|
-
export interface UploadItem extends Record<keyof any, any> {
|
|
5
|
-
/** 唯一标识 */
|
|
6
|
-
key: string | number | symbol;
|
|
7
|
-
/** 显示的图片地址, 为空时显示文件图标 */
|
|
8
|
-
url?: string;
|
|
9
|
-
/** 文件名称 */
|
|
10
|
-
name?: string;
|
|
11
|
-
/** 上传状态 */
|
|
12
|
-
status?: UploadStatus;
|
|
13
|
-
/** 上传进度, 0 ~ 100 */
|
|
14
|
-
progress?: number;
|
|
15
|
-
/** 选择的文件 */
|
|
16
|
-
file?: File;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* 上传状态
|
|
20
|
-
*/
|
|
21
|
-
export type UploadStatus = 'uploading' | 'done' | 'exception' | null;
|
|
22
|
-
/**
|
|
23
|
-
* 图片预览配置
|
|
24
|
-
*/
|
|
25
|
-
export interface PreviewOption {
|
|
26
|
-
/** 是否打开 */
|
|
27
|
-
visible: boolean;
|
|
28
|
-
/** 当前图片链接 */
|
|
29
|
-
current?: string;
|
|
30
|
-
/** 当前图片索引 */
|
|
31
|
-
currentIndex: number;
|
|
32
|
-
/** 图片列表 */
|
|
33
|
-
images: string[];
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* 国际化
|
|
37
|
-
*/
|
|
38
|
-
export interface UploadLocale {
|
|
39
|
-
uploading: string;
|
|
40
|
-
exception: string;
|
|
41
|
-
retry: string;
|
|
42
|
-
}
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
import type { VNode } from 'vue';
|
|
2
|
-
import type { Column as TableV2Column, ExtractRowPropGetter, RowExpandHandler, SortBy, HeaderClassNameGetter, ExtractHeaderPropGetter } from 'element-plus/es/components/table-v2';
|
|
3
|
-
import type { ScrollStrategy, ScrollPos } from 'element-plus/es/components/table-v2/src/composables/use-scrollbar';
|
|
4
|
-
import type { ElTableV2Props } from '../../ele-app/types';
|
|
5
|
-
import type { DataKey, DataItem, Column, FilterValue } from '../../ele-data-table/types';
|
|
6
|
-
export { RowExpandHandler, ScrollStrategy, SortBy, ScrollPos };
|
|
7
|
-
/**
|
|
8
|
-
* 列配置
|
|
9
|
-
*/
|
|
10
|
-
export type VirtualColumn = Partial<TableV2Column<DataItem>>;
|
|
11
|
-
/**
|
|
12
|
-
* 表格列配置
|
|
13
|
-
*/
|
|
14
|
-
export type VirtualColumns = VirtualColumn[];
|
|
15
|
-
/**
|
|
16
|
-
* 主体列配置
|
|
17
|
-
*/
|
|
18
|
-
export interface BodyColumn {
|
|
19
|
-
/** 唯一值 */
|
|
20
|
-
key: string;
|
|
21
|
-
/** 数据值字段名 */
|
|
22
|
-
dataKey?: string;
|
|
23
|
-
/** 指定的宽度 */
|
|
24
|
-
width?: number;
|
|
25
|
-
/** 最小宽度 */
|
|
26
|
-
minWidth: number;
|
|
27
|
-
/** 是否是最后一个左侧固定列 */
|
|
28
|
-
isFixedLeftLast?: boolean;
|
|
29
|
-
/** 是否是第一个右侧固定列 */
|
|
30
|
-
isFixedRightFirst?: boolean;
|
|
31
|
-
/** 原始列配置 */
|
|
32
|
-
originalCol?: Column;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* 主体行的列配置
|
|
36
|
-
*/
|
|
37
|
-
export type BodyColumns = BodyColumn[];
|
|
38
|
-
/**
|
|
39
|
-
* 表头列配置
|
|
40
|
-
*/
|
|
41
|
-
export interface HeaderColumn {
|
|
42
|
-
/** 唯一值 */
|
|
43
|
-
key?: string;
|
|
44
|
-
/** 所占列数 */
|
|
45
|
-
colspan?: number;
|
|
46
|
-
/** 所占行数 */
|
|
47
|
-
rowspan?: number;
|
|
48
|
-
/** 是否是最后一个左侧固定列 */
|
|
49
|
-
isFixedLeftLast?: boolean;
|
|
50
|
-
/** 是否是第一个右侧固定列 */
|
|
51
|
-
isFixedRightFirst?: boolean;
|
|
52
|
-
/** 原始的列配置 */
|
|
53
|
-
originalCol?: Column;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* 表头行的列配置
|
|
57
|
-
*/
|
|
58
|
-
export type HeaderColumns = HeaderColumn[];
|
|
59
|
-
/**
|
|
60
|
-
* 表头行的数据
|
|
61
|
-
*/
|
|
62
|
-
export type HeaderRows = HeaderColumns[];
|
|
63
|
-
/**
|
|
64
|
-
* 表格属性
|
|
65
|
-
*/
|
|
66
|
-
export type TableV2Props = Required<Exclude<ElTableV2Props, 'class' | 'style'>>;
|
|
67
|
-
/**
|
|
68
|
-
* 获取行类名方法
|
|
69
|
-
*/
|
|
70
|
-
export type RowClassFunction = ExtractRowPropGetter<DataItem>;
|
|
71
|
-
/**
|
|
72
|
-
* 获取行属性方法
|
|
73
|
-
*/
|
|
74
|
-
export type RowPropsFunction = ExtractRowPropGetter<DataItem>;
|
|
75
|
-
/**
|
|
76
|
-
* 获取表头行类名方法
|
|
77
|
-
*/
|
|
78
|
-
export type HeaderRowClassFunction = HeaderClassNameGetter<DataItem>;
|
|
79
|
-
/**
|
|
80
|
-
* 获取表头行属性方法
|
|
81
|
-
*/
|
|
82
|
-
export type HeaderRowPropsFunction = ExtractHeaderPropGetter<DataItem>;
|
|
83
|
-
/**
|
|
84
|
-
* 表格状态
|
|
85
|
-
*/
|
|
86
|
-
export interface TableState {
|
|
87
|
-
/** 单选选中数据 */
|
|
88
|
-
row?: DataItem;
|
|
89
|
-
/** 单选上次选中数据 */
|
|
90
|
-
oldRow?: DataItem;
|
|
91
|
-
/** 多选选中数据 */
|
|
92
|
-
checked: Map<DataKey, DataItem>;
|
|
93
|
-
/** 多选选中是否保留不存在的数据 */
|
|
94
|
-
reserveChecked: boolean;
|
|
95
|
-
/** 表格垂直滚动位置 */
|
|
96
|
-
scrollTop: number;
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* 表头列筛选改变事件参数
|
|
100
|
-
*/
|
|
101
|
-
export interface CellFilterChangeParams {
|
|
102
|
-
/** 列配置 */
|
|
103
|
-
column: Column;
|
|
104
|
-
/** 筛选值 */
|
|
105
|
-
value: FilterValue;
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* 合并单元格
|
|
109
|
-
*/
|
|
110
|
-
export interface CellSpan {
|
|
111
|
-
/** 所占列数 */
|
|
112
|
-
colspan?: number;
|
|
113
|
-
/** 所占行数 */
|
|
114
|
-
rowspan?: number;
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* 自定义渲染组件属性
|
|
118
|
-
*/
|
|
119
|
-
export interface CustomRenderProps {
|
|
120
|
-
/** 自定义渲染方法 */
|
|
121
|
-
render?: (...params: any) => string | VNode | VNode[] | undefined;
|
|
122
|
-
/** 自定义渲染参数 */
|
|
123
|
-
params?: Array<any>;
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* 嵌套数据配置项
|
|
127
|
-
*/
|
|
128
|
-
export interface TreeTableProps {
|
|
129
|
-
/** 子级字段名 */
|
|
130
|
-
childrenName: string;
|
|
131
|
-
/** 懒加载标识是否有子级字段名 */
|
|
132
|
-
hasChildrenName: string;
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* 列尺寸
|
|
136
|
-
*/
|
|
137
|
-
export interface ColSize {
|
|
138
|
-
/** 列宽 */
|
|
139
|
-
width: number;
|
|
140
|
-
/** 左侧固定列位置 */
|
|
141
|
-
fixedLeft?: string;
|
|
142
|
-
/** 右侧固定列位置 */
|
|
143
|
-
fixedRight?: string;
|
|
144
|
-
}
|
|
145
|
-
/**
|
|
146
|
-
* 合计行列
|
|
147
|
-
*/
|
|
148
|
-
export interface SumCol extends ColSize {
|
|
149
|
-
/** 唯一值 */
|
|
150
|
-
key: string;
|
|
151
|
-
/** 显示文本 */
|
|
152
|
-
text?: string;
|
|
153
|
-
/** 对齐方式 */
|
|
154
|
-
align?: string;
|
|
155
|
-
/** 固定列 */
|
|
156
|
-
fixed?: string | boolean;
|
|
157
|
-
/** 是否是最后一个左侧固定列 */
|
|
158
|
-
isFixedLeftLast?: boolean;
|
|
159
|
-
/** 是否是第一个右侧固定列 */
|
|
160
|
-
isFixedRightFirst?: boolean;
|
|
161
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 间距
|
|
3
|
-
*/
|
|
4
|
-
export type WatermarkGap = [number, number];
|
|
5
|
-
/**
|
|
6
|
-
* 偏移量
|
|
7
|
-
*/
|
|
8
|
-
export type WatermarkOffset = [number, number];
|
|
9
|
-
/**
|
|
10
|
-
* 文字样式
|
|
11
|
-
*/
|
|
12
|
-
export interface WatermarkFont {
|
|
13
|
-
/** 字体颜色 */
|
|
14
|
-
color?: string;
|
|
15
|
-
/** 字体大小 */
|
|
16
|
-
fontSize?: number;
|
|
17
|
-
/** 字体粗细 */
|
|
18
|
-
fontWeight?: 'normal' | 'light' | 'weight' | number;
|
|
19
|
-
/** 字体样式 */
|
|
20
|
-
fontFamily?: string;
|
|
21
|
-
/** 字体类型 */
|
|
22
|
-
fontStyle?: 'none' | 'normal' | 'italic' | 'oblique';
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* 水印篡改观测参数
|
|
26
|
-
*/
|
|
27
|
-
export interface MutationOption {
|
|
28
|
-
/** 获取根节点 */
|
|
29
|
-
getRoot: () => HTMLElement | null;
|
|
30
|
-
/** 获取水印节点 */
|
|
31
|
-
getEl: () => HTMLElement | null;
|
|
32
|
-
/** 水印被删除回调 */
|
|
33
|
-
onDeleted: () => void;
|
|
34
|
-
/** 水印样式被篡改回调 */
|
|
35
|
-
onDalsified: () => void;
|
|
36
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import type { ComponentProps } from './core';
|
|
2
|
-
import type EleBasicSelect from "../../ele-basic-select/index";
|
|
3
|
-
import { CropperProps } from '../../ele-cropper/props';
|
|
4
|
-
import type { DataTableProps } from '../../ele-data-table/props';
|
|
5
|
-
import type EleDataTable from '../../ele-data-table/index';
|
|
6
|
-
import type { DropdownProps } from '../../ele-dropdown/props';
|
|
7
|
-
import type EleDropdown from "../../ele-dropdown/index";
|
|
8
|
-
import type { LoadingProps } from '../../ele-loading/props';
|
|
9
|
-
import type { MenusProps } from '../../ele-menus/props';
|
|
10
|
-
import type { MenuItem } from '../../ele-menus/types';
|
|
11
|
-
import type { ModalProps } from '../../ele-modal/props';
|
|
12
|
-
import type { PaginationProps } from '../../ele-pagination/props';
|
|
13
|
-
import type { PopoverProps } from '../../ele-popover/props';
|
|
14
|
-
import type ElePopover from "../../ele-popover/index";
|
|
15
|
-
import type { ProTableProps } from '../../ele-pro-table/props';
|
|
16
|
-
import type EleProTable from "../../ele-pro-table/index";
|
|
17
|
-
import type EleTabs from "../../ele-tabs/index";
|
|
18
|
-
import type { TextProps } from '../../ele-text/props';
|
|
19
|
-
import type EleText from "../../ele-text/index";
|
|
20
|
-
import type { ToolbarProps } from '../../ele-toolbar/props';
|
|
21
|
-
import type { TooltipProps } from '../../ele-tooltip/props';
|
|
22
|
-
import type EleTooltip from "../../ele-tooltip/index";
|
|
23
|
-
import type EleVirtualTable from "../../ele-virtual-table/index";
|
|
24
|
-
/**
|
|
25
|
-
* 组件属性
|
|
26
|
-
*/
|
|
27
|
-
export type EleCropperProps = ComponentProps<CropperProps>;
|
|
28
|
-
export type EleDataTableProps = ComponentProps<DataTableProps>;
|
|
29
|
-
export type EleDropdownProps = ComponentProps<DropdownProps>;
|
|
30
|
-
export type EleLoadingProps = ComponentProps<LoadingProps>;
|
|
31
|
-
export type EleMenusProps = ComponentProps<MenusProps>;
|
|
32
|
-
export type EleMenuItemProps = Partial<MenuItem>;
|
|
33
|
-
export type EleModalProps = ComponentProps<ModalProps>;
|
|
34
|
-
export type ElePaginationProps = ComponentProps<PaginationProps>;
|
|
35
|
-
export type ElePopoverProps = Partial<PopoverProps>;
|
|
36
|
-
export type EleProTableProps = ComponentProps<ProTableProps>;
|
|
37
|
-
export type EleTextProps = ComponentProps<TextProps>;
|
|
38
|
-
export type EleToolbarProps = ComponentProps<ToolbarProps>;
|
|
39
|
-
export type EleTooltipProps = Partial<TooltipProps>;
|
|
40
|
-
/**
|
|
41
|
-
* 组件实例
|
|
42
|
-
*/
|
|
43
|
-
export type EleBasicSelectInstance = InstanceType<typeof EleBasicSelect> | null;
|
|
44
|
-
export type EleDataTableInstance = InstanceType<typeof EleDataTable> | null;
|
|
45
|
-
export type EleDropdownInstance = InstanceType<typeof EleDropdown> | null;
|
|
46
|
-
export type ElePopoverInstance = InstanceType<typeof ElePopover> | null;
|
|
47
|
-
export type EleProTableInstance = InstanceType<typeof EleProTable> | null;
|
|
48
|
-
export type EleTabsInstance = InstanceType<typeof EleTabs> | null;
|
|
49
|
-
export type EleTextInstance = InstanceType<typeof EleText> | null;
|
|
50
|
-
export type EleTooltipInstance = InstanceType<typeof EleTooltip> | null;
|
|
51
|
-
export type EleVirtualTableInstance = InstanceType<typeof EleVirtualTable> | null;
|