UNPKG

@wenshudrag/avue-form-design

Version:

本项目是一款基于 <a href="https://avuejs.com/" target="_blank">Avue</a> 的表单设计器,拖拽式操作让你快速构建一个表单。 [在线预览](https://form.beta.kim/)

1 lines 2.04 MB
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["AvueFormDesign"]=t():e["AvueFormDesign"]=t()})("undefined"!==typeof self?self:this,(function(){return function(e){function t(t){for(var i,o,r=t[0],s=t[1],a=0,l=[];a<r.length;a++)o=r[a],Object.prototype.hasOwnProperty.call(n,o)&&n[o]&&l.push(n[o][0]),n[o]=0;for(i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i]);c&&c(t);while(l.length)l.shift()()}var i={},n={0:0};function o(e){return r.p+"index.umd.min."+({}[e]||e)+".js"}function r(t){if(i[t])return i[t].exports;var n=i[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.e=function(e){var t=[],i=n[e];if(0!==i)if(i)t.push(i[2]);else{var s=new Promise((function(t,o){i=n[e]=[t,o]}));t.push(i[2]=s);var a,l=document.createElement("script");l.charset="utf-8",l.timeout=120,r.nc&&l.setAttribute("nonce",r.nc),l.src=o(e);var c=new Error;a=function(t){l.onerror=l.onload=null,clearTimeout(d);var i=n[e];if(0!==i){if(i){var o=t&&("load"===t.type?"missing":t.type),r=t&&t.target&&t.target.src;c.message="Loading chunk "+e+" failed.\n("+o+": "+r+")",c.name="ChunkLoadError",c.type=o,c.request=r,i[1](c)}n[e]=void 0}};var d=setTimeout((function(){a({type:"timeout",target:l})}),12e4);l.onerror=l.onload=a,document.head.appendChild(l)}return Promise.all(t)},r.m=e,r.c=i,r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(i,n,function(t){return e[t]}.bind(null,n));return i},r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r.oe=function(e){throw console.error(e),e};var s=("undefined"!==typeof self?self:this)["webpackJsonpAvueFormDesign"]=("undefined"!==typeof self?self:this)["webpackJsonpAvueFormDesign"]||[],a=s.push.bind(s);s.push=t,s=s.slice();for(var l=0;l<s.length;l++)t(s[l]);var c=a;return r(r.s="fb15")}({"00a3":function(e,t,i){"use strict";i.d(t,"b",(function(){return a})),i.d(t,"a",(function(){return l}));var n=i("11f7"),o=i("e757"),r=i("5d28"),s=i("a666");function a(e,t){let i=new r["a"](t);return i.preventDefault(),{leftButton:i.leftButton,buttons:i.buttons,posx:i.posx,posy:i.posy}}class l{constructor(){this._hooks=new s["b"],this._mouseMoveEventMerger=null,this._mouseMoveCallback=null,this._onStopCallback=null}dispose(){this.stopMonitoring(!1),this._hooks.dispose()}stopMonitoring(e,t){if(!this.isMonitoring())return;this._hooks.clear(),this._mouseMoveEventMerger=null,this._mouseMoveCallback=null;const i=this._onStopCallback;this._onStopCallback=null,e&&i&&i(t)}isMonitoring(){return!!this._mouseMoveEventMerger}startMonitoring(e,t,i,s,a){if(this.isMonitoring())return;this._mouseMoveEventMerger=i,this._mouseMoveCallback=s,this._onStopCallback=a;const l=o["a"].getSameOriginWindowChain(),c="mousemove",d="mouseup",h=l.map(e=>e.window.document),u=n["A"](e);u&&h.unshift(u);for(const o of h)this._hooks.add(n["j"](o,c,e=>{e.buttons===t?this._mouseMoveCallback(e):this.stopMonitoring(!0)},(e,t)=>this._mouseMoveEventMerger(e,t))),this._hooks.add(n["g"](o,d,e=>this.stopMonitoring(!0)));if(o["a"].hasDifferentOriginAncestor()){let e=l[l.length-1];this._hooks.add(n["g"](e.window.document,"mouseout",e=>{let t=new r["a"](e);"html"===t.target.tagName.toLowerCase()&&this.stopMonitoring(!0)})),this._hooks.add(n["g"](e.window.document,"mouseover",e=>{let t=new r["a"](e);"html"===t.target.tagName.toLowerCase()&&this.stopMonitoring(!0)})),this._hooks.add(n["g"](e.window.document.body,"mouseleave",e=>{this.stopMonitoring(!0)}))}}}},"00ee":function(e,t,i){var n=i("b622"),o=n("toStringTag"),r={};r[o]="z",e.exports="[object z]"===String(r)},"01b0":function(e,t,i){var n=i("c5ef");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var o=i("499e").default;o("1bccfb45",n,!0,{sourceMap:!1,shadowMode:!1})},"0366":function(e,t,i){var n=i("1c0b");e.exports=function(e,t,i){if(n(e),void 0===t)return e;switch(i){case 0:return function(){return e.call(t)};case 1:return function(i){return e.call(t,i)};case 2:return function(i,n){return e.call(t,i,n)};case 3:return function(i,n,o){return e.call(t,i,n,o)}}return function(){return e.apply(t,arguments)}}},"03e8":function(e,t,i){"use strict";i.d(t,"a",(function(){return l})),i.d(t,"b",(function(){return h}));var n=i("0a0f"),o=i("308f"),r=i("a666"),s=i("ef8e");const a="__$__targetStorageMarker",l=Object(n["c"])("storageService");var c;(function(e){e[e["NONE"]=0]="NONE",e[e["SHUTDOWN"]=1]="SHUTDOWN"})(c||(c={}));class d extends r["a"]{constructor(){super(...arguments),this._onDidChangeValue=this._register(new o["d"]),this._onDidChangeTarget=this._register(new o["d"]),this._onWillSaveState=this._register(new o["a"]),this.onWillSaveState=this._onWillSaveState.event,this._workspaceKeyTargets=void 0,this._globalKeyTargets=void 0}emitDidChangeValue(e,t){t===a?(0===e?this._globalKeyTargets=void 0:1===e&&(this._workspaceKeyTargets=void 0),this._onDidChangeTarget.fire({scope:e})):this._onDidChangeValue.fire({scope:e,key:t,target:this.getKeyTargets(e)[t]})}store(e,t,i,n){Object(s["k"])(t)?this.remove(e,i):this.withPausedEmitters(()=>{this.updateKeyTarget(e,i,n),this.doStore(e,t,i)})}remove(e,t){this.withPausedEmitters(()=>{this.updateKeyTarget(e,t,void 0),this.doRemove(e,t)})}withPausedEmitters(e){this._onDidChangeValue.pause(),this._onDidChangeTarget.pause();try{e()}finally{this._onDidChangeValue.resume(),this._onDidChangeTarget.resume()}}updateKeyTarget(e,t,i){const n=this.getKeyTargets(t);"number"===typeof i?n[e]!==i&&(n[e]=i,this.doStore(a,JSON.stringify(n),t)):"number"===typeof n[e]&&(delete n[e],this.doStore(a,JSON.stringify(n),t))}get workspaceKeyTargets(){return this._workspaceKeyTargets||(this._workspaceKeyTargets=this.loadKeyTargets(1)),this._workspaceKeyTargets}get globalKeyTargets(){return this._globalKeyTargets||(this._globalKeyTargets=this.loadKeyTargets(0)),this._globalKeyTargets}getKeyTargets(e){return 0===e?this.globalKeyTargets:this.workspaceKeyTargets}loadKeyTargets(e){const t=this.get(a,e);if(t)try{return JSON.parse(t)}catch(i){}return Object.create(null)}}class h extends d{constructor(){super(...arguments),this.globalCache=new Map,this.workspaceCache=new Map}getCache(e){return 0===e?this.globalCache:this.workspaceCache}get(e,t,i){const n=this.getCache(t).get(e);return Object(s["k"])(n)?i:n}getBoolean(e,t,i){const n=this.getCache(t).get(e);return Object(s["k"])(n)?i:"true"===n}getNumber(e,t,i){const n=this.getCache(t).get(e);return Object(s["k"])(n)?i:parseInt(n,10)}doStore(e,t,i){const n=String(t),o=this.getCache(i).get(e);o!==n&&(this.getCache(i).set(e,n),this.emitDidChangeValue(i,e))}doRemove(e,t){const i=this.getCache(t).delete(e);i&&this.emitDidChangeValue(t,e)}}},"045b":function(e,t,i){"use strict";function n(e,t){let i=e.getCount(),n=e.findTokenIndexAtOffset(t),r=e.getLanguageId(n),s=n;while(s+1<i&&e.getLanguageId(s+1)===r)s++;let a=n;while(a>0&&e.getLanguageId(a-1)===r)a--;return new o(e,r,a,s+1,e.getStartOffset(a),e.getEndOffset(s))}i.d(t,"a",(function(){return n})),i.d(t,"b",(function(){return r}));class o{constructor(e,t,i,n,o,r){this._actual=e,this.languageId=t,this._firstTokenIndex=i,this._lastTokenIndex=n,this.firstCharOffset=o,this._lastCharOffset=r}getLineContent(){const e=this._actual.getLineContent();return e.substring(this.firstCharOffset,this._lastCharOffset)}getActualLineContentBefore(e){const t=this._actual.getLineContent();return t.substring(0,this.firstCharOffset+e)}getTokenCount(){return this._lastTokenIndex-this._firstTokenIndex}findTokenIndexAtOffset(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex}getStandardTokenType(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)}}function r(e){return 0!==(7&e)}},"057f":function(e,t,i){var n=i("fc6a"),o=i("241c").f,r={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(e){try{return o(e)}catch(t){return s.slice()}};e.exports.f=function(e){return s&&"[object Window]"==r.call(e)?a(e):o(n(e))}},"06cf":function(e,t,i){var n=i("83ab"),o=i("d1e7"),r=i("5c6c"),s=i("fc6a"),a=i("c04e"),l=i("5135"),c=i("0cfb"),d=Object.getOwnPropertyDescriptor;t.f=n?d:function(e,t){if(e=s(e),t=a(t,!0),c)try{return d(e,t)}catch(i){}if(l(e,t))return r(!o.f.call(e,t),e[t])}},"0836":function(e,t,i){var n=i("7ade");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var o=i("499e").default;o("13719944",n,!0,{sourceMap:!1,shadowMode:!1})},"099d":function(e,t,i){"use strict";function n(e){return e<0?0:e>255?255:0|e}function o(e){return e<0?0:e>4294967295?4294967295:0|e}i.d(t,"b",(function(){return n})),i.d(t,"a",(function(){return o}))},"09f2":function(e,t,i){var n=i("24fb");t=n(!1),t.push([e.i,".monaco-editor .margin-view-overlays .current-line,.monaco-editor .view-overlays .current-line{display:block;position:absolute;left:0;top:0;-webkit-box-sizing:border-box;box-sizing:border-box}.monaco-editor .margin-view-overlays .current-line.current-line-margin.current-line-margin-both{border-right:0}",""]),e.exports=t},"0a0f":function(e,t,i){"use strict";var n;i.d(t,"b",(function(){return n})),i.d(t,"a",(function(){return o})),i.d(t,"c",(function(){return s})),i.d(t,"d",(function(){return a})),function(e){function t(t){return t[e.DI_DEPENDENCIES]||[]}e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=t}(n||(n={}));const o=s("instantiationService");function r(e,t,i,o){t[n.DI_TARGET]===t?t[n.DI_DEPENDENCIES].push({id:e,index:i,optional:o}):(t[n.DI_DEPENDENCIES]=[{id:e,index:i,optional:o}],t[n.DI_TARGET]=t)}function s(e){if(n.serviceIds.has(e))return n.serviceIds.get(e);const t=function(e,i,n){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");r(t,e,n,!1)};return t.toString=()=>e,n.serviceIds.set(e,t),t}function a(e){return function(t,i,n){if(3!==arguments.length)throw new Error("@optional-decorator can only be used to decorate a parameter");r(e,t,n,!0)}}},"0a31":function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var n=i("0f70"),o=i("30db");const r={clipboard:{writeText:o["g"]||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:o["g"]||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText),richText:(()=>{if(n["f"]){let e=navigator.userAgent.indexOf("Edge/"),t=parseInt(navigator.userAgent.substring(e+5,navigator.userAgent.indexOf(".",e)),10);if(!t||t>=12&&t<=16)return!1}return!0})()},keyboard:(()=>o["g"]||n["k"]?0:navigator.keyboard||n["j"]?1:2)(),touch:"ontouchstart"in window||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0,pointerEvents:window.PointerEvent&&("ontouchstart"in window||window.navigator.maxTouchPoints>0||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0)}},"0ba0":function(e,t,i){"use strict";i("ef94")},"0baa":function(e,t,i){var n=i("d31f");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var o=i("499e").default;o("46bf518f",n,!0,{sourceMap:!1,shadowMode:!1})},"0cb2":function(e,t,i){var n=i("7b0b"),o=Math.floor,r="".replace,s=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,a=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,i,l,c,d){var h=i+e.length,u=l.length,g=a;return void 0!==c&&(c=n(c),g=s),r.call(d,g,(function(n,r){var s;switch(r.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,i);case"'":return t.slice(h);case"<":s=c[r.slice(1,-1)];break;default:var a=+r;if(0===a)return n;if(a>u){var d=o(a/10);return 0===d?n:d<=u?void 0===l[d-1]?r.charAt(1):l[d-1]+r.charAt(1):n}s=l[a-1]}return void 0===s?"":s}))}},"0cfb":function(e,t,i){var n=i("83ab"),o=i("d039"),r=i("cc12");e.exports=!n&&!o((function(){return 7!=Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))},"0d30":function(e,t,i){var n=i("30d8");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var o=i("499e").default;o("1a9cb28d",n,!0,{sourceMap:!1,shadowMode:!1})},"0f70":function(e,t,i){"use strict";i.d(t,"d",(function(){return r})),i.d(t,"b",(function(){return s})),i.d(t,"n",(function(){return a})),i.d(t,"c",(function(){return l})),i.d(t,"a",(function(){return c})),i.d(t,"f",(function(){return h})),i.d(t,"i",(function(){return u})),i.d(t,"l",(function(){return g})),i.d(t,"e",(function(){return f})),i.d(t,"j",(function(){return p})),i.d(t,"m",(function(){return m})),i.d(t,"g",(function(){return _})),i.d(t,"h",(function(){return b})),i.d(t,"k",(function(){return v}));var n=i("308f");class o{constructor(){this._zoomLevel=0,this._lastZoomLevelChangeTime=0,this._onDidChangeZoomLevel=new n["a"],this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event,this._zoomFactor=1}getZoomLevel(){return this._zoomLevel}getTimeSinceLastZoomLevelChanged(){return Date.now()-this._lastZoomLevelChangeTime}getZoomFactor(){return this._zoomFactor}getPixelRatio(){let e=document.createElement("canvas").getContext("2d"),t=window.devicePixelRatio||1,i=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return t/i}}function r(){return o.INSTANCE.getZoomLevel()}function s(){return o.INSTANCE.getTimeSinceLastZoomLevelChanged()}function a(e){return o.INSTANCE.onDidChangeZoomLevel(e)}function l(){return o.INSTANCE.getZoomFactor()}function c(){return o.INSTANCE.getPixelRatio()}o.INSTANCE=new o;const d=navigator.userAgent,h=d.indexOf("Edge/")>=0,u=d.indexOf("Firefox")>=0,g=d.indexOf("AppleWebKit")>=0,f=d.indexOf("Chrome")>=0,p=!f&&d.indexOf("Safari")>=0,m=!f&&!p&&g,_=(d.indexOf("iPad")>=0||p&&navigator.maxTouchPoints,h&&d.indexOf("WebView/")>=0),b=d.indexOf("Electron/")>=0,v=window.matchMedia&&window.matchMedia("(display-mode: standalone)").matches},1080:function(e,t,i){"use strict";i.d(t,"b",(function(){return l})),i.d(t,"a",(function(){return v}));var n=i("3742"),o=i("7ab3"),r=i("6a89");class s{constructor(e,t,i,n,o,r){this.languageIdentifier=e,this.index=t,this.open=i,this.close=n,this.forwardRegex=o,this.reversedRegex=r,this._openSet=s._toSet(this.open),this._closeSet=s._toSet(this.close)}isOpen(e){return this._openSet.has(e)}isClose(e){return this._closeSet.has(e)}static _toSet(e){const t=new Set;for(const i of e)t.add(i);return t}}function a(e){const t=e.length;e=e.map(e=>[e[0].toLowerCase(),e[1].toLowerCase()]);const i=[];for(let s=0;s<t;s++)i[s]=s;const n=(e,t)=>{const[i,n]=e,[o,r]=t;return i===o||i===r||n===o||n===r},o=(e,n)=>{const o=Math.min(e,n),r=Math.max(e,n);for(let s=0;s<t;s++)i[s]===r&&(i[s]=o)};for(let s=0;s<t;s++){const r=e[s];for(let a=s+1;a<t;a++){const t=e[a];n(r,t)&&o(i[s],i[a])}}const r=[];for(let s=0;s<t;s++){let n=[],o=[];for(let r=0;r<t;r++)if(i[r]===s){const[t,i]=e[r];n.push(t),o.push(i)}n.length>0&&r.push({open:n,close:o})}return r}class l{constructor(e,t){const i=a(t);this.brackets=i.map((t,n)=>new s(e,n,t.open,t.close,u(t.open,t.close,i,n),g(t.open,t.close,i,n))),this.forwardRegex=f(this.brackets),this.reversedRegex=p(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(const n of this.brackets){for(const e of n.open)this.textIsBracket[e]=n,this.textIsOpenBracket[e]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,e.length);for(const e of n.close)this.textIsBracket[e]=n,this.textIsOpenBracket[e]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,e.length)}}}function c(e,t,i,n){for(let o=0,r=t.length;o<r;o++){if(o===i)continue;const r=t[o];for(const t of r.open)t.indexOf(e)>=0&&n.push(t);for(const t of r.close)t.indexOf(e)>=0&&n.push(t)}}function d(e,t){return e.length-t.length}function h(e){if(e.length<=1)return e;const t=[],i=new Set;for(const n of e)i.has(n)||(t.push(n),i.add(n));return t}function u(e,t,i,n){let o=[];o=o.concat(e),o=o.concat(t);for(let r=0,s=o.length;r<s;r++)c(o[r],i,n,o);return o=h(o),o.sort(d),o.reverse(),_(o)}function g(e,t,i,n){let o=[];o=o.concat(e),o=o.concat(t);for(let r=0,s=o.length;r<s;r++)c(o[r],i,n,o);return o=h(o),o.sort(d),o.reverse(),_(o.map(b))}function f(e){let t=[];for(const i of e){for(const e of i.open)t.push(e);for(const e of i.close)t.push(e)}return t=h(t),_(t)}function p(e){let t=[];for(const i of e){for(const e of i.open)t.push(e);for(const e of i.close)t.push(e)}return t=h(t),_(t.map(b))}function m(e){const t=/^[\w ]+$/.test(e);return e=n["u"](e),t?`\\b${e}\\b`:e}function _(e){let t=`(${e.map(m).join(")|(")})`;return n["q"](t,!0)}const b=function(){function e(e){if(o["d"]){const t=new Uint16Array(e.length);let i=0;for(let n=e.length-1;n>=0;n--)t[i++]=e.charCodeAt(n);return o["c"]().decode(t)}{let t=[],i=0;for(let n=e.length-1;n>=0;n--)t[i++]=e.charAt(n);return t.join("")}}let t=null,i=null;return function(n){return t!==n&&(t=n,i=e(t)),i}}();class v{static _findPrevBracketInText(e,t,i,n){let o=i.match(e);if(!o)return null;let s=i.length-(o.index||0),a=o[0].length,l=n+s;return new r["a"](t,l-a+1,t,l+1)}static findPrevBracketInRange(e,t,i,n,o){const r=b(i),s=r.substring(i.length-o,i.length-n);return this._findPrevBracketInText(e,t,s,n)}static findNextBracketInText(e,t,i,n){let o=i.match(e);if(!o)return null;let s=o.index||0,a=o[0].length;if(0===a)return null;let l=n+s;return new r["a"](t,l+1,t,l+1+a)}static findNextBracketInRange(e,t,i,n,o){const r=i.substring(n,o);return this.findNextBracketInText(e,t,r,n)}}},1115:function(e,t,i){"use strict";i("6b2b")},"11f7":function(e,t,i){"use strict";i.d(t,"o",(function(){return g})),i.d(t,"I",(function(){return f})),i.d(t,"g",(function(){return m})),i.d(t,"k",(function(){return v})),i.d(t,"h",(function(){return w})),i.d(t,"i",(function(){return C})),i.d(t,"O",(function(){return y})),i.d(t,"Q",(function(){return S})),i.d(t,"j",(function(){return O})),i.d(t,"v",(function(){return I})),i.d(t,"u",(function(){return M})),i.d(t,"b",(function(){return A})),i.d(t,"B",(function(){return R})),i.d(t,"y",(function(){return P})),i.d(t,"f",(function(){return F})),i.d(t,"D",(function(){return W})),i.d(t,"x",(function(){return B})),i.d(t,"w",(function(){return V})),i.d(t,"C",(function(){return j})),i.d(t,"G",(function(){return H})),i.d(t,"s",(function(){return z})),i.d(t,"E",(function(){return U})),i.d(t,"J",(function(){return q})),i.d(t,"A",(function(){return $})),i.d(t,"t",(function(){return G})),i.d(t,"r",(function(){return Y})),i.d(t,"q",(function(){return J})),i.d(t,"K",(function(){return ee})),i.d(t,"H",(function(){return te})),i.d(t,"d",(function(){return ie})),i.d(t,"c",(function(){return ne})),i.d(t,"P",(function(){return oe})),i.d(t,"N",(function(){return re})),i.d(t,"S",(function(){return ae})),i.d(t,"m",(function(){return le})),i.d(t,"M",(function(){return ce})),i.d(t,"a",(function(){return ge})),i.d(t,"R",(function(){return fe})),i.d(t,"F",(function(){return pe})),i.d(t,"L",(function(){return _e})),i.d(t,"z",(function(){return be})),i.d(t,"p",(function(){return ve})),i.d(t,"T",(function(){return we})),i.d(t,"l",(function(){return Ce})),i.d(t,"n",(function(){return ye})),i.d(t,"e",(function(){return Se}));var n=i("0f70"),o=i("e32d"),r=i("b835"),s=i("5d28"),a=i("5fe7"),l=i("fdcc"),c=i("308f"),d=i("a666"),h=i("30db"),u=i("b589");i("0a31");function g(e){while(e.firstChild)e.firstChild.remove()}function f(e){var t;return null!==(t=null===e||void 0===e?void 0:e.isConnected)&&void 0!==t&&t}class p{constructor(e,t,i,n){this._node=e,this._type=t,this._handler=i,this._options=n||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}}function m(e,t,i,n){return new p(e,t,i,n)}function _(e){return function(t){return e(new s["a"](t))}}function b(e){return function(t){return e(new r["a"](t))}}let v=function(e,t,i,n){let o=i;return"click"===t||"mousedown"===t?o=_(i):"keydown"!==t&&"keypress"!==t&&"keyup"!==t||(o=b(i)),m(e,t,o,n)};function w(e,t){return m(e,"mouseout",i=>{let n=i.relatedTarget;while(n&&n!==e)n=n.parentNode;n!==e&&t(i)})}function C(e,t){return m(e,"pointerout",i=>{let n=i.relatedTarget;while(n&&n!==e)n=n.parentNode;n!==e&&t(i)})}let y,S,x=null;function k(e){if(!x){const e=e=>setTimeout(()=>e((new Date).getTime()),0);x=self.requestAnimationFrame||self.msRequestAnimationFrame||self.webkitRequestAnimationFrame||self.mozRequestAnimationFrame||self.oRequestAnimationFrame||e}return x.call(self,e)}class L{constructor(e,t=0){this._runner=e,this.priority=t,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(e){Object(l["e"])(e)}}static sort(e,t){return t.priority-e.priority}}(function(){let e=[],t=null,i=!1,n=!1,o=()=>{i=!1,t=e,e=[],n=!0;while(t.length>0){t.sort(L.sort);let e=t.shift();e.execute()}n=!1};S=(t,n=0)=>{let r=new L(t,n);return e.push(r),i||(i=!0,k(o)),r},y=(e,i)=>{if(n){let n=new L(e,i);return t.push(n),n}return S(e,i)}})();const E=16,N=function(e,t){return t};class D extends d["a"]{constructor(e,t,i,n=N,o=E){super();let r=null,s=0,l=this._register(new a["e"]),c=()=>{s=(new Date).getTime(),i(r),r=null};this._register(m(e,t,e=>{r=n(r,e);let t=(new Date).getTime()-s;t>=o?(l.cancel(),c()):l.setIfNotSet(c,o-t)}))}}function O(e,t,i,n,o){return new D(e,t,i,n,o)}function I(e){return document.defaultView.getComputedStyle(e,null)}function M(e){if(e!==document.body)return new A(e.clientWidth,e.clientHeight);if(h["c"]&&window.visualViewport){const e=window.visualViewport.width,t=window.visualViewport.height-(n["k"]?24:0);return new A(e,t)}if(window.innerWidth&&window.innerHeight)return new A(window.innerWidth,window.innerHeight);if(document.body&&document.body.clientWidth&&document.body.clientHeight)return new A(document.body.clientWidth,document.body.clientHeight);if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight)return new A(document.documentElement.clientWidth,document.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")}class T{static convertToPixels(e,t){return parseFloat(t)||0}static getDimension(e,t,i){let n=I(e),o="0";return n&&(o=n.getPropertyValue?n.getPropertyValue(t):n.getAttribute(i)),T.convertToPixels(e,o)}static getBorderLeftWidth(e){return T.getDimension(e,"border-left-width","borderLeftWidth")}static getBorderRightWidth(e){return T.getDimension(e,"border-right-width","borderRightWidth")}static getBorderTopWidth(e){return T.getDimension(e,"border-top-width","borderTopWidth")}static getBorderBottomWidth(e){return T.getDimension(e,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(e){return T.getDimension(e,"padding-left","paddingLeft")}static getPaddingRight(e){return T.getDimension(e,"padding-right","paddingRight")}static getPaddingTop(e){return T.getDimension(e,"padding-top","paddingTop")}static getPaddingBottom(e){return T.getDimension(e,"padding-bottom","paddingBottom")}static getMarginLeft(e){return T.getDimension(e,"margin-left","marginLeft")}static getMarginTop(e){return T.getDimension(e,"margin-top","marginTop")}static getMarginRight(e){return T.getDimension(e,"margin-right","marginRight")}static getMarginBottom(e){return T.getDimension(e,"margin-bottom","marginBottom")}}class A{constructor(e,t){this.width=e,this.height=t}with(e=this.width,t=this.height){return e!==this.width||t!==this.height?new A(e,t):this}static is(e){return"object"===typeof e&&"number"===typeof e.height&&"number"===typeof e.width}static lift(e){return e instanceof A?e:new A(e.width,e.height)}static equals(e,t){return e===t||!(!e||!t)&&(e.width===t.width&&e.height===t.height)}}function R(e){let t=e.offsetParent,i=e.offsetTop,n=e.offsetLeft;while(null!==(e=e.parentNode)&&e!==document.body&&e!==document.documentElement){i-=e.scrollTop;const o=K(e)?null:I(e);o&&(n-="rtl"!==o.direction?e.scrollLeft:-e.scrollLeft),e===t&&(n+=T.getBorderLeftWidth(e),i+=T.getBorderTopWidth(e),i+=e.offsetTop,n+=e.offsetLeft,t=e.offsetParent)}return{left:n,top:i}}function P(e){let t=e.getBoundingClientRect();return{left:t.left+F.scrollX,top:t.top+F.scrollY,width:t.width,height:t.height}}const F=new class{get scrollX(){return"number"===typeof window.scrollX?window.scrollX:document.body.scrollLeft+document.documentElement.scrollLeft}get scrollY(){return"number"===typeof window.scrollY?window.scrollY:document.body.scrollTop+document.documentElement.scrollTop}};function W(e){let t=T.getMarginLeft(e)+T.getMarginRight(e);return e.offsetWidth+t}function B(e){let t=T.getBorderLeftWidth(e)+T.getBorderRightWidth(e),i=T.getPaddingLeft(e)+T.getPaddingRight(e);return e.offsetWidth-t-i}function V(e){let t=T.getBorderTopWidth(e)+T.getBorderBottomWidth(e),i=T.getPaddingTop(e)+T.getPaddingBottom(e);return e.offsetHeight-t-i}function j(e){let t=T.getMarginTop(e)+T.getMarginBottom(e);return e.offsetHeight+t}function H(e,t){while(e){if(e===t)return!0;e=e.parentNode}return!1}function z(e,t,i){while(e&&e.nodeType===e.ELEMENT_NODE){if(e.classList.contains(t))return e;if(i)if("string"===typeof i){if(e.classList.contains(i))return null}else if(e===i)return null;e=e.parentNode}return null}function U(e,t,i){return!!z(e,t,i)}function K(e){return e&&!!e.host&&!!e.mode}function q(e){return!!$(e)}function $(e){while(e.parentNode){if(e===document.body)return null;e=e.parentNode}return K(e)?e:null}function G(){let e=document.activeElement;while(null===e||void 0===e?void 0:e.shadowRoot)e=e.shadowRoot.activeElement;return e}function Y(e=document.getElementsByTagName("head")[0]){let t=document.createElement("style");return t.type="text/css",t.media="screen",e.appendChild(t),t}let Z=null;function X(){return Z||(Z=Y()),Z}function Q(e){var t,i;return(null===(t=null===e||void 0===e?void 0:e.sheet)||void 0===t?void 0:t.rules)?e.sheet.rules:(null===(i=null===e||void 0===e?void 0:e.sheet)||void 0===i?void 0:i.cssRules)?e.sheet.cssRules:[]}function J(e,t,i=X()){i&&t&&i.sheet.insertRule(e+"{"+t+"}",0)}function ee(e,t=X()){if(!t)return;let i=Q(t),n=[];for(let o=0;o<i.length;o++){let t=i[o];-1!==t.selectorText.indexOf(e)&&n.push(o)}for(let o=n.length-1;o>=0;o--)t.sheet.deleteRule(n[o])}function te(e){return"object"===typeof HTMLElement?e instanceof HTMLElement:e&&"object"===typeof e&&1===e.nodeType&&"string"===typeof e.nodeName}const ie={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:n["f"]?"mousewheel":"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:n["l"]?"webkitAnimationStart":"animationstart",ANIMATION_END:n["l"]?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:n["l"]?"webkitAnimationIteration":"animationiteration"},ne={stop:function(e,t){e.preventDefault?e.preventDefault():e.returnValue=!1,t&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0)}};function oe(e){let t=[];for(let i=0;e&&e.nodeType===e.ELEMENT_NODE;i++)t[i]=e.scrollTop,e=e.parentNode;return t}function re(e,t){for(let i=0;e&&e.nodeType===e.ELEMENT_NODE;i++)e.scrollTop!==t[i]&&(e.scrollTop=t[i]),e=e.parentNode}class se extends d["a"]{constructor(e){super(),this._onDidFocus=this._register(new c["a"]),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new c["a"]),this.onDidBlur=this._onDidBlur.event;let t=H(document.activeElement,e),i=!1;const n=()=>{i=!1,t||(t=!0,this._onDidFocus.fire())},r=()=>{t&&(i=!0,window.setTimeout(()=>{i&&(i=!1,t=!1,this._onDidBlur.fire())},0))};this._refreshStateHandler=()=>{let i=H(document.activeElement,e);i!==t&&(t?r():n())},this._register(Object(o["a"])(e,ie.FOCUS,!0)(n)),this._register(Object(o["a"])(e,ie.BLUR,!0)(r))}}function ae(e){return new se(e)}function le(e,...t){if(e.append(...t),1===t.length&&"string"!==typeof t[0])return t[0]}function ce(e,...t){e.innerText="",le(e,...t)}const de=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;var he;function ue(e,t,i,...n){let o=de.exec(t);if(!o)throw new Error("Bad use of emmet");i=Object.assign({},i||{});let r,s=o[1]||"div";return r=e!==he.HTML?document.createElementNS(e,s):document.createElement(s),o[3]&&(r.id=o[3]),o[4]&&(r.className=o[4].replace(/\./g," ").trim()),Object.keys(i).forEach(e=>{const t=i[e];"undefined"!==typeof t&&(/^on\w+$/.test(e)?r[e]=t:"selected"===e?t&&r.setAttribute(e,"true"):r.setAttribute(e,t))}),r.append(...n),r}function ge(e,t,...i){return ue(he.HTML,e,t,...i)}function fe(...e){for(let t of e)t.style.display="",t.removeAttribute("aria-hidden")}function pe(...e){for(let t of e)t.style.display="none",t.setAttribute("aria-hidden","true")}function me(e,t){while(e&&e.nodeType===e.ELEMENT_NODE){if(e instanceof HTMLElement&&e.hasAttribute(t))return e;e=e.parentNode}return null}function _e(e){if(e&&e.hasAttribute("tabIndex")){if(document.activeElement===e){let t=me(e.parentElement,"tabIndex");t&&t.focus()}e.removeAttribute("tabindex")}}function be(e){return Array.prototype.slice.call(document.getElementsByTagName(e),0)}function ve(e){const t=window.devicePixelRatio*e;return Math.max(1,Math.floor(t))/window.devicePixelRatio}function we(e){if(n["h"]||n["g"])window.open(e);else{let t=window.open();t&&(t.opener=null,t.location.href=e)}}function Ce(e){const t=()=>{e(),i=S(t)};let i=S(t);return Object(d["h"])(()=>i.dispose())}function ye(e){return e?`url('${u["a"].asBrowserUri(e).toString(!0).replace(/'/g,"%27")}')`:"url('')"}(function(e){e["HTML"]="http://www.w3.org/1999/xhtml",e["SVG"]="http://www.w3.org/2000/svg"})(he||(he={})),ge.SVG=function(e,t,...i){return ue(he.SVG,e,t,...i)},u["b"].setPreferredWebSchema(/^https:/.test(window.location.href)?"https":"http");class Se extends c["a"]{constructor(){super(),this._subscriptions=new d["b"],this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(Object(o["a"])(document.body,"keydown",!0)(e=>{if(e.repeat)return;const t=new r["a"](e);if(e.altKey&&!this._keyStatus.altKey)this._keyStatus.lastKeyPressed="alt";else if(e.ctrlKey&&!this._keyStatus.ctrlKey)this._keyStatus.lastKeyPressed="ctrl";else if(e.metaKey&&!this._keyStatus.metaKey)this._keyStatus.lastKeyPressed="meta";else if(e.shiftKey&&!this._keyStatus.shiftKey)this._keyStatus.lastKeyPressed="shift";else{if(6===t.keyCode)return;this._keyStatus.lastKeyPressed=void 0}this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyPressed&&(this._keyStatus.event=e,this.fire(this._keyStatus))})),this._subscriptions.add(Object(o["a"])(document.body,"keyup",!0)(e=>{!e.altKey&&this._keyStatus.altKey?this._keyStatus.lastKeyReleased="alt":!e.ctrlKey&&this._keyStatus.ctrlKey?this._keyStatus.lastKeyReleased="ctrl":!e.metaKey&&this._keyStatus.metaKey?this._keyStatus.lastKeyReleased="meta":!e.shiftKey&&this._keyStatus.shiftKey?this._keyStatus.lastKeyReleased="shift":this._keyStatus.lastKeyReleased=void 0,this._keyStatus.lastKeyPressed!==this._keyStatus.lastKeyReleased&&(this._keyStatus.lastKeyPressed=void 0),this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyReleased&&(this._keyStatus.event=e,this.fire(this._keyStatus))})),this._subscriptions.add(Object(o["a"])(document.body,"mousedown",!0)(e=>{this._keyStatus.lastKeyPressed=void 0})),this._subscriptions.add(Object(o["a"])(document.body,"mouseup",!0)(e=>{this._keyStatus.lastKeyPressed=void 0})),this._subscriptions.add(Object(o["a"])(document.body,"mousemove",!0)(e=>{e.buttons&&(this._keyStatus.lastKeyPressed=void 0)})),this._subscriptions.add(Object(o["a"])(window,"blur")(e=>{this.resetKeyStatus()}))}get keyStatus(){return this._keyStatus}resetKeyStatus(){this.doResetKeyStatus(),this.fire(this._keyStatus)}doResetKeyStatus(){this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1}}static getInstance(){return Se.instance||(Se.instance=new Se),Se.instance}dispose(){super.dispose(),this._subscriptions.dispose()}}},1276:function(e,t,i){"use strict";var n=i("d784"),o=i("44e7"),r=i("825a"),s=i("1d80"),a=i("4840"),l=i("8aa5"),c=i("50c4"),d=i("14c3"),h=i("9263"),u=i("d039"),g=[].push,f=Math.min,p=4294967295,m=!u((function(){return!RegExp(p,"y")}));n("split",2,(function(e,t,i){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,i){var n=String(s(this)),r=void 0===i?p:i>>>0;if(0===r)return[];if(void 0===e)return[n];if(!o(e))return t.call(n,e,r);var a,l,c,d=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,m=new RegExp(e.source,u+"g");while(a=h.call(m,n)){if(l=m.lastIndex,l>f&&(d.push(n.slice(f,a.index)),a.length>1&&a.index<n.length&&g.apply(d,a.slice(1)),c=a[0].length,f=l,d.length>=r))break;m.lastIndex===a.index&&m.lastIndex++}return f===n.length?!c&&m.test("")||d.push(""):d.push(n.slice(f)),d.length>r?d.slice(0,r):d}:"0".split(void 0,0).length?function(e,i){return void 0===e&&0===i?[]:t.call(this,e,i)}:t,[function(t,i){var o=s(this),r=void 0==t?void 0:t[e];return void 0!==r?r.call(t,o,i):n.call(String(o),t,i)},function(e,o){var s=i(n,e,this,o,n!==t);if(s.done)return s.value;var h=r(e),u=String(this),g=a(h,RegExp),_=h.unicode,b=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(m?"y":"g"),v=new g(m?h:"^(?:"+h.source+")",b),w=void 0===o?p:o>>>0;if(0===w)return[];if(0===u.length)return null===d(v,u)?[u]:[];var C=0,y=0,S=[];while(y<u.length){v.lastIndex=m?y:0;var x,k=d(v,m?u:u.slice(y));if(null===k||(x=f(c(v.lastIndex+(m?0:y)),u.length))===C)y=l(u,y,_);else{if(S.push(u.slice(C,y)),S.length===w)return S;for(var L=1;L<=k.length-1;L++)if(S.push(k[L]),S.length===w)return S;y=C=x}}return S.push(u.slice(C)),S}]}),!m)},"14c3":function(e,t,i){var n=i("c6b6"),o=i("9263");e.exports=function(e,t){var i=e.exec;if("function"===typeof i){var r=i.call(e,t);if("object"!==typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==n(e))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},1569:function(e,t,i){"use strict";function n(e,t){if(!e)throw new Error(t?`Assertion failed (${t})`:"Assertion Failed")}i.d(t,"a",(function(){return n}))},"159b":function(e,t,i){var n=i("da84"),o=i("fdbc"),r=i("17c2"),s=i("9112");for(var a in o){var l=n[a],c=l&&l.prototype;if(c&&c.forEach!==r)try{s(c,"forEach",r)}catch(d){c.forEach=r}}},"17b9":function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"widget-form-container"},[i("el-form",{ref:"widgetForm",attrs:{"label-position":e.data.labelPosition||"left","label-width":"0px ","label-suffix":e.data.labelSuffix,model:e.formList,size:"small"}},[i("el-row",{attrs:{gutter:e.data.gutter}},[i("draggable",{staticClass:"widget-form-list",attrs:{list:e.data.column,group:{name:"form"},"ghost-class":"ghost",animation:300},on:{add:e.handleWidgetAdd,end:function(t){return e.$emit("change")}}},[e._l(e.data.column,(function(t,n){return["dynamic"==t.type?i("div",{key:n,staticClass:"widget-form-table",class:{active:e.selectWidget.prop==t.prop},on:{click:function(t){return e.handleSelectWidget(n)}}}):"group"==t.type?i("div",{key:n,staticClass:"widget-form-group",class:{active:e.selectWidget.prop==t.prop},on:{click:function(t){return e.handleSelectWidget(n)}}},[i("widget-form-group",{attrs:{data:e.data,column:t,index:n,select:e.selectWidget},on:{"update:select":function(t){e.selectWidget=t},change:function(t){return e.$emit("change")}}})],1):"button"==t.type?i("el-col",{key:n,class:{leftBorder:"borderLeft"==t.borderLeft,rightBorder:"borderRight"==t.borderRight,topBorder:"borderTop"==t.borderTop,bottomBorder:"borderBottom"==t.borderBottom,leftAlign:"left"==t.textAlign,centerAlign:"center"==t.textAlign,rightAlign:"right"==t.textAlign},attrs:{span:t.span}},[i("el-form-item",{staticClass:"widget-form-item",class:{active:e.selectWidget.prop==t.prop,required:t.required},staticStyle:{"text-align":"center"},style:"height:"+t.height,attrs:{labelWidth:t.labelWidth,prop:t.prop},nativeOn:{click:function(t){return e.handleSelectWidget(n)}}},[i("el-button",{attrs:{type:t.colortype}},[e._v(e._s(t.label))]),e.selectWidget.prop==t.prop?i("el-button",{staticClass:"widget-action-delete",attrs:{title:"删除",circle:"",plain:"",size:"small",type:"danger"},on:{click:function(t){return t.stopPropagation(),e.handleWidgetDelete(n)}}},[i("i",{staticClass:"iconfont icon-delete"})]):e._e(),e.selectWidget.prop==t.prop?i("el-button",{staticClass:"widget-action-clone",attrs:{title:"复制",circle:"",plain:"",size:"small",type:"primary"},on:{click:function(t){return t.stopPropagation(),e.handleWidgetClone(n)}}},[i("i",{staticClass:"iconfont icon-copy"})]):e._e()],1)],1):i("el-col",{key:n,class:{leftBorder:"borderLeft"==t.borderLeft,rightBorder:"borderRight"==t.borderRight,topBorder:"borderTop"==t.borderTop,bottomBorder:"borderBottom"==t.borderBottom,leftAlign:"left"==t.textAlign,centerAlign:"center"==t.textAlign,rightAlign:"right"==t.textAlign},attrs:{md:t.span||12,xs:24,offset:t.offset||0}},[i("el-form-item",{staticClass:"widget-form-item",class:{active:e.selectWidget.prop==t.prop,required:t.required},style:"height:"+t.height,attrs:{labelWidth:t.labelWidth,prop:t.prop},nativeOn:{click:function(t){return e.handleSelectWidget(n)}}},[i("widget-form-item",{attrs:{item:t,params:t.params}}),e.selectWidget.prop==t.prop?i("el-button",{staticClass:"widget-action-delete",attrs:{title:"删除",circle:"",plain:"",size:"small",type:"danger"},on:{click:function(t){return t.stopPropagation(),e.handleWidgetDelete(n)}}},[i("i",{staticClass:"iconfont icon-delete"})]):e._e(),e.selectWidget.prop==t.prop?i("el-button",{staticClass:"widget-action-clone",attrs:{title:"复制",circle:"",plain:"",size:"small",type:"primary"},on:{click:function(t){return t.stopPropagation(),e.handleWidgetClone(n)}}},[i("i",{staticClass:"iconfont icon-copy"})]):e._e()],1)],1)]}))],2)],1)],1)],1)},o=[],r=(i("a434"),function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",["title"==e.item.type?i("div",{staticStyle:{"margin-left":"5px","line-height":"300%"},style:e.item.styles},[e._v(" "+e._s(e.item.value)+" ")]):"checkbox"==e.item.type?i("div",[i("el-checkbox-group",{style:"display:"+e.item.direction,attrs:{"true-label":"1","false-label":"0"},on:{change:function(t){return e.shouanCheckbox(t,"SAYJ1")}},model:{value:e.item.type,callback:function(t){e.$set(e.item,"type",t)},expression:"item.type"}},e._l(e.item.dicData,(function(e){return i("el-checkbox",{key:e.value,attrs:{label:e.label}})})),1)],1):i(e.getComponent(e.item.type,e.item.component),e._b({tag:"component",style:"height:"+e.item.height,attrs:{multiple:!1,placeholder:e.item.placeholder||e.getPlaceholder(e.item),dic:e.item.dicData}},"component",Object.assign(e.deepClone(e.item),e.params,{size:e.item.size||"small"}),!1),[e.params.html?i("span",{domProps:{innerHTML:e._s(e.params.html)}}):e._e()])],1)}),s=[],a=(i("caad"),{name:"widget-form-item",props:{item:{type:Object,default:function(){return{}}},params:{type:Object,default:function(){return{}}}},data:function(){return{form:{}}},watch:{item:{handler:function(e){e.styles&&(this.item.styles.height=e.height)},deep:!0}},methods:{getComponent:function(e,t){var i="avue-",n="input";return t||(["array","img","url"].includes(e)?n="array":"select"===e?n="select":"radio"===e?n="radio":"checkbox"===e?n="checkbox":["time","timerange"].includes(e)?n="time":["dates","date","datetime","datetimerange","daterange","week","month","year"].includes(e)?n="date":"cascader"===e?n="cascader":"number"===e?n="input-number":"password"===e?n="input":"switch"===e?n="switch":"rate"===e?n="rate":"upload"===e?n="upload":"slider"===e?n="slider":"dynamic"===e?n="dynamic":"icon"===e?n="input-icon":"color"===e?n="input-color":"map"===e&&(n="input-map"),"button"===e?"el-button":i+n)},getPlaceholder:function(e){var t=e.label;return["select","checkbox","radio","tree","color","dates","date","datetime","datetimerange","daterange","week","month","year","map","icon"].includes(e.type)?"请选择 ".concat(t):"请输入 ".concat(t)}}}),l=a,c=i("2877"),d=Object(c["a"])(l,r,s,!1,null,null,null),h=d.exports,u=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("h4",{directives:[{name:"show",rawName:"v-show",value:e.column.label,expression:"column.label"}],staticClass:"widget-form-group__head"},[i("i",{directives:[{name:"show",rawName:"v-show",value:e.column.icon,expression:"column.icon"}],class:e.column.icon,staticStyle:{"margin-right":"10px"}}),e._v(e._s(e.column.label))]),i("draggable",{staticClass:"widget-form-group__body",attrs:{list:e.column.children.column,group:{name:"form"},"ghost-class":"ghost",animation:200},on:{add:function(t){return e.handleWidgetGroupAdd(t,e.column)},end:function(t){return e.$emit("change")}}},[e._l(e.column.children.column,(function(t,n){return["dynamic"==t.type?i("div",{key:n,staticClass:"widget-form-table",class:{active:e.selectWidget.prop==t.prop},on:{click:function(i){return i.stopPropagation(),e.handleWidgetTableSelect(t)}}},[i("widget-form-table",{attrs:{data:e.column.children,column:t,index:n,select:e.selectWidget},on:{"update:select":function(t){e.selectWidget=t},change:function(t){return e.$emit("change")}}})],1):i("el-col",{key:n,attrs:{md:t.span||12,xs:24,offset:t.offset||0}},[i("el-form-item",{staticClass:"widget-form-group__item",class:{active:e.selectWidget.prop==t.prop,required:t.required},attrs:{label:t.label,prop:t.prop},nativeOn:{click:function(i){return i.stopPropagation(),e.handleWidgetTableSelect(t)}}},[i("widget-form-item",{attrs:{item:t,params:e.column.params}}),e.selectWidget.prop==t.prop?i("el-button",{staticClass:"widget-form-group__item--delete",attrs:{title:"删除",circle:"",plain:"",type:"danger"},on:{click:function(t){return t.stopPropagation(),e.handleWidgetTableDelete(e.column,n)}}},[i("i",{staticClass:"iconfont icon-delete"})]):e._e(),e.selectWidget.prop==t.prop?i("el-button",{staticClass:"widget-form-group__item--clone",attrs:{title:"复制",circle:"",plain:"",type:"primary"},on:{click:function(i){return i.stopPropagation(),e.handleWidgetTableClone(e.column,t)}}},[i("i",{staticClass:"iconfont icon-copy"})]):e._e()],1)],1)]}))],2),e.selectWidget.prop==e.column.prop?i("el-button",{staticClass:"widget-action-delete",attrs:{title:"删除",circle:"",plain:"",size:"small",type:"danger"},on:{click:function(t){return t.stopPropagation(),e.handleWidgetDelete(e.index)}}},[i("i",{staticClass:"iconfont icon-delete"})]):e._e(),e.selectWidget.prop==e.column.prop?i("el-button",{staticClass:"widget-action-clear",attrs:{title:"清空",circle:"",plain:"",size:"small",type:"warning"},on:{click:function(t){return t.stopPropagation(),e.handleWidgetClear(e.index)}}},[i("i",{staticClass:"iconfont icon-clear"})]):e._e(),e.selectWidget.prop==e.column.prop?i("el-button",{staticClass:"widget-action-clone",attrs:{title:"复制",circle:"",plain:"",size:"small",type:"primary"},on:{click:function(t){return t.stopPropagation(),e.handleWidgetCloneTable(e.index)}}},[i("i",{staticClass:"iconfont icon-copy"})]):e._e()],1)},g=[],f=i("5530"),p=(i("159b"),function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("draggable",{staticClass:"widget-form-table__content",attrs:{list:e.column.children.column,group:{name:"form"},"ghost-class":"ghost",animation:200,handle:".widget-form-table__item"},on:{add:function(t){return e.handleWidgetTableAdd(t,e.column)},end:function(t){return e.$emit("change")}}},[e.column.children.column.length>0?e._l(e.column.children.column,(function(t,n){return i("div",{key:n,staticClass:"widget-form-table__item",class:{active:e.selectWidget.prop==t.prop,required:t.required},style:{minWidth:t.width?t.width+"px":"33.3%",width:t.width?t.width+"px":"33.3%"},on:{click:function(i){return i.stopPropagation(),e.handleWidgetTableSelect(t)}}},[i("el-table",{attrs:{data:[t],border:""}},[i("el-table-column",{attrs:{prop:t.prop,label:t.label,align:e.column.children.align,"header-align":e.column.children.headerAlign}},[i("widget-form-item",{attrs:{item:t,params:e.column.params}}),e.selectWidget.prop==t.prop?i("el-button",{staticClass:"widget-table-action-delete",attrs:{title:"删除",circle:"",plain:"",size:"small",type:"danger"},on:{click:function(t){return t.stopPropagation(),e.handleWidgetTableDelete(e.column,n)}}},[i("i",{staticClass:"iconfont icon-delete"})]):e._e(),e.selectWidget.prop==t.prop?i("el-button",{staticClass:"widget-table-action-clone",attrs:{title:"复制",circle:"",plain:"",size:"small",type:"primary"},on:{click:function(i){return i.stopPropagation(),e.handleWidgetTableClone(e.column,t)}}},[i("i",{staticClass:"iconfont icon-copy"})]):e._e()],1)],1)],1)})):[i("avue-empty",{staticStyle:{width:"100%"},attrs:{size:"50",desc:"拖拽字段至此"}})]],2),e.selectWidget.prop==e.column.prop?i("el-button",{staticClass:"widget-action-delete",attrs:{title:"删除",circle:"",plain:"",size:"small",type:"danger"},on:{click:function(t){return t.stopPropagation(),e.handleWidgetDelete(e.index)}}},[i("i",{staticClass:"iconfont icon-delete"})]):e._e(),e.selectWidget.prop==e.column.prop?i("el-button",{staticClass:"widget-action-clear",attrs:{title:"清空",circle:"",plain:"",size:"small",type:"warning"},on:{click:function(t){return t.stopPropagation(),e.handleWidgetClear(e.index)}}},[i("i",{staticClass:"iconfont icon-clear"})]):e._e(),e.selectWidget.prop==e.column.prop?i("el-button",{staticClass:"widget-action-clone",attrs:{title:"复制",circle:"",plain:"",size:"small",type:"primary"},on:{click:function(t){return t.stopPropagation(),e.handleWidgetCloneTable(e.index)}}},[i("i",{staticClass:"iconfont icon-copy"})]):e._e()],1)}),m=[],_=i("b76a"),b=i.n(_),v={name:"widget-form-table",props:["data","column","select","index"],components:{WidgetFormItem:h,draggable:b.a},data:function(){return{selectWidget:this.select}},methods:{handleSelectWidget:function(e){this.selectWidget=this.data.column[e]},handleWidgetClear:function(e){this.data.column[e].children.column=[],this.selectWidget=this.data.column[e],this.$emit("change")},handleWidgetDelete:function(e){var t=this;this.data.column.length-1===e?0===e?this.selectWidget={}:this.handleSelectWidget(e-1):this.handleSelectWidget(e+1),this.$nextTick((function(){t.data.column.splice(e,1),t.$emit("change")}))},handleWidgetCloneTable:function(e){var t=this,i=this.deepClone(this.data.column[e]);i.prop=Date.now()+"_"+Math.ceil(99999*Math.random()),i.children.column.forEach((function(e){e.prop=Date.now()+"_"+Math.ceil(99999*Math.random())})),this.data.column.splice(e,0,i),this.$nextTick((function(){t.handleSelectWidget(e+1),t.$emit("change")}))},handleWidgetTableAdd:function(e,t){var i=e.newIndex,n=e.item;if(1==i&&i>t.children.column.length-1&&(i=0),["子表单","富文本","坐标拾取器","分组"].includes(n.textContent))t.children.column.splice(i,1);else{var o=this.deepClone(t.children.column[i]);o.prop||(o.prop=Date.now()+"_"+Math.ceil(99999*Math.random())),o.subfield=!0,delete o.icon,this.$set(t.children.column,i,Object(f["a"])({},o)),this.selectWidget=t.children.column[i],this.$emit("change")}},handleWidgetTableSelect:function(e){this.selectWidget=e},handleWidgetTableClone:function(e,t){var i=this,n=this.deepClone(t);n.prop=Date.now()+"_"+Math.ceil(99999*Math.random()),this.$set(e.children.column,e.children.column.length,Object(f["a"])({},n)),this.$nextTick((function(){i.selectWidget=e.children.column[e.children.column.length-1],i.$emit("change")}))},handleWidgetTableDelete:function(e,t){var i=this;e.children.column.length-1==t?this.selectWidget=0==t?e:e.children.column[t-1]:this.selectWidget=e.children.column[t+1],this.$nextTick((function(){e.children.column.splice(t,1),i.$emit("change")}))}},watch:{select:function(e){this.selectWidget=e},selectWidget:{handler:function(e){this.$emit("update:select",e)},deep:!0}},mounted:function(){console.log(this.column)}},w=v,C=Object(c["a"])(w,p,m,!1,null,null,null),y=C.exports,S={name:"widget-form-group",props:["data","column","select","index"],components:{WidgetFormItem:h,WidgetFormTable:y,draggable:b.a},data:function(){return{selectWidget:this.select}},methods:{handleSelectWidget:function(e){this.selectWidget=this.data.column[e]},handleWidgetClear:function(e){this.data.column[e].children.column=[],this.selectWidget=this.data.column[e],this.$emit("change")},handleWidgetDelete:function(e){var t=this;this.data.column.length-1===e?0===e?this.selectWidget={}:this.handleSelectWidget(e-1):this.handleSelectWidget(e+1),this.$nextTick((function(){t.data.column.splice(e,1),t.$emit("change")}))},handleWidgetCloneTable:function(e){var t=this,i=this.deepClone(this.data.column[e]);i.prop=Date.now()+"_"+Math.ceil(99999*Math.random()),i.children.column.forEach((function(e){e.prop=Date.n