cosey 0.4.42 → 0.4.43

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,8 @@ 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;
283
285
  reset: () => void;
284
286
  submit: () => Promise<any>;
285
287
  validate: (callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
@@ -615,6 +617,8 @@ declare const _Table: {
615
617
  getFetchParams: () => Record<string, any>;
616
618
  getFullFetchParams: () => Record<string, any>;
617
619
  setData: (data: any[]) => void;
620
+ getData: () => any[];
621
+ getRootEl: () => HTMLElement | null;
618
622
  reset: () => void;
619
623
  submit: () => Promise<any>;
620
624
  validate: (callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
@@ -808,6 +812,8 @@ declare const _Table: {
808
812
  getFetchParams: () => Record<string, any>;
809
813
  getFullFetchParams: () => Record<string, any>;
810
814
  setData: (data: any[]) => void;
815
+ getData: () => any[];
816
+ getRootEl: () => HTMLElement | null;
811
817
  reset: () => void;
812
818
  submit: () => Promise<any>;
813
819
  validate: (callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
@@ -167,6 +167,8 @@ 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;
170
172
  }
171
173
  export type TableExpose = TableCustomExpose & TableQueryExpose & {
172
174
  clearSelection: () => void;
@@ -116,7 +116,7 @@ const tableExposeKeys = [
116
116
  "getFullFetchParams",
117
117
  "setData",
118
118
  "getData",
119
- "rootRef"
119
+ "getRootEl"
120
120
  ];
121
121
  const defaultTableConfig = {
122
122
  keys: {
@@ -140,6 +140,8 @@ 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;
143
145
  reset: () => void;
144
146
  submit: () => Promise<any>;
145
147
  validate: (callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
@@ -339,7 +339,8 @@ var stdin_default = /* @__PURE__ */defineComponent({
339
339
  const statsColumns = computed(() => unref(props.statsColumns));
340
340
  const statsData = computed(() => unref(props.statsData));
341
341
  const isStatsVisible = computed(() => statsColumns.value && statsColumns.value.length > 0);
342
- const rootRef = ref();
342
+ const rootRef = ref(null);
343
+ const getRootEl = () => rootRef.value;
343
344
  const expose = createMergedExpose(tableExposeKeys, () => elTableRef.value, {
344
345
  reload,
345
346
  expandAll,
@@ -348,7 +349,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
348
349
  getFullFetchParams,
349
350
  setData,
350
351
  getData,
351
- rootRef
352
+ getRootEl
352
353
  }, () => tableQueryRef.value);
353
354
  watch(() => props.getExpose, () => {
354
355
  props.getExpose?.(expose);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cosey",
3
- "version": "0.4.42",
3
+ "version": "0.4.43",
4
4
  "description": "基于 Vue3 + vite 的后台管理系统框架",
5
5
  "type": "module",
6
6
  "main": "index.js",