Skip to content

Commit dbea1f0

Browse files
authored
fix(component): filtering components of third-party libraries to script(other) (#2082)
1 parent 4b09a22 commit dbea1f0

File tree

1 file changed

+2
-1
lines changed
  • packages/app-backend-vue3/src/components

1 file changed

+2
-1
lines changed

packages/app-backend-vue3/src/components/data.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,8 @@ function processSetupState (instance) {
188188

189189
let isOther = typeof value === 'function' ||
190190
typeof value?.render === 'function' ||
191-
typeof value?.__asyncLoader === 'function'
191+
typeof value?.__asyncLoader === 'function' ||
192+
typeof value === 'object' && ('setup' in value || 'props' in value)
192193

193194
if (rawData) {
194195
const info = getSetupStateInfo(rawData)

0 commit comments

Comments
 (0)