Merge branch 'fix/lihao-bugs-200827' into 'release/0.9.14'

fix: 用户在动态修改 prototype 时也需要重新计算 meta



See merge request !951264
This commit is contained in:
力皓 2020-08-27 09:44:24 +08:00
commit ec3a979bca

View File

@ -126,8 +126,8 @@ export default class Bundle {
*/
if (bundles.length >= 2) {
const prototype = bundles[0];
// const metadata = upgradeMetadata(prototype.options);
// prototype.meta = designer.createComponentMeta(metadata);
const metadata = upgradeMetadata(prototype.options);
prototype.meta = designer.createComponentMeta(metadata);
const prototypeView = bundles[1];
prototype.setView(prototypeView);
this.registerPrototype(prototype);