提交 f174f3df 编写于 作者: NoSubject's avatar NoSubject

修复ElementUI对选组件在设计端不显示的问题

上级 ad2691c0
......@@ -14,6 +14,11 @@ MWF.xApplication.process.FormDesigner.Module.Elcheckbox = MWF.FCElcheckbox = new
this.moduleType = "element";
this.moduleName = "elcheckbox";
},
_filterHtml: function(html){
var reg = /(?:@|v-on|:data)\S*(?:\=)\S*(?:\"|\'|\s)/g;
var v = html.replace(reg, "");
return v;
},
_createElementHtml: function(){
var html = "<el-checkbox-group v-model=\""+this.json.id+"\"";
......@@ -45,10 +50,5 @@ MWF.xApplication.process.FormDesigner.Module.Elcheckbox = MWF.FCElcheckbox = new
},
setPropertyId: function(){
if (this.isPropertyLoaded) if (this.vm) this.resetElement();
},
// _createVueData: function(){
// var data = {};
// data[this.json.id] = [this.json.id];
// return data;
// },
}
});
......@@ -16,9 +16,6 @@ MWF.xApplication.process.FormDesigner.Module.Elradio = MWF.FCElradio = new Class
},
_createElementHtml: function(){
var html = "<el-radio-group";
// if (this.json.textColor) html += " text-color=\""+this.json.textColor+"\"";
// if (this.json.fillColor) html += " fill=\""+this.json.fillColor+"\"";
// if (this.json.size && this.json.size!=="default") html += " size=\""+this.json.size+"\"";
html += " :text-color=\"textColor\"";
html += " :fill=\"fillColor\"";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册