From 5613dcef99239211dbe5541a9d5a5b376eedbea2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=AA=E5=BF=86=E5=A4=A9=E5=A0=82?= <1455668754@qq.com> Date: Mon, 23 Mar 2026 10:05:32 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20table=E5=85=81=E8=AE=B8=E9=80=9A?= =?UTF-8?q?=E8=BF=87props=E5=8A=A8=E6=80=81=E5=8F=98=E5=8C=96data=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + packages/effects/plugins/src/vxe-table/use-vxe-grid.vue | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/package.json b/package.json index bd937293f..e62297128 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ }, "type": "module", "scripts": { + "bootstrap": "pnpm install", "build": "cross-env NODE_OPTIONS=--max-old-space-size=8192 turbo build", "build:analyze": "turbo build:analyze", "build:antd": "pnpm run build --filter=@vben/web-antd", diff --git a/packages/effects/plugins/src/vxe-table/use-vxe-grid.vue b/packages/effects/plugins/src/vxe-table/use-vxe-grid.vue index 4cb2d03bb..ddde3d30a 100644 --- a/packages/effects/plugins/src/vxe-table/use-vxe-grid.vue +++ b/packages/effects/plugins/src/vxe-table/use-vxe-grid.vue @@ -72,6 +72,7 @@ const { gridEvents, formOptions, tableTitle, + tableData, tableTitleHelp, showSearchForm, separator, @@ -229,6 +230,9 @@ const options = computed(() => { } if (mergedOptions.formConfig) { mergedOptions.formConfig.enabled = false; + if (tableData.value && tableData.value.length > 0) { + mergedOptions.data = tableData.value; + } } return mergedOptions; });