This commit is contained in:
dap
2024-11-02 15:09:37 +08:00
6 changed files with 28 additions and 24 deletions

View File

@@ -222,7 +222,9 @@ async function init() {
// form 由 vben-form代替所以不适配formConfig这里给出警告
const formConfig = gridOptions.value?.formConfig;
if (formConfig) {
// 处理某个页面加载多个Table时第2个之后的Table初始化报出警告
// 因为第一次初始化之后会把defaultGridOptions和gridOptions合并后缓存进State
if (formConfig && formConfig.enabled) {
console.warn(
'[Vben Vxe Table]: The formConfig in the grid is not supported, please use the `formOptions` props',
);