MWF.xApplication.process.FormDesigner.Module = MWF.xApplication.process.FormDesigner.Module || {};
MWF.xDesktop.requireApp("process.FormDesigner", "Module.Elinput", null, false);
MWF.xApplication.process.FormDesigner.Module.Elselect = MWF.FCElselect = new Class({
Extends: MWF.FCElinput,
Implements: [Options, Events],
options: {
"style": "default",
"propertyPath": "../x_component_process_FormDesigner/Module/Elselect/elselect.html"
},
_initModuleType: function(){
this.className = "Elselect";
this.moduleType = "element";
this.moduleName = "elselect";
},
_createElementHtml: function(){
//var html = "";
var html = "";
//html += ">";
html += "";
if (this.json.vueSlot) html += this.json.vueSlot;
html += "";
return html;
},
_createVueData: function(){
//var data = this.json;
return function(){
// this.json[this.json.id] = "";
this.setElStyles();
return Object.assign(this.json, this.tmpVueData||{});
}.bind(this)
},
_setEditStyle_custom: function(name){
// switch (name){
// case "name": this.setPropertyName(); break;
// case "id": this.setPropertyId(); break;
// default: if (this.isPropertyLoaded) if (this.vm) this.resetElement();
// }
},
_afterMounted: function(el, callback){
this.node = el;
this.node.store("module", this);
this._loadVueCss();
if (callback) callback();
//window.setTimeout(function(){
this.node.getElement("input").addEvent("click", function(e){
this.selected();
e.stopPropagation();
}.bind(this));
this.node.getElement(".el-select").addEvent("click", function(e){
this.selected();
e.stopPropagation();
}.bind(this));
},
});