cosey 0.4.42 → 0.4.44
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.
|
@@ -280,6 +280,12 @@ declare const _Table: {
|
|
|
280
280
|
getFetchParams: () => Record<string, any>;
|
|
281
281
|
getFullFetchParams: () => Record<string, any>;
|
|
282
282
|
setData: (data: any[]) => void;
|
|
283
|
+
getData: () => any[];
|
|
284
|
+
getRootEl: () => HTMLElement | null;
|
|
285
|
+
getPagination: () => {
|
|
286
|
+
page: number;
|
|
287
|
+
pageSize: number;
|
|
288
|
+
};
|
|
283
289
|
reset: () => void;
|
|
284
290
|
submit: () => Promise<any>;
|
|
285
291
|
validate: (callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
@@ -615,6 +621,12 @@ declare const _Table: {
|
|
|
615
621
|
getFetchParams: () => Record<string, any>;
|
|
616
622
|
getFullFetchParams: () => Record<string, any>;
|
|
617
623
|
setData: (data: any[]) => void;
|
|
624
|
+
getData: () => any[];
|
|
625
|
+
getRootEl: () => HTMLElement | null;
|
|
626
|
+
getPagination: () => {
|
|
627
|
+
page: number;
|
|
628
|
+
pageSize: number;
|
|
629
|
+
};
|
|
618
630
|
reset: () => void;
|
|
619
631
|
submit: () => Promise<any>;
|
|
620
632
|
validate: (callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
@@ -808,6 +820,12 @@ declare const _Table: {
|
|
|
808
820
|
getFetchParams: () => Record<string, any>;
|
|
809
821
|
getFullFetchParams: () => Record<string, any>;
|
|
810
822
|
setData: (data: any[]) => void;
|
|
823
|
+
getData: () => any[];
|
|
824
|
+
getRootEl: () => HTMLElement | null;
|
|
825
|
+
getPagination: () => {
|
|
826
|
+
page: number;
|
|
827
|
+
pageSize: number;
|
|
828
|
+
};
|
|
811
829
|
reset: () => void;
|
|
812
830
|
submit: () => Promise<any>;
|
|
813
831
|
validate: (callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
@@ -167,6 +167,12 @@ export interface TableCustomExpose {
|
|
|
167
167
|
getFetchParams: () => Record<string, any>;
|
|
168
168
|
getFullFetchParams: () => Record<string, any>;
|
|
169
169
|
setData: (data: any[]) => void;
|
|
170
|
+
getData: () => any[];
|
|
171
|
+
getRootEl: () => HTMLElement | null;
|
|
172
|
+
getPagination: () => {
|
|
173
|
+
page: number;
|
|
174
|
+
pageSize: number;
|
|
175
|
+
};
|
|
170
176
|
}
|
|
171
177
|
export type TableExpose = TableCustomExpose & TableQueryExpose & {
|
|
172
178
|
clearSelection: () => void;
|
|
@@ -140,6 +140,12 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
140
140
|
getFetchParams: () => Record<string, any>;
|
|
141
141
|
getFullFetchParams: () => Record<string, any>;
|
|
142
142
|
setData: (data: any[]) => void;
|
|
143
|
+
getData: () => any[];
|
|
144
|
+
getRootEl: () => HTMLElement | null;
|
|
145
|
+
getPagination: () => {
|
|
146
|
+
page: number;
|
|
147
|
+
pageSize: number;
|
|
148
|
+
};
|
|
143
149
|
reset: () => void;
|
|
144
150
|
submit: () => Promise<any>;
|
|
145
151
|
validate: (callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
@@ -261,6 +261,12 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
261
261
|
const onPageChange = () => {
|
|
262
262
|
execute();
|
|
263
263
|
};
|
|
264
|
+
const getPagination = () => {
|
|
265
|
+
return {
|
|
266
|
+
page: page.value,
|
|
267
|
+
pageSize: pageSize.value
|
|
268
|
+
};
|
|
269
|
+
};
|
|
264
270
|
const defaultToolbarConfig = {
|
|
265
271
|
reload: true,
|
|
266
272
|
export: true,
|
|
@@ -339,7 +345,8 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
339
345
|
const statsColumns = computed(() => unref(props.statsColumns));
|
|
340
346
|
const statsData = computed(() => unref(props.statsData));
|
|
341
347
|
const isStatsVisible = computed(() => statsColumns.value && statsColumns.value.length > 0);
|
|
342
|
-
const rootRef = ref();
|
|
348
|
+
const rootRef = ref(null);
|
|
349
|
+
const getRootEl = () => rootRef.value;
|
|
343
350
|
const expose = createMergedExpose(tableExposeKeys, () => elTableRef.value, {
|
|
344
351
|
reload,
|
|
345
352
|
expandAll,
|
|
@@ -348,7 +355,8 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
348
355
|
getFullFetchParams,
|
|
349
356
|
setData,
|
|
350
357
|
getData,
|
|
351
|
-
|
|
358
|
+
getRootEl,
|
|
359
|
+
getPagination
|
|
352
360
|
}, () => tableQueryRef.value);
|
|
353
361
|
watch(() => props.getExpose, () => {
|
|
354
362
|
props.getExpose?.(expose);
|