Replies: 1 comment
-
您好,请问能进一步描述相关的信息嘛? 从当前的描述来看,可能是未提供 element-plus 的运行时,导致在画布无法正确加载组件。 版本 v2.2 之前提供运行时的方式: // bundle.json 物料文件: {
"framework": "Vue",
"materials": {
"components": [
{
"component": "ElButton",
"npm": {
"package": "element-plus",
"exportName": "ElButton",
“destructuring”: true,
"version": "2.4.2",
"script": "https://unpkg.com/[email protected]/dist/index.full.mjs",
"css": "https://unpkg.com/[email protected]/dist/index.css"
}
//... 其他物料描述
}
]
}
} 版本 v2.2 之后,修改了物料协议,需要改为: // bundle.json 物料文件: {
"framework": "Vue",
"materials": {
"components": [
{
"component": "ElButton",
"npm": {
"package": "element-plus",
"exportName": "ElButton",
}
//... 其他物料描述
}
],
"packages": [
{
"name": "element-plus组件库",
"package": "element-plus",
"version": "2.4.2",
"script": "https://unpkg.com/[email protected]/dist/index.full.mjs",
"css": "https://unpkg.com/[email protected]/dist/index.css"
}
]
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Beta Was this translation helpful? Give feedback.
All reactions