UNPKG

magic-vue2-designer

Version:

#### 介绍

1 lines 107 kB
(function(e){function t(t){for(var i,l,r=t[0],s=t[1],c=t[2],d=0,m=[];d<r.length;d++)l=r[d],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&m.push(o[l][0]),o[l]=0;for(i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i]);p&&p(t);while(m.length)m.shift()();return a.push.apply(a,c||[]),n()}function n(){for(var e,t=0;t<a.length;t++){for(var n=a[t],i=!0,r=1;r<n.length;r++){var s=n[r];0!==o[s]&&(i=!1)}i&&(a.splice(t--,1),e=l(l.s=n[0]))}return e}var i={},o={index:0},a=[];function l(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,l),n.l=!0,n.exports}l.m=e,l.c=i,l.d=function(e,t,n){l.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},l.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,t){if(1&t&&(e=l(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(l.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)l.d(n,i,function(t){return e[t]}.bind(null,i));return n},l.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return l.d(t,"a",t),t},l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l.p="/";var r=this["webpackJsonp"]=this["webpackJsonp"]||[],s=r.push.bind(r);r.push=t,r=r.slice();for(var c=0;c<r.length;c++)t(r[c]);var p=s;a.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){e.exports=n("cd49")},"064c":function(e,t,n){"use strict";n("3f5c")},"08f8":function(e,t,n){},"0929":function(e,t,n){},"0b63":function(e,t,n){"use strict";n("0929")},"0c3a":function(e,t,n){"use strict";n("1c3b")},"0d03":function(e,t,n){"use strict";n("cdfa")},"0e76":function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return l}));var i=n("d575"),o=n("2b0e");function a(e,t,n,o){switch(n.component){case i["a"].Select:case i["a"].Input:case i["a"].Textarea:case i["a"].InputNumber:default:o.hasOwnProperty("value")||("boolean"===typeof e.mpdConfig[t.type][t.name]?o.value=e.mpdConfig[t.type][t.name]:o.value=e.mpdConfig[t.type][t.name]||t.defaultValue);break}}function l(e,t,n,a){switch(n.component){case i["a"].Input:case i["a"].Textarea:a.hasOwnProperty("change")||(a.change=function(n){o["a"].set(e.mpdConfig[t.type],t.name,n.target.value||void 0)});break;case i["a"].Select:case i["a"].InputNumber:default:a.hasOwnProperty("change")||(a.change=function(n){"boolean"===typeof n?o["a"].set(e.mpdConfig[t.type],t.name,n):o["a"].set(e.mpdConfig[t.type],t.name,n||void 0)});break}}},"11a0":function(e,t,n){},"1c3b":function(e,t,n){},"20ef":function(e,t,n){"use strict";n("feb0")},"270c":function(e,t,n){},3265:function(e,t,n){},"3f5c":function(e,t,n){},"3f9f":function(module,__webpack_exports__,__webpack_require__){"use strict";var _util_utils__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("ac6d"),_util_regexUtil__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("df38"),vue__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("2b0e");__webpack_exports__["a"]={name:"PageNodeDom",props:{mConfig:{type:Object,required:!0},slotValue:{type:Object,default(){return{}}}},inject:["selectPageNodeDom","mpdPageValue"],data(){return{mValue:{}}},computed:{mpdTransformIf(){return this.mpdTransformIfOrShowHandle(this.mConfig.mpdConfig.vIf)},mpdTransformShow(){return this.mpdTransformIfOrShowHandle(this.mConfig.mpdConfig.vShow)},mpdTransformText(){if(!this.mConfig.mpdConfig.text)return null;try{return eval("`"+this.mConfig.mpdConfig.text+"`").replace(/undefined|null/g,"")}catch(error){console.error("text值转换错误(可以忽略)",error)}},mpdTransformClass(){if(!this.mConfig.mpdConfig.class)return null;try{return eval("`"+this.mConfig.mpdConfig.class+"`").replace(/undefined|null/g,"")}catch(error){console.error("class值转换错误(可以忽略)",error)}},mpdTransformStyle(){if(!Object(_util_utils__WEBPACK_IMPORTED_MODULE_0__["b"])(this.mConfig.mpdConfig.style))return null;try{const obj={};return this.mConfig.mpdConfig.style.forEach(item=>{if(Object(_util_regexUtil__WEBPACK_IMPORTED_MODULE_1__["a"])(item.key)&&item.value){const oKey=eval("`"+item.key+"`").replace(/undefined|null/g,""),oValue=eval("`"+item.value+"`").replace(/undefined|null/g,"");obj[oKey]=oValue}}),obj}catch(error){console.error("style值转换错误(可以忽略)",error)}},mpdTransformAttr(){const attrObj=this.mConfig.mpdConfig.attr,newAttrObj={};for(const key in attrObj)try{const element=attrObj[key];"string"===typeof element&&element.startsWith("$:")?newAttrObj[key]=eval("("+element.replace("$:","")+")"):newAttrObj[key]=element}catch(exception){console.error("attr值转换错误(这个错误可以忽略)",this.mConfig,exception)}const modelObj=this.mConfig.mpdConfig.model;for(const key in modelObj)try{newAttrObj.hasOwnProperty(key)&&console.error("发现model重复值,请检查配置:",this.mConfig,key),newAttrObj[key]=eval(modelObj[key])}catch(exception){console.error("model值转换错误(这个错误可以忽略)",this.mConfig,exception)}return newAttrObj},mpdTransformEvent(){const eventObj=this.mConfig.mpdConfig.event,newEventObj={},_this=this;for(const key in eventObj){const element=eventObj[key];newEventObj[key]=function(){(function(){const evalResult=eval(element);"function"===typeof evalResult&&evalResult.call(_this,...arguments)}).call(_this,...arguments)}}const modelObj=this.mConfig.mpdConfig.model;for(const key in modelObj)try{if(newEventObj.hasOwnProperty(key))console.error("发现model绑定事件重复值,请检查配置:",this.mConfig,key);else{const element=modelObj[key],componentConfig=vue__WEBPACK_IMPORTED_MODULE_2__["a"].options.components[this.mConfig.mpdConfig.component]||vue__WEBPACK_IMPORTED_MODULE_2__["a"].options.components[Object(_util_utils__WEBPACK_IMPORTED_MODULE_0__["a"])(this.mConfig.mpdConfig.component,"-",!0)];componentConfig||console.error(`model绑定事件出错,没有找到【${this.mConfig.mpdConfig.component}】,请检查对应配置`);const componentModel=componentConfig.extendOptions.model,eventKey=key===componentModel.prop?componentModel.event:"update:"+key,lastIndex=element.lastIndexOf("."),targetObj=element.substr(0,lastIndex),targetKey=element.substr(lastIndex+1);newEventObj[eventKey]=value=>{eval(`this.$set(${targetObj},'${targetKey}',value)`)}}}catch(exception){console.error("model绑定事件值转换错误(这个错误可以忽略)",this.mConfig,exception)}return newEventObj}},methods:{mpdTransformIfOrShowHandle(value){if(value)try{return eval(value)}catch(error){console.error("v-if或v-show值转换错误(可以忽略)",error)}return!0}}}},4448:function(e,t,n){},"518c":function(e,t,n){},"57ad":function(e,t,n){},"57ea":function(e,t,n){"use strict";n("08f8")},"618a":function(e,t,n){},"64a9":function(e,t,n){"use strict";n("97ed")},"6a1d":function(e,t,n){},"6b36":function(e,t,n){},"6e2c":function(e,t,n){"use strict";n("270c")},"744c":function(e){e.exports=JSON.parse('["additive-symbols","align-content","align-items","align-self","alignment-baseline","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","ascent-override","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-repeat-x","background-repeat-y","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-shadow","box-sizing","break-after","break-before","break-inside","buffered-rendering","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-size","content","content-visibility","counter-increment","counter-reset","counter-set","cursor","cx","cy","d","descent-override","direction","display","dominant-baseline","empty-cells","fallback","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","font","font-display","font-family","font-feature-settings","font-kerning","font-optical-sizing","font-size","font-stretch","font-style","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variation-settings","font-weight","forced-color-adjust","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","height","hyphens","image-orientation","image-rendering","inherits","initial-value","inline-size","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","lighting-color","line-break","line-gap-override","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marker","marker-end","marker-mid","marker-start","mask","mask-type","max-block-size","max-height","max-inline-size","max-width","max-zoom","min-block-size","min-height","min-inline-size","min-width","min-zoom","mix-blend-mode","negative","object-fit","object-position","offset","offset-distance","offset-path","offset-rotate","opacity","order","orientation","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-clip-margin","overflow-wrap","overflow-x","overflow-y","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","pad","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-orientation","paint-order","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","prefix","quotes","r","range","resize","right","row-gap","ruby-position","rx","ry","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","shape-image-threshold","shape-margin","shape-outside","shape-rendering","size","size-adjust","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","suffix","symbols","syntax","system","tab-size","table-layout","text-align","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-indent","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","unicode-range","user-select","user-zoom","vector-effect","vertical-align","visibility","webkit-align-content","webkit-align-items","webkit-align-self","webkit-animation","webkit-animation-delay","webkit-animation-direction","webkit-animation-duration","webkit-animation-fill-mode","webkit-animation-iteration-count","webkit-animation-name","webkit-animation-play-state","webkit-animation-timing-function","webkit-app-region","webkit-appearance","webkit-backface-visibility","webkit-background-clip","webkit-background-origin","webkit-background-size","webkit-border-after","webkit-border-after-color","webkit-border-after-style","webkit-border-after-width","webkit-border-before","webkit-border-before-color","webkit-border-before-style","webkit-border-before-width","webkit-border-bottom-left-radius","webkit-border-bottom-right-radius","webkit-border-end","webkit-border-end-color","webkit-border-end-style","webkit-border-end-width","webkit-border-horizontal-spacing","webkit-border-image","webkit-border-radius","webkit-border-start","webkit-border-start-color","webkit-border-start-style","webkit-border-start-width","webkit-border-top-left-radius","webkit-border-top-right-radius","webkit-border-vertical-spacing","webkit-box-align","webkit-box-decoration-break","webkit-box-direction","webkit-box-flex","webkit-box-ordinal-group","webkit-box-orient","webkit-box-pack","webkit-box-reflect","webkit-box-shadow","webkit-box-sizing","webkit-clip-path","webkit-column-break-after","webkit-column-break-before","webkit-column-break-inside","webkit-column-count","webkit-column-gap","webkit-column-rule","webkit-column-rule-color","webkit-column-rule-style","webkit-column-rule-width","webkit-column-span","webkit-column-width","webkit-columns","webkit-filter","webkit-flex","webkit-flex-basis","webkit-flex-direction","webkit-flex-flow","webkit-flex-grow","webkit-flex-shrink","webkit-flex-wrap","webkit-font-feature-settings","webkit-font-smoothing","webkit-highlight","webkit-hyphenate-character","webkit-justify-content","webkit-line-break","webkit-line-clamp","webkit-locale","webkit-logical-height","webkit-logical-width","webkit-margin-after","webkit-margin-before","webkit-margin-end","webkit-margin-start","webkit-mask","webkit-mask-box-image","webkit-mask-box-image-outset","webkit-mask-box-image-repeat","webkit-mask-box-image-slice","webkit-mask-box-image-source","webkit-mask-box-image-width","webkit-mask-clip","webkit-mask-composite","webkit-mask-image","webkit-mask-origin","webkit-mask-position","webkit-mask-position-x","webkit-mask-position-y","webkit-mask-repeat","webkit-mask-repeat-x","webkit-mask-repeat-y","webkit-mask-size","webkit-max-logical-height","webkit-max-logical-width","webkit-min-logical-height","webkit-min-logical-width","webkit-opacity","webkit-order","webkit-padding-after","webkit-padding-before","webkit-padding-end","webkit-padding-start","webkit-perspective","webkit-perspective-origin","webkit-perspective-origin-x","webkit-perspective-origin-y","webkit-print-color-adjust","webkit-rtl-ordering","webkit-ruby-position","webkit-shape-image-threshold","webkit-shape-margin","webkit-shape-outside","webkit-tap-highlight-color","webkit-text-combine","webkit-text-decorations-in-effect","webkit-text-emphasis","webkit-text-emphasis-color","webkit-text-emphasis-position","webkit-text-emphasis-style","webkit-text-fill-color","webkit-text-orientation","webkit-text-security","webkit-text-size-adjust","webkit-text-stroke","webkit-text-stroke-color","webkit-text-stroke-width","webkit-transform","webkit-transform-origin","webkit-transform-origin-x","webkit-transform-origin-y","webkit-transform-origin-z","webkit-transform-style","webkit-transition","webkit-transition-delay","webkit-transition-duration","webkit-transition-property","webkit-transition-timing-function","webkit-user-drag","webkit-user-modify","webkit-user-select","webkit-writing-mode","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom","css-text","length","parent-rule","css-float","get-property-priority","get-property-value","item","remove-property","set-property"]')},7582:function(e,t,n){"use strict";n("d89d")},"879b":function(e,t,n){},"8a0c":function(e,t,n){},"8ce2":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_exports__["a"]={name:"MpdHtml",props:{htmlText:{type:String}},inject:["selectPageNodeDom","mpdPageValue"],computed:{showHtml(){if(this.htmlText)try{return eval("`"+this.htmlText+"`").replace(/undefined|null/g,"")}catch(error){console.error("htmlText值转换错误(可以忽略)",error)}return null}}}},"97ed":function(e,t,n){},ac6d:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return l}));const i=function(e){return"[object Array]"===Object.prototype.toString.call(e)},o=function(e,t){let n,i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),o=[];if(t=t||i.length,e)for(n=0;n<e;n++)o[n]=i[0|Math.random()*t];else{let e;for(o[8]=o[13]=o[18]=o[23]="-",o[14]="4",n=0;n<36;n++)o[n]||(e=0|16*Math.random(),o[n]=i[19==n?3&e|8:e])}return o.join("")},a=function(e,t,n,o="children"){if(i(e)&&e.length>0)for(let i in e){const l=e[i];if(l[t]===n)return l;const r=a(l[o],t,n,o);if(null!==r)return r}return null},l=(e,t="_",n=!1)=>{const i=e.replace(new RegExp(t+"(\\w)","g"),(function(e,t){return t.toUpperCase()}));return n?i.substr(0,1).toUpperCase()+i.substr(1):i}},ad92:function(module,__webpack_exports__,__webpack_require__){"use strict";var _util_transformUtil__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("0e76"),_components_config_ArrayTable_vue__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("c91f");__webpack_exports__["a"]={components:{MpdArrayTable:_components_config_ArrayTable_vue__WEBPACK_IMPORTED_MODULE_1__["a"]},props:{item:{type:Object,required:!0},actionItem:{type:Object,required:!0}},inject:["selectPageNodeDom"],methods:{transformComponent(e){return this.selectPageNodeDom[this.actionItem.selectItemKey].mpdConfig.configTmp[`${e.type}.${e.name}`]},transformAttr(item){const newAttrObj={mpdItem:this.item};if(item.inputList&&item.inputList.length>0){const configTmpKey=`${item.type}.${item.name}`;for(const index in item.inputList)if(item.inputList[index].component===this.selectPageNodeDom[this.actionItem.selectItemKey].mpdConfig.configTmp[configTmpKey]){const attrObj=item.inputList[index].attr;for(const key in attrObj){const element=attrObj[key];"string"===typeof element&&element.startsWith("$:")?newAttrObj[key]=eval(element):newAttrObj[key]=element}Object(_util_transformUtil__WEBPACK_IMPORTED_MODULE_0__["a"])(this.selectPageNodeDom[this.actionItem.selectItemKey],item,item.inputList[index],newAttrObj);break}}return newAttrObj},transformEvent(e){const t={};if(e.inputList&&e.inputList.length>0){const n=`${e.type}.${e.name}`;for(const i in e.inputList)if(e.inputList[i].component===this.selectPageNodeDom[this.actionItem.selectItemKey].mpdConfig.configTmp[n]){const n=e.inputList[i].event,o=this;for(const e in n){const i=n[e];t[e]=function(){i.call(o,...arguments)}}Object(_util_transformUtil__WEBPACK_IMPORTED_MODULE_0__["b"])(this.selectPageNodeDom[this.actionItem.selectItemKey],e,e.inputList[i],t);break}}return t}}}},aef6:function(e,t,n){"use strict";n("8a0c")},bdc6:function(e,t,n){},be35:function(e,t,n){},bef9:function(e,t,n){"use strict";n("3265")},c91f:function(e,t,n){"use strict";var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"mpd-array-table padding-xs"},[t("a-button",{attrs:{block:""},on:{click:function(t){return e.showModalHandle(!0)}}},[e._v("点击配置")]),t("a-modal",{attrs:{width:"80%",title:"属性配置",visible:e.visible,size:"small"},on:{ok:function(t){return e.showModalHandle(!1)},cancel:function(t){return e.showModalHandle(!1)}}},[t("a-button",{staticClass:"margin-b-xs",on:{click:e.addRowData}},[e._v("添加行")]),t("a-table",{attrs:{bordered:"",columns:e.targetColumns,"data-source":e.tmpData,size:"small"},scopedSlots:e._u([e._l(e.columns,(function(n,i){return{key:n.dataIndex+"Slot",fn:function(o,a,l){return[t("a-input",{key:i,attrs:{value:o},on:{change:t=>e.handleChange(t.target.value,a,n,l)}})]}}})),{key:"operation",fn:function(n,i,o){return[t("a-button",{attrs:{type:"link",size:"small"},on:{click:function(t){return e.deleteRowData(o)}}},[t("a-icon",{attrs:{type:"delete"}})],1),t("a-divider",{attrs:{type:"vertical"}}),t("a-button",{attrs:{type:"link",size:"small",disabled:0===o},on:{click:function(t){return e.moveRowData(o,-1)}}},[t("a-icon",{attrs:{type:"arrow-up"}})],1),t("a-divider",{attrs:{type:"vertical"}}),t("a-button",{attrs:{type:"link",size:"small",disabled:o===e.tmpData.length-1},on:{click:function(t){return e.moveRowData(o,1)}}},[t("a-icon",{attrs:{type:"arrow-down"}})],1)]}}],null,!0)})],1)],1)},o=[],a={props:{value:{},mpdItem:{type:Object,required:!0}},data(){return{tmpData:null}},watch:{tmpData:{handler(e){this.$emit("change",e)},deep:!0}},created(){this.tmpData=this.value||this.mpdItem.defaultValue}},l={name:"MpdArrayTable",mixins:[a],props:{columns:{type:Array,default(){return[]}}},data(){return{visible:!1,defaultColumns:[{title:"操作",fixed:"right",width:140,scopedSlots:{customRender:"operation"}}]}},computed:{targetColumns(){return this.columns.concat(this.defaultColumns)}},methods:{showModalHandle(e){this.visible=e},addRowData(){const e={};this.columns.forEach(t=>{e[t.dataIndex]=void 0}),this.tmpData.push(e)},deleteRowData(e){this.tmpData.splice(e,1)},moveRowData(e,t){(-1===t&&e>0||1===t&&e<this.tmpData.length)&&this.tmpData.splice(e+t,0,...this.tmpData.splice(e,1))},handleChange(e,t,n,i){this.$set(this.tmpData[i],n.dataIndex,e)}}},r=l,s=n("2877"),c=Object(s["a"])(r,i,o,!1,null,null,null);t["a"]=c.exports},cd49:function(e,t,n){"use strict";n.r(t);var i=n("2b0e"),o=function(){var e=this,t=e._self._c;return t("magic-page-designer",{attrs:{mpdPageConfig:e.mpdPageConfig,mpdPageValue:e.mpdPageValue,selectPageNodeDom:e.selectPageNodeDom,editorMode:e.editorMode},on:{"update:mpdPageConfig":function(t){e.mpdPageConfig=t},"update:mpd-page-config":function(t){e.mpdPageConfig=t},"update:mpdPageValue":function(t){e.mpdPageValue=t},"update:mpd-page-value":function(t){e.mpdPageValue=t},"update:selectPageNodeDom":function(t){e.selectPageNodeDom=t},"update:select-page-node-dom":function(t){e.selectPageNodeDom=t},mpdSave:e.mpdSave}})},a=[],l={data(){return{mpdPageConfig:{},mpdPageValue:{},selectPageNodeDom:{},editorMode:!0}},methods:{mpdSave(e){console.log("mpdSave",e)}}},r=l,s=(n("6e2c"),n("2877")),c=Object(s["a"])(r,o,a,!1,null,null,null),p=c.exports,d=function(){var e=this,t=e._self._c;return!0===e.editorMode?t("div",{staticClass:"mpd-container",class:[e.editorMode?"theme-dark display-flex editor-mode":""],attrs:{id:e.currentId}},[t("div",{staticClass:"display-flex flex-direction-column flex-size-auto"},[t("title-bar",{on:{mpdSave:e.mpdSave}}),t("workspace"),t("status-bar")],1)]):t("page-preview-dom",{staticClass:"mpd-container",attrs:{mConfig:e.mpdPageConfig}})},m=[],u=function(){var e=this,t=e._self._c;return t("div",{staticClass:"mpd-title-bar display-flex"},[t("div",{staticClass:"menu-bar display-flex flex-direction-row not-select"},e._l(e.menus,(function(n,i){return t("a-dropdown",{key:"title-bar-menu-"+i,attrs:{getPopupContainer:e.getPopupContainer},scopedSlots:e._u([{key:"overlay",fn:function(){return[n.children&&n.children.length>0?t("a-menu",{staticClass:"mpd-menu",attrs:{theme:"dark"},on:{click:t=>e.menuClickHandle(n,t)}},e._l(n.children,(function(n,i){return t("a-menu-item",{key:i,staticClass:"mpd-menu-item"},[t("div",{staticClass:"display-flex",staticStyle:{"min-width":"200px"}},[t("div",{staticClass:"flex-size-auto"},[e._v(e._s(n.title))]),t("div",[e._v(e._s(n.info))])])])})),1):e._e()]},proxy:!0}],null,!0)},[t("div",{staticClass:"menu-bar-menu-button"},[e._v(" "+e._s(n.title)+" ")])])})),1),t("div",{staticClass:"window-title flex-size-auto"},[t("span",[e._v(e._s(e.mpdPageConfig.title))]),t("span",[e._v(" - ")]),t("span",[e._v("Magic Page Designer")])])])},g=[],f={showPageDomSubline:!0,isPreviewMode:!1,isDraggable:!1,reloadCanvasValue:!1,reloadCanvasFun(){this.reloadCanvasValue=!0}},h=n("f1cd"),b=n.n(h),y=n("ac6d"),v=n("df38");const C=[],w=function(e){e=Object(y["b"])(e)?e:[e],e.forEach(e=>{e.list.forEach(e=>{e.mpdConfig=e.mpdConfig||{}}),C.push(e)})};var x=n("d575");const k={id:"general",title:"通用",list:[{id:"a-button-group",title:"按钮组",ext:{childrenComponent:["a-button"],componentConfig:[{type:"attr",name:"size",group:"general",inputList:[ae()]}]}},{id:"a-button",title:"按钮",mpdConfig:{text:"按钮Text"},ext:{childrenComponent:[],componentConfig:[{type:"attr",title:"按钮失效状态",name:"disabled",group:"general",inputList:[oe()]},{type:"attr",title:"幽灵属性",name:"ghost",inputList:[oe()]},{type:"attr",title:"原生type值",name:"htmlType",help:"设置 button 原生的 type 值,可选值请参考 HTML 标准。https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-type"},{type:"attr",title:"按钮的图标类型",name:"icon"},{type:"attr",title:"按钮载入状态",name:"loading",group:"general",help:"boolean | { delay: number }",inputList:[oe()]},{type:"attr",title:"按钮形状",name:"shape",group:"general",inputList:[{title:"Select",component:x["a"].Select,attr:{allowClear:!0,options:[{value:"circle",label:"circle"},{value:"round",label:"round"}]}}]},{type:"attr",title:"按钮大小",name:"size",group:"general",inputList:[ae()]},{type:"attr",title:"按钮类型",name:"type",group:"general",inputList:[{title:"Select",component:x["a"].Select,attr:{allowClear:!0,options:[{value:"default",label:"default"},{value:"primary",label:"primary"},{value:"dashed",label:"dashed"},{value:"danger",label:"danger"},{value:"link",label:"link"}]}}]},{type:"attr",title:"宽度占满父元素",name:"block",group:"general",inputList:[ae()]},{type:"event",title:"点击按钮时的回调",name:"click"}]}}]};var _=k;const P={id:"layout",title:"布局",list:[{id:"a-row",title:"Row",ext:{icon:"mpd-icon-row",help:"通过`row`在水平方向建立一组`column`(简写 col)",childrenComponent:["a-col"],componentConfig:[{type:"attr",title:"栅格间隔",name:"gutter",help:"栅格间隔,可以写成像素值或支持响应式的对象写法来设置水平间隔 { xs: 8, sm: 16, md: 24}。或者使用数组形式同时设置 [水平间距, 垂直间距]",inputList:[{title:"数字框",component:x["a"].InputNumber,attr:{max:24,min:0}}]},{type:"attr",title:"布局模式",name:"type",help:"布局模式,可选 flex,现代浏览器 下有效",inputList:[{component:x["a"].Select,attr:{allowClear:!0,options:[{value:"flex",label:"flex"}]}}]},{type:"attr",title:"垂直对齐方式",name:"align",help:"flex 布局下的垂直对齐方式",inputList:[{component:x["a"].Select,attr:{allowClear:!0,options:[{value:"top",label:"顶部"},{value:"middle",label:"中间"},{value:"bottom",label:"底部"}]}}]},{type:"attr",title:"水平排列方式",name:"justify",help:"\tflex 布局下的水平排列方式",inputList:[{component:x["a"].Select,attr:{allowClear:!0,options:[{value:"start",label:"start"},{value:"end",label:"end"},{value:"center",label:"center"},{value:"space-around",label:"space-around"},{value:"space-between",label:"space-between"}]}}]}]}},{id:"a-col",title:"Col",ext:{icon:"mpd-icon-col",help:"你的内容应当放置于`col`内,并且,只有`col`可以作为`row`的直接元素",childrenComponent:[],parentComponent:["a-row"],componentConfig:[{type:"attr",title:"flex 布局填充",name:"flex",group:"Flex",inputList:[{title:"数字框",component:x["a"].InputNumber}]},{type:"attr",title:"偏移量",name:"offset",group:"general",help:"栅格左侧的间隔格数,间隔内不可以有栅格",inputList:[{title:"数字框",component:x["a"].InputNumber}]},{type:"attr",title:"栅格顺序",name:"order",group:"Flex",help:"flex 布局模式下有效",inputList:[{title:"数字框",component:x["a"].InputNumber}]},{type:"attr",title:"栅格向左移动格数",name:"pull",inputList:[{title:"数字框",component:x["a"].InputNumber}]},{type:"attr",title:"栅格向右移动格数",name:"push",inputList:[{title:"数字框",component:x["a"].InputNumber}]},{type:"attr",name:"span",group:"general",help:"为 0 时相当于 display: none",inputList:[{title:"数字框",component:x["a"].InputNumber,attr:{max:24,min:0}}]},{type:"attr",name:"xs",group:"栅格占位格数",help:"<576px 响应式栅格,可为栅格数或一个包含其他属性的对象",inputList:[{title:"数字框",component:x["a"].InputNumber,attr:{max:24,min:0}}]},{type:"attr",name:"sm",group:"栅格占位格数",help:"≥576px 响应式栅格,可为栅格数或一个包含其他属性的对象",inputList:[{title:"数字框",component:x["a"].InputNumber,attr:{max:24,min:0}}]},{type:"attr",name:"md",group:"栅格占位格数",help:"≥768px 响应式栅格,可为栅格数或一个包含其他属性的对象",inputList:[{title:"数字框",component:x["a"].InputNumber,attr:{max:24,min:0}}]},{type:"attr",name:"lg",group:"栅格占位格数",help:"≥992px 响应式栅格,可为栅格数或一个包含其他属性的对象",inputList:[{title:"数字框",component:x["a"].InputNumber,attr:{max:24,min:0}}]},{type:"attr",name:"xl",group:"栅格占位格数",help:"≥1200px 响应式栅格,可为栅格数或一个包含其他属性的对象",inputList:[{title:"数字框",component:x["a"].InputNumber,attr:{max:24,min:0}}]},{type:"attr",name:"xxl",group:"栅格占位格数",help:"≥1600px 响应式栅格,可为栅格数或一个包含其他属性的对象",inputList:[{title:"数字框",component:x["a"].InputNumber,attr:{max:24,min:0}}]}]}},{id:"a-space",title:"间距",mpdConfig:{text:"请添加元素后删除该text"},ext:{help:"设置组件之间的间距,因为如果没有内容,该组件则不渲染,所以添加一个默认text",childrenComponent:[],componentConfig:[{type:"attr",title:"对齐方式",name:"align",inputList:[{title:"选择框",component:x["a"].Select,attr:{allowClear:!0,options:[{value:"start",label:"start"},{value:"end",label:"end"},{value:"center",label:"center"},{value:"baseline",label:"baseline"}]}}]},{type:"attr",title:"间距方向",name:"direction",inputList:[{title:"选择框",component:x["a"].Select,attr:{allowClear:!0,options:[{value:"vertical",label:"vertical"},{value:"horizontal",label:"horizontal"}]}}]},{type:"attr",title:"间距大小",name:"size",inputList:[{title:"选择框",component:x["a"].Select,attr:{allowClear:!0,options:[{value:"small",label:"small"},{value:"middle",label:"middle"},{value:"large",label:"large"}]}},{title:"数字框",component:x["a"].InputNumber,attr:{min:0}}]}]}}]};var I=P;const D=[{id:"a-checkbox-group",title:"多选框组",mpdConfig:{slot:[]},ext:{childrenComponent:["a-checkbox"],componentConfig:[{type:"attr",title:"默认选中的值",name:"defaultValue",group:"general",help:"string[]"},{type:"attr",title:"是否禁用",name:"disabled",group:"general",inputList:[oe()]},{type:"attr",title:"name属性",name:"name",group:"general",help:'CheckboxGroup 下所有 input[type="checkbox"] 的 name 属性'},{type:"attr",title:"以配置形式设置子元素",name:"options",group:"general",help:'指定可选项,可以通过 slot="label" slot-scope="option" 定制label。string[] | Array<{ label: string value: string disabled?: boolean, indeterminate?: boolean, onChange?: function }>'},{type:"model",title:"当前选中的值",name:"value",help:"string[]"},{type:"event",title:"值变化时回调",name:"change",help:"Function(checkedValue)"}]}},{id:"a-checkbox",title:"多选框",ext:{componentConfig:[{type:"attr",title:"自动获取焦点",name:"autoFocus",group:"general",inputList:[oe()]},{type:"attr",title:"是否选中",name:"checked",group:"general",inputList:[oe()]},{type:"attr",title:"初始是否选中",name:"defaultChecked",group:"general",inputList:[oe()]},{type:"attr",title:"是否禁用",name:"disabled",group:"general",inputList:[oe()]},{type:"attr",title:"设置indeterminate状态",name:"indeterminate",help:"只负责样式控制",group:"general",inputList:[oe()]},{type:"event",title:"值变化时回调",name:"change",help:"Function(e:Event)"}]}}];var S=D;const O=["样式","校验"],N=[{id:"a-form-model",title:"Model表单",ext:{help:"FormModel 表单 (支持 v-model 检验)(版本:1.5.0+)",childrenComponent:["a-form-model-item"],componentConfig:[{type:"attr",title:"隐藏必选标记",name:"hideRequiredMark",group:O[0],help:"隐藏所有表单项的必选标记",inputList:[oe("隐藏","显示")]},{type:"attr",title:"label对齐方式",name:"labelAlign",group:O[0],help:"label标签的文本对齐方式",inputList:[{title:"Select",component:x["a"].Select,attr:{allowClear:!0,options:[{value:"right",label:"右侧"},{value:"left",label:"左侧"}]}}]},{type:"attr",title:"表单布局",name:"layout",group:O[0],inputList:[{title:"Select",component:x["a"].Select,attr:{allowClear:!0,options:[{value:"horizontal",label:"水平"},{value:"vertical",label:"垂直"},{value:"inline",label:"内联"}]}}]},{type:"attr",title:"label标签布局",name:"labelCol",group:O[0],help:"label 标签布局,同 <Col> 组件,设置 span offset 值,如 {span: 3, offset: 12} 或 sm: {span: 3, offset: 12}"},{type:"attr",title:"布局样式",name:"wrapperCol",group:O[0],help:"需要为输入控件设置布局样式时,使用该属性,用法同 labelCol"},{type:"attr",name:"colon",help:"配置 Form.Item 的 colon 的默认值 (只有在属性 layout 为 horizontal 时有效)"},{type:"attr",name:"validateOnRuleChange",help:"\t是否在 rules 属性改变后立即触发一次验证",inputList:[oe("触发","不触发")]}]}},{id:"a-form-model-item",title:"Model表单item",mpdConfig:{slot:[]},ext:{childrenComponent:[],parentComponent:["a-form-model"],componentConfig:[{type:"attr",title:"表单域model字段",name:"prop",help:"在使用 validate、resetFields 方法的情况下,该属性是必填的"},{type:"attr",title:"表单验证规则",name:"rules",group:O[1]},{type:"attr",title:"是否自动关联表单域",name:"autoLink",inputList:[oe()]},{type:"attr",name:"colon",group:O[0],help:"配合 label 属性使用,表示是否显示 label 后面的冒号",inputList:[oe()]},{type:"attr",title:"额外的提示信息",name:"extra",group:O[1],help:"和 help 类似,当需要错误信息和提示文案同时出现时,可以使用这个"},{type:"attr",name:"hasFeedback",group:O[1],help:"配合 validateStatus 属性使用,展示校验状态图标,建议只配合 Input 组件使用",inputList:[oe()]},{type:"attr",title:"提示信息",name:"help",group:O[0],help:"如不设置,则会根据校验规则自动生成"},{type:"attr",name:"htmlFor",help:"设置子元素 label htmlFor 属性"},{type:"attr",title:"标签的文本",group:"general",name:"label"},{type:"attr",title:"label标签布局",name:"labelCol",group:"general",help:"label 标签布局,同 <Col> 组件,设置 span offset 值,如 {span: 3, offset: 12} 或 sm: {span: 3, offset: 12}"},{type:"attr",title:"label对齐方式",name:"labelAlign",group:"general",help:"label标签的文本对齐方式",inputList:[{title:"Select",component:x["a"].Select,attr:{allowClear:!0,options:[{value:"right",label:"右侧"},{value:"left",label:"左侧"}]}}]},{type:"attr",title:"是否必填",name:"required",group:O[1],help:"如不设置,则会根据校验规则自动生成",inputList:[oe()]},{type:"attr",title:"校验状态",name:"validateStatus",group:O[1],help:"如不设置,则会根据校验规则自动生成,可选:success、warning、error、validating"},{type:"attr",name:"wrapperCol",group:"general",help:"需要为输入控件设置布局样式时,使用该属性,用法同 labelCol"}]}}];var L=N;const j=["样式"],z={id:"a-input",title:"输入框",mpdConfig:{slot:[]},ext:{componentConfig:[{type:"attr",title:"设置后置标签",name:"addonAfter",group:j[0]},{type:"attr",title:"设置前置标签",name:"addonBefore",group:j[0]},{type:"attr",title:"提示信息",name:"placeholder",group:"general"},{type:"attr",title:"输入框默认内容",name:"defaultValue",group:"general"},{type:"attr",title:"按钮失效状态",name:"disabled",group:"general",inputList:[oe("禁用","启用")]},{type:"attr",title:"最大长度",name:"maxLength",group:"general",inputList:[{title:"数字框",component:x["a"].InputNumber}]},{type:"attr",title:"带有前缀图标的input",name:"prefix",group:j[0]},{type:"attr",title:"控件大小",name:"size",group:"general",help:"标准表单内的输入框大小限制为large。可选:large、default、small",inputList:[ae()]},{type:"attr",title:"带有后缀图标的input",name:"suffix",group:j[0]},{type:"model",title:"输入框内容",name:"value"},{type:"attr",title:"清楚内容按钮",name:"allowClear",group:"general",inputList:[oe()]},{type:"event",title:"值改变事件",name:"change"},{type:"event",title:"按下回车事件",name:"pressEnter"}]}};var T=z;const $={id:"a-textarea",title:"文本域",ext:{componentConfig:[...T.ext.componentConfig,{type:"attr",title:"自适应内容高度",name:"autosize",group:"general",help:"可设置为 true|false 或对象:{ minRows: 2, maxRows: 6 }",inputList:[oe()]}]}};var A=$;const H=[T,A];var M=H;const K={id:"a-input-number",title:"数字输入框",ext:{componentConfig:[{type:"attr",title:"自动获取焦点",name:"autoFocus",inputList:[oe()]},{type:"attr",title:"初始值",name:"defaultValue",group:"general",inputList:[{title:"数字框",component:x["a"].InputNumber}]},{type:"attr",title:"是否禁用",name:"disabled",group:"general",inputList:[oe()]},{type:"attr",title:"输入框展示格式",name:"formatter",help:"指定输入框展示值的格式。function(value: number | string): string"},{type:"attr",title:"最大值",name:"max",group:"general",inputList:[{title:"数字框",component:x["a"].InputNumber}]},{type:"attr",title:"最小值",name:"min",group:"general",inputList:[{title:"数字框",component:x["a"].InputNumber}]},{type:"attr",name:"parser",help:"指定从 formatter 里转换回数字的方式,和 formatter 搭配使用。function( string): number"},{type:"attr",title:"数值精度",name:"precision",group:"general",inputList:[{title:"数字框",component:x["a"].InputNumber}]},{type:"attr",title:"小数点",name:"decimalSeparator"},{type:"attr",title:"选择框大小",name:"size",group:"general",inputList:[ae()]},{type:"attr",title:"每次改变步数",name:"step",group:"general",help:"可以为小数",inputList:[{title:"数字框",component:x["a"].InputNumber}]},{type:"model",title:"当前值",name:"value",inputList:[{title:"数字框",component:x["a"].InputNumber}]},{type:"event",title:"值变化回调",name:"change",help:"Function(value: number | string)"},{type:"event",title:"按下回车的回调",name:"pressEnter",help:"function(e)"}]}};var E=K;const B=[{id:"a-radio-group",title:"单选框组",ext:{childrenComponent:["a-radio"],componentConfig:[{type:"attr",title:"默认选中的值",name:"defaultValue",group:"general"},{type:"attr",title:"禁选所有子单选器",name:"disabled",group:"general",inputList:[oe()]},{type:"attr",title:"name属性",name:"name",group:"general",help:'RadioGroup 下所有 input[type="radio"] 的 name 属性'},{type:"attr",title:"以配置形式设置子元素",name:"options",group:"general",help:"string[] | Array<{ label: string value: string disabled?: boolean }>"},{type:"attr",title:"选择框大小",name:"size",group:"general",inputList:[ae()]},{type:"model",title:"当前选中的值",name:"value"},{type:"attr",title:"RadioButton的风格样式",name:"buttonStyle",group:"general",help:"目前有描边和填色两种风格",inputList:[{title:"Select",component:x["a"].Select,attr:{allowClear:!0,options:[{value:"outline",label:"outline"},{value:"solid",label:"solid"}]}}]},{type:"event",title:"值变化时回调",name:"change",help:"Function(e:Event)"}]}},{id:"a-radio",title:"单选框",ext:{componentConfig:[{type:"attr",title:"自动获取焦点",name:"autoFocus",group:"general",inputList:[oe()]},{type:"attr",title:"是否选中",name:"checked",group:"general",inputList:[oe()]},{type:"attr",title:"初始是否选中",name:"defaultChecked",group:"general",inputList:[oe()]},{type:"attr",title:"值",name:"value",group:"general"}]}}];var R=B;const V=["样式"],W={id:"a-select",title:"选择器",mpdConfig:{slot:[]},ext:{componentConfig:[{type:"attr",title:"options数据",name:"options",help:"如果设置则不需要手动构造 selectOption 节点。array<{value, label, [disabled, key, title]}>"},{type:"attr",title:"提示信息",name:"placeholder",group:"general"},{type:"attr",title:"支持清除",name:"allowClear",group:"general",inputList:[oe()]},{type:"attr",name:"autoClearSearchValue",help:"是否在选中项后清空搜索框,只在 mode 为 multiple 或 tags 时有效。",inputList:[oe()]},{type:"attr",title:"默认获取焦点",name:"autoFocus",inputList:[oe()]},{type:"attr",name:"defaultActiveFirstOption",help:"是否默认高亮第一个选项",inputList:[oe()]},{type:"attr",title:"指定默认选中的条目",name:"defaultValue"},{type:"attr",title:"是否禁用",name:"disabled",group:"general",inputList:[oe()]},{type:"attr",name:"dropdownClassName",group:V[0],help:"下拉菜单的 className 属性"},{type:"attr",title:"下拉菜单和选择器同宽",name:"dropdownMatchSelectWidth",group:V[0],inputList:[oe()]},{type:"attr",title:"自定义下拉框内容",name:"dropdownRender"},{type:"attr",title:"下拉菜单的style属性",group:V[0],name:"dropdownStyle"},{type:"attr",title:"dropdown菜单自定义样式",group:V[0],name:"dropdownMenuStyle"},{type:"attr",title:"是否根据输入项进行筛选",name:"filterOption",help:"当其为一个函数时,会接收 inputValue option 两个参数,当 option 符合筛选条件时,应返回 true,反之则返回 false。",inputList:[oe()]},{type:"attr",title:"默认高亮的选项",name:"firstActiveValue"},{type:"attr",title:"菜单渲染父节点",name:"getPopupContainer",group:V[0],help:"默认渲染到 body 上,如果你遇到菜单滚动定位问题,试试修改为滚动的区域,并相对其定位"},{type:"attr",name:"labelInValue",help:"是否把每个选项的 label 包装到 value 中,会把 Select 的 value 类型从 string 变为 {key: string, label: vNodes} 的格式"},{type:"attr",title:"最多显示多少个tag",name:"maxTagCount",inputList:[{title:"数字框",component:x["a"].InputNumber}]},{type:"attr",title:"隐藏tag时显示的内容",name:"maxTagPlaceholder"},{type:"attr",title:"最大显示的tag文本长度",name:"maxTagTextLength",inputList:[{title:"数字框",component:x["a"].InputNumber}]},{type:"attr",title:"Select的模式",name:"mode",group:"general",help:"设置 Select 的模式为多选或标签",inputList:[{title:"Select",component:x["a"].Select,attr:{allowClear:!0,options:[{value:"default",label:"default"},{value:"multiple",label:"multiple"},{value:"tags",label:"tags"},{value:"combobox",label:"combobox"}]}}]},{type:"attr",title:"下拉列表为空时的内容",name:"notFoundContent"},{type:"attr",name:"optionFilterProp",help:"搜索时过滤对应的 option 属性,如设置为 children 表示对内嵌内容进行搜索"},{type:"attr",name:"optionLabelProp",help:"回填到选择框的 Option 的属性值,默认是 Option 的子元素。比如在子元素需要高亮效果时,此值可以设为 value。(combobox 模式下为 value)"},{type:"attr",title:"使单选模式可搜索",name:"showSearch",inputList:[oe()]},{type:"attr",title:"是否显示下拉小箭头",name:"showArrow",inputList:[oe()]},{type:"attr",title:"选择框大小",name:"size",group:"general",inputList:[ae()]},{type:"attr",title:"选择框后缀图标",name:"suffixIcon",group:V[0],help:"VNode | slot"},{type:"attr",title:"多选框清除图标",name:"removeIcon",group:V[0],help:"VNode | slot"},{type:"attr",title:"多选框清空图标",name:"clearIcon",group:V[0],help:"VNode | slot"},{type:"attr",title:"选中的条目图标",name:"menuItemSelectedIcon",group:V[0],help:"VNode | slot"},{type:"attr",name:"tokenSeparators",group:V[0],help:"string[],在 tags 和 multiple 模式下自动分词的分隔符"},{type:"model",title:"选中的条目",name:"value"},{type:"attr",title:"是否默认展开下拉菜单",name:"defaultOpen",inputList:[oe()]},{type:"attr",title:"是否展开下拉菜单",name:"open",inputList:[oe()]},{type:"event",title:"失去焦点时回调",name:"blur"},{type:"event",title:"值变化时回调",name:"change",help:"选中 option,或 input 的 value 变化(combobox 模式下)时,调用此函数"},{type:"event",title:"取消选中时回调",name:"deselect",help:"参数为选中项的 value (或 key) 值,仅在 multiple 或 tags 模式下生效"},{type:"event",title:"获得焦点时回调",name:"focus"},{type:"event",title:"键盘按下时回调",name:"inputKeydown"},{type:"event",title:"鼠标移入时回调",name:"mouseenter"},{type:"event",title:"鼠标移出时回调",name:"mouseleave"},{type:"event",title:"下拉列表滚动时的回调",name:"popupScroll"},{type:"event",title:"文本框值变化时回调",name:"search"},{type:"event",title:"被选中时调用",name:"select",help:"参数为选中项的 value (或 key) 值"},{type:"event",title:"展开下拉菜单的回调",name:"dropdownVisibleChange"}]}};var F=W;const q={id:"a-switch",title:"开关",mpdConfig:{slot:[]},ext:{componentConfig:[{type:"attr",title:"自动获取焦点",name:"autoFocus",inputList:[oe()]},{type:"model",title:"指定当前是否选中",name:"checked",group:"general",inputList:[oe()]},{type:"attr",title:"选中时的内容",name:"checkedChildren",group:"general"},{type:"attr",title:"非选中时的内容",name:"unCheckedChildren",group:"general"},{type:"attr",title:"初始是否选中",name:"defaultChecked",group:"general",inputList:[oe()]},{type:"attr",title:"是否禁用",name:"disabled",group:"general",inputList:[oe()]},{type:"attr",title:"加载中的开关",name:"loading",inputList:[oe()]},{type:"attr",title:"选择框大小",name:"size",group:"general",inputList:[ae()]},{type:"event",title:"变化时回调函数",name:"change",help:"Function(checked:Boolean, event: Event)"},{type:"event",title:"点击时回调函数",name:"click",help:"Function(checked:Boolean, event: Event)"}]}};var U=q;const Y={id:"data-entry",title:"数据录入",list:[...S,...L,...M,E,...R,F,U]};var X=Y;const J={id:"a-table",title:"表格",mpdConfig:{slot:[]},ext:{componentConfig:[{type:"attr",name:"tableLayout",help:"表格元素的 table-layout 属性,设为 fixed 表示内容不会影响列的布局"},{type:"attr",title:"是否展示边框",name:"bordered",group:"general",inputList:[oe()]},{type:"attr",title:"指定树形结构的列名",name:"childrenColumnName",help:"string[]"},{type:"attr",title:"表格列的配置描述",name:"columns",group:"general",help:"array",defaultValue:[],inputList:[{title:"表格弹窗",component:x["a"].ArrayTable,attr:{columns:[{title:"列头显示文字(title)",dataIndex:"title",scopedSlots:{customRender:"titleSlot"}},{title:"列数据key(dataIndex)",dataIndex:"dataIndex",scopedSlots:{customRender:"dataIndexSlot"}},{title:"列宽度(width)",dataIndex:"width",scopedSlots:{customRender:"widthSlot"}}]}}]},{type:"attr",title:"覆盖默认的table元素",name:"components",help:"object"},{type:"attr",title:"数据数组",name:"dataSource",group:"general"},{type:"attr",title:"初始展开所有行",name:"defaultExpandAllRows",inputList:[oe()]},{type:"attr",title:"默认展开的行",name:"defaultExpandedRowKeys",help:"string[]"},{type:"model",title:"展开的行",name:"expandedRowKeys",help:"展开的行,控制属性。可用 .sync 后缀, 参见 update:expandedRowKeys"},{type:"attr",title:"额外的展开行",name:"expandedRowRender",help:'Function(record, index, indent, expanded):VNode | slot="expandedRowRender" slot-scope="record, index, indent, expanded"'},{type:"attr",title:"自定义展开图标",name:"expandIcon",help:'Function(props):VNode | slot="expandIcon" slot-scope="props"'},{type:"attr",title:"点击行展开子行",name:"expandRowByClick",inputList:[oe()]},{type:"attr",title:"展开的图标显示在哪一列",name:"expandIconColumnIndex",group:"general",help:"如果没有 rowSelection,默认显示在第一列,否则显示在选择框后面",inputList:[{title:"数字框",component:x["a"].InputNumber}]},{type:"attr",title:"表格尾部",name:"footer",help:"Function(currentPageData)|slot-scope"},{type:"attr",title:"每层缩进的宽度",name:"indentSize",help:"展示树形数据时,每层缩进的宽度,以 px 为单位",inputList:[{title:"数字框",component:x["a"].InputNumber}]},{type:"attr",title:"页面是否加载中",name:"loading",group:"general",help:"boolean|object"},{type:"attr",title:"默认文案",name:"locale",help:"默认文案设置,目前包括排序、过滤、空数据文案,object"},{type:"attr",title:"分页器",name:"pagination",group:"general",help:"参考配置项或 pagination文档,设为 false 时不展示和进行分页"},{type:"attr",title:"表格行的类名",name:"rowClassName",help:"Function(record, index):string"},{type:"attr",title:"表格行key的取值",name:"rowKey",group:"general",help:"string|Function(record):string"},{type:"attr",title:"列表项是否可选择",name:"rowSelection"},{type:"attr",title:"设置横向或纵向滚动",name:"scroll",group:"general",help:"也可用于指定滚动区域的宽和高,建议为 x 设置一个数字,如果要设置为 true,需要配合样式 .ant-table td { white-space: nowrap; },类型:{ x: number | true, y: number }"},{type:"attr",title:"是否显示表头",name:"showHeader",inputList:[oe()]},{type:"attr",title:"表格大小",name:"size",group:"general",inputList:[{title:"Select",component:x["a"].Select,attr:{allowClear:!0,options:[{value:"default",label:"默认"},{value:"small",label:"小"},{value:"middle",label:"中"}]}}]},{type:"attr",title:"表格标题",name:"title",help:"Function(currentPageData)|slot-scope"},{type:"attr",title:"设置头部行属性",name:"customHeaderRow",help:"Function(column, index)"},{type:"attr",title:"设置行属性",name:"customRow",help:"Function(record, index)"},{type:"attr",title:"渲染节点",name:"getPopupContainer",help:"设置表格内各类浮层的渲染节点,如筛选菜单,类型:(triggerNode) => HTMLElement"},{type:"attr",name:"transformCellText",help:"\t数据渲染前可以再次改变,一般用户空数据的默认配置,可以通过 ConfigProvider 全局统一配置,类型:Function({ text, column, record, index }) => any"},{type:"event",name:"change",help:"分页、排序、筛选变化时触发,类型:Function(pagination, filters, sorter, { currentDataSource })"},{type:"attr",title:"点击展开图标",name:"expand",help:"Function(expanded, record)"},{type:"attr",title:"展开的行变化",name:"expandedRowsChange",help:"Function(expandedRowKeys)"}]}};var G=J;const Z=[G];var Q=Z;const ee={id:"data-display",title:"数据显示",list:[...Q]};var te=ee;const ne=[_,I,X,te];var ie=ne;function oe(e="是",t="否"){return{title:"Select",component:x["a"].Select,attr:{allowClear:!0,options:[{value:"$:true",label:e},{value:"$:false",label:t}]}}}function ae(){return{title:"Select",component:x["a"].Select,attr:{allowClear:!0,options:[{value:"default",label:"默认"},{value:"small",label:"小"},{value:"large",label:"大"}]}}}const le=[];var re=le,se=n("2ef0"),ce=n.n(se);const pe={id:"layout",title:"布局",list:[{id:"div",title:"div",ext:{icon:"mpd-icon-div",childrenComponent:[]}},{id:"mpd-html",title:"Html",ext:{icon:"mpd-icon-html",componentConfig:[{type:"attr",name:"htmlText",title:"Html内容",group:"general",help:"改字符串内容会被放入eval中执行,所以可以直接绑定字段使用,例如:这是展示的arg1参数的值${this.mpdPageValue.arg1}"}]}}]};var de,me=pe;(function(e){e["Span"]="span",e["Pre"]="pre",e["P"]="p",e["H1"]="h1",e["H2"]="h2",e["H3"]="h3",e["H4"]="h4",e["H5"]="h5",e["H6"]="h6"})(de||(de={}));const ue=[];for(const wo in de)ue.push({value:de[wo],label:wo});const ge={id:"text",title:"文本",list:[{id:"mpd-text",title:"Text",mpdConfig:{text:"在此处修改mpd-text标签内容"},ext:{icon:"mpd-icon-text-border",componentConfig:[{type:"attr",title:"文本标签类型",name:"type",group:"general",defaultValue:"p",inputList:[{title:"Select",component:x["a"].Select,attr:{options:ue}}]}]}},{id:"mpd-icon",title:"字体图标",ext:{icon:"mpd-icon-picture",componentConfig:[{type:"attr",title:"图标class",name:"icon",group:"general"},{type:"attr",title:"大小",name:"fontSize",group:"general",inputList:[{title:"数字框",component:x["a"].InputNumber}]}]}}]};var fe=ge;const he=[me,fe],be={};function ye(){let e=!1;if(C.length>0){const t=ce.a.cloneDeep(C);t.forEach(e=>{let t=!0;he.forEach(n=>{if(n.id===e.id){const i={};e.list.forEach(e=>{i[e.id]=e}),n.list.forEach(e=>{if(i.hasOwnProperty(e.id)){const t=i[e.id];for(const n in t)e[n]=t[n];delete i[e.id]}});for(const e in i)n.list.push(i[e]);t=!1}}),t&&he.push(e)}),C.splice(0,C.length),e=!0}(e||0===Object.keys(be).length)&&he.forEach(e=>{e.list.forEach(e=>{e.ext=e.ext||{},be[e.id]=e})})}function ve(){return ye(),he}function Ce(e){return ye(),e?be[e]:be}function we(){return ie}function xe(){return re}var ke={getLibraryData:ve,getLibraryDataMap:Ce,getAntConfig:we,getElementConfig:xe},_e=(n("380f"),n("f64c"));const Pe={success(e,t,n){return Ie.content=e,Ie.type="success",_e["a"].success(e,t,n)},error(e,t,n){return Ie.content=e,Ie.type="error",_e["a"].error(e,t,n)},info(e,t,n){return Ie.content=e,Ie.type="info",_e["a"].info(e,t,