alibaba / alibaba/lowcode-engine

如何在面板切换资产包版本?

Open
#912 11 comments 1 reaction 1 assignee Assigned to @liujuping View on GitHub
Dominant language
TypeScript
Stars
15.9k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

## **Describe the bug (required)** / **详细描述 bug(必填)**
![image](https://user-images.githubusercontent.com/21785332/183332840-8a2c998e-638f-49f7-a3fa-94cdb3364338.png)

给搭建器加了资产包版本管理的功能,切换版本后,调用`material.setAssest(newVersionAssest)`却无法更新组件库的内容;在控制台打印`window.AliLowCodeEngine.material.componentsMap`还是初始化的组件列表,打印`window.MyComponentMeta`也是初始化组件列表
![image](https://user-images.githubusercontent.com/21785332/183333084-1ed6bfd9-9754-42f0-a058-4c68c57760da.png)

A clear and concise description of what the bug is. / 请提供清晰且精确的 bug 描述

---

## **To Reproduce (required)** / **如何复现 bug?(必填,非常重要)**

按照bug描述的步骤即可复现

## **Expected behavior (required)** / **预期行为(必填,非常重要)**
预期`material.setAssets(x)`能够有效替换资产包,或者提供一个新的方法达到所需功能

## **Environments (please complete the following information) (required):** / **请提供如下信息(必填)**
- AliLowCodeEngine version: [e.g. 1.0.0] / `1.0.7`
- AliLowCodeEngineExt version: [e.g. 1.0.0] / `1.0.3`
- Browser [e.g. chrome, safari] / `chrome latest`
- materials / plugins / tools / 自定义物料

> (this information can be collected via [the manual plugin](https://img.alicdn.com/imgextra/i1/O1CN0115zonY1IsgbkZ2ir7_!!6000000000949-2-tps-3066-1650.png) / 版本信息可[通过低代码用户手册插件收集](https://img.alicdn.com/imgextra/i1/O1CN0115zonY1IsgbkZ2ir7_!!6000000000949-2-tps-3066-1650.png))

## **Additional context (optional)** / **更多额外信息(可选)**
Any other context of the problem here. / 可以追加更多的额外信息,帮助定位问题

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.