From dbea1f04f78cb07d8d3e4aa325c9db8411974f9a Mon Sep 17 00:00:00 2001 From: KaevN <63998986+KaevN@users.noreply.github.com> Date: Sun, 4 Feb 2024 18:36:39 +0700 Subject: [PATCH] fix(component): filtering components of third-party libraries to script(other) (#2082) --- packages/app-backend-vue3/src/components/data.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/app-backend-vue3/src/components/data.ts b/packages/app-backend-vue3/src/components/data.ts index e4ec65b71..fcee463a3 100644 --- a/packages/app-backend-vue3/src/components/data.ts +++ b/packages/app-backend-vue3/src/components/data.ts @@ -188,7 +188,8 @@ function processSetupState (instance) { let isOther = typeof value === 'function' || typeof value?.render === 'function' || - typeof value?.__asyncLoader === 'function' + typeof value?.__asyncLoader === 'function' || + typeof value === 'object' && ('setup' in value || 'props' in value) if (rawData) { const info = getSetupStateInfo(rawData)