mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-20 07:14:23 +00:00
Merge branch 'fix/lihao-bugs-200827' into 'release/0.9.14'
fix: 用户在动态修改 prototype 时也需要重新计算 meta See merge request !951264
This commit is contained in:
commit
ec3a979bca
@ -126,8 +126,8 @@ export default class Bundle {
|
|||||||
*/
|
*/
|
||||||
if (bundles.length >= 2) {
|
if (bundles.length >= 2) {
|
||||||
const prototype = bundles[0];
|
const prototype = bundles[0];
|
||||||
// const metadata = upgradeMetadata(prototype.options);
|
const metadata = upgradeMetadata(prototype.options);
|
||||||
// prototype.meta = designer.createComponentMeta(metadata);
|
prototype.meta = designer.createComponentMeta(metadata);
|
||||||
const prototypeView = bundles[1];
|
const prototypeView = bundles[1];
|
||||||
prototype.setView(prototypeView);
|
prototype.setView(prototypeView);
|
||||||
this.registerPrototype(prototype);
|
this.registerPrototype(prototype);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user