feat: table允许通过props动态变化data数据

This commit is contained in:
雪忆天堂
2026-03-23 10:05:32 +08:00
parent 3528517fe0
commit 5613dcef99
2 changed files with 5 additions and 0 deletions

View File

@@ -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;
});