Skip to content

Commit 4f18ff4

Browse files
authored
fix: module default export can not rendering (opentiny#1491)
1 parent f473753 commit 4f18ff4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/canvas/common/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export const getComponents = async ({ package: pkg, script, components }: Compon
127127
// 当item是配置对象时,根据destructuring属性决定如何获取组件
128128
const config = item as ComponentConfig
129129
window.TinyLowcodeComponent[componentId] =
130-
config?.destructuring && config?.exportName ? modules[config.exportName] : modules
130+
config?.destructuring && config?.exportName ? modules[config.exportName] : modules?.default
131131
}
132132
}
133133
})

0 commit comments

Comments
 (0)