Skip to content

Commit

Permalink
fix: fix component type can't change bug #11000
Browse files Browse the repository at this point in the history
* fix bug #11000

* fix bug #11000
  • Loading branch information
yufeng04 authored and pissang committed Oct 30, 2019
1 parent 82ebc4d commit 27d270e
Show file tree
Hide file tree
Showing 3 changed files with 386 additions and 192 deletions.
2 changes: 1 addition & 1 deletion src/model/Global.js
Expand Up @@ -212,7 +212,7 @@ var GlobalModel = Model.extend({
mainType, resultItem.keyInfo.subType, true
);

if (componentModel && componentModel instanceof ComponentModelClass) {
if (componentModel && componentModel.constructor === ComponentModelClass) {
componentModel.name = resultItem.keyInfo.name;
// componentModel.settingTask && componentModel.settingTask.dirty();
componentModel.mergeOption(newCptOption, this);
Expand Down

0 comments on commit 27d270e

Please sign in to comment.