cosey 0.4.41 → 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.
@@ -115,7 +115,8 @@ const tableExposeKeys = [
115
115
  "getFetchParams",
116
116
  "getFullFetchParams",
117
117
  "setData",
118
- "getData"
118
+ "getData",
119
+ "rootRef"
119
120
  ];
120
121
  const defaultTableConfig = {
121
122
  keys: {
@@ -339,6 +339,7 @@ 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
343
  const expose = createMergedExpose(tableExposeKeys, () => elTableRef.value, {
343
344
  reload,
344
345
  expandAll,
@@ -346,7 +347,8 @@ var stdin_default = /* @__PURE__ */defineComponent({
346
347
  getFetchParams,
347
348
  getFullFetchParams,
348
349
  setData,
349
- getData
350
+ getData,
351
+ rootRef
350
352
  }, () => tableQueryRef.value);
351
353
  watch(() => props.getExpose, () => {
352
354
  props.getExpose?.(expose);
@@ -363,6 +365,8 @@ var stdin_default = /* @__PURE__ */defineComponent({
363
365
  to: "body",
364
366
  disabled: !unref(isFullPage)
365
367
  }, [withDirectives((openBlock(), createElementBlock("div", {
368
+ ref_key: "rootRef",
369
+ ref: rootRef,
366
370
  class: normalizeClass([unref(hashId), unref(prefixCls), {
367
371
  "is-fullpage": unref(isFullPage)
368
372
  }]),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cosey",
3
- "version": "0.4.41",
3
+ "version": "0.4.42",
4
4
  "description": "基于 Vue3 + vite 的后台管理系统框架",
5
5
  "type": "module",
6
6
  "main": "index.js",