@wapri/element-pro 3.0.0
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/LICENSE +21 -0
- package/dist/CheckCard/Group.vue.d.ts +54 -0
- package/dist/CheckCard/context.d.ts +12 -0
- package/dist/CheckCard/index.d.ts +443 -0
- package/dist/CheckCard/index.vue.d.ts +53 -0
- package/dist/CheckCard/selection.d.ts +4 -0
- package/dist/CheckCard/types.d.ts +29 -0
- package/dist/ConfigProvider/context.d.ts +11 -0
- package/dist/ConfigProvider/index.d.ts +50 -0
- package/dist/ConfigProvider/index.vue.d.ts +28 -0
- package/dist/CropperUpload/CropperDialog.vue.d.ts +23 -0
- package/dist/CropperUpload/index.d.ts +241 -0
- package/dist/CropperUpload/index.vue.d.ts +81 -0
- package/dist/CropperUpload/types.d.ts +137 -0
- package/dist/CropperUpload/utils.d.ts +42 -0
- package/dist/DateQuickSelect/index.d.ts +65 -0
- package/dist/DateQuickSelect/index.vue.d.ts +55 -0
- package/dist/DateQuickSelect/types.d.ts +19 -0
- package/dist/DateQuickSelect/utils.d.ts +9 -0
- package/dist/DrawerForm/index.d.ts +201 -0
- package/dist/DrawerForm/index.vue.d.ts +76 -0
- package/dist/Ellipsis/index.d.ts +35 -0
- package/dist/Ellipsis/types.d.ts +23 -0
- package/dist/Layout/components/SidebarTrigger.vue.d.ts +21 -0
- package/dist/Layout/index.d.ts +147 -0
- package/dist/Layout/index.vue.d.ts +65 -0
- package/dist/Layout/types.d.ts +24 -0
- package/dist/MainContent/index.d.ts +115 -0
- package/dist/MainContent/index.vue.d.ts +51 -0
- package/dist/MainContent/types.d.ts +17 -0
- package/dist/ModalForm/index.d.ts +201 -0
- package/dist/ModalForm/index.vue.d.ts +76 -0
- package/dist/ProTable/components/ProTablePagination.vue.d.ts +43 -0
- package/dist/ProTable/components/ProTableSearchForm.vue.d.ts +34 -0
- package/dist/ProTable/components/ProTableSelectedFilters.vue.d.ts +21 -0
- package/dist/ProTable/components/ProTableSelectionActions.vue.d.ts +36 -0
- package/dist/ProTable/components/ProTableToolbar.vue.d.ts +47 -0
- package/dist/ProTable/composables/useProTableData.d.ts +34 -0
- package/dist/ProTable/composables/useProTableSelection.d.ts +10 -0
- package/dist/ProTable/composables/useStickyTable.d.ts +18 -0
- package/dist/ProTable/index.d.ts +412 -0
- package/dist/ProTable/index.vue.d.ts +54 -0
- package/dist/ProTable/types.d.ts +265 -0
- package/dist/ProTable/utils.d.ts +25 -0
- package/dist/ShareButton/index.d.ts +157 -0
- package/dist/ShareButton/index.vue.d.ts +60 -0
- package/dist/ShareButton/steps.d.ts +13 -0
- package/dist/ShareButton/types.d.ts +34 -0
- package/dist/Sidebar/components/SidebarGroup.vue.d.ts +53 -0
- package/dist/Sidebar/components/SidebarIcon.vue.d.ts +23 -0
- package/dist/Sidebar/components/SidebarItem.vue.d.ts +33 -0
- package/dist/Sidebar/components/SidebarItemContent.vue.d.ts +27 -0
- package/dist/Sidebar/components/SidebarLink.vue.d.ts +54 -0
- package/dist/Sidebar/components/SidebarLogo.vue.d.ts +48 -0
- package/dist/Sidebar/composables/useActiveMenuScroll.d.ts +18 -0
- package/dist/Sidebar/context.d.ts +10 -0
- package/dist/Sidebar/index.d.ts +350 -0
- package/dist/Sidebar/index.vue.d.ts +72 -0
- package/dist/Sidebar/types.d.ts +154 -0
- package/dist/Sidebar/utils.d.ts +16 -0
- package/dist/SvgIcon/iconfont.d.ts +11 -0
- package/dist/SvgIcon/index.d.ts +35 -0
- package/dist/SvgIcon/index.vue.d.ts +38 -0
- package/dist/TagSelector/index.d.ts +51 -0
- package/dist/TagSelector/index.vue.d.ts +49 -0
- package/dist/TagSelector/types.d.ts +6 -0
- package/dist/VH100/index.d.ts +40 -0
- package/dist/VH100/index.vue.d.ts +26 -0
- package/dist/constant/index.d.ts +1 -0
- package/dist/index.d.ts +38 -0
- package/dist/index.mjs +3985 -0
- package/dist/shared/overlayForm/types.d.ts +25 -0
- package/dist/shared/overlayForm/useOverlayForm.d.ts +18 -0
- package/dist/style.css +1 -0
- package/dist/utils/install.d.ts +10 -0
- package/package.json +39 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { ActionType, FilterState, Key, PageInfo, ProTableFormAction, ProTableProps, ProTableRequestContext, RequestParams, SortState } from '../types';
|
|
3
|
+
|
|
4
|
+
export declare function useProTableData<T extends object, U extends Record<string, unknown>>(props: Readonly<ProTableProps<T, U>>, tabActiveKey?: Ref<Key>): {
|
|
5
|
+
dataSource: import('vue').ShallowRef<T[], T[]>;
|
|
6
|
+
loading: Ref<boolean, boolean>;
|
|
7
|
+
error: Ref<Error | null, Error | null>;
|
|
8
|
+
searchValues: Ref<Record<string, unknown>, Record<string, unknown>>;
|
|
9
|
+
sort: Ref<SortState, SortState>;
|
|
10
|
+
filter: Ref<FilterState, FilterState>;
|
|
11
|
+
requestContext: Ref<{
|
|
12
|
+
quickDateSelections: Record<string, import('../types').ProTableDateQuickSelection>;
|
|
13
|
+
}, ProTableRequestContext | {
|
|
14
|
+
quickDateSelections: Record<string, import('../types').ProTableDateQuickSelection>;
|
|
15
|
+
}>;
|
|
16
|
+
pageInfo: Ref<{
|
|
17
|
+
current: number;
|
|
18
|
+
pageSize: number;
|
|
19
|
+
total: number;
|
|
20
|
+
}, PageInfo | {
|
|
21
|
+
current: number;
|
|
22
|
+
pageSize: number;
|
|
23
|
+
total: number;
|
|
24
|
+
}>;
|
|
25
|
+
getRequestParams: () => RequestParams<U>;
|
|
26
|
+
load: () => Promise<void>;
|
|
27
|
+
submitSearch: (values: Record<string, unknown>, context?: ProTableRequestContext) => Promise<void>;
|
|
28
|
+
resetSearch: () => Promise<void>;
|
|
29
|
+
removeSearchField: (key: string) => Promise<void>;
|
|
30
|
+
reload: (resetPageIndex?: boolean) => Promise<void>;
|
|
31
|
+
reloadAndRest: () => Promise<void>;
|
|
32
|
+
setPageInfo: (nextPage: Partial<PageInfo>) => void;
|
|
33
|
+
getAction: (formRef: ProTableFormAction) => ActionType<T>;
|
|
34
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ShallowRef } from 'vue';
|
|
2
|
+
import { Key, RowSelectionConfig } from '../types';
|
|
3
|
+
|
|
4
|
+
export declare function useProTableSelection<T extends object>(rows: ShallowRef<T[]>, config: false | RowSelectionConfig<T> | undefined, rowKey: string | ((record: T, index: number) => Key) | undefined): {
|
|
5
|
+
selectedRowKeys: import('vue').Ref<Key[], Key[]>;
|
|
6
|
+
selectedRows: ShallowRef<T[], T[]>;
|
|
7
|
+
hasSelection: import('vue').ComputedRef<boolean>;
|
|
8
|
+
setSelection: (nextRows: T[]) => void;
|
|
9
|
+
clearSelected: () => void;
|
|
10
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ComputedRef, Ref } from 'vue';
|
|
2
|
+
import { StickyConfig } from '../types';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* 对齐 ant-design Table sticky:
|
|
6
|
+
* 1. 页面滚动时表头吸顶(CSS sticky + 祖先 overflow:visible)
|
|
7
|
+
* 2. 表格横向溢出且底部滚出视口时,底部出现粘性滚动条并与表体同步
|
|
8
|
+
*/
|
|
9
|
+
export declare function useStickyTable(stickyProp: ComputedRef<boolean | StickyConfig | undefined>, tableWrapRef: Ref<HTMLElement | undefined>, observeTarget: Ref<unknown>, prefix: ComputedRef<string>): {
|
|
10
|
+
stickyEnabled: ComputedRef<boolean>;
|
|
11
|
+
stickyConfig: ComputedRef<false | StickyConfig>;
|
|
12
|
+
stickyWrapClass: ComputedRef<string>;
|
|
13
|
+
stickyWrapStyle: ComputedRef<Record<string, string> | undefined>;
|
|
14
|
+
stickyScrollRef: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
15
|
+
stickyScrollWidth: Ref<number, number>;
|
|
16
|
+
stickyScrollVisible: Ref<boolean, boolean>;
|
|
17
|
+
onStickyScroll: () => void;
|
|
18
|
+
};
|
|
@@ -0,0 +1,412 @@
|
|
|
1
|
+
export declare const ProTable: import('../utils/install').SFCWithInstall<(<T extends object, U extends Record<string, unknown>>(__VLS_props: Awaited<typeof __VLS_setup>["props"], __VLS_ctx?: {
|
|
2
|
+
attrs: any;
|
|
3
|
+
slots: ReturnType<() => Partial<Record<string, (_: {
|
|
4
|
+
value: unknown;
|
|
5
|
+
record: T;
|
|
6
|
+
index: number;
|
|
7
|
+
}) => any>> & {
|
|
8
|
+
headerTitle?(_: {}): any;
|
|
9
|
+
headerSubtitle?(_: {}): any;
|
|
10
|
+
toolbar?(_: {}): any;
|
|
11
|
+
tableInfo?(_: {}): any;
|
|
12
|
+
tabSub?(_: {}): any;
|
|
13
|
+
searchActionLeft?(_: {}): any;
|
|
14
|
+
searchActionRight?(_: {}): any;
|
|
15
|
+
selectionActions?(_: {
|
|
16
|
+
selectedRowKeys: import('./types').Key[];
|
|
17
|
+
selectedRows: unknown[];
|
|
18
|
+
clearSelected: () => void;
|
|
19
|
+
}): any;
|
|
20
|
+
tableTitle?(_: {}): any;
|
|
21
|
+
selectModeBefore?(_: {
|
|
22
|
+
mode: import('./types').ProTableMode;
|
|
23
|
+
modes: import('./types').ProTableMode[];
|
|
24
|
+
dataSource: T[];
|
|
25
|
+
action: import('./types').ActionType<T>;
|
|
26
|
+
}): any;
|
|
27
|
+
selectModeAfter?(_: {
|
|
28
|
+
mode: import('./types').ProTableMode;
|
|
29
|
+
modes: import('./types').ProTableMode[];
|
|
30
|
+
dataSource: T[];
|
|
31
|
+
action: import('./types').ActionType<T>;
|
|
32
|
+
}): any;
|
|
33
|
+
empty?(_: {}): any;
|
|
34
|
+
itemRender?(_: {
|
|
35
|
+
item: T;
|
|
36
|
+
record: T;
|
|
37
|
+
index: number;
|
|
38
|
+
dataSource: T[];
|
|
39
|
+
mode: "list";
|
|
40
|
+
action: import('./types').ActionType<T>;
|
|
41
|
+
}): any;
|
|
42
|
+
}>;
|
|
43
|
+
emit: typeof __VLS_emit;
|
|
44
|
+
}, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
45
|
+
props: {
|
|
46
|
+
loading?: boolean | undefined;
|
|
47
|
+
form?: import('./types').ProTableFormConfig | undefined;
|
|
48
|
+
search?: (false | import('./types').SearchConfig) | undefined;
|
|
49
|
+
onReset?: (() => void) | undefined;
|
|
50
|
+
onSubmit?: ((params: import('./types').RequestParams<U>) => void) | undefined;
|
|
51
|
+
onLoad?: ((data: T[]) => void) | undefined;
|
|
52
|
+
options?: (false | import('./types').ProTableOptions) | undefined;
|
|
53
|
+
pagination?: (false | import('./types').PaginationConfig) | undefined;
|
|
54
|
+
onFieldChange?: ((fieldKey: string, value: unknown, context: import('./types').ProTableRequestContext) => void | Promise<void>) | undefined;
|
|
55
|
+
columns: import('./types').ProColumn<T>[];
|
|
56
|
+
headerTitle?: import('vue').VNodeChild;
|
|
57
|
+
headerSubtitle?: import('vue').VNodeChild;
|
|
58
|
+
headerAlert?: import('element-plus').AlertProps | undefined;
|
|
59
|
+
download?: import('./types').ProTableDownload | undefined;
|
|
60
|
+
onDownload?: import('./types').DownloadFn<U> | undefined;
|
|
61
|
+
dataSource?: T[] | undefined;
|
|
62
|
+
defaultData?: T[] | undefined;
|
|
63
|
+
request?: import('./types').RequestFn<T, U> | undefined;
|
|
64
|
+
params?: U | undefined;
|
|
65
|
+
rowKey?: string | ((record: T, index: number) => import('./types').Key) | undefined;
|
|
66
|
+
rowSelection?: false | import('./types').RowSelectionConfig<T> | undefined;
|
|
67
|
+
tabs?: import('./types').ProTableTabItem[] | undefined;
|
|
68
|
+
tabMore?: import('./types').ProTableTabMoreConfig | undefined;
|
|
69
|
+
modes?: import('./types').ProTableMode[] | undefined;
|
|
70
|
+
listProps?: import('./types').ProTableListProps | undefined;
|
|
71
|
+
tabActiveKey?: import('./types').Key | undefined;
|
|
72
|
+
defaultTabActiveKey?: import('./types').Key | undefined;
|
|
73
|
+
selectedFiltersTitle?: string | undefined;
|
|
74
|
+
toolBarRender?: ((action: import('./types').ActionType<T>, context: {
|
|
75
|
+
selectedRowKeys: import('./types').Key[];
|
|
76
|
+
selectedRows: T[];
|
|
77
|
+
}) => Array<import('vue').VNodeChild> | false) | undefined;
|
|
78
|
+
beforeSearchSubmit?: ((params: import('./types').RequestParams<U>) => import('./types').RequestParams<U>) | undefined;
|
|
79
|
+
manualRequest?: boolean | undefined;
|
|
80
|
+
columnEmptyText?: string | false | undefined;
|
|
81
|
+
onRequestError?: ((error: Error) => void) | undefined;
|
|
82
|
+
onTabChange?: ((key: import('./types').Key) => void) | undefined;
|
|
83
|
+
onModeChange?: ((mode: import('./types').ProTableMode) => void) | undefined;
|
|
84
|
+
onDataSourceChange?: ((data: T[]) => void) | undefined;
|
|
85
|
+
actionRef?: import('./types').ActionRef<T> | undefined;
|
|
86
|
+
sticky?: (boolean | import('./types').StickyConfig) | undefined;
|
|
87
|
+
showRequestError?: boolean | undefined;
|
|
88
|
+
tableProps?: import('element-plus').TableProps | undefined;
|
|
89
|
+
} & {} & (import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps);
|
|
90
|
+
expose(exposed: import('vue').ShallowUnwrapRef<import('./types').ActionType<T>>): void;
|
|
91
|
+
attrs: any;
|
|
92
|
+
slots: ReturnType<() => Partial<Record<string, (_: {
|
|
93
|
+
value: unknown;
|
|
94
|
+
record: T;
|
|
95
|
+
index: number;
|
|
96
|
+
}) => any>> & {
|
|
97
|
+
headerTitle?(_: {}): any;
|
|
98
|
+
headerSubtitle?(_: {}): any;
|
|
99
|
+
toolbar?(_: {}): any;
|
|
100
|
+
tableInfo?(_: {}): any;
|
|
101
|
+
tabSub?(_: {}): any;
|
|
102
|
+
searchActionLeft?(_: {}): any;
|
|
103
|
+
searchActionRight?(_: {}): any;
|
|
104
|
+
selectionActions?(_: {
|
|
105
|
+
selectedRowKeys: import('./types').Key[];
|
|
106
|
+
selectedRows: unknown[];
|
|
107
|
+
clearSelected: () => void;
|
|
108
|
+
}): any;
|
|
109
|
+
tableTitle?(_: {}): any;
|
|
110
|
+
selectModeBefore?(_: {
|
|
111
|
+
mode: import('./types').ProTableMode;
|
|
112
|
+
modes: import('./types').ProTableMode[];
|
|
113
|
+
dataSource: T[];
|
|
114
|
+
action: import('./types').ActionType<T>;
|
|
115
|
+
}): any;
|
|
116
|
+
selectModeAfter?(_: {
|
|
117
|
+
mode: import('./types').ProTableMode;
|
|
118
|
+
modes: import('./types').ProTableMode[];
|
|
119
|
+
dataSource: T[];
|
|
120
|
+
action: import('./types').ActionType<T>;
|
|
121
|
+
}): any;
|
|
122
|
+
empty?(_: {}): any;
|
|
123
|
+
itemRender?(_: {
|
|
124
|
+
item: T;
|
|
125
|
+
record: T;
|
|
126
|
+
index: number;
|
|
127
|
+
dataSource: T[];
|
|
128
|
+
mode: "list";
|
|
129
|
+
action: import('./types').ActionType<T>;
|
|
130
|
+
}): any;
|
|
131
|
+
}>;
|
|
132
|
+
emit: typeof __VLS_emit;
|
|
133
|
+
}>) => import('vue').VNode & {
|
|
134
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
135
|
+
})> & {
|
|
136
|
+
ProTablePagination: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
137
|
+
page: {
|
|
138
|
+
type: import('vue').PropType<number>;
|
|
139
|
+
required: true;
|
|
140
|
+
};
|
|
141
|
+
pageSize: {
|
|
142
|
+
type: import('vue').PropType<number>;
|
|
143
|
+
required: true;
|
|
144
|
+
};
|
|
145
|
+
total: {
|
|
146
|
+
type: import('vue').PropType<number>;
|
|
147
|
+
required: true;
|
|
148
|
+
};
|
|
149
|
+
pagination: {
|
|
150
|
+
type: import('vue').PropType<false | import('./types').PaginationConfig>;
|
|
151
|
+
default: undefined;
|
|
152
|
+
};
|
|
153
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
154
|
+
change: (page: number) => void;
|
|
155
|
+
pageSizeChange: (pageSize: number) => void;
|
|
156
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
157
|
+
page: {
|
|
158
|
+
type: import('vue').PropType<number>;
|
|
159
|
+
required: true;
|
|
160
|
+
};
|
|
161
|
+
pageSize: {
|
|
162
|
+
type: import('vue').PropType<number>;
|
|
163
|
+
required: true;
|
|
164
|
+
};
|
|
165
|
+
total: {
|
|
166
|
+
type: import('vue').PropType<number>;
|
|
167
|
+
required: true;
|
|
168
|
+
};
|
|
169
|
+
pagination: {
|
|
170
|
+
type: import('vue').PropType<false | import('./types').PaginationConfig>;
|
|
171
|
+
default: undefined;
|
|
172
|
+
};
|
|
173
|
+
}>> & Readonly<{
|
|
174
|
+
onChange?: ((page: number) => any) | undefined;
|
|
175
|
+
onPageSizeChange?: ((pageSize: number) => any) | undefined;
|
|
176
|
+
}>, {
|
|
177
|
+
pagination: false | import('./types').PaginationConfig;
|
|
178
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
179
|
+
ProTableSearchForm: <T extends object>(__VLS_props: Awaited<typeof __VLS_setup>["props"], __VLS_ctx?: __VLS_Prettify<Pick<Awaited<typeof __VLS_setup>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
180
|
+
props: __VLS_Prettify<__VLS_OmitKeepDiscriminatedUnion<(Partial<{}> & Omit<{
|
|
181
|
+
readonly onReset?: (() => any) | undefined;
|
|
182
|
+
readonly onSubmit?: ((values: Record<string, unknown>, context: import('./types').ProTableRequestContext) => any) | undefined;
|
|
183
|
+
readonly onFieldChange?: ((fieldKey: string, value: unknown, context: import('./types').ProTableRequestContext) => any) | undefined;
|
|
184
|
+
readonly "onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
|
|
185
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>) & {
|
|
186
|
+
columns: import('./types').ProColumn<T>[];
|
|
187
|
+
modelValue: Record<string, unknown>;
|
|
188
|
+
search?: false | import('./types').SearchConfig;
|
|
189
|
+
form?: import('./types').ProTableFormConfig;
|
|
190
|
+
loading?: boolean;
|
|
191
|
+
collapsed?: boolean;
|
|
192
|
+
collapseActionInModeBar?: boolean;
|
|
193
|
+
}, keyof import('vue').VNodeProps | keyof import('vue').AllowedComponentProps>> & {} & (import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps);
|
|
194
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
195
|
+
getFieldsValue: () => Record<string, unknown>;
|
|
196
|
+
getRequestContext: () => import('./types').ProTableRequestContext;
|
|
197
|
+
setFieldsValue: (nextValues: Record<string, unknown>) => void;
|
|
198
|
+
resetFields: (names?: string[]) => void;
|
|
199
|
+
}>): void;
|
|
200
|
+
attrs: any;
|
|
201
|
+
slots: ReturnType<() => {
|
|
202
|
+
selectedFilters?(_: {}): any;
|
|
203
|
+
searchActionLeft?(_: {}): any;
|
|
204
|
+
searchActionRight?(_: {}): any;
|
|
205
|
+
}>;
|
|
206
|
+
emit: ((evt: "reset") => void) & ((evt: "submit", values: Record<string, unknown>, context: import('./types').ProTableRequestContext) => void) & ((evt: "fieldChange", fieldKey: string, value: unknown, context: import('./types').ProTableRequestContext) => void) & ((evt: "update:collapsed", value: boolean) => void);
|
|
207
|
+
}>) => import('vue').VNode & {
|
|
208
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
209
|
+
};
|
|
210
|
+
ProTableSelectedFilters: <T extends object>(__VLS_props: Awaited<typeof __VLS_setup>["props"], __VLS_ctx?: __VLS_Prettify<Pick<Awaited<typeof __VLS_setup>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
211
|
+
props: __VLS_Prettify<__VLS_OmitKeepDiscriminatedUnion<(Partial<{}> & Omit<{
|
|
212
|
+
readonly onClear?: ((key: string) => any) | undefined;
|
|
213
|
+
readonly onClearAll?: (() => any) | undefined;
|
|
214
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>) & {
|
|
215
|
+
columns: import('./types').ProColumn<T>[];
|
|
216
|
+
searchValues: Record<string, unknown>;
|
|
217
|
+
quickDateSelections?: Record<string, import('./types').ProTableDateQuickSelection>;
|
|
218
|
+
title?: string;
|
|
219
|
+
}, keyof import('vue').VNodeProps | keyof import('vue').AllowedComponentProps>> & {} & (import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps);
|
|
220
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
221
|
+
attrs: any;
|
|
222
|
+
slots: ReturnType<() => {}>;
|
|
223
|
+
emit: ((evt: "clear", key: string) => void) & ((evt: "clearAll") => void);
|
|
224
|
+
}>) => import('vue').VNode & {
|
|
225
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
226
|
+
};
|
|
227
|
+
ProTableSelectionActions: {
|
|
228
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
229
|
+
selectedRowKeys: {
|
|
230
|
+
type: import('vue').PropType<import('./types').Key[]>;
|
|
231
|
+
required: true;
|
|
232
|
+
};
|
|
233
|
+
selectedRows: {
|
|
234
|
+
type: import('vue').PropType<unknown[]>;
|
|
235
|
+
required: true;
|
|
236
|
+
};
|
|
237
|
+
}>> & Readonly<{
|
|
238
|
+
onClear?: (() => any) | undefined;
|
|
239
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
240
|
+
clear: () => void;
|
|
241
|
+
}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
242
|
+
P: {};
|
|
243
|
+
B: {};
|
|
244
|
+
D: {};
|
|
245
|
+
C: {};
|
|
246
|
+
M: {};
|
|
247
|
+
Defaults: {};
|
|
248
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
249
|
+
selectedRowKeys: {
|
|
250
|
+
type: import('vue').PropType<import('./types').Key[]>;
|
|
251
|
+
required: true;
|
|
252
|
+
};
|
|
253
|
+
selectedRows: {
|
|
254
|
+
type: import('vue').PropType<unknown[]>;
|
|
255
|
+
required: true;
|
|
256
|
+
};
|
|
257
|
+
}>> & Readonly<{
|
|
258
|
+
onClear?: (() => any) | undefined;
|
|
259
|
+
}>, {}, {}, {}, {}, {}>;
|
|
260
|
+
__isFragment?: never;
|
|
261
|
+
__isTeleport?: never;
|
|
262
|
+
__isSuspense?: never;
|
|
263
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
264
|
+
selectedRowKeys: {
|
|
265
|
+
type: import('vue').PropType<import('./types').Key[]>;
|
|
266
|
+
required: true;
|
|
267
|
+
};
|
|
268
|
+
selectedRows: {
|
|
269
|
+
type: import('vue').PropType<unknown[]>;
|
|
270
|
+
required: true;
|
|
271
|
+
};
|
|
272
|
+
}>> & Readonly<{
|
|
273
|
+
onClear?: (() => any) | undefined;
|
|
274
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
275
|
+
clear: () => void;
|
|
276
|
+
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
277
|
+
$slots: {
|
|
278
|
+
default?(_: {
|
|
279
|
+
selectedRowKeys: import('./types').Key[];
|
|
280
|
+
selectedRows: unknown[];
|
|
281
|
+
clearSelected: () => void;
|
|
282
|
+
}): any;
|
|
283
|
+
};
|
|
284
|
+
});
|
|
285
|
+
ProTableToolbar: {
|
|
286
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
287
|
+
headerTitle: {
|
|
288
|
+
type: import('vue').PropType<string | number | boolean | void | import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
289
|
+
[key: string]: any;
|
|
290
|
+
}> | import('vue').VNodeArrayChildren | null>;
|
|
291
|
+
};
|
|
292
|
+
headerSubtitle: {
|
|
293
|
+
type: import('vue').PropType<string | number | boolean | void | import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
294
|
+
[key: string]: any;
|
|
295
|
+
}> | import('vue').VNodeArrayChildren | null>;
|
|
296
|
+
};
|
|
297
|
+
toolbarItems: {
|
|
298
|
+
type: import('vue').PropType<import('vue').VNodeChild[]>;
|
|
299
|
+
required: true;
|
|
300
|
+
};
|
|
301
|
+
showReload: {
|
|
302
|
+
type: import('vue').PropType<boolean>;
|
|
303
|
+
required: true;
|
|
304
|
+
};
|
|
305
|
+
headerAlert: {
|
|
306
|
+
type: import('vue').PropType<import('element-plus').AlertProps>;
|
|
307
|
+
};
|
|
308
|
+
loading: {
|
|
309
|
+
type: import('vue').PropType<boolean>;
|
|
310
|
+
};
|
|
311
|
+
download: {
|
|
312
|
+
type: import('vue').PropType<string | boolean | import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
313
|
+
[key: string]: any;
|
|
314
|
+
}>>;
|
|
315
|
+
};
|
|
316
|
+
}>> & Readonly<{
|
|
317
|
+
onDownload?: (() => any) | undefined;
|
|
318
|
+
onReload?: (() => any) | undefined;
|
|
319
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
320
|
+
download: () => void;
|
|
321
|
+
reload: () => void;
|
|
322
|
+
}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
323
|
+
P: {};
|
|
324
|
+
B: {};
|
|
325
|
+
D: {};
|
|
326
|
+
C: {};
|
|
327
|
+
M: {};
|
|
328
|
+
Defaults: {};
|
|
329
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
330
|
+
headerTitle: {
|
|
331
|
+
type: import('vue').PropType<string | number | boolean | void | import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
332
|
+
[key: string]: any;
|
|
333
|
+
}> | import('vue').VNodeArrayChildren | null>;
|
|
334
|
+
};
|
|
335
|
+
headerSubtitle: {
|
|
336
|
+
type: import('vue').PropType<string | number | boolean | void | import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
337
|
+
[key: string]: any;
|
|
338
|
+
}> | import('vue').VNodeArrayChildren | null>;
|
|
339
|
+
};
|
|
340
|
+
toolbarItems: {
|
|
341
|
+
type: import('vue').PropType<import('vue').VNodeChild[]>;
|
|
342
|
+
required: true;
|
|
343
|
+
};
|
|
344
|
+
showReload: {
|
|
345
|
+
type: import('vue').PropType<boolean>;
|
|
346
|
+
required: true;
|
|
347
|
+
};
|
|
348
|
+
headerAlert: {
|
|
349
|
+
type: import('vue').PropType<import('element-plus').AlertProps>;
|
|
350
|
+
};
|
|
351
|
+
loading: {
|
|
352
|
+
type: import('vue').PropType<boolean>;
|
|
353
|
+
};
|
|
354
|
+
download: {
|
|
355
|
+
type: import('vue').PropType<string | boolean | import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
356
|
+
[key: string]: any;
|
|
357
|
+
}>>;
|
|
358
|
+
};
|
|
359
|
+
}>> & Readonly<{
|
|
360
|
+
onDownload?: (() => any) | undefined;
|
|
361
|
+
onReload?: (() => any) | undefined;
|
|
362
|
+
}>, {}, {}, {}, {}, {}>;
|
|
363
|
+
__isFragment?: never;
|
|
364
|
+
__isTeleport?: never;
|
|
365
|
+
__isSuspense?: never;
|
|
366
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
367
|
+
headerTitle: {
|
|
368
|
+
type: import('vue').PropType<string | number | boolean | void | import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
369
|
+
[key: string]: any;
|
|
370
|
+
}> | import('vue').VNodeArrayChildren | null>;
|
|
371
|
+
};
|
|
372
|
+
headerSubtitle: {
|
|
373
|
+
type: import('vue').PropType<string | number | boolean | void | import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
374
|
+
[key: string]: any;
|
|
375
|
+
}> | import('vue').VNodeArrayChildren | null>;
|
|
376
|
+
};
|
|
377
|
+
toolbarItems: {
|
|
378
|
+
type: import('vue').PropType<import('vue').VNodeChild[]>;
|
|
379
|
+
required: true;
|
|
380
|
+
};
|
|
381
|
+
showReload: {
|
|
382
|
+
type: import('vue').PropType<boolean>;
|
|
383
|
+
required: true;
|
|
384
|
+
};
|
|
385
|
+
headerAlert: {
|
|
386
|
+
type: import('vue').PropType<import('element-plus').AlertProps>;
|
|
387
|
+
};
|
|
388
|
+
loading: {
|
|
389
|
+
type: import('vue').PropType<boolean>;
|
|
390
|
+
};
|
|
391
|
+
download: {
|
|
392
|
+
type: import('vue').PropType<string | boolean | import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
393
|
+
[key: string]: any;
|
|
394
|
+
}>>;
|
|
395
|
+
};
|
|
396
|
+
}>> & Readonly<{
|
|
397
|
+
onDownload?: (() => any) | undefined;
|
|
398
|
+
onReload?: (() => any) | undefined;
|
|
399
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
400
|
+
download: () => void;
|
|
401
|
+
reload: () => void;
|
|
402
|
+
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
403
|
+
$slots: {
|
|
404
|
+
headerTitle?(_: {}): any;
|
|
405
|
+
headerSubtitle?(_: {}): any;
|
|
406
|
+
toolbar?(_: {}): any;
|
|
407
|
+
};
|
|
408
|
+
});
|
|
409
|
+
};
|
|
410
|
+
export * from './types';
|
|
411
|
+
export * from './utils';
|
|
412
|
+
export default ProTable;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { Key, ProTableMode, ProTableProps } from './types';
|
|
2
|
+
|
|
3
|
+
declare const _default: <T extends object, U extends Record<string, unknown>>(__VLS_props: Awaited<typeof __VLS_setup>["props"], __VLS_ctx?: __VLS_Prettify<Pick<Awaited<typeof __VLS_setup>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: __VLS_Prettify<__VLS_OmitKeepDiscriminatedUnion<(Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>) & ProTableProps<T, U>, keyof import('vue').VNodeProps | keyof import('vue').AllowedComponentProps>> & {} & (import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps);
|
|
5
|
+
expose(exposed: import('vue').ShallowUnwrapRef<import('./types').ActionType<T>>): void;
|
|
6
|
+
attrs: any;
|
|
7
|
+
slots: ReturnType<() => Partial<Record<string, (_: {
|
|
8
|
+
value: unknown;
|
|
9
|
+
record: T;
|
|
10
|
+
index: number;
|
|
11
|
+
}) => any>> & {
|
|
12
|
+
headerTitle?(_: {}): any;
|
|
13
|
+
headerSubtitle?(_: {}): any;
|
|
14
|
+
toolbar?(_: {}): any;
|
|
15
|
+
tableInfo?(_: {}): any;
|
|
16
|
+
tabSub?(_: {}): any;
|
|
17
|
+
searchActionLeft?(_: {}): any;
|
|
18
|
+
searchActionRight?(_: {}): any;
|
|
19
|
+
selectionActions?(_: {
|
|
20
|
+
selectedRowKeys: Key[];
|
|
21
|
+
selectedRows: unknown[];
|
|
22
|
+
clearSelected: () => void;
|
|
23
|
+
}): any;
|
|
24
|
+
tableTitle?(_: {}): any;
|
|
25
|
+
selectModeBefore?(_: {
|
|
26
|
+
mode: ProTableMode;
|
|
27
|
+
modes: ProTableMode[];
|
|
28
|
+
dataSource: T[];
|
|
29
|
+
action: import('./types').ActionType<T>;
|
|
30
|
+
}): any;
|
|
31
|
+
selectModeAfter?(_: {
|
|
32
|
+
mode: ProTableMode;
|
|
33
|
+
modes: ProTableMode[];
|
|
34
|
+
dataSource: T[];
|
|
35
|
+
action: import('./types').ActionType<T>;
|
|
36
|
+
}): any;
|
|
37
|
+
empty?(_: {}): any;
|
|
38
|
+
itemRender?(_: {
|
|
39
|
+
item: T;
|
|
40
|
+
record: T;
|
|
41
|
+
index: number;
|
|
42
|
+
dataSource: T[];
|
|
43
|
+
mode: "list";
|
|
44
|
+
action: import('./types').ActionType<T>;
|
|
45
|
+
}): any;
|
|
46
|
+
}>;
|
|
47
|
+
emit: typeof __VLS_emit;
|
|
48
|
+
}>) => import('vue').VNode & {
|
|
49
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
50
|
+
};
|
|
51
|
+
export default _default;
|
|
52
|
+
type __VLS_Prettify<T> = {
|
|
53
|
+
[K in keyof T]: T[K];
|
|
54
|
+
} & {};
|