123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- MWF.xApplication.process.FormDesigner.Module = MWF.xApplication.process.FormDesigner.Module || {};
- MWF.xDesktop.requireApp("process.FormDesigner", "Module.Checkbox", null, false);
- MWF.xApplication.process.FormDesigner.Module.Elcheckbox = MWF.FCElcheckbox = new Class({
- Extends: MWF.FC$ElElement,
- Implements: [Options, Events],
- options: {
- "style": "default",
- "type": "elcheckbox",
- "path": "../x_component_process_FormDesigner/Module/Elcheckbox/",
- "propertyPath": "../x_component_process_FormDesigner/Module/Elcheckbox/elcheckbox.html"
- },
- _initModuleType: function(){
- this.className = "Elcheckbox";
- 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+"\"";
- html += " :text-color=\"textColor\"";
- html += " :fill=\"fillColor\"";
- html += " :size=\"size\"";
- html += " :style=\"elGroupStyles\"";
- html += (this.json.buttonRadio) ? " ><el-checkbox-button" : " ><el-checkbox";
- html += " :border=\"border\"";
- html += " :style=\"tmpElStyles\"";
- html += " :label=\"id\">{{id}}"+((this.json.buttonRadio) ? "</el-checkbox-button></el-checkbox-group>" : "</el-checkbox></el-checkbox-group>");
- return html;
- },
- _createCopyNode: function(){
- this.copyNode = new Element("div", {
- "styles": this.css.moduleNodeShow
- });
- this.copyNode.addEvent("selectstart", function(){
- return false;
- });
- },
- _getCopyNode: function(){
- if (!this.copyNode) this._createCopyNode();
- this.copyNode.setStyle("display", "inline-block");
- return this.copyNode;
- },
- setPropertyId: function(){
- if (this.isPropertyLoaded) if (this.vm) this.resetElement();
- }
- });
|