cosey 0.4.40 → 0.4.42

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.
@@ -114,7 +114,9 @@ const tableExposeKeys = [
114
114
  "collapseAll",
115
115
  "getFetchParams",
116
116
  "getFullFetchParams",
117
- "setData"
117
+ "setData",
118
+ "getData",
119
+ "rootRef"
118
120
  ];
119
121
  const defaultTableConfig = {
120
122
  keys: {
@@ -127,6 +127,9 @@ var stdin_default = /* @__PURE__ */defineComponent({
127
127
  watch(() => props.data, () => {
128
128
  tableData.value = props.data || [];
129
129
  });
130
+ const getData = () => {
131
+ return tableData.value;
132
+ };
130
133
  const setData = data => {
131
134
  tableData.value = data;
132
135
  };
@@ -336,13 +339,16 @@ var stdin_default = /* @__PURE__ */defineComponent({
336
339
  const statsColumns = computed(() => unref(props.statsColumns));
337
340
  const statsData = computed(() => unref(props.statsData));
338
341
  const isStatsVisible = computed(() => statsColumns.value && statsColumns.value.length > 0);
342
+ const rootRef = ref();
339
343
  const expose = createMergedExpose(tableExposeKeys, () => elTableRef.value, {
340
344
  reload,
341
345
  expandAll,
342
346
  collapseAll,
343
347
  getFetchParams,
344
348
  getFullFetchParams,
345
- setData
349
+ setData,
350
+ getData,
351
+ rootRef
346
352
  }, () => tableQueryRef.value);
347
353
  watch(() => props.getExpose, () => {
348
354
  props.getExpose?.(expose);
@@ -359,6 +365,8 @@ var stdin_default = /* @__PURE__ */defineComponent({
359
365
  to: "body",
360
366
  disabled: !unref(isFullPage)
361
367
  }, [withDirectives((openBlock(), createElementBlock("div", {
368
+ ref_key: "rootRef",
369
+ ref: rootRef,
362
370
  class: normalizeClass([unref(hashId), unref(prefixCls), {
363
371
  "is-fullpage": unref(isFullPage)
364
372
  }]),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cosey",
3
- "version": "0.4.40",
3
+ "version": "0.4.42",
4
4
  "description": "基于 Vue3 + vite 的后台管理系统框架",
5
5
  "type": "module",
6
6
  "main": "index.js",