You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bot detected the issue body's language is not English, translate it automatically.
The corresponding dependent script can be declared in the material.
Assume that the component library packages axios and @vueuse/core as external.
Then we can add the following statement: The component can be rendered normally on the canvas
// packages/design-core/config/lowcode.config.jsexportdefault{canvasOptions: {Vue: {material: ['xxx'],//Material addressscripts: ['xxxaxios','xxxvuesecore'],// scripts that the component library depends onstyles: ['xxxx']}}}
PS: Regarding decoding, if the external package of the component library requires additional declarations, we need to add the corresponding package dependency declaration in the decoding template.
Environment
谷歌
Version
20
Version
LATEST
Link to minimal reproduction
null
Step to reproduce
我想引入我自定义的组件:https://unpkg.com/[email protected]/dist/index.js
我这个包会有一定的依赖 比如
在materials中引入这个组件后 会有报错
我该如何添加这些依赖,或者我打包必须也把这些依赖也打出来吗?
What is expected
给出一个解决外部依赖的解决方案
What is actually happening
缺失依赖引用会报错
What is your project name
null
Any additional comments (optional)
No response
The text was updated successfully, but these errors were encountered: