@web-utils/component 2.8.0 → 2.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/chunks/json-beautifier.21cfffea.mjs +126 -0
- package/dynamic-table/index.mjs +8 -8
- package/form-block/index.mjs +156 -0
- package/form-block/style.css +1 -0
- package/form-input-tag/index.mjs +99 -0
- package/fy-form-design/index.mjs +43 -325
- package/fy-form-design/style.css +1 -1
- package/index.cjs +37 -13
- package/index.css +1 -1
- package/index.mjs +3939 -3019
- package/monaco-editor/index.mjs +196 -0
- package/package.json +3 -2
- package/present-view/index.mjs +360 -0
- package/present-view/style.css +1 -0
- package/swiper/index.mjs +1 -1
- package/tinymce-editor/style.css +1 -1
- package/tinymce-wrapper/index.mjs +290 -97
- package/web-types.json +831 -208
- package/x-input-tag/index.mjs +182 -0
- package/x-input-tag/style.css +1 -0
package/index.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict";var N=Object.defineProperty,K=Object.defineProperties;var W=Object.getOwnPropertyDescriptors;var D=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable;var L=(t,s,n)=>s in t?N(t,s,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[s]=n,f=(t,s)=>{for(var n in s||(s={}))j.call(s,n)&&L(t,n,s[n]);if(D)for(var n of D(s))z.call(s,n)&&L(t,n,s[n]);return t},S=(t,s)=>K(t,W(s));var R=(t,s)=>{var n={};for(var r in t)j.call(t,r)&&s.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&D)for(var r of D(t))s.indexOf(r)<0&&z.call(t,r)&&(n[r]=t[r]);return n};var v=(t,s,n)=>new Promise((r,a)=>{var o=u=>{try{c(n.next(u))}catch(d){a(d)}},l=u=>{try{c(n.throw(u))}catch(d){a(d)}},c=u=>u.done?r(u.value):Promise.resolve(u.value).then(o,l);c((n=n.apply(t,s)).next())});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const core=require("@web-utils/core"),dayjs=require("@web-utils/integrations/dayjs"),Uploader=require("simple-uploader.js"),CodeMirror=require("codemirror");require("codemirror/lib/codemirror.css");require("codemirror/theme/idea.css");require("codemirror/mode/javascript/javascript");require("codemirror/addon/edit/matchbrackets");require("codemirror/addon/lint/javascript-lint");require("codemirror/addon/lint/json-lint");require("codemirror/addon/lint/lint");require("codemirror/addon/lint/lint.css");require("codemirror/addon/fold/foldcode");require("codemirror/addon/fold/foldgutter");require("codemirror/addon/fold/foldgutter.css");require("codemirror/addon/fold/brace-fold");require("codemirror/addon/fold/comment-fold");const Color=require("element-ui/packages/color-picker/src/color"),Clickoutside=require("element-ui/src/utils/clickoutside"),Loading=require("element-ui/lib/loading"),MessageBox=require("element-ui/lib/message-box"),countup_js=require("countup.js"),OverlayScrollbars=require("overlayscrollbars");require("overlayscrollbars/css/OverlayScrollbars.css");const dialog=require("@web-utils/vue/mixin/dialog"),Vue=require("vue"),echarts=require("echarts/core"),lodash=require("@web-utils/integrations/lodash"),resizeDetector=require("resize-detector"),resize=require("@web-utils/integrations/resize"),Emitter=require("element-ui/src/mixins/emitter"),util$1=require("element-ui/src/utils/util"),Dialog=require("element-ui/lib/dialog"),dialogDrag=require("@web-utils/vue/directives/dialog-drag"),BpmnViewer=require("bpmn-js/lib/NavigatedViewer"),ZoomScroll=require("diagram-js/lib/navigation/zoomscroll/ZoomScroll"),Col=require("element-ui/lib/col"),FormItem$1=require("element-ui/lib/form-item"),Cascader=require("element-ui/lib/cascader"),CheckboxGroup=require("element-ui/lib/checkbox-group"),Input=require("element-ui/lib/input"),TimePicker=require("element-ui/lib/time-picker"),RadioGroup=require("element-ui/lib/radio-group"),Select=require("element-ui/lib/select"),Switch=require("element-ui/lib/switch"),ElScrollbar=require("element-ui/lib/scrollbar"),monaco=require("monaco-editor/esm/vs/editor/editor.api");require("monaco-editor/esm/vs/basic-languages/javascript/javascript.contribution");const Draggable=require("vuedraggable");require("@wangeditor/editor/dist/css/style.css");const editor=require("@wangeditor/editor"),hljs=require("highlight.js/lib/core");require("highlight.js/styles/atom-one-dark-reasonable.css");const vueCropper=require("vue-cropper"),Viewer=require("viewerjs");require("viewerjs/dist/viewer.css");const Focus=require("element-ui/src/mixins/focus"),RepeatClick=require("element-ui/src/directives/repeat-click"),PhotoSwipe$1=require("photoswipe");require("photoswipe/dist/photoswipe.css");const BpmnModeler=require("bpmn-js/lib/Modeler"),TokenSimulationModule=require("bpmn-js-token-simulation"),minDash=require("min-dash"),X2JS=require("x2js"),xml$3=require("highlight.js/lib/languages/xml"),json=require("highlight.js/lib/languages/json"),ClickOutside=require("element-ui/lib/utils/clickoutside"),lodash$1=require("lodash");require("tinymce/skins/lightgray/skin.min.css");const tinymce=require("tinymce"),Editor=require("@tinymce/tinymce-vue");require("tinymce/themes/modern/theme");require("tinymce/plugins/contextmenu");require("tinymce/plugins/wordcount");require("tinymce/plugins/image");require("tinymce/plugins/fullscreen");require("tinymce/plugins/preview");require("tinymce/plugins/imagetools");function _interopNamespaceDefault(t){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(s,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return s.default=t,Object.freeze(s)}const echarts__namespace=_interopNamespaceDefault(echarts),monaco__namespace=_interopNamespaceDefault(monaco);var render$39=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"address-input-wrapper flex-row"},[n("div",{staticClass:"address-input-item-wrapper"},[n("ElCascader",{attrs:{options:t.options,disabled:t.inputDisabled,props:{label:"name",value:t.labelAsValue?"name":"id"}},model:{value:t.internalVal.address,callback:function(r){t.$set(t.internalVal,"address",r)},expression:"internalVal.address"}})],1),n("div",{staticClass:"address-input-item-wrapper flex-item"},[n("ElInput",{attrs:{placeholder:"请输入详细地址!",disabled:t.inputDisabled},model:{value:t.internalVal.detailAddress,callback:function(r){t.$set(t.internalVal,"detailAddress",r)},expression:"internalVal.detailAddress"}})],1)])},staticRenderFns$39=[];const AddressInput_vue_vue_type_style_index_0_lang="";function normalizeComponent(t,s,n,r,a,o,l,c){var u=typeof t=="function"?t.options:t;s&&(u.render=s,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o);var d;if(l?(d=function(m){m=m||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!m&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(m=__VUE_SSR_CONTEXT__),a&&a.call(this,m),m&&m._registeredComponents&&m._registeredComponents.add(l)},u._ssrRegister=d):a&&(d=c?function(){a.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:a),d)if(u.functional){u._injectStyles=d;var p=u.render;u.render=function(_,x){return d.call(x),p(_,x)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,d):[d]}return{exports:t,options:u}}const __vue2_script$3o={name:"AddressInput",inject:{elForm:{default:""},elFormItem:{default:""}},props:{options:{type:Array,default(){return[]}},value:{type:Object,default:()=>({})},labelAsValue:Boolean,disabled:Boolean},data(){return{internalVal:{address:[],detailAddress:""}}},computed:{inputDisabled(){return this.disabled||(this.elForm||{}).disabled}},watch:{value:{immediate:!0,deep:!0,handler(t){t&&(this.internalVal.address=t.address,this.internalVal.detailAddress=t.detailAddress)}},internalVal:{immediate:!0,deep:!0,handler(t){!t.address&&!t.detailAddress?this.$emit("input",void 0):this.$emit("input",t)}}}},__cssModules$3o={};var __component__$3o=normalizeComponent(__vue2_script$3o,render$39,staticRenderFns$39,!1,__vue2_injectStyles$3o,null,null,null);function __vue2_injectStyles$3o(t){for(let s in __cssModules$3o)this[s]=__cssModules$3o[s]}const AddressInput=function(){return __component__$3o.exports}();var render$38=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",[n("div",{ref:"point",class:{affix:t.affix},style:t.styles},[t._t("default")],2),n("div",{directives:[{name:"show",rawName:"v-show",value:t.slot,expression:"slot"}],style:t.slotStyle})])},staticRenderFns$38=[];const Affix_vue_vue_type_style_index_0_lang="",__vue2_script$3n={name:"Affix",props:{target:String,offsetTop:{type:Number,default:0},offsetBottom:{type:Number}},data(){return{container:null,affix:!1,styles:{},slot:!1,slotStyle:{}}},computed:{offsetType(){let t="top";return this.offsetBottom>=0&&(t="bottom"),t}},mounted(){this.target?this.container=document.querySelector(this.target):this.container=document,this.container.addEventListener("scroll",this.handleScroll,!1),this.container.addEventListener("resize",this.handleScroll,!1)},beforeDestroy(){this.container.removeEventListener("scroll",this.handleScroll,!1),this.container.removeEventListener("resize",this.handleScroll,!1)},methods:{getScroll(t,s){const n=s?"pageYOffset":"pageXOffset",r=s?"scrollTop":"scrollLeft";let a=t[n];return typeof a!="number"&&(a=document.documentElement[r]),a},getOffset(t){const s=t.getBoundingClientRect(),n=this.getScroll(this.container,!0),r=this.getScroll(this.container),a=document.body,o=a.clientTop||0,l=a.clientLeft||0;return{top:s.top+n-o,left:s.left+r-l}},handleScroll(){const t=this.affix,s=this.getScroll(this.container,!0),n=this.getOffset(this.$el),r=this.container.innerHeight,a=this.$el.getElementsByTagName("div")[0].offsetHeight;n.top-this.offsetTop<s&&this.offsetType==="top"&&!t?(this.affix=!0,this.slotStyle={width:`${this.$refs.point.clientWidth}px`,height:`${this.$refs.point.clientHeight}px`},this.slot=!0,this.styles={top:`${this.offsetTop}px`,left:`${n.left}px`,width:`${this.$el.offsetWidth}px`},this.$emit("on-change",!0)):n.top-this.offsetTop>s&&this.offsetType==="top"&&t&&(this.slot=!1,this.slotStyle={},this.affix=!1,this.styles=null,this.$emit("on-change",!1)),n.top+this.offsetBottom+a>s+r&&this.offsetType==="bottom"&&!t?(this.affix=!0,this.styles={bottom:`${this.offsetBottom}px`,left:`${n.left}px`,width:`${this.$el.offsetWidth}px`},this.$emit("on-change",!0)):n.top+this.offsetBottom+a<s+r&&this.offsetType==="bottom"&&t&&(this.affix=!1,this.styles=null,this.$emit("on-change",!1))}}},__cssModules$3n={};var __component__$3n=normalizeComponent(__vue2_script$3n,render$38,staticRenderFns$38,!1,__vue2_injectStyles$3n,null,null,null);function __vue2_injectStyles$3n(t){for(let s in __cssModules$3n)this[s]=__cssModules$3n[s]}const Affix=function(){return __component__$3n.exports}();var render$37=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticStyle:{"padding-top":"4px"}},t._l(t.menu,function(r){return n("div",{key:r.key,staticClass:"aside-menu-item hover-active",class:{active:t.$route.path===r.path},on:{click:function(a){return t.$router.push(r.path)}}},[t._t("default",function(){return[n("i",{staticClass:"egd-icon-common",class:r.icon}),t._v(" "+t._s(r.label)+" ")]},{item:r})],2)}),0)},staticRenderFns$37=[];const AsideMenu_vue_vue_type_style_index_0_lang="",__vue2_script$3m={name:"AsideMenu",props:{menu:{type:Array,default:()=>[]}}},__cssModules$3m={};var __component__$3m=normalizeComponent(__vue2_script$3m,render$37,staticRenderFns$37,!1,__vue2_injectStyles$3m,null,null,null);function __vue2_injectStyles$3m(t){for(let s in __cssModules$3m)this[s]=__cssModules$3m[s]}const AsideMenu=function(){return __component__$3m.exports}();var render$36=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("span",{class:["avue-avatar",t.sizeCls,"avue-avatar__icon"],style:t.sizeStyle},[t.src?n("img",{staticClass:"avue-avatar__images",attrs:{src:t.src,alt:""}}):t.icon?n("i",{class:t.icon}):n("span",{ref:"avatarChildren",staticClass:"avue-avatar__string",style:t.sizeChildrenStyle},[t._t("default")],2)])},staticRenderFns$36=[];const Avatar_vue_vue_type_style_index_0_lang="",prefixCls$1="avue-avatar",__vue2_script$3l={name:"Avatar",props:{src:String,shape:{validator:t=>["circle","square"].includes(t),type:String,default:"circle"},size:{validator:t=>typeof t=="number"||["small","large","default"].includes(t),default:"default"},icon:String},data(){return{scale:1}},computed:{sizeChildrenStyle(){let t={};const s=`scale(${this.scale}) translateX(-50%)`;return t={msTransform:s,WebkitTransform:s,transform:s},typeof size=="number"&&(t.lineHeight=`${this.size}px`),t},sizeCls(){return{[`${prefixCls$1}--${this.shape}`]:this.shape,[`${prefixCls$1}--lg`]:this.size==="large",[`${prefixCls$1}--sm`]:this.size==="small"}},sizeStyle(){return typeof this.size=="number"?{width:`${this.size}px`,height:`${this.size}px`,lineHeight:`${this.size}px`,fontSize:this.icon?`${this.size/2}px`:"18px"}:{}}},updated(){this.$nextTick(()=>{this.setScale()})},mounted(){this.$nextTick(()=>{this.setScale()})},methods:{setScale(){const t=this.$refs.avatarChildren;if(t){const s=t.offsetWidth,n=this.$el.getBoundingClientRect().width;n-8<s?this.scale=(n-8)/s:this.scale=1}}}},__cssModules$3l={};var __component__$3l=normalizeComponent(__vue2_script$3l,render$36,staticRenderFns$36,!1,__vue2_injectStyles$3l,null,null,null);function __vue2_injectStyles$3l(t){for(let s in __cssModules$3l)this[s]=__cssModules$3l[s]}const Avatar=function(){return __component__$3l.exports}(),props$3={props:{type:{type:String,default:"primary"},size:String,icon:{type:String,default:""},nativeType:{type:String,default:"button"},loading:Boolean,disabled:Boolean,plain:Boolean,autofocus:Boolean,round:Boolean}},__vue2_script$3k={name:"AwesomeButton",mixins:[props$3],props:{text:{type:String,default:""}},data(){return{isLoading:!1}},methods:{onClick(t){return v(this,null,function*(){this.isLoading=!0;const{click:s}=this.$listeners;if(core.isFunction(s))try{yield s(t)}catch(n){core.error.call(this,n)}this.isLoading=!1})}},render(t){var n,r;const s=(r=(n=this.$scopedSlots).default)==null?void 0:r.call(n);return t("ElButton",{on:{click:this.onClick},props:S(f({},this.$props),{disabled:this.isLoading})},s&&(s[0].tag||s[0].text)?s:this.text)}};let __vue2_render$e,__vue2_staticRenderFns$e;const __cssModules$3k={};var __component__$3k=normalizeComponent(__vue2_script$3k,__vue2_render$e,__vue2_staticRenderFns$e,!1,__vue2_injectStyles$3k,null,null,null);function __vue2_injectStyles$3k(t){for(let s in __cssModules$3k)this[s]=__cssModules$3k[s]}const AwesomeButton=function(){return __component__$3k.exports}();var render$35=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("ul",{staticClass:"capsule-tab"},t._l(t.tabs,function(r){return n("li",{key:r.value,class:["tab-item",{active:t.value===r.value,single:t.tabs.length===1}],on:{click:function(a){return t.$emit("input",r.value)}}},[t._v(" "+t._s(r.label)+" ")])}),0)},staticRenderFns$35=[];const CapsuleTab_vue_vue_type_style_index_0_lang="",__vue2_script$3j={name:"CapsuleTab",props:{tabs:{type:Array,default:()=>[]},value:{type:String}}},__cssModules$3j={};var __component__$3j=normalizeComponent(__vue2_script$3j,render$35,staticRenderFns$35,!1,__vue2_injectStyles$3j,null,null,null);function __vue2_injectStyles$3j(t){for(let s in __cssModules$3j)this[s]=__cssModules$3j[s]}const CapsuleTab=function(){return __component__$3j.exports}();var render$34=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-card"},[n("ElRow",{attrs:{span:24,gutter:t.gutter}},[t.option.addBtn?n("ElCol",{attrs:{span:t.span}},[n("div",{staticClass:"avue-card__item avue-card__item--add",on:{click:function(r){return t.rowAdd()}}},[n("i",{staticClass:"el-icon-plus"}),n("span",[t._v("添加")])])]):t._e(),t._l(t.data,function(r,a){return n("ElCol",{key:a,attrs:{span:t.span}},[n("div",{staticClass:"avue-card__item",on:{click:function(o){return t.rowClick(r,a)}}},[n("div",{staticClass:"avue-card__body"},[n("div",{staticClass:"avue-card__avatar"},[n("img",{attrs:{src:r[t.imgKey],alt:""}})]),n("div",{staticClass:"avue-card__detail"},[n("div",{staticClass:"avue-card__title"},[t._v(" "+t._s(r[t.titleKey])+" ")]),n("div",{staticClass:"avue-card__info"},[t._v(" "+t._s(r[t.infoKey])+" ")])])]),n("div",{staticClass:"avue-card__menu"},[t._t("menu",null,{index:a,row:r})],2)])])})],2)],1)},staticRenderFns$34=[];const Card_vue_vue_type_style_index_0_lang="",propsDefault$3={img:"img",title:"title",info:"info"},__vue2_script$3i={name:"Card",props:{props:{type:Object,default:()=>propsDefault$3},option:{type:Object,default:()=>({})},data:{type:Array,default:()=>[]}},data(){return{propsDefault:propsDefault$3}},computed:{imgKey:function(){return this.option.props.img||this.propsDefault.img},titleKey:function(){return this.option.props.title||this.propsDefault.title},infoKey:function(){return this.option.props.info||this.propsDefault.info},span(){return this.option.span||8},gutter(){return this.option.gutter||20}},methods:{rowAdd(){this.$emit("row-add")},rowClick(t,s){this.$emit("row-click",t,s)}}},__cssModules$3i={};var __component__$3i=normalizeComponent(__vue2_script$3i,render$34,staticRenderFns$34,!1,__vue2_injectStyles$3i,null,null,null);function __vue2_injectStyles$3i(t){for(let s in __cssModules$3i)this[s]=__cssModules$3i[s]}const Card=function(){return __component__$3i.exports}();var render$33=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{class:["avue-carousel",{"avue-carousel--fullscreen":t.option.fullscreen}]},[n("ElCarousel",{attrs:{type:t.option.type,height:`${t.option.height}px`,autoplay:t.option.autoplay,interval:t.option.interval,"indicator-position":"outside"}},t._l(t.data,function(r,a){return n("ElCarouselItem",{key:a},[n("div",{staticClass:"avue-carousel__item"},[n("a",{attrs:{href:r.href?r.href:"javascript:void(0);",target:r.target}},[n("div",{staticClass:"avue-carousel__img",style:{backgroundImage:`url(${r.src})`}}),r.title?n("div",{staticClass:"avue-carousel__title"},[t._v(t._s(r.title))]):t._e()])])])}),1)],1)},staticRenderFns$33=[];const Carousel_vue_vue_type_style_index_0_lang="",__vue2_script$3h={name:"Carousel",props:{option:{type:Object,default:()=>{}}},computed:{data(){return this.option.data||[]}}},__cssModules$3h={};var __component__$3h=normalizeComponent(__vue2_script$3h,render$33,staticRenderFns$33,!1,__vue2_injectStyles$3h,null,null,null);function __vue2_injectStyles$3h(t){for(let s in __cssModules$3h)this[s]=__cssModules$3h[s]}const Carousel=function(){return __component__$3h.exports}(),KEY_COMPONENT_NAME="fy-",DIC_PROPS={rowKey:"id",rowParentKey:"parentId",nodeKey:"id",label:"label",value:"value",desc:"desc",groups:"groups",title:"title",leaf:"leaf",children:"children",hasChildren:"hasChildren",labelText:"名称",disabled:"disabled"},DIC_HTTP_PROPS={name:"name",url:"url",fileName:"file",res:""},DATE_LIST=["dates","date","datetime","datetimerange","daterange","time","timerange","week","month","monthrange","year"],INPUT_LIST=["tree","number","icon","color","table","map"],ARRAY_LIST=["img","array","url"],MULTIPLE_LIST=["cascader","tree","select"],RANGE_LIST=["slider"],ARRAY_VALUE_LIST=ARRAY_LIST.concat(["upload","dynamic","map","checkbox","cascader","dynamic","timerange","monthrange","daterange","datetimerange","dates"]),SELECT_LIST=DATE_LIST.concat(["select","checkbox","radio","cascader","tree","color","icon","table","map"]),DIC_SHOW_SPLIT=" | ",DIC_SPLIT=",",typeList={img:/\.(gif|jpg|jpeg|png|webp|svg|GIF|JPG|JPEG|PNG|WEBP|SVG)/,video:/\.(swf|avi|flv|mpg|rm|mov|wav|asf|3gp|mkv|rmvb|ogg|mp4)/,audio:/\.(mp3|wav|MP3|WAV)/},isMediaType=(t,s)=>{if(!core.isBlank(t))return typeList.audio.test(t)||s==="audio"?"audio":typeList.video.test(t)||s==="video"?"video":typeList.img.test(t)||s==="img"?"img":!1};function getFixed(t=0,s=2){return Number(t.toFixed(s))}function getAsVal(t,s=""){let n=deepClone(t);return core.isBlank(s)||s.split(".").forEach(r=>{n=core.isBlank(n[r])?"":n[r]}),n}function setAsVal(obj,bind="",value){let result;const type=core.getObjType(value);return core.isBlank(value)?type==="array"?result=`obj.${bind}=[]`:type==="object"?result=`obj.${bind}={}`:["number","boolean"].includes(type)?result=`obj.${bind}=undefined`:result=`obj.${bind}=''`:type==="string"?result=`obj.${bind}='${value}'`:result=`obj.${bind}=${value}`,eval(result),obj}function downFile(t,s){typeof t=="object"&&t instanceof Blob&&(t=URL.createObjectURL(t));const n=document.createElement("a");n.href=t,n.download=s||"";let r;window.MouseEvent?r=new MouseEvent("click"):(r=document.createEvent("MouseEvents"),r.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null)),n.dispatchEvent(r)}function strCorNum(t){return t.forEach((s,n)=>{t[n]=Number(s)}),t}function extend(...t){let s=t[0]||{},n=!1;const r=Array.prototype.slice.call(t);let a=1,o,l,c,u,d=!1;for(typeof s=="boolean"&&(n=s,a++,s=t[1]);a<r.length;a++)if((o=r[a])!=null)for(c in o)u=o[c],l=s[c],n&&(toString.call(u)==="[object Object]"||(d=toString.call(u)==="[object Array]"))?(d?l=toString.call(l)==="[object Array]"?l:[]:l=toString.call(l)==="[object Object]"?l:{},s[c]=extend(n,l,u)):u!==void 0&&u!==l&&(s[c]=u);return s}function createObj(t,s){const n=s.split("."),r=n.splice(0,1)[0],a={};if(a[r]={},n.length>=2){const o="{",l="}";let c="";n.forEach(u=>{c=`${c}${o}"${u}":`}),c=`${c}""`;for(let u=0;u<n.length;u++)c=`${c}${l}`;c=JSON.parse(c),a[r]=c}return t=extend(!0,t,a),t}function dataURLtoFile(t,s){const n=t.split(","),r=n[0].match(/:(.*?);/)[1],a=atob(n[1]);let o=a.length;const l=new Uint8Array(o);for(;o--;)l[o]=a.charCodeAt(o);return new File([l],s,{type:r})}function findObject(t,s,n="prop"){let r=-1;const a=(()=>{let o;return t.forEach(l=>{l.column?o="group":l.children&&(o="tree")}),o})();return a==="group"?t.forEach(o=>{const l=findArray(o.column,s,n,!0);l!==-1&&(r=l)}):a==="tree"?r=findLabelNode(t,s,{value:n},!0):r=findArray(t,s,n,!0),r}function randomId(){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",s=t.length;let n="";for(let r=0;r<16;r++)n+=t.charAt(Math.floor(Math.random()*s));return n}const deepClone=t=>{const s=core.getObjType(t);let n;if(s==="array")n=[];else if(s==="object")n={};else return t;if(s==="array"){t=t;let r=0;const a=t.length;for(;r<a;r++)t[r]&&delete t[r].$parent,n.push(deepClone(t[r]))}else if(s==="object")for(const r in t){const a=t[r];a&&delete a.$parent,n[r]=deepClone(t[r])}return n},setPx=(t,s="")=>(t||(t=s),t?(t=`${t}`,t.indexOf("%")===-1&&t.indexOf("px")===-1&&(t=`${t}px`),t):""),detailDataType=(t,s)=>core.isBlank(t)?t:s==="number"?Number(t):s==="string"?`${t}`:t,detailDic=(t=[],s={},n)=>{const r=s.value||DIC_PROPS.value,a=s.children||DIC_PROPS.children;return t.forEach(o=>{o[r]=detailDataType(o[r],n),o[a]&&detailDic(o[a],s,n)}),t},findByValue=(t,s,n)=>{if(core.isBlank(t))return s;const r=s instanceof Array,a=r?s:[s];n=n||DIC_PROPS;const o=[];for(let l=0;l<a.length;l++)o.push(findLabelNode(t,a[l],n)||a[l]);return r?o.join(DIC_SHOW_SPLIT):o.join()},filterParams=(t,s=["","$"],n=!0)=>{const r=n?deepClone(t):t;for(const a in r)s.includes("")&&core.isBlank(r[a])&&delete r[a],s.includes("$")&&a.indexOf("$")!==-1&&delete r[a];return r},detailDicGroup=(t=[],s={})=>{let n=deepClone(t);const r=s[DIC_PROPS.groups]||DIC_PROPS.groups;return t.forEach(a=>{a[r]&&(n=n.concat(a[r]))}),n},findLabelNode=(t,s,n,r=null)=>{let a;r||(t=detailDicGroup(t,n));const o=l=>{const c=n.label||DIC_PROPS.label,u=n.value||DIC_PROPS.value,d=n.children||DIC_PROPS.children;for(let p=0;p<l.length;p++){const h=l[p],m=h[d]||[];h[u]===s?a=r?h:h[c]:o(m)}};return o(t),a},getDeepData=t=>(Array.isArray(t)?t:t.data)||[],getObjValue=(t,s="",n=null)=>{const r=s.split(".");let a=t;return r[0]===""&&n!=="object"?getDeepData(t):(r[0]!==""&&r.forEach(o=>{a=a[o]}),a)},findArray=(t,s,n,r)=>{n=n||DIC_PROPS.value;for(let a=0;a<t.length;a++)if(t[a][n]===s)return r?t[a]:a;return-1},getPasswordChar=(t="",s)=>{const n=t.toString().length;t="";for(let r=0;r<n;r++)t=t+s;return t},arraySort=(t=[],s,n)=>t.filter(r=>!core.isBlank(r[s])).sort((r,a)=>n(r,a)).concat(t.filter(r=>core.isBlank(r[s]))),clearVal=(t,s,n=[])=>t?(s.forEach(r=>{if(!n.includes(r)){if(r.includes("$"))delete t[r];else if(!core.isBlank(t[r])){const a=core.getObjType(t[r]);a==="array"?t[r]=[]:a==="object"?t[r]={}:["number","boolean"].includes(a)?t[r]=void 0:t[r]=""}}}),t):{},optVal=(t,s)=>typeof t=="boolean"?t:core.isBlank(t)?s:t;function uploadFun(t={},s){s=s||this;const n=["uploadPreview","uploadBefore","uploadAfter","uploadDelete","uploadError","uploadExceed"],r={};return t.type==="upload"?n.forEach(a=>{t[a]||(r[a]=s[a])}):n.forEach(a=>{r[a]=s[a]}),r}var render$32=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-chat",style:t.heightStyleName,on:{keyup:function(r){return!r.type.indexOf("key")&&t._k(r.keyCode,"enter",13,r.key,"Enter")?null:t.handleSend.apply(null,arguments)}}},[n("audio",{ref:"chatAudio"},[n("source",{attrs:{src:t.audio[0],type:"audio/ogg"}}),n("source",{attrs:{src:t.audio[1],type:"audio/mpeg"}}),n("source",{attrs:{src:t.audio[2],type:"audio/wav"}})]),n("div",{staticClass:"web__logo"},[n("img",{staticClass:"web__logo-img",attrs:{src:t.config.img,alt:""}}),n("div",{staticClass:"web__logo-info"},[n("p",{staticClass:"web__logo-name"},[t._v(" "+t._s(t.config.name)+" ")]),n("p",{staticClass:"web__logo-dept"},[t._v(" "+t._s(t.config.dept)+" ")])]),t._t("header")],2),n("div",{staticClass:"web__content"},[n("div",{style:t.widthStyleName},[n("div",{ref:"main",staticClass:"web__main"},t._l(t.list,function(r,a){return n("div",{key:a,staticClass:"web__main-item",class:{"web__main-item--mine":r.mine}},[n("div",{staticClass:"web__main-user"},[n("img",{attrs:{src:r.img}}),n("cite",[t._v(" "+t._s(r.name)+" "),n("i",[t._v(t._s(r.date))])])]),n("div",{staticClass:"web__main-text"},[n("div",{staticClass:"web__main-arrow"}),n("span",{ref:"content",refInFor:!0,domProps:{innerHTML:t._s(t.handleDetail(r.text.text))}}),r.text.list?t._e():n("ul",{staticClass:" web__main-list"},t._l(r.text.list,function(o,l){return n("li",{key:l,on:{click:function(c){return t.handleItemMsg(o)}}},[t._v(" "+t._s(o.text)+" ")])}),0)])])}),0),n("div",{staticClass:"web__footer",style:t.widthStyleName},[n("div",{staticClass:"web__tools"},[t.tools.img?n("i",{staticClass:"el-icon-picture-outline",on:{click:function(r){return t.handleUpload("img")}}}):t._e(),t.tools.video?n("i",{staticClass:"el-icon-video-camera",on:{click:function(r){return t.handleUpload("video")}}}):t._e(),t.tools.file?n("i",{staticClass:"el-icon-folder-opened",on:{click:function(r){return t.handleUpload("file")}}}):t._e()]),n("div",{staticClass:"web__msg"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.msg,expression:"msg"}],staticClass:"web__msg-input",attrs:{rows:"2",placeholder:t.placeholder},domProps:{value:t.msg},on:{input:function(r){r.target.composing||(t.msg=r.target.value)}}}),n("div",{staticClass:"web__msg-menu"},[n("ElDropdown",{staticClass:"web__msg-submit",attrs:{"split-button":"",type:"primary",size:"mini",trigger:"click"},on:{click:t.handleSend}},[t._v(" 发送 "),n("ElDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("ElDropdownItem",[n("ElPopover",{attrs:{placement:"top",width:"160"},model:{value:t.visible,callback:function(r){t.visible=r},expression:"visible"}},[n("ElInput",{staticStyle:{"margin-bottom":"10px"},attrs:{size:"mini",rows:3,"show-word-limit":"",maxlength:"100",placeholder:"请输入快捷回复语",type:"textarea"},model:{value:t.keys,callback:function(r){t.keys=r},expression:"keys"}}),n("div",{staticStyle:{margin:"0","text-align":"right"}},[n("ElButton",{attrs:{size:"mini",type:"text"},on:{click:function(r){t.visible=!1}}},[t._v(" 取消 ")]),n("ElButton",{attrs:{type:"primary",size:"mini"},on:{click:t.addKey}},[t._v(" 确定 ")])],1),n("ElButton",{attrs:{slot:"reference",type:"text",icon:"el-icon-plus"},slot:"reference"})],1)],1),n("ElScrollbar",{staticStyle:{height:"100px"}},t._l(t.keylist,function(r,a){return n("ElDropdownItem",{key:a,nativeOn:{click:function(o){return t.sendKey(r)}}},[n("ElTooltip",{attrs:{effect:"dark",content:r,placement:"top"}},[n("span",[t._v(" "+t._s(r.substr(0,10))+t._s(r.length>10?"...":""))])])],1)}),1)],1)],1)],1)])])]),t._t("default")],2),t.upload.box?n("div",[n("ElementDialog",{attrs:{title:t.upload.title,"body-padding":!1,visible:t.upload.box,width:"30%"},on:{"update:visible":function(r){return t.$set(t.upload,"box",r)}}},[n("ElForm",{ref:"form",attrs:{model:t.upload}},[n("ElFormItem",{attrs:{prop:"src",rules:[{required:!0,message:"地址不能为空"}]}},[n("ElInput",{staticStyle:{"margin-bottom":"10px"},attrs:{size:"mini",rows:4,"show-word-limit":"",maxlength:"100",placeholder:"请输入地址",type:"textarea"},model:{value:t.upload.src,callback:function(r){t.$set(t.upload,"src",r)},expression:"upload.src"}})],1)],1),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("ElButton",{attrs:{size:"small"},on:{click:function(r){t.upload.box=!1}}},[t._v("取 消")]),n("ElButton",{attrs:{type:"primary",size:"small"},on:{click:t.uploadSubmit}},[t._v("确 定")])],1)],1)],1):t._e(),t.show?n("div",[n("ElementDialog",{staticClass:"web__dialog",attrs:{visible:t.show,"body-padding":!1,title:"预览",width:"40%","before-close":t.handleClose},on:{"update:visible":function(r){t.show=r}}},[t.imgSrc?n("img",{staticStyle:{width:"100%","object-fit":"cover"},attrs:{src:t.imgSrc}}):t._e(),t.videoSrc?n("video",{staticStyle:{width:"100%","object-fit":"cover"},attrs:{src:t.videoSrc,controls:"controls"}}):t._e(),t.audioSrc?n("audio",{staticStyle:{width:"100%","object-fit":"cover"},attrs:{src:t.audioSrc,controls:"controls"}}):t._e()])],1):t._e()])},staticRenderFns$32=[];const Chat_vue_vue_type_style_index_0_lang="",__vue2_script$3g={name:"Chat",props:{beforeOpen:Function,tools:{type:Object,default:()=>({img:!0,video:!0,file:!0})},placeholder:{type:String,default:"请输入..."},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"520px"},value:{type:String},notice:{type:Boolean,default:!0},audio:{type:Array,default:()=>["https://www.helloweba.net/demo/notifysound/notify.ogg","https://www.helloweba.net/demo/notifysound/notify.mp3","https://www.helloweba.net/demo/notifysound/notify.wav"]},config:{type:Object,default:()=>({})},keylist:{type:Array,default:()=>[]},list:{type:Array,default:()=>[]}},data(){return{upload:{box:!1,src:"",type:"",title:""},visible:!1,imgSrc:"",videoSrc:"",audioSrc:"",keys:"",show:!1}},computed:{msg:{get(){return this.value},set(t){this.$emit("input",t),this.$emit("change",t)}},heightStyleName(){return{height:setPx(this.height)}},widthStyleName(){return{width:setPx(this.width)}},msgActive(){return this.msg.replace(/[\r\n]/g,"")}},methods:{uploadSubmit(){this.$refs.form.validate(t=>{t&&(this.upload.box=!1,this.$emit("submit",this.getDetail(this.upload)))})},handleUpload(t){this.upload.type=t,this.upload.src="",t==="img"?this.upload.title="图片上传":t==="video"?this.upload.title="视频上传":t==="file"&&(this.upload.title="文件上传"),this.upload.box=!0},handleClose(t){this.imgSrc=void 0,this.videoSrc=void 0,this.audioSrc=void 0,t()},addKey(){this.keys!==""&&(this.$emit("keyadd",this.keys),this.keys=""),this.visible=!1},sendKey(t){this.$emit("keysend",t)},getAudio(){this.$refs.chatAudio.play()},getNotification(t){const s=this,n=Notification||window.Notification;if(n){let a=function(){n.requestPermission(function(l){l==="granted"?o():console.log("用户无情残忍的拒绝了你!!!")})},o=function(){const l=new Notification(s.config.name,{body:t,icon:s.config.img});l.onshow=function(){s.getAudio(),setTimeout(()=>{l.close()},2500)},l.onclick=function(){l.close()}};const r=n.permission;r==="granted"?o():r==="denied"?console.log("用户拒绝了你!!!"):a()}},pushMsg(t={}){const s=t.mine===!0,n=t.text||{},a={date:t.date||dayjs.formatDate(Date.now(),"YYYY-MM-DD HH:mm:ss"),text:(()=>typeof n!="object"?{text:n}:n)(),mine:s,img:s?this.config.myImg:this.config.img,name:s?this.config.myName:this.config.name};this.list.push(a),setTimeout(()=>{this.setScroll()},50)},setScroll(t){this.$nextTick(()=>{this.$refs.main.scrollTop=t||this.$refs.main.scrollHeight})},handleSend(){this.msgActive&&this.$emit("submit")},handleItemMsg(t){this.$emit("submit",t.ask)},handleDetail(t=""){const s=t;return setTimeout(()=>{(this.$refs.content||[]).forEach(r=>{for(let a=0;a<r.children.length;a++){const o=r.children[a];o.getAttribute("data-flag")!=0&&(o.setAttribute("data-flag",0),o.onclick=()=>{this.handleEvent(o.dataset)},o.tagName==="IMG"?(o.className="web__msg--img",o.src=o.getAttribute("data-src")):o.tagName==="VIDEO"?(o.className="web__msg--video",o.src=o.getAttribute("data-src")):o.tagName==="AUDIO"?(o.className="web__msg--audio",o.controls="controls",o.src=o.getAttribute("data-src")):o.tagName==="FILE"?(o.className="web__msg--file",o.innerHTML=`<h2>File</h2><span>${o.getAttribute("data-name")}</span>`):o.tagName==="MAP"&&(o.className="web__msg--file web__msg--map",o.innerHTML=`<h2>Map</h2><span>${o.getAttribute("data-longitude")} , ${o.getAttribute("data-latitude")}<br />${o.getAttribute("data-address")}</span>`),this.setScroll())}})},0),s},getDetail(t={}){const{type:s,src:n,name:r,longitude:a,latitude:o,address:l}=t;if(s==="img")return`<img data-type="IMG" data-src="${n}" />`;if(s==="video")return`<video data-type="VIDEO" data-src="${n}"></video>`;if(s==="audio")return`<audio data-type="AUDIO" data-src="${n}"></audio>`;if(s==="file")return`<file data-type="FILE" data-name="${r}" data-src="${n}"></file>`;if(s==="map")return`<map data-type="MAP" data-src="${n}" data-address="${l} "data-latitude="${o}" data-longitude="${a}"></map>`},handleEvent(t){const s=()=>{t.type==="IMG"?(this.imgSrc=t.src,this.show=!0):t.type==="VIDEO"?(this.videoSrc=t.src,this.show=!0):t.type==="AUDIO"?(this.audioSrc=t.src,this.show=!0):t.type==="FILE"&&window.open(t.src)};typeof this.beforeOpen=="function"?this.beforeOpen(t,s):s()},rootSendMsg(t){this.pushMsg({text:t}),this.notice&&this.getNotification(t.text||t)}}},__cssModules$3g={};var __component__$3g=normalizeComponent(__vue2_script$3g,render$32,staticRenderFns$32,!1,__vue2_injectStyles$3g,null,null,null);function __vue2_injectStyles$3g(t){for(let s in __cssModules$3g)this[s]=__cssModules$3g[s]}const Chat=function(){return __component__$3g.exports}();function secondsToStr(t){const s=Math.floor(t/31536e3);if(s)return`${s} 年${l(s)}`;const n=Math.floor((t%=31536e3)/86400);if(n)return`${n} 天${l(n)}`;const r=Math.floor((t%=86400)/3600);if(r)return`${r} 时${l(r)}`;const a=Math.floor((t%=3600)/60);if(a)return`${a} 分${l(a)}`;const o=t%60;return`${o} 秒${l(o)}`;function l(c){return c>1,""}}function kebabCase(t){return t.replace(/[A-Z]/g,s=>`-${s.toLowerCase()}`)}var render$31=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"uploader"},[t._t("default",function(){return[n("ChunkFileUploaderUnSupport"),n("ChunkFileUploaderDrop",[n("p",[t._v("Drop files here to upload or")]),n("ChunkFileUploaderButton",[t._v("select files")]),n("ChunkFileUploaderButton",{attrs:{directory:!0}},[t._v(" select folder ")])],1),n("ChunkFileUploaderList")]},{files:t.files,fileList:t.fileList,started:t.started})],2)},staticRenderFns$31=[];const ChunkFileUploader_vue_vue_type_style_index_0_lang="",FILE_ADDED_EVENT="fileAdded",FILES_ADDED_EVENT="filesAdded",UPLOAD_START_EVENT="uploadStart",__vue2_script$3f={name:"ChunkFileUploader",provide(){return{uploader:this}},props:{options:{type:Object,default(){return{}}},autoStart:{type:Boolean,default:!0},fileStatusText:{type:[Object,Function],default(){return{success:"success",error:"error",uploading:"uploading",paused:"paused",waiting:"waiting"}}}},data(){return{started:!1,files:[],fileList:[]}},created(){this.options.initialPaused=!this.autoStart;const t=new Uploader(this.options);this.uploader=t,this.uploader.fileStatusText=this.fileStatusText,t.on("catchAll",this.allEvent),t.on(FILE_ADDED_EVENT,this.fileAdded),t.on(FILES_ADDED_EVENT,this.filesAdded),t.on("fileRemoved",this.fileRemoved),t.on("filesSubmitted",this.filesSubmitted)},destroyed(){const t=this.uploader;t.off("catchAll",this.allEvent),t.off(FILE_ADDED_EVENT,this.fileAdded),t.off(FILES_ADDED_EVENT,this.filesAdded),t.off("fileRemoved",this.fileRemoved),t.off("filesSubmitted",this.filesSubmitted),this.uploader=null},methods:{uploadStart(){this.started=!0},fileAdded(t){if(this.$emit(kebabCase(FILE_ADDED_EVENT),t),t.ignored)return!1},filesAdded(t,s){if(this.$emit(kebabCase(FILES_ADDED_EVENT),t,s),t.ignored||s.ignored)return!1},fileRemoved(t){this.$emit("file-removed",t),this.files=this.uploader.files,this.fileList=this.uploader.fileList},filesSubmitted(){this.files=this.uploader.files,this.fileList=this.uploader.fileList,this.autoStart&&this.uploader.upload()},allEvent(...t){const s=t[0],r={[FILE_ADDED_EVENT]:!0,[FILES_ADDED_EVENT]:!0,[UPLOAD_START_EVENT]:"uploadStart"}[s];if(r){if(r===!0)return;this[r].apply(this,t.slice(1))}t[0]=kebabCase(s),this.$emit.apply(this,t)}}},__cssModules$3f={};var __component__$3f=normalizeComponent(__vue2_script$3f,render$31,staticRenderFns$31,!1,__vue2_injectStyles$3f,null,null,null);function __vue2_injectStyles$3f(t){for(let s in __cssModules$3f)this[s]=__cssModules$3f[s]}const ChunkFileUploader=function(){return __component__$3f.exports}(),uploaderMixin={inject:["uploader"]},supportMixin={data(){return{support:!0}},mounted(){this.support=this.uploader.uploader.support}};var render$30=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("label",{directives:[{name:"show",rawName:"v-show",value:t.support,expression:"support"}],ref:"btn",staticClass:"uploader-btn"},[t._t("default")],2)},staticRenderFns$30=[];const ChunkFileUploaderButton_vue_vue_type_style_index_0_lang="",__vue2_script$3e={name:"ChunkFileUploaderButton",mixins:[uploaderMixin,supportMixin],props:{directory:{type:Boolean,default:!1},single:{type:Boolean,default:!1},attrs:{type:Object,default(){return{}}}},mounted(){this.$nextTick(()=>{this.uploader.uploader.assignBrowse(this.$refs.btn,this.directory,this.single,this.attrs)})}},__cssModules$3e={};var __component__$3e=normalizeComponent(__vue2_script$3e,render$30,staticRenderFns$30,!1,__vue2_injectStyles$3e,null,null,null);function __vue2_injectStyles$3e(t){for(let s in __cssModules$3e)this[s]=__cssModules$3e[s]}const ChunkFileUploaderButton=function(){return __component__$3e.exports}();var render$2$=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.support,expression:"support"}],ref:"drop",staticClass:"uploader-drop",class:t.dropClass},[t._t("default")],2)},staticRenderFns$2$=[];const ChunkFileUploaderDrop_vue_vue_type_style_index_0_lang="",__vue2_script$3d={name:"ChunkFileUploaderDrop",mixins:[uploaderMixin,supportMixin],data(){return{dropClass:""}},mounted(){return v(this,null,function*(){yield this.$nextTick();const t=this.$refs.drop,s=this.uploader.uploader;s.assignDrop(t),s.on("dragenter",this.onDragEnter),s.on("dragleave",this.onDragLeave),s.on("drop",this.onDrop)})},beforeDestroy(){const t=this.$refs.drop,s=this.uploader.uploader;s.off("dragenter",this.onDragEnter),s.off("dragleave",this.onDragLeave),s.off("drop",this.onDrop),s.unAssignDrop(t)},methods:{onDragEnter(){this.dropClass="uploader-dragover"},onDragLeave(){this.dropClass=""},onDrop(){this.dropClass="uploader-droped"}}},__cssModules$3d={};var __component__$3d=normalizeComponent(__vue2_script$3d,render$2$,staticRenderFns$2$,!1,__vue2_injectStyles$3d,null,null,null);function __vue2_injectStyles$3d(t){for(let s in __cssModules$3d)this[s]=__cssModules$3d[s]}const ChunkFileUploaderDrop=function(){return __component__$3d.exports}(),events=["fileProgress","fileSuccess","fileComplete","fileError"];var render$2_=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"chunk-file-uploader-file",attrs:{status:t.status}},[t._t("default",function(){return[n("div",{staticClass:"chunk-file-uploader-file-info"},[n("div",{staticClass:"chunk-file-uploader-file-name",attrs:{title:t.file.name}},[n("i",{staticClass:"chunk-file-uploader-file-icon",attrs:{icon:t.fileCategory}}),t._v(t._s(t.file.name)+" ")]),n("div",{staticClass:"chunk-file-uploader-file-size"},[t._v(" "+t._s(t.formatedSize)+" ")]),n("div",{staticClass:"chunk-file-uploader-file-status"},[n("span",{directives:[{name:"show",rawName:"v-show",value:!["uploading","md5"].includes(t.status),expression:"!['uploading', 'md5'].includes(status)"}]},[t._v(t._s(t.statusText))]),n("span",{directives:[{name:"show",rawName:"v-show",value:t.status==="md5",expression:"status === 'md5'"}]},[t._v(t._s(t.file.md5Progress))]),n("span",{directives:[{name:"show",rawName:"v-show",value:t.status==="uploading",expression:"status === 'uploading'"}],staticStyle:{"padding-left":"4px"}},[n("span",[t._v(t._s(t.progressStyle.progress))]),t._v(" | "),n("em",[t._v(t._s(t.formatedAverageSpeed))]),t._v(" | "),n("i",[t._v(t._s(t.formatedTimeRemaining))])])]),n("div",{staticClass:"chunk-file-uploader-file-actions"},[n("span",{staticClass:"chunk-file-uploader-file-pause",on:{click:t.pause}}),n("span",{staticClass:"chunk-file-uploader-file-resume",on:{click:t.resume}},[t._v("️")]),n("span",{staticClass:"chunk-file-uploader-file-retry",on:{click:t.retry}}),n("span",{staticClass:"chunk-file-uploader-file-remove",on:{click:t.remove}})])])]},{file:t.file,list:t.list,status:t.status,paused:t.paused,error:t.error,response:t.response,averageSpeed:t.averageSpeed,formatedAverageSpeed:t.formatedAverageSpeed,currentSpeed:t.currentSpeed,isComplete:t.isComplete,isUploading:t.isUploading,size:t.size,formatedSize:t.formatedSize,uploadedSize:t.uploadedSize,progress:t.progress,progressStyle:t.progressStyle,progressingClass:t.progressingClass,timeRemaining:t.timeRemaining,formatedTimeRemaining:t.formatedTimeRemaining,type:t.type,extension:t.extension,fileCategory:t.fileCategory})],2)},staticRenderFns$2_=[];const ChunkFileUploaderFile_vue_vue_type_style_index_0_lang="",__vue2_script$3c={name:"ChunkFileUploaderFile",props:{file:{type:Object,default(){return{}}},list:{type:Boolean,default:!1}},data(){return{response:null,paused:!1,error:!1,averageSpeed:0,currentSpeed:0,isComplete:!1,isUploading:!1,size:0,formatedSize:"",uploadedSize:0,progress:0,timeRemaining:0,type:"",extension:"",progressingClass:""}},computed:{fileCategory(){const t=this.extension;let n=this.file.isFolder?"folder":"unknown";const a=this.file.uploader.opts.categoryMap||{image:["gif","jpg","jpeg","png","bmp","webp"],video:["mp4","m3u8","rmvb","avi","swf","3gp","mkv","flv"],audio:["mp3","wav","wma","ogg","aac","flac"],document:["doc","txt","docx","pages","epub","pdf","numbers","csv","xls","xlsx","keynote","ppt","pptx"]};return Object.keys(a).forEach(o=>{a[o].indexOf(t)>-1&&(n=o)}),n},progressStyle(){const t=Math.floor(this.progress*100),s=`translateX(${Math.floor(t-100)}%)`;return{progress:`${t}%`,webkitTransform:s,mozTransform:s,msTransform:s,transform:s}},formatedAverageSpeed(){return`${Uploader.utils.formatSize(this.averageSpeed)} / s`},status(){const{isUploading:t,isComplete:s,isError:n,paused:r}=this,{md5Computing:a}=this.file;return a?"md5":s?"success":n?"error":t?"uploading":r?"paused":"waiting"},statusText(){const t=this.status,s=this.file.uploader.fileStatusText;let n=t;return typeof s=="function"?n=s(t,this.response):n=s[t],n||""},formatedTimeRemaining(){const t=this.timeRemaining,s=this.file;if(t===Number.POSITIVE_INFINITY||t===0)return"";let n=secondsToStr(t);const r=s.uploader.opts.parseTimeRemaining;return r&&(n=r(t,n)),n}},watch:{status(t,s){s&&t==="uploading"&&s!=="uploading"?this.tid=setTimeout(()=>{this.progressingClass="uploader-file-progressing"},200):(clearTimeout(this.tid),this.progressingClass="")}},mounted(){const t=["paused","error","averageSpeed","currentSpeed"],s=["isComplete","isUploading",{key:"size",fn:"getSize"},{key:"formatedSize",fn:"getFormatSize"},{key:"uploadedSize",fn:"sizeUploaded"},"progress","timeRemaining",{key:"type",fn:"getType"},{key:"extension",fn:"getExtension"}];t.forEach(a=>{this[a]=this.file[a]}),s.forEach(a=>{typeof a=="string"?this[a]=this.file[a]():this[a.key]=this.file[a.fn]()});const n=this._handlers={},r=a=>(n[a]=(...o)=>{this.fileEventsHandler(a,o)},n[a]);events.forEach(a=>{this.file.uploader.on(a,r(a))})},destroyed(){events.forEach(t=>{this.file.uploader.off(t,this._handlers[t])}),this._handlers=null},methods:{_actionCheck(){this.paused=this.file.paused,this.error=this.file.error,this.isUploading=this.file.isUploading()},pause(){this.file.pause(),this._actionCheck(),this._fileProgress()},resume(){this.file.resume(),this._actionCheck()},remove(){this.$set(this.file,"canceled",!0),this.file.cancel()},retry(){this.file.retry(),this._actionCheck()},processResponse(t){let s=t;try{s=JSON.parse(t)}catch(n){}this.response=s},fileEventsHandler(t,s){const n=s[0],r=s[1],a=this.list?n:r;if(this.file===a){if(this.list&&t==="fileSuccess"){this.processResponse(s[2]);return}this[`_${t}`].apply(this,s)}},_fileProgress(){this.progress=this.file.progress(),this.averageSpeed=this.file.averageSpeed,this.currentSpeed=this.file.currentSpeed,this.timeRemaining=this.file.timeRemaining(),this.uploadedSize=this.file.sizeUploaded(),this._actionCheck()},_fileSuccess(t,s,n){t&&this.processResponse(n),this._fileProgress(),this.error=!1,this.isComplete=!0,this.isUploading=!1},_fileComplete(){this._fileSuccess()},_fileError(t,s,n){this._fileProgress(),this.processResponse(n),this.error=!0,this.isComplete=!1,this.isUploading=!1}}},__cssModules$3c={};var __component__$3c=normalizeComponent(__vue2_script$3c,render$2_,staticRenderFns$2_,!1,__vue2_injectStyles$3c,null,null,null);function __vue2_injectStyles$3c(t){for(let s in __cssModules$3c)this[s]=__cssModules$3c[s]}const ChunkFileUploaderFile=function(){return __component__$3c.exports}();var render$2Z=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"uploader-files"},[t._t("default",function(){return[n("ul",t._l(t.files,function(r){return n("li",{key:r.id},[n("ChunkFileUploaderFile",{attrs:{file:r}})],1)}),0)]},{files:t.files})],2)},staticRenderFns$2Z=[];const ChunkFileUploaderFiles_vue_vue_type_style_index_0_lang="",__vue2_script$3b={name:"ChunkFileUploaderFiles",mixins:[uploaderMixin],computed:{files(){return this.uploader.files}}},__cssModules$3b={};var __component__$3b=normalizeComponent(__vue2_script$3b,render$2Z,staticRenderFns$2Z,!1,__vue2_injectStyles$3b,null,null,null);function __vue2_injectStyles$3b(t){for(let s in __cssModules$3b)this[s]=__cssModules$3b[s]}const ChunkFileUploaderFiles=function(){return __component__$3b.exports}();var render$2Y=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"uploader-list"},[t._t("default",function(){return[n("ul",t._l(t.fileList,function(r){return n("li",{key:r.id},[n("ChunkFileUploaderFile",{attrs:{file:r,list:!0}})],1)}),0)]},{fileList:t.fileList})],2)},staticRenderFns$2Y=[];const ChunkFileUploaderList_vue_vue_type_style_index_0_lang="",__vue2_script$3a={name:"ChunkFileUploaderList",mixins:[uploaderMixin],computed:{fileList(){return this.uploader.fileList}}},__cssModules$3a={};var __component__$3a=normalizeComponent(__vue2_script$3a,render$2Y,staticRenderFns$2Y,!1,__vue2_injectStyles$3a,null,null,null);function __vue2_injectStyles$3a(t){for(let s in __cssModules$3a)this[s]=__cssModules$3a[s]}const ChunkFileUploaderList=function(){return __component__$3a.exports}();var render$2X=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{directives:[{name:"show",rawName:"v-show",value:!t.support,expression:"!support"}],staticClass:"uploader-unsupport"},[t._t("default",function(){return[t._m(0)]})],2)},staticRenderFns$2X=[function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("p",[t._v(" Your browser, unfortunately, is not supported by Uploader.js. The library requires support for "),n("a",{attrs:{href:"http://www.w3.org/TR/FileAPI/"}},[t._v("the HTML5 File API")]),t._v(" along with "),n("a",{attrs:{href:"http://www.w3.org/TR/FileAPI/#normalization-of-params"}},[t._v("file slicing")]),t._v(". ")])}];const ChunkFileUploaderUnSupport_vue_vue_type_style_index_0_lang="",__vue2_script$39={name:"ChunkFileUploaderUnSupport",mixins:[uploaderMixin,supportMixin]},__cssModules$39={};var __component__$39=normalizeComponent(__vue2_script$39,render$2X,staticRenderFns$2X,!1,__vue2_injectStyles$39,null,null,null);function __vue2_injectStyles$39(t){for(let s in __cssModules$39)this[s]=__cssModules$39[s]}const ChunkFileUploaderUnSupport=function(){return __component__$39.exports}();var jsonlint=function(){var t={},s=function(){var n={trace:function(){},yy:{},symbols_:{error:2,JSONString:3,STRING:4,JSONNumber:5,NUMBER:6,JSONNullLiteral:7,NULL:8,JSONBooleanLiteral:9,TRUE:10,FALSE:11,JSONText:12,JSONValue:13,EOF:14,JSONObject:15,JSONArray:16,"{":17,"}":18,JSONMemberList:19,JSONMember:20,":":21,",":22,"[":23,"]":24,JSONElementList:25,$accept:0,$end:1},terminals_:{2:"error",4:"STRING",6:"NUMBER",8:"NULL",10:"TRUE",11:"FALSE",14:"EOF",17:"{",18:"}",21:":",22:",",23:"[",24:"]"},productions_:[0,[3,1],[5,1],[7,1],[9,1],[9,1],[12,2],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[15,2],[15,3],[20,3],[19,1],[19,3],[16,2],[16,3],[25,1],[25,3]],performAction:function(a,o,l,c,u,d,p){var h=d.length-1;switch(u){case 1:this.$=a.replace(/\\(\\|")/g,"$1").replace(/\\n/g,`
|
|
2
|
-
`).replace(/\\r/g,"\r").replace(/\\t/g," ").replace(/\\v/g,"\v").replace(/\\f/g,"\f").replace(/\\b/g,"\b");break;case 2:this.$=Number(a);break;case 3:this.$=null;break;case 4:this.$=!0;break;case 5:this.$=!1;break;case 6:return this.$=d[h-1];case 13:this.$={};break;case 14:this.$=d[h-1];break;case 15:this.$=[d[h-2],d[h]];break;case 16:this.$={},this.$[d[h][0]]=d[h][1];break;case 17:this.$=d[h-2],d[h-2][d[h][0]]=d[h][1];break;case 18:this.$=[];break;case 19:this.$=d[h-1];break;case 20:this.$=[d[h]];break;case 21:this.$=d[h-2],d[h-2].push(d[h])}},table:[{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],12:1,13:2,15:7,16:8,17:[1,14],23:[1,15]},{1:[3]},{14:[1,16]},{14:[2,7],18:[2,7],22:[2,7],24:[2,7]},{14:[2,8],18:[2,8],22:[2,8],24:[2,8]},{14:[2,9],18:[2,9],22:[2,9],24:[2,9]},{14:[2,10],18:[2,10],22:[2,10],24:[2,10]},{14:[2,11],18:[2,11],22:[2,11],24:[2,11]},{14:[2,12],18:[2,12],22:[2,12],24:[2,12]},{14:[2,3],18:[2,3],22:[2,3],24:[2,3]},{14:[2,4],18:[2,4],22:[2,4],24:[2,4]},{14:[2,5],18:[2,5],22:[2,5],24:[2,5]},{14:[2,1],18:[2,1],21:[2,1],22:[2,1],24:[2,1]},{14:[2,2],18:[2,2],22:[2,2],24:[2,2]},{3:20,4:[1,12],18:[1,17],19:18,20:19},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:23,15:7,16:8,17:[1,14],23:[1,15],24:[1,21],25:22},{1:[2,6]},{14:[2,13],18:[2,13],22:[2,13],24:[2,13]},{18:[1,24],22:[1,25]},{18:[2,16],22:[2,16]},{21:[1,26]},{14:[2,18],18:[2,18],22:[2,18],24:[2,18]},{22:[1,28],24:[1,27]},{22:[2,20],24:[2,20]},{14:[2,14],18:[2,14],22:[2,14],24:[2,14]},{3:20,4:[1,12],20:29},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:30,15:7,16:8,17:[1,14],23:[1,15]},{14:[2,19],18:[2,19],22:[2,19],24:[2,19]},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:31,15:7,16:8,17:[1,14],23:[1,15]},{18:[2,17],22:[2,17]},{18:[2,15],22:[2,15]},{22:[2,21],24:[2,21]}],defaultActions:{16:[2,6]},parseError:function(a,o){throw new Error(a)},parse:function(a){function o(
|
|
1
|
+
"use strict";var N=Object.defineProperty,K=Object.defineProperties;var V=Object.getOwnPropertyDescriptors;var D=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable;var L=(t,s,n)=>s in t?N(t,s,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[s]=n,f=(t,s)=>{for(var n in s||(s={}))j.call(s,n)&&L(t,n,s[n]);if(D)for(var n of D(s))z.call(s,n)&&L(t,n,s[n]);return t},S=(t,s)=>K(t,V(s));var R=(t,s)=>{var n={};for(var r in t)j.call(t,r)&&s.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&D)for(var r of D(t))s.indexOf(r)<0&&z.call(t,r)&&(n[r]=t[r]);return n};var v=(t,s,n)=>new Promise((r,a)=>{var o=u=>{try{c(n.next(u))}catch(d){a(d)}},l=u=>{try{c(n.throw(u))}catch(d){a(d)}},c=u=>u.done?r(u.value):Promise.resolve(u.value).then(o,l);c((n=n.apply(t,s)).next())});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const core=require("@web-utils/core"),dayjs=require("@web-utils/integrations/dayjs"),Uploader=require("simple-uploader.js"),CodeMirror=require("codemirror");require("codemirror/lib/codemirror.css");require("codemirror/theme/idea.css");require("codemirror/mode/javascript/javascript");require("codemirror/addon/edit/matchbrackets");require("codemirror/addon/lint/javascript-lint");require("codemirror/addon/lint/json-lint");require("codemirror/addon/lint/lint");require("codemirror/addon/lint/lint.css");require("codemirror/addon/fold/foldcode");require("codemirror/addon/fold/foldgutter");require("codemirror/addon/fold/foldgutter.css");require("codemirror/addon/fold/brace-fold");require("codemirror/addon/fold/comment-fold");const Color=require("element-ui/packages/color-picker/src/color"),Clickoutside=require("element-ui/src/utils/clickoutside"),Loading=require("element-ui/lib/loading"),MessageBox=require("element-ui/lib/message-box"),countup_js=require("countup.js"),OverlayScrollbars=require("overlayscrollbars");require("overlayscrollbars/css/OverlayScrollbars.css");const dialog=require("@web-utils/vue/mixin/dialog"),Vue=require("vue"),echarts=require("echarts/core"),lodash=require("@web-utils/integrations/lodash"),resizeDetector=require("resize-detector"),resize=require("@web-utils/integrations/resize"),Emitter=require("element-ui/src/mixins/emitter"),util$1=require("element-ui/src/utils/util"),Dialog=require("element-ui/lib/dialog"),dialogDrag=require("@web-utils/vue/directives/dialog-drag"),BpmnViewer=require("bpmn-js/lib/NavigatedViewer"),ZoomScroll=require("diagram-js/lib/navigation/zoomscroll/ZoomScroll"),Col=require("element-ui/lib/col"),FormItem$1=require("element-ui/lib/form-item"),Cascader=require("element-ui/lib/cascader"),CheckboxGroup=require("element-ui/lib/checkbox-group"),Input=require("element-ui/lib/input"),component=require("@web-utils/component"),TimePicker=require("element-ui/lib/time-picker"),RadioGroup=require("element-ui/lib/radio-group"),Select=require("element-ui/lib/select"),Switch=require("element-ui/lib/switch"),ElScrollbar=require("element-ui/lib/scrollbar"),Draggable=require("vuedraggable");require("@wangeditor/editor/dist/css/style.css");const editor=require("@wangeditor/editor"),hljs=require("highlight.js/lib/core");require("highlight.js/styles/atom-one-dark-reasonable.css");const vueCropper=require("vue-cropper"),Viewer=require("viewerjs");require("viewerjs/dist/viewer.css");const Focus=require("element-ui/src/mixins/focus"),RepeatClick=require("element-ui/src/directives/repeat-click"),monaco=require("monaco-editor/esm/vs/editor/editor.api");require("monaco-editor/esm/vs/basic-languages/javascript/javascript.contribution");const PhotoSwipe$1=require("photoswipe");require("photoswipe/dist/photoswipe.css");const BpmnModeler=require("bpmn-js/lib/Modeler"),TokenSimulationModule=require("bpmn-js-token-simulation"),minDash=require("min-dash"),X2JS=require("x2js"),xml$3=require("highlight.js/lib/languages/xml"),json=require("highlight.js/lib/languages/json"),ClickOutside=require("element-ui/lib/utils/clickoutside"),lodash$1=require("lodash");require("tinymce/skins/lightgray/skin.min.css");const tinymce=require("tinymce"),Editor=require("@tinymce/tinymce-vue");require("tinymce/themes/modern/theme");require("tinymce/plugins/contextmenu");require("tinymce/plugins/wordcount");require("tinymce/plugins/paste");require("tinymce/plugins/image");require("tinymce/plugins/fullscreen");require("tinymce/plugins/preview");require("tinymce/plugins/imagetools");function _interopNamespaceDefault(t){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(s,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return s.default=t,Object.freeze(s)}const echarts__namespace=_interopNamespaceDefault(echarts),monaco__namespace=_interopNamespaceDefault(monaco);var render$3c=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"address-input-wrapper flex-row"},[n("div",{staticClass:"address-input-item-wrapper"},[n("ElCascader",{attrs:{options:t.options,disabled:t.inputDisabled,props:{label:"name",value:t.labelAsValue?"name":"id"}},model:{value:t.internalVal.address,callback:function(r){t.$set(t.internalVal,"address",r)},expression:"internalVal.address"}})],1),n("div",{staticClass:"address-input-item-wrapper flex-item"},[n("ElInput",{attrs:{placeholder:"请输入详细地址!",disabled:t.inputDisabled},model:{value:t.internalVal.detailAddress,callback:function(r){t.$set(t.internalVal,"detailAddress",r)},expression:"internalVal.detailAddress"}})],1)])},staticRenderFns$3c=[];const AddressInput_vue_vue_type_style_index_0_lang="";function normalizeComponent(t,s,n,r,a,o,l,c){var u=typeof t=="function"?t.options:t;s&&(u.render=s,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o);var d;if(l?(d=function(m){m=m||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!m&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(m=__VUE_SSR_CONTEXT__),a&&a.call(this,m),m&&m._registeredComponents&&m._registeredComponents.add(l)},u._ssrRegister=d):a&&(d=c?function(){a.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:a),d)if(u.functional){u._injectStyles=d;var p=u.render;u.render=function(_,x){return d.call(x),p(_,x)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,d):[d]}return{exports:t,options:u}}const __vue2_script$3t={name:"AddressInput",inject:{elForm:{default:""},elFormItem:{default:""}},props:{options:{type:Array,default(){return[]}},value:{type:Object,default:()=>({})},labelAsValue:Boolean,disabled:Boolean},data(){return{internalVal:{address:[],detailAddress:""}}},computed:{inputDisabled(){return this.disabled||(this.elForm||{}).disabled}},watch:{value:{immediate:!0,deep:!0,handler(t){t&&(this.internalVal.address=t.address,this.internalVal.detailAddress=t.detailAddress)}},internalVal:{immediate:!0,deep:!0,handler(t){!t.address&&!t.detailAddress?this.$emit("input",void 0):this.$emit("input",t)}}}},__cssModules$3t={};var __component__$3t=normalizeComponent(__vue2_script$3t,render$3c,staticRenderFns$3c,!1,__vue2_injectStyles$3t,null,null,null);function __vue2_injectStyles$3t(t){for(let s in __cssModules$3t)this[s]=__cssModules$3t[s]}const AddressInput=function(){return __component__$3t.exports}();var render$3b=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",[n("div",{ref:"point",class:{affix:t.affix},style:t.styles},[t._t("default")],2),n("div",{directives:[{name:"show",rawName:"v-show",value:t.slot,expression:"slot"}],style:t.slotStyle})])},staticRenderFns$3b=[];const Affix_vue_vue_type_style_index_0_lang="",__vue2_script$3s={name:"Affix",props:{target:String,offsetTop:{type:Number,default:0},offsetBottom:{type:Number}},data(){return{container:null,affix:!1,styles:{},slot:!1,slotStyle:{}}},computed:{offsetType(){let t="top";return this.offsetBottom>=0&&(t="bottom"),t}},mounted(){this.target?this.container=document.querySelector(this.target):this.container=document,this.container.addEventListener("scroll",this.handleScroll,!1),this.container.addEventListener("resize",this.handleScroll,!1)},beforeDestroy(){this.container.removeEventListener("scroll",this.handleScroll,!1),this.container.removeEventListener("resize",this.handleScroll,!1)},methods:{getScroll(t,s){const n=s?"pageYOffset":"pageXOffset",r=s?"scrollTop":"scrollLeft";let a=t[n];return typeof a!="number"&&(a=document.documentElement[r]),a},getOffset(t){const s=t.getBoundingClientRect(),n=this.getScroll(this.container,!0),r=this.getScroll(this.container),a=document.body,o=a.clientTop||0,l=a.clientLeft||0;return{top:s.top+n-o,left:s.left+r-l}},handleScroll(){const t=this.affix,s=this.getScroll(this.container,!0),n=this.getOffset(this.$el),r=this.container.innerHeight,a=this.$el.getElementsByTagName("div")[0].offsetHeight;n.top-this.offsetTop<s&&this.offsetType==="top"&&!t?(this.affix=!0,this.slotStyle={width:`${this.$refs.point.clientWidth}px`,height:`${this.$refs.point.clientHeight}px`},this.slot=!0,this.styles={top:`${this.offsetTop}px`,left:`${n.left}px`,width:`${this.$el.offsetWidth}px`},this.$emit("on-change",!0)):n.top-this.offsetTop>s&&this.offsetType==="top"&&t&&(this.slot=!1,this.slotStyle={},this.affix=!1,this.styles=null,this.$emit("on-change",!1)),n.top+this.offsetBottom+a>s+r&&this.offsetType==="bottom"&&!t?(this.affix=!0,this.styles={bottom:`${this.offsetBottom}px`,left:`${n.left}px`,width:`${this.$el.offsetWidth}px`},this.$emit("on-change",!0)):n.top+this.offsetBottom+a<s+r&&this.offsetType==="bottom"&&t&&(this.affix=!1,this.styles=null,this.$emit("on-change",!1))}}},__cssModules$3s={};var __component__$3s=normalizeComponent(__vue2_script$3s,render$3b,staticRenderFns$3b,!1,__vue2_injectStyles$3s,null,null,null);function __vue2_injectStyles$3s(t){for(let s in __cssModules$3s)this[s]=__cssModules$3s[s]}const Affix=function(){return __component__$3s.exports}();var render$3a=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticStyle:{"padding-top":"4px"}},t._l(t.menu,function(r){return n("div",{key:r.key,staticClass:"aside-menu-item hover-active",class:{active:t.$route.path===r.path},on:{click:function(a){return t.$router.push(r.path)}}},[t._t("default",function(){return[n("i",{staticClass:"egd-icon-common",class:r.icon}),t._v(" "+t._s(r.label)+" ")]},{item:r})],2)}),0)},staticRenderFns$3a=[];const AsideMenu_vue_vue_type_style_index_0_lang="",__vue2_script$3r={name:"AsideMenu",props:{menu:{type:Array,default:()=>[]}}},__cssModules$3r={};var __component__$3r=normalizeComponent(__vue2_script$3r,render$3a,staticRenderFns$3a,!1,__vue2_injectStyles$3r,null,null,null);function __vue2_injectStyles$3r(t){for(let s in __cssModules$3r)this[s]=__cssModules$3r[s]}const AsideMenu=function(){return __component__$3r.exports}();var render$39=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("span",{class:["avue-avatar",t.sizeCls,"avue-avatar__icon"],style:t.sizeStyle},[t.src?n("img",{staticClass:"avue-avatar__images",attrs:{src:t.src,alt:""}}):t.icon?n("i",{class:t.icon}):n("span",{ref:"avatarChildren",staticClass:"avue-avatar__string",style:t.sizeChildrenStyle},[t._t("default")],2)])},staticRenderFns$39=[];const Avatar_vue_vue_type_style_index_0_lang="",prefixCls$1="avue-avatar",__vue2_script$3q={name:"Avatar",props:{src:String,shape:{validator:t=>["circle","square"].includes(t),type:String,default:"circle"},size:{validator:t=>typeof t=="number"||["small","large","default"].includes(t),default:"default"},icon:String},data(){return{scale:1}},computed:{sizeChildrenStyle(){let t={};const s=`scale(${this.scale}) translateX(-50%)`;return t={msTransform:s,WebkitTransform:s,transform:s},typeof size=="number"&&(t.lineHeight=`${this.size}px`),t},sizeCls(){return{[`${prefixCls$1}--${this.shape}`]:this.shape,[`${prefixCls$1}--lg`]:this.size==="large",[`${prefixCls$1}--sm`]:this.size==="small"}},sizeStyle(){return typeof this.size=="number"?{width:`${this.size}px`,height:`${this.size}px`,lineHeight:`${this.size}px`,fontSize:this.icon?`${this.size/2}px`:"18px"}:{}}},updated(){this.$nextTick(()=>{this.setScale()})},mounted(){this.$nextTick(()=>{this.setScale()})},methods:{setScale(){const t=this.$refs.avatarChildren;if(t){const s=t.offsetWidth,n=this.$el.getBoundingClientRect().width;n-8<s?this.scale=(n-8)/s:this.scale=1}}}},__cssModules$3q={};var __component__$3q=normalizeComponent(__vue2_script$3q,render$39,staticRenderFns$39,!1,__vue2_injectStyles$3q,null,null,null);function __vue2_injectStyles$3q(t){for(let s in __cssModules$3q)this[s]=__cssModules$3q[s]}const Avatar=function(){return __component__$3q.exports}(),props$3={props:{type:{type:String,default:"primary"},size:String,icon:{type:String,default:""},nativeType:{type:String,default:"button"},loading:Boolean,disabled:Boolean,plain:Boolean,autofocus:Boolean,round:Boolean}},__vue2_script$3p={name:"AwesomeButton",mixins:[props$3],props:{text:{type:String,default:""}},data(){return{isLoading:!1}},methods:{onClick(t){return v(this,null,function*(){this.isLoading=!0;const{click:s}=this.$listeners;if(core.isFunction(s))try{yield s(t)}catch(n){core.error.call(this,n)}this.isLoading=!1})}},render(t){var n,r;const s=(r=(n=this.$scopedSlots).default)==null?void 0:r.call(n);return t("ElButton",{on:{click:this.onClick},props:S(f({},this.$props),{disabled:this.isLoading})},s&&(s[0].tag||s[0].text)?s:this.text)}};let __vue2_render$g,__vue2_staticRenderFns$g;const __cssModules$3p={};var __component__$3p=normalizeComponent(__vue2_script$3p,__vue2_render$g,__vue2_staticRenderFns$g,!1,__vue2_injectStyles$3p,null,null,null);function __vue2_injectStyles$3p(t){for(let s in __cssModules$3p)this[s]=__cssModules$3p[s]}const AwesomeButton=function(){return __component__$3p.exports}();var render$38=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("ul",{staticClass:"capsule-tab"},t._l(t.tabs,function(r){return n("li",{key:r.value,class:["tab-item",{active:t.value===r.value,single:t.tabs.length===1}],on:{click:function(a){return t.$emit("input",r.value)}}},[t._v(" "+t._s(r.label)+" ")])}),0)},staticRenderFns$38=[];const CapsuleTab_vue_vue_type_style_index_0_lang="",__vue2_script$3o={name:"CapsuleTab",props:{tabs:{type:Array,default:()=>[]},value:{type:String}}},__cssModules$3o={};var __component__$3o=normalizeComponent(__vue2_script$3o,render$38,staticRenderFns$38,!1,__vue2_injectStyles$3o,null,null,null);function __vue2_injectStyles$3o(t){for(let s in __cssModules$3o)this[s]=__cssModules$3o[s]}const CapsuleTab=function(){return __component__$3o.exports}();var render$37=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-card"},[n("ElRow",{attrs:{span:24,gutter:t.gutter}},[t.option.addBtn?n("ElCol",{attrs:{span:t.span}},[n("div",{staticClass:"avue-card__item avue-card__item--add",on:{click:function(r){return t.rowAdd()}}},[n("i",{staticClass:"el-icon-plus"}),n("span",[t._v("添加")])])]):t._e(),t._l(t.data,function(r,a){return n("ElCol",{key:a,attrs:{span:t.span}},[n("div",{staticClass:"avue-card__item",on:{click:function(o){return t.rowClick(r,a)}}},[n("div",{staticClass:"avue-card__body"},[n("div",{staticClass:"avue-card__avatar"},[n("img",{attrs:{src:r[t.imgKey],alt:""}})]),n("div",{staticClass:"avue-card__detail"},[n("div",{staticClass:"avue-card__title"},[t._v(" "+t._s(r[t.titleKey])+" ")]),n("div",{staticClass:"avue-card__info"},[t._v(" "+t._s(r[t.infoKey])+" ")])])]),n("div",{staticClass:"avue-card__menu"},[t._t("menu",null,{index:a,row:r})],2)])])})],2)],1)},staticRenderFns$37=[];const Card_vue_vue_type_style_index_0_lang="",propsDefault$3={img:"img",title:"title",info:"info"},__vue2_script$3n={name:"Card",props:{props:{type:Object,default:()=>propsDefault$3},option:{type:Object,default:()=>({})},data:{type:Array,default:()=>[]}},data(){return{propsDefault:propsDefault$3}},computed:{imgKey:function(){return this.option.props.img||this.propsDefault.img},titleKey:function(){return this.option.props.title||this.propsDefault.title},infoKey:function(){return this.option.props.info||this.propsDefault.info},span(){return this.option.span||8},gutter(){return this.option.gutter||20}},methods:{rowAdd(){this.$emit("row-add")},rowClick(t,s){this.$emit("row-click",t,s)}}},__cssModules$3n={};var __component__$3n=normalizeComponent(__vue2_script$3n,render$37,staticRenderFns$37,!1,__vue2_injectStyles$3n,null,null,null);function __vue2_injectStyles$3n(t){for(let s in __cssModules$3n)this[s]=__cssModules$3n[s]}const Card=function(){return __component__$3n.exports}();var render$36=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{class:["avue-carousel",{"avue-carousel--fullscreen":t.option.fullscreen}]},[n("ElCarousel",{attrs:{type:t.option.type,height:`${t.option.height}px`,autoplay:t.option.autoplay,interval:t.option.interval,"indicator-position":"outside"}},t._l(t.data,function(r,a){return n("ElCarouselItem",{key:a},[n("div",{staticClass:"avue-carousel__item"},[n("a",{attrs:{href:r.href?r.href:"javascript:void(0);",target:r.target}},[n("div",{staticClass:"avue-carousel__img",style:{backgroundImage:`url(${r.src})`}}),r.title?n("div",{staticClass:"avue-carousel__title"},[t._v(t._s(r.title))]):t._e()])])])}),1)],1)},staticRenderFns$36=[];const Carousel_vue_vue_type_style_index_0_lang="",__vue2_script$3m={name:"Carousel",props:{option:{type:Object,default:()=>{}}},computed:{data(){return this.option.data||[]}}},__cssModules$3m={};var __component__$3m=normalizeComponent(__vue2_script$3m,render$36,staticRenderFns$36,!1,__vue2_injectStyles$3m,null,null,null);function __vue2_injectStyles$3m(t){for(let s in __cssModules$3m)this[s]=__cssModules$3m[s]}const Carousel=function(){return __component__$3m.exports}(),KEY_COMPONENT_NAME="fy-",DIC_PROPS={rowKey:"id",rowParentKey:"parentId",nodeKey:"id",label:"label",value:"value",desc:"desc",groups:"groups",title:"title",leaf:"leaf",children:"children",hasChildren:"hasChildren",labelText:"名称",disabled:"disabled"},DIC_HTTP_PROPS={name:"name",url:"url",fileName:"file",res:""},DATE_LIST=["dates","date","datetime","datetimerange","daterange","time","timerange","week","month","monthrange","year"],INPUT_LIST=["tree","number","icon","color","table","map"],ARRAY_LIST=["img","array","url"],MULTIPLE_LIST=["cascader","tree","select"],RANGE_LIST=["slider"],ARRAY_VALUE_LIST=ARRAY_LIST.concat(["upload","dynamic","map","checkbox","cascader","dynamic","timerange","monthrange","daterange","datetimerange","dates"]),SELECT_LIST=DATE_LIST.concat(["select","checkbox","radio","cascader","tree","color","icon","table","map"]),DIC_SHOW_SPLIT=" | ",DIC_SPLIT=",",typeList={img:/\.(gif|jpg|jpeg|png|webp|svg|GIF|JPG|JPEG|PNG|WEBP|SVG)/,video:/\.(swf|avi|flv|mpg|rm|mov|wav|asf|3gp|mkv|rmvb|ogg|mp4)/,audio:/\.(mp3|wav|MP3|WAV)/},isMediaType=(t,s)=>{if(!core.isBlank(t))return typeList.audio.test(t)||s==="audio"?"audio":typeList.video.test(t)||s==="video"?"video":typeList.img.test(t)||s==="img"?"img":!1};function getFixed(t=0,s=2){return Number(t.toFixed(s))}function getAsVal(t,s=""){let n=deepClone(t);return core.isBlank(s)||s.split(".").forEach(r=>{n=core.isBlank(n[r])?"":n[r]}),n}function setAsVal(obj,bind="",value){let result;const type=core.getObjType(value);return core.isBlank(value)?type==="array"?result=`obj.${bind}=[]`:type==="object"?result=`obj.${bind}={}`:["number","boolean"].includes(type)?result=`obj.${bind}=undefined`:result=`obj.${bind}=''`:type==="string"?result=`obj.${bind}='${value}'`:result=`obj.${bind}=${value}`,eval(result),obj}function downFile(t,s){typeof t=="object"&&t instanceof Blob&&(t=URL.createObjectURL(t));const n=document.createElement("a");n.href=t,n.download=s||"";let r;window.MouseEvent?r=new MouseEvent("click"):(r=document.createEvent("MouseEvents"),r.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null)),n.dispatchEvent(r)}function strCorNum(t){return t.forEach((s,n)=>{t[n]=Number(s)}),t}function extend(...t){let s=t[0]||{},n=!1;const r=Array.prototype.slice.call(t);let a=1,o,l,c,u,d=!1;for(typeof s=="boolean"&&(n=s,a++,s=t[1]);a<r.length;a++)if((o=r[a])!=null)for(c in o)u=o[c],l=s[c],n&&(toString.call(u)==="[object Object]"||(d=toString.call(u)==="[object Array]"))?(d?l=toString.call(l)==="[object Array]"?l:[]:l=toString.call(l)==="[object Object]"?l:{},s[c]=extend(n,l,u)):u!==void 0&&u!==l&&(s[c]=u);return s}function createObj(t,s){const n=s.split("."),r=n.splice(0,1)[0],a={};if(a[r]={},n.length>=2){const o="{",l="}";let c="";n.forEach(u=>{c=`${c}${o}"${u}":`}),c=`${c}""`;for(let u=0;u<n.length;u++)c=`${c}${l}`;c=JSON.parse(c),a[r]=c}return t=extend(!0,t,a),t}function dataURLtoFile(t,s){const n=t.split(","),r=n[0].match(/:(.*?);/)[1],a=atob(n[1]);let o=a.length;const l=new Uint8Array(o);for(;o--;)l[o]=a.charCodeAt(o);return new File([l],s,{type:r})}function findObject(t,s,n="prop"){let r=-1;const a=(()=>{let o;return t.forEach(l=>{l.column?o="group":l.children&&(o="tree")}),o})();return a==="group"?t.forEach(o=>{const l=findArray(o.column,s,n,!0);l!==-1&&(r=l)}):a==="tree"?r=findLabelNode(t,s,{value:n},!0):r=findArray(t,s,n,!0),r}function randomId(){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",s=t.length;let n="";for(let r=0;r<16;r++)n+=t.charAt(Math.floor(Math.random()*s));return n}const deepClone=t=>{const s=core.getObjType(t);let n;if(s==="array")n=[];else if(s==="object")n={};else return t;if(s==="array"){t=t;let r=0;const a=t.length;for(;r<a;r++)t[r]&&delete t[r].$parent,n.push(deepClone(t[r]))}else if(s==="object")for(const r in t){const a=t[r];a&&delete a.$parent,n[r]=deepClone(t[r])}return n},setPx=(t,s="")=>(t||(t=s),t?(t=`${t}`,t.indexOf("%")===-1&&t.indexOf("px")===-1&&(t=`${t}px`),t):""),detailDataType=(t,s)=>core.isBlank(t)?t:s==="number"?Number(t):s==="string"?`${t}`:t,detailDic=(t=[],s={},n)=>{const r=s.value||DIC_PROPS.value,a=s.children||DIC_PROPS.children;return t.forEach(o=>{o[r]=detailDataType(o[r],n),o[a]&&detailDic(o[a],s,n)}),t},findByValue=(t,s,n)=>{if(core.isBlank(t))return s;const r=s instanceof Array,a=r?s:[s];n=n||DIC_PROPS;const o=[];for(let l=0;l<a.length;l++)o.push(findLabelNode(t,a[l],n)||a[l]);return r?o.join(DIC_SHOW_SPLIT):o.join()},filterParams=(t,s=["","$"],n=!0)=>{const r=n?deepClone(t):t;for(const a in r)s.includes("")&&core.isBlank(r[a])&&delete r[a],s.includes("$")&&a.indexOf("$")!==-1&&delete r[a];return r},detailDicGroup=(t=[],s={})=>{let n=deepClone(t);const r=s[DIC_PROPS.groups]||DIC_PROPS.groups;return t.forEach(a=>{a[r]&&(n=n.concat(a[r]))}),n},findLabelNode=(t,s,n,r=null)=>{let a;r||(t=detailDicGroup(t,n));const o=l=>{const c=n.label||DIC_PROPS.label,u=n.value||DIC_PROPS.value,d=n.children||DIC_PROPS.children;for(let p=0;p<l.length;p++){const h=l[p],m=h[d]||[];h[u]===s?a=r?h:h[c]:o(m)}};return o(t),a},getDeepData=t=>(Array.isArray(t)?t:t.data)||[],getObjValue=(t,s="",n=null)=>{const r=s.split(".");let a=t;return r[0]===""&&n!=="object"?getDeepData(t):(r[0]!==""&&r.forEach(o=>{a=a[o]}),a)},findArray=(t,s,n,r)=>{n=n||DIC_PROPS.value;for(let a=0;a<t.length;a++)if(t[a][n]===s)return r?t[a]:a;return-1},getPasswordChar=(t="",s)=>{const n=t.toString().length;t="";for(let r=0;r<n;r++)t=t+s;return t},arraySort=(t=[],s,n)=>t.filter(r=>!core.isBlank(r[s])).sort((r,a)=>n(r,a)).concat(t.filter(r=>core.isBlank(r[s]))),clearVal=(t,s,n=[])=>t?(s.forEach(r=>{if(!n.includes(r)){if(r.includes("$"))delete t[r];else if(!core.isBlank(t[r])){const a=core.getObjType(t[r]);a==="array"?t[r]=[]:a==="object"?t[r]={}:["number","boolean"].includes(a)?t[r]=void 0:t[r]=""}}}),t):{},optVal=(t,s)=>typeof t=="boolean"?t:core.isBlank(t)?s:t;function uploadFun(t={},s){s=s||this;const n=["uploadPreview","uploadBefore","uploadAfter","uploadDelete","uploadError","uploadExceed"],r={};return t.type==="upload"?n.forEach(a=>{t[a]||(r[a]=s[a])}):n.forEach(a=>{r[a]=s[a]}),r}var render$35=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-chat",style:t.heightStyleName,on:{keyup:function(r){return!r.type.indexOf("key")&&t._k(r.keyCode,"enter",13,r.key,"Enter")?null:t.handleSend.apply(null,arguments)}}},[n("audio",{ref:"chatAudio"},[n("source",{attrs:{src:t.audio[0],type:"audio/ogg"}}),n("source",{attrs:{src:t.audio[1],type:"audio/mpeg"}}),n("source",{attrs:{src:t.audio[2],type:"audio/wav"}})]),n("div",{staticClass:"web__logo"},[n("img",{staticClass:"web__logo-img",attrs:{src:t.config.img,alt:""}}),n("div",{staticClass:"web__logo-info"},[n("p",{staticClass:"web__logo-name"},[t._v(" "+t._s(t.config.name)+" ")]),n("p",{staticClass:"web__logo-dept"},[t._v(" "+t._s(t.config.dept)+" ")])]),t._t("header")],2),n("div",{staticClass:"web__content"},[n("div",{style:t.widthStyleName},[n("div",{ref:"main",staticClass:"web__main"},t._l(t.list,function(r,a){return n("div",{key:a,staticClass:"web__main-item",class:{"web__main-item--mine":r.mine}},[n("div",{staticClass:"web__main-user"},[n("img",{attrs:{src:r.img}}),n("cite",[t._v(" "+t._s(r.name)+" "),n("i",[t._v(t._s(r.date))])])]),n("div",{staticClass:"web__main-text"},[n("div",{staticClass:"web__main-arrow"}),n("span",{ref:"content",refInFor:!0,domProps:{innerHTML:t._s(t.handleDetail(r.text.text))}}),r.text.list?t._e():n("ul",{staticClass:" web__main-list"},t._l(r.text.list,function(o,l){return n("li",{key:l,on:{click:function(c){return t.handleItemMsg(o)}}},[t._v(" "+t._s(o.text)+" ")])}),0)])])}),0),n("div",{staticClass:"web__footer",style:t.widthStyleName},[n("div",{staticClass:"web__tools"},[t.tools.img?n("i",{staticClass:"el-icon-picture-outline",on:{click:function(r){return t.handleUpload("img")}}}):t._e(),t.tools.video?n("i",{staticClass:"el-icon-video-camera",on:{click:function(r){return t.handleUpload("video")}}}):t._e(),t.tools.file?n("i",{staticClass:"el-icon-folder-opened",on:{click:function(r){return t.handleUpload("file")}}}):t._e()]),n("div",{staticClass:"web__msg"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.msg,expression:"msg"}],staticClass:"web__msg-input",attrs:{rows:"2",placeholder:t.placeholder},domProps:{value:t.msg},on:{input:function(r){r.target.composing||(t.msg=r.target.value)}}}),n("div",{staticClass:"web__msg-menu"},[n("ElDropdown",{staticClass:"web__msg-submit",attrs:{"split-button":"",type:"primary",size:"mini",trigger:"click"},on:{click:t.handleSend}},[t._v(" 发送 "),n("ElDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("ElDropdownItem",[n("ElPopover",{attrs:{placement:"top",width:"160"},model:{value:t.visible,callback:function(r){t.visible=r},expression:"visible"}},[n("ElInput",{staticStyle:{"margin-bottom":"10px"},attrs:{size:"mini",rows:3,"show-word-limit":"",maxlength:"100",placeholder:"请输入快捷回复语",type:"textarea"},model:{value:t.keys,callback:function(r){t.keys=r},expression:"keys"}}),n("div",{staticStyle:{margin:"0","text-align":"right"}},[n("ElButton",{attrs:{size:"mini",type:"text"},on:{click:function(r){t.visible=!1}}},[t._v(" 取消 ")]),n("ElButton",{attrs:{type:"primary",size:"mini"},on:{click:t.addKey}},[t._v(" 确定 ")])],1),n("ElButton",{attrs:{slot:"reference",type:"text",icon:"el-icon-plus"},slot:"reference"})],1)],1),n("ElScrollbar",{staticStyle:{height:"100px"}},t._l(t.keylist,function(r,a){return n("ElDropdownItem",{key:a,nativeOn:{click:function(o){return t.sendKey(r)}}},[n("ElTooltip",{attrs:{effect:"dark",content:r,placement:"top"}},[n("span",[t._v(" "+t._s(r.substr(0,10))+t._s(r.length>10?"...":""))])])],1)}),1)],1)],1)],1)])])]),t._t("default")],2),t.upload.box?n("div",[n("ElementDialog",{attrs:{title:t.upload.title,"body-padding":!1,visible:t.upload.box,width:"30%"},on:{"update:visible":function(r){return t.$set(t.upload,"box",r)}}},[n("ElForm",{ref:"form",attrs:{model:t.upload}},[n("ElFormItem",{attrs:{prop:"src",rules:[{required:!0,message:"地址不能为空"}]}},[n("ElInput",{staticStyle:{"margin-bottom":"10px"},attrs:{size:"mini",rows:4,"show-word-limit":"",maxlength:"100",placeholder:"请输入地址",type:"textarea"},model:{value:t.upload.src,callback:function(r){t.$set(t.upload,"src",r)},expression:"upload.src"}})],1)],1),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("ElButton",{attrs:{size:"small"},on:{click:function(r){t.upload.box=!1}}},[t._v("取 消")]),n("ElButton",{attrs:{type:"primary",size:"small"},on:{click:t.uploadSubmit}},[t._v("确 定")])],1)],1)],1):t._e(),t.show?n("div",[n("ElementDialog",{staticClass:"web__dialog",attrs:{visible:t.show,"body-padding":!1,title:"预览",width:"40%","before-close":t.handleClose},on:{"update:visible":function(r){t.show=r}}},[t.imgSrc?n("img",{staticStyle:{width:"100%","object-fit":"cover"},attrs:{src:t.imgSrc}}):t._e(),t.videoSrc?n("video",{staticStyle:{width:"100%","object-fit":"cover"},attrs:{src:t.videoSrc,controls:"controls"}}):t._e(),t.audioSrc?n("audio",{staticStyle:{width:"100%","object-fit":"cover"},attrs:{src:t.audioSrc,controls:"controls"}}):t._e()])],1):t._e()])},staticRenderFns$35=[];const Chat_vue_vue_type_style_index_0_lang="",__vue2_script$3l={name:"Chat",props:{beforeOpen:Function,tools:{type:Object,default:()=>({img:!0,video:!0,file:!0})},placeholder:{type:String,default:"请输入..."},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"520px"},value:{type:String},notice:{type:Boolean,default:!0},audio:{type:Array,default:()=>["https://www.helloweba.net/demo/notifysound/notify.ogg","https://www.helloweba.net/demo/notifysound/notify.mp3","https://www.helloweba.net/demo/notifysound/notify.wav"]},config:{type:Object,default:()=>({})},keylist:{type:Array,default:()=>[]},list:{type:Array,default:()=>[]}},data(){return{upload:{box:!1,src:"",type:"",title:""},visible:!1,imgSrc:"",videoSrc:"",audioSrc:"",keys:"",show:!1}},computed:{msg:{get(){return this.value},set(t){this.$emit("input",t),this.$emit("change",t)}},heightStyleName(){return{height:setPx(this.height)}},widthStyleName(){return{width:setPx(this.width)}},msgActive(){return this.msg.replace(/[\r\n]/g,"")}},methods:{uploadSubmit(){this.$refs.form.validate(t=>{t&&(this.upload.box=!1,this.$emit("submit",this.getDetail(this.upload)))})},handleUpload(t){this.upload.type=t,this.upload.src="",t==="img"?this.upload.title="图片上传":t==="video"?this.upload.title="视频上传":t==="file"&&(this.upload.title="文件上传"),this.upload.box=!0},handleClose(t){this.imgSrc=void 0,this.videoSrc=void 0,this.audioSrc=void 0,t()},addKey(){this.keys!==""&&(this.$emit("keyadd",this.keys),this.keys=""),this.visible=!1},sendKey(t){this.$emit("keysend",t)},getAudio(){this.$refs.chatAudio.play()},getNotification(t){const s=this,n=Notification||window.Notification;if(n){let a=function(){n.requestPermission(function(l){l==="granted"?o():console.log("用户无情残忍的拒绝了你!!!")})},o=function(){const l=new Notification(s.config.name,{body:t,icon:s.config.img});l.onshow=function(){s.getAudio(),setTimeout(()=>{l.close()},2500)},l.onclick=function(){l.close()}};const r=n.permission;r==="granted"?o():r==="denied"?console.log("用户拒绝了你!!!"):a()}},pushMsg(t={}){const s=t.mine===!0,n=t.text||{},a={date:t.date||dayjs.formatDate(Date.now(),"YYYY-MM-DD HH:mm:ss"),text:(()=>typeof n!="object"?{text:n}:n)(),mine:s,img:s?this.config.myImg:this.config.img,name:s?this.config.myName:this.config.name};this.list.push(a),setTimeout(()=>{this.setScroll()},50)},setScroll(t){this.$nextTick(()=>{this.$refs.main.scrollTop=t||this.$refs.main.scrollHeight})},handleSend(){this.msgActive&&this.$emit("submit")},handleItemMsg(t){this.$emit("submit",t.ask)},handleDetail(t=""){const s=t;return setTimeout(()=>{(this.$refs.content||[]).forEach(r=>{for(let a=0;a<r.children.length;a++){const o=r.children[a];o.getAttribute("data-flag")!=0&&(o.setAttribute("data-flag",0),o.onclick=()=>{this.handleEvent(o.dataset)},o.tagName==="IMG"?(o.className="web__msg--img",o.src=o.getAttribute("data-src")):o.tagName==="VIDEO"?(o.className="web__msg--video",o.src=o.getAttribute("data-src")):o.tagName==="AUDIO"?(o.className="web__msg--audio",o.controls="controls",o.src=o.getAttribute("data-src")):o.tagName==="FILE"?(o.className="web__msg--file",o.innerHTML=`<h2>File</h2><span>${o.getAttribute("data-name")}</span>`):o.tagName==="MAP"&&(o.className="web__msg--file web__msg--map",o.innerHTML=`<h2>Map</h2><span>${o.getAttribute("data-longitude")} , ${o.getAttribute("data-latitude")}<br />${o.getAttribute("data-address")}</span>`),this.setScroll())}})},0),s},getDetail(t={}){const{type:s,src:n,name:r,longitude:a,latitude:o,address:l}=t;if(s==="img")return`<img data-type="IMG" data-src="${n}" />`;if(s==="video")return`<video data-type="VIDEO" data-src="${n}"></video>`;if(s==="audio")return`<audio data-type="AUDIO" data-src="${n}"></audio>`;if(s==="file")return`<file data-type="FILE" data-name="${r}" data-src="${n}"></file>`;if(s==="map")return`<map data-type="MAP" data-src="${n}" data-address="${l} "data-latitude="${o}" data-longitude="${a}"></map>`},handleEvent(t){const s=()=>{t.type==="IMG"?(this.imgSrc=t.src,this.show=!0):t.type==="VIDEO"?(this.videoSrc=t.src,this.show=!0):t.type==="AUDIO"?(this.audioSrc=t.src,this.show=!0):t.type==="FILE"&&window.open(t.src)};typeof this.beforeOpen=="function"?this.beforeOpen(t,s):s()},rootSendMsg(t){this.pushMsg({text:t}),this.notice&&this.getNotification(t.text||t)}}},__cssModules$3l={};var __component__$3l=normalizeComponent(__vue2_script$3l,render$35,staticRenderFns$35,!1,__vue2_injectStyles$3l,null,null,null);function __vue2_injectStyles$3l(t){for(let s in __cssModules$3l)this[s]=__cssModules$3l[s]}const Chat=function(){return __component__$3l.exports}();function secondsToStr(t){const s=Math.floor(t/31536e3);if(s)return`${s} 年${l(s)}`;const n=Math.floor((t%=31536e3)/86400);if(n)return`${n} 天${l(n)}`;const r=Math.floor((t%=86400)/3600);if(r)return`${r} 时${l(r)}`;const a=Math.floor((t%=3600)/60);if(a)return`${a} 分${l(a)}`;const o=t%60;return`${o} 秒${l(o)}`;function l(c){return c>1,""}}function kebabCase(t){return t.replace(/[A-Z]/g,s=>`-${s.toLowerCase()}`)}var render$34=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"uploader"},[t._t("default",function(){return[n("ChunkFileUploaderUnSupport"),n("ChunkFileUploaderDrop",[n("p",[t._v("Drop files here to upload or")]),n("ChunkFileUploaderButton",[t._v("select files")]),n("ChunkFileUploaderButton",{attrs:{directory:!0}},[t._v(" select folder ")])],1),n("ChunkFileUploaderList")]},{files:t.files,fileList:t.fileList,started:t.started})],2)},staticRenderFns$34=[];const ChunkFileUploader_vue_vue_type_style_index_0_lang="",FILE_ADDED_EVENT="fileAdded",FILES_ADDED_EVENT="filesAdded",UPLOAD_START_EVENT="uploadStart",__vue2_script$3k={name:"ChunkFileUploader",provide(){return{uploader:this}},props:{options:{type:Object,default(){return{}}},autoStart:{type:Boolean,default:!0},fileStatusText:{type:[Object,Function],default(){return{success:"success",error:"error",uploading:"uploading",paused:"paused",waiting:"waiting"}}}},data(){return{started:!1,files:[],fileList:[]}},created(){this.options.initialPaused=!this.autoStart;const t=new Uploader(this.options);this.uploader=t,this.uploader.fileStatusText=this.fileStatusText,t.on("catchAll",this.allEvent),t.on(FILE_ADDED_EVENT,this.fileAdded),t.on(FILES_ADDED_EVENT,this.filesAdded),t.on("fileRemoved",this.fileRemoved),t.on("filesSubmitted",this.filesSubmitted)},destroyed(){const t=this.uploader;t.off("catchAll",this.allEvent),t.off(FILE_ADDED_EVENT,this.fileAdded),t.off(FILES_ADDED_EVENT,this.filesAdded),t.off("fileRemoved",this.fileRemoved),t.off("filesSubmitted",this.filesSubmitted),this.uploader=null},methods:{uploadStart(){this.started=!0},fileAdded(t){if(this.$emit(kebabCase(FILE_ADDED_EVENT),t),t.ignored)return!1},filesAdded(t,s){if(this.$emit(kebabCase(FILES_ADDED_EVENT),t,s),t.ignored||s.ignored)return!1},fileRemoved(t){this.$emit("file-removed",t),this.files=this.uploader.files,this.fileList=this.uploader.fileList},filesSubmitted(){this.files=this.uploader.files,this.fileList=this.uploader.fileList,this.autoStart&&this.uploader.upload()},allEvent(...t){const s=t[0],r={[FILE_ADDED_EVENT]:!0,[FILES_ADDED_EVENT]:!0,[UPLOAD_START_EVENT]:"uploadStart"}[s];if(r){if(r===!0)return;this[r].apply(this,t.slice(1))}t[0]=kebabCase(s),this.$emit.apply(this,t)}}},__cssModules$3k={};var __component__$3k=normalizeComponent(__vue2_script$3k,render$34,staticRenderFns$34,!1,__vue2_injectStyles$3k,null,null,null);function __vue2_injectStyles$3k(t){for(let s in __cssModules$3k)this[s]=__cssModules$3k[s]}const ChunkFileUploader=function(){return __component__$3k.exports}(),uploaderMixin={inject:["uploader"]},supportMixin={data(){return{support:!0}},mounted(){this.support=this.uploader.uploader.support}};var render$33=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("label",{directives:[{name:"show",rawName:"v-show",value:t.support,expression:"support"}],ref:"btn",staticClass:"uploader-btn"},[t._t("default")],2)},staticRenderFns$33=[];const ChunkFileUploaderButton_vue_vue_type_style_index_0_lang="",__vue2_script$3j={name:"ChunkFileUploaderButton",mixins:[uploaderMixin,supportMixin],props:{directory:{type:Boolean,default:!1},single:{type:Boolean,default:!1},attrs:{type:Object,default(){return{}}}},mounted(){this.$nextTick(()=>{this.uploader.uploader.assignBrowse(this.$refs.btn,this.directory,this.single,this.attrs)})}},__cssModules$3j={};var __component__$3j=normalizeComponent(__vue2_script$3j,render$33,staticRenderFns$33,!1,__vue2_injectStyles$3j,null,null,null);function __vue2_injectStyles$3j(t){for(let s in __cssModules$3j)this[s]=__cssModules$3j[s]}const ChunkFileUploaderButton=function(){return __component__$3j.exports}();var render$32=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.support,expression:"support"}],ref:"drop",staticClass:"uploader-drop",class:t.dropClass},[t._t("default")],2)},staticRenderFns$32=[];const ChunkFileUploaderDrop_vue_vue_type_style_index_0_lang="",__vue2_script$3i={name:"ChunkFileUploaderDrop",mixins:[uploaderMixin,supportMixin],data(){return{dropClass:""}},mounted(){return v(this,null,function*(){yield this.$nextTick();const t=this.$refs.drop,s=this.uploader.uploader;s.assignDrop(t),s.on("dragenter",this.onDragEnter),s.on("dragleave",this.onDragLeave),s.on("drop",this.onDrop)})},beforeDestroy(){const t=this.$refs.drop,s=this.uploader.uploader;s.off("dragenter",this.onDragEnter),s.off("dragleave",this.onDragLeave),s.off("drop",this.onDrop),s.unAssignDrop(t)},methods:{onDragEnter(){this.dropClass="uploader-dragover"},onDragLeave(){this.dropClass=""},onDrop(){this.dropClass="uploader-droped"}}},__cssModules$3i={};var __component__$3i=normalizeComponent(__vue2_script$3i,render$32,staticRenderFns$32,!1,__vue2_injectStyles$3i,null,null,null);function __vue2_injectStyles$3i(t){for(let s in __cssModules$3i)this[s]=__cssModules$3i[s]}const ChunkFileUploaderDrop=function(){return __component__$3i.exports}(),events=["fileProgress","fileSuccess","fileComplete","fileError"];var render$31=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"chunk-file-uploader-file",attrs:{status:t.status}},[t._t("default",function(){return[n("div",{staticClass:"chunk-file-uploader-file-info"},[n("div",{staticClass:"chunk-file-uploader-file-name",attrs:{title:t.file.name}},[n("i",{staticClass:"chunk-file-uploader-file-icon",attrs:{icon:t.fileCategory}}),t._v(t._s(t.file.name)+" ")]),n("div",{staticClass:"chunk-file-uploader-file-size"},[t._v(" "+t._s(t.formatedSize)+" ")]),n("div",{staticClass:"chunk-file-uploader-file-status"},[n("span",{directives:[{name:"show",rawName:"v-show",value:!["uploading","md5"].includes(t.status),expression:"!['uploading', 'md5'].includes(status)"}]},[t._v(t._s(t.statusText))]),n("span",{directives:[{name:"show",rawName:"v-show",value:t.status==="md5",expression:"status === 'md5'"}]},[t._v(t._s(t.file.md5Progress))]),n("span",{directives:[{name:"show",rawName:"v-show",value:t.status==="uploading",expression:"status === 'uploading'"}],staticStyle:{"padding-left":"4px"}},[n("span",[t._v(t._s(t.progressStyle.progress))]),t._v(" | "),n("em",[t._v(t._s(t.formatedAverageSpeed))]),t._v(" | "),n("i",[t._v(t._s(t.formatedTimeRemaining))])])]),n("div",{staticClass:"chunk-file-uploader-file-actions"},[n("span",{staticClass:"chunk-file-uploader-file-pause",on:{click:t.pause}}),n("span",{staticClass:"chunk-file-uploader-file-resume",on:{click:t.resume}},[t._v("️")]),n("span",{staticClass:"chunk-file-uploader-file-retry",on:{click:t.retry}}),n("span",{staticClass:"chunk-file-uploader-file-remove",on:{click:t.remove}})])])]},{file:t.file,list:t.list,status:t.status,paused:t.paused,error:t.error,response:t.response,averageSpeed:t.averageSpeed,formatedAverageSpeed:t.formatedAverageSpeed,currentSpeed:t.currentSpeed,isComplete:t.isComplete,isUploading:t.isUploading,size:t.size,formatedSize:t.formatedSize,uploadedSize:t.uploadedSize,progress:t.progress,progressStyle:t.progressStyle,progressingClass:t.progressingClass,timeRemaining:t.timeRemaining,formatedTimeRemaining:t.formatedTimeRemaining,type:t.type,extension:t.extension,fileCategory:t.fileCategory})],2)},staticRenderFns$31=[];const ChunkFileUploaderFile_vue_vue_type_style_index_0_lang="",__vue2_script$3h={name:"ChunkFileUploaderFile",props:{file:{type:Object,default(){return{}}},list:{type:Boolean,default:!1}},data(){return{response:null,paused:!1,error:!1,averageSpeed:0,currentSpeed:0,isComplete:!1,isUploading:!1,size:0,formatedSize:"",uploadedSize:0,progress:0,timeRemaining:0,type:"",extension:"",progressingClass:""}},computed:{fileCategory(){const t=this.extension;let n=this.file.isFolder?"folder":"unknown";const a=this.file.uploader.opts.categoryMap||{image:["gif","jpg","jpeg","png","bmp","webp"],video:["mp4","m3u8","rmvb","avi","swf","3gp","mkv","flv"],audio:["mp3","wav","wma","ogg","aac","flac"],document:["doc","txt","docx","pages","epub","pdf","numbers","csv","xls","xlsx","keynote","ppt","pptx"]};return Object.keys(a).forEach(o=>{a[o].indexOf(t)>-1&&(n=o)}),n},progressStyle(){const t=Math.floor(this.progress*100),s=`translateX(${Math.floor(t-100)}%)`;return{progress:`${t}%`,webkitTransform:s,mozTransform:s,msTransform:s,transform:s}},formatedAverageSpeed(){return`${Uploader.utils.formatSize(this.averageSpeed)} / s`},status(){const{isUploading:t,isComplete:s,isError:n,paused:r}=this,{md5Computing:a}=this.file;return a?"md5":s?"success":n?"error":t?"uploading":r?"paused":"waiting"},statusText(){const t=this.status,s=this.file.uploader.fileStatusText;let n=t;return typeof s=="function"?n=s(t,this.response):n=s[t],n||""},formatedTimeRemaining(){const t=this.timeRemaining,s=this.file;if(t===Number.POSITIVE_INFINITY||t===0)return"";let n=secondsToStr(t);const r=s.uploader.opts.parseTimeRemaining;return r&&(n=r(t,n)),n}},watch:{status(t,s){s&&t==="uploading"&&s!=="uploading"?this.tid=setTimeout(()=>{this.progressingClass="uploader-file-progressing"},200):(clearTimeout(this.tid),this.progressingClass="")}},mounted(){const t=["paused","error","averageSpeed","currentSpeed"],s=["isComplete","isUploading",{key:"size",fn:"getSize"},{key:"formatedSize",fn:"getFormatSize"},{key:"uploadedSize",fn:"sizeUploaded"},"progress","timeRemaining",{key:"type",fn:"getType"},{key:"extension",fn:"getExtension"}];t.forEach(a=>{this[a]=this.file[a]}),s.forEach(a=>{typeof a=="string"?this[a]=this.file[a]():this[a.key]=this.file[a.fn]()});const n=this._handlers={},r=a=>(n[a]=(...o)=>{this.fileEventsHandler(a,o)},n[a]);events.forEach(a=>{this.file.uploader.on(a,r(a))})},destroyed(){events.forEach(t=>{this.file.uploader.off(t,this._handlers[t])}),this._handlers=null},methods:{_actionCheck(){this.paused=this.file.paused,this.error=this.file.error,this.isUploading=this.file.isUploading()},pause(){this.file.pause(),this._actionCheck(),this._fileProgress()},resume(){this.file.resume(),this._actionCheck()},remove(){this.$set(this.file,"canceled",!0),this.file.cancel()},retry(){this.file.retry(),this._actionCheck()},processResponse(t){let s=t;try{s=JSON.parse(t)}catch(n){}this.response=s},fileEventsHandler(t,s){const n=s[0],r=s[1],a=this.list?n:r;if(this.file===a){if(this.list&&t==="fileSuccess"){this.processResponse(s[2]);return}this[`_${t}`].apply(this,s)}},_fileProgress(){this.progress=this.file.progress(),this.averageSpeed=this.file.averageSpeed,this.currentSpeed=this.file.currentSpeed,this.timeRemaining=this.file.timeRemaining(),this.uploadedSize=this.file.sizeUploaded(),this._actionCheck()},_fileSuccess(t,s,n){t&&this.processResponse(n),this._fileProgress(),this.error=!1,this.isComplete=!0,this.isUploading=!1},_fileComplete(){this._fileSuccess()},_fileError(t,s,n){this._fileProgress(),this.processResponse(n),this.error=!0,this.isComplete=!1,this.isUploading=!1}}},__cssModules$3h={};var __component__$3h=normalizeComponent(__vue2_script$3h,render$31,staticRenderFns$31,!1,__vue2_injectStyles$3h,null,null,null);function __vue2_injectStyles$3h(t){for(let s in __cssModules$3h)this[s]=__cssModules$3h[s]}const ChunkFileUploaderFile=function(){return __component__$3h.exports}();var render$30=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"uploader-files"},[t._t("default",function(){return[n("ul",t._l(t.files,function(r){return n("li",{key:r.id},[n("ChunkFileUploaderFile",{attrs:{file:r}})],1)}),0)]},{files:t.files})],2)},staticRenderFns$30=[];const ChunkFileUploaderFiles_vue_vue_type_style_index_0_lang="",__vue2_script$3g={name:"ChunkFileUploaderFiles",mixins:[uploaderMixin],computed:{files(){return this.uploader.files}}},__cssModules$3g={};var __component__$3g=normalizeComponent(__vue2_script$3g,render$30,staticRenderFns$30,!1,__vue2_injectStyles$3g,null,null,null);function __vue2_injectStyles$3g(t){for(let s in __cssModules$3g)this[s]=__cssModules$3g[s]}const ChunkFileUploaderFiles=function(){return __component__$3g.exports}();var render$2$=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"uploader-list"},[t._t("default",function(){return[n("ul",t._l(t.fileList,function(r){return n("li",{key:r.id},[n("ChunkFileUploaderFile",{attrs:{file:r,list:!0}})],1)}),0)]},{fileList:t.fileList})],2)},staticRenderFns$2$=[];const ChunkFileUploaderList_vue_vue_type_style_index_0_lang="",__vue2_script$3f={name:"ChunkFileUploaderList",mixins:[uploaderMixin],computed:{fileList(){return this.uploader.fileList}}},__cssModules$3f={};var __component__$3f=normalizeComponent(__vue2_script$3f,render$2$,staticRenderFns$2$,!1,__vue2_injectStyles$3f,null,null,null);function __vue2_injectStyles$3f(t){for(let s in __cssModules$3f)this[s]=__cssModules$3f[s]}const ChunkFileUploaderList=function(){return __component__$3f.exports}();var render$2_=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{directives:[{name:"show",rawName:"v-show",value:!t.support,expression:"!support"}],staticClass:"uploader-unsupport"},[t._t("default",function(){return[t._m(0)]})],2)},staticRenderFns$2_=[function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("p",[t._v(" Your browser, unfortunately, is not supported by Uploader.js. The library requires support for "),n("a",{attrs:{href:"http://www.w3.org/TR/FileAPI/"}},[t._v("the HTML5 File API")]),t._v(" along with "),n("a",{attrs:{href:"http://www.w3.org/TR/FileAPI/#normalization-of-params"}},[t._v("file slicing")]),t._v(". ")])}];const ChunkFileUploaderUnSupport_vue_vue_type_style_index_0_lang="",__vue2_script$3e={name:"ChunkFileUploaderUnSupport",mixins:[uploaderMixin,supportMixin]},__cssModules$3e={};var __component__$3e=normalizeComponent(__vue2_script$3e,render$2_,staticRenderFns$2_,!1,__vue2_injectStyles$3e,null,null,null);function __vue2_injectStyles$3e(t){for(let s in __cssModules$3e)this[s]=__cssModules$3e[s]}const ChunkFileUploaderUnSupport=function(){return __component__$3e.exports}();var jsonlint=function(){var t={},s=function(){var n={trace:function(){},yy:{},symbols_:{error:2,JSONString:3,STRING:4,JSONNumber:5,NUMBER:6,JSONNullLiteral:7,NULL:8,JSONBooleanLiteral:9,TRUE:10,FALSE:11,JSONText:12,JSONValue:13,EOF:14,JSONObject:15,JSONArray:16,"{":17,"}":18,JSONMemberList:19,JSONMember:20,":":21,",":22,"[":23,"]":24,JSONElementList:25,$accept:0,$end:1},terminals_:{2:"error",4:"STRING",6:"NUMBER",8:"NULL",10:"TRUE",11:"FALSE",14:"EOF",17:"{",18:"}",21:":",22:",",23:"[",24:"]"},productions_:[0,[3,1],[5,1],[7,1],[9,1],[9,1],[12,2],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[15,2],[15,3],[20,3],[19,1],[19,3],[16,2],[16,3],[25,1],[25,3]],performAction:function(a,o,l,c,u,d,p){var h=d.length-1;switch(u){case 1:this.$=a.replace(/\\(\\|")/g,"$1").replace(/\\n/g,`
|
|
2
|
+
`).replace(/\\r/g,"\r").replace(/\\t/g," ").replace(/\\v/g,"\v").replace(/\\f/g,"\f").replace(/\\b/g,"\b");break;case 2:this.$=Number(a);break;case 3:this.$=null;break;case 4:this.$=!0;break;case 5:this.$=!1;break;case 6:return this.$=d[h-1];case 13:this.$={};break;case 14:this.$=d[h-1];break;case 15:this.$=[d[h-2],d[h]];break;case 16:this.$={},this.$[d[h][0]]=d[h][1];break;case 17:this.$=d[h-2],d[h-2][d[h][0]]=d[h][1];break;case 18:this.$=[];break;case 19:this.$=d[h-1];break;case 20:this.$=[d[h]];break;case 21:this.$=d[h-2],d[h-2].push(d[h])}},table:[{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],12:1,13:2,15:7,16:8,17:[1,14],23:[1,15]},{1:[3]},{14:[1,16]},{14:[2,7],18:[2,7],22:[2,7],24:[2,7]},{14:[2,8],18:[2,8],22:[2,8],24:[2,8]},{14:[2,9],18:[2,9],22:[2,9],24:[2,9]},{14:[2,10],18:[2,10],22:[2,10],24:[2,10]},{14:[2,11],18:[2,11],22:[2,11],24:[2,11]},{14:[2,12],18:[2,12],22:[2,12],24:[2,12]},{14:[2,3],18:[2,3],22:[2,3],24:[2,3]},{14:[2,4],18:[2,4],22:[2,4],24:[2,4]},{14:[2,5],18:[2,5],22:[2,5],24:[2,5]},{14:[2,1],18:[2,1],21:[2,1],22:[2,1],24:[2,1]},{14:[2,2],18:[2,2],22:[2,2],24:[2,2]},{3:20,4:[1,12],18:[1,17],19:18,20:19},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:23,15:7,16:8,17:[1,14],23:[1,15],24:[1,21],25:22},{1:[2,6]},{14:[2,13],18:[2,13],22:[2,13],24:[2,13]},{18:[1,24],22:[1,25]},{18:[2,16],22:[2,16]},{21:[1,26]},{14:[2,18],18:[2,18],22:[2,18],24:[2,18]},{22:[1,28],24:[1,27]},{22:[2,20],24:[2,20]},{14:[2,14],18:[2,14],22:[2,14],24:[2,14]},{3:20,4:[1,12],20:29},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:30,15:7,16:8,17:[1,14],23:[1,15]},{14:[2,19],18:[2,19],22:[2,19],24:[2,19]},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:31,15:7,16:8,17:[1,14],23:[1,15]},{18:[2,17],22:[2,17]},{18:[2,15],22:[2,15]},{22:[2,21],24:[2,21]}],defaultActions:{16:[2,6]},parseError:function(a,o){throw new Error(a)},parse:function(a){function o(B){u.length=u.length-2*B,d.length=d.length-B,p.length=p.length-B}function l(){var B;return B=c.lexer.lex()||1,typeof B!="number"&&(B=c.symbols_[B]||B),B}var c=this,u=[0],d=[null],p=[],h=this.table,m="",_=0,x=0,b=0,g=2,y=1;this.lexer.setInput(a),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,typeof this.lexer.yylloc=="undefined"&&(this.lexer.yylloc={});var C=this.lexer.yylloc;p.push(C),typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);for(var $,w,E,k,M,I={},T,F,O,P;;){if(E=u[u.length-1],this.defaultActions[E]?k=this.defaultActions[E]:($==null&&($=l()),k=h[E]&&h[E][$]),typeof k=="undefined"||!k.length||!k[0]){if(!b){P=[];for(T in h[E])this.terminals_[T]&&T>2&&P.push("'"+this.terminals_[T]+"'");var A="";this.lexer.showPosition?A="Parse error on line "+(_+1)+`:
|
|
3
3
|
`+this.lexer.showPosition()+`
|
|
4
|
-
Expecting `+P.join(", ")+", got '"+this.terminals_[$]+"'":
|
|
4
|
+
Expecting `+P.join(", ")+", got '"+this.terminals_[$]+"'":A="Parse error on line "+(_+1)+": Unexpected "+($==1?"end of input":"'"+(this.terminals_[$]||$)+"'"),this.parseError(A,{text:this.lexer.match,token:this.terminals_[$]||$,line:this.lexer.yylineno,loc:C,expected:P})}if(b==3){if($==y)throw new Error(A||"Parsing halted.");x=this.lexer.yyleng,m=this.lexer.yytext,_=this.lexer.yylineno,C=this.lexer.yylloc,$=l()}for(;!(g.toString()in h[E]);){if(E==0)throw new Error(A||"Parsing halted.");o(1),E=u[u.length-1]}w=$,$=g,E=u[u.length-1],k=h[E]&&h[E][g],b=3}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+E+", token: "+$);switch(k[0]){case 1:u.push($),d.push(this.lexer.yytext),p.push(this.lexer.yylloc),u.push(k[1]),$=null,w?($=w,w=null):(x=this.lexer.yyleng,m=this.lexer.yytext,_=this.lexer.yylineno,C=this.lexer.yylloc,b>0&&b--);break;case 2:if(F=this.productions_[k[1]][1],I.$=d[d.length-F],I._$={first_line:p[p.length-(F||1)].first_line,last_line:p[p.length-1].last_line,first_column:p[p.length-(F||1)].first_column,last_column:p[p.length-1].last_column},M=this.performAction.call(I,m,x,_,this.yy,k[1],d,p),typeof M!="undefined")return M;F&&(u=u.slice(0,-1*F*2),d=d.slice(0,-1*F),p=p.slice(0,-1*F)),u.push(this.productions_[k[1]][0]),d.push(I.$),p.push(I._$),O=h[u[u.length-2]][u[u.length-1]],u.push(O);break;case 3:return!0}}return!0}},r=function(){var a={EOF:1,parseError:function(o,l){if(!this.yy.parseError)throw new Error(o);this.yy.parseError(o,l)},setInput:function(o){return this._input=o,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this},input:function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.match+=o,this.matched+=o;var l=o.match(/\n/);return l&&this.yylineno++,this._input=this._input.slice(1),o},unput:function(o){return this._input=o+this._input,this},more:function(){return this._more=!0,this},less:function(o){this._input=this.match.slice(o)+this._input},pastInput:function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var o=this.pastInput(),l=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
|
|
5
5
|
`+l+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,l,c,u,d;this._more||(this.yytext="",this.match="");for(var p=this._currentRules(),h=0;h<p.length&&(c=this._input.match(this.rules[p[h]]),!(c&&(!l||c[0].length>l[0].length)&&(l=c,u=h,!this.options.flex)));h++);if(l)return d=l[0].match(/\n.*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-1:this.yylloc.last_column+l[0].length},this.yytext+=l[0],this.match+=l[0],this.yyleng=this.yytext.length,this._more=!1,this._input=this._input.slice(l[0].length),this.matched+=l[0],o=this.performAction.call(this,this.yy,this,p[u],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o||void 0;if(this._input==="")return this.EOF;this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var o=this.next();return typeof o!="undefined"?o:this.lex()},begin:function(o){this.conditionStack.push(o)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(o){this.begin(o)}};return a.options={},a.performAction=function(o,l,c,u){switch(c){case 0:break;case 1:return 6;case 2:return l.yytext=l.yytext.substr(1,l.yyleng-2),4;case 3:return 17;case 4:return 18;case 5:return 23;case 6:return 24;case 7:return 22;case 8:return 21;case 9:return 10;case 10:return 11;case 11:return 8;case 12:return 14;case 13:return"INVALID"}},a.rules=[/^(?:\s+)/,/^(?:(-?([0-9]|[1-9][0-9]+))(\.[0-9]+)?([eE][-+]?[0-9]+)?\b)/,/^(?:"(?:\\[\\"bfnrt/]|\\u[a-fA-F0-9]{4}|[^\\\0-\x09\x0a-\x1f"])*")/,/^(?:\{)/,/^(?:\})/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?::)/,/^(?:true\b)/,/^(?:false\b)/,/^(?:null\b)/,/^(?:$)/,/^(?:.)/],a.conditions={INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}},a}();return n.lexer=r,n}();return t.parser=s,t.parse=function(){return s.parse.apply(s,arguments)},t}(),render$2W=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"code-mirror-editor"},[n("textarea",{ref:"editor"})])},staticRenderFns$2W=[];const CodeMirrorEditor_vue_vue_type_style_index_0_lang="";window.jsonlint=jsonlint;const format=t=>{if(t)try{return JSON.stringify(JSON.parse(t),null,1)}catch(s){}return t},parse=t=>{if(t)try{return JSON.stringify(JSON.parse(t))}catch(s){}return t},__vue2_script$38={name:"CodeMirrorEditor",inject:{elForm:{default:""},elFormItem:{default:""}},props:{value:{type:String,default:""}},watch:{value(t){var s;(s=this.editor)==null||s.setValue(format(t))}},mounted(){this.editor=CodeMirror.fromTextArea(this.$refs.editor,{mode:"application/json",theme:"idea",tabSize:2,indentUnit:2,lint:!0,foldGutter:!0,smartIndent:!0,lineWrapping:!0,matchBrackets:!0}),this.editor.setValue(format(this.value)),this.editor.on("blur",this.change),this.editor.on("focus",this.focus),this.editor.setOption("extraKeys",{"Ctrl-Alt-L"(t){t.setValue(format(t.getValue()),null,1)}})},beforeDestroy(){var t,s;(t=this.editor)==null||t.off("blur",this.change),(s=this.editor)==null||s.toTextArea()},methods:{focus(){var t,s;(s=(t=this.elFormItem).clearValidate)==null||s.call(t)},change(){var t;this.$emit("input",parse((t=this.editor)==null?void 0:t.getValue()))}}},__cssModules$38={};var __component__$38=normalizeComponent(__vue2_script$38,render$2W,staticRenderFns$2W,!1,__vue2_injectStyles$38,null,null,null);function __vue2_injectStyles$38(t){for(let s in __cssModules$38)this[s]=__cssModules$38[s]}const CodeMirrorEditor=function(){return __component__$38.exports}();var render$2V=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("ElColorPickerDropdown",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.onClickOutside,expression:"onClickOutside"}],ref:"dropdown",class:["el-color-picker__panel",t.popperClass||""],attrs:{offset:t.offset,"append-to-body":t.appendToBody,color:t.color,predefine:t.predefine},on:{pick:t.confirmValue,clear:t.clearValue},model:{value:t.showPicker,callback:function(r){t.showPicker=r},expression:"showPicker"}})},staticRenderFns$2V=[];const __vue2_script$37={name:"ColorPicker",directives:{Clickoutside},props:{popperClass:String,predefine:Array,visible:Boolean,hideOnClickOutside:{type:Boolean,default:!0},value:String,offset:Number,anchor:HTMLElement,appendToBody:{type:Boolean,default:!0}},data(){return{color:new Color({enableAlpha:!1}),showPicker:!1}},watch:{value:{immediate:!0,handler(t){t&&t!==this.color.value&&this.color.fromString(t)}},visible:{immediate:!0,handler(t){return v(this,null,function*(){t?(yield this.$nextTick(),this.$refs.dropdown.referenceElm=this.anchor):this.$refs.dropdown&&this.$refs.dropdown.doDestroy(!0),this.showPicker=t})}}},methods:{confirmValue(){this.emitInput(this.color),this.$emit("pick",this.color.value),this.hide()},clearValue(){this.$emit("clear"),this.hide()},emitInput(t){this.$emit("input",t.value)},onClickOutside(){this.hideOnClickOutside&&this.hide()},hide(){this.$emit("update:visible",!1)}}},__cssModules$37={};var __component__$37=normalizeComponent(__vue2_script$37,render$2V,staticRenderFns$2V,!1,__vue2_injectStyles$37,null,null,null);function __vue2_injectStyles$37(t){for(let s in __cssModules$37)this[s]=__cssModules$37[s]}const ColorPicker=function(){return __component__$37.exports}();var render$2U=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",[t._t("header"),t._l(t.list,function(r){return[r.children&&r.children.length>0?n("ColumnDynamic",{key:r.pop,attrs:{"column-option":r},scopedSlots:t._u([t._l(t.crud.mainSlot,function(a){return{key:a,fn:function(o){return[t._t(a,null,null,o)]}}})],null,!0)}):n("ColumnSlot",{key:r.prop,attrs:{column:r,"column-option":t.columnOption},scopedSlots:t._u([t._l(t.crud.mainSlot,function(a){return{key:a,fn:function(o){return[t._t(a,null,null,o)]}}})],null,!0)})]}),t._t("footer")],2)},staticRenderFns$2U=[];const __vue2_script$36={name:"Column",inject:["crud"],provide(){return{crud:this.crud,dynamic:this}},props:{columnOption:Array},computed:{list(){let t=[...this.columnOption];return t=arraySort(t,"index",(s,n)=>{var r,a;return((r=this.crud.objectOption[s.prop])==null?void 0:r.index)-((a=this.crud.objectOption[n.prop])==null?void 0:a.index)}),t}},methods:{handleFilterMethod(t,s,n){const r=this.columnOption.filter(a=>a.prop===n.property)[0];return typeof r.filterMethod=="function"?r.filterMethod(t,s,r):s[r.prop]===t},handleFilters(t,s){if(s!==!0)return;const n=this.crud.DIC[t.prop]||[],r=[];return core.isBlank(n)?this.crud.cellForm.list.forEach(a=>{r.map(o=>o.text).includes(a[t.prop])||r.push({text:a[t.prop],value:a[t.prop]})}):n.forEach(a=>{const o=t.props||this.crud.tableOption.props||{};r.push({text:a[o.label||DIC_PROPS.label],value:a[o.value||DIC_PROPS.value]})}),r},getColumnProp(t,s){const n=this.crud.objectOption[t.prop]||{};if(s==="filterMethod")return n==null?void 0:n.filters;if(this.crud.isMobile&&["fixed"].includes(s))return!1;const r=n==null?void 0:n[s];if(!(s==="width"&&r==0))return s==="filters"?this.handleFilters(t,r):s==="hide"?(n==null?void 0:n.hide)!==!0:r}}},__cssModules$36={};var __component__$36=normalizeComponent(__vue2_script$36,render$2U,staticRenderFns$2U,!1,__vue2_injectStyles$36,null,null,null);function __vue2_injectStyles$36(t){for(let s in __cssModules$36)this[s]=__cssModules$36[s]}const Column=function(){return __component__$36.exports}(),config$1={menuWidth:220,menuFixed:"right",menuXsWidth:100,menuAlign:"center",menuHeaderAlign:"center",headerAlign:"left",cancelBtnIcon:"el-icon-circle-close",viewBtnIcon:"el-icon-view",editBtnIcon:"el-icon-edit",copyBtnIcon:"el-icon-document-add",addBtnIcon:"el-icon-plus",printBtnIcon:"el-icon-printer",excelBtnIcon:"el-icon-download",delBtnIcon:"el-icon-delete",searchBtnIcon:"el-icon-search",emptyBtnIcon:"el-icon-delete",saveBtnIcon:"el-icon-circle-plus-outline",updateBtnIcon:"el-icon-circle-check",columnBtnIcon:"el-icon-s-operation",filterBtnIcon:"el-icon-tickets",refreshBtnIcon:"el-icon-refresh",viewBtn:!1,editBtn:!0,copyBtn:!1,cancelBtn:!0,addBtn:!0,addRowBtn:!1,printBtn:!1,excelBtn:!1,delBtn:!0,cellBtn:!1,dateBtn:!1,updateBtn:!0,saveBtn:!0,refreshBtn:!0,columnBtn:!0,filterBtn:!1,queryBtn:!0,menuBtn:!1,searchBtn:!0,clearBtn:!0,selectClearBtn:!0,searchShow:!0,tip:!0,dialogWidth:"60%",dialogDrag:!1,formFullscreen:!1,pageBackground:!0,page:!0,menu:!0,indexLabel:"#",indexWidth:50,indexFixed:"left",selectionWidth:50,selectionFixed:"left",expandWidth:60,expandFixed:"left",filterMultiple:!0,calcHeight:300,width:"100%",searchGutter:20,searchLabelWidth:80,searchSpan:6,dropRowClass:".el-table__body-wrapper > table > tbody",dropColClass:".el-table__header-wrapper tr",ghostClass:"avue-crud__ghost"};var render$2T=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",[n("ElTableColumn",{attrs:{width:"1px"}}),t.crud.tableOption.expand?n("ElTableColumn",{key:"expand",attrs:{type:"expand",width:t.crud.tableOption.expandWidth||t.config.expandWidth,fixed:t.optVal(t.crud.tableOption.expandFixed,t.config.expandFixed),align:"center"},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.row;return[t._t("expand",null,{row:a,index:a.$index})]}}],null,!0)}):t._e(),t.crud.tableOption.selection?n("ElTableColumn",{key:"selection",attrs:{fixed:t.optVal(t.crud.tableOption.selectionFixed,t.config.selectionFixed),type:"selection",selectable:t.crud.tableOption.selectable,"reserve-selection":t.optVal(t.crud.tableOption.reserveSelection),width:t.crud.tableOption.selectionWidth||t.config.selectionWidth,align:"center"}}):t._e(),t.optVal(t.crud.tableOption.index)?n("ElTableColumn",{key:"index",attrs:{fixed:t.optVal(t.crud.tableOption.indexFixed,t.config.indexFixed),label:t.crud.tableOption.indexLabel||t.config.indexLabel,type:"index",width:t.crud.tableOption.indexWidth||t.config.indexWidth,index:t.indexMethod,align:"center"}}):t._e()],1)},staticRenderFns$2T=[];const __vue2_script$35={name:"ColumnDefault",inject:["crud"],data(){return{config:config$1}},mounted(){this.setSort()},methods:{optVal,indexMethod(t){return t+1+((this.crud.page.currentPage||1)-1)*(this.crud.page.pageSize||10)},setSort(){this.rowDrop(),this.columnDrop()},rowDrop(){const t=this.crud.$refs.table.$el.querySelectorAll(this.config.dropRowClass)[0];this.crud.tableDrop("row",t,s=>{const n=s.oldIndex,r=s.newIndex,a=this.crud.list.splice(n,1)[0];this.crud.list.splice(r,0,a),this.crud.$emit("sortable-change",n,r),this.crud.refreshTable(()=>this.rowDrop())})},columnDrop(){const t=this.crud.$refs.table.$el.querySelector(this.config.dropColClass);let s=0;["selection","index","expand"].forEach(n=>{this.crud.tableOption[n]&&(s+=1)}),this.crud.tableDrop("column",t,n=>{this.crud.headerSort(n.oldIndex-s,n.newIndex-s),this.columnDrop()})}}},__cssModules$35={};var __component__$35=normalizeComponent(__vue2_script$35,render$2T,staticRenderFns$2T,!1,__vue2_injectStyles$35,null,null,null);function __vue2_injectStyles$35(t){for(let s in __cssModules$35)this[s]=__cssModules$35[s]}const ColumnDefault=function(){return __component__$35.exports}();var render$2S=function(){var t=this,s=t.$createElement,n=t._self._c||s;return t.getColumnProp(t.columnOption,"hide")?n("ElTableColumn",{key:t.columnOption.prop,attrs:{prop:t.columnOption.prop,label:t.columnOption.label,"filter-placement":"bottom-end",filters:t.getColumnProp(t.columnOption,"filters"),"filter-method":t.getColumnProp(t.columnOption,"filterMethod")?t.handleFilterMethod:void 0,"filter-multiple":t.optVal(t.columnOption.filterMultiple,!0),"show-overflow-tooltip":t.columnOption.overHidden,"min-width":t.columnOption.minWidth,sortable:t.getColumnProp(t.columnOption,"sortable"),"render-header":t.columnOption.renderHeader,align:t.columnOption.align||t.crud.tableOption.align,"header-align":t.columnOption.headerAlign||t.crud.tableOption.headerAlign,width:t.getColumnProp(t.columnOption,"width"),fixed:t.getColumnProp(t.columnOption,"fixed")}},[t._l(t.columnOption.children,function(r){return[r.children&&r.children.length>0?n("ColumnDynamic",{key:r.prop,attrs:{"column-option":r},scopedSlots:t._u([t._l(t.crud.mainSlot,function(a){return{key:a,fn:function(o){return[t._t(a,null,null,o)]}}})],null,!0)}):n("ColumnSlot",{key:r.prop,attrs:{column:r,"column-option":t.columnOption.children},scopedSlots:t._u([t._l(t.crud.mainSlot,function(a){return{key:a,fn:function(o){return[t._t(a,null,null,o)]}}})],null,!0)})]})],2):t._e()},staticRenderFns$2S=[];const __vue2_script$34={name:"ColumnDynamic",inject:["dynamic","crud"],props:{columnOption:Object},created(){const t=["getColumnProp","handleFilterMethod","handleFilters"];Object.keys(this.dynamic).forEach(s=>{t.includes(s)&&(this[s]=this.dynamic[s])})},methods:{optVal}},__cssModules$34={};var __component__$34=normalizeComponent(__vue2_script$34,render$2S,staticRenderFns$2S,!1,__vue2_injectStyles$34,null,null,null);function __vue2_injectStyles$34(t){for(let s in __cssModules$34)this[s]=__cssModules$34[s]}const ColumnDynamic=function(){return __component__$34.exports}(),permission=(()=>{function t(s,n){n.value===!1?s.style.display="none":s.style.display=""}return{bind(s,n){t(s,n)},update(s,n){t(s,n)}}})();var render$2R=function(){var t=this,s=t.$createElement,n=t._self._c||s;return t.optVal(t.crud.tableOption.menu,t.config.menu)&&t.crud.getPermission("menu")?n("ElTableColumn",{key:"menu",staticClass:"avue-crud__btn",attrs:{prop:"menu",fixed:t.optVal(t.crud.tableOption.menuFixed,t.config.menuFixed),label:t.crud.tableOption.menuTitle||"操作",align:t.crud.tableOption.menuAlign||t.config.menuAlign,"header-align":t.crud.tableOption.menuHeaderAlign||t.config.menuHeaderAlign,width:t.crud.isMobile?t.crud.tableOption.menuXsWidth||t.config.menuXsWidth:t.crud.tableOption.menuWidth||t.config.menuWidth},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.row,o=r.$index;return[t.isMenu?n("ElDropdown",{attrs:{size:t.crud.isMediumSize}},[n("ElButton",{attrs:{type:"text",size:t.crud.isMediumSize}},[t._v(" "+t._s(t.crud.tableOption.menuBtnTitle||"按钮")+" "),n("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),n("ElDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[t.optVal(t.crud.tableOption.viewBtn,t.config.viewBtn)?n("ElDropdownItem",{directives:[{name:"permission",rawName:"v-permission",value:t.crud.getPermission("viewBtn",a,o),expression:"crud.getPermission('viewBtn', row, $index)"}],attrs:{icon:t.crud.getBtnIcon("viewBtn")},nativeOn:{click:function(l){return t.crud.rowView(a,o)}}},[t._v(" "+t._s(t.crud.menuIcon("viewBtn"))+" ")]):t._e(),t.optVal(t.crud.tableOption.editBtn,t.config.editBtn)?n("ElDropdownItem",{directives:[{name:"permission",rawName:"v-permission",value:t.crud.getPermission("editBtn",a,o),expression:"crud.getPermission('editBtn', row, $index)"}],attrs:{icon:t.crud.getBtnIcon("editBtn")},nativeOn:{click:function(l){return t.crud.rowEdit(a,o)}}},[t._v(" "+t._s(t.crud.menuIcon("editBtn"))+" ")]):t._e(),t.optVal(t.crud.tableOption.copyBtn,t.config.copyBtn)?n("ElDropdownItem",{directives:[{name:"permission",rawName:"v-permission",value:t.crud.getPermission("copyBtn",a,o),expression:"crud.getPermission('copyBtn', row, $index)"}],attrs:{icon:t.crud.getBtnIcon("copyBtn")},nativeOn:{click:function(l){return t.crud.rowCopy(a)}}},[t._v(" "+t._s(t.crud.menuIcon("copyBtn"))+" ")]):t._e(),t.optVal(t.crud.tableOption.delBtn,t.config.delBtn)?n("ElDropdownItem",{directives:[{name:"permission",rawName:"v-permission",value:t.crud.getPermission("delBtn",a,o),expression:"crud.getPermission('delBtn', row, $index)"}],attrs:{icon:t.crud.getBtnIcon("delBtn")},nativeOn:{click:function(l){return t.crud.rowDel(a,o)}}},[t._v(" "+t._s(t.crud.menuIcon("delBtn"))+" ")]):t._e(),t._t("menuBtn",null,{row:a,type:t.menuText("primary"),disabled:t.crud.btnDisabled,size:t.crud.isMediumSize,index:o})],2)],1):["button","text","icon"].includes(t.menuType)?[t.optVal(t.crud.tableOption.cellBtn,t.config.cellBtn)?[t.optVal(t.crud.tableOption.editBtn,t.config.editBtn)&&!a.$cellEdit?n("ElButton",{directives:[{name:"permission",rawName:"v-permission",value:t.crud.getPermission("editBtn",a,o),expression:"crud.getPermission('editBtn', row, $index)"}],attrs:{type:t.menuText("primary"),icon:t.crud.getBtnIcon("editBtn"),size:t.crud.isMediumSize,disabled:t.crud.btnDisabledList[o]},on:{click:function(l){return l.stopPropagation(),t.crud.rowCell(a,o)}}},[t.isIconMenu?t._e():[t._v(" "+t._s(t.crud.menuIcon("editBtn"))+" ")]],2):t.optVal(t.crud.tableOption.saveBtn,t.config.saveBtn)&&a.$cellEdit?n("ElButton",{directives:[{name:"permission",rawName:"v-permission",value:t.crud.getPermission("saveBtn",a,o),expression:"crud.getPermission('saveBtn', row, $index)"}],attrs:{type:t.menuText("primary"),icon:t.crud.getBtnIcon("saveBtn"),size:t.crud.isMediumSize,disabled:t.crud.btnDisabledList[o]},on:{click:function(l){return l.stopPropagation(),t.crud.rowCell(a,o)}}},[t.isIconMenu?t._e():[t._v(" "+t._s(t.crud.menuIcon("saveBtn"))+" ")]],2):t._e(),a.$cellEdit?n("ElButton",{attrs:{type:t.menuText("danger"),icon:t.crud.getBtnIcon("cancelBtn"),size:t.crud.isMediumSize,disabled:t.crud.btnDisabledList[o]},on:{click:function(l){return l.stopPropagation(),t.crud.rowCancel(a,o)}}},[t.isIconMenu?t._e():[t._v(" "+t._s(t.crud.menuIcon("cancelBtn"))+" ")]],2):t._e()]:t._e(),t.optVal(t.crud.tableOption.viewBtn,t.config.viewBtn)?n("ElButton",{directives:[{name:"permission",rawName:"v-permission",value:t.crud.getPermission("viewBtn",a,o),expression:"crud.getPermission('viewBtn', row, $index)"}],attrs:{type:t.menuText("success"),icon:t.crud.getBtnIcon("viewBtn"),size:t.crud.isMediumSize,disabled:t.btnDisabled},on:{click:function(l){return l.stopPropagation(),t.crud.rowView(a,o)}}},[t.isIconMenu?t._e():[t._v(" "+t._s(t.crud.menuIcon("viewBtn"))+" ")]],2):t._e(),t.optVal(t.crud.tableOption.editBtn,t.config.editBtn)&&!t.crud.tableOption.cellBtn?n("ElButton",{directives:[{name:"permission",rawName:"v-permission",value:t.crud.getPermission("editBtn",a,o),expression:"crud.getPermission('editBtn', row, $index)"}],attrs:{type:t.menuText("primary"),icon:t.crud.getBtnIcon("editBtn"),size:t.crud.isMediumSize,disabled:t.btnDisabled},on:{click:function(l){return l.stopPropagation(),t.crud.rowEdit(a,o)}}},[t.isIconMenu?t._e():[t._v(" "+t._s(t.crud.menuIcon("editBtn"))+" ")]],2):t._e(),t.optVal(t.crud.tableOption.copyBtn,t.config.copyBtn)?n("ElButton",{directives:[{name:"permission",rawName:"v-permission",value:t.crud.getPermission("copyBtn",a,o),expression:"crud.getPermission('copyBtn', row, $index)"}],attrs:{type:t.menuText("primary"),icon:t.crud.getBtnIcon("copyBtn"),size:t.crud.isMediumSize,disabled:t.btnDisabled},on:{click:function(l){return l.stopPropagation(),t.crud.rowCopy(a)}}},[t.isIconMenu?t._e():[t._v(" "+t._s(t.crud.menuIcon("copyBtn"))+" ")]],2):t._e(),t.optVal(t.crud.tableOption.delBtn,t.config.delBtn)&&!a.$cellEdit?n("ElButton",{directives:[{name:"permission",rawName:"v-permission",value:t.crud.getPermission("delBtn",a,o),expression:"crud.getPermission('delBtn', row, $index)"}],attrs:{type:t.menuText("danger"),icon:t.crud.getBtnIcon("delBtn"),size:t.crud.isMediumSize,disabled:t.btnDisabled},on:{click:function(l){return l.stopPropagation(),t.crud.rowDel(a,o)}}},[t.isIconMenu?t._e():[t._v(" "+t._s(t.crud.menuIcon("delBtn"))+" ")]],2):t._e()]:t._e(),t._t("menu",null,{row:a,type:t.menuText("primary"),disabled:t.crud.btnDisabled,size:t.crud.isMediumSize,index:o})]}}],null,!0)}):t._e()},staticRenderFns$2R=[];const __vue2_script$33={name:"ColumnMenu",directives:{permission},inject:["crud"],data(){return{config:config$1}},computed:{menuType(){return this.crud.tableOption.menuType||this.$AVUE.menuType||"button"},isIconMenu(){return this.menuType==="icon"},isTextMenu(){return this.menuType==="text"},isMenu(){return this.menuType==="menu"}},methods:{optVal,menuText(t){return["text","menu"].includes(this.menuType)?"text":t}}},__cssModules$33={};var __component__$33=normalizeComponent(__vue2_script$33,render$2R,staticRenderFns$2R,!1,__vue2_injectStyles$33,null,null,null);function __vue2_injectStyles$33(t){for(let s in __cssModules$33)this[s]=__cssModules$33[s]}const ColumnMenu=function(){return __component__$33.exports}(),detail=(t={},s={},n={},r=[])=>{let a=t[s.prop];const o=s.type,l=s.separator;if(s.bind&&(a=getAsVal(t,s.bind)),core.isBlank(a))a="";else{const c=MULTIPLE_LIST.includes(s.type)&&s.multiple,u=ARRAY_VALUE_LIST.includes(s.type);if((["string","number"].includes(s.dataType)||c||u)&&!Array.isArray(a)&&(a=`${a}`.split(l||DIC_SPLIT),s.dataType==="number"&&(a=strCorNum(a))),ARRAY_LIST.includes(o))Array.isArray(a)?a=a.join(l||DIC_SHOW_SPLIT):a=a.split(l||DIC_SPLIT).join(l||DIC_SHOW_SPLIT);else if(o==="password")a=getPasswordChar(a,"*");else if(DATE_LIST.includes(o)&&s.format){const d=s.format.replace("dd","DD").replace("yyyy","YYYY"),p=dayjs.formatDate(Date.now(),"YYYY-MM-DD");if(o.indexOf("range")!==-1){let h=a[0]||"",m=a[1]||"";o==="timerange"&&h.length<=8&&m.length<8&&(h=`${p} ${h}`,m=`${p} ${m}`),a=[dayjs.formatDate(h,d),dayjs.formatDate(m,d)].join(s.separator||"~")}else o==="time"&&a.length<=8&&(a=`${p} ${a}`),a=dayjs.formatDate(a,d)}a=findByValue(r,a,s.props||n.props)}return s.formatter&&typeof s.formatter=="function"&&(a=s.formatter(t,t[s.prop],a,s)),a},loadCascaderDic=(t,s=[])=>new Promise((n,r)=>{const a=[],o=[],l={};t.forEach(c=>{c.parentProp&&a.push(c)}),s.forEach((c,u)=>{a.forEach(d=>{d.hide!==!0&&d.dicFlag!==!1&&o.push(new Promise(p=>{core.isBlank(c[d.parentProp])?p({prop:d.prop,data:[],index:u}):d.dicUrl&&sendDic({url:`${d.dicUrl.replace("{{key}}",c[d.parentProp])}`,props:d.props,method:d.dicMethod,headers:d.dicHeaders,formatter:d.dicFormatter,query:d.dicQuery,form:c}).then(h=>{p({prop:d.prop,data:h,index:u})})}))})}),Promise.all(o).then(c=>{c.forEach(u=>{core.isBlank(l[u.index])&&(l[u.index]={}),l[u.index][u.prop]=u.data}),n(l)})}),loadDic=t=>{let s=[];return new Promise((n,r)=>{s=createdDic(t).ajaxdic,handleDic(s).then(o=>{n(o)}).catch(o=>{r(o)})})},loadLocalDic=t=>{const s={},n=t.dicData||{};return t.column.forEach(r=>{r.dicData&&(s[r.prop]=detailDic(r.dicData,r.props,r.dataType))}),Object.assign(n,s)};function createdDic(t){const s=t.column||[],n=[],r={};let a=[];return s.forEach(o=>{const l=o.dicData,c=o.dicUrl,u=o.prop,d=o.parentProp;a=a.concat(o.cascader||[]),Array.isArray(l)&&(r[u]=l),!(o.dicFlag===!1||o.lazy===!0||a.includes(u))&&c&&!d&&n.push({url:c,name:u,method:o.dicMethod,headers:s.dicHeaders,formatter:o.dicFormatter,props:o.props,dataType:o.dataType,resKey:(o.props||{}).res,query:o.dicQuery||{}})}),{ajaxdic:n,locationdic:r}}function handleDic(t){const s={},n=[];return new Promise(r=>{t.forEach(a=>{n.push(new Promise(o=>{sendDic(Object.assign(a,{url:`${a.url.replace("{{key}}","")}`})).then(l=>{l=detailDic(l,a.props,a.dataType),o(l)}).catch(()=>{o([])})}))}),Promise.all(n).then(a=>{t.forEach((o,l)=>{s[o.name]=a[l]}),r(s)})})}const sendDic=t=>{let{url:s,query:n,method:r,resKey:a,props:o,formatter:l,headers:c={},value:u="",column:d,form:p={}}=t;d&&(s=d.dicUrl,r=d.dicMethod,c=d.headers||{},n=d.dicQuery||{},l=d.dicFormatter,o=d.props);const h="key";s=s||"";let m;const _={};return m=s.match(/[^{}]+(?=})/g)||[],m.forEach(x=>{const b=`{{${x}}}`,g=p[x];x===h?s=s.replace(b,u):s=s.replace(b,g)}),r==="post"&&(m=Object.keys(n),m.forEach(x=>{const b=n[x];typeof b=="string"&&b.match(/\{{|}}/g)?_[x]=p[b.replace(/\{{|}}/g,"")]:_[x]=b})),o&&(a=(o||{}).res||a),new Promise(x=>{const b=g=>{let y=[];typeof l=="function"?y=l(g.data):y=getObjValue(g.data,a),x(y)};r==="post"?window.axios.post(s,_,{headers:c}).then(function(g){b(g)}).catch(()=>[x([])]):window.axios.get(s,{params:n,headers:c}).then(function(g){b(g)}).catch(()=>[x([])])})};var render$2Q=function(){var t=this,s=t.$createElement,n=t._self._c||s;return t.getColumnProp(t.column,"hide")?n("ElTableColumn",{key:t.column.prop,attrs:{prop:t.column.prop,label:t.column.label,"column-key":t.column.prop,"filter-placement":"bottom-end",filters:t.getColumnProp(t.column,"filters"),"filter-method":t.getColumnProp(t.column,"filterMethod")?t.handleFilterMethod:void 0,"filter-multiple":t.optVal(t.column.filterMultiple,!0),"show-overflow-tooltip":t.column.overHidden,"min-width":t.column.minWidth,sortable:t.getColumnProp(t.column,"sortable"),"sort-method":t.column.sortMethod,"sort-orders":t.column.sortOrders,"sort-by":t.column.sortBy,resizable:t.column.resizable,"render-header":t.column.renderHeader,align:t.column.align||t.crud.tableOption.align,"header-align":t.column.headerAlign||t.crud.tableOption.headerAlign,width:t.getColumnProp(t.column,"width"),fixed:t.getColumnProp(t.column,"fixed")},scopedSlots:t._u([{key:"header",fn:function(r){var a=r.$index;return[t.crud.getSlotName(t.column,"H",t.crud.$scopedSlots)?t._t(t.crud.getSlotName(t.column,"H"),null,null,{column:t.column,$index:a}):n("span",[t._v(t._s(t.column.label))])]}},{key:"default",fn:function(r){var a=r.row,o=r.$index;return[a.$cellEdit&&t.column.cell?n("ElFormItem",{attrs:{prop:t.crud.isTree?"":`list.${o}.${t.column.prop}`,label:t.vaildLabel(t.column,a," "),"label-width":t.vaildLabel(t.column,a,"1px"),rules:t.column.rules}},[n("ElTooltip",{attrs:{content:(t.crud.listError[`list.${o}.${t.column.prop}`]||{}).msg,disabled:!(t.crud.listError[`list.${o}.${t.column.prop}`]||{}).valid,placement:"top"}},[t.crud.getSlotName(t.column,"F",t.crud.$scopedSlots)?t._t(t.crud.getSlotName(t.column,"F"),null,null,{row:a,dic:t.crud.DIC[t.column.prop],size:t.crud.isMediumSize,index:o,disabled:t.crud.btnDisabledList[o],label:t.handleDetail(a,t.column),$cell:a.$cellEdit}):n("FormTemp",t._b({attrs:{column:t.column,size:t.crud.isMediumSize,"table-data":{index:o,row:a,label:t.handleDetail(a,t.column)},dic:(t.crud.cascaderDIC[o]||{})[t.column.prop]||t.crud.DIC[t.column.prop],props:t.column.props||t.crud.tableOption.props,readonly:t.column.readonly,disabled:t.crud.disabled||t.crud.tableOption.disabled||t.column.disabled||t.crud.btnDisabledList[o],clearable:t.optVal(t.column.clearable,!1),"column-slot":t.crud.mainSlot},on:{change:function(l){return t.columnChange(a,t.column,o)}},scopedSlots:t._u([t._l(t.crud.mainSlot,function(l){return{key:l,fn:function(c){return[t._t(l,null,null,c)]}}})],null,!0),model:{value:a[t.column.prop],callback:function(l){t.$set(a,t.column.prop,l)},expression:"row[column.prop]"}},"FormTemp",t.uploadFun(t.column,t.crud),!1))],2)],1):t.crud.$scopedSlots[t.column.prop]?t._t(t.column.prop,null,{row:a,index:o,dic:t.crud.DIC[t.column.prop],size:t.crud.isMediumSize,label:t.handleDetail(a,t.column)}):[["img","upload"].includes(t.column.type)?n("span",{staticClass:"avue-crud__img "},[t._l(t.getImgList(a,t.column),function(l,c){return[t.isMediaType(l,t.column.fileType)?n(t.isMediaType(l,t.column.fileType),{key:c,tag:"Component",attrs:{src:l},on:{click:function(u){return u.stopPropagation(),t.openImg(a,t.column,c)}}}):n("i",{key:c,staticClass:"el-icon-document",attrs:{src:l},on:{click:function(u){return u.stopPropagation(),t.openImg(a,t.column,c)}}})]})],2):t.column.type==="url"?n("span",t._l(t.corArray(a,t.column),function(l,c){return n("ElLink",{key:c,attrs:{type:"primary",href:l,target:t.column.target||"_blank"}},[t._v(t._s(l))])}),1):t.column.type==="rate"?n("span",[n("FyRate",{attrs:{disabled:""},model:{value:a[t.column.prop],callback:function(l){t.$set(a,t.column.prop,l)},expression:"row[column.prop]"}})],1):t.column.type==="color"?n("i",{staticClass:"avue-crud__color",style:{backgroundColor:a[t.column.prop]}}):t.column.type==="icon"?n("IconTemp",{attrs:{text:a[t.column.prop]}}):t.column.html?n("span",{domProps:{innerHTML:t._s(t.handleDetail(a,t.column))}}):n("span",{domProps:{textContent:t._s(t.handleDetail(a,t.column))}})]]}}],null,!0)}):t._e()},staticRenderFns$2Q=[];const count$1={},__vue2_script$32={name:"ColumnSlot",inject:["dynamic","crud"],props:{column:Object,columnOption:Array},created(){const t=["getColumnProp","handleFilterMethod","handleFilters"];Object.keys(this.dynamic).forEach(s=>{t.includes(s)&&(this[s]=this.dynamic[s])})},methods:{isBlank:core.isBlank,optVal,uploadFun,isMediaType(t,s){return isMediaType(t,s)},vaildLabel(t,s,n){if(t.rules&&s.$cellEdit)return n},columnChange(t,s,n){const r=`${n}-${s.prop}`;count$1[r]||(this.handleChange(s,t),typeof s.change=="function"&&s.cell==!0&&s.change({row:t,column:s,index:n,value:t[s.prop]})),count$1[r]=!0,this.$nextTick(()=>count$1[r]=!1)},handleChange(t,s){t.cascader&&this.$nextTick(()=>{const n=t.cascader;n.forEach(r=>{const a=r,o=s[t.prop],l=s.$index,c=this.findObject(this.columnOption,a);core.isBlank(c)||(core.isBlank(this.crud.cascaderDIC[l])&&this.$set(this.crud.cascaderDIC,l,{}),this.crud.cascaderIndexList.includes(l)&&n.forEach(u=>{this.$set(this.crud.cascaderDIC[l],u.prop,[]),n.forEach(d=>s[d]="")}),!(core.isBlank(n)||core.isBlank(o)||core.isBlank(c))&&sendDic({column:c,value:o,form:s}).then(u=>{const d=u||[];this.crud.cascaderIndexList.includes(l)||this.crud.cascaderIndexList.push(l),this.crud.cascaderDicList[l]||this.$set(this.crud.cascaderDicList,l,{}),this.crud.cascaderDicList[l][a]||this.$set(this.crud.cascaderDicList[l],a,d),this.$set(this.crud.cascaderDIC[l],a,d),!core.isBlank(d[c.cascaderIndex])&&!core.isBlank(d)&&!core.isBlank(c.cascaderIndex)&&(s[a]=d[c.cascaderIndex][(c.props||{}).value||DIC_PROPS.value])}))})})},handleDetail(t,s){let n;const r=s.parentProp?(this.crud.cascaderDIC[t.$index]||{})[s.prop]:this.crud.DIC[s.prop];return n=detail(t,s,this.crud.tableOption,r),!core.isBlank(r)&&this.crud.tableOption.filterDic!==!0&&(t[`$${s.prop}`]=n),n},corArray(t,s){let n=this.handleDetail(t,s);return Array.isArray(n)||(n=core.isBlank(n)?[]:n.split(DIC_SHOW_SPLIT)),deepClone(n)},openImg(t,s,n){let r=this.getImgList(t,s);r=r.map(a=>({thumbUrl:a,url:a,type:s.fileType})),this.$ImagePreview(r,n)},getImgList(t,s){var o,l;const n=((o=s.propsHttp)==null?void 0:o.home)||"",r=((l=s.props)==null?void 0:l.value)||DIC_PROPS.value,a=this.corArray(t,s);return a.forEach((c,u)=>{a[u]=n+(c[r]?c[r]:c)}),a}}},__cssModules$32={};var __component__$32=normalizeComponent(__vue2_script$32,render$2Q,staticRenderFns$2Q,!1,__vue2_injectStyles$32,null,null,null);function __vue2_injectStyles$32(t){for(let s in __cssModules$32)this[s]=__cssModules$32[s]}const ColumnSlot=function(){return __component__$32.exports}();var render$2P=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{class:["avue-comment",{"avue-comment--reverse":t.reverse}]},[n("img",{staticClass:"avue-comment__avatar",attrs:{src:t.avatar,alt:""}}),n("div",{staticClass:"avue-comment__main"},[n("div",{staticClass:"avue-comment__header"},[t.author?n("div",{staticClass:"avue-comment__author",domProps:{textContent:t._s(t.author)}}):t._e(),t._t("default")],2),t.body?n("div",{staticClass:"avue-comment__body",domProps:{innerHTML:t._s(t.body)}}):t._e()])])},staticRenderFns$2P=[];const Comment_vue_vue_type_style_index_0_lang="",propsDefault$2={avatar:"avatar",author:"author",body:"body"},__vue2_script$31={name:"Comment",props:{reverse:{type:Boolean,default:!1},data:{type:Object,default:()=>({})},props:{type:Object,default:()=>propsDefault$2},option:{type:Object,default:()=>({})}},computed:{avatarKey(){return this.props.avatar||propsDefault$2.avatar},authorKey(){return this.props.author||propsDefault$2.author},bodyKey(){return this.props.body||propsDefault$2.body},avatar(){return this.data[this.avatarKey]},author(){return this.data[this.authorKey]},body(){return this.data[this.bodyKey]}}},__cssModules$31={};var __component__$31=normalizeComponent(__vue2_script$31,render$2P,staticRenderFns$2P,!1,__vue2_injectStyles$31,null,null,null);function __vue2_injectStyles$31(t){for(let s in __cssModules$31)this[s]=__cssModules$31[s]}const Comment=function(){return __component__$31.exports}();function onClick(t,s,n){return v(this,null,function*(){const{stop:r,prevent:a,message:o,loadable:l,loadingText:c,confirmable:u,confirmType:d,confirmText:p}=s;r&&t.stopPropagation(),a&&t.preventDefault();const{before:h,click:m,cancel:_,after:x}=n;if(core.isFunction(m))try{let b=!0;if(core.isFunction(h)&&(b=yield h(t)),b===!1)return;u&&(yield MessageBox.confirm(o||p,{type:d}));let g;l&&(g=Loading.service({background:"rgba(0,0,0,0.3)",text:c}));try{yield m(t)}catch(y){}l&&g.close(),core.isFunction(x)&&(yield x(t))}catch(b){core.isFunction(_)&&(yield _(b))}})}const confirmableMixin={functional:!0,props:{stop:{type:Boolean,default:!0},prevent:{type:Boolean,default:!0},text:{type:String,default:""},message:{type:String,default:"你确定要删除该记录吗?"},confirmable:{type:Boolean,default:!0},confirmText:{type:String,default:"你确定要删除该记录吗?"},confirmType:{type:String,default:"warning"},loadable:Boolean,loadingText:{type:String,default:"正在处理中请稍候..."},tag:{type:String,default:"i"}},render(t,{props:s,data:n,children:r,listeners:a}){return t(s.tag,S(f({},n),{on:{click:o=>onClick(o,s,a)},props:s}),r||s.text)}},__vue2_script$30={name:"Confirmable",mixins:[confirmableMixin]};let __vue2_render$d,__vue2_staticRenderFns$d;const __cssModules$30={};var __component__$30=normalizeComponent(__vue2_script$30,__vue2_render$d,__vue2_staticRenderFns$d,!1,__vue2_injectStyles$30,null,null,null);function __vue2_injectStyles$30(t){for(let s in __cssModules$30)this[s]=__cssModules$30[s]}const Confirmable=function(){return __component__$30.exports}(),props$2={props:{type:{type:String,default:"danger"},size:String,icon:{type:String,default:""},nativeType:{type:String,default:"button"},loading:Boolean,disabled:Boolean,plain:Boolean,autofocus:Boolean,round:Boolean,text:{type:String,default:"删除"},tag:{type:String,default:"ElButton"}}},__vue2_script$2$={name:"ConfirmButton",mixins:[confirmableMixin,props$2]};let __vue2_render$c,__vue2_staticRenderFns$c;const __cssModules$2$={};var __component__$2$=normalizeComponent(__vue2_script$2$,__vue2_render$c,__vue2_staticRenderFns$c,!1,__vue2_injectStyles$2$,null,null,null);function __vue2_injectStyles$2$(t){for(let s in __cssModules$2$)this[s]=__cssModules$2$[s]}const ConfirmButton=function(){return __component__$2$.exports}();var render$2O=function(){var t=this,s=t.$createElement,n=t._self._c||s;return t.rendered?n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"cm-container",style:t.axisComputed},[n("svg",{staticStyle:{position:"absolute",width:"0",height:"0",overflow:"hidden"},attrs:{"aria-hidden":"true"}},[n("symbol",{attrs:{id:"icon-arrow",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M288.791335 65.582671l446.41733 446.417329-446.41733 446.417329z"}})])]),n("ul",{staticClass:"cm-ul cm-ul-1 easy-cm-ul",class:t.underline?"cm-underline":""},t._l(t.list,function(r,a){return n("li",{key:a,style:t.liStyle},[n("div",{class:t.firstLeft?"cm-left":"",on:{click:function(o){return t.onItemClick(r,[a])}}},[n("i",{staticClass:"cm-item-icon",class:r.icon}),n("span",{staticClass:"cm-item-label"},[t._v(t._s(r.text))]),t.arrow&&r.children&&r.children.length>0?n("svg",{staticClass:"icon",attrs:{"aria-hidden":"true"}},[n("use",{attrs:{"xlink:href":"#icon-arrow"}})]):t._e()]),r.children&&r.children.length>0?n("ul",{staticClass:"cm-ul cm-ul-2 easy-cm-ul",class:t.underline?"cm-underline":"",style:t.secondBorderCheck(a)},t._l(r.children,function(o,l){return n("li",{key:l,style:t.liStyle},[n("div",{class:t.secondLeft?"cm-left":"",on:{click:function(c){return t.onItemClick(o,[a,l])}}},[n("i",{staticClass:"cm-item-icon",class:o.icon}),n("span",{staticClass:"cm-item-label"},[t._v(t._s(o.text))]),t.arrow&&o.children&&o.children.length>0?n("svg",{staticClass:"icon",attrs:{"aria-hidden":"true"}},[n("use",{attrs:{"xlink:href":"#icon-arrow"}})]):t._e()]),o.children&&o.children.length>0?n("ul",{staticClass:"cm-ul cm-ul-3 easy-cm-ul",class:t.underline?"cm-underline":"",style:t.thirdBorderCheck(a,l)},t._l(o.children,function(c,u){return n("li",{key:u,style:t.liStyle},[n("div",{on:{click:function(d){return t.onItemClick(c,[a,l,u])}}},[n("i",{staticClass:"cm-item-icon",class:c.icon}),n("span",{staticClass:"cm-item-label"},[t._v(t._s(c.text))])])])}),0):t._e()])}),0):t._e()])}),0)]):t._e()},staticRenderFns$2O=[];const ContextMenu_vue_vue_type_style_index_0_lang="",__vue2_script$2_={name:"ContextMenu",props:{list:{type:Array,required:!0},underline:{type:Boolean,default:!1},arrow:{type:Boolean,default:!0},border:{type:Boolean,default:!0},itemWidth:{type:Number,default:140},itemHeight:{type:Number,default:36},itemFontSize:{type:[Number,String],default:12},offset:{type:Object,default:()=>({x:6,y:2})},borderWidth:{type:Number,default:6}},data(){return{visible:!1,rendered:!1,axis:{x:0,y:0}}},computed:{axisComputed(){return{top:`${this.axis.y+this.offset.y}px`,left:`${this.axis.x+this.offset.x}px`}},liStyle(){return{width:`${this.itemWidth}px`,height:`${this.itemHeight}px`,lineHeight:`${this.itemHeight}px`,fontSize:`${this.itemFontSize}px`}},firstLeft(){const t=document.body.offsetWidth;return this.axis.x+this.itemWidth*2>=t},secondLeft(){const t=document.body.offsetWidth;return this.axis.x+this.itemWidth*3>=t}},watch:{axis(){if(this.border){const t=document.body.offsetWidth,s=document.body.offsetHeight;this.axis.x+this.offset.x+this.itemWidth>=t&&(this.axis.x=t-this.itemWidth-this.borderWidth-this.offset.x),this.axis.y+this.offset.y+this.itemHeight*this.list.length>=s&&(this.axis.y=s-this.itemHeight*this.list.length-this.borderWidth-this.offset.y)}}},methods:{secondBorderCheck(t){const s=document.body.offsetWidth,n=document.body.offsetHeight,r=this.axis.y+(t+this.list[t].children.length)*this.itemHeight;return{left:this.axis.x+this.itemWidth*2>=s?"-100%":"100%",top:n>=r?0:`${-(this.list[t].children.length-1)*this.itemHeight}px`}},thirdBorderCheck(t,s){const n=document.body.offsetWidth,r=document.body.offsetHeight,a=this.axis.y+this.list[t].children[s].children.length*this.itemHeight+(t+s)*this.itemHeight+parseInt(this.secondBorderCheck(t).top);return{left:this.axis.x+this.itemWidth*3>=n?"-100%":"100%",top:a>r?`${-(this.list[t].children[s].children.length-1)*this.itemHeight}px`:0}},show(t){document.addEventListener("click",this.hide,!0),this.axis={x:t.clientX,y:t.clientY},this.rendered=!0,this.visible=!0},hide(){this.visible=!1,document.removeEventListener("click",this.hide)},onItemClick(t,s){this.$emit("on-item-click",t,s)}}},__cssModules$2_={};var __component__$2_=normalizeComponent(__vue2_script$2_,render$2O,staticRenderFns$2O,!1,__vue2_injectStyles$2_,null,null,null);function __vue2_injectStyles$2_(t){for(let s in __cssModules$2_)this[s]=__cssModules$2_[s]}const ContextMenu=function(){return __component__$2_.exports}();var render$2N=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("span",[t._v(t._s(t.end))])},staticRenderFns$2N=[];const __vue2_script$2Z={name:"CountUp",props:{animation:{type:Boolean,default:!0},start:{type:[Number,String],required:!1,default:0},end:{type:[Number,String],required:!0},decimals:{type:Number,required:!1,default:0},duration:{type:Number,required:!1,default:2},options:{type:Object,required:!1,default(){return{}}},callback:{type:Function,required:!1,default:()=>{}}},watch:{decimals(){var t;(t=this.c)==null||t.update(this.end)},end(t){var s;(s=this.c)==null||s.update(t)}},mounted(){this.animation&&this.init()},beforeDestroy(){this.destroy()},methods:{init(){this.c||(this.c=new countup_js.CountUp(this.$el,this.end,S(f({},this.options),{decimal:this.decimals,duration:this.duration,startVal:this.start})),this.c.start(()=>{this.callback(this.c)}))},destroy(){this.c=null}},start(t){var s;(s=this.c)==null||s.start(()=>{t&&t(this.c)})},pauseResume(){var t;(t=this.c)==null||t.pauseResume()},reset(){var t;(t=this.c)==null||t.reset()},update(t){var s;(s=this.c)==null||s.update(t)}},__cssModules$2Z={};var __component__$2Z=normalizeComponent(__vue2_script$2Z,render$2N,staticRenderFns$2N,!1,__vue2_injectStyles$2Z,null,null,null);function __vue2_injectStyles$2Z(t){for(let s in __cssModules$2Z)this[s]=__cssModules$2Z[s]}const CountUp=function(){return __component__$2Z.exports}();var render$2M=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"os-host"},[n("div",{staticClass:"os-resize-observer-host"}),n("div",{staticClass:"os-padding"},[n("div",{ref:"viewport",staticClass:"os-viewport"},[n("div",{ref:"content",staticClass:"os-content"},[t._t("default")],2)])]),t._m(0),t._m(1),n("div",{staticClass:"os-scrollbar-corner"})])},staticRenderFns$2M=[function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"os-scrollbar os-scrollbar-horizontal "},[n("div",{staticClass:"os-scrollbar-track"},[n("div",{staticClass:"os-scrollbar-handle"})])])},function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"os-scrollbar os-scrollbar-vertical"},[n("div",{staticClass:"os-scrollbar-track"},[n("div",{staticClass:"os-scrollbar-handle"})])])}];const __vue2_script$2Y={name:"CustomScrollbar",props:{options:{type:Object,default:void 0},extensions:{type:[String,Array,Object],default:void 0},theme:{type:String,default:void 0},onLoadMore:{type:Function,default:null},onScroll:{type:Function},reverse:{type:Boolean,default:!1},textarea:{type:Boolean,default:!1}},computed:{innerOptions(){const t=this.options||{};return S(f({},t),{className:this.theme||"os-theme-dark",scrollbars:{autoHide:"l",autoHideDelay:100},callbacks:{onScroll:this.internalScroll}})}},watch:{innerOptions(t){const s=this.scroller;OverlayScrollbars.valid(s)&&s.options(t)}},mounted(){this.viewport=this.$refs.viewport,this.scroller=OverlayScrollbars(this.getContentWrapper(),this.options||{className:this.theme||"os-theme-dark",scrollbars:{autoHide:"l",autoHideDelay:100},callbacks:{onScroll:this.internalScroll}},this.extensions)},activated(){var t;this.$refs.viewport.scrollTop=(t=this.scrollOffset)!=null?t:0},deactivated(){this.scrollOffset=this.$refs.viewport.scrollTop},beforeDestroy(){const t=this.scroller;OverlayScrollbars.valid(t)&&(t.destroy(),this.scroller=null)},methods:{scrollBottom(){this.$refs.viewport.scrollTop=this.$refs.viewport.scrollHeight},getScroller(){return this.scroller},getScrollHeight(){return this.$refs.viewport.scrollHeight},setScrollTop(t){this.$refs.viewport.scrollTop=t},getContentWrapper(){return this.textarea?this.$refs.content.querySelector("textarea"):this.$el},internalScroll(t){this.onScroll&&this.onScroll(t);const s=t.target;if(!this.reverse&&Math.ceil(s.clientHeight+s.scrollTop)>=s.scrollHeight){this.onLoadMore&&this.onLoadMore();return}this.reverse&&s.scrollTop===0&&this.onLoadMore&&this.onLoadMore()}}},__cssModules$2Y={};var __component__$2Y=normalizeComponent(__vue2_script$2Y,render$2M,staticRenderFns$2M,!1,__vue2_injectStyles$2Y,null,null,null);function __vue2_injectStyles$2Y(t){for(let s in __cssModules$2Y)this[s]=__cssModules$2Y[s]}const CustomScrollbar=function(){return __component__$2Y.exports}();var render$2L=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"data-box"},[n("ElRow",{attrs:{span:24}},t._l(t.data,function(r,a){return n("ElCol",{key:a,attrs:{md:t.span,xs:24,sm:12}},[n("div",{staticClass:"item"},[n("a",{attrs:{href:r.href,target:r.target},on:{click:function(o){r.click&&r.click(r)}}},[n("div",{staticClass:"item-icon",style:{backgroundColor:r.color}},[n("i",{class:r.icon})]),n("div",{staticClass:"item-info"},[n("CountUp",{staticClass:"title",style:{color:r.color},attrs:{animation:r.animation||t.animation,decimals:r.decimals||t.decimals,end:r.count}}),n("div",{staticClass:"info"},[t._v(t._s(r.title))])],1)])])])}),1)],1)},staticRenderFns$2L=[];const DataBox_vue_vue_type_style_index_0_lang="",__vue2_script$2X={name:"DataBox",props:{option:{type:Object,default:()=>{}}},computed:{animation(){return this.option.animation},decimals(){return this.option.decimals||0},span(){return this.option.span||8},data(){return this.option.data||[]}}},__cssModules$2X={};var __component__$2X=normalizeComponent(__vue2_script$2X,render$2L,staticRenderFns$2L,!1,__vue2_injectStyles$2X,null,null,null);function __vue2_injectStyles$2X(t){for(let s in __cssModules$2X)this[s]=__cssModules$2X[s]}const DataBox=function(){return __component__$2X.exports}();var render$2K=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"data-card"},[n("ElRow",{attrs:{span:24}},t._l(t.data,function(r,a){return n("ElCol",{key:a,attrs:{md:t.span,xs:24,sm:12}},[n("div",{staticClass:"item"},[n("a",{attrs:{href:r.href,target:r.target},on:{click:function(o){r.click&&r.click(r)}}},[n("img",{staticClass:"item-img",attrs:{src:r.src,alt:""}}),n("div",{staticClass:"item-text",style:{backgroundColor:t.bgText}},[n("h3",{style:{color:t.colorText}},[t._v(t._s(r.name))]),n("p",{style:{color:t.colorText}},[t._v(t._s(r.text))])])])])])}),1)],1)},staticRenderFns$2K=[];const DataCard_vue_vue_type_style_index_0_lang="",__vue2_script$2W={name:"DataCard",props:{option:{type:Object,default:()=>{}}},computed:{span(){return this.option.span||6},data(){return this.option.data||[]},colorText(){return this.option.colorText||"#fff"},bgText(){return this.option.bgText||"#2e323f"},borderColor(){return this.option.borderColor||"#2e323f"}}},__cssModules$2W={};var __component__$2W=normalizeComponent(__vue2_script$2W,render$2K,staticRenderFns$2K,!1,__vue2_injectStyles$2W,null,null,null);function __vue2_injectStyles$2W(t){for(let s in __cssModules$2W)this[s]=__cssModules$2W[s]}const DataCard=function(){return __component__$2W.exports}();var render$2J=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-data-cardText"},[n("ElRow",{attrs:{span:24}},t._l(t.data,function(r,a){return n("ElCol",{key:a,attrs:{md:t.span,xs:24,sm:12}},[n("div",{staticClass:"item"},[n("a",{attrs:{href:r.href,target:r.target},on:{click:function(o){r.click&&r.click(r)}}},[n("div",{staticClass:"item-header"},[t._v(" "+t._s(r.title)+" ")]),n("div",{staticClass:"item-content"},[t._v(t._s(r.content))]),n("div",{staticClass:"item-footer"},[n("span",[t._v(t._s(r.name))]),n("span",[t._v(t._s(r.date))])])])])])}),1)],1)},staticRenderFns$2J=[];const DataCardtext_vue_vue_type_style_index_0_lang="",__vue2_script$2V={name:"DataCardtext",props:{option:{type:Object,default:()=>{}}},computed:{icon(){return this.option.icon},color(){return this.option.color||"#333"},span(){return this.option.span||8},data(){return this.option.data||[]}}},__cssModules$2V={};var __component__$2V=normalizeComponent(__vue2_script$2V,render$2J,staticRenderFns$2J,!1,__vue2_injectStyles$2V,null,null,null);function __vue2_injectStyles$2V(t){for(let s in __cssModules$2V)this[s]=__cssModules$2V[s]}const DataCardtext=function(){return __component__$2V.exports}();var render$2I=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-data-display"},[n("ElRow",{attrs:{span:24}},t._l(t.data,function(r,a){return n("ElCol",{key:a,attrs:{md:t.span,xs:12,sm:12}},[n("div",{staticClass:"item",style:{color:t.color}},[n("a",{attrs:{href:r.href,target:r.target},on:{click:function(o){r.click&&r.click(r)}}},[n("CountUp",{staticClass:"count",attrs:{animation:r.animation||t.animation,decimals:r.decimals||t.decimals,end:r.count}}),n("span",{staticClass:"splitLine"}),n("div",{staticClass:"title"},[t._v(t._s(r.title))])],1)])])}),1)],1)},staticRenderFns$2I=[];const DataDisplay_vue_vue_type_style_index_0_lang="",__vue2_script$2U={name:"DataDisplay",props:{option:{type:Object,default:()=>{}}},computed:{animation(){return this.option.animation},decimals(){return this.option.decimals||0},span(){return this.option.span||6},data(){return this.option.data||[]},color(){return this.option.color||"rgb(63, 161, 255)"}}},__cssModules$2U={};var __component__$2U=normalizeComponent(__vue2_script$2U,render$2I,staticRenderFns$2I,!1,__vue2_injectStyles$2U,null,null,null);function __vue2_injectStyles$2U(t){for(let s in __cssModules$2U)this[s]=__cssModules$2U[s]}const DataDisplay=function(){return __component__$2U.exports}();var render$2H=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"data-icons"},[n("ElRow",{attrs:{span:24}},[t._l(t.data,function(r,a){return[n("ElCol",{key:a,attrs:{xs:12,sm:6,md:t.span}},[n("div",{staticClass:"item",class:[{"item--easy":t.discount}]},[n("a",{attrs:{href:r.href,target:r.target},on:{click:function(o){r.click&&r.click(r)}}},[n("div",{staticClass:"item-icon",style:{color:t.color}},[n("i",{class:r.icon})]),n("div",{staticClass:"item-info"},[n("span",[t._v(t._s(r.title))]),n("CountUp",{staticClass:"count",style:{color:t.color},attrs:{animation:r.animation||t.animation,decimals:r.decimals||t.decimals,end:r.count}})],1)])])])]})],2)],1)},staticRenderFns$2H=[];const DataIcons_vue_vue_type_style_index_0_lang="",__vue2_script$2T={name:"DataIcons",props:{option:{type:Object,default:()=>{}}},computed:{animation(){return this.option.animation},decimals(){return this.option.decimals||0},span(){return this.option.span||4},data(){return this.option.data},color(){return this.option.color||"rgb(63, 161, 255)"},discount(){return this.option.discount||!1}}},__cssModules$2T={};var __component__$2T=normalizeComponent(__vue2_script$2T,render$2H,staticRenderFns$2H,!1,__vue2_injectStyles$2T,null,null,null);function __vue2_injectStyles$2T(t){for(let s in __cssModules$2T)this[s]=__cssModules$2T[s]}const DataIcons=function(){return __component__$2T.exports}();var render$2G=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-data-imgtext"},[n("ElRow",{attrs:{span:24}},t._l(t.data,function(r,a){return n("ElCol",{key:a,attrs:{md:t.span,xs:24,sm:12}},[n("div",{staticClass:"item",style:{color:t.color}},[n("a",{attrs:{href:r.href,target:r.target},on:{click:function(o){r.click&&r.click(r)}}},[n("div",{staticClass:"item-header"},[n("img",{attrs:{src:r.imgsrc,alt:""}})]),n("div",{staticClass:"item-content"},[n("span",[t._v(t._s(r.title))]),n("p",[t._v(t._s(r.content))])]),n("div",{staticClass:"item-footer"},[n("div",{staticClass:"time"},[n("span",[t._v(t._s(r.time))])]),n("div",{staticClass:"imgs"},[n("ul",t._l(r.headimg,function(o,l){return n("li",{key:l},[n("ElTooltip",{attrs:{effect:"dark",content:o.name,placement:"top-start"}},[n("img",{attrs:{src:o.src,alt:""}})])],1)}),0)])])])])])}),1)],1)},staticRenderFns$2G=[];const DataImgtext_vue_vue_type_style_index_0_lang="",__vue2_script$2S={name:"DataImgtext",props:{option:{type:Object,default:()=>{}}},computed:{span(){return this.option.span||6},data(){return this.option.data||[]},color(){return this.option.color||"rgb(63, 161, 255)"}}},__cssModules$2S={};var __component__$2S=normalizeComponent(__vue2_script$2S,render$2G,staticRenderFns$2G,!1,__vue2_injectStyles$2S,null,null,null);function __vue2_injectStyles$2S(t){for(let s in __cssModules$2S)this[s]=__cssModules$2S[s]}const DataImgtext=function(){return __component__$2S.exports}();var render$2F=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-data-operatext"},[n("ElRow",{attrs:{span:24}},t._l(t.data,function(r,a){return n("ElCol",{key:a,attrs:{md:t.span,xs:24,sm:12}},[n("div",{staticClass:"item"},[n("a",{attrs:{href:r.href},on:{click:function(o){r.click&&r.click(r)}}},[n("div",{staticClass:"item-header",style:{backgroundColor:r.color,backgroundImage:`url(${r.colorImg})`}},[n("span",{staticClass:"item-title"},[t._v(t._s(r.title))]),n("span",{staticClass:"item-subtitle"},[t._v(t._s(r.subtitle))])]),n("div",{staticClass:"item-content"},[n("div",{staticClass:"item-img"},[n("img",{attrs:{src:r.img,alt:""}})]),n("div",{staticClass:"item-list"},t._l(r.list,function(o,l){return n("div",{key:l,staticClass:"item-row"},[n("span",{staticClass:"item-label"},[t._v(t._s(o.label))]),n("span",{staticClass:"item-value"},[t._v(t._s(o.value))])])}),0)])])])])}),1)],1)},staticRenderFns$2F=[];const DataOperatext_vue_vue_type_style_index_0_lang="",__vue2_script$2R={name:"DataOperatext",props:{option:{type:Object,default:()=>{}}},computed:{span(){return this.option.span||6},data(){return this.option.data||[]}}},__cssModules$2R={};var __component__$2R=normalizeComponent(__vue2_script$2R,render$2F,staticRenderFns$2F,!1,__vue2_injectStyles$2R,null,null,null);function __vue2_injectStyles$2R(t){for(let s in __cssModules$2R)this[s]=__cssModules$2R[s]}const DataOperatext=function(){return __component__$2R.exports}();var render$2E=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-data-panel"},[n("ElRow",{attrs:{span:24}},t._l(t.data,function(r,a){return n("ElCol",{key:a,attrs:{md:t.span,xs:24,sm:12}},[n("a",{attrs:{href:r.href},on:{click:function(o){r.click&&r.click(r)}}},[n("div",{staticClass:"item"},[n("div",{staticClass:"item-icon"},[n("i",{class:r.icon,style:{color:r.color}})]),n("div",{staticClass:"item-info"},[n("div",{staticClass:"item-title"},[t._v(t._s(r.title))]),n("CountUp",{staticClass:"item-count",attrs:{animation:r.animation||t.animation,decimals:r.decimals||t.decimals,end:r.count}})],1)])])])}),1)],1)},staticRenderFns$2E=[];const DataPanel_vue_vue_type_style_index_0_lang="",__vue2_script$2Q={name:"DataPanel",props:{option:{type:Object,default:()=>{}}},computed:{decimals(){return this.option.decimals||0},animation(){return this.option.animation},span(){return this.option.span||6},data(){return this.option.data||[]}}},__cssModules$2Q={};var __component__$2Q=normalizeComponent(__vue2_script$2Q,render$2E,staticRenderFns$2E,!1,__vue2_injectStyles$2Q,null,null,null);function __vue2_injectStyles$2Q(t){for(let s in __cssModules$2Q)this[s]=__cssModules$2Q[s]}const DataPanel=function(){return __component__$2Q.exports}();var render$2D=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-data-pay"},[n("ElRow",{attrs:{span:24}},t._l(t.data,function(r,a){return n("ElCol",{key:a,attrs:{md:t.span,xs:24,sm:12}},[n("div",{staticClass:"item"},[n("div",{staticClass:"top",style:{backgroundColor:r.color}}),n("div",{staticClass:"header"},[n("p",{staticClass:"title"},[t._v(" "+t._s(r.title)+" ")]),n("img",{staticClass:"img",attrs:{src:r.src,alt:""}}),r.subtitle?[n("p",{staticClass:"subtitle",style:{color:r.color}},[t._v(" "+t._s(r.subtitle)+" ")])]:t._e(),r.money||r.dismoney?[n("p",{staticClass:"money",style:{color:r.color}},[n("span",[t._v("¥")]),n("CountUp",{staticClass:"b",attrs:{decimals:r.decimals||t.decimals,animation:r.animation||t.animation,end:r.dismoney}}),n("s",[t._v(t._s(r.money))]),n("em",[t._v(t._s(r.tip))])],1)]:t._e(),n("div",{staticClass:"line"}),n("a",{staticClass:"btn",style:{backgroundColor:r.color},attrs:{href:r.href},on:{click:function(o){r.click&&r.click(r)}}},[t._v(t._s(r.subtext))])],2),n("div",{staticClass:"list"},t._l(r.list,function(o,l){return n("div",{key:l,staticClass:"list-item"},[o.check?n("i",{staticClass:"list-item-icon list-item--check",style:{color:r.color}},[t._v("√")]):n("i",{staticClass:"list-item-icon list-item--no"},[t._v("x")]),n("a",{attrs:{href:o.href?o.href:"javascript:void(0);"}},[n("ElTooltip",{attrs:{effect:"dark",disabled:!o.tip,placement:"top"}},[n("div",{attrs:{slot:"content"},domProps:{innerHTML:t._s(o.tip)},slot:"content"}),n("span",{class:{"list-item--link":o.href}},[t._v(t._s(o.title))])])],1)])}),0)])])}),1)],1)},staticRenderFns$2D=[];const DataPay_vue_vue_type_style_index_0_lang="",__vue2_script$2P={name:"DataPay",props:{option:{type:Object,default:()=>{}}},computed:{animation(){return this.option.animation},decimals(){return this.option.decimals||0},span(){return this.option.span||6},data(){return this.option.data||[]}}},__cssModules$2P={};var __component__$2P=normalizeComponent(__vue2_script$2P,render$2D,staticRenderFns$2D,!1,__vue2_injectStyles$2P,null,null,null);function __vue2_injectStyles$2P(t){for(let s in __cssModules$2P)this[s]=__cssModules$2P[s]}const DataPay=function(){return __component__$2P.exports}();var render$2C=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"data-price"},[n("ElRow",{attrs:{span:24}},[t._l(t.data,function(r,a){return[n("ElCol",{key:a,attrs:{xs:12,sm:6,md:t.span}},[n("div",{staticClass:"item item--active"},[n("a",{attrs:{href:r.href,target:r.target},on:{click:function(o){r.click&&r.click(r)}}},[n("div",{staticClass:"title"},[t._v(" "+t._s(r.title)+" ")]),n("div",{staticClass:"body"},[n("span",{staticClass:"price"},[t._v(t._s(r.price))]),n("span",{staticClass:"append"},[t._v(t._s(r.append))])]),n("div",{staticClass:"list"},t._l(r.list,function(o,l){return n("p",{key:l},[t._v(" "+t._s(o)+" ")])}),0)])])])]})],2)],1)},staticRenderFns$2C=[];const DataPrice_vue_vue_type_style_index_0_lang="",__vue2_script$2O={name:"DataPrice",props:{option:{type:Object,default:()=>{}}},computed:{span(){return this.option.span||6},data(){return this.option.data}}},__cssModules$2O={};var __component__$2O=normalizeComponent(__vue2_script$2O,render$2C,staticRenderFns$2C,!1,__vue2_injectStyles$2O,null,null,null);function __vue2_injectStyles$2O(t){for(let s in __cssModules$2O)this[s]=__cssModules$2O[s]}const DataPrice=function(){return __component__$2O.exports}();var render$2B=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"data-progress"},[n("ElRow",{attrs:{span:24}},t._l(t.data,function(r,a){return n("ElCol",{key:a,attrs:{md:t.span,xs:24,sm:12}},[n("div",{staticClass:"item"},[n("a",{attrs:{href:r.href,target:r.target},on:{click:function(o){r.click&&r.click(r)}}},[n("div",{staticClass:"item-header"},[n("CountUp",{staticClass:"item-count",attrs:{animation:r.animation||t.animation,decimals:r.decimals||t.decimals,end:r.count}}),n("div",{staticClass:"item-title",domProps:{textContent:t._s(r.title)}})],1),n("ElProgress",{attrs:{"stroke-width":15,percentage:r.count,color:r.color,"show-text":!1}})],1)])])}),1)],1)},staticRenderFns$2B=[];const DataProgress_vue_vue_type_style_index_0_lang="",__vue2_script$2N={name:"DataProgress",props:{option:{type:Object,default:()=>{}}},computed:{animation(){return this.option.animation},decimals(){return this.option.decimals||0},span(){return this.option.span||8},data(){return this.option.data||[]}}},__cssModules$2N={};var __component__$2N=normalizeComponent(__vue2_script$2N,render$2B,staticRenderFns$2B,!1,__vue2_injectStyles$2N,null,null,null);function __vue2_injectStyles$2N(t){for(let s in __cssModules$2N)this[s]=__cssModules$2N[s]}const DataProgress=function(){return __component__$2N.exports}();var render$2A=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-data-rotate"},[n("ElRow",{attrs:{span:24}},t._l(t.data,function(r,a){return n("ElCol",{key:a,attrs:{md:t.span,xs:24,sm:12}},[n("div",{staticClass:"item",style:{backgroundColor:r.color}},[n("div",{staticClass:"item-box"},[n("CountUp",{staticClass:"item-count",attrs:{decimals:r.decimals||t.decimals,animation:r.animation||t.animation,end:r.count}}),n("span",{staticClass:"item-title"},[t._v(t._s(r.title))]),n("i",{staticClass:"item-icon",class:r.icon})],1),n("a",{attrs:{href:r.href},on:{click:function(o){r.click&&r.click(r)}}},[n("p",{staticClass:"item-more"},[t._v("更多"),n("i",{staticClass:"el-icon-arrow-right"})])])])])}),1)],1)},staticRenderFns$2A=[];const DataRotate_vue_vue_type_style_index_0_lang="",__vue2_script$2M={name:"DataRotate",props:{option:{type:Object,default:()=>{}}},computed:{animation(){return this.option.animation},decimals(){return this.option.decimals||0},span(){return this.option.span||8},data(){return this.option.data||[]}}},__cssModules$2M={};var __component__$2M=normalizeComponent(__vue2_script$2M,render$2A,staticRenderFns$2A,!1,__vue2_injectStyles$2M,null,null,null);function __vue2_injectStyles$2M(t){for(let s in __cssModules$2M)this[s]=__cssModules$2M[s]}const DataRotate=function(){return __component__$2M.exports}(),util="",index$1="",getClass=(t,s)=>core.isPlainObject(t)||core.isString(t)?[s,t]:core.isArray(t)?[s,...t]:[s];function getInternetExplorerVersion(){const t=window.navigator.userAgent,s=t.indexOf("MSIE ");if(s>0)return parseInt(t.substring(s+5,t.indexOf(".",s)),10);if(t.indexOf("Trident/")>0){const a=t.indexOf("rv:");return parseInt(t.substring(a+3,t.indexOf(".",a)),10)}const r=t.indexOf("Edge/");return r>0?parseInt(t.substring(r+5,t.indexOf(".",r)),10):-1}function assignReactiveProperties(t,s){for(const n in s)Vue.set(t,n,s[n]);return t}const findParent$1=(t,s)=>{if(!t||!s)return null;let n=t;for(;n&&s(n);)n=n.$parent;return n},elTableProperties=["data","height","max-height","stripe","border","size","fit","show-header","highlight-current-row","current-row-key","row-class-name","row-style","cell-class-name","cell-style","header-row-class-name","header-row-style","header-cell-class-name","header-cell-style","row-key","empty-text","default-expand-all","expand-row-keys","default-sort","tooltip-effect","show-summary","sum-text","summary-method","span-method","select-on-indeterminate ","indent","lazy","load","tree-props"],elTableEvents=["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-click","cell-dblclick","row-click","row-contextmenu","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change"],elTableColumnProperties=["type","index","column-key","label","prop","width","min-width","fixed","render-header","sortable","sort-method","sort-by","sort-orders","resizable","formatter","show-overflow-tooltip","align","header-align","class-name","label-class-name","selectable","reserve-selection","filters","filter-placement","filter-multiple","filter-method","filtered-value"],elTreeProperties=["data","empty-text","node-key","props","render-after-expand","load","render-content","highlight-current","default-expand-all","expand-on-click-node","check-on-click-node","auto-expand-parent","default-expanded-keys","show-checkbox","check-strictly","default-checked-keys","current-node-key","filter-node-method","accordion","indent","icon-class","lazy","draggable","allow-drag","allow-drop"],elTreeEvents=["node-click","node-contextmenu","check-change","check","current-change","node-expand","node-collapse","node-drag-start","node-drag-enter","node-drag-leave","node-drag-over","node-drag-end","node-drop"],filterProperties=(t,s,n=!0)=>{if(core.isObject(t)){let r=s;core.isString(s)&&(r=r.split(","));const a={};return r.forEach(o=>{core.hasOwn(t,o)&&(n?a[o]=t[o]:r.includes(o)||(a[o]=t[o]))}),a}return t},normalizeProps=t=>{const s={};for(const n in t)s[core.camelize(n)]=t[n];return s},filterTableProperties=t=>filterProperties(t,elTableProperties),filterTableColumnProperties=t=>filterProperties(t,elTableColumnProperties),filterTableEvents=t=>filterProperties(t,elTableEvents),filterTreeProperties=t=>filterProperties(t,elTreeProperties),filterTreeEvents=t=>filterProperties(t,elTreeEvents),pathArgReplacer=(t="",s)=>{const n=s||{};return(t||"").replace(/{(.*?)}/g,(a,o)=>{if(o.indexOf(":")){const[l,c]=o.split(":");return n[l]?n[l]:c}else return n[o]||""})},fillPath=(t,s)=>core.isFunction(t)?pathArgReplacer(t(s),s):core.isString(t)?pathArgReplacer(t,s):null;var render$2z=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("ElementDialog",{attrs:{visible:t.show,title:t.title,width:t.width,height:t.height,"flex-column":""},on:{"update:visible":function(r){t.show=r},close:t.close,closed:t.closed},scopedSlots:t._u([{key:"default",fn:function(){return[t._t("search-form"),n("PageableTable",{ref:"pageableTable",staticStyle:{height:"60vh"},attrs:{"highlight-current-row":"","hide-on-single-page":"",model:t.model,columns:t.columns,api:t.api,"row-class-name":"pointer",multiple:t.multiple},on:{"selection-change":t.selectionChange,"row-click":t.toggleRowSelection,"current-change":t.currentChange}},[t._t("default")],2)]},proxy:!0},{key:"footer",fn:function(){return[n("ElButton",{attrs:{size:"mini",type:"primary"},on:{click:t.confirm}},[t._v(" 确 定 ")]),n("ElButton",{attrs:{size:"mini"},on:{click:t.close}},[t._v(" 关 闭 ")])]},proxy:!0}],null,!0)})},staticRenderFns$2z=[];const __vue2_script$2L={name:"DataTablePicker",mixins:[dialog.dialog],props:{api:Function,columns:Array,title:String,width:{type:String,default:"60vw"},height:{type:String,default:null},model:{type:Object,default:()=>{}},multiple:{type:Boolean,default:!0}},data(){return{selectedRows:[],currentRow:null}},methods:{filterTableColumnProperties,selectionChange(t){this.selectedRows=t},currentChange(t){this.currentRow=t},toggleRowSelection(t){this.$refs.pageableTable.$refs.table.toggleRowSelection(t)},confirm(){var t;this.multiple?(t=this.selectedRows)!=null&&t.length?(this.$emit("confirm",this.selectedRows),this.close()):this.$message.warning("请选择"):this.currentRow?(this.$emit("confirm",this.currentRow),this.close()):this.$message.warning("请选择")}}},__cssModules$2L={};var __component__$2L=normalizeComponent(__vue2_script$2L,render$2z,staticRenderFns$2z,!1,__vue2_injectStyles$2L,null,null,null);function __vue2_injectStyles$2L(t){for(let s in __cssModules$2L)this[s]=__cssModules$2L[s]}const DataTablePicker=function(){return __component__$2L.exports}();var render$2y=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-data-tabs"},[n("ElRow",{attrs:{span:24}},t._l(t.data,function(r,a){return n("ElCol",{key:a,attrs:{md:t.span,xs:24,sm:12}},[n("div",{staticClass:"item",style:{background:r.color}},[n("a",{attrs:{href:r.href,target:r.target},on:{click:function(o){r.click&&r.click(r)}}},[n("div",{staticClass:"item-header"},[n("p",[t._v(t._s(r.title))]),n("span",[t._v(t._s(r.subtitle))])]),n("div",{staticClass:"item-body"},[n("CountUp",{staticClass:"h2",attrs:{decimals:r.decimals||t.decimals,animation:r.animation||t.animation,end:r.count}})],1),n("div",{staticClass:"item-footer"},[n("span",[t._v(t._s(r.allcount))]),n("p",[t._v(t._s(r.text))])]),n("p",{staticClass:"item-tip"},[t._v(t._s(r.key))])])])])}),1)],1)},staticRenderFns$2y=[];const DataTabs_vue_vue_type_style_index_0_lang="",__vue2_script$2K={name:"DataTabs",props:{option:{type:Object,default:()=>{}}},computed:{animation(){return this.option.animation},decimals(){return this.option.decimals||0},span(){return this.option.span||8},data(){return this.option.data||[]}}},__cssModules$2K={};var __component__$2K=normalizeComponent(__vue2_script$2K,render$2y,staticRenderFns$2y,!1,__vue2_injectStyles$2K,null,null,null);function __vue2_injectStyles$2K(t){for(let s in __cssModules$2K)this[s]=__cssModules$2K[s]}const DataTabs=function(){return __component__$2K.exports}();var render$2x=function(){var t=this,s=t.$createElement,n=t._self._c||s;return t.columnBox?n("div",[n("ElDrawer",{staticClass:"avue-crud__dialog avue-crud__column avue-dialog",attrs:{"lock-scroll":"","append-to-body":"",title:"列显隐",size:t.crud.isMobile?"100%":"40%",visible:t.columnBox},on:{"update:visible":function(r){t.columnBox=r}}},[n("ElTable",{ref:"table",attrs:{data:t.data,height:"100%",size:"small",border:""}},[n("ElTableColumn",{key:"label",attrs:{align:"center",width:"100","header-align":"center",prop:"label",label:"列名"}}),t._l(t.defaultColumn,function(r,a){return[r.hide!==!0?n("ElTableColumn",{key:a,attrs:{label:r.label,prop:r.prop,align:"center","header-align":"center"},scopedSlots:t._u([{key:"default",fn:function(o){var l=o.row;return[n("ElCheckbox",{on:{change:function(c){return t.handleChange(r.prop)}},model:{value:t.crud.objectOption[l.prop][r.prop],callback:function(c){t.$set(t.crud.objectOption[l.prop],r.prop,c)},expression:"crud.objectOption[row.prop][item.prop]"}})]}}],null,!0)}):t._e()]})],2)],1)],1):t._e()},staticRenderFns$2x=[];const __vue2_script$2J={name:"DialogColumn",inject:["crud"],data(){return{data:[],columnBox:!1}},computed:{defaultColumn(){return[{label:"隐藏",prop:"hide"},{label:"冻结",prop:"fixed"},{label:"过滤",prop:"filters"},{label:"潘旭",prop:"sortable"},{label:"序号",prop:"index",hide:!0},{label:"宽度",prop:"width",hide:!0}]}},methods:{handleShow(){this.data=[],this.crud.propOption.forEach(t=>{t.showColumn!==!1&&this.data.push(t)}),this.columnBox=!0,this.$nextTick(()=>this.rowDrop())},handleChange(t){["hide","filters"].includes(t)&&this.crud.refreshTable()},rowDrop(){const t=this.$refs.table.$el.querySelectorAll(config$1.dropRowClass)[0];this.crud.tableDrop("column",t,s=>{const n=s.oldIndex,r=s.newIndex;this.crud.headerSort(n,r),this.crud.refreshTable(()=>this.rowDrop())})}}},__cssModules$2J={};var __component__$2J=normalizeComponent(__vue2_script$2J,render$2x,staticRenderFns$2x,!1,__vue2_injectStyles$2J,null,null,null);function __vue2_injectStyles$2J(t){for(let s in __cssModules$2J)this[s]=__cssModules$2J[s]}const DialogColumn=function(){return __component__$2J.exports}();var render$2w=function(){var t=this,s=t.$createElement,n=t._self._c||s;return t.box?n("div",[n("ElementDialog",{staticClass:"avue-dialog",attrs:{title:"导出","lock-scroll":"",visible:t.box,width:t.crud.isMobile?"100%":"30%"},on:{"update:visible":function(r){t.box=r}},scopedSlots:t._u([{key:"footer",fn:function(){return[n("span",{staticClass:"dialog-footer"},[n("ElButton",{attrs:{type:"primary",size:t.crud.isMediumSize},on:{click:t.handleSubmit}},[t._v("确定")]),n("ElButton",{attrs:{size:t.crud.isMediumSize},on:{click:function(r){t.box=!1}}},[t._v("取消")])],1)]},proxy:!0}],null,!1,2375905330)},[n("FyForm",{attrs:{option:t.option},model:{value:t.form,callback:function(r){t.form=r},expression:"form"}})],1)],1):t._e()},staticRenderFns$2w=[];const __vue2_script$2I={name:"DialogExcel",inject:["crud"],data(){return{option:{},columnOption:{},box:!1,form:{name:this.crud.tableOption.title}}},methods:{handleShow(){this.getColumnOption(),this.getOption(),this.box=!0},handleSubmit(){this.$Export.excel({title:this.form.name,columns:this.getColumn(),data:this.handleSum()}),this.box=!1},handleSum(){const t=this.crud.tableOption,s=this.crud.propOption,n=this.form.type?this.crud.list:this.crud.tableSelect,r=[];return this.form.params.includes("data")&&n.forEach(a=>{const o=deepClone(a);s.forEach(l=>{const c=l.parentProp?(this.crud.cascaderDIC[row.$index]||{})[l.prop]:this.crud.DIC[l.prop];o[l.prop]=detail(o,l,t,c)}),r.push(o)}),this.form.params.includes("sum")&&t.showSummary&&r.push(this.crud.sumsList),r},getOption(){this.option={submitBtn:!1,emptyBtn:!1,column:[{label:"文件名",prop:"name",span:24},{label:"选择数据",prop:"type",span:24,type:"select",dicData:[{label:"当前数据(当前页全部的数据)",value:!0},{label:"选中的数据(当前页选中的数据)",disabled:this.crud.tableOption.selection!=!0,value:!1}]},{label:"选择字段",prop:"prop",type:"tree",multiple:!0,checkStrictly:!0,span:24,props:{value:"prop"},dicData:this.columnOption},{label:"参数设置",prop:"params",type:"checkbox",span:24,value:["header","data"].concat((()=>{const t=[];return this.crud.isHeader&&t.push("headers"),this.crud.isShowSummary&&t.push("sum"),t})()),dicData:[{label:"表头",disabled:!0,value:"header"},{label:"数据源",value:"data"}].concat((()=>{const t=[];return t.push({label:"复杂表头",value:"headers",disabled:!this.crud.isHeader}),t.push({label:"合计统计",value:"sum",disabled:!this.crud.isShowSummary}),t})())}]},this.form.type=this.crud.selectLen==0},getColumnOption(){const t=deepClone(this.crud.columnOption),s=[],n=(r=[])=>{r.forEach((a,o)=>{const l=a.children;l&&!Array.isArray(l)?delete a.children:a.showColumn===!1?r.splice(o,1):(s.push(a.prop),a.children&&n(l))})};n(t),this.columnOption=t,this.form.prop=s},getColumn(){const t=deepClone(this.columnOption),s=this.$refs.form.getPropRef("prop").$refs.temp.getHalfList();if(!this.form.params)return[];if(this.form.params.includes("headers")){const n=(r=[])=>{r.forEach((a,o)=>{s.includes(a.prop)?a.children&&n(a.children):r.splice(o,1)})};return n(t),t}else{const n=[],r=(a=[])=>{a.forEach(o=>{o.children?r(o.children):s.includes(o.prop)&&n.push(o)})};return r(t),n}}}},__cssModules$2I={};var __component__$2I=normalizeComponent(__vue2_script$2I,render$2w,staticRenderFns$2w,!1,__vue2_injectStyles$2I,null,null,null);function __vue2_injectStyles$2I(t){for(let s in __cssModules$2I)this[s]=__cssModules$2I[s]}const DialogExcel=function(){return __component__$2I.exports}();var render$2v=function(){var t=this,s=t.$createElement,n=t._self._c||s;return t.box?n("div",[n("ElDrawer",{staticClass:"avue-dialog",class:["avue-crud__dialog","avue-crud__filter"],attrs:{"lock-scroll":"","append-to-body":"",title:"过滤条件",size:t.crud.isMobile?"100%":"60%",visible:t.box},on:{"update:visible":function(r){t.box=r}}},[n("ElRow",{attrs:{span:24}},[n("div",{staticClass:"avue-crud__filter-menu"},[n("ElButtonGroup",[n("ElButton",{attrs:{type:"primary",size:t.crud.isMediumSize},on:{click:t.handleAdd}},[t._v(" 新增条件 ")]),n("ElButton",{attrs:{type:"primary",size:t.crud.isMediumSize},on:{click:t.handleClear}},[t._v(" 清空条件 ")]),n("ElButton",{attrs:{type:"primary",size:t.crud.isMediumSize},on:{click:t.handleValueClear}},[t._v(" 清空数据 ")])],1)],1),t._l(t.list,function(r,a){return n("ElCol",{key:a,staticClass:"avue-crud__filter-item",attrs:{md:12,xs:24,sm:12}},[n("FySelect",{staticClass:"avue-crud__filter-label",attrs:{dic:t.columnOption,clearable:!1,size:t.crud.isMediumSize},on:{change:function(o){return t.handleChange(a)}},model:{value:r.text,callback:function(o){t.$set(r,"text",o)},expression:"column.text"}}),n("FySelect",{staticClass:"avue-crud__filter-symbol",attrs:{dic:t.symbolDic,clearable:!1,size:t.crud.isMediumSize},model:{value:r.symbol,callback:function(o){t.$set(r,"symbol",o)},expression:"column.symbol"}}),n("FyInput",{staticClass:"avue-crud__filter-value",attrs:{size:t.crud.isMediumSize},model:{value:r.value,callback:function(o){t.$set(r,"value",o)},expression:"column.value"}}),n("ElButton",{staticClass:"avue-crud__filter-icon",attrs:{type:"danger",size:"mini",circle:"",icon:"el-icon-minus"},on:{click:function(o){return t.handleDelete(a)}}})],1)}),n("ElCol",{staticClass:"avue-form__menu avue-form__menu--right",attrs:{span:24}},[n("ElButton",{attrs:{type:"primary",size:t.crud.isMediumSize},on:{click:t.handleSubmit}},[t._v(" 确 定 ")]),n("ElButton",{attrs:{size:t.crud.isMediumSize},on:{click:function(r){t.box=!1}}},[t._v(" 取 消 ")])],1)],2)],1)],1):t._e()},staticRenderFns$2v=[];const __vue2_script$2H={name:"DialogFilter",inject:["crud"],data(){return{box:!1,columnObj:{},symbolDic:[{label:"=",value:"="},{label:"≠",value:"≠"},{label:"like",value:"like"},{label:">",value:">"},{label:"≥",value:"≥"},{label:"<",value:"<"},{label:"≤",value:"≤"},{label:"∈",value:"∈"}],list:[],columnOption:{}}},methods:{handleShow(){this.getColumnOption(),this.box=!0},getColumnOption(){const t=[];deepClone(this.crud.propOption).forEach(n=>{n.showColumn!==!1&&t.push(Object.assign(n,{value:n.prop}))}),this.columnOption=t,this.columnObj=this.columnOption[0]},handleDelete(t){this.list.splice(t,1)},handleClear(){this.list=[]},handleValueClear(){this.list.forEach(t=>t.value="")},handleSubmit(){const t=[];this.list.forEach(s=>{t.push([s.text,s.symbol,s.value])}),this.crud.$emit("filter",t),this.box=!1},handleChange(t){this.list[t].value=""},handleAdd(){const t=this.columnObj.prop;this.list.push({text:t,value:"",symbol:this.symbolDic[0].value})}}},__cssModules$2H={};var __component__$2H=normalizeComponent(__vue2_script$2H,render$2v,staticRenderFns$2v,!1,__vue2_injectStyles$2H,null,null,null);function __vue2_injectStyles$2H(t){for(let s in __cssModules$2H)this[s]=__cssModules$2H[s]}const DialogFilter=function(){return __component__$2H.exports}();var render$2u=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n(t.dialogType,t._b({tag:"Component",staticClass:"dialog-form",attrs:{visible:t.visible,"destroy-on-close":"","before-close":t.beforeClose},on:{"update:visible":function(r){t.visible=r}}},"Component",t.dialog,!1),[n("FyForm",{ref:"form",attrs:{option:Object.assign({},t.deepClone(t.option),{menuBtn:!1}),status:t.disabled},on:{"update:status":function(r){t.disabled=r},submit:t.handleSubmit,"reset-change":t.close},model:{value:t.data,callback:function(r){t.data=r},expression:"data"}}),t.isEmpty(t.option.menuBtn,!0)?n("span",{staticClass:"avue-dialog__footer",class:`avue-dialog__footer--${t.menuPosition}`},[t.isEmpty(t.option.submitBtn,!0)?n("ElButton",{attrs:{size:t.$AVUE.size,icon:t.option.submitIcon,loading:t.disabled,type:"primary"},on:{click:t.submit}},[t._v(t._s(t.option.submitText))]):t._e(),t.isEmpty(t.option.emptyBtn,!0)?n("ElButton",{attrs:{disabled:t.disabled,size:t.$AVUE.size,icon:t.option.emptyIcon},on:{click:t.reset}},[t._v(t._s(t.option.emptyText))]):t._e()],1):t._e()],1)},staticRenderFns$2u=[];const DialogForm_vue_vue_type_style_index_0_lang="",DialogForm={name:"DialogForm",data(){return{opt:{},disabled:!1,callback:null,visible:!1,dialog:{closeOnClickModal:!1},isDrawer:!1,option:{submitText:"提交",emptyText:"关闭",submitIcon:"el-icon-check",emptyIcon:"el-icon-close",column:[]},data:{}}},computed:{dialogType(){return this.isDrawer?"ElDrawer":"ElementDialog"},menuPosition(){return this.opt.menuPosition||"center"}},methods:{isEmpty:core.isEmpty,deepClone,submit(){this.$refs.form.submit()},reset(){this.$refs.form.resetForm()},beforeClose(t){t(),this.close()},show(t){this.opt=t,this.callback=t.callback;const s=this.deepClone(t);["callback","option","data"].forEach(n=>delete s[n]),this.dialog=Object.assign(this.dialog,s),this.dialog.size=this.dialog.width,this.isDrawer=this.dialog.type==="drawer",this.option=Object.assign(this.option,t.option),this.data=t.data,this.visible=!0},close(){const t=()=>{this.visible=!1,this.$destroy(),this.$el.remove()};typeof this.dialog.beforeClose=="function"?this.dialog.beforeClose(t):t()},handleSubmit(t,s){this.callback&&this.callback({data:t,close:this.close,done:s})}}};DialogForm.showForm=t=>{const s=Vue.extend(DialogForm),n=new s().$mount();return document.body.appendChild(n.$el),n.show(t),n};const __vue2_script$2G=DialogForm,__cssModules$2G={};var __component__$2G=normalizeComponent(__vue2_script$2G,render$2u,staticRenderFns$2u,!1,__vue2_injectStyles$2G,null,null,null);function __vue2_injectStyles$2G(t){for(let s in __cssModules$2G)this[s]=__cssModules$2G[s]}const DialogForm$1=function(){return __component__$2G.exports}();var render$2t=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"dynamic-table"},[n("ElTable",{key:t.key,staticStyle:{width:"100%"},attrs:{data:t.value}},[t._l(t.columns,function(r){return n("ElTableColumn",{key:r.prop,attrs:{prop:r.prop,label:r.label,"min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(a){var o=a.row,l=a.$index;return[n("ElFormItem",{style:{marginBottom:t.inputDisabled?"0px":"16px"},attrs:{prop:`${t.prop}.${l}.${r.prop}`,size:"mini",rules:t.getRules(r)}},[n("ElInput",{attrs:{"prefix-icon":t.getIcon(r),disabled:t.inputDisabled,placeholder:t.inputDisabled?"":`请输入${r.label}!`},model:{value:o[r.prop],callback:function(c){t.$set(o,r.prop,c)},expression:"row[column.prop]"}})],1)]}}],null,!0)})}),t.inputDisabled?t._e():n("ElTableColumn",{attrs:{label:"操作",width:"60",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.row,o=r.column,l=r.$index;return[n("i",{staticClass:"el-icon-minus dynamic-table-action-icon",staticStyle:{position:"relative",top:"-8px",color:"#f00"},attrs:{title:"删除"},on:{click:function(c){return c.stopPropagation(),t.removeRow(a,l,o)}}})]}}],null,!1,410881950)})],2),t.inputDisabled?t._e():n("ElButton",{staticStyle:{color:"#08c108"},attrs:{type:"text",icon:"el-icon-plus"},on:{click:t.addRow}},[t._v(" 添加 ")])],1)},staticRenderFns$2t=[];const DynamicTable_vue_vue_type_style_index_0_lang="",icons={number:"fa fa-superscript",email:"el-icon-lx-mail",phone:"fa fa-phone",idCard:"el-icon-lx-news"},__vue2_script$2F={name:"DynamicTable",inject:{elForm:{default:""},elFormItem:{default:""}},props:{prop:{type:String,default:"rows"},value:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},disabled:Boolean},data(){return{key:1}},computed:{inputDisabled(){return this.disabled||(this.elForm||{}).disabled}},watch:{value:{deep:!0,handler(t){this.$emit("input",t)}},columns:{deep:!0,handler(){this.key++}}},methods:{getIcon(t){return icons[t.type]?icons[t.type]:""},addRow(){const t=this.value;t.push(this.newRow()),this.$emit("input",t)},removeRow(t,s){const n=this.value;n.splice(s,1),this.$emit("input",n)},newRow(){const t={};return this.columns.forEach(s=>{t[s.prop]=void 0}),t},getRules(t){const s=t.rules;if(["email","idCard","phone","number"].includes(t.type)){const n=core.fastClone(s||[]);return t.type==="number"&&n.push({validator:core.validateNumber,message:"请输入数字!"}),t.type==="email"&&n.push({type:"email",message:"请输入正确的邮箱地址!"}),t.type==="idCard"&&n.push({validator:core.validateIdCard,message:"请输入正确的身份证号码!"}),t.type==="phone"&&n.push({validator:core.validatePhoneNum,message:"请输入正确的手机号码!"}),n}else return s}}},__cssModules$2F={};var __component__$2F=normalizeComponent(__vue2_script$2F,render$2t,staticRenderFns$2t,!1,__vue2_injectStyles$2F,null,null,null);function __vue2_injectStyles$2F(t){for(let s in __cssModules$2F)this[s]=__cssModules$2F[s]}const DynamicTable=function(){return __component__$2F.exports}();var render$2s=function(){var t=this,s=t.$createElement,n=t._self._c||s;return t.rendered?n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"easy-popup",style:t.axisComputed},[t._t("default")],2):t._e()},staticRenderFns$2s=[];const EasyPopup_vue_vue_type_style_index_0_lang="",__vue2_script$2E={name:"EasyPopup",props:{border:{type:Boolean,default:!0},offset:{type:Object,default:()=>({x:6,y:2})},borderWidth:{type:Number,default:6}},data(){return{visible:!1,rendered:!1,axis:{x:0,y:0}}},computed:{axisComputed(){return{top:`${this.axis.y+this.offset.y}px`,left:`${this.axis.x+this.offset.x}px`}}},watch:{axis(){if(this.border){const t=document.body.offsetWidth,s=document.body.offsetHeight;this.axis.x+this.offset.x>=t&&(this.axis.x=t-this.borderWidth-this.offset.x),this.axis.y+this.offset.y>=s&&(this.axis.y=s-this.borderWidth-this.offset.y)}}},methods:{show(t){document.addEventListener("click",this.hide,!0),this.axis={x:t.clientX,y:t.clientY},this.rendered=!0,this.visible=!0},hide(){this.visible=!1,document.removeEventListener("click",this.hide)}}},__cssModules$2E={};var __component__$2E=normalizeComponent(__vue2_script$2E,render$2s,staticRenderFns$2s,!1,__vue2_injectStyles$2E,null,null,null);function __vue2_injectStyles$2E(t){for(let s in __cssModules$2E)this[s]=__cssModules$2E[s]}const EasyPopup=function(){return __component__$2E.exports}();var render$2r=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"echarts",style:{width:t.width,height:t.height}})},staticRenderFns$2r=[];const ECharts_vue_vue_type_style_index_0_lang="",INIT_TRIGGERS=["theme","initOptions","autoResize"],REWATCH_TRIGGERS=["manualUpdate","watchShallow"],__vue2_script$2D={name:"ECharts",props:{options:{type:Object},theme:{type:[String,Object]},initOptions:{type:Object},group:{type:String},width:{type:String,default:"100%"},height:{type:String,default:"100%"},autoResize:Boolean,watchShallow:Boolean,manualUpdate:Boolean},data(){return{lastArea:0}},watch:{group(t){this.chart.group=t}},created(){this.initOptionsWatcher(),INIT_TRIGGERS.forEach(t=>{this.$watch(t,()=>{this.refresh()},{deep:!0})}),REWATCH_TRIGGERS.forEach(t=>{this.$watch(t,()=>{this.initOptionsWatcher(),this.refresh()})})},mounted(){this.options&&this.init()},activated(){this.autoResize&&this.chart&&this.chart.resize()},destroyed(){this.chart&&this.destroy()},methods:{mergeOptions(t,s,n){this.manualUpdate&&(this.manualOptions=t),this.chart?this.delegateMethod("setOption",t,s,n):this.init(t)},appendData(t){this.delegateMethod("appendData",t)},resize(t){this.delegateMethod("resize",t)},dispatchAction(t){this.delegateMethod("dispatchAction",t)},convertToPixel(t,s){return this.delegateMethod("convertToPixel",t,s)},convertFromPixel(t,s){return this.delegateMethod("convertFromPixel",t,s)},containPixel(t,s){return this.delegateMethod("containPixel",t,s)},showLoading(t,s){this.delegateMethod("showLoading",t,s)},hideLoading(){this.delegateMethod("hideLoading")},getDataURL(t){return this.delegateMethod("getDataURL",t)},getConnectedDataURL(t){return this.delegateMethod("getConnectedDataURL",t)},clear(){this.delegateMethod("clear")},dispose(){this.delegateMethod("dispose")},delegateMethod(t,...s){return this.chart||this.init(),this.chart[t](...s)},delegateGet(t){return this.chart||this.init(),this.chart[t]()},getArea(){return this.$el.offsetWidth*this.$el.offsetHeight},init(t){if(this.chart)return;const s=echarts__namespace.init(this.$el,this.theme,this.initOptions);this.group&&(s.group=this.group),s.setOption(t||this.manualOptions||this.options||{},!0),Object.keys(this.$listeners).forEach(n=>{const r=this.$listeners[n];n.indexOf("zr:")===0?s.getZr().on(n.slice(3),r):s.on(n,r)}),this.autoResize&&(this.lastArea=this.getArea(),this.__resizeHandler=lodash.debounce(()=>{this.lastArea===0?(this.mergeOptions({},!0),this.resize(),this.mergeOptions(this.options||this.manualOptions||{},!0)):this.resize(),this.lastArea=this.getArea()},100,{leading:!0}),resizeDetector.addListener(this.$el,this.__resizeHandler)),Object.defineProperties(this,{width:{configurable:!0,get:()=>this.delegateGet("getWidth")},height:{configurable:!0,get:()=>this.delegateGet("getHeight")},isDisposed:{configurable:!0,get:()=>!!this.delegateGet("isDisposed")},computedOptions:{configurable:!0,get:()=>this.delegateGet("getOption")}}),this.chart=s},initOptionsWatcher(){this.__unwatchOptions&&(this.__unwatchOptions(),this.__unwatchOptions=null),this.manualUpdate||(this.__unwatchOptions=this.$watch("options",(t,s)=>{!this.chart&&t?this.init():this.chart.setOption(t,t!==s)},{deep:!this.watchShallow}))},destroy(){this.autoResize&&resizeDetector.removeListener(this.$el,this.__resizeHandler),this.dispose(),this.chart=null},refresh(){this.chart&&(this.destroy(),this.init())}},connect(t){core.isString(t)||(t=t.map(s=>s.chart)),echarts__namespace.connect(t)},disconnect(t){echarts__namespace.disConnect(t)},getMap(t){return echarts__namespace.getMap(t)},registerMap(t,s,n){echarts__namespace.registerMap(t,s,n)},registerTheme(t,s){echarts__namespace.registerTheme(t,s)},graphic:echarts__namespace.graphic},__cssModules$2D={};var __component__$2D=normalizeComponent(__vue2_script$2D,render$2r,staticRenderFns$2r,!1,__vue2_injectStyles$2D,null,null,null);function __vue2_injectStyles$2D(t){for(let s in __cssModules$2D)this[s]=__cssModules$2D[s]}const ECharts=function(){return __component__$2D.exports}();var render$2q=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"editable-progress",on:{mouseover:t.onMouseOver,mousedown:t.onMouseDown,mouseleave:t.onMouseLeave,click:t.wrapperClick}},[n("ElProgress",{directives:[{name:"show",rawName:"v-show",value:!t.slider,expression:"!slider"}],class:t.percent===100?"progress__success":"",attrs:{"stroke-width":t.strokeWidth,"text-inside":"",percentage:t.percent}}),t.disabled?t._e():n("ElSlider",{directives:[{name:"show",rawName:"v-show",value:t.slider,expression:"slider"}],ref:"slider",style:{width:`${t.max===100?100:t.max-1}%`},attrs:{"tooltip-class":t.tooltipClass,max:t.max,"format-tooltip":t.formatTooltip,disabled:t.disabled,step:t.step},on:{input:t.onInput,change:t.onChange},model:{value:t.percent,callback:function(r){t.percent=r},expression:"percent"}})],1)},staticRenderFns$2q=[];const EditableProgress_vue_vue_type_style_index_0_lang="",__vue2_script$2C={name:"EditableProgress",props:{disabled:{type:Boolean,default:!1},strokeWidth:{type:Number,default:22},step:{type:Number,default:10},max:{type:Number,default:100},value:{type:Number,default:0}},data(){return{slider:!1,mouseDown:!1,tooltipClass:"hide-tooltip",percent:this.value}},watch:{value(t){this.percent!==t&&(this.percent=t)}},methods:{formatTooltip(t){return`${t}%`},onInput(t){this.value!==t&&this.$emit("input",t)},onChange(t){this.slider=!1,this.tooltipClass="hide-tooltip",this.$emit("change",t)},onMouseOver(){this.disabled||this.slider||(this.slider=!0,this.$nextTick(()=>{this.$refs.slider.$refs.button1.$refs.tooltip.updatePopper(),this.tooltipClass=""}))},onMouseDown(){this.disabled||(this.mouseDown=!0,window.addEventListener("mouseup",this.onMouseUp))},onMouseUp(){this.disabled||(this.mouseDown=!1,this.tooltipClass="hide-tooltip",window.removeEventListener("mouseup",this.onMouseUp))},onMouseLeave(){this.disabled||this.mouseDown||(this.tooltipClass="hide-tooltip",this.slider=!1)},wrapperClick(){this.disabled||(this.slider=!0)}}},__cssModules$2C={};var __component__$2C=normalizeComponent(__vue2_script$2C,render$2q,staticRenderFns$2q,!1,__vue2_injectStyles$2C,null,null,null);function __vue2_injectStyles$2C(t){for(let s in __cssModules$2C)this[s]=__cssModules$2C[s]}const EditableProgress=function(){return __component__$2C.exports}();var render$2p=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"editable-tree"},[!t.readonly&&t.addRootNodeButtonStyle==="top-right"?n("ElButton",{staticStyle:{position:"absolute",top:"4px","z-index":"1"},style:{right:`${t.right}px`},attrs:{type:"primary",size:"mini",icon:"el-icon-plus",circle:"",plain:""},on:{click:function(r){return r.stopPropagation(),t.$emit("add-root-node")}}}):t._e(),n("div",{ref:"treeWrapper",staticClass:"et-tree-wrapper"},[!t.readonly&&t.addRootNodeButtonStyle==="top"?n("div",{staticStyle:{"padding-left":"24px"}},[n("ElButton",{attrs:{disabled:t.loading,size:"mini",type:"text"},on:{click:t.appendRootNode}},[n("i",{staticClass:"el-icon-lx-add"}),t._v(" "+t._s(t.addRootNodeLabel?t.addRootNodeLabel:`添加${t.label}`)+" ")])],1):t._e(),n("ElTree",t._g(t._b({key:t.treeKey,ref:"tree",staticClass:"flex-item",attrs:{"default-expanded-keys":t.expandedKeys,"expand-on-click-node":!1,"highlight-current":"",load:t.loadNode,data:t.innerTreeData,props:t.treeProps,lazy:t.lazy,"node-key":t.nodeKey},on:{"node-click":t.nodeClick,"node-contextmenu":t.showContextMenu,"node-expand":t.addExpandKey,"node-collapse":t.removeExpandKey},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.node,o=r.data;return[t._t("default",function(){return[o.edit?[n("span",{staticClass:"custom-tree-node flex-row flex-item oh",attrs:{"data-id":o.id}},[t.icon?n("i",{staticClass:"node-icon shrink-0",class:o.loading?"el-icon-loading":"el-icon-edit-outline"}):t._e(),n("ElInput",{ref:"labelTxt",staticClass:"node-input flex-item",attrs:{size:"mini",placeholder:t.defaultOptions.inputPlaceholder},on:{blur:function(l){return t.inputBlur(l,a,o)}},nativeOn:{keyup:function(l){return function(c){return t.inputKeyup(c,a,o)}.apply(null,arguments)},click:function(l){l.stopPropagation()}},model:{value:t.text,callback:function(l){t.text=l},expression:"text"}}),t.confirmButton?[n("ElButton",{directives:[{name:"show",rawName:"v-show",value:!o.loading,expression:"!data.loading"}],staticClass:"shrink-0",attrs:{size:"mini",type:"text"},on:{click:function(l){return l.stopPropagation(),t.onConfirm(a,o)}}},[t._v("确定")]),n("ElButton",{directives:[{name:"show",rawName:"v-show",value:!o.loading,expression:"!data.loading"}],staticClass:"shrink-0",attrs:{size:"mini",type:"text"},on:{click:function(l){return l.stopPropagation(),t.onCancel(a,o)}}},[t._v("取消")])]:t._e()],2)]:[n("span",{staticClass:"custom-tree-node",attrs:{"data-id":o.id}},[n("span",{staticClass:"node-label flex-row flex-item oh ellipsis-1"},[t.icon?n("i",{staticClass:"node-icon",class:o.loading?"el-icon-loading":t.icon(o,a)}):t._e(),n("span",{staticClass:"flex-item-relative",staticStyle:{height:"21px"}},[n("span",{staticClass:"ellipsis-1 absolute-box et-tree-label",attrs:{title:a.label}},[t._t("label",function(){return[t._v(t._s(a.label))]},{data:o,node:a})],2)]),t._t("label-suffix",null,{node:a,data:o})],2),!t.contextMenu&&!t.readonly?n("span",{directives:[{name:"show",rawName:"v-show",value:!o.loading&&!t.loading,expression:"!data.loading && !loading"}],staticClass:"handle-actions"},[n("ElButton",{attrs:{size:"mini",type:"text"},on:{click:function(l){return l.stopPropagation(),t.appendChildNode(a,o)}}},[t._v("添加")]),n("ElButton",{attrs:{size:"mini",type:"text"},on:{click:function(l){return l.stopPropagation(),t.editNode(a,o)}}},[t._v("修改")]),n("ElPopconfirm",{staticClass:"pop-confirm",attrs:{"icon-color":"red",title:"你确定要删除吗?"},on:{confirm:function(l){return t.removeNode(a,o)}},scopedSlots:t._u([{key:"reference",fn:function(){return[n("ElButton",{directives:[{name:"show",rawName:"v-show",value:a.isLeaf,expression:"node.isLeaf"}],staticStyle:{"margin-left":"4px"},attrs:{size:"mini",type:"text"},on:{click:function(l){l.stopPropagation()}}},[t._v("删除")])]},proxy:!0}],null,!0)})],1):t._e(),t.contextMenuIcon&&t.contextMenu&&!t.readonly?n("span",{directives:[{name:"show",rawName:"v-show",value:!o.loading&&!t.loading,expression:"!data.loading && !loading"}],staticClass:"handle-actions",staticStyle:{display:"inline-block"}},[n("ElButton",{staticStyle:{padding:"6px 10px 0"},attrs:{size:"mini",type:"text"},on:{click:function(l){return l.stopPropagation(),t.showContextMenu(l,o,a)}}},[t._v(". . .")])],1):t._e()])]]},{node:a,data:o})]}}],null,!0)},"ElTree",t.filterTreeProperties(t.$attrs),!1),t.filterTreeEvents(t.$listeners))),t.contextMenu&&!t.readonly?n("div",{directives:[{name:"show",rawName:"v-show",value:t.showMenu,expression:"showMenu"}],ref:"contextMenu",staticClass:"menu",style:t.position},[n("ul",{staticClass:"menu-list"},[t._t("context-menu",function(){return[n("li",{directives:[{name:"show",rawName:"v-show",value:t.curData.id>-1,expression:"curData.id > -1"}],staticClass:"menu-item",on:{click:function(r){return t.appendPeerNode(t.curNode,t.curData)}}},[n("i",{staticClass:"menu-item-icon el-icon-lx-add",staticStyle:{color:"#228b22"}}),t._v(t._s(t.menuLabel.appendPeer)+" ")]),n("li",{staticClass:"menu-item",on:{click:function(r){return t.appendChildNode(t.curNode,t.curData)}}},[n("i",{staticClass:"menu-item-icon el-icon-lx-add",staticStyle:{color:"#228b22"}}),t._v(t._s(t.menuLabel.appendChild)+" ")]),n("li",{directives:[{name:"show",rawName:"v-show",value:t.curData.id>-1,expression:"curData.id > -1"}],staticClass:"menu-item",on:{click:function(r){return t.editNode(t.curNode,t.curData)}}},[n("i",{staticClass:"menu-item-icon el-icon-edit-outline",staticStyle:{color:"#ffa500"}}),t._v(t._s(t.menuLabel.editNode)+" ")]),n("li",{directives:[{name:"show",rawName:"v-show",value:t.curNode.isLeaf,expression:"curNode.isLeaf"}],staticClass:"menu-item",on:{click:function(r){return t.removeNodeModal(t.curNode,t.curData)}}},[n("i",{staticClass:"menu-item-icon el-icon-delete",staticStyle:{color:"#f00"}}),t._v(t._s(t.menuLabel.removeNode)+" ")])]},{curNode:t.curNode,curData:t.curData})],2)]):t._e()],1)],1)},staticRenderFns$2p=[];const EditableTree_vue_vue_type_style_index_0_lang="",__vue2_script$2B={name:"EditableTree",props:{label:{type:String,default:"书签"},addRootNodeLabel:{type:String},defaultExpandedKeys:{type:Array,default:()=>[]},newNodeBuilder:{type:Function,default:(t,s)=>({name:t,parentId:s.id})},contextMenu:Boolean,lazy:{type:Boolean,default:!0},expandFirstNode:{type:Boolean,default:!0},readonly:Boolean,saveApi:{type:Function},updateApi:{type:Function},deleteApi:{type:Function},fetchApi:{type:Function},customRootNode:{type:{type:Object,default:void 0}},rootNode:{type:Object},contextMenuIcon:Boolean,contextMenuInline:Boolean,treeProps:{type:Object,default:()=>({children:"children",label:"name",isLeaf:t=>core.hasOwn(t,"hasChildren")?!t.hasChildren:core.hasOwn(t,"hasChild")?!t.hasChild:core.hasOwn(t,"children")&&t.children?t.children.length===0:!0})},menuLabel:{type:Object,default:()=>({appendPeer:"添加同级节点",appendChild:"添加",removeNode:"删除",editNode:"修改"})},icon:{type:[Function,Boolean],default:()=>"el-icon-collection-tag"},confirmButton:{type:Boolean,default:!0},addRootNodeButtonStyle:{type:String,default:"top"},reserveExpandKey:Boolean,nodeKey:{type:String,default:"id"}},data(){return{loading:!1,showMenu:!1,empty:!0,expandedKeys:this.lazy?[]:this.defaultExpandedKeys,treeData:[],curNode:{},curData:{},position:{},text:"",right:4,treeKey:Date.now()}},computed:{defaultOptions(){return{confirmButtonText:"确定",cancelButtonText:"取消",closeOnClickModal:!1,modal:!0,inputErrorMessage:`${this.label}名不能为空!`,inputPlaceholder:`请输入${this.label}名...`,inputValidator:t=>t!=null&&t.trim().length>0}},innerTreeData(){var t;return(t=this.$attrs.data)!=null&&t.length?this.$attrs.data:this.treeData}},watch:{defaultExpandedKeys:{immediate:!0,handler(t){this.expandedKeys=[...t]}}},created(){this.tryFetch()},mounted(){resize.addResizeListener(this.$refs.tree.$el,this.resize),resize.addResizeListener(this.$refs.treeWrapper,this.resize)},beforeDestroy(){resize.removeResizeListener(this.$refs.tree.$el,this.resize),resize.removeResizeListener(this.$refs.treeWrapper,this.resize)},methods:{filterTreeProperties,filterTreeEvents,addExpandKey(t){this.reserveExpandKey&&this.expandedKeys.push(t[this.nodeKey])},removeExpandKey(t){this.reserveExpandKey&&(this.expandedKeys=this.expandedKeys.filter(s=>s!==t[this.nodeKey]))},resize(){core.isVerticalScrollbarVisible(this.$refs.treeWrapper)?this.right=4+core.scrollbarWidth:this.right=4},showContextMenu(t,s,n){return v(this,null,function*(){s.contextmenu===!1||s.id===-1||s.id===0||s.edit===!0||this.contextMenu&&(this.curNode=n,this.curData=s,this.showMenu=!0,this.$refs.tree.setCurrentKey(s.id),yield this.$nextTick(),this.position=core.computePosition(t,this.$refs.contextMenu),window.addEventListener("click",this.hideContextMenu))})},hideContextMenu(){this.showMenu=!1,window.removeEventListener("click",this.hideContextMenu)},tryFetch(){return v(this,null,function*(){var t,s;if(this.lazy===!1&&this.fetchApi){const n=yield this.fetchApi((s=(t=this.rootNode)==null?void 0:t.id)!=null?s:-1,{});if(core.isPlainObject(n.data)&&(n.data=[n.data]),n.data=n.data||[],this.empty=n.data.length===0,core.isPlainObject(this.customRootNode)){const r=lodash.cloneDeep(this.customRootNode);r[this.treeProps.children||"children"]=n.data,this.treeData=[r]}else if(core.isFunction(this.customRootNode)){const r=this.customRootNode(n.data);r[this.treeProps.children||"children"]=n.data,this.treeData=core.isPlainObject(r)?[r]:r}else this.treeData=n.data}})},loadNode(t,s){return v(this,null,function*(){var n,r,a,o;if(t.level===0){const l=yield this.fetchApi((r=(n=this.rootNode)==null?void 0:n.id)!=null?r:-1,t);if(this.empty=l.data.length===0,core.isPlainObject(this.customRootNode)){const c=lodash.cloneDeep(this.customRootNode);c[this.treeProps.children||"children"]=l.data,s([c])}else if(core.isFunction(this.customRootNode)){const c=this.customRootNode(l.data);c[this.treeProps.children||"children"]=l.data,this.treeData=core.isPlainObject(c)?[c]:c}else s(l.data);yield this.$nextTick(),this.$emit("root-node-loaded",l.data),this.defaultExpandedKeys?this.expandedKeys=[(a=l==null?void 0:l.data[0])==null?void 0:a.id,...this.defaultExpandedKeys]:this.expandFirstNode&&(this.expandedKeys=[(o=l==null?void 0:l.data[0])==null?void 0:o.id])}else{if(t.leaf||t.data.isTempNode)return s([]);const l=yield this.fetchApi(t.data.id,t);s(l.data),yield this.$nextTick(),this.$emit("node-loaded",l.data)}})},clear(){this.cancelEdit(),this.removeNewNode()},clearChecked(){this.$refs.tree.setCheckedKeys([])},removeNewNode(){this.newChild&&this.newChild.id===-1&&(console.log(this.newChild),this.$refs.tree.remove(this.newChild),this.$emit("remove-new-node"))},cancelEdit(){this.editData&&(core.isUndefined(this.editData.edit)?this.$set(this.editData,"edit",!0):this.editData.edit=!1)},editNode(t,s){return v(this,null,function*(){!this.contextMenu||this.contextMenuIcon||this.contextMenuInline?(this.clear(),this.editData=s,this.text=s[this.treeProps.label],core.isUndefined(s.edit)?this.$set(s,"edit",!0):s.edit=!0,yield this.$nextTick(),this.$refs.labelTxt.focus()):yield this.$prompt(`请输入新的${this.label}名:`,S(f({},this.defaultOptions),{inputValue:s[this.treeProps.label],beforeClose:(n,r,a)=>v(this,null,function*(){if(n==="confirm"){try{r.confirmButtonLoading=!0,r.confirmButtonText="处理中...",this.text=r.inputValue,yield this.onConfirm(this.curNode,this.curData),a()}catch(o){r.confirmButtonText="确定"}r.confirmButtonLoading=!1}else a()})})).catch(n=>n)})},appendRootNode(){return v(this,null,function*(){this.text="",!this.contextMenu||this.contextMenuIcon||this.contextMenuInline?(this.clear(),this.createNewChild(void 0),this.$refs.tree.root.insertChild({data:this.newChild},void 0,!0),yield this.scrollIntoView(!0)):yield this.$prompt(`请输入${this.label}名:`,S(f({},this.defaultOptions),{beforeClose:(t,s,n)=>v(this,null,function*(){if(t==="confirm"){try{this.createNewChild(-1),s.confirmButtonLoading=!0,s.confirmButtonText="处理中...";const r=yield this.saveApi(this.newNodeBuilder(s.inputValue,{id:-1}));this.newChild[this.treeProps.label]=s.inputValue,this.newChild.edit=!1,assignReactiveProperties(this.newChild,r.data),this.$refs.tree.root.insertChild({data:this.newChild},void 0,!0),yield this.locateView(),n()}catch(r){s.confirmButtonText="确定"}s.confirmButtonLoading=!1}else n()})})).catch(t=>t)})},appendChildNode(t){this.text="";const s=t.expanded;t.expand(()=>v(this,null,function*(){!this.contextMenu||this.contextMenuIcon||this.contextMenuInline?(this.clear(),this.createNewChild(t.data.id),this.$refs.tree.append(this.newChild,t),yield this.scrollIntoView(s)):yield this.$prompt(`请输入${this.label}名:`,S(f({},this.defaultOptions),{beforeClose:(n,r,a)=>v(this,null,function*(){if(n==="confirm"){try{this.createNewChild(t.data.id),r.confirmButtonLoading=!0,r.confirmButtonText="处理中...";const o=yield this.saveApi(this.newNodeBuilder(r.inputValue,t.data));this.newChild[this.treeProps.label]=r.inputValue,this.newChild.edit=!1,assignReactiveProperties(this.newChild,o.data),this.$refs.tree.append(this.newChild,t),yield this.locateView(),a()}catch(o){r.confirmButtonText="确定"}r.confirmButtonLoading=!1}else a()})})).catch(n=>n)}))},appendChildNodeWithData(t,s,n){this.text="";const r=t.expanded;t.expand(()=>v(this,null,function*(){this.clear(),this.newChild={id:-1,parentId:s,[this.treeProps.label]:n,edit:!1,isTempNode:!0,hasChildren:!1},this.$refs.tree.append(this.newChild,t),yield this.scrollIntoView(r)}))},appendPeerNode(t){t.parent&&t.parent.level!==0?this.appendChildNode(t.parent):this.appendRootNode()},addRootNode(t){return v(this,null,function*(){this.$refs.tree.remove(t),yield this.$nextTick(),this.$refs.tree.root.insertChild({data:t},void 0,!0)})},addChildNode(t){return v(this,null,function*(){this.curNode&&this.curNode.level!==0?this.curNode.expand(()=>v(this,null,function*(){this.$refs.tree.remove(t),yield this.$nextTick(),this.$refs.tree.append(t,this.curNode)})):yield this.addRootNode(t)})},addPeerNode(t){return v(this,null,function*(){this.curNode&&this.curNode.parent&&this.curNode.parent.level!==0?this.curNode.parent.expand(()=>v(this,null,function*(){this.$refs.tree.remove(t),yield this.$nextTick(),this.$refs.tree.append(t,this.curNode.parent)})):yield this.addRootNode(t)})},updateNode(t){const s=this.$refs.tree.getNode(t);s&&(s.data=t)},setCurrentKey(t){this.$refs.tree&&this.$refs.tree.setCurrentKey(t)},createNewChild(t){this.newChild={id:-1,parentId:t,[this.treeProps.label]:"",edit:!0,isTempNode:!0,hasChildren:!1},this.$emit("create-new-node",this.newChild)},removeNodeModal(t){return v(this,null,function*(){yield this.$confirm(`你确定要删除${this.label}[<span class="break-word" style="color: orange">${t.data[this.treeProps.label]}</span>]吗?`,"系统提示",{type:"warning",modal:!0,dangerouslyUseHTMLString:!0,iconClass:"el-icon-question",closeOnClickModal:!1,confirmButtonClass:"el-button--danger",cancelButtonClass:"el-button--primary is-plain",beforeClose:(s,n,r)=>v(this,null,function*(){if(s==="confirm"){try{n.confirmButtonLoading=!0,n.confirmButtonText="删除...";const a=t.parent,o=yield this.deleteApi(t.data.id);o.code===0?(this.$message.success("删除成功!"),this.$refs.tree.remove(t),this.$emit("node-deleted",a,t.data),r()):this.$message.error(o.message)}catch(a){}n.confirmButtonText="确定",n.confirmButtonLoading=!1}else r()})}).catch(s=>s)})},removeNode(t){return v(this,null,function*(){try{const s=t.parent;if(this.deleteApi){const n=yield this.deleteApi(t.data.id);n.code===0?(this.$message.success("删除成功!"),this.$refs.tree.remove(t),this.$emit("node-deleted",s,t.data)):this.$message.error(n.message)}else this.$refs.tree.remove(t)}catch(s){}})},onConfirm(t,s){return v(this,null,function*(){if(s[this.treeProps.label]===this.text||!core.isNotEmpty(this.text)){this.clear();return}core.isUndefined(s.loading)?this.$set(s,"loading",!0):s.loading=!0;try{if(this.loading=!0,s.id===-1){const n=yield this.saveApi(this.newNodeBuilder(this.text,t.parent.data||{id:-1})),r=core.fastClone(s);assignReactiveProperties(s,S(f({},n.data),{isTempNode:!1})),this.$emit("node-added",s,r,t),this.registerNode(t)}else yield this.updateApi(S(f({},s),{[this.treeProps.label]:this.text}));s[this.treeProps.label]=this.text,s.edit=!1,this.$emit("node-updated",s,t),this.text=""}catch(n){}s.loading=!1,this.loading=!1})},onCancel(t,s){s.id===-1?this.$refs.tree.remove(t):s.edit=!1,this.text=""},nodeClick(t,s,n){this.hideContextMenu(),(core.isUndefined(t.loading)||!t.loading)&&(this.curNode=s,this.curData=t,this.$emit("on-node-click",t,s,n))},getCurrentNode(){return this.$refs.tree.getCurrentNode()},locateView(){return v(this,null,function*(){yield this.$nextTick();const t=this.$el.querySelector(`[data-id="${this.newChild.id}"]`);t&&t.scrollIntoView()})},scrollIntoView(t){return v(this,null,function*(){var s,n;yield this.$nextTick(),t||(yield core.delay(300)),(n=(s=this.$refs)==null?void 0:s.labelTxt)==null||n.focus()})},inputKeyup(t,s,n){t.keyCode===13&&this.onConfirm(s,n),t.keyCode===27&&this.clear()},inputBlur(t,s,n){this.confirmButton||this.onConfirm(s,n)},getCheckedKeys(){return this.$refs.tree.getCheckedKeys()},setCheckedKeys(t){this.$refs.tree.setCheckedKeys(t)},getCheckedNodes(){return this.$refs.tree.getCheckedNodes()},setCheckedNodes(t){this.$refs.tree.setCheckedNodes(t)},getNode(t){return this.$refs.tree.getNode(t)},getRootNode(){return this.$refs.tree.root},findTreeNode(t){return core.findTreeChildren(this.$refs.tree.root.childNodes,s=>s.data===t||s.data.id===t,"childNodes")},registerNode(t){t.store.registerNode(t),delete t.store.nodesMap[-1]},reloadTree(){return v(this,null,function*(){this.lazy?this.treeKey=Date.now():yield this.tryFetch()})}}},__cssModules$2B={};var __component__$2B=normalizeComponent(__vue2_script$2B,render$2p,staticRenderFns$2p,!1,__vue2_injectStyles$2B,null,null,null);function __vue2_injectStyles$2B(t){for(let s in __cssModules$2B)this[s]=__cssModules$2B[s]}const EditableTree=function(){return __component__$2B.exports}();var render$2o=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"el-collapse",attrs:{role:"tablist","aria-multiselectable":"true"}},[t._t("default")],2)},staticRenderFns$2o=[];const __vue2_script$2A={name:"EgdCollapse",componentName:"EgdCollapse",provide(){return{collapse:this}},props:{accordion:Boolean,value:{type:[Array,String,Number],default(){return[]}}},data(){return{activeNames:[].concat(this.value)}},watch:{value(t){this.activeNames=[].concat(t)}},created(){this.$on("item-click",this.handleItemClick)},methods:{setActiveNames(t){t=[].concat(t);const s=this.accordion?t[0]:t;this.activeNames=t,this.$emit("input",s),this.$emit("change",s)},handleItemClick(t){if(this.accordion)this.setActiveNames((this.activeNames[0]||this.activeNames[0]===0)&&this.activeNames[0]===t.name?"":t.name);else{const s=this.activeNames.slice(0),n=s.indexOf(t.name);n>-1?s.splice(n,1):s.push(t.name),this.setActiveNames(s)}}}},__cssModules$2A={};var __component__$2A=normalizeComponent(__vue2_script$2A,render$2o,staticRenderFns$2o,!1,__vue2_injectStyles$2A,null,null,null);function __vue2_injectStyles$2A(t){for(let s in __cssModules$2A)this[s]=__cssModules$2A[s]}const EgdCollapse=function(){return __component__$2A.exports}();var render$2n=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"el-collapse-item",class:{"is-active":t.isActive,"is-disabled":t.disabled}},[n("div",{attrs:{role:"tab","aria-expanded":t.isActive,"aria-controls":`el-collapse-content-${t.id}`,"aria-describedby":`el-collapse-content-${t.id}`}},[n("div",{staticClass:"el-collapse-item__header",class:{focusing:t.focusing,"is-active":t.isActive},attrs:{id:`el-collapse-head-${t.id}`,role:"button",tabindex:t.disabled?void 0:0},on:{click:t.handleHeaderClick,keyup:function(r){return!r.type.indexOf("key")&&t._k(r.keyCode,"space",32,r.key,[" ","Spacebar"])&&t._k(r.keyCode,"enter",13,r.key,"Enter")?null:(r.stopPropagation(),t.handleEnterClick.apply(null,arguments))},focus:t.handleFocus,blur:function(r){t.focusing=!1}}},[n("i",{staticClass:"el-collapse-item__arrow el-icon-arrow-right",class:{"is-active":t.isActive},staticStyle:{margin:"0 4px 0 0"}}),t._t("title",function(){return[t._v(" "+t._s(t.title)+" ")]},{title:t.title})],2)]),n("ElCollapseTransition",[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"el-collapse-item__wrap",attrs:{id:`el-collapse-content-${t.id}`,role:"tabpanel","aria-hidden":!t.isActive,"aria-labelledby":`el-collapse-head-${t.id}`}},[n("div",{staticClass:"el-collapse-item__content"},[t._t("default")],2)])])],1)},staticRenderFns$2n=[];const __vue2_script$2z={name:"EgdCollapseItem",componentName:"EgdCollapseItem",mixins:[Emitter],inject:["collapse"],props:{title:{type:String},name:{type:[String,Number],default(){return this._uid}},disabled:Boolean},data(){return{focusing:!1,isClick:!1,id:util$1.generateId()}},computed:{isActive(){return this.collapse.activeNames.indexOf(this.name)>-1}},methods:{handleFocus(){setTimeout(()=>{this.isClick?this.isClick=!1:this.focusing=!0},50)},handleHeaderClick(){this.disabled||(this.dispatch("EgdCollapse","item-click",this),this.focusing=!1,this.isClick=!0)},handleEnterClick(){this.dispatch("EgdCollapse","item-click",this)}}},__cssModules$2z={};var __component__$2z=normalizeComponent(__vue2_script$2z,render$2n,staticRenderFns$2n,!1,__vue2_injectStyles$2z,null,null,null);function __vue2_injectStyles$2z(t){for(let s in __cssModules$2z)this[s]=__cssModules$2z[s]}const EgdCollapseItem=function(){return __component__$2z.exports}();var render$2m=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("Transition",{attrs:{name:"dialog-fade"},on:{"after-enter":t.afterEnter,"after-leave":t.afterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"},{name:"dialog-drag",rawName:"v-dialog-drag:[fullScreen]",value:{onMove:t.updatePopper},expression:"{ onMove: updatePopper }",arg:t.fullScreen}],staticClass:"el-dialog__wrapper",on:{click:function(r){return r.target!==r.currentTarget?null:t.handleWrapperClick.apply(null,arguments)}}},[n("div",{ref:"dialog",class:["el-dialog","element-dialog","el-dialog-resizeable","normalize",{"is-fullscreen":t.fullScreen,"el-dialog__body-padding":t.bodyPadding,"el-dialog--center":t.center,"el-dialog--flex-row":t.flexRow,"el-dialog--flex-column":t.flexColumn},t.customClass],style:t.style,attrs:{role:"dialog","aria-modal":"true","aria-label":t.title||"dialog"}},[n("div",{staticClass:"el-dialog__header"},[t._t("title",function(){return[n("span",{staticClass:"el-dialog__title"},[t._v(t._s(t.title))])]}),n("div",{staticClass:"header-button-wrapper"},[t._t("header-button"),t.showFullScreen?n("ElButton",{staticClass:"header-button",attrs:{type:"text",icon:t.fullScreen?"el-icon-copy-document":"el-icon-full-screen",size:"medium",title:t.fullScreen?"还原":"最大化"},on:{click:t.toggleFullScreen}}):t._e(),t.showClose?n("ElButton",{staticClass:"header-button header-dialog-close",attrs:{"aria-label":"Close",type:"text",title:"关闭",icon:"el-icon-close",size:"medium"},on:{click:t.handleClose}}):t._e()],2)],2),t.rendered?n("div",{staticClass:"el-dialog__body",style:{height:t.fullScreen?"100%":t.height}},[t.destroyOnClose?[t.visible?t._t("default"):t._e()]:t._t("default")],2):t._e(),t.shouldShowFooter()?n("div",{staticClass:"el-dialog__footer"},[t._t("footer",null,{handleClose:t.handleClose})],2):t._e()])])])},staticRenderFns$2m=[];const ElementDialog_vue_vue_type_style_index_0_lang="",defaults={props:{modal:{type:Boolean,default:!0},modalAppendToBody:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},maxHeight:{type:String,default:"76vh"}}},__vue2_script$2y={name:"ElementDialog",directives:{dialogDrag:dialogDrag.dialogDrag},mixins:[...Dialog.mixins||Dialog.default.mixins,defaults],props:{title:{type:String,default:""},appendToBody:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},showFullScreen:Boolean,width:{type:String},height:{type:String},customClass:{type:String,default:""},top:{type:String,default:"10vh"},beforeClose:{type:Function},center:{type:Boolean,default:!0},destroyOnClose:Boolean,flexRow:Boolean,flexColumn:Boolean,bodyPadding:{type:Boolean,default:!0},embed:Boolean},data(){return{fullScreen:!1,closed:!1}},computed:{style(){const t={maxHeight:"100%"};return this.fullScreen||(t.marginTop=this.top,this.width&&(t.width=this.width),t.maxHeight=this.maxHeight),t}},watch:{visible(t){t?(this.closed=!1,this.$emit("open"),this.$el.addEventListener("scroll",this.updatePopper),this.$nextTick(()=>{this.$refs.dialog.scrollTop=0}),this.appendToBody&&document.body.appendChild(this.$el)):(this.$el.removeEventListener("scroll",this.updatePopper),this.closed||this.$emit("close"))}},mounted(){this.visible&&(this.rendered=!0,this.open(),this.appendToBody&&document.body.appendChild(this.$el))},destroyed(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)},methods:{toggleFullScreen(){this.fullScreen=!this.fullScreen},enterFullScreen(){this.fullScreen=!0},exitFullScreen(){this.fullScreen=!1},shouldShowFooter(){var t,s;return!!((s=(t=this.$scopedSlots).footer)!=null&&s.call(t))},handleWrapperClick(){this.closeOnClickModal&&this.handleClose()},handleClose(){typeof this.beforeClose=="function"?this.beforeClose(this.hide):this.hide()},hide(t){t!==!1&&(this.embed?this.$parent.$emit("update:visible",!1):this.$emit("update:visible",!1),this.$emit("close"),this.closed=!0)},updatePopper(){this.broadcast("ElSelectDropdown","updatePopper"),this.broadcast("ElDropdownMenu","updatePopper")},afterEnter(){this.$emit("opened")},afterLeave(){this.exitFullScreen(),this.$emit("closed")}}},__cssModules$2y={};var __component__$2y=normalizeComponent(__vue2_script$2y,render$2m,staticRenderFns$2m,!1,__vue2_injectStyles$2y,null,null,null);function __vue2_injectStyles$2y(t){for(let s in __cssModules$2y)this[s]=__cssModules$2y[s]}const ElementDialog=function(){return __component__$2y.exports}();var render$2l=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"empty-view",style:{fontSize:t.fontSize,height:t.height}},[t._t("default",function(){return[n("div",{staticClass:"flex-column horizon-center"},[t.showIcon?n("i",{class:t.icon,style:{fontSize:t.iconSize}}):t._e(),n("p",[t._v(t._s(t.emptyTips))])])]})],2)},staticRenderFns$2l=[];const EmptyView_vue_vue_type_style_index_0_lang="",__vue2_script$2x={name:"EmptyView",props:{emptyTips:{type:String,default:"暂无数据"},fontSize:{type:String,default:"20px"},icon:{type:String,default:"fa fa-dropbox"},iconSize:{type:String,default:"20px"},showIcon:{type:Boolean,default:!1},height:{type:String,default:"100%"}}},__cssModules$2x={};var __component__$2x=normalizeComponent(__vue2_script$2x,render$2l,staticRenderFns$2l,!1,__vue2_injectStyles$2x,null,null,null);function __vue2_injectStyles$2x(t){for(let s in __cssModules$2x)this[s]=__cssModules$2x[s]}const EmptyView=function(){return __component__$2x.exports}();var render$2k=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"error-view",style:{fontSize:t.fontSize,height:t.height}},[t._t("default",function(){return[n("div",{staticClass:"flex-column horizon-center"},[n("i",{staticClass:"fa fa-frown-o",style:{fontSize:t.iconSize}}),n("p",[t._v(t._s(t.errorTips))])])]})],2)},staticRenderFns$2k=[];const ErrorView_vue_vue_type_style_index_0_lang="",__vue2_script$2w={name:"ErrorView",props:{errorTips:{type:String,default:"加载失败,请重试"},fontSize:{type:String,default:"20px"},iconSize:{type:String,default:"20px"},height:{type:String,default:"100%"}}},__cssModules$2w={};var __component__$2w=normalizeComponent(__vue2_script$2w,render$2k,staticRenderFns$2k,!1,__vue2_injectStyles$2w,null,null,null);function __vue2_injectStyles$2w(t){for(let s in __cssModules$2w)this[s]=__cssModules$2w[s]}const ErrorView=function(){return __component__$2w.exports}(),__vue2_script$2v={name:"FlexColumn",functional:!0,props:{verticalCenter:{type:Boolean,default:!1},horizonCenter:{type:Boolean,default:!1},center:{type:Boolean,default:!1},textCenter:{type:Boolean,default:!1}},render(t,{data:s,children:n,props:r}){const a=getClass(s.class,"flex-column");return r.center||r.horizonCenter&&r.verticalCenter?(a.push("horizon-center"),a.push("vertical-center")):(r.horizonCenter&&a.push("horizon-center"),r.verticalCenter&&a.push("vertical-center")),r.textCenter&&a.push("text-center"),t("div",S(f({},s),{class:a}),n)}};let __vue2_render$b,__vue2_staticRenderFns$b;const __cssModules$2v={};var __component__$2v=normalizeComponent(__vue2_script$2v,__vue2_render$b,__vue2_staticRenderFns$b,!1,__vue2_injectStyles$2v,null,null,null);function __vue2_injectStyles$2v(t){for(let s in __cssModules$2v)this[s]=__cssModules$2v[s]}const FlexColumn=function(){return __component__$2v.exports}(),__vue2_script$2u={name:"FlexItem",functional:!0,props:{flexRow:{type:Boolean,default:!1},flexColumn:{type:Boolean,default:!1},verticalCenter:{type:Boolean,default:!1},horizonCenter:{type:Boolean,default:!1},center:{type:Boolean,default:!1},textCenter:{type:Boolean,default:!1},relative:{type:Boolean,default:!1},absolute:{type:Boolean,default:!1}},render(t,{children:s,data:n,props:r}){const a=getClass(n.class,r.relative?"flex-item-relative":"flex-item");return r.absolute&&!r.relative&&a.push("flex-item-relative"),r.center||r.horizonCenter&&r.verticalCenter?(a.push("horizon-center"),a.push("vertical-center")):(r.horizonCenter&&a.push("horizon-center"),r.verticalCenter&&a.push("vertical-center")),r.textCenter&&a.push("text-center"),r.flexColumn&&a.push("flex-column"),r.flexRow&&a.push("flex-row"),r.absolute?t("div",S(f({},n),{class:a}),[t("div",{class:"absolute",style:"overflow:auto"},s)]):t("div",S(f({},n),{class:a}),s)}};let __vue2_render$a,__vue2_staticRenderFns$a;const __cssModules$2u={};var __component__$2u=normalizeComponent(__vue2_script$2u,__vue2_render$a,__vue2_staticRenderFns$a,!1,__vue2_injectStyles$2u,null,null,null);function __vue2_injectStyles$2u(t){for(let s in __cssModules$2u)this[s]=__cssModules$2u[s]}const FlexItem=function(){return __component__$2u.exports}(),__vue2_script$2t={name:"FlexRow",functional:!0,props:{verticalCenter:{type:Boolean,default:!1},horizonCenter:{type:Boolean,default:!1},center:{type:Boolean,default:!1},textCenter:{type:Boolean,default:!1}},render(t,{data:s,children:n,props:r}){const a=getClass(s.class,"flex-row");return r.center||r.horizonCenter&&r.verticalCenter?(a.push("horizon-center"),a.push("vertical-center")):(r.horizonCenter&&a.push("horizon-center"),r.verticalCenter&&a.push("vertical-center")),r.textCenter&&a.push("text-center"),t("div",S(f({},s),{class:a}),n)}};let __vue2_render$9,__vue2_staticRenderFns$9;const __cssModules$2t={};var __component__$2t=normalizeComponent(__vue2_script$2t,__vue2_render$9,__vue2_staticRenderFns$9,!1,__vue2_injectStyles$2t,null,null,null);function __vue2_injectStyles$2t(t){for(let s in __cssModules$2t)this[s]=__cssModules$2t[s]}const FlexRow=function(){return __component__$2t.exports}();var render$2j=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"flex-scroller-wrapper"},[n("div",{class:["flex-scroller",{"flex-column":t.flexColumn,"flex-row":t.flexRow,"content-scroll":t.contentScroll},t.contentClass]},[t._t("default")],2)])},staticRenderFns$2j=[];const FlexScroller_vue_vue_type_style_index_0_lang="",__vue2_script$2s={name:"FlexScroller",props:{flexColumn:Boolean,flexRow:Boolean,contentClass:{type:String},contentScroll:{type:Boolean,default:!0}}},__cssModules$2s={};var __component__$2s=normalizeComponent(__vue2_script$2s,render$2j,staticRenderFns$2j,!1,__vue2_injectStyles$2s,null,null,null);function __vue2_injectStyles$2s(t){for(let s in __cssModules$2s)this[s]=__cssModules$2s[s]}const FlexScroller=function(){return __component__$2s.exports}();var render$2i=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-flow",style:t.styleName},[n("div",{style:t.styleName,attrs:{id:t.id}},[n("div",{staticClass:"avue-grid"}),t._l(t.option.nodeList,function(r,a){return[r.display?t._e():n("FlowNode",{key:a,attrs:{id:r.id,node:r,index:a,active:t.active},on:{changeNodeSite:t.changeNodeSite},nativeOn:{click:function(o){return t.handleClick(r)}},scopedSlots:t._u([{key:"header",fn:function(o){var l=o.node;return[t._t("header",null,{node:l})]}}],null,!0)},[t._t("default",null,{node:r})],2)]})],2)])},staticRenderFns$2i=[];const Flow_vue_vue_type_style_index_0_lang="",__vue2_script$2r={name:"Flow",props:{value:{type:String},option:{type:Object},width:{type:[Number,String],default:"100%"},height:{type:[Number,String],default:"100%"}},data(){return{jsPlumb:{},id:"",jsplumbSetting:{Anchors:["Top","TopCenter","TopRight","TopLeft","Right","RightMiddle","Bottom","BottomCenter","BottomRight","BottomLeft","Left","LeftMiddle"],Container:"",Connector:"Flowchart",ConnectionsDetachable:!1,DeleteEndpointsOnDetach:!1,Endpoint:["Rectangle",{height:10,width:10}],EndpointStyle:{fill:"rgba(255,255,255,0)",outlineWidth:1},LogEnabled:!0,PaintStyle:{stroke:"black",strokeWidth:3},Overlays:[["Arrow",{width:12,length:12,location:1}]],RenderMode:"svg"},jsplumbConnectOptions:{isSource:!0,isTarget:!0,anchor:"Continuous"},jsplumbSourceOptions:{filter:".avue-flow__node-drag",filterExclude:!1,anchor:"Continuous",allowLoopback:!1},jsplumbTargetOptions:{filter:".avue-flow__node-drag",filterExclude:!1,anchor:"Continuous",allowLoopback:!1},loadEasyFlowFinish:!1}},computed:{active:{get(){return this.value},set(t){this.$emit("input",t),this.$emit("change",t)}},styleName(){return{position:"relative",width:setPx(this.width),height:setPx(this.height)}}},created(){this.id=randomId(),this.jsplumbSetting.Container=this.id},mounted(){this.init()},methods:{init(){this.jsPlumb=jsPlumb.getInstance(),this.$nextTick(()=>{this.jsPlumbInit()})},handleClick(t){this.$emit("click",t)},hasLine(t,s){for(let n=0;n<this.data.lineList.length;n++){const r=this.data.lineList[n];if(r.from===t&&r.to===s)return!0}return!1},hashOppositeLine(t,s){return this.hasLine(s,t)},deleteLine(t,s){this.option.lineList=this.option.lineList.filter(function(n){return n.from!==t&&n.to!==s})},changeLine(t,s){this.deleteLine(t,s)},changeNodeSite({index:t,left:s,top:n}){for(let r=0;r<this.option.nodeList.length;r++)r===t&&(this.$set(this.option.nodeList[r],"left",s),this.$set(this.option.nodeList[r],"top",n))},deleteNode(t){return this.$confirm(`确定要删除节点${t}?`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",closeOnClickModal:!1}).then(()=>{this.option.nodeList.forEach(s=>{s.id===t&&(s.display=!0)}),this.$nextTick(function(){this.jsPlumb.removeAllEndpoints(t)})}).catch(()=>{}),!0},addNode(t){const s=this.option.nodeList.length,n=`node${s}`;this.option.nodeList.push({id:`node${s}`,name:t,left:0,top:0}),this.$nextTick(function(){this.jsPlumb.makeSource(n,this.jsplumbSourceOptions),this.jsPlumb.makeTarget(n,this.jsplumbTargetOptions),this.jsPlumb.draggable(n,{containment:"parent"})})},loadEasyFlow(){for(var t=0;t<this.option.nodeList.length;t++){const s=this.option.nodeList[t];this.jsPlumb.makeSource(s.id,this.jsplumbSourceOptions),this.jsPlumb.makeTarget(s.id,this.jsplumbTargetOptions),this.jsPlumb.draggable(s.id)}for(var t=0;t<this.option.lineList.length;t++){const n=this.option.lineList[t];this.jsPlumb.connect({source:n.from,target:n.to},this.jsplumbConnectOptions)}this.$nextTick(function(){this.loadEasyFlowFinish=!0})},jsPlumbInit(){const t=this;this.jsPlumb.ready(function(){t.jsPlumb.importDefaults(t.jsplumbSetting),t.jsPlumb.setSuspendDrawing(!1,!0),t.loadEasyFlow(),t.jsPlumb.bind("click",function(s){console.log("click",s),t.$confirm("确定删除所点击的线吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{t.jsPlumb.deleteConnection(s)}).catch(()=>{})}),t.jsPlumb.bind("connection",function(s){console.log("connection",s);const n=s.source.id,r=s.target.id;t.loadEasyFlowFinish&&t.option.lineList.push({from:n,to:r})}),t.jsPlumb.bind("connectionDetached",function(s){console.log("connectionDetached",s),t.deleteLine(s.sourceId,s.targetId)}),t.jsPlumb.bind("connectionMoved",function(s){console.log("connectionMoved",s),t.changeLine(s.originalSourceId,s.originalTargetId)}),t.jsPlumb.bind("contextmenu",function(s){console.log("contextmenu",s)}),t.jsPlumb.bind("beforeDrop",function(s){console.log("beforeDrop",s);const n=s.sourceId,r=s.targetId;return n===r?(t.$message.error("不能连接自己"),!1):t.hasLine(n,r)?(t.$message.error("不能重复连线"),!1):t.hashOppositeLine(n,r)?(t.$message.error("不能回环哦"),!1):!0}),t.jsPlumb.bind("beforeDetach",function(s){console.log("beforeDetach",s)})})}}},__cssModules$2r={};var __component__$2r=normalizeComponent(__vue2_script$2r,render$2i,staticRenderFns$2i,!1,__vue2_injectStyles$2r,null,null,null);function __vue2_injectStyles$2r(t){for(let s in __cssModules$2r)this[s]=__cssModules$2r[s]}const Flow=function(){return __component__$2r.exports}();var render$2h=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{ref:"node",style:t.flowNodeContainer,attrs:{left:t.node.left,top:t.node.top,disabled:"",mask:!1},on:{mouseenter:t.showDelete,mouseleave:t.hideDelete,mouseup:t.changeNodeSite}},[n("div",{class:["avue-flow__node",{active:t.active===t.node.id}]},[n("div",{staticClass:"avue-flow__node-header"},[n("i",{staticClass:"el-icon-rank",class:t.b("node-drag")}),t._t("header",null,{node:t.node})],2),n("div",{staticClass:"avue-flow__node-body"},[t._t("default",null,{node:t.node})],2)])])},staticRenderFns$2h=[];const __vue2_script$2q={name:"FlowNode",props:{active:[String,Number],index:[String,Number],node:Object},data(){return{mouseEnter:!1}},computed:{flowNodeContainer:{get(){return{position:"absolute",width:"200px",top:setPx(this.node.top),left:setPx(this.node.left),boxShadow:this.mouseEnter?"#66a6e0 0px 0px 12px 0px":"",backgroundColor:"transparent"}}}},methods:{showDelete(){this.mouseEnter=!0},hideDelete(){this.mouseEnter=!1},changeNodeSite(){this.node.left==this.$refs.node.style.left&&this.node.top==this.$refs.node.style.top||this.$emit("changeNodeSite",{index:this.index,left:Number(this.$refs.node.style.left.replace("px","")),top:Number(this.$refs.node.style.top.replace("px",""))})}}},__cssModules$2q={};var __component__$2q=normalizeComponent(__vue2_script$2q,render$2h,staticRenderFns$2h,!1,__vue2_injectStyles$2q,null,null,null);function __vue2_injectStyles$2q(t){for(let s in __cssModules$2q)this[s]=__cssModules$2q[s]}const FlowNode=function(){return __component__$2q.exports}();var render$2g=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{ref:"container",staticClass:"flow-viewer"},[n("EasyPopup",{ref:"popup"},[t._t("default",function(){return[t._v(" "+t._s(t.element)+" ")]},{element:t.element})],2)],1)},staticRenderFns$2g=[];const FlowViewer_vue_vue_type_style_index_0_lang="",handleWheel=ZoomScroll.prototype._handleWheel;ZoomScroll.prototype._handleWheel=function(t){const{target:s,deltaMode:n,clientX:r,clientY:a,deltaX:o,deltaY:l}=t;handleWheel.call(this,{target:s,deltaMode:n,clientX:r,clientY:a,deltaX:o,deltaY:l,preventDefault(){t.preventDefault()},ctrlKey:!0})};const ZoomScrollModule={__init__:["zoomScroll"],zoomScroll:["type",ZoomScroll]},__vue2_script$2p={name:"FlowViewer",props:{xml:{type:String,required:!0},options:{type:Object},activities:{type:Array,default:()=>[]},flows:{type:Array,default:()=>[]}},data(){return{element:null}},watch:{xml(t){var s;(s=this.bpmnViewer)==null||s.importXML(t)},activities:"highlightActivity",flows:"highlightFlow"},mounted(){var s;const t=this.$refs.container;this.bpmnViewer=new BpmnViewer(S(f({},this.options),{container:t,additionalModules:[ZoomScrollModule]})),this.bpmnViewer.on("import.done",n=>{const r=n.error,a=n.warnings;r?this.$emit("error",r):this.$emit("shown",a),this.bpmnViewer.get("canvas").zoom("fit-viewport","center");const o=this.bpmnViewer.get("eventBus");this.canvas=this.bpmnViewer.get("canvas"),o.on("element.mousemove",l=>v(this,null,function*(){l.element.type==="bpmn:UserTask"&&(this.element=l.element,yield this.$nextTick(),this.$refs.popup.show(l.originalEvent))})),o.on("element.out",()=>{this.$refs.popup.hide(),this.element={}}),this.highlightFlow(this.flows),this.highlightActivity(this.activities)}),(s=this.bpmnViewer)==null||s.importXML(this.xml)},beforeDestroy(){var t;(t=this.bpmnViewer)==null||t.destroy()},methods:{getElementById(t){return this.canvas.getRootElement().children.find(s=>s.id===t)},highlightFlow(t){this.canvas.getRootElement().children.filter(s=>s.type==="bpmn:SequenceFlow"&&this.canvas.hasMarker(s,"highlight-line")).forEach(s=>{var n;return(n=this.canvas)==null?void 0:n.removeMarker(s,"highlight-line")}),t.length>0&&t.forEach(s=>{var r;const n=this.getElementById(s);n&&((r=this.canvas)==null||r.addMarker(n,"highlight-line"))})},highlightActivity(t){this.canvas.getRootElement().children.filter(s=>s.type==="bpmn:UserTask"&&this.canvas.hasMarker(s,"highlight")).forEach(s=>{var n;return(n=this.canvas)==null?void 0:n.removeMarker(s,"highlight")}),t.length>0&&t.forEach(s=>{var r;const n=this.getElementById(s);n&&((r=this.canvas)==null||r.addMarker(n,"highlight"))})}}},__cssModules$2p={};var __component__$2p=normalizeComponent(__vue2_script$2p,render$2g,staticRenderFns$2g,!1,__vue2_injectStyles$2p,null,null,null);function __vue2_injectStyles$2p(t){for(let s in __cssModules$2p)this[s]=__cssModules$2p[s]}const FlowViewer=function(){return __component__$2p.exports}(),props$1={props:{type:{type:String,default:"danger"},size:String,icon:{type:String,default:""},nativeType:{type:String,default:"button"},loading:Boolean,disabled:Boolean,plain:Boolean,autofocus:Boolean,round:Boolean,confirmable:Boolean,text:{type:String,default:""},tag:{type:String,default:"AwesomeButton"}}},__vue2_script$2o={name:"FormButton",mixins:[Confirmable,props$1]};let __vue2_render$8,__vue2_staticRenderFns$8;const __cssModules$2o={};var __component__$2o=normalizeComponent(__vue2_script$2o,__vue2_render$8,__vue2_staticRenderFns$8,!1,__vue2_injectStyles$2o,null,null,null);function __vue2_injectStyles$2o(t){for(let s in __cssModules$2o)this[s]=__cssModules$2o[s]}const FormButton=function(){return __component__$2o.exports}(),elColManualBindKeys=["span"],elColKeys=[...Object.keys(Col.props)],elColAutoBindKeys=elColKeys.filter(t=>!elColManualBindKeys.includes(t)),elFormItemManualBindKeys=["label","prop","rules","labelWidth","required"],elFormItemKeys=[...Object.keys(FormItem$1.props)],elFormItemAutoBindKeys=elFormItemKeys.filter(t=>!elFormItemManualBindKeys.includes(t)),formItemAutoBindKeys=["wrapCol","wrapFormItem","unwrap","prefixConfig","block","placeholder","prefixPick","half",...elColKeys,...elFormItemKeys],formItemMixin={inject:{elForm:{default:{}},formItemGroup:{default:{}}},props:{disabled:Boolean,wrapCol:{type:Boolean,default:!0},wrapFormItem:{type:Boolean,default:!0},unwrap:Boolean,half:Boolean,prefixConfig:Boolean,block:Boolean,placeholder:{type:[Boolean,String],default:!0},formItemClass:String,prefixPick:Boolean,label:String,labelWidth:String,prop:String,required:Boolean,rules:[Object,Array],error:String,validateStatus:String,for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:String,span:{type:Number,default:12},tag:{type:String,default:"div"},offset:Number,pull:Number,push:Number,xs:[Number,Object],sm:[Number,Object],md:[Number,Object],lg:[Number,Object],xl:[Number,Object]},computed:{prefix(){return this.prefixConfig?"请配置":this.prefixPick?"请选择":"请输入"},message(){var t;return`${this.prefix}${((t=this.label)==null?void 0:t.replace(":",""))||""}`},computeRules(){const t=[...this.rules||[]];if(this.required){const s=t.find(n=>n.required);s?s.ref?s.label=s.label||this.label:s.message=t.message||this.message:t.unshift(this.getRequireRule())}return t.concat(this.getRules())},computeSpan(){return this.block?24:this.span},formItemProps(){return filterProperties(f(f({},this.$props),this.$attrs),formItemAutoBindKeys)},elFormItemProps(){return filterProperties(f(f({},this.$props),this.$attrs),elFormItemAutoBindKeys)},elColProps(){return filterProperties(f(f({},this.$props),this.$attrs),elColAutoBindKeys)}},watch:{computeRules(){var t,s;(s=(t=this.elForm)==null?void 0:t.clearValidate)==null||s.call(t,this.prop)}},methods:{getRules(){return[]},getRequireRule(){return{required:!0,message:this.message}}}},formInputMixin={mixins:[formItemMixin],props:{value:[Boolean,String,Array,Number,Object,Date],readonly:Boolean,disabled:Boolean},computed:{computePlaceholder(){return this.placeholder===!0?this.message:this.placeholder},listeners(){return filterProperties(this.$listeners,"input",!1)},inputDisabled(){return this.disabled}}},formPickMixin={props:{prefixPick:{type:Boolean,default:!0}}};var render$2f=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("FormItem",t._b({attrs:{rules:t.computeRules,disabled:t.inputDisabled},scopedSlots:t._u([{key:"default",fn:function(){return[t._t("default",function(){return[n("ElCascader",t._g(t._b({class:{"is-readonly":t.readonly},staticStyle:{width:"100%"},attrs:{value:t.inputVal,"show-all-levels":t.showAllLevels,separator:t.separator,readonly:t.readonly,options:t.innerOptions,props:{checkStrictly:t.checkStrictly,label:t.labelKey,value:t.valueKey},disabled:t.inputDisabled,placeholder:t.computePlaceholder},on:{input:t.emitInput}},"ElCascader",t.inputProps,!1),t.listeners))]})]},proxy:!0},{key:"error",fn:function(r){var a=r.error;return[t._t("error",null,{error:a})]}},{key:"label",fn:function(){return[t._t("label")]},proxy:!0}],null,!0)},"FormItem",t.formItemProps,!1))},staticRenderFns$2f=[];const autoBindKeys$c=Object.keys(Cascader.props).filter(t=>!["value","placeholder","disabled","options","showAllLevels","show-all-levels","separator"].includes(t)),__vue2_script$2n={name:"FormCascader",mixins:[formInputMixin,formPickMixin],props:{value:{type:[String,Number]},options:{type:Array,default:()=>[]},showAllLevels:Boolean,separator:{type:String,default:"/"},last:{type:Boolean,default:!0},checkStrictly:{type:Boolean,default:!0},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"}},data(){return{innerOptions:[]}},computed:{inputProps(){return filterProperties(f(f({},normalizeProps(this.$attrs)),this.$props),autoBindKeys$c)},inputVal(){let[t]=core.findTreeChildren(this.innerOptions,n=>n[this.valueKey]===this.value);const s=[];for(;t;)s.push(t[this.valueKey]),t=t.parent;return s.reverse()}},watch:{options:{immediate:!0,handler(t){if(t){const s=lodash.cloneDeep(t);core.setParent(s),this.innerOptions=s}else this.innerOptions=[]}}},methods:{emitInput(t){const s=this.last?t[t.length-1]:t;this.$emit("input",s)}}},__cssModules$2n={};var __component__$2n=normalizeComponent(__vue2_script$2n,render$2f,staticRenderFns$2f,!1,__vue2_injectStyles$2n,null,null,null);function __vue2_injectStyles$2n(t){for(let s in __cssModules$2n)this[s]=__cssModules$2n[s]}const FormCascader=function(){return __component__$2n.exports}();var render$2e=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("FormItem",t._b({class:["form-checkbox-group",{"form-checkbox-group-row":t.fillRow},t.ellipsis?"form-checkbox-group-row-ellipsis":t.fillRow?"form-checkbox-group-row-break-word":""],attrs:{rules:t.computeRules,disabled:t.inputDisabled},scopedSlots:t._u([{key:"default",fn:function(){return[n("ElCheckboxGroup",t._g(t._b({attrs:{disabled:t.inputDisabled,value:t.computeVal,placeholder:t.computePlaceholder},on:{input:t.emitInput}},"ElCheckboxGroup",t.inputProps,!1),t.listeners),t._l(t.innerOptions,function(r){return n("ElCheckbox",{key:r[t.valueKey],attrs:{label:r[t.valueKey]}},[t._v(" "+t._s(r[t.labelKey])+" ")])}),1),t.computeVal.includes(t.otherVal)?n("FormInput",{staticClass:"form-checkbox-group-other",style:t.otherLabel?{width:t.otherWidth}:{marginBottom:0,width:t.otherWidth},attrs:{"wrap-col":!1,"label-width":"0",prop:t.otherProp,required:!!t.otherProp,placeholder:t.otherPlaceholder,label:t.otherLabel,"show-message":!!t.otherLabel,value:t.other},on:{input:function(r){return t.$emit("update:other",r)}}}):t._e()]},proxy:!0},{key:"error",fn:function(r){var a=r.error;return[t._t("error",null,{error:a})]}},{key:"label",fn:function(){return[t._t("label")]},proxy:!0},{key:"below",fn:function(){return[t._t("below")]},proxy:!0}],null,!0)},"FormItem",t.formItemProps,!1))},staticRenderFns$2e=[];const FormCheckboxGroup_vue_vue_type_style_index_0_lang="",autoBindKeys$b=Object.keys(CheckboxGroup.props).filter(t=>!["value","placeholder","disabled"].includes(t)),__vue2_script$2m={name:"FormCheckboxGroup",mixins:[formInputMixin,formPickMixin],props:{options:{type:Array,default:()=>[]},value:{type:[String,Array]},other:{type:String},otherVal:{type:String},otherProp:{type:String},otherPlaceholder:{type:String},otherLabel:{type:String},otherWidth:{type:String,default:"200px"},gender:Boolean,confirm:Boolean,labelProp:{type:String,default:"name"},valueProp:{type:String,default:"code"},split:Boolean,classic:Boolean,fillRow:Boolean,ellipsis:Boolean},computed:{prefix(){return"请选择"},labelKey(){return this.classic?"label":this.labelProp},valueKey(){return this.classic?"value":this.valueProp},inputProps(){return filterProperties(f(f({},normalizeProps(this.$attrs)),this.$props),autoBindKeys$b)},innerOptions(){return this.gender?[{[this.labelKey]:"男",[this.valueKey]:"男"},{[this.labelKey]:"女",[this.valueKey]:"女"}]:this.confirm?[{[this.labelKey]:"是",[this.valueKey]:"是"},{[this.labelKey]:"否",[this.valueKey]:"否"}]:this.options},computeVal(){return this.split?this.value?this.value.split(","):[]:this.value||[]}},methods:{emitInput(t){this.split?this.$emit("input",t.join(",")):this.$emit("input",t)}}},__cssModules$2m={};var __component__$2m=normalizeComponent(__vue2_script$2m,render$2e,staticRenderFns$2e,!1,__vue2_injectStyles$2m,null,null,null);function __vue2_injectStyles$2m(t){for(let s in __cssModules$2m)this[s]=__cssModules$2m[s]}const FormCheckboxGroup=function(){return __component__$2m.exports}();var render$2d=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("FormItem",t._b({attrs:{rules:t.computeRules,disabled:t.inputDisabled},scopedSlots:t._u([{key:"default",fn:function(){return[n("ElDatePicker",t._g(t._b({staticStyle:{width:"100%"},attrs:{"picker-options":t.pickerOption,value:t.innerVal,size:"mini",placeholder:t.computePlaceholder,type:t.type,disabled:t.inputDisabled},on:{input:t.emitInput}},"ElDatePicker",t.inputProps,!1),t.listeners)),t.$slots.warn?n("div",{staticClass:"el-form-item__warn"},[t._t("warn")],2):t._e()]},proxy:!0},{key:"error",fn:function(r){var a=r.error;return[t.$scopedSlots.error&&t.$scopedSlots.error(a)?n("div",{staticClass:"el-form-item__error"},[t._t("error",function(){return[t._v(" "+t._s(a)+" ")]},{error:a})],2):t._e()]}},{key:"label",fn:function(){return[t._t("label")]},proxy:!0}],null,!0)},"FormItem",t.formItemProps,!1))},staticRenderFns$2d=[];const autoBindKeys$a=["type","timeArrowControl","size","format","valueFormat","readonly","placeholder","startPlaceholder","endPlaceholder","prefixIcon","clearIcon","name","disabled","clearable","id","popperClass","editable","align","value","defaultValue","defaultTime","rangeSeparator","pickerOptions","unlinkPanels","validateEvent"].filter(t=>!["value","placeholder","disabled","type","pickerOptions"].includes(t)),__vue2_script$2l={name:"FormDatePicker",mixins:[formInputMixin,formPickMixin],props:{format:{type:String},valueFormat:{type:String},rangeSeparator:{type:String},startPlaceholder:{type:String},endPlaceholder:{type:String},start:{type:String},end:{type:String},year:Boolean,month:Boolean,dates:Boolean,week:Boolean,dateTime:Boolean,dateTimeRange:Boolean,dateRange:Boolean,monthRange:Boolean,miniDate:{type:String},maxDate:{type:String},pickerOptions:{type:Object},split:{type:Boolean,default:!0}},computed:{prefix(){return"请选择"},mini(){if(this.miniDate){const t=dayjs.toDate(this.miniDate);return t.setDate(t.getDate()-1),t}else return null},max(){return this.maxDate?dayjs.toDate(this.maxDate):null},pickerOption(){return f({disabledDate:t=>{if(!this.mini&&!this.max)return!1;const s=t.getTime();return this.mini&&!this.max?s<=this.mini.getTime():!this.mini&&this.max?s>=this.max.getTime():this.mini&&this.max?s<=this.mini.getTime()&&s>=this.max.getTime():!1}},this.pickerOptions)},innerVal(){if(this.range&&this.split){const t=[];return t.push(this.start||""),t.push(this.end||""),t}else return this.value},fat(){return this.year?"yyyy":this.month||this.monthRange?"yyyy-MM":this.week?"yyyy 第 WW 周":this.dateTime||this.dateTimeRange?"yyyy-MM-dd HH:mm":"yyyy-MM-dd"},inputProps(){return filterProperties(S(f(f({},normalizeProps(this.$attrs)),this.$props),{valueFormat:this.week?"yyyy-MM-dd":this.valueFormat||this.fat,format:this.format||this.fat,rangeSeparator:this.rangeSeparator||"至",startPlaceholder:this.startPlaceholder||"开始日期",endPlaceholder:this.endPlaceholder||"结束日期"}),autoBindKeys$a)},range(){return this.dateTimeRange||this.dateRange||this.monthRange},type(){return this.year?"year":this.month?"month":this.dates?"dates":this.week?"week":this.dateTime?"datetime":this.dateTimeRange?"datetimerange":this.dateRange?"daterange":this.monthRange?"monthrange":"date"}},methods:{emitInput(t){this.range&&this.split?t?(this.$emit("update:start",t[0]),this.$emit("update:end",t[1])):(this.$emit("update:start",null),this.$emit("update:end",null)):this.$emit("input",t)}}},__cssModules$2l={};var __component__$2l=normalizeComponent(__vue2_script$2l,render$2d,staticRenderFns$2d,!1,__vue2_injectStyles$2l,null,null,null);function __vue2_injectStyles$2l(t){for(let s in __cssModules$2l)this[s]=__cssModules$2l[s]}const FormDatePicker=function(){return __component__$2l.exports}();var render$2c=function(){var t=this,s=t.$createElement,n=t._self._c||s;return t.display?n("div",{class:["avue-group",{"avue-group--header":!t.isHeader,"avue-group__arrow":!t.arrow}]},[t._t("tabs"),n("ElCollapse",{attrs:{value:t.text},on:{change:t.handleChange},model:{value:t.activeName,callback:function(r){t.activeName=r},expression:"activeName"}},[n("ElCollapseItem",{attrs:{name:1,disabled:!t.arrow}},[t.$slots.header&&t.header?n("div",{staticClass:"avue-group__header",attrs:{slot:"title"},slot:"title"},[t._t("header")],2):(t.label||t.icon)&&t.header?n("div",{staticClass:"avue-group__header",attrs:{slot:"title"},slot:"title"},[t.icon?n("i",{class:[t.icon,"avue-group__icon"]}):t._e(),t.label?n("h1",{staticClass:"avue-group__title"},[t._v(" "+t._s(t.label)+" ")]):t._e()]):t._e(),t._t("default")],2)],1)],2):t._e()},staticRenderFns$2c=[];const FormGroup_vue_vue_type_style_index_0_lang="",__vue2_script$2k={name:"FormGroup",props:{arrow:{type:Boolean,default:!0},collapse:{type:Boolean,default:!0},header:{type:Boolean,default:!0},icon:{type:String},display:{type:Boolean,default:!0},card:{type:Boolean,default:!1},label:{type:String}},data(){return{activeName:""}},computed:{text(){return this.collapse?1:0},isHeader(){return this.$slots.header&&this.header||(this.label||this.icon)&&this.header}},watch:{text(t){this.activeName=[t]}},created(){this.activeName=[this.text]},methods:{handleChange(t){this.$emit("change",t)}}},__cssModules$2k={};var __component__$2k=normalizeComponent(__vue2_script$2k,render$2c,staticRenderFns$2c,!1,__vue2_injectStyles$2k,null,null,null);function __vue2_injectStyles$2k(t){for(let s in __cssModules$2k)this[s]=__cssModules$2k[s]}const FormGroup=function(){return __component__$2k.exports}();var render$2b=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("ElForm",t._g(t._b({ref:"form",staticClass:"clear-fix",attrs:{model:t.model,size:t.size,disabled:t.disabled,"label-width":t.labelWidth,"label-position":t.labelPosition}},"ElForm",t.$attrs,!1),t.$listeners),[t._t("default")],2)},staticRenderFns$2b=[];const __vue2_script$2j={name:"FormHolder",provide(){return{formHolder:this}},props:{model:{type:Object},size:{type:String,default:"mini"},disabled:Boolean,labelPosition:{type:String,default:"right"},labelWidth:{type:String,default:"160px"},required:{type:Boolean,default:!0},requiredFields:{type:Array}},watch:{required(){this.clearValidate()}},created(){this.required||core.warning.call(findParent$1(this,t=>["FormView","FormHolder"].includes(t.$options.name)),"一般情况下不建议设置 required=false,因为 required 设置为 false 后必填字段要自行维护,在处理表格时会比较复杂,请自行权衡利弊")},methods:{clearValidate(t){var s;(s=this.$refs.form)==null||s.clearValidate(t)},validate(){return v(this,null,function*(){return this.$refs.form.validate()})},resetFields(){return this.$refs.form.resetFields()}}},__cssModules$2j={};var __component__$2j=normalizeComponent(__vue2_script$2j,render$2b,staticRenderFns$2b,!1,__vue2_injectStyles$2j,null,null,null);function __vue2_injectStyles$2j(t){for(let s in __cssModules$2j)this[s]=__cssModules$2j[s]}const FormHolder=function(){return __component__$2j.exports}();var render$2a=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("FormItem",t._b({attrs:{rules:t.computeRules,disabled:t.inputDisabled},scopedSlots:t._u([{key:"default",fn:function(){return[t._t("default",function(){return[n("ElInput",t._g(t._b({class:{"is-readonly":t.readonly},attrs:{value:t.value,readonly:t.readonly,maxlength:t.maxLength,disabled:t.inputDisabled,placeholder:t.computePlaceholder},on:{input:t.emitInput},scopedSlots:t._u([{key:"append",fn:function(){return[t._t("append")]},proxy:!0}],null,!0)},"ElInput",t.inputProps,!1),t.listeners)),t.$slots.warn?n("div",{staticClass:"el-form-item__warn"},[t._t("warn")],2):t._e()]})]},proxy:!0},{key:"error",fn:function(r){var a=r.error;return[t.$scopedSlots.error&&t.$scopedSlots.error(a)?n("div",{staticClass:"el-form-item__error"},[t._t("error",function(){return[t._v(" "+t._s(a)+" ")]},{error:a})],2):t._e()]}},{key:"label",fn:function(){return[t._t("label")]},proxy:!0}],null,!0)},"FormItem",t.formItemProps,!1))},staticRenderFns$2a=[];const autoBindKeys$9=Object.keys(Input.props).filter(t=>!["value","placeholder","disabled"].includes(t)),__vue2_script$2i={name:"FormInput",mixins:[formInputMixin],props:{value:{type:[String,Number]},maxLength:{type:String,default:"200"}},computed:{inputProps(){return filterProperties(f(f({},normalizeProps(this.$attrs)),this.$props),autoBindKeys$9)}},methods:{emitInput(t){this.$emit("input",t)}}},__cssModules$2i={};var __component__$2i=normalizeComponent(__vue2_script$2i,render$2a,staticRenderFns$2a,!1,__vue2_injectStyles$2i,null,null,null);function __vue2_injectStyles$2i(t){for(let s in __cssModules$2i)this[s]=__cssModules$2i[s]}const FormInput=function(){return __component__$2i.exports}(),validateEmail=(t,s,n)=>s&&!/^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(s)?n(new Error("invalid")):n();var render$29=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("FormItem",t._b({attrs:{rules:t.computeRules,disabled:t.inputDisabled},scopedSlots:t._u([{key:"default",fn:function(){return[n("ElInput",t._g(t._b({class:{"is-readonly":t.readonly},attrs:{value:t.value,readonly:t.readonly,maxlength:t.maxLength,disabled:t.inputDisabled,placeholder:t.computePlaceholder},on:{input:function(r){return t.$emit("input",r)}}},"ElInput",t.inputProps,!1),t.listeners))]},proxy:!0},{key:"error",fn:function(r){var a=r.error;return[t._t("error",null,{error:a})]}},{key:"label",fn:function(){return[t._t("label")]},proxy:!0}],null,!0)},"FormItem",t.formItemProps,!1))},staticRenderFns$29=[];const autoBindKeys$8=Object.keys(Input.props).filter(t=>!["value","placeholder","disabled"].includes(t)),__vue2_script$2h={name:"FormInputEmail",mixins:[formInputMixin],props:{value:{type:String},maxLength:{type:String,default:"200"}},computed:{inputProps(){return filterProperties(f(f({},normalizeProps(this.$attrs)),this.$props),autoBindKeys$8)}},methods:{getRules(){return[{validator:validateEmail,message:"请输入正确的邮箱!"}]}}},__cssModules$2h={};var __component__$2h=normalizeComponent(__vue2_script$2h,render$29,staticRenderFns$29,!1,__vue2_injectStyles$2h,null,null,null);function __vue2_injectStyles$2h(t){for(let s in __cssModules$2h)this[s]=__cssModules$2h[s]}const FormInputEmail=function(){return __component__$2h.exports}();var render$28=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("FormItem",t._b({attrs:{rules:t.computeRules,disabled:t.inputDisabled},scopedSlots:t._u([{key:"default",fn:function(){return[n("ElInput",t._g(t._b({class:{"is-readonly":t.readonly},attrs:{value:t.value,readonly:t.readonly,maxlength:t.maxLength,disabled:t.inputDisabled,placeholder:t.computePlaceholder},on:{input:function(r){return t.$emit("input",r)}}},"ElInput",t.inputProps,!1),t.listeners)),t.$slots.warn?n("div",{staticClass:"el-form-item__error"},[t._t("warn")],2):t._e()]},proxy:!0},{key:"error",fn:function(r){var a=r.error;return[t.$scopedSlots.error&&t.$scopedSlots.error(a)?n("div",{staticClass:"el-form-item__error"},[t._t("error",function(){return[t._v(" "+t._s(a)+" ")]},{error:a})],2):t._e()]}},{key:"label",fn:function(){return[t._t("label")]},proxy:!0}],null,!0)},"FormItem",t.formItemProps,!1))},staticRenderFns$28=[];const autoBindKeys$7=Object.keys(Input.props).filter(t=>!["value","placeholder","disabled"].includes(t)),__vue2_script$2g={name:"FormInputIdCard",mixins:[formInputMixin],props:{value:{type:String},maxLength:{type:String,default:"200"}},computed:{inputProps(){return filterProperties(f(f({},normalizeProps(this.$attrs)),this.$props),autoBindKeys$7)}},methods:{validateIdCard:core.validateIdCard,getRules(){return[{validator:core.validateIdCard,message:"请输入正确的身份证号码!"}]}}},__cssModules$2g={};var __component__$2g=normalizeComponent(__vue2_script$2g,render$28,staticRenderFns$28,!1,__vue2_injectStyles$2g,null,null,null);function __vue2_injectStyles$2g(t){for(let s in __cssModules$2g)this[s]=__cssModules$2g[s]}const FormInputIdCard=function(){return __component__$2g.exports}(),inputNumberMixin={props:{suffixIcon:{type:String},prefixIcon:{type:String},step:{type:Number,default:1},stepStrictly:{type:Boolean,default:!1},max:{type:Number,default:1/0},min:{type:Number,default:-1/0},value:{type:[Number,String]},disabled:Boolean,size:{type:String},controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:""},name:{type:String},label:{type:String},placeholder:{type:String},precision:{type:Number,default:void 0,validator(t){return t>=0&&t===parseInt(t,10)}}}};var render$27=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("FormItem",t._b({attrs:{rules:t.computeRules,disabled:t.inputDisabled},scopedSlots:t._u([{key:"default",fn:function(){return[n("InputNumber",t._g(t._b({staticClass:"form-input-number",attrs:{value:t.value,controls:!1,precision:t.precision,max:t.max,min:t.min,placeholder:t.computePlaceholder,disabled:t.inputDisabled},on:{input:function(r){return t.$emit("input",r)}},scopedSlots:t._u([{key:"append",fn:function(){return[t._t("append")]},proxy:!0},{key:"prefix",fn:function(){return[t._t("prefix")]},proxy:!0},{key:"prepend",fn:function(){return[t._t("prepend")]},proxy:!0},{key:"suffix",fn:function(){return[t._t("suffix")]},proxy:!0}],null,!0)},"InputNumber",t.inputProps,!1),t.listeners))]},proxy:!0},{key:"error",fn:function(r){var a=r.error;return[t._t("error",null,{error:a})]}},{key:"label",fn:function(){return[t._t("label")]},proxy:!0}],null,!0)},"FormItem",t.formItemProps,!1))},staticRenderFns$27=[];const FormInputNumber_vue_vue_type_style_index_0_lang="",autoBindKeys$6=Object.keys(inputNumberMixin.props).filter(t=>!["value","placeholder","disabled","precision","max","min"].includes(t)),__vue2_script$2f={name:"FormInputNumber",mixins:[formInputMixin],props:{value:{type:[String,Number]},max:{type:Number,default:1/0},min:{type:Number,default:-1/0},precision:{type:Number,validator(t){return t>=0&&t===parseInt(t,10)}}},computed:{inputProps(){return filterProperties(f(f({},normalizeProps(this.$attrs)),this.$props),autoBindKeys$6)}}},__cssModules$2f={};var __component__$2f=normalizeComponent(__vue2_script$2f,render$27,staticRenderFns$27,!1,__vue2_injectStyles$2f,null,null,null);function __vue2_injectStyles$2f(t){for(let s in __cssModules$2f)this[s]=__cssModules$2f[s]}const FormInputNumber=function(){return __component__$2f.exports}();var render$26=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("FormItem",t._b({attrs:{rules:t.computeRules,disabled:t.inputDisabled},scopedSlots:t._u([{key:"default",fn:function(){return[n("ElInput",t._g(t._b({class:{"is-readonly":t.readonly},attrs:{value:t.value,readonly:t.readonly,maxlength:t.maxLength,disabled:t.inputDisabled,placeholder:t.computePlaceholder},on:{input:t.emitInput}},"ElInput",t.inputProps,!1),t.listeners))]},proxy:!0},{key:"error",fn:function(r){var a=r.error;return[t._t("error",null,{error:a})]}},{key:"label",fn:function(){return[t._t("label")]},proxy:!0}],null,!0)},"FormItem",t.formItemProps,!1))},staticRenderFns$26=[];const autoBindKeys$5=Object.keys(Input.props).filter(t=>!["value","placeholder","disabled"].includes(t)),__vue2_script$2e={name:"FormInputPhoneNumber",mixins:[formInputMixin],props:{value:{type:String},maxLength:{type:String,default:"200"}},computed:{inputProps(){return filterProperties(f(f({},normalizeProps(this.$attrs)),this.$props),autoBindKeys$5)}},methods:{getRules(){return[{validator:core.validatePhoneNum,message:"请输入正确的手机号码!"}]},emitInput(t){this.$emit("input",t)}}},__cssModules$2e={};var __component__$2e=normalizeComponent(__vue2_script$2e,render$26,staticRenderFns$26,!1,__vue2_injectStyles$2e,null,null,null);function __vue2_injectStyles$2e(t){for(let s in __cssModules$2e)this[s]=__cssModules$2e[s]}const FormInputPhoneNumber=function(){return __component__$2e.exports}();var render$25=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("FormItem",t._b({attrs:{rules:t.computeRules,disabled:t.inputDisabled},scopedSlots:t._u([{key:"default",fn:function(){return[n("ElTimePicker",t._g(t._b({attrs:{"is-range":t.range,value:t.value,disabled:t.inputDisabled,format:t.format,"value-format":t.valueFormat||t.format,clearable:"","picker-options":{start:t.start,end:t.end,step:t.step,minTime:t.minTime,maxTime:t.maxTime,selectableRange:t.selectableRange},"start-placeholder":"开始时间","end-placeholder":"结束时间",placeholder:t.computePlaceholder},on:{input:function(r){return t.$emit("input",r)}}},"ElTimePicker",t.inputProps,!1),t.listeners))]},proxy:!0},{key:"error",fn:function(r){var a=r.error;return[t._t("error",null,{error:a})]}},{key:"label",fn:function(){return[t._t("label")]},proxy:!0}],null,!0)},"FormItem",t.formItemProps,!1))},staticRenderFns$25=[];const autoBindKeys$4=Object.keys(TimePicker.props).filter(t=>!["value","placeholder","disabled"].includes(t)),__vue2_script$2d={name:"FormInputTime",mixins:[formInputMixin],props:{range:Boolean,format:{type:String,default:"HH:mm:ss"},valueFormat:{type:String},start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:{type:String,default:"00:00"},maxTime:{type:String,default:""},selectableRange:{type:String}},computed:{prefix(){return"请选择"},inputProps(){return filterProperties(f(f({},normalizeProps(this.$attrs)),this.$props),autoBindKeys$4)}}},__cssModules$2d={};var __component__$2d=normalizeComponent(__vue2_script$2d,render$25,staticRenderFns$25,!1,__vue2_injectStyles$2d,null,null,null);function __vue2_injectStyles$2d(t){for(let s in __cssModules$2d)this[s]=__cssModules$2d[s]}const FormInputTime=function(){return __component__$2d.exports}(),__vue2_script$2c={name:"FormItem",mixins:[formItemMixin],inject:{formHolder:{default:""},formItemConfig:{default:null}},computed:{gutter(){var s;let t=this.$parent;for(;t&&t.$options.componentName!=="ElRow";)t=t.$parent;return(s=t==null?void 0:t.gutter)!=null?s:0}},methods:{renderFormItem(){var I,T,F;const t=this.$createElement,{label:s,labelWidth:n,prop:r,rules:a,$scopedSlots:o,elFormItemProps:l,elForm:c,formHolder:u,formItemClass:d,required:p,block:h,half:m,wrapCol:_,wrapFormItem:x,disabled:b,formItemConfig:g,getRequireRule:y}=this;let C=a,$=p,w=p,E=h,k=_;g&&(core.hasOwn(g,"block")&&(E=g.block),core.hasOwn(g,"wrapCol")&&(k=g.wrapCol));const M=E&&m&&k?`calc( 50% - ${this.gutter/2}px)`:"";return b||c!=null&&c.disabled?(C=[],u&&!u.required&&!((I=u.requiredFields)!=null&&I.includes(r))&&(w=!1)):(u&&!u.required&&!((T=u.requiredFields)!=null&&T.includes(r))&&($=!1),$&&!(C!=null&&C.length)&&r?C=[y()]:$||(w=!1,C&&(C=C.filter(O=>!O.required)))),x?t("ElFormItem",{style:{width:M},key:`${r}-${$}`,class:w?`form-item required ${d||""}`:`${d||""}`,scopedSlots:o,props:f({},l),attrs:{label:s,"label-width":n,prop:r,rules:C},ref:"formItem"}):t("div",[(F=o.default)==null?void 0:F.call(o)])},clearValidate(){return v(this,null,function*(){var t,s;yield this.$nextTick(),(s=(t=this.$refs.formItem).clearValidate)==null||s.call(t)})},validate(){return v(this,null,function*(){var t,s;yield this.$nextTick(),(s=(t=this.$refs.formItem).validate)==null||s.call(t)})}},render(){var d,p;const t=arguments[0],{computeSpan:s,wrapCol:n,formItemConfig:r,renderFormItem:a,elColProps:o,$scopedSlots:l,unwrap:c}=this;let u=n;return r&&core.hasOwn(r,"wrapCol")&&(u=r.wrapCol),c?t("div",[(d=l.default)==null?void 0:d.call(l)]):u?t("ElCol",{props:f({},o),attrs:{span:s}},[a(),(p=l==null?void 0:l.below)==null?void 0:p.call(l)]):a()}},FormItem_vue_vue_type_style_index_0_lang="";let __vue2_render$7,__vue2_staticRenderFns$7;const __cssModules$2c={};var __component__$2c=normalizeComponent(__vue2_script$2c,__vue2_render$7,__vue2_staticRenderFns$7,!1,__vue2_injectStyles$2c,null,null,null);function __vue2_injectStyles$2c(t){for(let s in __cssModules$2c)this[s]=__cssModules$2c[s]}const FormItem=function(){return __component__$2c.exports}(),__vue2_script$2b={name:"FormItemConfigProvider",provide(){return{formItemConfig:this.config}},props:{block:Boolean,wrapCol:{type:Boolean,default:!0}},data(){return{config:{block:!1,wrapCol:!0}}},watch:{block:{immediate:!0,handler(t){this.config.block=t}},wrapCol:{immediate:!0,handler(t){this.config.wrapCol=t}}},render(){return this.$scopedSlots.default()}};let __vue2_render$6,__vue2_staticRenderFns$6;const __cssModules$2b={};var __component__$2b=normalizeComponent(__vue2_script$2b,__vue2_render$6,__vue2_staticRenderFns$6,!1,__vue2_injectStyles$2b,null,null,null);function __vue2_injectStyles$2b(t){for(let s in __cssModules$2b)this[s]=__cssModules$2b[s]}const FormItemConfigProvider=function(){return __component__$2b.exports}(),formProperties=["disabled","size","statusIcon","inlineMessage","autoLabelWidth","hideRequiredAsterisk","$emit","validate","clearValidate"],formMethod=["$emit","validate","clearValidate"],__vue2_script$2a={name:"FormItemGroup",inject:{elForm:{default:{}}},provide(){return{elForm:this.formConfig,formItemGroup:this}},props:{blockTitle:{type:String},active:Boolean,enabled:Boolean,disabled:Boolean,wrapRow:{type:Boolean,default:!0},gutter:{type:Number,default:20},collapse:Boolean},data(){const t={};return formProperties.forEach(s=>{t[s]=null}),{expand:!0,formConfig:t}},computed:{formCfg(){const t={enabled:this.enabled,forbidden:this.disabled};return formProperties.forEach(s=>{t[s]=this.elForm[s]}),t}},watch:{collapse:{immediate:!0,handler(t){this.expand=!t}},formCfg:{immediate:!0,handler(){this.formConfig.disabled=this.isDisabled(),formProperties.forEach(t=>{var s;t!=="disabled"&&(formMethod.includes(t)?this.formConfig[t]=(s=this.elForm[t])==null?void 0:s.bind(this.elForm):this.formConfig[t]=this.elForm[t])})}}},mounted(){this.dispatch("FormView","FormView.addGroup",[this])},beforeDestroy(){this.dispatch("FormView","FormView.removeGroup",[this])},methods:{isDisabled(){return this.disabled?this.disabled:this.enabled?!this.enabled:this.elForm.disabled},dispatch(t,s,n){let r=this.$parent||this.$root,a=r.$options.name;for(;r&&(!a||a!==t);)r=r.$parent,r&&(a=r.$options.name);r&&r.$emit.apply(r,[s].concat(n))},renderDefault(){const t=this.$createElement,{wrapRow:s,gutter:n,formConfig:r,$scopedSlots:a}=this;return core.isFunction(a.default)?s?t("ElRow",{attrs:{gutter:n},class:"form-item-group-row"},[a.default({disabled:r.disabled})]):a.default({disabled:r.disabled}):t("EmptyView",{attrs:{"font-size":"14px","empty-tips":"暂无信息"}})},toggle(){this.expand=!this.expand},open(){this.expand=!0}},render(){const t=arguments[0],{renderDefault:s,blockTitle:n,active:r,expand:a,toggle:o,$scopedSlots:l,isDisabled:c}=this;return t("div",{class:["form-item-group",{"default-active":r,"is-disabled":c()}]},[t("div",{class:"form-item-group-title",on:{click:o}},[t("span",{class:"flex-item"},[n,l["title-right"]?l["title-right"]():null])," ",t("i",{class:a?"el-icon-arrow-down":"el-icon-arrow-right"})]),t("ElCollapseTransition",[t("div",{directives:[{name:"show",value:a}]},[s()])])])}},FormItemGroup_vue_vue_type_style_index_0_lang="";let __vue2_render$5,__vue2_staticRenderFns$5;const __cssModules$2a={};var __component__$2a=normalizeComponent(__vue2_script$2a,__vue2_render$5,__vue2_staticRenderFns$5,!1,__vue2_injectStyles$2a,null,null,null);function __vue2_injectStyles$2a(t){for(let s in __cssModules$2a)this[s]=__cssModules$2a[s]}const FormItemGroup=function(){return __component__$2a.exports}();var render$24=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("FormItem",t._b({class:["form-radio-group",{"form-radio-group-row":t.fillRow,inline:t.inline},t.ellipsis?"form-radio-group-row-ellipsis":"form-radio-group-row-break-word"],attrs:{rules:t.computeRules,disabled:t.inputDisabled},scopedSlots:t._u([{key:"default",fn:function(){return[n("ElRadioGroup",t._g(t._b({class:{"over-flow":t.overFlow},attrs:{value:t.value,disabled:t.inputDisabled,placeholder:t.computePlaceholder},on:{input:function(r){return t.$emit("input",r)}}},"ElRadioGroup",t.inputProps,!1),t.listeners),[t.allowCancel?t._l(t.innerOptions,function(r){return n("ElRadio",{key:r[t.valueKey],attrs:{label:r[t.valueKey]},nativeOn:{click:function(a){return a.preventDefault(),a.stopPropagation(),t.toggle(r)}}},[t._v(" "+t._s(r[t.labelKey])+" ")])}):t._l(t.innerOptions,function(r){return n("ElRadio",{key:r[t.valueKey],attrs:{label:r[t.valueKey]}},[t._v(" "+t._s(r[t.labelKey])+" ")])})],2),t._t("append")]},proxy:!0},{key:"error",fn:function(r){var a=r.error;return[t._t("error",null,{error:a})]}},{key:"label",fn:function(){return[t._t("label")]},proxy:!0},{key:"below",fn:function(){return[t._t("below")]},proxy:!0}],null,!0)},"FormItem",t.formItemProps,!1))},staticRenderFns$24=[];const FormRadioGroup_vue_vue_type_style_index_0_lang="",autoBindKeys$3=Object.keys(RadioGroup.props).filter(t=>!["value","placeholder","disabled"].includes(t)),__vue2_script$29={name:"FormRadioGroup",mixins:[formInputMixin,formPickMixin],props:{options:{type:Array,default:()=>[]},gender:Boolean,overFlow:Boolean,confirm:Boolean,labelProp:{type:String,default:"name"},valueProp:{type:String,default:"code"},english:Boolean,chinese:Boolean,typing:Boolean,classic:Boolean,fillRow:Boolean,ellipsis:Boolean,inline:Boolean,allowCancel:Boolean},computed:{prefix(){return"请选择"},inputProps(){return filterProperties(f(f({},normalizeProps(this.$attrs)),this.$props),autoBindKeys$3)},labelKey(){return this.classic?"label":this.labelProp},valueKey(){return this.classic?"value":this.valueProp},innerOptions(){return this.gender?[{[this.labelKey]:"男",[this.valueKey]:this.chinese?"男":this.typing?1:"1"},{[this.labelKey]:"女",[this.valueKey]:this.chinese?"女":this.typing?2:"2"}]:this.confirm?[{[this.labelKey]:"是",[this.valueKey]:this.chinese?"是":this.english?"Y":this.typing?1:"1"},{[this.labelKey]:"否",[this.valueKey]:this.chinese?"否":this.english?"N":this.typing?0:"0"}]:this.options}},methods:{emitInput(t){this.$emit("input",t)},toggle(t){this.value===t[this.valueKey]?this.emitInput(null):this.emitInput(t[this.valueKey])}}},__cssModules$29={};var __component__$29=normalizeComponent(__vue2_script$29,render$24,staticRenderFns$24,!1,__vue2_injectStyles$29,null,null,null);function __vue2_injectStyles$29(t){for(let s in __cssModules$29)this[s]=__cssModules$29[s]}const FormRadioGroup=function(){return __component__$29.exports}();var render$23=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("FormItem",t._b({attrs:{rules:t.computeRules,disabled:t.inputDisabled},scopedSlots:t._u([{key:"default",fn:function(){return[n("ElSelect",t._g(t._b({attrs:{value:t.value,filterable:t.filterable,placeholder:t.inputDisabled?"--":t.computePlaceholder,disabled:t.inputDisabled},on:{input:t.emitInput}},"ElSelect",t.inputProps,!1),t.listeners),t._l(t.innerOptions,function(r){return n("ElOption",{key:r[t.valueKey],attrs:{value:r[t.valueKey],label:r[t.labelKey]}})}),1),t.$slots.warn?n("div",{staticClass:"el-form-item__warn"},[t._t("warn")],2):t._e()]},proxy:!0},{key:"error",fn:function(r){var a=r.error;return[t.$scopedSlots.error&&t.$scopedSlots.error(a)?n("div",{staticClass:"el-form-item__error"},[t._t("error",function(){return[t._v(" "+t._s(a)+" ")]},{error:a})],2):t._e()]}},{key:"label",fn:function(){return[t._t("label")]},proxy:!0},{key:"below",fn:function(){return[t._t("below")]},proxy:!0}],null,!0)},"FormItem",t.formItemProps,!1))},staticRenderFns$23=[];const autoBindKeys$2=Object.keys(Select.props).filter(t=>!["value","placeholder","disabled"].includes(t)),__vue2_script$28={name:"FormSelect",mixins:[formInputMixin,formPickMixin],props:{options:{type:Array,default:()=>[]},gender:Boolean,all:Boolean,filterable:Boolean,confirm:Boolean,value:{type:[String,Number]},labelProp:{type:String,default:"name"},valueProp:{type:String,default:"code"},english:Boolean,chinese:Boolean,typing:Boolean,classic:Boolean},computed:{prefix(){return"请选择"},labelKey(){return this.classic?"label":this.labelProp},valueKey(){return this.classic?"value":this.valueProp},inputProps(){return filterProperties(f(f({},normalizeProps(this.$attrs)),this.$props),autoBindKeys$2)},innerOptions(){return this.gender?[{[this.labelKey]:"男",[this.valueKey]:this.chinese?"男":this.typing?1:"1"},{[this.labelKey]:"女",[this.valueKey]:this.chinese?"女":this.typing?2:"2"}]:this.confirm?[{[this.labelKey]:"是",[this.valueKey]:this.chinese?"是":this.english?"Y":this.typing?1:"1"},{[this.labelKey]:"否",[this.valueKey]:this.chinese?"否":this.english?"N":this.typing?0:"0"}]:this.all?[{[this.valueKey]:"",[this.labelKey]:"全部"},...this.options]:this.options}},methods:{emitInput(t){this.$emit("input",t)}}},__cssModules$28={};var __component__$28=normalizeComponent(__vue2_script$28,render$23,staticRenderFns$23,!1,__vue2_injectStyles$28,null,null,null);function __vue2_injectStyles$28(t){for(let s in __cssModules$28)this[s]=__cssModules$28[s]}const FormSelect=function(){return __component__$28.exports}();var render$22=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("FormItem",t._b({attrs:{rules:t.computeRules,disabled:t.inputDisabled},scopedSlots:t._u([{key:"default",fn:function(){return[t._t("default",function(){return[n("ElSwitch",t._g(t._b({class:{"is-readonly":t.readonly},attrs:{"active-value":"Y","inactive-value":"N",value:t.value,readonly:t.readonly,disabled:t.inputDisabled,placeholder:t.computePlaceholder},on:{input:t.emitInput},scopedSlots:t._u([{key:"append",fn:function(){return[t._t("append")]},proxy:!0}],null,!0)},"ElSwitch",t.inputProps,!1),t.listeners))]})]},proxy:!0},{key:"error",fn:function(r){var a=r.error;return[t._t("error",null,{error:a})]}},{key:"label",fn:function(){return[t._t("label")]},proxy:!0}],null,!0)},"FormItem",t.formItemProps,!1))},staticRenderFns$22=[];const autoBindKeys$1=Object.keys(Switch.props).filter(t=>!["value","placeholder","disabled"].includes(t)),__vue2_script$27={name:"FormSwitch",mixins:[formInputMixin],props:{value:{type:[String,Number,Boolean]}},computed:{inputProps(){return filterProperties(f(f({},normalizeProps(this.$attrs)),this.$props),autoBindKeys$1)}},methods:{emitInput(t){this.$emit("input",t)}}},__cssModules$27={};var __component__$27=normalizeComponent(__vue2_script$27,render$22,staticRenderFns$22,!1,__vue2_injectStyles$27,null,null,null);function __vue2_injectStyles$27(t){for(let s in __cssModules$27)this[s]=__cssModules$27[s]}const FormSwitch=function(){return __component__$27.exports}(),lang={common:{condition:"条件",display:"显示",hide:"隐藏"},tip:{select:"请选择",input:"请输入"},check:{checkAll:"全选"},upload:{upload:"点击上传",tip:"将文件拖到此处,或"},time:{start:"开始",end:"结束"},date:{start:"开始",end:"结束",t:"今日",y:"昨日",n:"近7天",a:"全部"},form:{printBtn:"打 印",mockBtn:"模 拟",submitBtn:"提 交",emptyBtn:"清 空"},crud:{filter:{addBtn:"新增条件",clearBtn:"清空数据",resetBtn:"清空条件",cancelBtn:"取 消",submitBtn:"确 定"},column:{name:"列名",hide:"隐藏",fixed:"冻结",filters:"过滤",sortable:"排序",index:"顺序",width:"宽度"},tipStartTitle:"当前表格已选择",tipEndTitle:"项",editTitle:"编 辑",copyTitle:"复 制",addTitle:"新 增",viewTitle:"查 看",filterTitle:"过滤条件",showTitle:"列显隐",menu:"操作",addBtn:"新 增",show:"显 示",hide:"隐 藏",open:"展 开",shrink:"收 缩",printBtn:"打 印",excelBtn:"导 出",updateBtn:"修 改",cancelBtn:"取 消",searchBtn:"搜 索",emptyBtn:"清 空",menuBtn:"功 能",saveBtn:"保 存",viewBtn:"查 看",editBtn:"编 辑",copyBtn:"复 制",delBtn:"删 除"}},getValueByPath=(t,s)=>{s=s||"";const n=s.split(".");let r=t,a=null;for(let o=0,l=n.length;o<l;o++){const c=n[o];if(!r)break;if(o===l-1){a=r[c];break}r=r[c]}return a},translate=t=>getValueByPath(lang,t),calcCascader=(t=[])=>(t.forEach(s=>{const n=s.cascader;if(!core.isBlank(n)){const r=s.prop;n.forEach(a=>{const o=findObject(t,a);o!==-1&&(o.parentProp=r)})}}),t);let count=0;const calcCount=(t,s=12,n=!1)=>{n&&(count=0);const r=24;return count=count+(t.span||s)+(t.offset||0),count===r?count=0:count>r?count=(t.span||s)+(t.offset||0):t.row&&count!==r&&(t.count=r-count,count=0),t},initVal=(t,s)=>{const{type:n,multiple:r,dataType:a,separator:o=DIC_SPLIT,alone:l,emitPath:c,range:u}=s;let d=t;return MULTIPLE_LIST.includes(n)&&r===!0||ARRAY_VALUE_LIST.includes(n)&&c!==!1||RANGE_LIST.includes(n)&&u===!0?(Array.isArray(d)||(core.isBlank(d)?d=[]:d=`${d}`.split(o)||[]),d.forEach((p,h)=>{d[h]=detailDataType(p,a)}),ARRAY_LIST.includes(n)&&core.isBlank(d)&&l&&(d=[""])):d=detailDataType(d,a),d},getSearchType=t=>{const s=t.type,n=t.searchRange;let r=s;if(t.searchType)return t.searchType;if(["radio","checkbox","switch"].includes(s))r="select";else if(DATE_LIST.includes(s)){const a="range";n?s.includes(a)?r=s:r=s+a:r=s.replace(a,"")}else["textarea"].includes(s)&&(r="input");return r},getComponent=(t,s)=>{let n=t||"input";if(core.isBlank(s))ARRAY_LIST.includes(t)?n="array":["time","timerange"].includes(t)?n="time":DATE_LIST.includes(t)?n="date":["password","textarea","search"].includes(t)?n="input":INPUT_LIST.includes(t)&&(n=`input-${t}`);else return s;return KEY_COMPONENT_NAME+n},formInitVal=(t=[])=>{let s={};return t.forEach(n=>{ARRAY_VALUE_LIST.includes(n.type)&&n.emitPath!==!1||MULTIPLE_LIST.includes(n.type)&&n.multiple||n.dataType==="array"?s[n.prop]=[]:RANGE_LIST.includes(n.type)&&n.range===!0?s[n.prop]=[0,0]:["rate","slider","number"].includes(n.type)||n.dataType==="number"?s[n.prop]=void 0:s[n.prop]="",n.bind&&(s=createObj(s,n.bind)),core.isBlank(n.value)||(s[n.prop]=n.value)}),{tableForm:s}},getPlaceholder=function(t){const s=t.placeholder,n=t.label;return core.isBlank(s)?SELECT_LIST.includes(t.type)?`${translate("tip.select")} ${n}`:`${translate("tip.input")} ${n}`:s},slot={methods:{getSlotName(t={},s="D",n){const r={F:"Form",H:"Header",E:"Error",L:"Label",S:"Search",T:"Type",D:""},a=t.prop+r[s];return n?n[a]:a},getSlotList(t=[],s,n){return n=n.map(r=>r.prop),Object.keys(s).filter(r=>{let a=!1;return n.includes(r)||t.forEach(o=>{r.includes(o)&&(a=!0)}),a})}}};var render$21=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n(t.getComponent(t.column.type,t.column.component),t._g(t._b({ref:"temp",tag:"Component",attrs:{column:Object.assign(t.column,t.params),dic:t.dic,disabled:t.column.disabled||t.disabled,readonly:t.column.readonly||t.readonly,placeholder:t.getPlaceholder(t.column),props:t.column.props||t.props,"props-http":t.column.propsHttp||t.propsHttp,size:t.column.size||t.size,"table-data":t.tableData,type:t.type||t.column.type,"column-slot":t.columnSlot},nativeOn:{keyup:function(r){return!r.type.indexOf("key")&&t._k(r.keyCode,"enter",13,r.key,"Enter")?null:t.enterChange.apply(null,arguments)}},scopedSlots:t._u([t._l(t.columnSlot,function(r){return{key:r,fn:function(a){return[t._t(r,null,null,a)]}}})],null,!0),model:{value:t.text,callback:function(r){t.text=r},expression:"text"}},"Component",Object.assign(t.column,t.uploadFun(t.column)),!1),t.event),[t.params.html?n("span",{domProps:{innerHTML:t._s(t.params.html)}}):t._e()])},staticRenderFns$21=[];const __vue2_script$26={name:"FormTemp",mixins:[slot],props:{value:[String,Object,Number,Boolean,Array],uploadBefore:Function,uploadDelete:Function,uploadAfter:Function,uploadPreview:Function,uploadError:Function,uploadExceed:Function,columnSlot:{type:Array,default:()=>[]},tableData:{type:Object,default:()=>({})},clearable:{type:Boolean},enter:{type:Boolean,default:!1},type:{type:String},propsHttp:{type:Object,default:()=>({})},props:{type:Object},dic:{type:Array},placeholder:{type:String},size:{type:String},disabled:{type:Boolean},readonly:{type:Boolean},column:{type:Object,default:()=>({})}},computed:{params(){return this.column.params||{}},event(){return this.column.event||{}},text:{get(){return this.value},set(t){this.$emit("input",t),this.$emit("change",t)}}},methods:{uploadFun,getComponent,getPlaceholder,enterChange(){typeof this.column.enter=="function"?this.column.enter({value:this.text,column:this.column}):this.enter&&this.$emit("enter")}}},__cssModules$26={};var __component__$26=normalizeComponent(__vue2_script$26,render$21,staticRenderFns$21,!1,__vue2_injectStyles$26,null,null,null);function __vue2_injectStyles$26(t){for(let s in __cssModules$26)this[s]=__cssModules$26[s]}const FormTemp=function(){return __component__$26.exports}();var render$20=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("FormItem",t._b({attrs:{block:t.block,rules:t.computeRules,disabled:t.inputDisabled},scopedSlots:t._u([{key:"default",fn:function(){return[n("ElInput",t._g(t._b({attrs:{value:t.value,type:"textarea",rows:t.rows,resize:t.resize?null:"none","show-word-limit":t.showWordLimit,disabled:t.inputDisabled,maxlength:t.maxLength,placeholder:t.computePlaceholder},on:{input:function(r){return t.$emit("input",r)}}},"ElInput",t.inputProps,!1),t.listeners))]},proxy:!0},{key:"error",fn:function(r){var a=r.error;return[t._t("error",null,{error:a})]}},{key:"label",fn:function(){return[t._t("label")]},proxy:!0}],null,!0)},"FormItem",t.formItemProps,!1))},staticRenderFns$20=[];const autoBindKeys=Object.keys(Input.props).filter(t=>!["value","placeholder","type","rows","resize","showWordLimit","maxLength","maxlength"].includes(t)),__vue2_script$25={name:"FormTextarea",mixins:[formInputMixin],props:{value:{type:[String,Number]},rows:{type:String,default:"4"},resize:Boolean,showWordLimit:{type:Boolean,default:!0},maxLength:{type:String,default:"800"},block:{type:Boolean,default:!0}},computed:{inputProps(){return filterProperties(f(f({},normalizeProps(this.$attrs)),this.$props),autoBindKeys)}}},__cssModules$25={};var __component__$25=normalizeComponent(__vue2_script$25,render$20,staticRenderFns$20,!1,__vue2_injectStyles$25,null,null,null);function __vue2_injectStyles$25(t){for(let s in __cssModules$25)this[s]=__cssModules$25[s]}const FormTextarea=function(){return __component__$25.exports}();var render$1$=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{class:["form-view",t.className]},[t.showToolbar?n("div",{directives:[{name:"show",rawName:"v-show",value:!t.isFormLoading,expression:"!isFormLoading"}],staticClass:"form-view-toolbar"},[t._t("form-view-toolbar",function(){return[n("Toolbar",t._g(t._b({on:{edit:t.onEdit},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.buttons;return[t._t("toolbar-button",null,{buttons:a})]}},t._l(t.getToolbarSlotKeys(),function(r){return{key:r,fn:function(){return[t._t(r)]},proxy:!0}}),{key:"toolbar-right",fn:function(){return[t._t("toolbar-right")]},proxy:!0}],null,!0)},"Toolbar",Object.assign({},t.toolbarProps,{buttons:t.toolbarButtons}),!1),t.toolbarListeners))]})],2):t._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:!t.isFormLoading,expression:"!isFormLoading"}],staticClass:"form-scroller-wrapper"},[n("div",{ref:"formScroller",class:["form-scroller","absolute-box",t.contentClass],on:{scroll:t.onFormScroll}},[t.notForm?n("div",{staticClass:"not-form",style:{width:t.formWidth}},[t.title?n("div",{staticClass:"form-view-title"},[t._v(" "+t._s(t.title)+" ")]):t._e(),t._t("default",function(){return[n("EmptyView",{attrs:{"empty-tips":"请添加表单内容"}})]}),t.footerBarButtons.length?n("Toolbar",t._g(t._b({attrs:{footer:""},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.buttons,o=r.footer;return[t._t("footer-button",null,{buttons:a,footer:o})]}},t._l(t.getFooterSlotKeys(),function(r){return{key:t.getFooterSlotKey(r),fn:function(){return[t._t(r)]},proxy:!0}})],null,!0)},"Toolbar",Object.assign({},t.toolbarProps,{buttons:t.footerBarButtons}),!1),t.toolbarListeners)):t._e(),t.$scopedSlots["form-bottom"]?t._t("form-bottom"):t._e()],2):n("div",{class:["form-card",{"un-limit":t.unLimit}],style:{width:`calc(${t.formWidth} + 40px)`}},[n("div",{staticClass:"form-content"},[t.title?n("div",{staticClass:"form-view-title"},[t._v(" "+t._s(t.title)+" ")]):t._e(),t._t("default",function(){return[n("EmptyView",{attrs:{"empty-tips":"请添加表单内容"}})]}),t.footerBarButtons.length?n("Toolbar",t._g(t._b({attrs:{footer:""},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.buttons,o=r.footer;return[t._t("footer-button",null,{buttons:a,footer:o})]}},t._l(t.getFooterSlotKeys(),function(r){return{key:t.getFooterSlotKey(r),fn:function(){return[t._t(r)]},proxy:!0}})],null,!0)},"Toolbar",Object.assign({},t.toolbarProps,{buttons:t.footerBarButtons}),!1),t.toolbarListeners)):t._e()],2)]),t.$scopedSlots["form-bottom"]||t.$parent.$options.flowForm&&t.flowContext.logs.length?n("div",{class:["form-card",{"un-limit":t.unLimit}],staticStyle:{"min-height":"0"},style:{width:`calc(${t.formWidth} + 40px)`}},[n("div",{staticClass:"form-content"},[t.$parent.$options.flowForm&&t.flowContext.logs.length?n("FormItemGroup",{attrs:{"block-title":"流程日志"}},[n("FlowLog",{staticClass:"flow-log",attrs:{fetch:!1,"show-title":!1,"business-key":t.$parent.bizKey}})],1):t._e(),t._t("form-bottom")],2)]):t._e()]),n("ResizeObserver",{on:{notify:t.onFormResize}})],1),t.formNav&&!t.isFormLoading&&t.showNav&&t.groups.length?n("div",{staticClass:"form-nav"},[n("div",{staticClass:"form-nav-header"},[t._v(" 表单导航 ")]),n("ul",{staticClass:"form-nav-list"},t._l(t.groups,function(r,a){return n("li",{key:r.blockTitle,class:["form-nav-item",{active:t.activeIndex===a}],on:{click:function(o){return t.navItemClick(r,a)}}},[t._v(" "+t._s(r.blockTitle)+" ")])}),0)]):t._e(),t.isFormLoading?n("LoadingView",{attrs:{"icon-size":"34px","font-size":"16px"}}):t._e()],1)},staticRenderFns$1$=[];const FormView_vue_vue_type_style_index_0_lang="",builtInButtons$1=["back","create","save","withdraw","edit","submit","publish","agree","disagree","reject","finish","cancel","enable","exp","imp","del","disabled","reload","slot"],footerButtons=builtInButtons$1.map(t=>`${t}-down`),topButtons=["back","withdraw","edit"],bottomButtons=["save","submit","","publish","agree","disagree","reject","finish","cancel"],findParent=(t,s)=>{if(t.classList.contains(s))return t;let n=t.parentNode;for(;n&&!n.classList.contains(s);)n=n.parentNode;return n.classList.contains(s)?n:null},__vue2_script$24={name:"FormView",inject:{flowContext:{default:{}}},props:{notForm:Boolean,loading:Boolean,unLimit:Boolean,formWidth:{type:String,default:"75%"},toolbarAttrs:{type:Object,default:()=>{}},toolbarListeners:{type:Object},contentClass:{type:String},className:{type:String},title:{type:String},showToolbar:{type:Boolean,default:!0},formNav:{type:Boolean,default:!0}},data(){return{groups:[],activeIndex:-1,tryByClick:!1,showNav:!1}},computed:{isFormLoading(){return this.loading||core.hasOwn(this.$parent,"isFormLoaded")?!this.$parent.isFormLoaded:!1},toolbarProps(){var r;const t={},s=((r=this.toolbarAttrs)==null?void 0:r.buttons)||this.$parent.buttons,n=lodash.merge({},this.toolbarAttrs,t);return n.buttons=s||["back"],n.buttons=core.toStringArray(n.buttons),n},toolbarButtons(){return this.toolbarProps.buttons.filter(t=>!bottomButtons.includes(t)&&t.indexOf(":down")<0).map(t=>t.replace(":up",""))},footerBarButtons(){let t=this.toolbarProps.buttons.filter(s=>!topButtons.includes(s)&&(bottomButtons.includes(s)||s.indexOf(":down")>-1)).map(s=>s.replace(":down",""));return t=t||[],this.$parent.isEnabled&&!t.includes("cancel")&&t.push("cancel"),t}},created(){this.$on("FormView.addGroup",t=>{t&&(this.activeIndex===-1&&(this.activeIndex=0),this.groups.push(t),this.groups=this.groups.sort((s,n)=>{const r=findParent(s.$el,"form-card"),a=findParent(n.$el,"form-card");if(r===a){const o=[].indexOf.call(s.$el.parentNode.children,s.$el),l=[].indexOf.call(n.$el.parentNode.children,n.$el);return o-l}else{const o=findParent(r,"form-scroller"),l=[].indexOf.call(o.children,r),c=[].indexOf.call(o.children,a);return l-c}}),t.active&&(this.activeIndex=this.groups.indexOf(t),this.navItemClick(t,this.activeIndex)))}),this.$on("FormView.removeGroup",t=>{if(t){const s=this.groups.indexOf(t);this.groups.splice(s,1),this.activeIndex>this.groups.length-1&&(this.activeIndex=0)}}),this.onFormResize({width:window.document.body.clientWidth})},activated(){return v(this,null,function*(){this.$refs.formScroller&&(yield this.$nextTick(),this.scrollTo(this.formScrollTop,this.formScrollLeft))})},methods:{getToolbarSlotKeys(){return Object.keys(this.$scopedSlots).filter(t=>builtInButtons$1.includes(t))},getFooterSlotKeys(){return Object.keys(this.$scopedSlots).filter(t=>footerButtons.includes(t))},getFooterSlotKey(t){return t.replace("-down","")},onFormResize({width:t}){this.showNav=t>1500},onEdit(){!this.toolbarListeners.edit&&core.hasOwn(this.$parent,"disabled")&&(this.$parent.disabled=!1)},navItemClick(t,s){return v(this,null,function*(){this.showNav&&(yield this.$nextTick(),this.activeFormItemGroup(t,s),t.expand||t.open())})},activeFormItemGroup(t,s){this.$refs.formScroller.scrollTop=t.$el.offsetTop-10,core.animate(t.$el,"breathe-indicator-animation"),this.tryByClick=!0,this.activeIndex=s},tryActive(){return v(this,null,function*(){if(this.showNav){for(let t=0;t<this.groups.length;t++)if(core.isInContainer(this.groups[t].$el,this.$refs.formScroller,{bottomOffset:10})){this.activeIndex=t;break}}})},onFormScroll(){this.formScrollTop=this.$refs.formScroller.scrollTop,this.formScrollLeft=this.$refs.formScroller.scrollLeft,!this.tryByClick&&this.groups.length&&window.requestAnimationFrame(this.tryActive),this.tryByClick=!1},scrollTo(t,s){t&&(this.$refs.formScroller.scrollTop=t),s&&(this.$refs.formScroller.scrollLeft=s)}}},__cssModules$24={};var __component__$24=normalizeComponent(__vue2_script$24,render$1$,staticRenderFns$1$,!1,__vue2_injectStyles$24,null,null,null);function __vue2_injectStyles$24(t){for(let s in __cssModules$24)this[s]=__cssModules$24[s]}const FormView=function(){return __component__$24.exports}(),props={mixins:[slot],data(){return{stringMode:!1,name:"",text:void 0,propsHttpDefault:DIC_HTTP_PROPS,propsDefault:DIC_PROPS}},props:{blur:Function,focus:Function,change:Function,click:Function,typeformat:Function,control:Function,separator:{type:String,default:DIC_SPLIT},params:{type:Object,default:()=>({})},listType:{type:String},tableData:{type:Object},value:{},column:{type:Object,default:()=>({})},label:{type:String,default:""},readonly:{type:Boolean,default:!1},size:{type:String,default:""},tip:{type:String,default:""},disabled:{type:Boolean,default:!1},dataType:{type:String},clearable:{type:Boolean,default:!0},type:{type:String,default:""},dicUrl:{type:String,default:""},dicMethod:{type:String,default:""},dicFormatter:Function,dicQuery:{type:Object,default:()=>({})},dic:{type:Array,default:()=>[]},placeholder:{type:String,default:""},rules:{type:Array},min:{type:Number},max:{type:Number},multiple:{type:Boolean,default:!1},button:{type:Boolean,default:!1},group:{type:Boolean,default:!1},row:{type:Boolean,default:!1},prop:{type:String,default:""},border:{type:Boolean,default:!1},popperClass:{type:String},propsHttp:{type:Object,default:()=>DIC_HTTP_PROPS},props:{type:Object,default:()=>DIC_PROPS}},watch:{text:{handler(t){this.handleChange(t)}},value:{handler(){this.initVal()}}},computed:{clearableVal(){return this.disabled?!1:this.clearable},componentName(){return`el-${this.name}${this.button?"-button":""}`},required(){return!core.isBlank(this.rules)},isArray(){return this.dataType==="array"},isString(){return this.dataType==="string"},isNumber(){return this.dataType==="number"},nameKey(){return this.propsHttp.name||this.propsHttpDefault.name},urlKey(){return this.propsHttp.url||this.propsHttpDefault.url},resKey(){return this.propsHttp.res||this.propsHttpDefault.res},groupsKey(){return this.props.groups||this.propsDefault.groups},valueKey(){return this.props.value||this.propsDefault.value},descKey(){return this.props.desc||this.propsDefault.desc},leafKey(){return this.props.leaf||this.propsDefault.leaf},labelKey(){return this.props.label||this.propsDefault.label},childrenKey(){return this.props.children||this.propsDefault.children},disabledKey(){return this.props.disabled||this.propsDefault.disabled},idKey(){return this.props.id||this.propsDefault.id}},created(){this.initVal()}},event={methods:{bindEvent(t,s){s=Object.assign(s,{column:this.column},this.tableData),typeof this[t]=="function"&&(t==="change"?this.column.cell!==!0&&this[t](s):this[t](s)),this.$emit(t,s)},initVal(){this.stringMode=typeof this.value=="string",this.text=initVal(this.value,this)},getLabelText(t){return core.isBlank(t)?"":typeof this.typeformat=="function"?this.typeformat(t,this.labelKey,this.valueKey):t[this.labelKey]},handleFocus(t){this.bindEvent("focus",{value:this.value,event:t})},handleBlur(t){this.bindEvent("blur",{value:this.value,event:t})},handleClick(t){this.bindEvent("click",{value:this.value,event:t})},handleChange(t){let s=t;(this.isString||this.isNumber||this.stringMode||this.listType==="picture-img")&&Array.isArray(t)&&(s=t.join(this.separator)),this.bindEvent("change",{value:s}),this.$emit("input",s)}}};var render$1_=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-array"},[t.text?n("ElButton",{attrs:{type:"primary",icon:"el-icon-plus",circle:"",size:t.size,disabled:t.disabled},on:{click:function(r){return t.add()}}}):t._e(),t._l(t.text,function(r,a){return n("div",{key:a,staticClass:"avue-array__item"},[n("div",{staticClass:"avue-array__input"},[n("ElTooltip",{attrs:{placement:"bottom",disabled:!t.isImg&&!t.isUrl||!!r}},[n("div",{attrs:{slot:"content"},slot:"content"},[t.isImg?n(t.isMediaType(r),{tag:"Component",staticStyle:{width:"200px"},attrs:{src:r,controls:"controls"},on:{click:function(o){return t.openImg(a)}}}):t.isUrl?n("ElLink",{attrs:{type:"primary",href:r,target:t.target}},[t._v(" "+t._s(r)+" ")]):t._e()],1),n("ElInput",{attrs:{size:t.size,placeholder:t.placeholder,disabled:t.disabled},model:{value:t.text[a],callback:function(o){t.$set(t.text,a,o)},expression:"text[index]"}})],1),t.disabled||t.readonly||t.alone?t._e():[t.isLimit?t._e():n("ElButton",{attrs:{type:"primary",icon:"el-icon-plus",circle:"",size:t.size,disabled:t.disabled},on:{click:function(o){return t.add(a)}}}),n("ElButton",{attrs:{type:"danger",icon:"el-icon-minus",circle:"",size:t.size,disabled:t.disabled},on:{click:function(o){return t.remove(a)}}})]],2)])})],2)},staticRenderFns$1_=[];const FyArray_vue_vue_type_style_index_0_lang="",__vue2_script$23={name:"FyArray",mixins:[props,event],props:{fileType:String,alone:Boolean,type:String,limit:Number},computed:{isLimit(){return this.limit},textLen(){return this.text.length},isImg(){return this.type==="img"},isUrl(){return this.type==="url"}},methods:{isMediaType(t){return isMediaType(t,this.fileType)},add(t){this.text.splice(t+1,0,"")},remove(t){this.text.splice(t,1)},openImg(){this.text.map(t=>({thumbUrl:t,url:t,type:this.fileType}))}}},__cssModules$23={};var __component__$23=normalizeComponent(__vue2_script$23,render$1_,staticRenderFns$1_,!1,__vue2_injectStyles$23,null,null,null);function __vue2_injectStyles$23(t){for(let s in __cssModules$23)this[s]=__cssModules$23[s]}const FyArray=function(){return __component__$23.exports}();var render$1Z=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-article"},[n("div",{staticClass:"avue-article__header"},[t.title?n("div",{staticClass:"avue-article__title",domProps:{textContent:t._s(t.title)}}):t._e(),t.meta?n("small",{staticClass:"avue-article__meta",domProps:{textContent:t._s(t.meta)}}):t._e()]),t.lead?n("div",{staticClass:"avue-article__lead",domProps:{textContent:t._s(t.lead)}}):t._e(),t.body?n("div",{staticClass:"avue-article__body",domProps:{innerHTML:t._s(t.body)}}):t._e()])},staticRenderFns$1Z=[];const FyArticle_vue_vue_type_style_index_0_lang="",propsDefault$1={title:"title",meta:"meta",lead:"lead",body:"body"},__vue2_script$22={name:"FyArticle",props:{data:{type:Object,default:()=>({})},props:{type:Object,default:()=>propsDefault$1}},computed:{titleKey(){return this.props.title||propsDefault$1.title},metaKey(){return this.props.meta||propsDefault$1.meta},leadKey(){return this.props.lead||propsDefault$1.lead},bodyKey(){return this.props.body||propsDefault$1.body},title(){return this.data[this.titleKey]},meta(){return this.data[this.metaKey]},lead(){return this.data[this.leadKey]},body(){return this.data[this.bodyKey]}}},__cssModules$22={};var __component__$22=normalizeComponent(__vue2_script$22,render$1Z,staticRenderFns$1Z,!1,__vue2_injectStyles$22,null,null,null);function __vue2_injectStyles$22(t){for(let s in __cssModules$22)this[s]=__cssModules$22[s]}const FyArticle=function(){return __component__$22.exports}();var render$1Y=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("ElCascader",{attrs:{options:t.dic,placeholder:t.placeholder,props:t.allProps,size:t.size,clearable:t.clearableVal,"show-all-levels":t.showAllLevels,filterable:t.filterable,"popper-class":t.popperClass,separator:t.separator,disabled:t.disabled,"collapse-tags":t.tags},on:{focus:t.handleFocus,blur:t.handleBlur},nativeOn:{click:function(r){return t.handleClick.apply(null,arguments)}},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.data,o=r.node;return[t.$scopedSlots.default?t._t("default",null,{data:a,node:o}):n("span",[t._v(t._s(a[t.labelKey]))])]}}],null,!0),model:{value:t.text,callback:function(r){t.text=r},expression:"text"}})},staticRenderFns$1Y=[];const __vue2_script$21={name:"FyCascader",mixins:[props,event],props:{checkStrictly:{type:Boolean,default:!1},emitPath:{type:Boolean,default:!0},tags:{type:Boolean,default:!1},expandTrigger:{type:String,default:"hover"},showAllLevels:{type:Boolean,default:!0},lazy:{type:Boolean,default:!1},lazyLoad:Function,filterable:{type:Boolean,default:!1},separator:{type:String}},data(){return{}},computed:{allProps(){return{label:this.labelKey,value:this.valueKey,children:this.childrenKey,checkStrictly:this.checkStrictly,multiple:this.multiple,emitPath:this.emitPath,lazy:this.lazy,lazyLoad:(t,s)=>{const n=r=>{const a=(o,l,c)=>{o.forEach(u=>{u[this.valueKey]===l?u[this.childrenKey]=c:u[this.childrenKey]&&a(u[this.childrenKey])})};a(this.dic,t[this.valueKey],r),s(r)};this.lazyLoad&&this.lazyLoad(t,n)},expandTrigger:this.expandTrigger}}}},__cssModules$21={};var __component__$21=normalizeComponent(__vue2_script$21,render$1Y,staticRenderFns$1Y,!1,__vue2_injectStyles$21,null,null,null);function __vue2_injectStyles$21(t){for(let s in __cssModules$21)this[s]=__cssModules$21[s]}const FyCascader=function(){return __component__$21.exports}();var render$1X=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-checkbox"},[t.all?n("ElCheckbox",{attrs:{disabled:t.disabled,indeterminate:t.isIndeterminate},on:{change:t.handleCheckAll},model:{value:t.checkAll,callback:function(r){t.checkAll=r},expression:"checkAll"}},[t._v(" 全选 ")]):t._e(),n("ElCheckboxGroup",{attrs:{disabled:t.disabled,size:t.size,min:t.min,max:t.max},on:{change:t.handleCheckChange},nativeOn:{click:function(r){return t.handleClick.apply(null,arguments)}},model:{value:t.text,callback:function(r){t.text=r},expression:"text"}},t._l(t.dic,function(r,a){return n(t.componentName,{key:a,tag:"Component",attrs:{label:r[t.valueKey],border:t.border,size:t.size,readonly:t.readonly,disabled:r[t.disabledKey]}},[t._v(" "+t._s(r[t.labelKey])+" ")])}),1)],1)},staticRenderFns$1X=[];const FyCheckbox_vue_vue_type_style_index_0_lang="",__vue2_script$20={name:"FyCheckbox",mixins:[props,event],props:{all:{type:Boolean,default:!1}},data(){return{checkAll:!1,isIndeterminate:!1,name:"checkbox"}},watch:{dic(){this.handleCheckChange()},text:{handler(){this.handleCheckChange()}}},methods:{handleCheckAll(t){this.all&&(this.text=t?this.dic.map(s=>s[this.valueKey]):[],this.isIndeterminate=!1)},handleCheckChange(){const t=this.text;if(!this.all)return;const s=t.length,n=this.dic.length;this.checkAll=s===n,this.isIndeterminate=s>0&&s<n}}},__cssModules$20={};var __component__$20=normalizeComponent(__vue2_script$20,render$1X,staticRenderFns$1X,!1,__vue2_injectStyles$20,null,null,null);function __vue2_injectStyles$20(t){for(let s in __cssModules$20)this[s]=__cssModules$20[s]}const FyCheckbox=function(){return __component__$20.exports}();var render$1W=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-code"},[n("ElScrollbar",{style:t.styleName},[n("pre",[t._v(" "),n("code",{ref:"container",class:t.syntax},[t._v(`
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var o=this.next();return typeof o!="undefined"?o:this.lex()},begin:function(o){this.conditionStack.push(o)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(o){this.begin(o)}};return a.options={},a.performAction=function(o,l,c,u){switch(c){case 0:break;case 1:return 6;case 2:return l.yytext=l.yytext.substr(1,l.yyleng-2),4;case 3:return 17;case 4:return 18;case 5:return 23;case 6:return 24;case 7:return 22;case 8:return 21;case 9:return 10;case 10:return 11;case 11:return 8;case 12:return 14;case 13:return"INVALID"}},a.rules=[/^(?:\s+)/,/^(?:(-?([0-9]|[1-9][0-9]+))(\.[0-9]+)?([eE][-+]?[0-9]+)?\b)/,/^(?:"(?:\\[\\"bfnrt/]|\\u[a-fA-F0-9]{4}|[^\\\0-\x09\x0a-\x1f"])*")/,/^(?:\{)/,/^(?:\})/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?::)/,/^(?:true\b)/,/^(?:false\b)/,/^(?:null\b)/,/^(?:$)/,/^(?:.)/],a.conditions={INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}},a}();return n.lexer=r,n}();return t.parser=s,t.parse=function(){return s.parse.apply(s,arguments)},t}(),render$2Z=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"code-mirror-editor"},[n("textarea",{ref:"editor"})])},staticRenderFns$2Z=[];const CodeMirrorEditor_vue_vue_type_style_index_0_lang="";window.jsonlint=jsonlint;const format=t=>{if(t)try{return JSON.stringify(JSON.parse(t),null,1)}catch(s){}return t},parse=t=>{if(t)try{return JSON.stringify(JSON.parse(t))}catch(s){}return t},__vue2_script$3d={name:"CodeMirrorEditor",inject:{elForm:{default:""},elFormItem:{default:""}},props:{value:{type:String,default:""}},watch:{value(t){var s;(s=this.editor)==null||s.setValue(format(t))}},mounted(){this.editor=CodeMirror.fromTextArea(this.$refs.editor,{mode:"application/json",theme:"idea",tabSize:2,indentUnit:2,lint:!0,foldGutter:!0,smartIndent:!0,lineWrapping:!0,matchBrackets:!0}),this.editor.setValue(format(this.value)),this.editor.on("blur",this.change),this.editor.on("focus",this.focus),this.editor.setOption("extraKeys",{"Ctrl-Alt-L"(t){t.setValue(format(t.getValue()),null,1)}})},beforeDestroy(){var t,s;(t=this.editor)==null||t.off("blur",this.change),(s=this.editor)==null||s.toTextArea()},methods:{focus(){var t,s;(s=(t=this.elFormItem).clearValidate)==null||s.call(t)},change(){var t;this.$emit("input",parse((t=this.editor)==null?void 0:t.getValue()))}}},__cssModules$3d={};var __component__$3d=normalizeComponent(__vue2_script$3d,render$2Z,staticRenderFns$2Z,!1,__vue2_injectStyles$3d,null,null,null);function __vue2_injectStyles$3d(t){for(let s in __cssModules$3d)this[s]=__cssModules$3d[s]}const CodeMirrorEditor=function(){return __component__$3d.exports}();var render$2Y=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("ElColorPickerDropdown",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.onClickOutside,expression:"onClickOutside"}],ref:"dropdown",class:["el-color-picker__panel",t.popperClass||""],attrs:{offset:t.offset,"append-to-body":t.appendToBody,color:t.color,predefine:t.predefine},on:{pick:t.confirmValue,clear:t.clearValue},model:{value:t.showPicker,callback:function(r){t.showPicker=r},expression:"showPicker"}})},staticRenderFns$2Y=[];const __vue2_script$3c={name:"ColorPicker",directives:{Clickoutside},props:{popperClass:String,predefine:Array,visible:Boolean,hideOnClickOutside:{type:Boolean,default:!0},value:String,offset:Number,anchor:HTMLElement,appendToBody:{type:Boolean,default:!0}},data(){return{color:new Color({enableAlpha:!1}),showPicker:!1}},watch:{value:{immediate:!0,handler(t){t&&t!==this.color.value&&this.color.fromString(t)}},visible:{immediate:!0,handler(t){return v(this,null,function*(){t?(yield this.$nextTick(),this.$refs.dropdown.referenceElm=this.anchor):this.$refs.dropdown&&this.$refs.dropdown.doDestroy(!0),this.showPicker=t})}}},methods:{confirmValue(){this.emitInput(this.color),this.$emit("pick",this.color.value),this.hide()},clearValue(){this.$emit("clear"),this.hide()},emitInput(t){this.$emit("input",t.value)},onClickOutside(){this.hideOnClickOutside&&this.hide()},hide(){this.$emit("update:visible",!1)}}},__cssModules$3c={};var __component__$3c=normalizeComponent(__vue2_script$3c,render$2Y,staticRenderFns$2Y,!1,__vue2_injectStyles$3c,null,null,null);function __vue2_injectStyles$3c(t){for(let s in __cssModules$3c)this[s]=__cssModules$3c[s]}const ColorPicker=function(){return __component__$3c.exports}();var render$2X=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",[t._t("header"),t._l(t.list,function(r){return[r.children&&r.children.length>0?n("ColumnDynamic",{key:r.pop,attrs:{"column-option":r},scopedSlots:t._u([t._l(t.crud.mainSlot,function(a){return{key:a,fn:function(o){return[t._t(a,null,null,o)]}}})],null,!0)}):n("ColumnSlot",{key:r.prop,attrs:{column:r,"column-option":t.columnOption},scopedSlots:t._u([t._l(t.crud.mainSlot,function(a){return{key:a,fn:function(o){return[t._t(a,null,null,o)]}}})],null,!0)})]}),t._t("footer")],2)},staticRenderFns$2X=[];const __vue2_script$3b={name:"Column",inject:["crud"],provide(){return{crud:this.crud,dynamic:this}},props:{columnOption:Array},computed:{list(){let t=[...this.columnOption];return t=arraySort(t,"index",(s,n)=>{var r,a;return((r=this.crud.objectOption[s.prop])==null?void 0:r.index)-((a=this.crud.objectOption[n.prop])==null?void 0:a.index)}),t}},methods:{handleFilterMethod(t,s,n){const r=this.columnOption.filter(a=>a.prop===n.property)[0];return typeof r.filterMethod=="function"?r.filterMethod(t,s,r):s[r.prop]===t},handleFilters(t,s){if(s!==!0)return;const n=this.crud.DIC[t.prop]||[],r=[];return core.isBlank(n)?this.crud.cellForm.list.forEach(a=>{r.map(o=>o.text).includes(a[t.prop])||r.push({text:a[t.prop],value:a[t.prop]})}):n.forEach(a=>{const o=t.props||this.crud.tableOption.props||{};r.push({text:a[o.label||DIC_PROPS.label],value:a[o.value||DIC_PROPS.value]})}),r},getColumnProp(t,s){const n=this.crud.objectOption[t.prop]||{};if(s==="filterMethod")return n==null?void 0:n.filters;if(this.crud.isMobile&&["fixed"].includes(s))return!1;const r=n==null?void 0:n[s];if(!(s==="width"&&r==0))return s==="filters"?this.handleFilters(t,r):s==="hide"?(n==null?void 0:n.hide)!==!0:r}}},__cssModules$3b={};var __component__$3b=normalizeComponent(__vue2_script$3b,render$2X,staticRenderFns$2X,!1,__vue2_injectStyles$3b,null,null,null);function __vue2_injectStyles$3b(t){for(let s in __cssModules$3b)this[s]=__cssModules$3b[s]}const Column=function(){return __component__$3b.exports}(),config$1={menuWidth:220,menuFixed:"right",menuXsWidth:100,menuAlign:"center",menuHeaderAlign:"center",headerAlign:"left",cancelBtnIcon:"el-icon-circle-close",viewBtnIcon:"el-icon-view",editBtnIcon:"el-icon-edit",copyBtnIcon:"el-icon-document-add",addBtnIcon:"el-icon-plus",printBtnIcon:"el-icon-printer",excelBtnIcon:"el-icon-download",delBtnIcon:"el-icon-delete",searchBtnIcon:"el-icon-search",emptyBtnIcon:"el-icon-delete",saveBtnIcon:"el-icon-circle-plus-outline",updateBtnIcon:"el-icon-circle-check",columnBtnIcon:"el-icon-s-operation",filterBtnIcon:"el-icon-tickets",refreshBtnIcon:"el-icon-refresh",viewBtn:!1,editBtn:!0,copyBtn:!1,cancelBtn:!0,addBtn:!0,addRowBtn:!1,printBtn:!1,excelBtn:!1,delBtn:!0,cellBtn:!1,dateBtn:!1,updateBtn:!0,saveBtn:!0,refreshBtn:!0,columnBtn:!0,filterBtn:!1,queryBtn:!0,menuBtn:!1,searchBtn:!0,clearBtn:!0,selectClearBtn:!0,searchShow:!0,tip:!0,dialogWidth:"60%",dialogDrag:!1,formFullscreen:!1,pageBackground:!0,page:!0,menu:!0,indexLabel:"#",indexWidth:50,indexFixed:"left",selectionWidth:50,selectionFixed:"left",expandWidth:60,expandFixed:"left",filterMultiple:!0,calcHeight:300,width:"100%",searchGutter:20,searchLabelWidth:80,searchSpan:6,dropRowClass:".el-table__body-wrapper > table > tbody",dropColClass:".el-table__header-wrapper tr",ghostClass:"avue-crud__ghost"};var render$2W=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",[n("ElTableColumn",{attrs:{width:"1px"}}),t.crud.tableOption.expand?n("ElTableColumn",{key:"expand",attrs:{type:"expand",width:t.crud.tableOption.expandWidth||t.config.expandWidth,fixed:t.optVal(t.crud.tableOption.expandFixed,t.config.expandFixed),align:"center"},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.row;return[t._t("expand",null,{row:a,index:a.$index})]}}],null,!0)}):t._e(),t.crud.tableOption.selection?n("ElTableColumn",{key:"selection",attrs:{fixed:t.optVal(t.crud.tableOption.selectionFixed,t.config.selectionFixed),type:"selection",selectable:t.crud.tableOption.selectable,"reserve-selection":t.optVal(t.crud.tableOption.reserveSelection),width:t.crud.tableOption.selectionWidth||t.config.selectionWidth,align:"center"}}):t._e(),t.optVal(t.crud.tableOption.index)?n("ElTableColumn",{key:"index",attrs:{fixed:t.optVal(t.crud.tableOption.indexFixed,t.config.indexFixed),label:t.crud.tableOption.indexLabel||t.config.indexLabel,type:"index",width:t.crud.tableOption.indexWidth||t.config.indexWidth,index:t.indexMethod,align:"center"}}):t._e()],1)},staticRenderFns$2W=[];const __vue2_script$3a={name:"ColumnDefault",inject:["crud"],data(){return{config:config$1}},mounted(){this.setSort()},methods:{optVal,indexMethod(t){return t+1+((this.crud.page.currentPage||1)-1)*(this.crud.page.pageSize||10)},setSort(){this.rowDrop(),this.columnDrop()},rowDrop(){const t=this.crud.$refs.table.$el.querySelectorAll(this.config.dropRowClass)[0];this.crud.tableDrop("row",t,s=>{const n=s.oldIndex,r=s.newIndex,a=this.crud.list.splice(n,1)[0];this.crud.list.splice(r,0,a),this.crud.$emit("sortable-change",n,r),this.crud.refreshTable(()=>this.rowDrop())})},columnDrop(){const t=this.crud.$refs.table.$el.querySelector(this.config.dropColClass);let s=0;["selection","index","expand"].forEach(n=>{this.crud.tableOption[n]&&(s+=1)}),this.crud.tableDrop("column",t,n=>{this.crud.headerSort(n.oldIndex-s,n.newIndex-s),this.columnDrop()})}}},__cssModules$3a={};var __component__$3a=normalizeComponent(__vue2_script$3a,render$2W,staticRenderFns$2W,!1,__vue2_injectStyles$3a,null,null,null);function __vue2_injectStyles$3a(t){for(let s in __cssModules$3a)this[s]=__cssModules$3a[s]}const ColumnDefault=function(){return __component__$3a.exports}();var render$2V=function(){var t=this,s=t.$createElement,n=t._self._c||s;return t.getColumnProp(t.columnOption,"hide")?n("ElTableColumn",{key:t.columnOption.prop,attrs:{prop:t.columnOption.prop,label:t.columnOption.label,"filter-placement":"bottom-end",filters:t.getColumnProp(t.columnOption,"filters"),"filter-method":t.getColumnProp(t.columnOption,"filterMethod")?t.handleFilterMethod:void 0,"filter-multiple":t.optVal(t.columnOption.filterMultiple,!0),"show-overflow-tooltip":t.columnOption.overHidden,"min-width":t.columnOption.minWidth,sortable:t.getColumnProp(t.columnOption,"sortable"),"render-header":t.columnOption.renderHeader,align:t.columnOption.align||t.crud.tableOption.align,"header-align":t.columnOption.headerAlign||t.crud.tableOption.headerAlign,width:t.getColumnProp(t.columnOption,"width"),fixed:t.getColumnProp(t.columnOption,"fixed")}},[t._l(t.columnOption.children,function(r){return[r.children&&r.children.length>0?n("ColumnDynamic",{key:r.prop,attrs:{"column-option":r},scopedSlots:t._u([t._l(t.crud.mainSlot,function(a){return{key:a,fn:function(o){return[t._t(a,null,null,o)]}}})],null,!0)}):n("ColumnSlot",{key:r.prop,attrs:{column:r,"column-option":t.columnOption.children},scopedSlots:t._u([t._l(t.crud.mainSlot,function(a){return{key:a,fn:function(o){return[t._t(a,null,null,o)]}}})],null,!0)})]})],2):t._e()},staticRenderFns$2V=[];const __vue2_script$39={name:"ColumnDynamic",inject:["dynamic","crud"],props:{columnOption:Object},created(){const t=["getColumnProp","handleFilterMethod","handleFilters"];Object.keys(this.dynamic).forEach(s=>{t.includes(s)&&(this[s]=this.dynamic[s])})},methods:{optVal}},__cssModules$39={};var __component__$39=normalizeComponent(__vue2_script$39,render$2V,staticRenderFns$2V,!1,__vue2_injectStyles$39,null,null,null);function __vue2_injectStyles$39(t){for(let s in __cssModules$39)this[s]=__cssModules$39[s]}const ColumnDynamic=function(){return __component__$39.exports}(),permission=(()=>{function t(s,n){n.value===!1?s.style.display="none":s.style.display=""}return{bind(s,n){t(s,n)},update(s,n){t(s,n)}}})();var render$2U=function(){var t=this,s=t.$createElement,n=t._self._c||s;return t.optVal(t.crud.tableOption.menu,t.config.menu)&&t.crud.getPermission("menu")?n("ElTableColumn",{key:"menu",staticClass:"avue-crud__btn",attrs:{prop:"menu",fixed:t.optVal(t.crud.tableOption.menuFixed,t.config.menuFixed),label:t.crud.tableOption.menuTitle||"操作",align:t.crud.tableOption.menuAlign||t.config.menuAlign,"header-align":t.crud.tableOption.menuHeaderAlign||t.config.menuHeaderAlign,width:t.crud.isMobile?t.crud.tableOption.menuXsWidth||t.config.menuXsWidth:t.crud.tableOption.menuWidth||t.config.menuWidth},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.row,o=r.$index;return[t.isMenu?n("ElDropdown",{attrs:{size:t.crud.isMediumSize}},[n("ElButton",{attrs:{type:"text",size:t.crud.isMediumSize}},[t._v(" "+t._s(t.crud.tableOption.menuBtnTitle||"按钮")+" "),n("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),n("ElDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[t.optVal(t.crud.tableOption.viewBtn,t.config.viewBtn)?n("ElDropdownItem",{directives:[{name:"permission",rawName:"v-permission",value:t.crud.getPermission("viewBtn",a,o),expression:"crud.getPermission('viewBtn', row, $index)"}],attrs:{icon:t.crud.getBtnIcon("viewBtn")},nativeOn:{click:function(l){return t.crud.rowView(a,o)}}},[t._v(" "+t._s(t.crud.menuIcon("viewBtn"))+" ")]):t._e(),t.optVal(t.crud.tableOption.editBtn,t.config.editBtn)?n("ElDropdownItem",{directives:[{name:"permission",rawName:"v-permission",value:t.crud.getPermission("editBtn",a,o),expression:"crud.getPermission('editBtn', row, $index)"}],attrs:{icon:t.crud.getBtnIcon("editBtn")},nativeOn:{click:function(l){return t.crud.rowEdit(a,o)}}},[t._v(" "+t._s(t.crud.menuIcon("editBtn"))+" ")]):t._e(),t.optVal(t.crud.tableOption.copyBtn,t.config.copyBtn)?n("ElDropdownItem",{directives:[{name:"permission",rawName:"v-permission",value:t.crud.getPermission("copyBtn",a,o),expression:"crud.getPermission('copyBtn', row, $index)"}],attrs:{icon:t.crud.getBtnIcon("copyBtn")},nativeOn:{click:function(l){return t.crud.rowCopy(a)}}},[t._v(" "+t._s(t.crud.menuIcon("copyBtn"))+" ")]):t._e(),t.optVal(t.crud.tableOption.delBtn,t.config.delBtn)?n("ElDropdownItem",{directives:[{name:"permission",rawName:"v-permission",value:t.crud.getPermission("delBtn",a,o),expression:"crud.getPermission('delBtn', row, $index)"}],attrs:{icon:t.crud.getBtnIcon("delBtn")},nativeOn:{click:function(l){return t.crud.rowDel(a,o)}}},[t._v(" "+t._s(t.crud.menuIcon("delBtn"))+" ")]):t._e(),t._t("menuBtn",null,{row:a,type:t.menuText("primary"),disabled:t.crud.btnDisabled,size:t.crud.isMediumSize,index:o})],2)],1):["button","text","icon"].includes(t.menuType)?[t.optVal(t.crud.tableOption.cellBtn,t.config.cellBtn)?[t.optVal(t.crud.tableOption.editBtn,t.config.editBtn)&&!a.$cellEdit?n("ElButton",{directives:[{name:"permission",rawName:"v-permission",value:t.crud.getPermission("editBtn",a,o),expression:"crud.getPermission('editBtn', row, $index)"}],attrs:{type:t.menuText("primary"),icon:t.crud.getBtnIcon("editBtn"),size:t.crud.isMediumSize,disabled:t.crud.btnDisabledList[o]},on:{click:function(l){return l.stopPropagation(),t.crud.rowCell(a,o)}}},[t.isIconMenu?t._e():[t._v(" "+t._s(t.crud.menuIcon("editBtn"))+" ")]],2):t.optVal(t.crud.tableOption.saveBtn,t.config.saveBtn)&&a.$cellEdit?n("ElButton",{directives:[{name:"permission",rawName:"v-permission",value:t.crud.getPermission("saveBtn",a,o),expression:"crud.getPermission('saveBtn', row, $index)"}],attrs:{type:t.menuText("primary"),icon:t.crud.getBtnIcon("saveBtn"),size:t.crud.isMediumSize,disabled:t.crud.btnDisabledList[o]},on:{click:function(l){return l.stopPropagation(),t.crud.rowCell(a,o)}}},[t.isIconMenu?t._e():[t._v(" "+t._s(t.crud.menuIcon("saveBtn"))+" ")]],2):t._e(),a.$cellEdit?n("ElButton",{attrs:{type:t.menuText("danger"),icon:t.crud.getBtnIcon("cancelBtn"),size:t.crud.isMediumSize,disabled:t.crud.btnDisabledList[o]},on:{click:function(l){return l.stopPropagation(),t.crud.rowCancel(a,o)}}},[t.isIconMenu?t._e():[t._v(" "+t._s(t.crud.menuIcon("cancelBtn"))+" ")]],2):t._e()]:t._e(),t.optVal(t.crud.tableOption.viewBtn,t.config.viewBtn)?n("ElButton",{directives:[{name:"permission",rawName:"v-permission",value:t.crud.getPermission("viewBtn",a,o),expression:"crud.getPermission('viewBtn', row, $index)"}],attrs:{type:t.menuText("success"),icon:t.crud.getBtnIcon("viewBtn"),size:t.crud.isMediumSize,disabled:t.btnDisabled},on:{click:function(l){return l.stopPropagation(),t.crud.rowView(a,o)}}},[t.isIconMenu?t._e():[t._v(" "+t._s(t.crud.menuIcon("viewBtn"))+" ")]],2):t._e(),t.optVal(t.crud.tableOption.editBtn,t.config.editBtn)&&!t.crud.tableOption.cellBtn?n("ElButton",{directives:[{name:"permission",rawName:"v-permission",value:t.crud.getPermission("editBtn",a,o),expression:"crud.getPermission('editBtn', row, $index)"}],attrs:{type:t.menuText("primary"),icon:t.crud.getBtnIcon("editBtn"),size:t.crud.isMediumSize,disabled:t.btnDisabled},on:{click:function(l){return l.stopPropagation(),t.crud.rowEdit(a,o)}}},[t.isIconMenu?t._e():[t._v(" "+t._s(t.crud.menuIcon("editBtn"))+" ")]],2):t._e(),t.optVal(t.crud.tableOption.copyBtn,t.config.copyBtn)?n("ElButton",{directives:[{name:"permission",rawName:"v-permission",value:t.crud.getPermission("copyBtn",a,o),expression:"crud.getPermission('copyBtn', row, $index)"}],attrs:{type:t.menuText("primary"),icon:t.crud.getBtnIcon("copyBtn"),size:t.crud.isMediumSize,disabled:t.btnDisabled},on:{click:function(l){return l.stopPropagation(),t.crud.rowCopy(a)}}},[t.isIconMenu?t._e():[t._v(" "+t._s(t.crud.menuIcon("copyBtn"))+" ")]],2):t._e(),t.optVal(t.crud.tableOption.delBtn,t.config.delBtn)&&!a.$cellEdit?n("ElButton",{directives:[{name:"permission",rawName:"v-permission",value:t.crud.getPermission("delBtn",a,o),expression:"crud.getPermission('delBtn', row, $index)"}],attrs:{type:t.menuText("danger"),icon:t.crud.getBtnIcon("delBtn"),size:t.crud.isMediumSize,disabled:t.btnDisabled},on:{click:function(l){return l.stopPropagation(),t.crud.rowDel(a,o)}}},[t.isIconMenu?t._e():[t._v(" "+t._s(t.crud.menuIcon("delBtn"))+" ")]],2):t._e()]:t._e(),t._t("menu",null,{row:a,type:t.menuText("primary"),disabled:t.crud.btnDisabled,size:t.crud.isMediumSize,index:o})]}}],null,!0)}):t._e()},staticRenderFns$2U=[];const __vue2_script$38={name:"ColumnMenu",directives:{permission},inject:["crud"],data(){return{config:config$1}},computed:{menuType(){return this.crud.tableOption.menuType||this.$AVUE.menuType||"button"},isIconMenu(){return this.menuType==="icon"},isTextMenu(){return this.menuType==="text"},isMenu(){return this.menuType==="menu"}},methods:{optVal,menuText(t){return["text","menu"].includes(this.menuType)?"text":t}}},__cssModules$38={};var __component__$38=normalizeComponent(__vue2_script$38,render$2U,staticRenderFns$2U,!1,__vue2_injectStyles$38,null,null,null);function __vue2_injectStyles$38(t){for(let s in __cssModules$38)this[s]=__cssModules$38[s]}const ColumnMenu=function(){return __component__$38.exports}(),detail=(t={},s={},n={},r=[])=>{let a=t[s.prop];const o=s.type,l=s.separator;if(s.bind&&(a=getAsVal(t,s.bind)),core.isBlank(a))a="";else{const c=MULTIPLE_LIST.includes(s.type)&&s.multiple,u=ARRAY_VALUE_LIST.includes(s.type);if((["string","number"].includes(s.dataType)||c||u)&&!Array.isArray(a)&&(a=`${a}`.split(l||DIC_SPLIT),s.dataType==="number"&&(a=strCorNum(a))),ARRAY_LIST.includes(o))Array.isArray(a)?a=a.join(l||DIC_SHOW_SPLIT):a=a.split(l||DIC_SPLIT).join(l||DIC_SHOW_SPLIT);else if(o==="password")a=getPasswordChar(a,"*");else if(DATE_LIST.includes(o)&&s.format){const d=s.format.replace("dd","DD").replace("yyyy","YYYY"),p=dayjs.formatDate(Date.now(),"YYYY-MM-DD");if(o.indexOf("range")!==-1){let h=a[0]||"",m=a[1]||"";o==="timerange"&&h.length<=8&&m.length<8&&(h=`${p} ${h}`,m=`${p} ${m}`),a=[dayjs.formatDate(h,d),dayjs.formatDate(m,d)].join(s.separator||"~")}else o==="time"&&a.length<=8&&(a=`${p} ${a}`),a=dayjs.formatDate(a,d)}a=findByValue(r,a,s.props||n.props)}return s.formatter&&typeof s.formatter=="function"&&(a=s.formatter(t,t[s.prop],a,s)),a},loadCascaderDic=(t,s=[])=>new Promise((n,r)=>{const a=[],o=[],l={};t.forEach(c=>{c.parentProp&&a.push(c)}),s.forEach((c,u)=>{a.forEach(d=>{d.hide!==!0&&d.dicFlag!==!1&&o.push(new Promise(p=>{core.isBlank(c[d.parentProp])?p({prop:d.prop,data:[],index:u}):d.dicUrl&&sendDic({url:`${d.dicUrl.replace("{{key}}",c[d.parentProp])}`,props:d.props,method:d.dicMethod,headers:d.dicHeaders,formatter:d.dicFormatter,query:d.dicQuery,form:c}).then(h=>{p({prop:d.prop,data:h,index:u})})}))})}),Promise.all(o).then(c=>{c.forEach(u=>{core.isBlank(l[u.index])&&(l[u.index]={}),l[u.index][u.prop]=u.data}),n(l)})}),loadDic=t=>{let s=[];return new Promise((n,r)=>{s=createdDic(t).ajaxdic,handleDic(s).then(o=>{n(o)}).catch(o=>{r(o)})})},loadLocalDic=t=>{const s={},n=t.dicData||{};return t.column.forEach(r=>{r.dicData&&(s[r.prop]=detailDic(r.dicData,r.props,r.dataType))}),Object.assign(n,s)};function createdDic(t){const s=t.column||[],n=[],r={};let a=[];return s.forEach(o=>{const l=o.dicData,c=o.dicUrl,u=o.prop,d=o.parentProp;a=a.concat(o.cascader||[]),Array.isArray(l)&&(r[u]=l),!(o.dicFlag===!1||o.lazy===!0||a.includes(u))&&c&&!d&&n.push({url:c,name:u,method:o.dicMethod,headers:s.dicHeaders,formatter:o.dicFormatter,props:o.props,dataType:o.dataType,resKey:(o.props||{}).res,query:o.dicQuery||{}})}),{ajaxdic:n,locationdic:r}}function handleDic(t){const s={},n=[];return new Promise(r=>{t.forEach(a=>{n.push(new Promise(o=>{sendDic(Object.assign(a,{url:`${a.url.replace("{{key}}","")}`})).then(l=>{l=detailDic(l,a.props,a.dataType),o(l)}).catch(()=>{o([])})}))}),Promise.all(n).then(a=>{t.forEach((o,l)=>{s[o.name]=a[l]}),r(s)})})}const sendDic=t=>{let{url:s,query:n,method:r,resKey:a,props:o,formatter:l,headers:c={},value:u="",column:d,form:p={}}=t;d&&(s=d.dicUrl,r=d.dicMethod,c=d.headers||{},n=d.dicQuery||{},l=d.dicFormatter,o=d.props);const h="key";s=s||"";let m;const _={};return m=s.match(/[^{}]+(?=})/g)||[],m.forEach(x=>{const b=`{{${x}}}`,g=p[x];x===h?s=s.replace(b,u):s=s.replace(b,g)}),r==="post"&&(m=Object.keys(n),m.forEach(x=>{const b=n[x];typeof b=="string"&&b.match(/\{{|}}/g)?_[x]=p[b.replace(/\{{|}}/g,"")]:_[x]=b})),o&&(a=(o||{}).res||a),new Promise(x=>{const b=g=>{let y=[];typeof l=="function"?y=l(g.data):y=getObjValue(g.data,a),x(y)};r==="post"?window.axios.post(s,_,{headers:c}).then(function(g){b(g)}).catch(()=>[x([])]):window.axios.get(s,{params:n,headers:c}).then(function(g){b(g)}).catch(()=>[x([])])})};var render$2T=function(){var t=this,s=t.$createElement,n=t._self._c||s;return t.getColumnProp(t.column,"hide")?n("ElTableColumn",{key:t.column.prop,attrs:{prop:t.column.prop,label:t.column.label,"column-key":t.column.prop,"filter-placement":"bottom-end",filters:t.getColumnProp(t.column,"filters"),"filter-method":t.getColumnProp(t.column,"filterMethod")?t.handleFilterMethod:void 0,"filter-multiple":t.optVal(t.column.filterMultiple,!0),"show-overflow-tooltip":t.column.overHidden,"min-width":t.column.minWidth,sortable:t.getColumnProp(t.column,"sortable"),"sort-method":t.column.sortMethod,"sort-orders":t.column.sortOrders,"sort-by":t.column.sortBy,resizable:t.column.resizable,"render-header":t.column.renderHeader,align:t.column.align||t.crud.tableOption.align,"header-align":t.column.headerAlign||t.crud.tableOption.headerAlign,width:t.getColumnProp(t.column,"width"),fixed:t.getColumnProp(t.column,"fixed")},scopedSlots:t._u([{key:"header",fn:function(r){var a=r.$index;return[t.crud.getSlotName(t.column,"H",t.crud.$scopedSlots)?t._t(t.crud.getSlotName(t.column,"H"),null,null,{column:t.column,$index:a}):n("span",[t._v(t._s(t.column.label))])]}},{key:"default",fn:function(r){var a=r.row,o=r.$index;return[a.$cellEdit&&t.column.cell?n("ElFormItem",{attrs:{prop:t.crud.isTree?"":`list.${o}.${t.column.prop}`,label:t.vaildLabel(t.column,a," "),"label-width":t.vaildLabel(t.column,a,"1px"),rules:t.column.rules}},[n("ElTooltip",{attrs:{content:(t.crud.listError[`list.${o}.${t.column.prop}`]||{}).msg,disabled:!(t.crud.listError[`list.${o}.${t.column.prop}`]||{}).valid,placement:"top"}},[t.crud.getSlotName(t.column,"F",t.crud.$scopedSlots)?t._t(t.crud.getSlotName(t.column,"F"),null,null,{row:a,dic:t.crud.DIC[t.column.prop],size:t.crud.isMediumSize,index:o,disabled:t.crud.btnDisabledList[o],label:t.handleDetail(a,t.column),$cell:a.$cellEdit}):n("FormTemp",t._b({attrs:{column:t.column,size:t.crud.isMediumSize,"table-data":{index:o,row:a,label:t.handleDetail(a,t.column)},dic:(t.crud.cascaderDIC[o]||{})[t.column.prop]||t.crud.DIC[t.column.prop],props:t.column.props||t.crud.tableOption.props,readonly:t.column.readonly,disabled:t.crud.disabled||t.crud.tableOption.disabled||t.column.disabled||t.crud.btnDisabledList[o],clearable:t.optVal(t.column.clearable,!1),"column-slot":t.crud.mainSlot},on:{change:function(l){return t.columnChange(a,t.column,o)}},scopedSlots:t._u([t._l(t.crud.mainSlot,function(l){return{key:l,fn:function(c){return[t._t(l,null,null,c)]}}})],null,!0),model:{value:a[t.column.prop],callback:function(l){t.$set(a,t.column.prop,l)},expression:"row[column.prop]"}},"FormTemp",t.uploadFun(t.column,t.crud),!1))],2)],1):t.crud.$scopedSlots[t.column.prop]?t._t(t.column.prop,null,{row:a,index:o,dic:t.crud.DIC[t.column.prop],size:t.crud.isMediumSize,label:t.handleDetail(a,t.column)}):[["img","upload"].includes(t.column.type)?n("span",{staticClass:"avue-crud__img "},[t._l(t.getImgList(a,t.column),function(l,c){return[t.isMediaType(l,t.column.fileType)?n(t.isMediaType(l,t.column.fileType),{key:c,tag:"Component",attrs:{src:l},on:{click:function(u){return u.stopPropagation(),t.openImg(a,t.column,c)}}}):n("i",{key:c,staticClass:"el-icon-document",attrs:{src:l},on:{click:function(u){return u.stopPropagation(),t.openImg(a,t.column,c)}}})]})],2):t.column.type==="url"?n("span",t._l(t.corArray(a,t.column),function(l,c){return n("ElLink",{key:c,attrs:{type:"primary",href:l,target:t.column.target||"_blank"}},[t._v(t._s(l))])}),1):t.column.type==="rate"?n("span",[n("FyRate",{attrs:{disabled:""},model:{value:a[t.column.prop],callback:function(l){t.$set(a,t.column.prop,l)},expression:"row[column.prop]"}})],1):t.column.type==="color"?n("i",{staticClass:"avue-crud__color",style:{backgroundColor:a[t.column.prop]}}):t.column.type==="icon"?n("IconTemp",{attrs:{text:a[t.column.prop]}}):t.column.html?n("span",{domProps:{innerHTML:t._s(t.handleDetail(a,t.column))}}):n("span",{domProps:{textContent:t._s(t.handleDetail(a,t.column))}})]]}}],null,!0)}):t._e()},staticRenderFns$2T=[];const count$1={},__vue2_script$37={name:"ColumnSlot",inject:["dynamic","crud"],props:{column:Object,columnOption:Array},created(){const t=["getColumnProp","handleFilterMethod","handleFilters"];Object.keys(this.dynamic).forEach(s=>{t.includes(s)&&(this[s]=this.dynamic[s])})},methods:{isBlank:core.isBlank,optVal,uploadFun,isMediaType(t,s){return isMediaType(t,s)},vaildLabel(t,s,n){if(t.rules&&s.$cellEdit)return n},columnChange(t,s,n){const r=`${n}-${s.prop}`;count$1[r]||(this.handleChange(s,t),typeof s.change=="function"&&s.cell==!0&&s.change({row:t,column:s,index:n,value:t[s.prop]})),count$1[r]=!0,this.$nextTick(()=>count$1[r]=!1)},handleChange(t,s){t.cascader&&this.$nextTick(()=>{const n=t.cascader;n.forEach(r=>{const a=r,o=s[t.prop],l=s.$index,c=this.findObject(this.columnOption,a);core.isBlank(c)||(core.isBlank(this.crud.cascaderDIC[l])&&this.$set(this.crud.cascaderDIC,l,{}),this.crud.cascaderIndexList.includes(l)&&n.forEach(u=>{this.$set(this.crud.cascaderDIC[l],u.prop,[]),n.forEach(d=>s[d]="")}),!(core.isBlank(n)||core.isBlank(o)||core.isBlank(c))&&sendDic({column:c,value:o,form:s}).then(u=>{const d=u||[];this.crud.cascaderIndexList.includes(l)||this.crud.cascaderIndexList.push(l),this.crud.cascaderDicList[l]||this.$set(this.crud.cascaderDicList,l,{}),this.crud.cascaderDicList[l][a]||this.$set(this.crud.cascaderDicList[l],a,d),this.$set(this.crud.cascaderDIC[l],a,d),!core.isBlank(d[c.cascaderIndex])&&!core.isBlank(d)&&!core.isBlank(c.cascaderIndex)&&(s[a]=d[c.cascaderIndex][(c.props||{}).value||DIC_PROPS.value])}))})})},handleDetail(t,s){let n;const r=s.parentProp?(this.crud.cascaderDIC[t.$index]||{})[s.prop]:this.crud.DIC[s.prop];return n=detail(t,s,this.crud.tableOption,r),!core.isBlank(r)&&this.crud.tableOption.filterDic!==!0&&(t[`$${s.prop}`]=n),n},corArray(t,s){let n=this.handleDetail(t,s);return Array.isArray(n)||(n=core.isBlank(n)?[]:n.split(DIC_SHOW_SPLIT)),deepClone(n)},openImg(t,s,n){let r=this.getImgList(t,s);r=r.map(a=>({thumbUrl:a,url:a,type:s.fileType})),this.$ImagePreview(r,n)},getImgList(t,s){var o,l;const n=((o=s.propsHttp)==null?void 0:o.home)||"",r=((l=s.props)==null?void 0:l.value)||DIC_PROPS.value,a=this.corArray(t,s);return a.forEach((c,u)=>{a[u]=n+(c[r]?c[r]:c)}),a}}},__cssModules$37={};var __component__$37=normalizeComponent(__vue2_script$37,render$2T,staticRenderFns$2T,!1,__vue2_injectStyles$37,null,null,null);function __vue2_injectStyles$37(t){for(let s in __cssModules$37)this[s]=__cssModules$37[s]}const ColumnSlot=function(){return __component__$37.exports}();var render$2S=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{class:["avue-comment",{"avue-comment--reverse":t.reverse}]},[n("img",{staticClass:"avue-comment__avatar",attrs:{src:t.avatar,alt:""}}),n("div",{staticClass:"avue-comment__main"},[n("div",{staticClass:"avue-comment__header"},[t.author?n("div",{staticClass:"avue-comment__author",domProps:{textContent:t._s(t.author)}}):t._e(),t._t("default")],2),t.body?n("div",{staticClass:"avue-comment__body",domProps:{innerHTML:t._s(t.body)}}):t._e()])])},staticRenderFns$2S=[];const Comment_vue_vue_type_style_index_0_lang="",propsDefault$2={avatar:"avatar",author:"author",body:"body"},__vue2_script$36={name:"Comment",props:{reverse:{type:Boolean,default:!1},data:{type:Object,default:()=>({})},props:{type:Object,default:()=>propsDefault$2},option:{type:Object,default:()=>({})}},computed:{avatarKey(){return this.props.avatar||propsDefault$2.avatar},authorKey(){return this.props.author||propsDefault$2.author},bodyKey(){return this.props.body||propsDefault$2.body},avatar(){return this.data[this.avatarKey]},author(){return this.data[this.authorKey]},body(){return this.data[this.bodyKey]}}},__cssModules$36={};var __component__$36=normalizeComponent(__vue2_script$36,render$2S,staticRenderFns$2S,!1,__vue2_injectStyles$36,null,null,null);function __vue2_injectStyles$36(t){for(let s in __cssModules$36)this[s]=__cssModules$36[s]}const Comment=function(){return __component__$36.exports}();function onClick(t,s,n){return v(this,null,function*(){const{stop:r,prevent:a,message:o,loadable:l,loadingText:c,confirmable:u,confirmType:d,confirmText:p}=s;r&&t.stopPropagation(),a&&t.preventDefault();const{before:h,click:m,cancel:_,after:x}=n;if(core.isFunction(m))try{let b=!0;if(core.isFunction(h)&&(b=yield h(t)),b===!1)return;u&&(yield MessageBox.confirm(o||p,{type:d}));let g;l&&(g=Loading.service({background:"rgba(0,0,0,0.3)",text:c}));try{yield m(t)}catch(y){}l&&g.close(),core.isFunction(x)&&(yield x(t))}catch(b){core.isFunction(_)&&(yield _(b))}})}const confirmableMixin={functional:!0,props:{stop:{type:Boolean,default:!0},prevent:{type:Boolean,default:!0},text:{type:String,default:""},message:{type:String,default:"你确定要删除该记录吗?"},confirmable:{type:Boolean,default:!0},confirmText:{type:String,default:"你确定要删除该记录吗?"},confirmType:{type:String,default:"warning"},loadable:Boolean,loadingText:{type:String,default:"正在处理中请稍候..."},tag:{type:String,default:"i"}},render(t,{props:s,data:n,children:r,listeners:a}){return t(s.tag,S(f({},n),{on:{click:o=>onClick(o,s,a)},props:s}),r||s.text)}},__vue2_script$35={name:"Confirmable",mixins:[confirmableMixin]};let __vue2_render$f,__vue2_staticRenderFns$f;const __cssModules$35={};var __component__$35=normalizeComponent(__vue2_script$35,__vue2_render$f,__vue2_staticRenderFns$f,!1,__vue2_injectStyles$35,null,null,null);function __vue2_injectStyles$35(t){for(let s in __cssModules$35)this[s]=__cssModules$35[s]}const Confirmable=function(){return __component__$35.exports}(),props$2={props:{type:{type:String,default:"danger"},size:String,icon:{type:String,default:""},nativeType:{type:String,default:"button"},loading:Boolean,disabled:Boolean,plain:Boolean,autofocus:Boolean,round:Boolean,text:{type:String,default:"删除"},tag:{type:String,default:"ElButton"}}},__vue2_script$34={name:"ConfirmButton",mixins:[confirmableMixin,props$2]};let __vue2_render$e,__vue2_staticRenderFns$e;const __cssModules$34={};var __component__$34=normalizeComponent(__vue2_script$34,__vue2_render$e,__vue2_staticRenderFns$e,!1,__vue2_injectStyles$34,null,null,null);function __vue2_injectStyles$34(t){for(let s in __cssModules$34)this[s]=__cssModules$34[s]}const ConfirmButton=function(){return __component__$34.exports}();var render$2R=function(){var t=this,s=t.$createElement,n=t._self._c||s;return t.rendered?n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"cm-container",style:t.axisComputed},[n("svg",{staticStyle:{position:"absolute",width:"0",height:"0",overflow:"hidden"},attrs:{"aria-hidden":"true"}},[n("symbol",{attrs:{id:"icon-arrow",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M288.791335 65.582671l446.41733 446.417329-446.41733 446.417329z"}})])]),n("ul",{staticClass:"cm-ul cm-ul-1 easy-cm-ul",class:t.underline?"cm-underline":""},t._l(t.list,function(r,a){return n("li",{key:a,style:t.liStyle},[n("div",{class:t.firstLeft?"cm-left":"",on:{click:function(o){return t.onItemClick(r,[a])}}},[n("i",{staticClass:"cm-item-icon",class:r.icon}),n("span",{staticClass:"cm-item-label"},[t._v(t._s(r.text))]),t.arrow&&r.children&&r.children.length>0?n("svg",{staticClass:"icon",attrs:{"aria-hidden":"true"}},[n("use",{attrs:{"xlink:href":"#icon-arrow"}})]):t._e()]),r.children&&r.children.length>0?n("ul",{staticClass:"cm-ul cm-ul-2 easy-cm-ul",class:t.underline?"cm-underline":"",style:t.secondBorderCheck(a)},t._l(r.children,function(o,l){return n("li",{key:l,style:t.liStyle},[n("div",{class:t.secondLeft?"cm-left":"",on:{click:function(c){return t.onItemClick(o,[a,l])}}},[n("i",{staticClass:"cm-item-icon",class:o.icon}),n("span",{staticClass:"cm-item-label"},[t._v(t._s(o.text))]),t.arrow&&o.children&&o.children.length>0?n("svg",{staticClass:"icon",attrs:{"aria-hidden":"true"}},[n("use",{attrs:{"xlink:href":"#icon-arrow"}})]):t._e()]),o.children&&o.children.length>0?n("ul",{staticClass:"cm-ul cm-ul-3 easy-cm-ul",class:t.underline?"cm-underline":"",style:t.thirdBorderCheck(a,l)},t._l(o.children,function(c,u){return n("li",{key:u,style:t.liStyle},[n("div",{on:{click:function(d){return t.onItemClick(c,[a,l,u])}}},[n("i",{staticClass:"cm-item-icon",class:c.icon}),n("span",{staticClass:"cm-item-label"},[t._v(t._s(c.text))])])])}),0):t._e()])}),0):t._e()])}),0)]):t._e()},staticRenderFns$2R=[];const ContextMenu_vue_vue_type_style_index_0_lang="",__vue2_script$33={name:"ContextMenu",props:{list:{type:Array,required:!0},underline:{type:Boolean,default:!1},arrow:{type:Boolean,default:!0},border:{type:Boolean,default:!0},itemWidth:{type:Number,default:140},itemHeight:{type:Number,default:36},itemFontSize:{type:[Number,String],default:12},offset:{type:Object,default:()=>({x:6,y:2})},borderWidth:{type:Number,default:6}},data(){return{visible:!1,rendered:!1,axis:{x:0,y:0}}},computed:{axisComputed(){return{top:`${this.axis.y+this.offset.y}px`,left:`${this.axis.x+this.offset.x}px`}},liStyle(){return{width:`${this.itemWidth}px`,height:`${this.itemHeight}px`,lineHeight:`${this.itemHeight}px`,fontSize:`${this.itemFontSize}px`}},firstLeft(){const t=document.body.offsetWidth;return this.axis.x+this.itemWidth*2>=t},secondLeft(){const t=document.body.offsetWidth;return this.axis.x+this.itemWidth*3>=t}},watch:{axis(){if(this.border){const t=document.body.offsetWidth,s=document.body.offsetHeight;this.axis.x+this.offset.x+this.itemWidth>=t&&(this.axis.x=t-this.itemWidth-this.borderWidth-this.offset.x),this.axis.y+this.offset.y+this.itemHeight*this.list.length>=s&&(this.axis.y=s-this.itemHeight*this.list.length-this.borderWidth-this.offset.y)}}},methods:{secondBorderCheck(t){const s=document.body.offsetWidth,n=document.body.offsetHeight,r=this.axis.y+(t+this.list[t].children.length)*this.itemHeight;return{left:this.axis.x+this.itemWidth*2>=s?"-100%":"100%",top:n>=r?0:`${-(this.list[t].children.length-1)*this.itemHeight}px`}},thirdBorderCheck(t,s){const n=document.body.offsetWidth,r=document.body.offsetHeight,a=this.axis.y+this.list[t].children[s].children.length*this.itemHeight+(t+s)*this.itemHeight+parseInt(this.secondBorderCheck(t).top);return{left:this.axis.x+this.itemWidth*3>=n?"-100%":"100%",top:a>r?`${-(this.list[t].children[s].children.length-1)*this.itemHeight}px`:0}},show(t){document.addEventListener("click",this.hide,!0),this.axis={x:t.clientX,y:t.clientY},this.rendered=!0,this.visible=!0},hide(){this.visible=!1,document.removeEventListener("click",this.hide)},onItemClick(t,s){this.$emit("on-item-click",t,s)}}},__cssModules$33={};var __component__$33=normalizeComponent(__vue2_script$33,render$2R,staticRenderFns$2R,!1,__vue2_injectStyles$33,null,null,null);function __vue2_injectStyles$33(t){for(let s in __cssModules$33)this[s]=__cssModules$33[s]}const ContextMenu=function(){return __component__$33.exports}();var render$2Q=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("span",[t._v(t._s(t.end))])},staticRenderFns$2Q=[];const __vue2_script$32={name:"CountUp",props:{animation:{type:Boolean,default:!0},start:{type:[Number,String],required:!1,default:0},end:{type:[Number,String],required:!0},decimals:{type:Number,required:!1,default:0},duration:{type:Number,required:!1,default:2},options:{type:Object,required:!1,default(){return{}}},callback:{type:Function,required:!1,default:()=>{}}},watch:{decimals(){var t;(t=this.c)==null||t.update(this.end)},end(t){var s;(s=this.c)==null||s.update(t)}},mounted(){this.animation&&this.init()},beforeDestroy(){this.destroy()},methods:{init(){this.c||(this.c=new countup_js.CountUp(this.$el,this.end,S(f({},this.options),{decimal:this.decimals,duration:this.duration,startVal:this.start})),this.c.start(()=>{this.callback(this.c)}))},destroy(){this.c=null}},start(t){var s;(s=this.c)==null||s.start(()=>{t&&t(this.c)})},pauseResume(){var t;(t=this.c)==null||t.pauseResume()},reset(){var t;(t=this.c)==null||t.reset()},update(t){var s;(s=this.c)==null||s.update(t)}},__cssModules$32={};var __component__$32=normalizeComponent(__vue2_script$32,render$2Q,staticRenderFns$2Q,!1,__vue2_injectStyles$32,null,null,null);function __vue2_injectStyles$32(t){for(let s in __cssModules$32)this[s]=__cssModules$32[s]}const CountUp=function(){return __component__$32.exports}();var render$2P=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"os-host"},[n("div",{staticClass:"os-resize-observer-host"}),n("div",{staticClass:"os-padding"},[n("div",{ref:"viewport",staticClass:"os-viewport"},[n("div",{ref:"content",staticClass:"os-content"},[t._t("default")],2)])]),t._m(0),t._m(1),n("div",{staticClass:"os-scrollbar-corner"})])},staticRenderFns$2P=[function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"os-scrollbar os-scrollbar-horizontal "},[n("div",{staticClass:"os-scrollbar-track"},[n("div",{staticClass:"os-scrollbar-handle"})])])},function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"os-scrollbar os-scrollbar-vertical"},[n("div",{staticClass:"os-scrollbar-track"},[n("div",{staticClass:"os-scrollbar-handle"})])])}];const __vue2_script$31={name:"CustomScrollbar",props:{options:{type:Object,default:void 0},extensions:{type:[String,Array,Object],default:void 0},theme:{type:String,default:void 0},onLoadMore:{type:Function,default:null},onScroll:{type:Function},reverse:{type:Boolean,default:!1},textarea:{type:Boolean,default:!1}},computed:{innerOptions(){const t=this.options||{};return S(f({},t),{className:this.theme||"os-theme-dark",scrollbars:{autoHide:"l",autoHideDelay:100},callbacks:{onScroll:this.internalScroll}})}},watch:{innerOptions(t){const s=this.scroller;OverlayScrollbars.valid(s)&&s.options(t)}},mounted(){this.viewport=this.$refs.viewport,this.scroller=OverlayScrollbars(this.getContentWrapper(),this.options||{className:this.theme||"os-theme-dark",scrollbars:{autoHide:"l",autoHideDelay:100},callbacks:{onScroll:this.internalScroll}},this.extensions)},activated(){var t;this.$refs.viewport.scrollTop=(t=this.scrollOffset)!=null?t:0},deactivated(){this.scrollOffset=this.$refs.viewport.scrollTop},beforeDestroy(){const t=this.scroller;OverlayScrollbars.valid(t)&&(t.destroy(),this.scroller=null)},methods:{scrollBottom(){this.$refs.viewport.scrollTop=this.$refs.viewport.scrollHeight},getScroller(){return this.scroller},getScrollHeight(){return this.$refs.viewport.scrollHeight},setScrollTop(t){this.$refs.viewport.scrollTop=t},getContentWrapper(){return this.textarea?this.$refs.content.querySelector("textarea"):this.$el},internalScroll(t){this.onScroll&&this.onScroll(t);const s=t.target;if(!this.reverse&&Math.ceil(s.clientHeight+s.scrollTop)>=s.scrollHeight){this.onLoadMore&&this.onLoadMore();return}this.reverse&&s.scrollTop===0&&this.onLoadMore&&this.onLoadMore()}}},__cssModules$31={};var __component__$31=normalizeComponent(__vue2_script$31,render$2P,staticRenderFns$2P,!1,__vue2_injectStyles$31,null,null,null);function __vue2_injectStyles$31(t){for(let s in __cssModules$31)this[s]=__cssModules$31[s]}const CustomScrollbar=function(){return __component__$31.exports}();var render$2O=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"data-box"},[n("ElRow",{attrs:{span:24}},t._l(t.data,function(r,a){return n("ElCol",{key:a,attrs:{md:t.span,xs:24,sm:12}},[n("div",{staticClass:"item"},[n("a",{attrs:{href:r.href,target:r.target},on:{click:function(o){r.click&&r.click(r)}}},[n("div",{staticClass:"item-icon",style:{backgroundColor:r.color}},[n("i",{class:r.icon})]),n("div",{staticClass:"item-info"},[n("CountUp",{staticClass:"title",style:{color:r.color},attrs:{animation:r.animation||t.animation,decimals:r.decimals||t.decimals,end:r.count}}),n("div",{staticClass:"info"},[t._v(t._s(r.title))])],1)])])])}),1)],1)},staticRenderFns$2O=[];const DataBox_vue_vue_type_style_index_0_lang="",__vue2_script$30={name:"DataBox",props:{option:{type:Object,default:()=>{}}},computed:{animation(){return this.option.animation},decimals(){return this.option.decimals||0},span(){return this.option.span||8},data(){return this.option.data||[]}}},__cssModules$30={};var __component__$30=normalizeComponent(__vue2_script$30,render$2O,staticRenderFns$2O,!1,__vue2_injectStyles$30,null,null,null);function __vue2_injectStyles$30(t){for(let s in __cssModules$30)this[s]=__cssModules$30[s]}const DataBox=function(){return __component__$30.exports}();var render$2N=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"data-card"},[n("ElRow",{attrs:{span:24}},t._l(t.data,function(r,a){return n("ElCol",{key:a,attrs:{md:t.span,xs:24,sm:12}},[n("div",{staticClass:"item"},[n("a",{attrs:{href:r.href,target:r.target},on:{click:function(o){r.click&&r.click(r)}}},[n("img",{staticClass:"item-img",attrs:{src:r.src,alt:""}}),n("div",{staticClass:"item-text",style:{backgroundColor:t.bgText}},[n("h3",{style:{color:t.colorText}},[t._v(t._s(r.name))]),n("p",{style:{color:t.colorText}},[t._v(t._s(r.text))])])])])])}),1)],1)},staticRenderFns$2N=[];const DataCard_vue_vue_type_style_index_0_lang="",__vue2_script$2$={name:"DataCard",props:{option:{type:Object,default:()=>{}}},computed:{span(){return this.option.span||6},data(){return this.option.data||[]},colorText(){return this.option.colorText||"#fff"},bgText(){return this.option.bgText||"#2e323f"},borderColor(){return this.option.borderColor||"#2e323f"}}},__cssModules$2$={};var __component__$2$=normalizeComponent(__vue2_script$2$,render$2N,staticRenderFns$2N,!1,__vue2_injectStyles$2$,null,null,null);function __vue2_injectStyles$2$(t){for(let s in __cssModules$2$)this[s]=__cssModules$2$[s]}const DataCard=function(){return __component__$2$.exports}();var render$2M=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-data-cardText"},[n("ElRow",{attrs:{span:24}},t._l(t.data,function(r,a){return n("ElCol",{key:a,attrs:{md:t.span,xs:24,sm:12}},[n("div",{staticClass:"item"},[n("a",{attrs:{href:r.href,target:r.target},on:{click:function(o){r.click&&r.click(r)}}},[n("div",{staticClass:"item-header"},[t._v(" "+t._s(r.title)+" ")]),n("div",{staticClass:"item-content"},[t._v(t._s(r.content))]),n("div",{staticClass:"item-footer"},[n("span",[t._v(t._s(r.name))]),n("span",[t._v(t._s(r.date))])])])])])}),1)],1)},staticRenderFns$2M=[];const DataCardtext_vue_vue_type_style_index_0_lang="",__vue2_script$2_={name:"DataCardtext",props:{option:{type:Object,default:()=>{}}},computed:{icon(){return this.option.icon},color(){return this.option.color||"#333"},span(){return this.option.span||8},data(){return this.option.data||[]}}},__cssModules$2_={};var __component__$2_=normalizeComponent(__vue2_script$2_,render$2M,staticRenderFns$2M,!1,__vue2_injectStyles$2_,null,null,null);function __vue2_injectStyles$2_(t){for(let s in __cssModules$2_)this[s]=__cssModules$2_[s]}const DataCardtext=function(){return __component__$2_.exports}();var render$2L=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-data-display"},[n("ElRow",{attrs:{span:24}},t._l(t.data,function(r,a){return n("ElCol",{key:a,attrs:{md:t.span,xs:12,sm:12}},[n("div",{staticClass:"item",style:{color:t.color}},[n("a",{attrs:{href:r.href,target:r.target},on:{click:function(o){r.click&&r.click(r)}}},[n("CountUp",{staticClass:"count",attrs:{animation:r.animation||t.animation,decimals:r.decimals||t.decimals,end:r.count}}),n("span",{staticClass:"splitLine"}),n("div",{staticClass:"title"},[t._v(t._s(r.title))])],1)])])}),1)],1)},staticRenderFns$2L=[];const DataDisplay_vue_vue_type_style_index_0_lang="",__vue2_script$2Z={name:"DataDisplay",props:{option:{type:Object,default:()=>{}}},computed:{animation(){return this.option.animation},decimals(){return this.option.decimals||0},span(){return this.option.span||6},data(){return this.option.data||[]},color(){return this.option.color||"rgb(63, 161, 255)"}}},__cssModules$2Z={};var __component__$2Z=normalizeComponent(__vue2_script$2Z,render$2L,staticRenderFns$2L,!1,__vue2_injectStyles$2Z,null,null,null);function __vue2_injectStyles$2Z(t){for(let s in __cssModules$2Z)this[s]=__cssModules$2Z[s]}const DataDisplay=function(){return __component__$2Z.exports}();var render$2K=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"data-icons"},[n("ElRow",{attrs:{span:24}},[t._l(t.data,function(r,a){return[n("ElCol",{key:a,attrs:{xs:12,sm:6,md:t.span}},[n("div",{staticClass:"item",class:[{"item--easy":t.discount}]},[n("a",{attrs:{href:r.href,target:r.target},on:{click:function(o){r.click&&r.click(r)}}},[n("div",{staticClass:"item-icon",style:{color:t.color}},[n("i",{class:r.icon})]),n("div",{staticClass:"item-info"},[n("span",[t._v(t._s(r.title))]),n("CountUp",{staticClass:"count",style:{color:t.color},attrs:{animation:r.animation||t.animation,decimals:r.decimals||t.decimals,end:r.count}})],1)])])])]})],2)],1)},staticRenderFns$2K=[];const DataIcons_vue_vue_type_style_index_0_lang="",__vue2_script$2Y={name:"DataIcons",props:{option:{type:Object,default:()=>{}}},computed:{animation(){return this.option.animation},decimals(){return this.option.decimals||0},span(){return this.option.span||4},data(){return this.option.data},color(){return this.option.color||"rgb(63, 161, 255)"},discount(){return this.option.discount||!1}}},__cssModules$2Y={};var __component__$2Y=normalizeComponent(__vue2_script$2Y,render$2K,staticRenderFns$2K,!1,__vue2_injectStyles$2Y,null,null,null);function __vue2_injectStyles$2Y(t){for(let s in __cssModules$2Y)this[s]=__cssModules$2Y[s]}const DataIcons=function(){return __component__$2Y.exports}();var render$2J=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-data-imgtext"},[n("ElRow",{attrs:{span:24}},t._l(t.data,function(r,a){return n("ElCol",{key:a,attrs:{md:t.span,xs:24,sm:12}},[n("div",{staticClass:"item",style:{color:t.color}},[n("a",{attrs:{href:r.href,target:r.target},on:{click:function(o){r.click&&r.click(r)}}},[n("div",{staticClass:"item-header"},[n("img",{attrs:{src:r.imgsrc,alt:""}})]),n("div",{staticClass:"item-content"},[n("span",[t._v(t._s(r.title))]),n("p",[t._v(t._s(r.content))])]),n("div",{staticClass:"item-footer"},[n("div",{staticClass:"time"},[n("span",[t._v(t._s(r.time))])]),n("div",{staticClass:"imgs"},[n("ul",t._l(r.headimg,function(o,l){return n("li",{key:l},[n("ElTooltip",{attrs:{effect:"dark",content:o.name,placement:"top-start"}},[n("img",{attrs:{src:o.src,alt:""}})])],1)}),0)])])])])])}),1)],1)},staticRenderFns$2J=[];const DataImgtext_vue_vue_type_style_index_0_lang="",__vue2_script$2X={name:"DataImgtext",props:{option:{type:Object,default:()=>{}}},computed:{span(){return this.option.span||6},data(){return this.option.data||[]},color(){return this.option.color||"rgb(63, 161, 255)"}}},__cssModules$2X={};var __component__$2X=normalizeComponent(__vue2_script$2X,render$2J,staticRenderFns$2J,!1,__vue2_injectStyles$2X,null,null,null);function __vue2_injectStyles$2X(t){for(let s in __cssModules$2X)this[s]=__cssModules$2X[s]}const DataImgtext=function(){return __component__$2X.exports}();var render$2I=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-data-operatext"},[n("ElRow",{attrs:{span:24}},t._l(t.data,function(r,a){return n("ElCol",{key:a,attrs:{md:t.span,xs:24,sm:12}},[n("div",{staticClass:"item"},[n("a",{attrs:{href:r.href},on:{click:function(o){r.click&&r.click(r)}}},[n("div",{staticClass:"item-header",style:{backgroundColor:r.color,backgroundImage:`url(${r.colorImg})`}},[n("span",{staticClass:"item-title"},[t._v(t._s(r.title))]),n("span",{staticClass:"item-subtitle"},[t._v(t._s(r.subtitle))])]),n("div",{staticClass:"item-content"},[n("div",{staticClass:"item-img"},[n("img",{attrs:{src:r.img,alt:""}})]),n("div",{staticClass:"item-list"},t._l(r.list,function(o,l){return n("div",{key:l,staticClass:"item-row"},[n("span",{staticClass:"item-label"},[t._v(t._s(o.label))]),n("span",{staticClass:"item-value"},[t._v(t._s(o.value))])])}),0)])])])])}),1)],1)},staticRenderFns$2I=[];const DataOperatext_vue_vue_type_style_index_0_lang="",__vue2_script$2W={name:"DataOperatext",props:{option:{type:Object,default:()=>{}}},computed:{span(){return this.option.span||6},data(){return this.option.data||[]}}},__cssModules$2W={};var __component__$2W=normalizeComponent(__vue2_script$2W,render$2I,staticRenderFns$2I,!1,__vue2_injectStyles$2W,null,null,null);function __vue2_injectStyles$2W(t){for(let s in __cssModules$2W)this[s]=__cssModules$2W[s]}const DataOperatext=function(){return __component__$2W.exports}();var render$2H=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-data-panel"},[n("ElRow",{attrs:{span:24}},t._l(t.data,function(r,a){return n("ElCol",{key:a,attrs:{md:t.span,xs:24,sm:12}},[n("a",{attrs:{href:r.href},on:{click:function(o){r.click&&r.click(r)}}},[n("div",{staticClass:"item"},[n("div",{staticClass:"item-icon"},[n("i",{class:r.icon,style:{color:r.color}})]),n("div",{staticClass:"item-info"},[n("div",{staticClass:"item-title"},[t._v(t._s(r.title))]),n("CountUp",{staticClass:"item-count",attrs:{animation:r.animation||t.animation,decimals:r.decimals||t.decimals,end:r.count}})],1)])])])}),1)],1)},staticRenderFns$2H=[];const DataPanel_vue_vue_type_style_index_0_lang="",__vue2_script$2V={name:"DataPanel",props:{option:{type:Object,default:()=>{}}},computed:{decimals(){return this.option.decimals||0},animation(){return this.option.animation},span(){return this.option.span||6},data(){return this.option.data||[]}}},__cssModules$2V={};var __component__$2V=normalizeComponent(__vue2_script$2V,render$2H,staticRenderFns$2H,!1,__vue2_injectStyles$2V,null,null,null);function __vue2_injectStyles$2V(t){for(let s in __cssModules$2V)this[s]=__cssModules$2V[s]}const DataPanel=function(){return __component__$2V.exports}();var render$2G=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-data-pay"},[n("ElRow",{attrs:{span:24}},t._l(t.data,function(r,a){return n("ElCol",{key:a,attrs:{md:t.span,xs:24,sm:12}},[n("div",{staticClass:"item"},[n("div",{staticClass:"top",style:{backgroundColor:r.color}}),n("div",{staticClass:"header"},[n("p",{staticClass:"title"},[t._v(" "+t._s(r.title)+" ")]),n("img",{staticClass:"img",attrs:{src:r.src,alt:""}}),r.subtitle?[n("p",{staticClass:"subtitle",style:{color:r.color}},[t._v(" "+t._s(r.subtitle)+" ")])]:t._e(),r.money||r.dismoney?[n("p",{staticClass:"money",style:{color:r.color}},[n("span",[t._v("¥")]),n("CountUp",{staticClass:"b",attrs:{decimals:r.decimals||t.decimals,animation:r.animation||t.animation,end:r.dismoney}}),n("s",[t._v(t._s(r.money))]),n("em",[t._v(t._s(r.tip))])],1)]:t._e(),n("div",{staticClass:"line"}),n("a",{staticClass:"btn",style:{backgroundColor:r.color},attrs:{href:r.href},on:{click:function(o){r.click&&r.click(r)}}},[t._v(t._s(r.subtext))])],2),n("div",{staticClass:"list"},t._l(r.list,function(o,l){return n("div",{key:l,staticClass:"list-item"},[o.check?n("i",{staticClass:"list-item-icon list-item--check",style:{color:r.color}},[t._v("√")]):n("i",{staticClass:"list-item-icon list-item--no"},[t._v("x")]),n("a",{attrs:{href:o.href?o.href:"javascript:void(0);"}},[n("ElTooltip",{attrs:{effect:"dark",disabled:!o.tip,placement:"top"}},[n("div",{attrs:{slot:"content"},domProps:{innerHTML:t._s(o.tip)},slot:"content"}),n("span",{class:{"list-item--link":o.href}},[t._v(t._s(o.title))])])],1)])}),0)])])}),1)],1)},staticRenderFns$2G=[];const DataPay_vue_vue_type_style_index_0_lang="",__vue2_script$2U={name:"DataPay",props:{option:{type:Object,default:()=>{}}},computed:{animation(){return this.option.animation},decimals(){return this.option.decimals||0},span(){return this.option.span||6},data(){return this.option.data||[]}}},__cssModules$2U={};var __component__$2U=normalizeComponent(__vue2_script$2U,render$2G,staticRenderFns$2G,!1,__vue2_injectStyles$2U,null,null,null);function __vue2_injectStyles$2U(t){for(let s in __cssModules$2U)this[s]=__cssModules$2U[s]}const DataPay=function(){return __component__$2U.exports}();var render$2F=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"data-price"},[n("ElRow",{attrs:{span:24}},[t._l(t.data,function(r,a){return[n("ElCol",{key:a,attrs:{xs:12,sm:6,md:t.span}},[n("div",{staticClass:"item item--active"},[n("a",{attrs:{href:r.href,target:r.target},on:{click:function(o){r.click&&r.click(r)}}},[n("div",{staticClass:"title"},[t._v(" "+t._s(r.title)+" ")]),n("div",{staticClass:"body"},[n("span",{staticClass:"price"},[t._v(t._s(r.price))]),n("span",{staticClass:"append"},[t._v(t._s(r.append))])]),n("div",{staticClass:"list"},t._l(r.list,function(o,l){return n("p",{key:l},[t._v(" "+t._s(o)+" ")])}),0)])])])]})],2)],1)},staticRenderFns$2F=[];const DataPrice_vue_vue_type_style_index_0_lang="",__vue2_script$2T={name:"DataPrice",props:{option:{type:Object,default:()=>{}}},computed:{span(){return this.option.span||6},data(){return this.option.data}}},__cssModules$2T={};var __component__$2T=normalizeComponent(__vue2_script$2T,render$2F,staticRenderFns$2F,!1,__vue2_injectStyles$2T,null,null,null);function __vue2_injectStyles$2T(t){for(let s in __cssModules$2T)this[s]=__cssModules$2T[s]}const DataPrice=function(){return __component__$2T.exports}();var render$2E=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"data-progress"},[n("ElRow",{attrs:{span:24}},t._l(t.data,function(r,a){return n("ElCol",{key:a,attrs:{md:t.span,xs:24,sm:12}},[n("div",{staticClass:"item"},[n("a",{attrs:{href:r.href,target:r.target},on:{click:function(o){r.click&&r.click(r)}}},[n("div",{staticClass:"item-header"},[n("CountUp",{staticClass:"item-count",attrs:{animation:r.animation||t.animation,decimals:r.decimals||t.decimals,end:r.count}}),n("div",{staticClass:"item-title",domProps:{textContent:t._s(r.title)}})],1),n("ElProgress",{attrs:{"stroke-width":15,percentage:r.count,color:r.color,"show-text":!1}})],1)])])}),1)],1)},staticRenderFns$2E=[];const DataProgress_vue_vue_type_style_index_0_lang="",__vue2_script$2S={name:"DataProgress",props:{option:{type:Object,default:()=>{}}},computed:{animation(){return this.option.animation},decimals(){return this.option.decimals||0},span(){return this.option.span||8},data(){return this.option.data||[]}}},__cssModules$2S={};var __component__$2S=normalizeComponent(__vue2_script$2S,render$2E,staticRenderFns$2E,!1,__vue2_injectStyles$2S,null,null,null);function __vue2_injectStyles$2S(t){for(let s in __cssModules$2S)this[s]=__cssModules$2S[s]}const DataProgress=function(){return __component__$2S.exports}();var render$2D=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-data-rotate"},[n("ElRow",{attrs:{span:24}},t._l(t.data,function(r,a){return n("ElCol",{key:a,attrs:{md:t.span,xs:24,sm:12}},[n("div",{staticClass:"item",style:{backgroundColor:r.color}},[n("div",{staticClass:"item-box"},[n("CountUp",{staticClass:"item-count",attrs:{decimals:r.decimals||t.decimals,animation:r.animation||t.animation,end:r.count}}),n("span",{staticClass:"item-title"},[t._v(t._s(r.title))]),n("i",{staticClass:"item-icon",class:r.icon})],1),n("a",{attrs:{href:r.href},on:{click:function(o){r.click&&r.click(r)}}},[n("p",{staticClass:"item-more"},[t._v("更多"),n("i",{staticClass:"el-icon-arrow-right"})])])])])}),1)],1)},staticRenderFns$2D=[];const DataRotate_vue_vue_type_style_index_0_lang="",__vue2_script$2R={name:"DataRotate",props:{option:{type:Object,default:()=>{}}},computed:{animation(){return this.option.animation},decimals(){return this.option.decimals||0},span(){return this.option.span||8},data(){return this.option.data||[]}}},__cssModules$2R={};var __component__$2R=normalizeComponent(__vue2_script$2R,render$2D,staticRenderFns$2D,!1,__vue2_injectStyles$2R,null,null,null);function __vue2_injectStyles$2R(t){for(let s in __cssModules$2R)this[s]=__cssModules$2R[s]}const DataRotate=function(){return __component__$2R.exports}(),util="",index$1="",getClass=(t,s)=>core.isPlainObject(t)||core.isString(t)?[s,t]:core.isArray(t)?[s,...t]:[s];function getInternetExplorerVersion(){const t=window.navigator.userAgent,s=t.indexOf("MSIE ");if(s>0)return parseInt(t.substring(s+5,t.indexOf(".",s)),10);if(t.indexOf("Trident/")>0){const a=t.indexOf("rv:");return parseInt(t.substring(a+3,t.indexOf(".",a)),10)}const r=t.indexOf("Edge/");return r>0?parseInt(t.substring(r+5,t.indexOf(".",r)),10):-1}function assignReactiveProperties(t,s){for(const n in s)Vue.set(t,n,s[n]);return t}const findParent$2=(t,s)=>{if(!t||!s)return null;let n=t;for(;n&&s(n);)n=n.$parent;return n},elTableProperties=["data","height","max-height","stripe","border","size","fit","show-header","highlight-current-row","current-row-key","row-class-name","row-style","cell-class-name","cell-style","header-row-class-name","header-row-style","header-cell-class-name","header-cell-style","row-key","empty-text","default-expand-all","expand-row-keys","default-sort","tooltip-effect","show-summary","sum-text","summary-method","span-method","select-on-indeterminate ","indent","lazy","load","tree-props"],elTableEvents=["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-click","cell-dblclick","row-click","row-contextmenu","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change"],elTableColumnProperties=["type","index","column-key","label","prop","width","min-width","fixed","render-header","sortable","sort-method","sort-by","sort-orders","resizable","formatter","show-overflow-tooltip","align","header-align","class-name","label-class-name","selectable","reserve-selection","filters","filter-placement","filter-multiple","filter-method","filtered-value"],elTreeProperties=["data","empty-text","node-key","props","render-after-expand","load","render-content","highlight-current","default-expand-all","expand-on-click-node","check-on-click-node","auto-expand-parent","default-expanded-keys","show-checkbox","check-strictly","default-checked-keys","current-node-key","filter-node-method","accordion","indent","icon-class","lazy","draggable","allow-drag","allow-drop"],elTreeEvents=["node-click","node-contextmenu","check-change","check","current-change","node-expand","node-collapse","node-drag-start","node-drag-enter","node-drag-leave","node-drag-over","node-drag-end","node-drop"],filterProperties=(t,s,n=!0)=>{if(core.isObject(t)){let r=s;core.isString(s)&&(r=r.split(","));const a={};return r.forEach(o=>{core.hasOwn(t,o)&&(n?a[o]=t[o]:r.includes(o)||(a[o]=t[o]))}),a}return t},normalizeProps=t=>{const s={};for(const n in t)s[core.camelize(n)]=t[n];return s},filterTableProperties=t=>filterProperties(t,elTableProperties),filterTableColumnProperties=t=>filterProperties(t,elTableColumnProperties),filterTableEvents=t=>filterProperties(t,elTableEvents),filterTreeProperties=t=>filterProperties(t,elTreeProperties),filterTreeEvents=t=>filterProperties(t,elTreeEvents),pathArgReplacer=(t="",s)=>{const n=s||{};return(t||"").replace(/{(.*?)}/g,(a,o)=>{if(o.indexOf(":")){const[l,c]=o.split(":");return n[l]?n[l]:c}else return n[o]||""})},fillPath=(t,s)=>core.isFunction(t)?pathArgReplacer(t(s),s):core.isString(t)?pathArgReplacer(t,s):null;var render$2C=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("ElementDialog",{attrs:{visible:t.show,title:t.title,width:t.width,height:t.height,"flex-column":""},on:{"update:visible":function(r){t.show=r},close:t.close,closed:t.closed},scopedSlots:t._u([{key:"default",fn:function(){return[t._t("search-form"),n("PageableTable",{ref:"pageableTable",staticStyle:{height:"60vh"},attrs:{"highlight-current-row":"","hide-on-single-page":"",model:t.model,columns:t.columns,api:t.api,"row-class-name":"pointer",multiple:t.multiple},on:{"selection-change":t.selectionChange,"row-click":t.toggleRowSelection,"current-change":t.currentChange}},[t._t("default")],2)]},proxy:!0},{key:"footer",fn:function(){return[n("ElButton",{attrs:{size:"mini",type:"primary"},on:{click:t.confirm}},[t._v(" 确 定 ")]),n("ElButton",{attrs:{size:"mini"},on:{click:t.close}},[t._v(" 关 闭 ")])]},proxy:!0}],null,!0)})},staticRenderFns$2C=[];const __vue2_script$2Q={name:"DataTablePicker",mixins:[dialog.dialog],props:{api:Function,columns:Array,title:String,width:{type:String,default:"60vw"},height:{type:String,default:null},model:{type:Object,default:()=>{}},multiple:{type:Boolean,default:!0}},data(){return{selectedRows:[],currentRow:null}},methods:{filterTableColumnProperties,selectionChange(t){this.selectedRows=t},currentChange(t){this.currentRow=t},toggleRowSelection(t){this.$refs.pageableTable.$refs.table.toggleRowSelection(t)},confirm(){var t;this.multiple?(t=this.selectedRows)!=null&&t.length?(this.$emit("confirm",this.selectedRows),this.close()):this.$message.warning("请选择"):this.currentRow?(this.$emit("confirm",this.currentRow),this.close()):this.$message.warning("请选择")}}},__cssModules$2Q={};var __component__$2Q=normalizeComponent(__vue2_script$2Q,render$2C,staticRenderFns$2C,!1,__vue2_injectStyles$2Q,null,null,null);function __vue2_injectStyles$2Q(t){for(let s in __cssModules$2Q)this[s]=__cssModules$2Q[s]}const DataTablePicker=function(){return __component__$2Q.exports}();var render$2B=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-data-tabs"},[n("ElRow",{attrs:{span:24}},t._l(t.data,function(r,a){return n("ElCol",{key:a,attrs:{md:t.span,xs:24,sm:12}},[n("div",{staticClass:"item",style:{background:r.color}},[n("a",{attrs:{href:r.href,target:r.target},on:{click:function(o){r.click&&r.click(r)}}},[n("div",{staticClass:"item-header"},[n("p",[t._v(t._s(r.title))]),n("span",[t._v(t._s(r.subtitle))])]),n("div",{staticClass:"item-body"},[n("CountUp",{staticClass:"h2",attrs:{decimals:r.decimals||t.decimals,animation:r.animation||t.animation,end:r.count}})],1),n("div",{staticClass:"item-footer"},[n("span",[t._v(t._s(r.allcount))]),n("p",[t._v(t._s(r.text))])]),n("p",{staticClass:"item-tip"},[t._v(t._s(r.key))])])])])}),1)],1)},staticRenderFns$2B=[];const DataTabs_vue_vue_type_style_index_0_lang="",__vue2_script$2P={name:"DataTabs",props:{option:{type:Object,default:()=>{}}},computed:{animation(){return this.option.animation},decimals(){return this.option.decimals||0},span(){return this.option.span||8},data(){return this.option.data||[]}}},__cssModules$2P={};var __component__$2P=normalizeComponent(__vue2_script$2P,render$2B,staticRenderFns$2B,!1,__vue2_injectStyles$2P,null,null,null);function __vue2_injectStyles$2P(t){for(let s in __cssModules$2P)this[s]=__cssModules$2P[s]}const DataTabs=function(){return __component__$2P.exports}();var render$2A=function(){var t=this,s=t.$createElement,n=t._self._c||s;return t.columnBox?n("div",[n("ElDrawer",{staticClass:"avue-crud__dialog avue-crud__column avue-dialog",attrs:{"lock-scroll":"","append-to-body":"",title:"列显隐",size:t.crud.isMobile?"100%":"40%",visible:t.columnBox},on:{"update:visible":function(r){t.columnBox=r}}},[n("ElTable",{ref:"table",attrs:{data:t.data,height:"100%",size:"small",border:""}},[n("ElTableColumn",{key:"label",attrs:{align:"center",width:"100","header-align":"center",prop:"label",label:"列名"}}),t._l(t.defaultColumn,function(r,a){return[r.hide!==!0?n("ElTableColumn",{key:a,attrs:{label:r.label,prop:r.prop,align:"center","header-align":"center"},scopedSlots:t._u([{key:"default",fn:function(o){var l=o.row;return[n("ElCheckbox",{on:{change:function(c){return t.handleChange(r.prop)}},model:{value:t.crud.objectOption[l.prop][r.prop],callback:function(c){t.$set(t.crud.objectOption[l.prop],r.prop,c)},expression:"crud.objectOption[row.prop][item.prop]"}})]}}],null,!0)}):t._e()]})],2)],1)],1):t._e()},staticRenderFns$2A=[];const __vue2_script$2O={name:"DialogColumn",inject:["crud"],data(){return{data:[],columnBox:!1}},computed:{defaultColumn(){return[{label:"隐藏",prop:"hide"},{label:"冻结",prop:"fixed"},{label:"过滤",prop:"filters"},{label:"潘旭",prop:"sortable"},{label:"序号",prop:"index",hide:!0},{label:"宽度",prop:"width",hide:!0}]}},methods:{handleShow(){this.data=[],this.crud.propOption.forEach(t=>{t.showColumn!==!1&&this.data.push(t)}),this.columnBox=!0,this.$nextTick(()=>this.rowDrop())},handleChange(t){["hide","filters"].includes(t)&&this.crud.refreshTable()},rowDrop(){const t=this.$refs.table.$el.querySelectorAll(config$1.dropRowClass)[0];this.crud.tableDrop("column",t,s=>{const n=s.oldIndex,r=s.newIndex;this.crud.headerSort(n,r),this.crud.refreshTable(()=>this.rowDrop())})}}},__cssModules$2O={};var __component__$2O=normalizeComponent(__vue2_script$2O,render$2A,staticRenderFns$2A,!1,__vue2_injectStyles$2O,null,null,null);function __vue2_injectStyles$2O(t){for(let s in __cssModules$2O)this[s]=__cssModules$2O[s]}const DialogColumn=function(){return __component__$2O.exports}();var render$2z=function(){var t=this,s=t.$createElement,n=t._self._c||s;return t.box?n("div",[n("ElementDialog",{staticClass:"avue-dialog",attrs:{title:"导出","lock-scroll":"",visible:t.box,width:t.crud.isMobile?"100%":"30%"},on:{"update:visible":function(r){t.box=r}},scopedSlots:t._u([{key:"footer",fn:function(){return[n("span",{staticClass:"dialog-footer"},[n("ElButton",{attrs:{type:"primary",size:t.crud.isMediumSize},on:{click:t.handleSubmit}},[t._v("确定")]),n("ElButton",{attrs:{size:t.crud.isMediumSize},on:{click:function(r){t.box=!1}}},[t._v("取消")])],1)]},proxy:!0}],null,!1,2375905330)},[n("FyForm",{attrs:{option:t.option},model:{value:t.form,callback:function(r){t.form=r},expression:"form"}})],1)],1):t._e()},staticRenderFns$2z=[];const __vue2_script$2N={name:"DialogExcel",inject:["crud"],data(){return{option:{},columnOption:{},box:!1,form:{name:this.crud.tableOption.title}}},methods:{handleShow(){this.getColumnOption(),this.getOption(),this.box=!0},handleSubmit(){this.$Export.excel({title:this.form.name,columns:this.getColumn(),data:this.handleSum()}),this.box=!1},handleSum(){const t=this.crud.tableOption,s=this.crud.propOption,n=this.form.type?this.crud.list:this.crud.tableSelect,r=[];return this.form.params.includes("data")&&n.forEach(a=>{const o=deepClone(a);s.forEach(l=>{const c=l.parentProp?(this.crud.cascaderDIC[row.$index]||{})[l.prop]:this.crud.DIC[l.prop];o[l.prop]=detail(o,l,t,c)}),r.push(o)}),this.form.params.includes("sum")&&t.showSummary&&r.push(this.crud.sumsList),r},getOption(){this.option={submitBtn:!1,emptyBtn:!1,column:[{label:"文件名",prop:"name",span:24},{label:"选择数据",prop:"type",span:24,type:"select",dicData:[{label:"当前数据(当前页全部的数据)",value:!0},{label:"选中的数据(当前页选中的数据)",disabled:this.crud.tableOption.selection!=!0,value:!1}]},{label:"选择字段",prop:"prop",type:"tree",multiple:!0,checkStrictly:!0,span:24,props:{value:"prop"},dicData:this.columnOption},{label:"参数设置",prop:"params",type:"checkbox",span:24,value:["header","data"].concat((()=>{const t=[];return this.crud.isHeader&&t.push("headers"),this.crud.isShowSummary&&t.push("sum"),t})()),dicData:[{label:"表头",disabled:!0,value:"header"},{label:"数据源",value:"data"}].concat((()=>{const t=[];return t.push({label:"复杂表头",value:"headers",disabled:!this.crud.isHeader}),t.push({label:"合计统计",value:"sum",disabled:!this.crud.isShowSummary}),t})())}]},this.form.type=this.crud.selectLen==0},getColumnOption(){const t=deepClone(this.crud.columnOption),s=[],n=(r=[])=>{r.forEach((a,o)=>{const l=a.children;l&&!Array.isArray(l)?delete a.children:a.showColumn===!1?r.splice(o,1):(s.push(a.prop),a.children&&n(l))})};n(t),this.columnOption=t,this.form.prop=s},getColumn(){const t=deepClone(this.columnOption),s=this.$refs.form.getPropRef("prop").$refs.temp.getHalfList();if(!this.form.params)return[];if(this.form.params.includes("headers")){const n=(r=[])=>{r.forEach((a,o)=>{s.includes(a.prop)?a.children&&n(a.children):r.splice(o,1)})};return n(t),t}else{const n=[],r=(a=[])=>{a.forEach(o=>{o.children?r(o.children):s.includes(o.prop)&&n.push(o)})};return r(t),n}}}},__cssModules$2N={};var __component__$2N=normalizeComponent(__vue2_script$2N,render$2z,staticRenderFns$2z,!1,__vue2_injectStyles$2N,null,null,null);function __vue2_injectStyles$2N(t){for(let s in __cssModules$2N)this[s]=__cssModules$2N[s]}const DialogExcel=function(){return __component__$2N.exports}();var render$2y=function(){var t=this,s=t.$createElement,n=t._self._c||s;return t.box?n("div",[n("ElDrawer",{staticClass:"avue-dialog",class:["avue-crud__dialog","avue-crud__filter"],attrs:{"lock-scroll":"","append-to-body":"",title:"过滤条件",size:t.crud.isMobile?"100%":"60%",visible:t.box},on:{"update:visible":function(r){t.box=r}}},[n("ElRow",{attrs:{span:24}},[n("div",{staticClass:"avue-crud__filter-menu"},[n("ElButtonGroup",[n("ElButton",{attrs:{type:"primary",size:t.crud.isMediumSize},on:{click:t.handleAdd}},[t._v(" 新增条件 ")]),n("ElButton",{attrs:{type:"primary",size:t.crud.isMediumSize},on:{click:t.handleClear}},[t._v(" 清空条件 ")]),n("ElButton",{attrs:{type:"primary",size:t.crud.isMediumSize},on:{click:t.handleValueClear}},[t._v(" 清空数据 ")])],1)],1),t._l(t.list,function(r,a){return n("ElCol",{key:a,staticClass:"avue-crud__filter-item",attrs:{md:12,xs:24,sm:12}},[n("FySelect",{staticClass:"avue-crud__filter-label",attrs:{dic:t.columnOption,clearable:!1,size:t.crud.isMediumSize},on:{change:function(o){return t.handleChange(a)}},model:{value:r.text,callback:function(o){t.$set(r,"text",o)},expression:"column.text"}}),n("FySelect",{staticClass:"avue-crud__filter-symbol",attrs:{dic:t.symbolDic,clearable:!1,size:t.crud.isMediumSize},model:{value:r.symbol,callback:function(o){t.$set(r,"symbol",o)},expression:"column.symbol"}}),n("FyInput",{staticClass:"avue-crud__filter-value",attrs:{size:t.crud.isMediumSize},model:{value:r.value,callback:function(o){t.$set(r,"value",o)},expression:"column.value"}}),n("ElButton",{staticClass:"avue-crud__filter-icon",attrs:{type:"danger",size:"mini",circle:"",icon:"el-icon-minus"},on:{click:function(o){return t.handleDelete(a)}}})],1)}),n("ElCol",{staticClass:"avue-form__menu avue-form__menu--right",attrs:{span:24}},[n("ElButton",{attrs:{type:"primary",size:t.crud.isMediumSize},on:{click:t.handleSubmit}},[t._v(" 确 定 ")]),n("ElButton",{attrs:{size:t.crud.isMediumSize},on:{click:function(r){t.box=!1}}},[t._v(" 取 消 ")])],1)],2)],1)],1):t._e()},staticRenderFns$2y=[];const __vue2_script$2M={name:"DialogFilter",inject:["crud"],data(){return{box:!1,columnObj:{},symbolDic:[{label:"=",value:"="},{label:"≠",value:"≠"},{label:"like",value:"like"},{label:">",value:">"},{label:"≥",value:"≥"},{label:"<",value:"<"},{label:"≤",value:"≤"},{label:"∈",value:"∈"}],list:[],columnOption:{}}},methods:{handleShow(){this.getColumnOption(),this.box=!0},getColumnOption(){const t=[];deepClone(this.crud.propOption).forEach(n=>{n.showColumn!==!1&&t.push(Object.assign(n,{value:n.prop}))}),this.columnOption=t,this.columnObj=this.columnOption[0]},handleDelete(t){this.list.splice(t,1)},handleClear(){this.list=[]},handleValueClear(){this.list.forEach(t=>t.value="")},handleSubmit(){const t=[];this.list.forEach(s=>{t.push([s.text,s.symbol,s.value])}),this.crud.$emit("filter",t),this.box=!1},handleChange(t){this.list[t].value=""},handleAdd(){const t=this.columnObj.prop;this.list.push({text:t,value:"",symbol:this.symbolDic[0].value})}}},__cssModules$2M={};var __component__$2M=normalizeComponent(__vue2_script$2M,render$2y,staticRenderFns$2y,!1,__vue2_injectStyles$2M,null,null,null);function __vue2_injectStyles$2M(t){for(let s in __cssModules$2M)this[s]=__cssModules$2M[s]}const DialogFilter=function(){return __component__$2M.exports}();var render$2x=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n(t.dialogType,t._b({tag:"Component",staticClass:"dialog-form",attrs:{visible:t.visible,"destroy-on-close":"","before-close":t.beforeClose},on:{"update:visible":function(r){t.visible=r}}},"Component",t.dialog,!1),[n("FyForm",{ref:"form",attrs:{option:Object.assign({},t.deepClone(t.option),{menuBtn:!1}),status:t.disabled},on:{"update:status":function(r){t.disabled=r},submit:t.handleSubmit,"reset-change":t.close},model:{value:t.data,callback:function(r){t.data=r},expression:"data"}}),t.isEmpty(t.option.menuBtn,!0)?n("span",{staticClass:"avue-dialog__footer",class:`avue-dialog__footer--${t.menuPosition}`},[t.isEmpty(t.option.submitBtn,!0)?n("ElButton",{attrs:{size:t.$AVUE.size,icon:t.option.submitIcon,loading:t.disabled,type:"primary"},on:{click:t.submit}},[t._v(t._s(t.option.submitText))]):t._e(),t.isEmpty(t.option.emptyBtn,!0)?n("ElButton",{attrs:{disabled:t.disabled,size:t.$AVUE.size,icon:t.option.emptyIcon},on:{click:t.reset}},[t._v(t._s(t.option.emptyText))]):t._e()],1):t._e()],1)},staticRenderFns$2x=[];const DialogForm_vue_vue_type_style_index_0_lang="",DialogForm={name:"DialogForm",data(){return{opt:{},disabled:!1,callback:null,visible:!1,dialog:{closeOnClickModal:!1},isDrawer:!1,option:{submitText:"提交",emptyText:"关闭",submitIcon:"el-icon-check",emptyIcon:"el-icon-close",column:[]},data:{}}},computed:{dialogType(){return this.isDrawer?"ElDrawer":"ElementDialog"},menuPosition(){return this.opt.menuPosition||"center"}},methods:{isEmpty:core.isEmpty,deepClone,submit(){this.$refs.form.submit()},reset(){this.$refs.form.resetForm()},beforeClose(t){t(),this.close()},show(t){this.opt=t,this.callback=t.callback;const s=this.deepClone(t);["callback","option","data"].forEach(n=>delete s[n]),this.dialog=Object.assign(this.dialog,s),this.dialog.size=this.dialog.width,this.isDrawer=this.dialog.type==="drawer",this.option=Object.assign(this.option,t.option),this.data=t.data,this.visible=!0},close(){const t=()=>{this.visible=!1,this.$destroy(),this.$el.remove()};typeof this.dialog.beforeClose=="function"?this.dialog.beforeClose(t):t()},handleSubmit(t,s){this.callback&&this.callback({data:t,close:this.close,done:s})}}};DialogForm.showForm=t=>{const s=Vue.extend(DialogForm),n=new s().$mount();return document.body.appendChild(n.$el),n.show(t),n};const __vue2_script$2L=DialogForm,__cssModules$2L={};var __component__$2L=normalizeComponent(__vue2_script$2L,render$2x,staticRenderFns$2x,!1,__vue2_injectStyles$2L,null,null,null);function __vue2_injectStyles$2L(t){for(let s in __cssModules$2L)this[s]=__cssModules$2L[s]}const DialogForm$1=function(){return __component__$2L.exports}();var render$2w=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"dynamic-table"},[n("ElTable",{key:t.key,staticStyle:{width:"100%"},attrs:{data:t.value}},[t._l(t.columns,function(r){return n("TableColumn",{key:r.prop,attrs:{prop:r.prop,label:r.label,"min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(a){var o=a.row,l=a.$index;return[n("ElFormItem",{style:{marginBottom:t.inputDisabled?"0px":"16px"},attrs:{prop:`${t.prop}.${l}.${r.prop}`,size:"mini",rules:t.getRules(r)}},[n("ElInput",{attrs:{"prefix-icon":t.getIcon(r),disabled:t.inputDisabled,placeholder:t.inputDisabled?"":`请输入${r.label}!`},model:{value:o[r.prop],callback:function(c){t.$set(o,r.prop,c)},expression:"row[column.prop]"}})],1)]}}],null,!0)})}),t.inputDisabled?t._e():n("TableColumn",{attrs:{label:"操作",width:"60",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.row,o=r.column,l=r.$index;return[n("i",{staticClass:"el-icon-minus dynamic-table-action-icon",staticStyle:{position:"relative",top:"-8px",color:"#f00"},attrs:{title:"删除"},on:{click:function(c){return c.stopPropagation(),t.removeRow(a,l,o)}}})]}}],null,!1,410881950)})],2),t.inputDisabled?t._e():n("ElButton",{staticStyle:{color:"#08c108"},attrs:{type:"text",icon:"el-icon-plus"},on:{click:t.addRow}},[t._v(" 添加 ")])],1)},staticRenderFns$2w=[];const DynamicTable_vue_vue_type_style_index_0_lang="",icons={number:"fa fa-superscript",email:"el-icon-lx-mail",phone:"fa fa-phone",idCard:"el-icon-lx-news"},__vue2_script$2K={name:"DynamicTable",inject:{elForm:{default:""},elFormItem:{default:""}},props:{prop:{type:String,default:"rows"},value:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},disabled:Boolean},data(){return{key:1}},computed:{inputDisabled(){return this.disabled||(this.elForm||{}).disabled}},watch:{value:{deep:!0,handler(t){this.$emit("input",t)}},columns:{deep:!0,handler(){this.key++}}},methods:{getIcon(t){return icons[t.type]?icons[t.type]:""},addRow(){const t=this.value;t.push(this.newRow()),this.$emit("input",t)},removeRow(t,s){const n=this.value;n.splice(s,1),this.$emit("input",n)},newRow(){const t={};return this.columns.forEach(s=>{t[s.prop]=void 0}),t},getRules(t){const s=t.rules;if(["email","idCard","phone","number"].includes(t.type)){const n=core.fastClone(s||[]);return t.type==="number"&&n.push({validator:core.validateNumber,message:"请输入数字!"}),t.type==="email"&&n.push({type:"email",message:"请输入正确的邮箱地址!"}),t.type==="idCard"&&n.push({validator:core.validateIdCard,message:"请输入正确的身份证号码!"}),t.type==="phone"&&n.push({validator:core.validatePhoneNum,message:"请输入正确的手机号码!"}),n}else return s}}},__cssModules$2K={};var __component__$2K=normalizeComponent(__vue2_script$2K,render$2w,staticRenderFns$2w,!1,__vue2_injectStyles$2K,null,null,null);function __vue2_injectStyles$2K(t){for(let s in __cssModules$2K)this[s]=__cssModules$2K[s]}const DynamicTable=function(){return __component__$2K.exports}();var render$2v=function(){var t=this,s=t.$createElement,n=t._self._c||s;return t.rendered?n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"easy-popup",style:t.axisComputed},[t._t("default")],2):t._e()},staticRenderFns$2v=[];const EasyPopup_vue_vue_type_style_index_0_lang="",__vue2_script$2J={name:"EasyPopup",props:{border:{type:Boolean,default:!0},offset:{type:Object,default:()=>({x:6,y:2})},borderWidth:{type:Number,default:6}},data(){return{visible:!1,rendered:!1,axis:{x:0,y:0}}},computed:{axisComputed(){return{top:`${this.axis.y+this.offset.y}px`,left:`${this.axis.x+this.offset.x}px`}}},watch:{axis(){if(this.border){const t=document.body.offsetWidth,s=document.body.offsetHeight;this.axis.x+this.offset.x>=t&&(this.axis.x=t-this.borderWidth-this.offset.x),this.axis.y+this.offset.y>=s&&(this.axis.y=s-this.borderWidth-this.offset.y)}}},methods:{show(t){document.addEventListener("click",this.hide,!0),this.axis={x:t.clientX,y:t.clientY},this.rendered=!0,this.visible=!0},hide(){this.visible=!1,document.removeEventListener("click",this.hide)}}},__cssModules$2J={};var __component__$2J=normalizeComponent(__vue2_script$2J,render$2v,staticRenderFns$2v,!1,__vue2_injectStyles$2J,null,null,null);function __vue2_injectStyles$2J(t){for(let s in __cssModules$2J)this[s]=__cssModules$2J[s]}const EasyPopup=function(){return __component__$2J.exports}();var render$2u=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"echarts",style:{width:t.width,height:t.height}})},staticRenderFns$2u=[];const ECharts_vue_vue_type_style_index_0_lang="",INIT_TRIGGERS=["theme","initOptions","autoResize"],REWATCH_TRIGGERS=["manualUpdate","watchShallow"],__vue2_script$2I={name:"ECharts",props:{options:{type:Object},theme:{type:[String,Object]},initOptions:{type:Object},group:{type:String},width:{type:String,default:"100%"},height:{type:String,default:"100%"},autoResize:Boolean,watchShallow:Boolean,manualUpdate:Boolean},data(){return{lastArea:0}},watch:{group(t){this.chart.group=t}},created(){this.initOptionsWatcher(),INIT_TRIGGERS.forEach(t=>{this.$watch(t,()=>{this.refresh()},{deep:!0})}),REWATCH_TRIGGERS.forEach(t=>{this.$watch(t,()=>{this.initOptionsWatcher(),this.refresh()})})},mounted(){this.options&&this.init()},activated(){this.autoResize&&this.chart&&this.chart.resize()},destroyed(){this.chart&&this.destroy()},methods:{mergeOptions(t,s,n){this.manualUpdate&&(this.manualOptions=t),this.chart?this.delegateMethod("setOption",t,s,n):this.init(t)},appendData(t){this.delegateMethod("appendData",t)},resize(t){this.delegateMethod("resize",t)},dispatchAction(t){this.delegateMethod("dispatchAction",t)},convertToPixel(t,s){return this.delegateMethod("convertToPixel",t,s)},convertFromPixel(t,s){return this.delegateMethod("convertFromPixel",t,s)},containPixel(t,s){return this.delegateMethod("containPixel",t,s)},showLoading(t,s){this.delegateMethod("showLoading",t,s)},hideLoading(){this.delegateMethod("hideLoading")},getDataURL(t){return this.delegateMethod("getDataURL",t)},getConnectedDataURL(t){return this.delegateMethod("getConnectedDataURL",t)},clear(){this.delegateMethod("clear")},dispose(){this.delegateMethod("dispose")},delegateMethod(t,...s){return this.chart||this.init(),this.chart[t](...s)},delegateGet(t){return this.chart||this.init(),this.chart[t]()},getArea(){return this.$el.offsetWidth*this.$el.offsetHeight},init(t){if(this.chart)return;const s=echarts__namespace.init(this.$el,this.theme,this.initOptions);this.group&&(s.group=this.group),s.setOption(t||this.manualOptions||this.options||{},!0),Object.keys(this.$listeners).forEach(n=>{const r=this.$listeners[n];n.indexOf("zr:")===0?s.getZr().on(n.slice(3),r):s.on(n,r)}),this.autoResize&&(this.lastArea=this.getArea(),this.__resizeHandler=lodash.debounce(()=>{this.lastArea===0?(this.mergeOptions({},!0),this.resize(),this.mergeOptions(this.options||this.manualOptions||{},!0)):this.resize(),this.lastArea=this.getArea()},100,{leading:!0}),resizeDetector.addListener(this.$el,this.__resizeHandler)),Object.defineProperties(this,{width:{configurable:!0,get:()=>this.delegateGet("getWidth")},height:{configurable:!0,get:()=>this.delegateGet("getHeight")},isDisposed:{configurable:!0,get:()=>!!this.delegateGet("isDisposed")},computedOptions:{configurable:!0,get:()=>this.delegateGet("getOption")}}),this.chart=s},initOptionsWatcher(){this.__unwatchOptions&&(this.__unwatchOptions(),this.__unwatchOptions=null),this.manualUpdate||(this.__unwatchOptions=this.$watch("options",(t,s)=>{!this.chart&&t?this.init():this.chart.setOption(t,t!==s)},{deep:!this.watchShallow}))},destroy(){this.autoResize&&resizeDetector.removeListener(this.$el,this.__resizeHandler),this.dispose(),this.chart=null},refresh(){this.chart&&(this.destroy(),this.init())}},connect(t){core.isString(t)||(t=t.map(s=>s.chart)),echarts__namespace.connect(t)},disconnect(t){echarts__namespace.disConnect(t)},getMap(t){return echarts__namespace.getMap(t)},registerMap(t,s,n){echarts__namespace.registerMap(t,s,n)},registerTheme(t,s){echarts__namespace.registerTheme(t,s)},graphic:echarts__namespace.graphic},__cssModules$2I={};var __component__$2I=normalizeComponent(__vue2_script$2I,render$2u,staticRenderFns$2u,!1,__vue2_injectStyles$2I,null,null,null);function __vue2_injectStyles$2I(t){for(let s in __cssModules$2I)this[s]=__cssModules$2I[s]}const ECharts=function(){return __component__$2I.exports}();var render$2t=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"editable-progress",on:{mouseover:t.onMouseOver,mousedown:t.onMouseDown,mouseleave:t.onMouseLeave,click:t.wrapperClick}},[n("ElProgress",{directives:[{name:"show",rawName:"v-show",value:!t.slider,expression:"!slider"}],class:t.percent===100?"progress__success":"",attrs:{"stroke-width":t.strokeWidth,"text-inside":"",percentage:t.percent}}),t.disabled?t._e():n("ElSlider",{directives:[{name:"show",rawName:"v-show",value:t.slider,expression:"slider"}],ref:"slider",style:{width:`${t.max===100?100:t.max-1}%`},attrs:{"tooltip-class":t.tooltipClass,max:t.max,"format-tooltip":t.formatTooltip,disabled:t.disabled,step:t.step},on:{input:t.onInput,change:t.onChange},model:{value:t.percent,callback:function(r){t.percent=r},expression:"percent"}})],1)},staticRenderFns$2t=[];const EditableProgress_vue_vue_type_style_index_0_lang="",__vue2_script$2H={name:"EditableProgress",props:{disabled:{type:Boolean,default:!1},strokeWidth:{type:Number,default:22},step:{type:Number,default:10},max:{type:Number,default:100},value:{type:Number,default:0}},data(){return{slider:!1,mouseDown:!1,tooltipClass:"hide-tooltip",percent:this.value}},watch:{value(t){this.percent!==t&&(this.percent=t)}},methods:{formatTooltip(t){return`${t}%`},onInput(t){this.value!==t&&this.$emit("input",t)},onChange(t){this.slider=!1,this.tooltipClass="hide-tooltip",this.$emit("change",t)},onMouseOver(){this.disabled||this.slider||(this.slider=!0,this.$nextTick(()=>{this.$refs.slider.$refs.button1.$refs.tooltip.updatePopper(),this.tooltipClass=""}))},onMouseDown(){this.disabled||(this.mouseDown=!0,window.addEventListener("mouseup",this.onMouseUp))},onMouseUp(){this.disabled||(this.mouseDown=!1,this.tooltipClass="hide-tooltip",window.removeEventListener("mouseup",this.onMouseUp))},onMouseLeave(){this.disabled||this.mouseDown||(this.tooltipClass="hide-tooltip",this.slider=!1)},wrapperClick(){this.disabled||(this.slider=!0)}}},__cssModules$2H={};var __component__$2H=normalizeComponent(__vue2_script$2H,render$2t,staticRenderFns$2t,!1,__vue2_injectStyles$2H,null,null,null);function __vue2_injectStyles$2H(t){for(let s in __cssModules$2H)this[s]=__cssModules$2H[s]}const EditableProgress=function(){return __component__$2H.exports}();var render$2s=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"editable-tree"},[!t.readonly&&t.addRootNodeButtonStyle==="top-right"?n("ElButton",{staticStyle:{position:"absolute",top:"4px","z-index":"1"},style:{right:`${t.right}px`},attrs:{type:"primary",size:"mini",icon:"el-icon-plus",circle:"",plain:""},on:{click:function(r){return r.stopPropagation(),t.$emit("add-root-node")}}}):t._e(),n("div",{ref:"treeWrapper",staticClass:"et-tree-wrapper"},[!t.readonly&&t.addRootNodeButtonStyle==="top"?n("div",{staticStyle:{"padding-left":"24px"}},[n("ElButton",{attrs:{disabled:t.loading,size:"mini",type:"text"},on:{click:t.appendRootNode}},[n("i",{staticClass:"el-icon-lx-add"}),t._v(" "+t._s(t.addRootNodeLabel?t.addRootNodeLabel:`添加${t.label}`)+" ")])],1):t._e(),n("ElTree",t._g(t._b({key:t.treeKey,ref:"tree",staticClass:"flex-item",attrs:{"default-expanded-keys":t.expandedKeys,"expand-on-click-node":!1,"highlight-current":"",load:t.loadNode,data:t.innerTreeData,props:t.treeProps,lazy:t.lazy,"node-key":t.nodeKey},on:{"node-click":t.nodeClick,"node-contextmenu":t.showContextMenu,"node-expand":t.addExpandKey,"node-collapse":t.removeExpandKey},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.node,o=r.data;return[t._t("default",function(){return[o.edit?[n("span",{staticClass:"custom-tree-node flex-row flex-item oh",attrs:{"data-id":o.id}},[t.icon?n("i",{staticClass:"node-icon shrink-0",class:o.loading?"el-icon-loading":"el-icon-edit-outline"}):t._e(),n("ElInput",{ref:"labelTxt",staticClass:"node-input flex-item",attrs:{size:"mini",placeholder:t.defaultOptions.inputPlaceholder},on:{blur:function(l){return t.inputBlur(l,a,o)}},nativeOn:{keyup:function(l){return function(c){return t.inputKeyup(c,a,o)}.apply(null,arguments)},click:function(l){l.stopPropagation()}},model:{value:t.text,callback:function(l){t.text=l},expression:"text"}}),t.confirmButton?[n("ElButton",{directives:[{name:"show",rawName:"v-show",value:!o.loading,expression:"!data.loading"}],staticClass:"shrink-0",attrs:{size:"mini",type:"text"},on:{click:function(l){return l.stopPropagation(),t.onConfirm(a,o)}}},[t._v("确定")]),n("ElButton",{directives:[{name:"show",rawName:"v-show",value:!o.loading,expression:"!data.loading"}],staticClass:"shrink-0",attrs:{size:"mini",type:"text"},on:{click:function(l){return l.stopPropagation(),t.onCancel(a,o)}}},[t._v("取消")])]:t._e()],2)]:[n("span",{staticClass:"custom-tree-node",attrs:{"data-id":o.id}},[n("span",{staticClass:"node-label flex-row flex-item oh ellipsis-1"},[t.icon?n("i",{staticClass:"node-icon",class:o.loading?"el-icon-loading":t.icon(o,a)}):t._e(),n("span",{staticClass:"flex-item-relative",staticStyle:{height:"21px"}},[n("span",{staticClass:"ellipsis-1 absolute-box et-tree-label",attrs:{title:a.label}},[t._t("label",function(){return[t._v(t._s(a.label))]},{data:o,node:a})],2)]),t._t("label-suffix",null,{node:a,data:o})],2),!t.contextMenu&&!t.readonly?n("span",{directives:[{name:"show",rawName:"v-show",value:!o.loading&&!t.loading,expression:"!data.loading && !loading"}],staticClass:"handle-actions"},[n("ElButton",{attrs:{size:"mini",type:"text"},on:{click:function(l){return l.stopPropagation(),t.appendChildNode(a,o)}}},[t._v("添加")]),n("ElButton",{attrs:{size:"mini",type:"text"},on:{click:function(l){return l.stopPropagation(),t.editNode(a,o)}}},[t._v("修改")]),n("ElPopconfirm",{staticClass:"pop-confirm",attrs:{"icon-color":"red",title:"你确定要删除吗?"},on:{confirm:function(l){return t.removeNode(a,o)}},scopedSlots:t._u([{key:"reference",fn:function(){return[n("ElButton",{directives:[{name:"show",rawName:"v-show",value:a.isLeaf,expression:"node.isLeaf"}],staticStyle:{"margin-left":"4px"},attrs:{size:"mini",type:"text"},on:{click:function(l){l.stopPropagation()}}},[t._v("删除")])]},proxy:!0}],null,!0)})],1):t._e(),t.contextMenuIcon&&t.contextMenu&&!t.readonly?n("span",{directives:[{name:"show",rawName:"v-show",value:!o.loading&&!t.loading,expression:"!data.loading && !loading"}],staticClass:"handle-actions",staticStyle:{display:"inline-block"}},[n("ElButton",{staticStyle:{padding:"6px 10px 0"},attrs:{size:"mini",type:"text"},on:{click:function(l){return l.stopPropagation(),t.showContextMenu(l,o,a)}}},[t._v(". . .")])],1):t._e()])]]},{node:a,data:o})]}}],null,!0)},"ElTree",t.filterTreeProperties(t.$attrs),!1),t.filterTreeEvents(t.$listeners))),t.contextMenu&&!t.readonly?n("div",{directives:[{name:"show",rawName:"v-show",value:t.showMenu,expression:"showMenu"}],ref:"contextMenu",staticClass:"menu",style:t.position},[n("ul",{staticClass:"menu-list"},[t._t("context-menu",function(){return[n("li",{directives:[{name:"show",rawName:"v-show",value:t.curData.id>-1,expression:"curData.id > -1"}],staticClass:"menu-item",on:{click:function(r){return t.appendPeerNode(t.curNode,t.curData)}}},[n("i",{staticClass:"menu-item-icon el-icon-lx-add",staticStyle:{color:"#228b22"}}),t._v(t._s(t.menuLabel.appendPeer)+" ")]),n("li",{staticClass:"menu-item",on:{click:function(r){return t.appendChildNode(t.curNode,t.curData)}}},[n("i",{staticClass:"menu-item-icon el-icon-lx-add",staticStyle:{color:"#228b22"}}),t._v(t._s(t.menuLabel.appendChild)+" ")]),n("li",{directives:[{name:"show",rawName:"v-show",value:t.curData.id>-1,expression:"curData.id > -1"}],staticClass:"menu-item",on:{click:function(r){return t.editNode(t.curNode,t.curData)}}},[n("i",{staticClass:"menu-item-icon el-icon-edit-outline",staticStyle:{color:"#ffa500"}}),t._v(t._s(t.menuLabel.editNode)+" ")]),n("li",{directives:[{name:"show",rawName:"v-show",value:t.curNode.isLeaf,expression:"curNode.isLeaf"}],staticClass:"menu-item",on:{click:function(r){return t.removeNodeModal(t.curNode,t.curData)}}},[n("i",{staticClass:"menu-item-icon el-icon-delete",staticStyle:{color:"#f00"}}),t._v(t._s(t.menuLabel.removeNode)+" ")])]},{curNode:t.curNode,curData:t.curData})],2)]):t._e()],1)],1)},staticRenderFns$2s=[];const EditableTree_vue_vue_type_style_index_0_lang="",__vue2_script$2G={name:"EditableTree",props:{label:{type:String,default:"书签"},addRootNodeLabel:{type:String},defaultExpandedKeys:{type:Array,default:()=>[]},newNodeBuilder:{type:Function,default:(t,s)=>({name:t,parentId:s.id})},contextMenu:Boolean,lazy:{type:Boolean,default:!0},expandFirstNode:{type:Boolean,default:!0},readonly:Boolean,saveApi:{type:Function},updateApi:{type:Function},deleteApi:{type:Function},fetchApi:{type:Function},customRootNode:{type:{type:Object,default:void 0}},rootNode:{type:Object},contextMenuIcon:Boolean,contextMenuInline:Boolean,treeProps:{type:Object,default:()=>({children:"children",label:"name",isLeaf:t=>core.hasOwn(t,"hasChildren")?!t.hasChildren:core.hasOwn(t,"hasChild")?!t.hasChild:core.hasOwn(t,"children")&&t.children?t.children.length===0:!0})},menuLabel:{type:Object,default:()=>({appendPeer:"添加同级节点",appendChild:"添加",removeNode:"删除",editNode:"修改"})},icon:{type:[Function,Boolean],default:()=>"el-icon-collection-tag"},confirmButton:{type:Boolean,default:!0},addRootNodeButtonStyle:{type:String,default:"top"},reserveExpandKey:Boolean,nodeKey:{type:String,default:"id"}},data(){return{loading:!1,showMenu:!1,empty:!0,expandedKeys:this.lazy?[]:this.defaultExpandedKeys,treeData:[],curNode:{},curData:{},position:{},text:"",right:4,treeKey:Date.now()}},computed:{defaultOptions(){return{confirmButtonText:"确定",cancelButtonText:"取消",closeOnClickModal:!1,modal:!0,inputErrorMessage:`${this.label}名不能为空!`,inputPlaceholder:`请输入${this.label}名...`,inputValidator:t=>t!=null&&t.trim().length>0}},innerTreeData(){var t;return(t=this.$attrs.data)!=null&&t.length?this.$attrs.data:this.treeData}},watch:{defaultExpandedKeys:{immediate:!0,handler(t){this.expandedKeys=[...t]}}},created(){this.tryFetch()},mounted(){resize.addResizeListener(this.$refs.tree.$el,this.resize),resize.addResizeListener(this.$refs.treeWrapper,this.resize)},beforeDestroy(){resize.removeResizeListener(this.$refs.tree.$el,this.resize),resize.removeResizeListener(this.$refs.treeWrapper,this.resize)},methods:{filterTreeProperties,filterTreeEvents,addExpandKey(t){this.reserveExpandKey&&this.expandedKeys.push(t[this.nodeKey])},removeExpandKey(t){this.reserveExpandKey&&(this.expandedKeys=this.expandedKeys.filter(s=>s!==t[this.nodeKey]))},resize(){core.isVerticalScrollbarVisible(this.$refs.treeWrapper)?this.right=4+core.scrollbarWidth:this.right=4},showContextMenu(t,s,n){return v(this,null,function*(){s.contextmenu===!1||s.id===-1||s.id===0||s.edit===!0||this.contextMenu&&(this.curNode=n,this.curData=s,this.showMenu=!0,this.$refs.tree.setCurrentKey(s.id),yield this.$nextTick(),this.position=core.computePosition(t,this.$refs.contextMenu),window.addEventListener("click",this.hideContextMenu))})},hideContextMenu(){this.showMenu=!1,window.removeEventListener("click",this.hideContextMenu)},tryFetch(){return v(this,null,function*(){var t,s;if(this.lazy===!1&&this.fetchApi){const n=yield this.fetchApi((s=(t=this.rootNode)==null?void 0:t.id)!=null?s:-1,{});if(core.isPlainObject(n.data)&&(n.data=[n.data]),n.data=n.data||[],this.empty=n.data.length===0,core.isPlainObject(this.customRootNode)){const r=lodash.cloneDeep(this.customRootNode);r[this.treeProps.children||"children"]=n.data,this.treeData=[r]}else if(core.isFunction(this.customRootNode)){const r=this.customRootNode(n.data);r[this.treeProps.children||"children"]=n.data,this.treeData=core.isPlainObject(r)?[r]:r}else this.treeData=n.data}})},loadNode(t,s){return v(this,null,function*(){var n,r,a,o;if(t.level===0){const l=yield this.fetchApi((r=(n=this.rootNode)==null?void 0:n.id)!=null?r:-1,t);if(this.empty=l.data.length===0,core.isPlainObject(this.customRootNode)){const c=lodash.cloneDeep(this.customRootNode);c[this.treeProps.children||"children"]=l.data,s([c])}else if(core.isFunction(this.customRootNode)){const c=this.customRootNode(l.data);c[this.treeProps.children||"children"]=l.data,this.treeData=core.isPlainObject(c)?[c]:c}else s(l.data);yield this.$nextTick(),this.$emit("root-node-loaded",l.data),this.defaultExpandedKeys?this.expandedKeys=[(a=l==null?void 0:l.data[0])==null?void 0:a.id,...this.defaultExpandedKeys]:this.expandFirstNode&&(this.expandedKeys=[(o=l==null?void 0:l.data[0])==null?void 0:o.id])}else{if(t.leaf||t.data.isTempNode)return s([]);const l=yield this.fetchApi(t.data.id,t);s(l.data),yield this.$nextTick(),this.$emit("node-loaded",l.data)}})},clear(){this.cancelEdit(),this.removeNewNode()},clearChecked(){this.$refs.tree.setCheckedKeys([])},removeNewNode(){this.newChild&&this.newChild.id===-1&&(console.log(this.newChild),this.$refs.tree.remove(this.newChild),this.$emit("remove-new-node"))},cancelEdit(){this.editData&&(core.isUndefined(this.editData.edit)?this.$set(this.editData,"edit",!0):this.editData.edit=!1)},editNode(t,s){return v(this,null,function*(){!this.contextMenu||this.contextMenuIcon||this.contextMenuInline?(this.clear(),this.editData=s,this.text=s[this.treeProps.label],core.isUndefined(s.edit)?this.$set(s,"edit",!0):s.edit=!0,yield this.$nextTick(),this.$refs.labelTxt.focus()):yield this.$prompt(`请输入新的${this.label}名:`,S(f({},this.defaultOptions),{inputValue:s[this.treeProps.label],beforeClose:(n,r,a)=>v(this,null,function*(){if(n==="confirm"){try{r.confirmButtonLoading=!0,r.confirmButtonText="处理中...",this.text=r.inputValue,yield this.onConfirm(this.curNode,this.curData),a()}catch(o){r.confirmButtonText="确定"}r.confirmButtonLoading=!1}else a()})})).catch(n=>n)})},appendRootNode(){return v(this,null,function*(){this.text="",!this.contextMenu||this.contextMenuIcon||this.contextMenuInline?(this.clear(),this.createNewChild(void 0),this.$refs.tree.root.insertChild({data:this.newChild},void 0,!0),yield this.scrollIntoView(!0)):yield this.$prompt(`请输入${this.label}名:`,S(f({},this.defaultOptions),{beforeClose:(t,s,n)=>v(this,null,function*(){if(t==="confirm"){try{this.createNewChild(-1),s.confirmButtonLoading=!0,s.confirmButtonText="处理中...";const r=yield this.saveApi(this.newNodeBuilder(s.inputValue,{id:-1}));this.newChild[this.treeProps.label]=s.inputValue,this.newChild.edit=!1,assignReactiveProperties(this.newChild,r.data),this.$refs.tree.root.insertChild({data:this.newChild},void 0,!0),yield this.locateView(),n()}catch(r){s.confirmButtonText="确定"}s.confirmButtonLoading=!1}else n()})})).catch(t=>t)})},appendChildNode(t){this.text="";const s=t.expanded;t.expand(()=>v(this,null,function*(){!this.contextMenu||this.contextMenuIcon||this.contextMenuInline?(this.clear(),this.createNewChild(t.data.id),this.$refs.tree.append(this.newChild,t),yield this.scrollIntoView(s)):yield this.$prompt(`请输入${this.label}名:`,S(f({},this.defaultOptions),{beforeClose:(n,r,a)=>v(this,null,function*(){if(n==="confirm"){try{this.createNewChild(t.data.id),r.confirmButtonLoading=!0,r.confirmButtonText="处理中...";const o=yield this.saveApi(this.newNodeBuilder(r.inputValue,t.data));this.newChild[this.treeProps.label]=r.inputValue,this.newChild.edit=!1,assignReactiveProperties(this.newChild,o.data),this.$refs.tree.append(this.newChild,t),yield this.locateView(),a()}catch(o){r.confirmButtonText="确定"}r.confirmButtonLoading=!1}else a()})})).catch(n=>n)}))},appendChildNodeWithData(t,s,n){this.text="";const r=t.expanded;t.expand(()=>v(this,null,function*(){this.clear(),this.newChild={id:-1,parentId:s,[this.treeProps.label]:n,edit:!1,isTempNode:!0,hasChildren:!1},this.$refs.tree.append(this.newChild,t),yield this.scrollIntoView(r)}))},appendPeerNode(t){t.parent&&t.parent.level!==0?this.appendChildNode(t.parent):this.appendRootNode()},addRootNode(t){return v(this,null,function*(){this.$refs.tree.remove(t),yield this.$nextTick(),this.$refs.tree.root.insertChild({data:t},void 0,!0)})},addChildNode(t){return v(this,null,function*(){this.curNode&&this.curNode.level!==0?this.curNode.expand(()=>v(this,null,function*(){this.$refs.tree.remove(t),yield this.$nextTick(),this.$refs.tree.append(t,this.curNode)})):yield this.addRootNode(t)})},addPeerNode(t){return v(this,null,function*(){this.curNode&&this.curNode.parent&&this.curNode.parent.level!==0?this.curNode.parent.expand(()=>v(this,null,function*(){this.$refs.tree.remove(t),yield this.$nextTick(),this.$refs.tree.append(t,this.curNode.parent)})):yield this.addRootNode(t)})},updateNode(t){const s=this.$refs.tree.getNode(t);s&&(s.data=t)},setCurrentKey(t){this.$refs.tree&&this.$refs.tree.setCurrentKey(t)},createNewChild(t){this.newChild={id:-1,parentId:t,[this.treeProps.label]:"",edit:!0,isTempNode:!0,hasChildren:!1},this.$emit("create-new-node",this.newChild)},removeNodeModal(t){return v(this,null,function*(){yield this.$confirm(`你确定要删除${this.label}[<span class="break-word" style="color: orange">${t.data[this.treeProps.label]}</span>]吗?`,"系统提示",{type:"warning",modal:!0,dangerouslyUseHTMLString:!0,iconClass:"el-icon-question",closeOnClickModal:!1,confirmButtonClass:"el-button--danger",cancelButtonClass:"el-button--primary is-plain",beforeClose:(s,n,r)=>v(this,null,function*(){if(s==="confirm"){try{n.confirmButtonLoading=!0,n.confirmButtonText="删除...";const a=t.parent,o=yield this.deleteApi(t.data.id);o.code===0?(this.$message.success("删除成功!"),this.$refs.tree.remove(t),this.$emit("node-deleted",a,t.data),r()):this.$message.error(o.message)}catch(a){}n.confirmButtonText="确定",n.confirmButtonLoading=!1}else r()})}).catch(s=>s)})},removeNode(t){return v(this,null,function*(){try{const s=t.parent;if(this.deleteApi){const n=yield this.deleteApi(t.data.id);n.code===0?(this.$message.success("删除成功!"),this.$refs.tree.remove(t),this.$emit("node-deleted",s,t.data)):this.$message.error(n.message)}else this.$refs.tree.remove(t)}catch(s){}})},onConfirm(t,s){return v(this,null,function*(){if(s[this.treeProps.label]===this.text||!core.isNotEmpty(this.text)){this.clear();return}core.isUndefined(s.loading)?this.$set(s,"loading",!0):s.loading=!0;try{if(this.loading=!0,s.id===-1){const n=yield this.saveApi(this.newNodeBuilder(this.text,t.parent.data||{id:-1})),r=core.fastClone(s);assignReactiveProperties(s,S(f({},n.data),{isTempNode:!1})),this.$emit("node-added",s,r,t),this.registerNode(t)}else yield this.updateApi(S(f({},s),{[this.treeProps.label]:this.text}));s[this.treeProps.label]=this.text,s.edit=!1,this.$emit("node-updated",s,t),this.text=""}catch(n){}s.loading=!1,this.loading=!1})},onCancel(t,s){s.id===-1?this.$refs.tree.remove(t):s.edit=!1,this.text=""},nodeClick(t,s,n){this.hideContextMenu(),(core.isUndefined(t.loading)||!t.loading)&&(this.curNode=s,this.curData=t,this.$emit("on-node-click",t,s,n))},getCurrentNode(){return this.$refs.tree.getCurrentNode()},locateView(){return v(this,null,function*(){yield this.$nextTick();const t=this.$el.querySelector(`[data-id="${this.newChild.id}"]`);t&&t.scrollIntoView()})},scrollIntoView(t){return v(this,null,function*(){var s,n;yield this.$nextTick(),t||(yield core.delay(300)),(n=(s=this.$refs)==null?void 0:s.labelTxt)==null||n.focus()})},inputKeyup(t,s,n){t.keyCode===13&&this.onConfirm(s,n),t.keyCode===27&&this.clear()},inputBlur(t,s,n){this.confirmButton||this.onConfirm(s,n)},getCheckedKeys(){return this.$refs.tree.getCheckedKeys()},setCheckedKeys(t){this.$refs.tree.setCheckedKeys(t)},getCheckedNodes(){return this.$refs.tree.getCheckedNodes()},setCheckedNodes(t){this.$refs.tree.setCheckedNodes(t)},getNode(t){return this.$refs.tree.getNode(t)},getRootNode(){return this.$refs.tree.root},findTreeNode(t){return core.findTreeChildren(this.$refs.tree.root.childNodes,s=>s.data===t||s.data.id===t,"childNodes")},registerNode(t){t.store.registerNode(t),delete t.store.nodesMap[-1]},reloadTree(){return v(this,null,function*(){this.lazy?this.treeKey=Date.now():yield this.tryFetch()})}}},__cssModules$2G={};var __component__$2G=normalizeComponent(__vue2_script$2G,render$2s,staticRenderFns$2s,!1,__vue2_injectStyles$2G,null,null,null);function __vue2_injectStyles$2G(t){for(let s in __cssModules$2G)this[s]=__cssModules$2G[s]}const EditableTree=function(){return __component__$2G.exports}();var render$2r=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"el-collapse",attrs:{role:"tablist","aria-multiselectable":"true"}},[t._t("default")],2)},staticRenderFns$2r=[];const __vue2_script$2F={name:"EgdCollapse",componentName:"EgdCollapse",provide(){return{collapse:this}},props:{accordion:Boolean,value:{type:[Array,String,Number],default(){return[]}}},data(){return{activeNames:[].concat(this.value)}},watch:{value(t){this.activeNames=[].concat(t)}},created(){this.$on("item-click",this.handleItemClick)},methods:{setActiveNames(t){t=[].concat(t);const s=this.accordion?t[0]:t;this.activeNames=t,this.$emit("input",s),this.$emit("change",s)},handleItemClick(t){if(this.accordion)this.setActiveNames((this.activeNames[0]||this.activeNames[0]===0)&&this.activeNames[0]===t.name?"":t.name);else{const s=this.activeNames.slice(0),n=s.indexOf(t.name);n>-1?s.splice(n,1):s.push(t.name),this.setActiveNames(s)}}}},__cssModules$2F={};var __component__$2F=normalizeComponent(__vue2_script$2F,render$2r,staticRenderFns$2r,!1,__vue2_injectStyles$2F,null,null,null);function __vue2_injectStyles$2F(t){for(let s in __cssModules$2F)this[s]=__cssModules$2F[s]}const EgdCollapse=function(){return __component__$2F.exports}();var render$2q=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"el-collapse-item",class:{"is-active":t.isActive,"is-disabled":t.disabled}},[n("div",{attrs:{role:"tab","aria-expanded":t.isActive,"aria-controls":`el-collapse-content-${t.id}`,"aria-describedby":`el-collapse-content-${t.id}`}},[n("div",{staticClass:"el-collapse-item__header",class:{focusing:t.focusing,"is-active":t.isActive},attrs:{id:`el-collapse-head-${t.id}`,role:"button",tabindex:t.disabled?void 0:0},on:{click:t.handleHeaderClick,keyup:function(r){return!r.type.indexOf("key")&&t._k(r.keyCode,"space",32,r.key,[" ","Spacebar"])&&t._k(r.keyCode,"enter",13,r.key,"Enter")?null:(r.stopPropagation(),t.handleEnterClick.apply(null,arguments))},focus:t.handleFocus,blur:function(r){t.focusing=!1}}},[n("i",{staticClass:"el-collapse-item__arrow el-icon-arrow-right",class:{"is-active":t.isActive},staticStyle:{margin:"0 4px 0 0"}}),t._t("title",function(){return[t._v(" "+t._s(t.title)+" ")]},{title:t.title})],2)]),n("ElCollapseTransition",[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"el-collapse-item__wrap",attrs:{id:`el-collapse-content-${t.id}`,role:"tabpanel","aria-hidden":!t.isActive,"aria-labelledby":`el-collapse-head-${t.id}`}},[n("div",{staticClass:"el-collapse-item__content"},[t._t("default")],2)])])],1)},staticRenderFns$2q=[];const __vue2_script$2E={name:"EgdCollapseItem",componentName:"EgdCollapseItem",mixins:[Emitter],inject:["collapse"],props:{title:{type:String},name:{type:[String,Number],default(){return this._uid}},disabled:Boolean},data(){return{focusing:!1,isClick:!1,id:util$1.generateId()}},computed:{isActive(){return this.collapse.activeNames.indexOf(this.name)>-1}},methods:{handleFocus(){setTimeout(()=>{this.isClick?this.isClick=!1:this.focusing=!0},50)},handleHeaderClick(){this.disabled||(this.dispatch("EgdCollapse","item-click",this),this.focusing=!1,this.isClick=!0)},handleEnterClick(){this.dispatch("EgdCollapse","item-click",this)}}},__cssModules$2E={};var __component__$2E=normalizeComponent(__vue2_script$2E,render$2q,staticRenderFns$2q,!1,__vue2_injectStyles$2E,null,null,null);function __vue2_injectStyles$2E(t){for(let s in __cssModules$2E)this[s]=__cssModules$2E[s]}const EgdCollapseItem=function(){return __component__$2E.exports}();var render$2p=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("Transition",{attrs:{name:"dialog-fade"},on:{"after-enter":t.afterEnter,"after-leave":t.afterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"},{name:"dialog-drag",rawName:"v-dialog-drag:[fullScreen]",value:{onMove:t.updatePopper},expression:"{ onMove: updatePopper }",arg:t.fullScreen}],staticClass:"el-dialog__wrapper",on:{click:function(r){return r.target!==r.currentTarget?null:t.handleWrapperClick.apply(null,arguments)}}},[n("div",{ref:"dialog",class:["el-dialog","element-dialog","el-dialog-resizeable","normalize",{"is-fullscreen":t.fullScreen,"el-dialog__body-padding":t.bodyPadding,"el-dialog--center":t.center,"el-dialog--flex-row":t.flexRow,"el-dialog--flex-column":t.flexColumn},t.customClass],style:t.style,attrs:{role:"dialog","aria-modal":"true","aria-label":t.title||"dialog"}},[n("div",{staticClass:"el-dialog__header"},[t._t("title",function(){return[n("span",{staticClass:"el-dialog__title"},[t._v(t._s(t.title))])]}),n("div",{staticClass:"header-button-wrapper"},[t._t("header-button"),t.showFullScreen?n("ElButton",{staticClass:"header-button",attrs:{type:"text",icon:t.fullScreen?"el-icon-copy-document":"el-icon-full-screen",size:"medium",title:t.fullScreen?"还原":"最大化"},on:{click:t.toggleFullScreen}}):t._e(),t.showClose?n("ElButton",{staticClass:"header-button header-dialog-close",attrs:{"aria-label":"Close",type:"text",title:"关闭",icon:"el-icon-close",size:"medium"},on:{click:t.handleClose}}):t._e()],2)],2),t.rendered?n("div",{staticClass:"el-dialog__body",style:{height:t.fullScreen?"100%":t.height}},[t.destroyOnClose?[t.visible?t._t("default"):t._e()]:t._t("default")],2):t._e(),t.shouldShowFooter()?n("div",{staticClass:"el-dialog__footer"},[t._t("footer",null,{handleClose:t.handleClose})],2):t._e()])])])},staticRenderFns$2p=[];const ElementDialog_vue_vue_type_style_index_0_lang="",defaults={props:{modal:{type:Boolean,default:!0},modalAppendToBody:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},maxHeight:{type:String,default:"76vh"}}},__vue2_script$2D={name:"ElementDialog",directives:{dialogDrag:dialogDrag.dialogDrag},mixins:[...Dialog.mixins||Dialog.default.mixins,defaults],props:{title:{type:String,default:""},appendToBody:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},showFullScreen:Boolean,width:{type:String},height:{type:String},customClass:{type:String,default:""},top:{type:String,default:"10vh"},beforeClose:{type:Function},center:{type:Boolean,default:!0},destroyOnClose:Boolean,flexRow:Boolean,flexColumn:Boolean,bodyPadding:{type:Boolean,default:!0},embed:Boolean},data(){return{fullScreen:!1,closed:!1}},computed:{style(){const t={maxHeight:"100%"};return this.fullScreen||(t.marginTop=this.top,this.width&&(t.width=this.width),t.maxHeight=this.maxHeight),t}},watch:{visible(t){t?(this.closed=!1,this.$emit("open"),this.$el.addEventListener("scroll",this.updatePopper),this.$nextTick(()=>{this.$refs.dialog.scrollTop=0}),this.appendToBody&&document.body.appendChild(this.$el)):(this.$el.removeEventListener("scroll",this.updatePopper),this.closed||this.$emit("close"))}},mounted(){this.visible&&(this.rendered=!0,this.open(),this.appendToBody&&document.body.appendChild(this.$el))},destroyed(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)},methods:{toggleFullScreen(){this.fullScreen=!this.fullScreen},enterFullScreen(){this.fullScreen=!0},exitFullScreen(){this.fullScreen=!1},shouldShowFooter(){var t,s;return!!((s=(t=this.$scopedSlots).footer)!=null&&s.call(t))},handleWrapperClick(){this.closeOnClickModal&&this.handleClose()},handleClose(){typeof this.beforeClose=="function"?this.beforeClose(this.hide):this.hide()},hide(t){t!==!1&&(this.embed?this.$parent.$emit("update:visible",!1):this.$emit("update:visible",!1),this.$emit("close"),this.closed=!0)},updatePopper(){this.broadcast("ElSelectDropdown","updatePopper"),this.broadcast("ElDropdownMenu","updatePopper")},afterEnter(){this.$emit("opened")},afterLeave(){this.exitFullScreen(),this.$emit("closed")}}},__cssModules$2D={};var __component__$2D=normalizeComponent(__vue2_script$2D,render$2p,staticRenderFns$2p,!1,__vue2_injectStyles$2D,null,null,null);function __vue2_injectStyles$2D(t){for(let s in __cssModules$2D)this[s]=__cssModules$2D[s]}const ElementDialog=function(){return __component__$2D.exports}();var render$2o=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"empty-view",style:{fontSize:t.fontSize,height:t.height}},[t._t("default",function(){return[n("div",{staticClass:"flex-column horizon-center"},[t.showIcon?n("i",{class:t.icon,style:{fontSize:t.iconSize}}):t._e(),n("p",[t._v(t._s(t.emptyTips))])])]})],2)},staticRenderFns$2o=[];const EmptyView_vue_vue_type_style_index_0_lang="",__vue2_script$2C={name:"EmptyView",props:{emptyTips:{type:String,default:"暂无数据"},fontSize:{type:String,default:"20px"},icon:{type:String,default:"fa fa-dropbox"},iconSize:{type:String,default:"20px"},showIcon:{type:Boolean,default:!1},height:{type:String,default:"100%"}}},__cssModules$2C={};var __component__$2C=normalizeComponent(__vue2_script$2C,render$2o,staticRenderFns$2o,!1,__vue2_injectStyles$2C,null,null,null);function __vue2_injectStyles$2C(t){for(let s in __cssModules$2C)this[s]=__cssModules$2C[s]}const EmptyView=function(){return __component__$2C.exports}();var render$2n=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"error-view",style:{fontSize:t.fontSize,height:t.height}},[t._t("default",function(){return[n("div",{staticClass:"flex-column horizon-center"},[n("i",{staticClass:"fa fa-frown-o",style:{fontSize:t.iconSize}}),n("p",[t._v(t._s(t.errorTips))])])]})],2)},staticRenderFns$2n=[];const ErrorView_vue_vue_type_style_index_0_lang="",__vue2_script$2B={name:"ErrorView",props:{errorTips:{type:String,default:"加载失败,请重试"},fontSize:{type:String,default:"20px"},iconSize:{type:String,default:"20px"},height:{type:String,default:"100%"}}},__cssModules$2B={};var __component__$2B=normalizeComponent(__vue2_script$2B,render$2n,staticRenderFns$2n,!1,__vue2_injectStyles$2B,null,null,null);function __vue2_injectStyles$2B(t){for(let s in __cssModules$2B)this[s]=__cssModules$2B[s]}const ErrorView=function(){return __component__$2B.exports}(),__vue2_script$2A={name:"FlexColumn",functional:!0,props:{verticalCenter:{type:Boolean,default:!1},horizonCenter:{type:Boolean,default:!1},center:{type:Boolean,default:!1},textCenter:{type:Boolean,default:!1}},render(t,{data:s,children:n,props:r}){const a=getClass(s.class,"flex-column");return r.center||r.horizonCenter&&r.verticalCenter?(a.push("horizon-center"),a.push("vertical-center")):(r.horizonCenter&&a.push("horizon-center"),r.verticalCenter&&a.push("vertical-center")),r.textCenter&&a.push("text-center"),t("div",S(f({},s),{class:a}),n)}};let __vue2_render$d,__vue2_staticRenderFns$d;const __cssModules$2A={};var __component__$2A=normalizeComponent(__vue2_script$2A,__vue2_render$d,__vue2_staticRenderFns$d,!1,__vue2_injectStyles$2A,null,null,null);function __vue2_injectStyles$2A(t){for(let s in __cssModules$2A)this[s]=__cssModules$2A[s]}const FlexColumn=function(){return __component__$2A.exports}(),__vue2_script$2z={name:"FlexItem",functional:!0,props:{flexRow:{type:Boolean,default:!1},flexColumn:{type:Boolean,default:!1},verticalCenter:{type:Boolean,default:!1},horizonCenter:{type:Boolean,default:!1},center:{type:Boolean,default:!1},textCenter:{type:Boolean,default:!1},relative:{type:Boolean,default:!1},absolute:{type:Boolean,default:!1}},render(t,{children:s,data:n,props:r}){const a=getClass(n.class,r.relative?"flex-item-relative":"flex-item");return r.absolute&&!r.relative&&a.push("flex-item-relative"),r.center||r.horizonCenter&&r.verticalCenter?(a.push("horizon-center"),a.push("vertical-center")):(r.horizonCenter&&a.push("horizon-center"),r.verticalCenter&&a.push("vertical-center")),r.textCenter&&a.push("text-center"),r.flexColumn&&a.push("flex-column"),r.flexRow&&a.push("flex-row"),r.absolute?t("div",S(f({},n),{class:a}),[t("div",{class:"absolute",style:"overflow:auto"},s)]):t("div",S(f({},n),{class:a}),s)}};let __vue2_render$c,__vue2_staticRenderFns$c;const __cssModules$2z={};var __component__$2z=normalizeComponent(__vue2_script$2z,__vue2_render$c,__vue2_staticRenderFns$c,!1,__vue2_injectStyles$2z,null,null,null);function __vue2_injectStyles$2z(t){for(let s in __cssModules$2z)this[s]=__cssModules$2z[s]}const FlexItem=function(){return __component__$2z.exports}(),__vue2_script$2y={name:"FlexRow",functional:!0,props:{verticalCenter:{type:Boolean,default:!1},horizonCenter:{type:Boolean,default:!1},center:{type:Boolean,default:!1},textCenter:{type:Boolean,default:!1}},render(t,{data:s,children:n,props:r}){const a=getClass(s.class,"flex-row");return r.center||r.horizonCenter&&r.verticalCenter?(a.push("horizon-center"),a.push("vertical-center")):(r.horizonCenter&&a.push("horizon-center"),r.verticalCenter&&a.push("vertical-center")),r.textCenter&&a.push("text-center"),t("div",S(f({},s),{class:a}),n)}};let __vue2_render$b,__vue2_staticRenderFns$b;const __cssModules$2y={};var __component__$2y=normalizeComponent(__vue2_script$2y,__vue2_render$b,__vue2_staticRenderFns$b,!1,__vue2_injectStyles$2y,null,null,null);function __vue2_injectStyles$2y(t){for(let s in __cssModules$2y)this[s]=__cssModules$2y[s]}const FlexRow=function(){return __component__$2y.exports}();var render$2m=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"flex-scroller-wrapper"},[n("div",{class:["flex-scroller",{"flex-column":t.flexColumn,"flex-row":t.flexRow,"content-scroll":t.contentScroll},t.contentClass]},[t._t("default")],2)])},staticRenderFns$2m=[];const FlexScroller_vue_vue_type_style_index_0_lang="",__vue2_script$2x={name:"FlexScroller",props:{flexColumn:Boolean,flexRow:Boolean,contentClass:{type:String},contentScroll:{type:Boolean,default:!0}}},__cssModules$2x={};var __component__$2x=normalizeComponent(__vue2_script$2x,render$2m,staticRenderFns$2m,!1,__vue2_injectStyles$2x,null,null,null);function __vue2_injectStyles$2x(t){for(let s in __cssModules$2x)this[s]=__cssModules$2x[s]}const FlexScroller=function(){return __component__$2x.exports}();var render$2l=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-flow",style:t.styleName},[n("div",{style:t.styleName,attrs:{id:t.id}},[n("div",{staticClass:"avue-grid"}),t._l(t.option.nodeList,function(r,a){return[r.display?t._e():n("FlowNode",{key:a,attrs:{id:r.id,node:r,index:a,active:t.active},on:{changeNodeSite:t.changeNodeSite},nativeOn:{click:function(o){return t.handleClick(r)}},scopedSlots:t._u([{key:"header",fn:function(o){var l=o.node;return[t._t("header",null,{node:l})]}}],null,!0)},[t._t("default",null,{node:r})],2)]})],2)])},staticRenderFns$2l=[];const Flow_vue_vue_type_style_index_0_lang="",__vue2_script$2w={name:"Flow",props:{value:{type:String},option:{type:Object},width:{type:[Number,String],default:"100%"},height:{type:[Number,String],default:"100%"}},data(){return{jsPlumb:{},id:"",jsplumbSetting:{Anchors:["Top","TopCenter","TopRight","TopLeft","Right","RightMiddle","Bottom","BottomCenter","BottomRight","BottomLeft","Left","LeftMiddle"],Container:"",Connector:"Flowchart",ConnectionsDetachable:!1,DeleteEndpointsOnDetach:!1,Endpoint:["Rectangle",{height:10,width:10}],EndpointStyle:{fill:"rgba(255,255,255,0)",outlineWidth:1},LogEnabled:!0,PaintStyle:{stroke:"black",strokeWidth:3},Overlays:[["Arrow",{width:12,length:12,location:1}]],RenderMode:"svg"},jsplumbConnectOptions:{isSource:!0,isTarget:!0,anchor:"Continuous"},jsplumbSourceOptions:{filter:".avue-flow__node-drag",filterExclude:!1,anchor:"Continuous",allowLoopback:!1},jsplumbTargetOptions:{filter:".avue-flow__node-drag",filterExclude:!1,anchor:"Continuous",allowLoopback:!1},loadEasyFlowFinish:!1}},computed:{active:{get(){return this.value},set(t){this.$emit("input",t),this.$emit("change",t)}},styleName(){return{position:"relative",width:setPx(this.width),height:setPx(this.height)}}},created(){this.id=randomId(),this.jsplumbSetting.Container=this.id},mounted(){this.init()},methods:{init(){this.jsPlumb=jsPlumb.getInstance(),this.$nextTick(()=>{this.jsPlumbInit()})},handleClick(t){this.$emit("click",t)},hasLine(t,s){for(let n=0;n<this.data.lineList.length;n++){const r=this.data.lineList[n];if(r.from===t&&r.to===s)return!0}return!1},hashOppositeLine(t,s){return this.hasLine(s,t)},deleteLine(t,s){this.option.lineList=this.option.lineList.filter(function(n){return n.from!==t&&n.to!==s})},changeLine(t,s){this.deleteLine(t,s)},changeNodeSite({index:t,left:s,top:n}){for(let r=0;r<this.option.nodeList.length;r++)r===t&&(this.$set(this.option.nodeList[r],"left",s),this.$set(this.option.nodeList[r],"top",n))},deleteNode(t){return this.$confirm(`确定要删除节点${t}?`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",closeOnClickModal:!1}).then(()=>{this.option.nodeList.forEach(s=>{s.id===t&&(s.display=!0)}),this.$nextTick(function(){this.jsPlumb.removeAllEndpoints(t)})}).catch(()=>{}),!0},addNode(t){const s=this.option.nodeList.length,n=`node${s}`;this.option.nodeList.push({id:`node${s}`,name:t,left:0,top:0}),this.$nextTick(function(){this.jsPlumb.makeSource(n,this.jsplumbSourceOptions),this.jsPlumb.makeTarget(n,this.jsplumbTargetOptions),this.jsPlumb.draggable(n,{containment:"parent"})})},loadEasyFlow(){for(var t=0;t<this.option.nodeList.length;t++){const s=this.option.nodeList[t];this.jsPlumb.makeSource(s.id,this.jsplumbSourceOptions),this.jsPlumb.makeTarget(s.id,this.jsplumbTargetOptions),this.jsPlumb.draggable(s.id)}for(var t=0;t<this.option.lineList.length;t++){const n=this.option.lineList[t];this.jsPlumb.connect({source:n.from,target:n.to},this.jsplumbConnectOptions)}this.$nextTick(function(){this.loadEasyFlowFinish=!0})},jsPlumbInit(){const t=this;this.jsPlumb.ready(function(){t.jsPlumb.importDefaults(t.jsplumbSetting),t.jsPlumb.setSuspendDrawing(!1,!0),t.loadEasyFlow(),t.jsPlumb.bind("click",function(s){console.log("click",s),t.$confirm("确定删除所点击的线吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{t.jsPlumb.deleteConnection(s)}).catch(()=>{})}),t.jsPlumb.bind("connection",function(s){console.log("connection",s);const n=s.source.id,r=s.target.id;t.loadEasyFlowFinish&&t.option.lineList.push({from:n,to:r})}),t.jsPlumb.bind("connectionDetached",function(s){console.log("connectionDetached",s),t.deleteLine(s.sourceId,s.targetId)}),t.jsPlumb.bind("connectionMoved",function(s){console.log("connectionMoved",s),t.changeLine(s.originalSourceId,s.originalTargetId)}),t.jsPlumb.bind("contextmenu",function(s){console.log("contextmenu",s)}),t.jsPlumb.bind("beforeDrop",function(s){console.log("beforeDrop",s);const n=s.sourceId,r=s.targetId;return n===r?(t.$message.error("不能连接自己"),!1):t.hasLine(n,r)?(t.$message.error("不能重复连线"),!1):t.hashOppositeLine(n,r)?(t.$message.error("不能回环哦"),!1):!0}),t.jsPlumb.bind("beforeDetach",function(s){console.log("beforeDetach",s)})})}}},__cssModules$2w={};var __component__$2w=normalizeComponent(__vue2_script$2w,render$2l,staticRenderFns$2l,!1,__vue2_injectStyles$2w,null,null,null);function __vue2_injectStyles$2w(t){for(let s in __cssModules$2w)this[s]=__cssModules$2w[s]}const Flow=function(){return __component__$2w.exports}();var render$2k=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{ref:"node",style:t.flowNodeContainer,attrs:{left:t.node.left,top:t.node.top,disabled:"",mask:!1},on:{mouseenter:t.showDelete,mouseleave:t.hideDelete,mouseup:t.changeNodeSite}},[n("div",{class:["avue-flow__node",{active:t.active===t.node.id}]},[n("div",{staticClass:"avue-flow__node-header"},[n("i",{staticClass:"el-icon-rank",class:t.b("node-drag")}),t._t("header",null,{node:t.node})],2),n("div",{staticClass:"avue-flow__node-body"},[t._t("default",null,{node:t.node})],2)])])},staticRenderFns$2k=[];const __vue2_script$2v={name:"FlowNode",props:{active:[String,Number],index:[String,Number],node:Object},data(){return{mouseEnter:!1}},computed:{flowNodeContainer:{get(){return{position:"absolute",width:"200px",top:setPx(this.node.top),left:setPx(this.node.left),boxShadow:this.mouseEnter?"#66a6e0 0px 0px 12px 0px":"",backgroundColor:"transparent"}}}},methods:{showDelete(){this.mouseEnter=!0},hideDelete(){this.mouseEnter=!1},changeNodeSite(){this.node.left==this.$refs.node.style.left&&this.node.top==this.$refs.node.style.top||this.$emit("changeNodeSite",{index:this.index,left:Number(this.$refs.node.style.left.replace("px","")),top:Number(this.$refs.node.style.top.replace("px",""))})}}},__cssModules$2v={};var __component__$2v=normalizeComponent(__vue2_script$2v,render$2k,staticRenderFns$2k,!1,__vue2_injectStyles$2v,null,null,null);function __vue2_injectStyles$2v(t){for(let s in __cssModules$2v)this[s]=__cssModules$2v[s]}const FlowNode=function(){return __component__$2v.exports}();var render$2j=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{ref:"container",staticClass:"flow-viewer"},[n("EasyPopup",{ref:"popup"},[t._t("default",function(){return[t._v(" "+t._s(t.element)+" ")]},{element:t.element})],2)],1)},staticRenderFns$2j=[];const FlowViewer_vue_vue_type_style_index_0_lang="",handleWheel=ZoomScroll.prototype._handleWheel;ZoomScroll.prototype._handleWheel=function(t){const{target:s,deltaMode:n,clientX:r,clientY:a,deltaX:o,deltaY:l}=t;handleWheel.call(this,{target:s,deltaMode:n,clientX:r,clientY:a,deltaX:o,deltaY:l,preventDefault(){t.preventDefault()},ctrlKey:!0})};const ZoomScrollModule={__init__:["zoomScroll"],zoomScroll:["type",ZoomScroll]},__vue2_script$2u={name:"FlowViewer",props:{xml:{type:String,required:!0},options:{type:Object},activities:{type:Array,default:()=>[]},flows:{type:Array,default:()=>[]}},data(){return{element:null}},watch:{xml(t){var s;(s=this.bpmnViewer)==null||s.importXML(t)},activities:"highlightActivity",flows:"highlightFlow"},mounted(){var s;const t=this.$refs.container;this.bpmnViewer=new BpmnViewer(S(f({},this.options),{container:t,additionalModules:[ZoomScrollModule]})),this.bpmnViewer.on("import.done",n=>{const r=n.error,a=n.warnings;r?this.$emit("error",r):this.$emit("shown",a),this.bpmnViewer.get("canvas").zoom("fit-viewport","center");const o=this.bpmnViewer.get("eventBus");this.canvas=this.bpmnViewer.get("canvas"),o.on("element.mousemove",l=>v(this,null,function*(){l.element.type==="bpmn:UserTask"&&(this.element=l.element,yield this.$nextTick(),this.$refs.popup.show(l.originalEvent))})),o.on("element.out",()=>{this.$refs.popup.hide(),this.element={}}),this.highlightFlow(this.flows),this.highlightActivity(this.activities)}),(s=this.bpmnViewer)==null||s.importXML(this.xml)},beforeDestroy(){var t;(t=this.bpmnViewer)==null||t.destroy()},methods:{getElementById(t){return this.canvas.getRootElement().children.find(s=>s.id===t)},highlightFlow(t){this.canvas.getRootElement().children.filter(s=>s.type==="bpmn:SequenceFlow"&&this.canvas.hasMarker(s,"highlight-line")).forEach(s=>{var n;return(n=this.canvas)==null?void 0:n.removeMarker(s,"highlight-line")}),t.length>0&&t.forEach(s=>{var r;const n=this.getElementById(s);n&&((r=this.canvas)==null||r.addMarker(n,"highlight-line"))})},highlightActivity(t){this.canvas.getRootElement().children.filter(s=>s.type==="bpmn:UserTask"&&this.canvas.hasMarker(s,"highlight")).forEach(s=>{var n;return(n=this.canvas)==null?void 0:n.removeMarker(s,"highlight")}),t.length>0&&t.forEach(s=>{var r;const n=this.getElementById(s);n&&((r=this.canvas)==null||r.addMarker(n,"highlight"))})}}},__cssModules$2u={};var __component__$2u=normalizeComponent(__vue2_script$2u,render$2j,staticRenderFns$2j,!1,__vue2_injectStyles$2u,null,null,null);function __vue2_injectStyles$2u(t){for(let s in __cssModules$2u)this[s]=__cssModules$2u[s]}const FlowViewer=function(){return __component__$2u.exports}(),formProperties$1=["disabled","size","statusIcon","inlineMessage","autoLabelWidth","hideRequiredAsterisk","$emit","validate","clearValidate"],formMethod$1=["$emit","validate","clearValidate"],__vue2_script$2t={name:"FormBlock",inject:{elForm:{default:{}}},provide(){return{elForm:this.formConfig}},props:{blockTitle:String,active:Boolean,enabled:Boolean,disabled:Boolean,wrapRow:{type:Boolean,default:!0},gutter:{type:Number,default:20},collapse:Boolean},data(){const t={};return formProperties$1.forEach(s=>{t[s]=null}),{expand:!0,formConfig:t}},computed:{formCfg(){const t={enabled:this.enabled,forbidden:this.disabled};return formProperties$1.forEach(s=>{t[s]=this.elForm[s]}),t}},watch:{collapse:{immediate:!0,handler(t){this.expand=!t}},formCfg:{immediate:!0,handler(){this.formConfig.disabled=this.available(),formProperties$1.forEach(t=>{var s;t!=="disabled"&&(formMethod$1.includes(t)?this.formConfig[t]=(s=this.elForm[t])==null?void 0:s.bind(this.elForm):this.formConfig[t]=this.elForm[t])})}}},mounted(){this.dispatch("FormView","FormView.addTab",[this])},beforeDestroy(){this.dispatch("FormView","FormView.removeTab",[this])},methods:{available(){return this.disabled?this.disabled:this.enabled?!this.enabled:this.elForm.disabled},dispatch(t,s,n){let r=this.$parent||this.$root,a=r.$options.name;for(;r&&(!a||a!==t);)r=r.$parent,r&&(a=r.$options.name);r&&r.$emit.apply(r,[s].concat(n))},renderDefault(){const t=this.$createElement,{wrapRow:s,gutter:n,formConfig:r,$scopedSlots:a}=this;return s?t("ElRow",{attrs:{gutter:n}},[a.default({disabled:r.disabled})]):a.default({disabled:r.disabled})},toggle(){this.expand=!this.expand},open(){this.expand=!0}},render(){const t=arguments[0],{renderDefault:s,blockTitle:n,active:r,expand:a,toggle:o}=this;return t("div",{class:["form-block",{"default-active":r}]},[t("div",{class:"form-block-title",on:{click:o}},[t("span",{class:"flex-item"},[n])," ",t("i",{class:a?"el-icon-arrow-down":"el-icon-arrow-right"})]),t("ElCollapseTransition",[t("div",{directives:[{name:"show",value:a}]},[s()])])])}},FormBlock_vue_vue_type_style_index_0_lang="";let __vue2_render$a,__vue2_staticRenderFns$a;const __cssModules$2t={};var __component__$2t=normalizeComponent(__vue2_script$2t,__vue2_render$a,__vue2_staticRenderFns$a,!1,__vue2_injectStyles$2t,null,null,null);function __vue2_injectStyles$2t(t){for(let s in __cssModules$2t)this[s]=__cssModules$2t[s]}const FormBlock=function(){return __component__$2t.exports}(),props$1={props:{type:{type:String,default:"danger"},size:String,icon:{type:String,default:""},nativeType:{type:String,default:"button"},loading:Boolean,disabled:Boolean,plain:Boolean,autofocus:Boolean,round:Boolean,confirmable:Boolean,text:{type:String,default:""},tag:{type:String,default:"AwesomeButton"}}},__vue2_script$2s={name:"FormButton",mixins:[Confirmable,props$1]};let __vue2_render$9,__vue2_staticRenderFns$9;const __cssModules$2s={};var __component__$2s=normalizeComponent(__vue2_script$2s,__vue2_render$9,__vue2_staticRenderFns$9,!1,__vue2_injectStyles$2s,null,null,null);function __vue2_injectStyles$2s(t){for(let s in __cssModules$2s)this[s]=__cssModules$2s[s]}const FormButton=function(){return __component__$2s.exports}(),elColManualBindKeys=["span"],elColKeys=[...Object.keys(Col.props)],elColAutoBindKeys=elColKeys.filter(t=>!elColManualBindKeys.includes(t)),elFormItemManualBindKeys=["label","prop","rules","labelWidth","required"],elFormItemKeys=[...Object.keys(FormItem$1.props)],elFormItemAutoBindKeys=elFormItemKeys.filter(t=>!elFormItemManualBindKeys.includes(t)),formItemAutoBindKeys=["wrapCol","wrapFormItem","unwrap","prefixConfig","block","placeholder","prefixPick","half",...elColKeys,...elFormItemKeys],formItemMixin={inject:{elForm:{default:{}},formItemGroup:{default:{}}},props:{disabled:Boolean,wrapCol:{type:Boolean,default:!0},wrapFormItem:{type:Boolean,default:!0},unwrap:Boolean,half:Boolean,prefixConfig:Boolean,block:Boolean,placeholder:{type:[Boolean,String],default:!0},formItemClass:String,prefixPick:Boolean,label:String,labelWidth:String,prop:String,required:Boolean,rules:[Object,Array],error:String,validateStatus:String,for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:String,span:{type:Number,default:12},tag:{type:String,default:"div"},offset:Number,pull:Number,push:Number,xs:[Number,Object],sm:[Number,Object],md:[Number,Object],lg:[Number,Object],xl:[Number,Object]},computed:{prefix(){return this.prefixConfig?"请配置":this.prefixPick?"请选择":"请输入"},message(){var t;return`${this.prefix}${((t=this.label)==null?void 0:t.replace(":",""))||""}`},computeRules(){const t=[...this.rules||[]];if(this.required){const s=t.find(n=>n.required);s?s.ref?s.label=s.label||this.label:s.message=t.message||this.message:t.unshift(this.getRequireRule())}return t.concat(this.getRules())},computeSpan(){return this.block?24:this.span},formItemProps(){return filterProperties(f(f({},this.$props),this.$attrs),formItemAutoBindKeys)},elFormItemProps(){return filterProperties(f(f({},this.$props),this.$attrs),elFormItemAutoBindKeys)},elColProps(){return filterProperties(f(f({},this.$props),this.$attrs),elColAutoBindKeys)}},watch:{computeRules(){var t,s;(s=(t=this.elForm)==null?void 0:t.clearValidate)==null||s.call(t,this.prop)}},methods:{getRules(){return[]},getRequireRule(){return{required:!0,message:this.message}}}},formInputMixin={mixins:[formItemMixin],props:{value:[Boolean,String,Array,Number,Object,Date],readonly:Boolean,disabled:Boolean},computed:{computePlaceholder(){return this.placeholder===!0?this.message:this.placeholder},listeners(){return filterProperties(this.$listeners,"input",!1)},inputDisabled(){return this.disabled}}},formPickMixin={props:{prefixPick:{type:Boolean,default:!0}}};var render$2i=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("FormItem",t._b({attrs:{rules:t.computeRules,disabled:t.inputDisabled},scopedSlots:t._u([{key:"default",fn:function(){return[t._t("default",function(){return[n("ElCascader",t._g(t._b({class:{"is-readonly":t.readonly},staticStyle:{width:"100%"},attrs:{value:t.inputVal,"show-all-levels":t.showAllLevels,separator:t.separator,readonly:t.readonly,options:t.innerOptions,props:{checkStrictly:t.checkStrictly,label:t.labelKey,value:t.valueKey},disabled:t.inputDisabled,placeholder:t.computePlaceholder},on:{input:t.emitInput}},"ElCascader",t.inputProps,!1),t.listeners))]})]},proxy:!0},{key:"error",fn:function(r){var a=r.error;return[t._t("error",null,{error:a})]}},{key:"label",fn:function(){return[t._t("label")]},proxy:!0}],null,!0)},"FormItem",t.formItemProps,!1))},staticRenderFns$2i=[];const autoBindKeys$d=Object.keys(Cascader.props).filter(t=>!["value","placeholder","disabled","options","showAllLevels","show-all-levels","separator"].includes(t)),__vue2_script$2r={name:"FormCascader",mixins:[formInputMixin,formPickMixin],props:{value:{type:[String,Number]},options:{type:Array,default:()=>[]},showAllLevels:Boolean,separator:{type:String,default:"/"},last:{type:Boolean,default:!0},checkStrictly:{type:Boolean,default:!0},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"}},data(){return{innerOptions:[]}},computed:{inputProps(){return filterProperties(f(f({},normalizeProps(this.$attrs)),this.$props),autoBindKeys$d)},inputVal(){let[t]=core.findTreeChildren(this.innerOptions,n=>n[this.valueKey]===this.value);const s=[];for(;t;)s.push(t[this.valueKey]),t=t.parent;return s.reverse()}},watch:{options:{immediate:!0,handler(t){if(t){const s=lodash.cloneDeep(t);core.setParent(s),this.innerOptions=s}else this.innerOptions=[]}}},methods:{emitInput(t){const s=this.last?t[t.length-1]:t;this.$emit("input",s)}}},__cssModules$2r={};var __component__$2r=normalizeComponent(__vue2_script$2r,render$2i,staticRenderFns$2i,!1,__vue2_injectStyles$2r,null,null,null);function __vue2_injectStyles$2r(t){for(let s in __cssModules$2r)this[s]=__cssModules$2r[s]}const FormCascader=function(){return __component__$2r.exports}();var render$2h=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("FormItem",t._b({class:["form-checkbox-group",{"form-checkbox-group-row":t.fillRow},t.ellipsis?"form-checkbox-group-row-ellipsis":t.fillRow?"form-checkbox-group-row-break-word":""],attrs:{rules:t.computeRules,disabled:t.inputDisabled},scopedSlots:t._u([{key:"default",fn:function(){return[n("ElCheckboxGroup",t._g(t._b({attrs:{disabled:t.inputDisabled,value:t.computeVal,placeholder:t.computePlaceholder},on:{input:t.emitInput}},"ElCheckboxGroup",t.inputProps,!1),t.listeners),t._l(t.innerOptions,function(r){return n("ElCheckbox",{key:r[t.valueKey],attrs:{label:r[t.valueKey]}},[t._v(" "+t._s(r[t.labelKey])+" ")])}),1),t.computeVal.includes(t.otherVal)?n("FormInput",{staticClass:"form-checkbox-group-other",style:t.otherLabel?{width:t.otherWidth}:{marginBottom:0,width:t.otherWidth},attrs:{"wrap-col":!1,"label-width":"0",prop:t.otherProp,required:!!t.otherProp,placeholder:t.otherPlaceholder,label:t.otherLabel,"show-message":!!t.otherLabel,value:t.other},on:{input:function(r){return t.$emit("update:other",r)}}}):t._e()]},proxy:!0},{key:"error",fn:function(r){var a=r.error;return[t._t("error",null,{error:a})]}},{key:"label",fn:function(){return[t._t("label")]},proxy:!0},{key:"below",fn:function(){return[t._t("below")]},proxy:!0}],null,!0)},"FormItem",t.formItemProps,!1))},staticRenderFns$2h=[];const FormCheckboxGroup_vue_vue_type_style_index_0_lang="",autoBindKeys$c=Object.keys(CheckboxGroup.props).filter(t=>!["value","placeholder","disabled"].includes(t)),__vue2_script$2q={name:"FormCheckboxGroup",mixins:[formInputMixin,formPickMixin],props:{options:{type:Array,default:()=>[]},value:{type:[String,Array]},other:{type:String},otherVal:{type:String},otherProp:{type:String},otherPlaceholder:{type:String},otherLabel:{type:String},otherWidth:{type:String,default:"200px"},gender:Boolean,confirm:Boolean,labelProp:{type:String,default:"name"},valueProp:{type:String,default:"code"},split:Boolean,classic:Boolean,fillRow:Boolean,ellipsis:Boolean},computed:{prefix(){return"请选择"},labelKey(){return this.classic?"label":this.labelProp},valueKey(){return this.classic?"value":this.valueProp},inputProps(){return filterProperties(f(f({},normalizeProps(this.$attrs)),this.$props),autoBindKeys$c)},innerOptions(){return this.gender?[{[this.labelKey]:"男",[this.valueKey]:"男"},{[this.labelKey]:"女",[this.valueKey]:"女"}]:this.confirm?[{[this.labelKey]:"是",[this.valueKey]:"是"},{[this.labelKey]:"否",[this.valueKey]:"否"}]:this.options},computeVal(){return this.split?this.value?this.value.split(","):[]:this.value||[]}},methods:{emitInput(t){this.split?this.$emit("input",t.join(",")):this.$emit("input",t)}}},__cssModules$2q={};var __component__$2q=normalizeComponent(__vue2_script$2q,render$2h,staticRenderFns$2h,!1,__vue2_injectStyles$2q,null,null,null);function __vue2_injectStyles$2q(t){for(let s in __cssModules$2q)this[s]=__cssModules$2q[s]}const FormCheckboxGroup=function(){return __component__$2q.exports}();var render$2g=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("FormItem",t._b({attrs:{rules:t.computeRules,disabled:t.inputDisabled},scopedSlots:t._u([{key:"default",fn:function(){return[n("ElDatePicker",t._g(t._b({staticStyle:{width:"100%"},attrs:{"picker-options":t.pickerOption,value:t.innerVal,size:"mini",placeholder:t.computePlaceholder,type:t.type,disabled:t.inputDisabled},on:{input:t.emitInput}},"ElDatePicker",t.inputProps,!1),t.listeners)),t.$slots.warn?n("div",{staticClass:"el-form-item__warn"},[t._t("warn")],2):t._e()]},proxy:!0},{key:"error",fn:function(r){var a=r.error;return[t.$scopedSlots.error&&t.$scopedSlots.error(a)?n("div",{staticClass:"el-form-item__error"},[t._t("error",function(){return[t._v(" "+t._s(a)+" ")]},{error:a})],2):t._e()]}},{key:"label",fn:function(){return[t._t("label")]},proxy:!0}],null,!0)},"FormItem",t.formItemProps,!1))},staticRenderFns$2g=[];const autoBindKeys$b=["type","timeArrowControl","size","format","valueFormat","readonly","placeholder","startPlaceholder","endPlaceholder","prefixIcon","clearIcon","name","disabled","clearable","id","popperClass","editable","align","value","defaultValue","defaultTime","rangeSeparator","pickerOptions","unlinkPanels","validateEvent"].filter(t=>!["value","placeholder","disabled","type","pickerOptions"].includes(t)),__vue2_script$2p={name:"FormDatePicker",mixins:[formInputMixin,formPickMixin],props:{format:{type:String},valueFormat:{type:String},rangeSeparator:{type:String},startPlaceholder:{type:String},endPlaceholder:{type:String},start:{type:String},end:{type:String},year:Boolean,month:Boolean,dates:Boolean,week:Boolean,dateTime:Boolean,dateTimeRange:Boolean,dateRange:Boolean,monthRange:Boolean,miniDate:{type:String},maxDate:{type:String},pickerOptions:{type:Object},split:{type:Boolean,default:!0}},computed:{prefix(){return"请选择"},mini(){if(this.miniDate){const t=dayjs.toDate(this.miniDate);return t.setDate(t.getDate()-1),t}else return null},max(){return this.maxDate?dayjs.toDate(this.maxDate):null},pickerOption(){return f({disabledDate:t=>{if(!this.mini&&!this.max)return!1;const s=t.getTime();return this.mini&&!this.max?s<=this.mini.getTime():!this.mini&&this.max?s>=this.max.getTime():this.mini&&this.max?s<=this.mini.getTime()&&s>=this.max.getTime():!1}},this.pickerOptions)},innerVal(){if(this.range&&this.split){const t=[];return t.push(this.start||""),t.push(this.end||""),t}else return this.value},fat(){return this.year?"yyyy":this.month||this.monthRange?"yyyy-MM":this.week?"yyyy 第 WW 周":this.dateTime||this.dateTimeRange?"yyyy-MM-dd HH:mm":"yyyy-MM-dd"},inputProps(){return filterProperties(S(f(f({},normalizeProps(this.$attrs)),this.$props),{valueFormat:this.week?"yyyy-MM-dd":this.valueFormat||this.fat,format:this.format||this.fat,rangeSeparator:this.rangeSeparator||"至",startPlaceholder:this.startPlaceholder||"开始日期",endPlaceholder:this.endPlaceholder||"结束日期"}),autoBindKeys$b)},range(){return this.dateTimeRange||this.dateRange||this.monthRange},type(){return this.year?"year":this.month?"month":this.dates?"dates":this.week?"week":this.dateTime?"datetime":this.dateTimeRange?"datetimerange":this.dateRange?"daterange":this.monthRange?"monthrange":"date"}},methods:{emitInput(t){this.range&&this.split?t?(this.$emit("update:start",t[0]),this.$emit("update:end",t[1])):(this.$emit("update:start",null),this.$emit("update:end",null)):this.$emit("input",t)}}},__cssModules$2p={};var __component__$2p=normalizeComponent(__vue2_script$2p,render$2g,staticRenderFns$2g,!1,__vue2_injectStyles$2p,null,null,null);function __vue2_injectStyles$2p(t){for(let s in __cssModules$2p)this[s]=__cssModules$2p[s]}const FormDatePicker=function(){return __component__$2p.exports}();var render$2f=function(){var t=this,s=t.$createElement,n=t._self._c||s;return t.display?n("div",{class:["avue-group",{"avue-group--header":!t.isHeader,"avue-group__arrow":!t.arrow}]},[t._t("tabs"),n("ElCollapse",{attrs:{value:t.text},on:{change:t.handleChange},model:{value:t.activeName,callback:function(r){t.activeName=r},expression:"activeName"}},[n("ElCollapseItem",{attrs:{name:1,disabled:!t.arrow}},[t.$slots.header&&t.header?n("div",{staticClass:"avue-group__header",attrs:{slot:"title"},slot:"title"},[t._t("header")],2):(t.label||t.icon)&&t.header?n("div",{staticClass:"avue-group__header",attrs:{slot:"title"},slot:"title"},[t.icon?n("i",{class:[t.icon,"avue-group__icon"]}):t._e(),t.label?n("h1",{staticClass:"avue-group__title"},[t._v(" "+t._s(t.label)+" ")]):t._e()]):t._e(),t._t("default")],2)],1)],2):t._e()},staticRenderFns$2f=[];const FormGroup_vue_vue_type_style_index_0_lang="",__vue2_script$2o={name:"FormGroup",props:{arrow:{type:Boolean,default:!0},collapse:{type:Boolean,default:!0},header:{type:Boolean,default:!0},icon:{type:String},display:{type:Boolean,default:!0},card:{type:Boolean,default:!1},label:{type:String}},data(){return{activeName:""}},computed:{text(){return this.collapse?1:0},isHeader(){return this.$slots.header&&this.header||(this.label||this.icon)&&this.header}},watch:{text(t){this.activeName=[t]}},created(){this.activeName=[this.text]},methods:{handleChange(t){this.$emit("change",t)}}},__cssModules$2o={};var __component__$2o=normalizeComponent(__vue2_script$2o,render$2f,staticRenderFns$2f,!1,__vue2_injectStyles$2o,null,null,null);function __vue2_injectStyles$2o(t){for(let s in __cssModules$2o)this[s]=__cssModules$2o[s]}const FormGroup=function(){return __component__$2o.exports}();var render$2e=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("ElForm",t._g(t._b({ref:"form",staticClass:"clear-fix",attrs:{model:t.model,size:t.size,disabled:t.disabled,"label-width":t.labelWidth,"label-position":t.labelPosition}},"ElForm",t.$attrs,!1),t.$listeners),[t._t("default")],2)},staticRenderFns$2e=[];const __vue2_script$2n={name:"FormHolder",provide(){return{formHolder:this}},props:{model:{type:Object},size:{type:String,default:"mini"},disabled:Boolean,labelPosition:{type:String,default:"right"},labelWidth:{type:String,default:"160px"},required:{type:Boolean,default:!0},requiredFields:{type:Array}},watch:{required(){this.clearValidate()}},created(){this.required||core.warning.call(findParent$2(this,t=>["FormView","FormHolder"].includes(t.$options.name)),"一般情况下不建议设置 required=false,因为 required 设置为 false 后必填字段要自行维护,在处理表格时会比较复杂,请自行权衡利弊")},methods:{clearValidate(t){var s;(s=this.$refs.form)==null||s.clearValidate(t)},validate(){return v(this,null,function*(){return this.$refs.form.validate()})},resetFields(){return this.$refs.form.resetFields()}}},__cssModules$2n={};var __component__$2n=normalizeComponent(__vue2_script$2n,render$2e,staticRenderFns$2e,!1,__vue2_injectStyles$2n,null,null,null);function __vue2_injectStyles$2n(t){for(let s in __cssModules$2n)this[s]=__cssModules$2n[s]}const FormHolder=function(){return __component__$2n.exports}();var render$2d=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("FormItem",t._b({attrs:{rules:t.computeRules,disabled:t.inputDisabled},scopedSlots:t._u([{key:"default",fn:function(){return[t._t("default",function(){return[n("ElInput",t._g(t._b({class:{"is-readonly":t.readonly},attrs:{value:t.value,readonly:t.readonly,maxlength:t.maxLength,disabled:t.inputDisabled,placeholder:t.computePlaceholder},on:{input:t.emitInput},scopedSlots:t._u([{key:"append",fn:function(){return[t._t("append")]},proxy:!0}],null,!0)},"ElInput",t.inputProps,!1),t.listeners)),t.$slots.warn?n("div",{staticClass:"el-form-item__warn"},[t._t("warn")],2):t._e()]})]},proxy:!0},{key:"error",fn:function(r){var a=r.error;return[t.$scopedSlots.error&&t.$scopedSlots.error(a)?n("div",{staticClass:"el-form-item__error"},[t._t("error",function(){return[t._v(" "+t._s(a)+" ")]},{error:a})],2):t._e()]}},{key:"label",fn:function(){return[t._t("label")]},proxy:!0}],null,!0)},"FormItem",t.formItemProps,!1))},staticRenderFns$2d=[];const autoBindKeys$a=Object.keys(Input.props).filter(t=>!["value","placeholder","disabled"].includes(t)),__vue2_script$2m={name:"FormInput",mixins:[formInputMixin],props:{value:{type:[String,Number]},maxLength:{type:String,default:"200"}},computed:{inputProps(){return filterProperties(f(f({},normalizeProps(this.$attrs)),this.$props),autoBindKeys$a)}},methods:{emitInput(t){this.$emit("input",t)}}},__cssModules$2m={};var __component__$2m=normalizeComponent(__vue2_script$2m,render$2d,staticRenderFns$2d,!1,__vue2_injectStyles$2m,null,null,null);function __vue2_injectStyles$2m(t){for(let s in __cssModules$2m)this[s]=__cssModules$2m[s]}const FormInput=function(){return __component__$2m.exports}(),validateEmail=(t,s,n)=>s&&!/^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(s)?n(new Error("invalid")):n();var render$2c=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("FormItem",t._b({attrs:{rules:t.computeRules,disabled:t.inputDisabled},scopedSlots:t._u([{key:"default",fn:function(){return[n("ElInput",t._g(t._b({class:{"is-readonly":t.readonly},attrs:{value:t.value,readonly:t.readonly,maxlength:t.maxLength,disabled:t.inputDisabled,placeholder:t.computePlaceholder},on:{input:function(r){return t.$emit("input",r)}}},"ElInput",t.inputProps,!1),t.listeners))]},proxy:!0},{key:"error",fn:function(r){var a=r.error;return[t._t("error",null,{error:a})]}},{key:"label",fn:function(){return[t._t("label")]},proxy:!0}],null,!0)},"FormItem",t.formItemProps,!1))},staticRenderFns$2c=[];const autoBindKeys$9=Object.keys(Input.props).filter(t=>!["value","placeholder","disabled"].includes(t)),__vue2_script$2l={name:"FormInputEmail",mixins:[formInputMixin],props:{value:{type:String},maxLength:{type:String,default:"200"}},computed:{inputProps(){return filterProperties(f(f({},normalizeProps(this.$attrs)),this.$props),autoBindKeys$9)}},methods:{getRules(){return[{validator:validateEmail,message:"请输入正确的邮箱!"}]}}},__cssModules$2l={};var __component__$2l=normalizeComponent(__vue2_script$2l,render$2c,staticRenderFns$2c,!1,__vue2_injectStyles$2l,null,null,null);function __vue2_injectStyles$2l(t){for(let s in __cssModules$2l)this[s]=__cssModules$2l[s]}const FormInputEmail=function(){return __component__$2l.exports}();var render$2b=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("FormItem",t._b({attrs:{rules:t.computeRules,disabled:t.inputDisabled},scopedSlots:t._u([{key:"default",fn:function(){return[n("ElInput",t._g(t._b({class:{"is-readonly":t.readonly},attrs:{value:t.value,readonly:t.readonly,maxlength:t.maxLength,disabled:t.inputDisabled,placeholder:t.computePlaceholder},on:{input:function(r){return t.$emit("input",r)}}},"ElInput",t.inputProps,!1),t.listeners)),t.$slots.warn?n("div",{staticClass:"el-form-item__error"},[t._t("warn")],2):t._e()]},proxy:!0},{key:"error",fn:function(r){var a=r.error;return[t.$scopedSlots.error&&t.$scopedSlots.error(a)?n("div",{staticClass:"el-form-item__error"},[t._t("error",function(){return[t._v(" "+t._s(a)+" ")]},{error:a})],2):t._e()]}},{key:"label",fn:function(){return[t._t("label")]},proxy:!0}],null,!0)},"FormItem",t.formItemProps,!1))},staticRenderFns$2b=[];const autoBindKeys$8=Object.keys(Input.props).filter(t=>!["value","placeholder","disabled"].includes(t)),__vue2_script$2k={name:"FormInputIdCard",mixins:[formInputMixin],props:{value:{type:String},maxLength:{type:String,default:"200"}},computed:{inputProps(){return filterProperties(f(f({},normalizeProps(this.$attrs)),this.$props),autoBindKeys$8)}},methods:{validateIdCard:core.validateIdCard,getRules(){return[{validator:core.validateIdCard,message:"请输入正确的身份证号码!"}]}}},__cssModules$2k={};var __component__$2k=normalizeComponent(__vue2_script$2k,render$2b,staticRenderFns$2b,!1,__vue2_injectStyles$2k,null,null,null);function __vue2_injectStyles$2k(t){for(let s in __cssModules$2k)this[s]=__cssModules$2k[s]}const FormInputIdCard=function(){return __component__$2k.exports}(),inputNumberMixin={props:{suffixIcon:{type:String},prefixIcon:{type:String},step:{type:Number,default:1},stepStrictly:{type:Boolean,default:!1},max:{type:Number,default:1/0},min:{type:Number,default:-1/0},value:{type:[Number,String]},disabled:Boolean,size:{type:String},controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:""},name:{type:String},label:{type:String},placeholder:{type:String},precision:{type:Number,default:void 0,validator(t){return t>=0&&t===parseInt(t,10)}}}};var render$2a=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("FormItem",t._b({attrs:{rules:t.computeRules,disabled:t.inputDisabled},scopedSlots:t._u([{key:"default",fn:function(){return[n("InputNumber",t._g(t._b({staticClass:"form-input-number",attrs:{value:t.value,controls:!1,precision:t.precision,max:t.max,min:t.min,placeholder:t.computePlaceholder,disabled:t.inputDisabled},on:{input:function(r){return t.$emit("input",r)}},scopedSlots:t._u([{key:"append",fn:function(){return[t._t("append")]},proxy:!0},{key:"prefix",fn:function(){return[t._t("prefix")]},proxy:!0},{key:"prepend",fn:function(){return[t._t("prepend")]},proxy:!0},{key:"suffix",fn:function(){return[t._t("suffix")]},proxy:!0}],null,!0)},"InputNumber",t.inputProps,!1),t.listeners))]},proxy:!0},{key:"error",fn:function(r){var a=r.error;return[t._t("error",null,{error:a})]}},{key:"label",fn:function(){return[t._t("label")]},proxy:!0}],null,!0)},"FormItem",t.formItemProps,!1))},staticRenderFns$2a=[];const FormInputNumber_vue_vue_type_style_index_0_lang="",autoBindKeys$7=Object.keys(inputNumberMixin.props).filter(t=>!["value","placeholder","disabled","precision","max","min"].includes(t)),__vue2_script$2j={name:"FormInputNumber",mixins:[formInputMixin],props:{value:{type:[String,Number]},max:{type:Number,default:1/0},min:{type:Number,default:-1/0},precision:{type:Number,validator(t){return t>=0&&t===parseInt(t,10)}}},computed:{inputProps(){return filterProperties(f(f({},normalizeProps(this.$attrs)),this.$props),autoBindKeys$7)}}},__cssModules$2j={};var __component__$2j=normalizeComponent(__vue2_script$2j,render$2a,staticRenderFns$2a,!1,__vue2_injectStyles$2j,null,null,null);function __vue2_injectStyles$2j(t){for(let s in __cssModules$2j)this[s]=__cssModules$2j[s]}const FormInputNumber=function(){return __component__$2j.exports}();var render$29=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("FormItem",t._b({attrs:{rules:t.computeRules,disabled:t.inputDisabled},scopedSlots:t._u([{key:"default",fn:function(){return[n("ElInput",t._g(t._b({class:{"is-readonly":t.readonly},attrs:{value:t.value,readonly:t.readonly,maxlength:t.maxLength,disabled:t.inputDisabled,placeholder:t.computePlaceholder},on:{input:t.emitInput}},"ElInput",t.inputProps,!1),t.listeners))]},proxy:!0},{key:"error",fn:function(r){var a=r.error;return[t._t("error",null,{error:a})]}},{key:"label",fn:function(){return[t._t("label")]},proxy:!0}],null,!0)},"FormItem",t.formItemProps,!1))},staticRenderFns$29=[];const autoBindKeys$6=Object.keys(Input.props).filter(t=>!["value","placeholder","disabled"].includes(t)),__vue2_script$2i={name:"FormInputPhoneNumber",mixins:[formInputMixin],props:{value:{type:String},maxLength:{type:String,default:"200"}},computed:{inputProps(){return filterProperties(f(f({},normalizeProps(this.$attrs)),this.$props),autoBindKeys$6)}},methods:{getRules(){return[{validator:core.validatePhoneNum,message:"请输入正确的手机号码!"}]},emitInput(t){this.$emit("input",t)}}},__cssModules$2i={};var __component__$2i=normalizeComponent(__vue2_script$2i,render$29,staticRenderFns$29,!1,__vue2_injectStyles$2i,null,null,null);function __vue2_injectStyles$2i(t){for(let s in __cssModules$2i)this[s]=__cssModules$2i[s]}const FormInputPhoneNumber=function(){return __component__$2i.exports}();var render$28=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("FormItem",t._b({attrs:{block:t.block,rules:t.computeRules,disabled:t.inputDisabled},scopedSlots:t._u([{key:"default",fn:function(){return[n("XInputTag",t._g(t._b({attrs:{value:t.value,readonly:t.readonly,disabled:t.inputDisabled,placeholder:t.computePlaceholder,"array-mode":t.arrayMode},on:{input:function(r){return t.$emit("input",r)}}},"XInputTag",t.inputProps,!1),t.listeners))]},proxy:!0},{key:"error",fn:function(r){var a=r.error;return[t._t("error",null,{error:a})]}},{key:"label",fn:function(){return[t._t("label")]},proxy:!0}],null,!0)},"FormItem",t.formItemProps,!1))},staticRenderFns$28=[];const autoBindKeys$5=Object.keys(component.XInputTag.props).filter(t=>!["value","placeholder","disabled"].includes(t)),__vue2_script$2h={name:"FormInputTag",mixins:[formInputMixin],props:{value:[Array,String],block:{type:Boolean,default:!0},arrayMode:{type:Boolean,default:!0}},computed:{inputProps(){return filterProperties(f(f({},normalizeProps(this.$attrs)),this.$props),autoBindKeys$5)}}},__cssModules$2h={};var __component__$2h=normalizeComponent(__vue2_script$2h,render$28,staticRenderFns$28,!1,__vue2_injectStyles$2h,null,null,null);function __vue2_injectStyles$2h(t){for(let s in __cssModules$2h)this[s]=__cssModules$2h[s]}const FormInputTag=function(){return __component__$2h.exports}();var render$27=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("FormItem",t._b({attrs:{rules:t.computeRules,disabled:t.inputDisabled},scopedSlots:t._u([{key:"default",fn:function(){return[n("ElTimePicker",t._g(t._b({attrs:{"is-range":t.range,value:t.value,disabled:t.inputDisabled,format:t.format,"value-format":t.valueFormat||t.format,clearable:"","picker-options":{start:t.start,end:t.end,step:t.step,minTime:t.minTime,maxTime:t.maxTime,selectableRange:t.selectableRange},"start-placeholder":"开始时间","end-placeholder":"结束时间",placeholder:t.computePlaceholder},on:{input:function(r){return t.$emit("input",r)}}},"ElTimePicker",t.inputProps,!1),t.listeners))]},proxy:!0},{key:"error",fn:function(r){var a=r.error;return[t._t("error",null,{error:a})]}},{key:"label",fn:function(){return[t._t("label")]},proxy:!0}],null,!0)},"FormItem",t.formItemProps,!1))},staticRenderFns$27=[];const autoBindKeys$4=Object.keys(TimePicker.props).filter(t=>!["value","placeholder","disabled"].includes(t)),__vue2_script$2g={name:"FormInputTime",mixins:[formInputMixin],props:{range:Boolean,format:{type:String,default:"HH:mm:ss"},valueFormat:{type:String},start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:{type:String,default:"00:00"},maxTime:{type:String,default:""},selectableRange:{type:String}},computed:{prefix(){return"请选择"},inputProps(){return filterProperties(f(f({},normalizeProps(this.$attrs)),this.$props),autoBindKeys$4)}}},__cssModules$2g={};var __component__$2g=normalizeComponent(__vue2_script$2g,render$27,staticRenderFns$27,!1,__vue2_injectStyles$2g,null,null,null);function __vue2_injectStyles$2g(t){for(let s in __cssModules$2g)this[s]=__cssModules$2g[s]}const FormInputTime=function(){return __component__$2g.exports}(),__vue2_script$2f={name:"FormItem",mixins:[formItemMixin],inject:{formHolder:{default:""},formItemConfig:{default:null}},computed:{gutter(){var s;let t=this.$parent;for(;t&&t.$options.componentName!=="ElRow";)t=t.$parent;return(s=t==null?void 0:t.gutter)!=null?s:0}},methods:{renderFormItem(){var I,T,F;const t=this.$createElement,{label:s,labelWidth:n,prop:r,rules:a,$scopedSlots:o,elFormItemProps:l,elForm:c,formHolder:u,formItemClass:d,required:p,block:h,half:m,wrapCol:_,wrapFormItem:x,disabled:b,formItemConfig:g,getRequireRule:y}=this;let C=a,$=p,w=p,E=h,k=_;g&&(core.hasOwn(g,"block")&&(E=g.block),core.hasOwn(g,"wrapCol")&&(k=g.wrapCol));const M=E&&m&&k?`calc( 50% - ${this.gutter/2}px)`:"";return b||c!=null&&c.disabled?(C=[],u&&!u.required&&!((I=u.requiredFields)!=null&&I.includes(r))&&(w=!1)):(u&&!u.required&&!((T=u.requiredFields)!=null&&T.includes(r))&&($=!1),$&&!(C!=null&&C.length)&&r?C=[y()]:$||(w=!1,C&&(C=C.filter(O=>!O.required)))),x?t("ElFormItem",{style:{width:M},key:`${r}-${$}`,class:w?`form-item required ${d||""}`:`${d||""}`,scopedSlots:o,props:f({},l),attrs:{label:s,"label-width":n,prop:r,rules:C},ref:"formItem"}):t("div",[(F=o.default)==null?void 0:F.call(o)])},clearValidate(){return v(this,null,function*(){var t,s;yield this.$nextTick(),(s=(t=this.$refs.formItem).clearValidate)==null||s.call(t)})},validate(){return v(this,null,function*(){var t,s;yield this.$nextTick(),(s=(t=this.$refs.formItem).validate)==null||s.call(t)})}},render(){var d,p;const t=arguments[0],{computeSpan:s,wrapCol:n,formItemConfig:r,renderFormItem:a,elColProps:o,$scopedSlots:l,unwrap:c}=this;let u=n;return r&&core.hasOwn(r,"wrapCol")&&(u=r.wrapCol),c?t("div",[(d=l.default)==null?void 0:d.call(l)]):u?t("ElCol",{props:f({},o),attrs:{span:s}},[a(),(p=l==null?void 0:l.below)==null?void 0:p.call(l)]):a()}},FormItem_vue_vue_type_style_index_0_lang="";let __vue2_render$8,__vue2_staticRenderFns$8;const __cssModules$2f={};var __component__$2f=normalizeComponent(__vue2_script$2f,__vue2_render$8,__vue2_staticRenderFns$8,!1,__vue2_injectStyles$2f,null,null,null);function __vue2_injectStyles$2f(t){for(let s in __cssModules$2f)this[s]=__cssModules$2f[s]}const FormItem=function(){return __component__$2f.exports}(),__vue2_script$2e={name:"FormItemConfigProvider",provide(){return{formItemConfig:this.config}},props:{block:Boolean,wrapCol:{type:Boolean,default:!0}},data(){return{config:{block:!1,wrapCol:!0}}},watch:{block:{immediate:!0,handler(t){this.config.block=t}},wrapCol:{immediate:!0,handler(t){this.config.wrapCol=t}}},render(){return this.$scopedSlots.default()}};let __vue2_render$7,__vue2_staticRenderFns$7;const __cssModules$2e={};var __component__$2e=normalizeComponent(__vue2_script$2e,__vue2_render$7,__vue2_staticRenderFns$7,!1,__vue2_injectStyles$2e,null,null,null);function __vue2_injectStyles$2e(t){for(let s in __cssModules$2e)this[s]=__cssModules$2e[s]}const FormItemConfigProvider=function(){return __component__$2e.exports}(),formProperties=["disabled","size","statusIcon","inlineMessage","autoLabelWidth","hideRequiredAsterisk","$emit","validate","clearValidate"],formMethod=["$emit","validate","clearValidate"],__vue2_script$2d={name:"FormItemGroup",inject:{elForm:{default:{}}},provide(){return{elForm:this.formConfig,formItemGroup:this}},props:{blockTitle:{type:String},active:Boolean,enabled:Boolean,disabled:Boolean,wrapRow:{type:Boolean,default:!0},gutter:{type:Number,default:20},collapse:Boolean},data(){const t={};return formProperties.forEach(s=>{t[s]=null}),{expand:!0,formConfig:t}},computed:{formCfg(){const t={enabled:this.enabled,forbidden:this.disabled};return formProperties.forEach(s=>{t[s]=this.elForm[s]}),t}},watch:{collapse:{immediate:!0,handler(t){this.expand=!t}},formCfg:{immediate:!0,handler(){this.formConfig.disabled=this.isDisabled(),formProperties.forEach(t=>{var s;t!=="disabled"&&(formMethod.includes(t)?this.formConfig[t]=(s=this.elForm[t])==null?void 0:s.bind(this.elForm):this.formConfig[t]=this.elForm[t])})}}},mounted(){this.dispatch("FormView","FormView.addGroup",[this])},beforeDestroy(){this.dispatch("FormView","FormView.removeGroup",[this])},methods:{isDisabled(){return this.disabled?this.disabled:this.enabled?!this.enabled:this.elForm.disabled},dispatch(t,s,n){let r=this.$parent||this.$root,a=r.$options.name;for(;r&&(!a||a!==t);)r=r.$parent,r&&(a=r.$options.name);r&&r.$emit.apply(r,[s].concat(n))},renderDefault(){const t=this.$createElement,{wrapRow:s,gutter:n,formConfig:r,$scopedSlots:a}=this;return core.isFunction(a.default)?s?t("ElRow",{attrs:{gutter:n},class:"form-item-group-row"},[a.default({disabled:r.disabled})]):a.default({disabled:r.disabled}):t("EmptyView",{attrs:{"font-size":"14px","empty-tips":"暂无信息"}})},toggle(){this.expand=!this.expand},open(){this.expand=!0}},render(){const t=arguments[0],{renderDefault:s,blockTitle:n,active:r,expand:a,toggle:o,$scopedSlots:l,isDisabled:c}=this;return t("div",{class:["form-item-group",{"default-active":r,"is-disabled":c()}]},[t("div",{class:"form-item-group-title",on:{click:o}},[t("span",{class:"flex-item"},[n,l["title-right"]?l["title-right"]():null])," ",t("i",{class:a?"el-icon-arrow-down":"el-icon-arrow-right"})]),t("ElCollapseTransition",[t("div",{directives:[{name:"show",value:a}]},[s()])])])}},FormItemGroup_vue_vue_type_style_index_0_lang="";let __vue2_render$6,__vue2_staticRenderFns$6;const __cssModules$2d={};var __component__$2d=normalizeComponent(__vue2_script$2d,__vue2_render$6,__vue2_staticRenderFns$6,!1,__vue2_injectStyles$2d,null,null,null);function __vue2_injectStyles$2d(t){for(let s in __cssModules$2d)this[s]=__cssModules$2d[s]}const FormItemGroup=function(){return __component__$2d.exports}();var render$26=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("FormItem",t._b({class:["form-radio-group",{"form-radio-group-row":t.fillRow,inline:t.inline},t.ellipsis?"form-radio-group-row-ellipsis":"form-radio-group-row-break-word"],attrs:{rules:t.computeRules,disabled:t.inputDisabled},scopedSlots:t._u([{key:"default",fn:function(){return[n("ElRadioGroup",t._g(t._b({class:{"over-flow":t.overFlow},attrs:{value:t.value,disabled:t.inputDisabled,placeholder:t.computePlaceholder},on:{input:function(r){return t.$emit("input",r)}}},"ElRadioGroup",t.inputProps,!1),t.listeners),[t.allowCancel?t._l(t.innerOptions,function(r){return n("ElRadio",{key:r[t.valueKey],attrs:{label:r[t.valueKey]},nativeOn:{click:function(a){return a.preventDefault(),a.stopPropagation(),t.toggle(r)}}},[t._v(" "+t._s(r[t.labelKey])+" ")])}):t._l(t.innerOptions,function(r){return n("ElRadio",{key:r[t.valueKey],attrs:{label:r[t.valueKey]}},[t._v(" "+t._s(r[t.labelKey])+" ")])})],2),t._t("append")]},proxy:!0},{key:"error",fn:function(r){var a=r.error;return[t._t("error",null,{error:a})]}},{key:"label",fn:function(){return[t._t("label")]},proxy:!0},{key:"below",fn:function(){return[t._t("below")]},proxy:!0}],null,!0)},"FormItem",t.formItemProps,!1))},staticRenderFns$26=[];const FormRadioGroup_vue_vue_type_style_index_0_lang="",autoBindKeys$3=Object.keys(RadioGroup.props).filter(t=>!["value","placeholder","disabled"].includes(t)),__vue2_script$2c={name:"FormRadioGroup",mixins:[formInputMixin,formPickMixin],props:{options:{type:Array,default:()=>[]},gender:Boolean,overFlow:Boolean,confirm:Boolean,labelProp:{type:String,default:"name"},valueProp:{type:String,default:"code"},english:Boolean,chinese:Boolean,typing:Boolean,classic:Boolean,fillRow:Boolean,ellipsis:Boolean,inline:Boolean,allowCancel:Boolean},computed:{prefix(){return"请选择"},inputProps(){return filterProperties(f(f({},normalizeProps(this.$attrs)),this.$props),autoBindKeys$3)},labelKey(){return this.classic?"label":this.labelProp},valueKey(){return this.classic?"value":this.valueProp},innerOptions(){return this.gender?[{[this.labelKey]:"男",[this.valueKey]:this.chinese?"男":this.typing?1:"1"},{[this.labelKey]:"女",[this.valueKey]:this.chinese?"女":this.typing?2:"2"}]:this.confirm?[{[this.labelKey]:"是",[this.valueKey]:this.chinese?"是":this.english?"Y":this.typing?1:"1"},{[this.labelKey]:"否",[this.valueKey]:this.chinese?"否":this.english?"N":this.typing?0:"0"}]:this.options}},methods:{emitInput(t){this.$emit("input",t)},toggle(t){this.value===t[this.valueKey]?this.emitInput(null):this.emitInput(t[this.valueKey])}}},__cssModules$2c={};var __component__$2c=normalizeComponent(__vue2_script$2c,render$26,staticRenderFns$26,!1,__vue2_injectStyles$2c,null,null,null);function __vue2_injectStyles$2c(t){for(let s in __cssModules$2c)this[s]=__cssModules$2c[s]}const FormRadioGroup=function(){return __component__$2c.exports}();var render$25=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("FormItem",t._b({attrs:{rules:t.computeRules,disabled:t.inputDisabled},scopedSlots:t._u([{key:"default",fn:function(){return[n("ElSelect",t._g(t._b({attrs:{value:t.value,filterable:t.filterable,placeholder:t.inputDisabled?"--":t.computePlaceholder,disabled:t.inputDisabled},on:{input:t.emitInput}},"ElSelect",t.inputProps,!1),t.listeners),t._l(t.innerOptions,function(r){return n("ElOption",{key:r[t.valueKey],attrs:{value:r[t.valueKey],label:r[t.labelKey]}})}),1),t.$slots.warn?n("div",{staticClass:"el-form-item__warn"},[t._t("warn")],2):t._e()]},proxy:!0},{key:"error",fn:function(r){var a=r.error;return[t.$scopedSlots.error&&t.$scopedSlots.error(a)?n("div",{staticClass:"el-form-item__error"},[t._t("error",function(){return[t._v(" "+t._s(a)+" ")]},{error:a})],2):t._e()]}},{key:"label",fn:function(){return[t._t("label")]},proxy:!0},{key:"below",fn:function(){return[t._t("below")]},proxy:!0}],null,!0)},"FormItem",t.formItemProps,!1))},staticRenderFns$25=[];const autoBindKeys$2=Object.keys(Select.props).filter(t=>!["value","placeholder","disabled"].includes(t)),__vue2_script$2b={name:"FormSelect",mixins:[formInputMixin,formPickMixin],props:{options:{type:Array,default:()=>[]},gender:Boolean,all:Boolean,filterable:Boolean,confirm:Boolean,value:{type:[String,Number]},labelProp:{type:String,default:"name"},valueProp:{type:String,default:"code"},english:Boolean,chinese:Boolean,typing:Boolean,classic:Boolean},computed:{prefix(){return"请选择"},labelKey(){return this.classic?"label":this.labelProp},valueKey(){return this.classic?"value":this.valueProp},inputProps(){return filterProperties(f(f({},normalizeProps(this.$attrs)),this.$props),autoBindKeys$2)},innerOptions(){return this.gender?[{[this.labelKey]:"男",[this.valueKey]:this.chinese?"男":this.typing?1:"1"},{[this.labelKey]:"女",[this.valueKey]:this.chinese?"女":this.typing?2:"2"}]:this.confirm?[{[this.labelKey]:"是",[this.valueKey]:this.chinese?"是":this.english?"Y":this.typing?1:"1"},{[this.labelKey]:"否",[this.valueKey]:this.chinese?"否":this.english?"N":this.typing?0:"0"}]:this.all?[{[this.valueKey]:"",[this.labelKey]:"全部"},...this.options]:this.options}},methods:{emitInput(t){this.$emit("input",t)}}},__cssModules$2b={};var __component__$2b=normalizeComponent(__vue2_script$2b,render$25,staticRenderFns$25,!1,__vue2_injectStyles$2b,null,null,null);function __vue2_injectStyles$2b(t){for(let s in __cssModules$2b)this[s]=__cssModules$2b[s]}const FormSelect=function(){return __component__$2b.exports}();var render$24=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("FormItem",t._b({attrs:{rules:t.computeRules,disabled:t.inputDisabled},scopedSlots:t._u([{key:"default",fn:function(){return[t._t("default",function(){return[n("ElSwitch",t._g(t._b({class:{"is-readonly":t.readonly},attrs:{"active-value":"Y","inactive-value":"N",value:t.value,readonly:t.readonly,disabled:t.inputDisabled,placeholder:t.computePlaceholder},on:{input:t.emitInput},scopedSlots:t._u([{key:"append",fn:function(){return[t._t("append")]},proxy:!0}],null,!0)},"ElSwitch",t.inputProps,!1),t.listeners))]})]},proxy:!0},{key:"error",fn:function(r){var a=r.error;return[t._t("error",null,{error:a})]}},{key:"label",fn:function(){return[t._t("label")]},proxy:!0}],null,!0)},"FormItem",t.formItemProps,!1))},staticRenderFns$24=[];const autoBindKeys$1=Object.keys(Switch.props).filter(t=>!["value","placeholder","disabled"].includes(t)),__vue2_script$2a={name:"FormSwitch",mixins:[formInputMixin],props:{value:{type:[String,Number,Boolean]}},computed:{inputProps(){return filterProperties(f(f({},normalizeProps(this.$attrs)),this.$props),autoBindKeys$1)}},methods:{emitInput(t){this.$emit("input",t)}}},__cssModules$2a={};var __component__$2a=normalizeComponent(__vue2_script$2a,render$24,staticRenderFns$24,!1,__vue2_injectStyles$2a,null,null,null);function __vue2_injectStyles$2a(t){for(let s in __cssModules$2a)this[s]=__cssModules$2a[s]}const FormSwitch=function(){return __component__$2a.exports}(),lang={common:{condition:"条件",display:"显示",hide:"隐藏"},tip:{select:"请选择",input:"请输入"},check:{checkAll:"全选"},upload:{upload:"点击上传",tip:"将文件拖到此处,或"},time:{start:"开始",end:"结束"},date:{start:"开始",end:"结束",t:"今日",y:"昨日",n:"近7天",a:"全部"},form:{printBtn:"打 印",mockBtn:"模 拟",submitBtn:"提 交",emptyBtn:"清 空"},crud:{filter:{addBtn:"新增条件",clearBtn:"清空数据",resetBtn:"清空条件",cancelBtn:"取 消",submitBtn:"确 定"},column:{name:"列名",hide:"隐藏",fixed:"冻结",filters:"过滤",sortable:"排序",index:"顺序",width:"宽度"},tipStartTitle:"当前表格已选择",tipEndTitle:"项",editTitle:"编 辑",copyTitle:"复 制",addTitle:"新 增",viewTitle:"查 看",filterTitle:"过滤条件",showTitle:"列显隐",menu:"操作",addBtn:"新 增",show:"显 示",hide:"隐 藏",open:"展 开",shrink:"收 缩",printBtn:"打 印",excelBtn:"导 出",updateBtn:"修 改",cancelBtn:"取 消",searchBtn:"搜 索",emptyBtn:"清 空",menuBtn:"功 能",saveBtn:"保 存",viewBtn:"查 看",editBtn:"编 辑",copyBtn:"复 制",delBtn:"删 除"}},getValueByPath=(t,s)=>{s=s||"";const n=s.split(".");let r=t,a=null;for(let o=0,l=n.length;o<l;o++){const c=n[o];if(!r)break;if(o===l-1){a=r[c];break}r=r[c]}return a},translate=t=>getValueByPath(lang,t),calcCascader=(t=[])=>(t.forEach(s=>{const n=s.cascader;if(!core.isBlank(n)){const r=s.prop;n.forEach(a=>{const o=findObject(t,a);o!==-1&&(o.parentProp=r)})}}),t);let count=0;const calcCount=(t,s=12,n=!1)=>{n&&(count=0);const r=24;return count=count+(t.span||s)+(t.offset||0),count===r?count=0:count>r?count=(t.span||s)+(t.offset||0):t.row&&count!==r&&(t.count=r-count,count=0),t},initVal=(t,s)=>{const{type:n,multiple:r,dataType:a,separator:o=DIC_SPLIT,alone:l,emitPath:c,range:u}=s;let d=t;return MULTIPLE_LIST.includes(n)&&r===!0||ARRAY_VALUE_LIST.includes(n)&&c!==!1||RANGE_LIST.includes(n)&&u===!0?(Array.isArray(d)||(core.isBlank(d)?d=[]:d=`${d}`.split(o)||[]),d.forEach((p,h)=>{d[h]=detailDataType(p,a)}),ARRAY_LIST.includes(n)&&core.isBlank(d)&&l&&(d=[""])):d=detailDataType(d,a),d},getSearchType=t=>{const s=t.type,n=t.searchRange;let r=s;if(t.searchType)return t.searchType;if(["radio","checkbox","switch"].includes(s))r="select";else if(DATE_LIST.includes(s)){const a="range";n?s.includes(a)?r=s:r=s+a:r=s.replace(a,"")}else["textarea"].includes(s)&&(r="input");return r},getComponent=(t,s)=>{let n=t||"input";if(core.isBlank(s))ARRAY_LIST.includes(t)?n="array":["time","timerange"].includes(t)?n="time":DATE_LIST.includes(t)?n="date":["password","textarea","search"].includes(t)?n="input":INPUT_LIST.includes(t)&&(n=`input-${t}`);else return s;return KEY_COMPONENT_NAME+n},formInitVal=(t=[])=>{let s={};return t.forEach(n=>{ARRAY_VALUE_LIST.includes(n.type)&&n.emitPath!==!1||MULTIPLE_LIST.includes(n.type)&&n.multiple||n.dataType==="array"?s[n.prop]=[]:RANGE_LIST.includes(n.type)&&n.range===!0?s[n.prop]=[0,0]:["rate","slider","number"].includes(n.type)||n.dataType==="number"?s[n.prop]=void 0:s[n.prop]="",n.bind&&(s=createObj(s,n.bind)),core.isBlank(n.value)||(s[n.prop]=n.value)}),{tableForm:s}},getPlaceholder=function(t){const s=t.placeholder,n=t.label;return core.isBlank(s)?SELECT_LIST.includes(t.type)?`${translate("tip.select")} ${n}`:`${translate("tip.input")} ${n}`:s},slot={methods:{getSlotName(t={},s="D",n){const r={F:"Form",H:"Header",E:"Error",L:"Label",S:"Search",T:"Type",D:""},a=t.prop+r[s];return n?n[a]:a},getSlotList(t=[],s,n){return n=n.map(r=>r.prop),Object.keys(s).filter(r=>{let a=!1;return n.includes(r)||t.forEach(o=>{r.includes(o)&&(a=!0)}),a})}}};var render$23=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n(t.getComponent(t.column.type,t.column.component),t._g(t._b({ref:"temp",tag:"Component",attrs:{column:Object.assign(t.column,t.params),dic:t.dic,disabled:t.column.disabled||t.disabled,readonly:t.column.readonly||t.readonly,placeholder:t.getPlaceholder(t.column),props:t.column.props||t.props,"props-http":t.column.propsHttp||t.propsHttp,size:t.column.size||t.size,"table-data":t.tableData,type:t.type||t.column.type,"column-slot":t.columnSlot},nativeOn:{keyup:function(r){return!r.type.indexOf("key")&&t._k(r.keyCode,"enter",13,r.key,"Enter")?null:t.enterChange.apply(null,arguments)}},scopedSlots:t._u([t._l(t.columnSlot,function(r){return{key:r,fn:function(a){return[t._t(r,null,null,a)]}}})],null,!0),model:{value:t.text,callback:function(r){t.text=r},expression:"text"}},"Component",Object.assign(t.column,t.uploadFun(t.column)),!1),t.event),[t.params.html?n("span",{domProps:{innerHTML:t._s(t.params.html)}}):t._e()])},staticRenderFns$23=[];const __vue2_script$29={name:"FormTemp",mixins:[slot],props:{value:[String,Object,Number,Boolean,Array],uploadBefore:Function,uploadDelete:Function,uploadAfter:Function,uploadPreview:Function,uploadError:Function,uploadExceed:Function,columnSlot:{type:Array,default:()=>[]},tableData:{type:Object,default:()=>({})},clearable:{type:Boolean},enter:{type:Boolean,default:!1},type:{type:String},propsHttp:{type:Object,default:()=>({})},props:{type:Object},dic:{type:Array},placeholder:{type:String},size:{type:String},disabled:{type:Boolean},readonly:{type:Boolean},column:{type:Object,default:()=>({})}},computed:{params(){return this.column.params||{}},event(){return this.column.event||{}},text:{get(){return this.value},set(t){this.$emit("input",t),this.$emit("change",t)}}},methods:{uploadFun,getComponent,getPlaceholder,enterChange(){typeof this.column.enter=="function"?this.column.enter({value:this.text,column:this.column}):this.enter&&this.$emit("enter")}}},__cssModules$29={};var __component__$29=normalizeComponent(__vue2_script$29,render$23,staticRenderFns$23,!1,__vue2_injectStyles$29,null,null,null);function __vue2_injectStyles$29(t){for(let s in __cssModules$29)this[s]=__cssModules$29[s]}const FormTemp=function(){return __component__$29.exports}();var render$22=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("FormItem",t._b({attrs:{block:t.block,rules:t.computeRules,disabled:t.inputDisabled},scopedSlots:t._u([{key:"default",fn:function(){return[n("ElInput",t._g(t._b({attrs:{value:t.value,type:"textarea",rows:t.rows,resize:t.resize?null:"none","show-word-limit":t.showWordLimit,disabled:t.inputDisabled,maxlength:t.maxLength,placeholder:t.computePlaceholder},on:{input:function(r){return t.$emit("input",r)}}},"ElInput",t.inputProps,!1),t.listeners))]},proxy:!0},{key:"error",fn:function(r){var a=r.error;return[t._t("error",null,{error:a})]}},{key:"label",fn:function(){return[t._t("label")]},proxy:!0}],null,!0)},"FormItem",t.formItemProps,!1))},staticRenderFns$22=[];const autoBindKeys=Object.keys(Input.props).filter(t=>!["value","placeholder","type","rows","resize","showWordLimit","maxLength","maxlength"].includes(t)),__vue2_script$28={name:"FormTextarea",mixins:[formInputMixin],props:{value:{type:[String,Number]},rows:{type:String,default:"4"},resize:Boolean,showWordLimit:{type:Boolean,default:!0},maxLength:{type:String,default:"800"},block:{type:Boolean,default:!0}},computed:{inputProps(){return filterProperties(f(f({},normalizeProps(this.$attrs)),this.$props),autoBindKeys)}}},__cssModules$28={};var __component__$28=normalizeComponent(__vue2_script$28,render$22,staticRenderFns$22,!1,__vue2_injectStyles$28,null,null,null);function __vue2_injectStyles$28(t){for(let s in __cssModules$28)this[s]=__cssModules$28[s]}const FormTextarea=function(){return __component__$28.exports}();var render$21=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{class:["form-view",t.className]},[t.showToolbar?n("div",{directives:[{name:"show",rawName:"v-show",value:!t.isFormLoading,expression:"!isFormLoading"}],staticClass:"form-view-toolbar"},[t._t("form-view-toolbar",function(){return[n("Toolbar",t._g(t._b({on:{edit:t.onEdit},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.buttons;return[t._t("toolbar-button",null,{buttons:a})]}},t._l(t.getToolbarSlotKeys(),function(r){return{key:r,fn:function(){return[t._t(r)]},proxy:!0}}),{key:"toolbar-right",fn:function(){return[t._t("toolbar-right")]},proxy:!0}],null,!0)},"Toolbar",Object.assign({},t.toolbarProps,{buttons:t.toolbarButtons}),!1),t.toolbarListeners))]})],2):t._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:!t.isFormLoading,expression:"!isFormLoading"}],staticClass:"form-scroller-wrapper"},[n("div",{ref:"formScroller",class:["form-scroller","absolute-box",t.contentClass],on:{scroll:t.onFormScroll}},[t.notForm?n("div",{staticClass:"not-form",style:{width:t.formWidth}},[t.title?n("div",{staticClass:"form-view-title"},[t._v(" "+t._s(t.title)+" ")]):t._e(),t._t("default",function(){return[n("EmptyView",{attrs:{"empty-tips":"请添加表单内容"}})]}),t.footerBarButtons.length?n("Toolbar",t._g(t._b({attrs:{footer:""},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.buttons,o=r.footer;return[t._t("footer-button",null,{buttons:a,footer:o})]}},t._l(t.getFooterSlotKeys(),function(r){return{key:t.getFooterSlotKey(r),fn:function(){return[t._t(r)]},proxy:!0}})],null,!0)},"Toolbar",Object.assign({},t.toolbarProps,{buttons:t.footerBarButtons}),!1),t.toolbarListeners)):t._e(),t.$scopedSlots["form-bottom"]?t._t("form-bottom"):t._e()],2):n("div",{class:["form-card",{"un-limit":t.unLimit}],style:{width:`calc(${t.formWidth} + 40px)`}},[n("div",{staticClass:"form-content"},[t.title?n("div",{staticClass:"form-view-title"},[t._v(" "+t._s(t.title)+" ")]):t._e(),t._t("default",function(){return[n("EmptyView",{attrs:{"empty-tips":"请添加表单内容"}})]}),t.footerBarButtons.length?n("Toolbar",t._g(t._b({attrs:{footer:""},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.buttons,o=r.footer;return[t._t("footer-button",null,{buttons:a,footer:o})]}},t._l(t.getFooterSlotKeys(),function(r){return{key:t.getFooterSlotKey(r),fn:function(){return[t._t(r)]},proxy:!0}})],null,!0)},"Toolbar",Object.assign({},t.toolbarProps,{buttons:t.footerBarButtons}),!1),t.toolbarListeners)):t._e()],2)]),t.$scopedSlots["form-bottom"]||t.$parent.$options.flowForm&&t.flowContext.logs.length?n("div",{class:["form-card",{"un-limit":t.unLimit}],staticStyle:{"min-height":"0"},style:{width:`calc(${t.formWidth} + 40px)`}},[n("div",{staticClass:"form-content"},[t.$parent.$options.flowForm&&t.flowContext.logs.length?n("FormItemGroup",{attrs:{"block-title":"流程日志"}},[n("FlowLog",{staticClass:"flow-log",attrs:{fetch:!1,"show-title":!1,"business-key":t.$parent.bizKey}})],1):t._e(),t._t("form-bottom")],2)]):t._e()]),n("ResizeObserver",{on:{notify:t.onFormResize}})],1),t.formNav&&!t.isFormLoading&&t.showNav&&t.groups.length?n("div",{staticClass:"form-nav"},[n("div",{staticClass:"form-nav-header"},[t._v(" 表单导航 ")]),n("ul",{staticClass:"form-nav-list"},t._l(t.groups,function(r,a){return n("li",{key:r.blockTitle,class:["form-nav-item",{active:t.activeIndex===a}],on:{click:function(o){return t.navItemClick(r,a)}}},[t._v(" "+t._s(r.blockTitle)+" ")])}),0)]):t._e(),t.isFormLoading?n("LoadingView",{attrs:{"icon-size":"34px","font-size":"16px"}}):t._e()],1)},staticRenderFns$21=[];const FormView_vue_vue_type_style_index_0_lang="",builtInButtons$2=["back","create","save","withdraw","edit","submit","publish","agree","disagree","reject","finish","cancel","enable","exp","imp","del","disabled","reload","slot"],footerButtons$1=builtInButtons$2.map(t=>`${t}-down`),topButtons$1=["back","withdraw","edit"],bottomButtons$1=["save","submit","","publish","agree","disagree","reject","finish","cancel"],findParent$1=(t,s)=>{if(t.classList.contains(s))return t;let n=t.parentNode;for(;n&&!n.classList.contains(s);)n=n.parentNode;return n.classList.contains(s)?n:null},__vue2_script$27={name:"FormView",inject:{flowContext:{default:{}}},props:{notForm:Boolean,loading:Boolean,unLimit:Boolean,formWidth:{type:String,default:"75%"},toolbarAttrs:{type:Object,default:()=>{}},toolbarListeners:{type:Object},contentClass:{type:String},className:{type:String},title:{type:String},showToolbar:{type:Boolean,default:!0},formNav:{type:Boolean,default:!0}},data(){return{groups:[],activeIndex:-1,tryByClick:!1,showNav:!1}},computed:{isFormLoading(){return this.loading||core.hasOwn(this.$parent,"isFormLoaded")?!this.$parent.isFormLoaded:!1},toolbarProps(){var r;const t={},s=((r=this.toolbarAttrs)==null?void 0:r.buttons)||this.$parent.buttons,n=lodash.merge({},this.toolbarAttrs,t);return n.buttons=s||["back"],n.buttons=core.toStringArray(n.buttons),n},toolbarButtons(){return this.toolbarProps.buttons.filter(t=>!bottomButtons$1.includes(t)&&t.indexOf(":down")<0).map(t=>t.replace(":up",""))},footerBarButtons(){let t=this.toolbarProps.buttons.filter(s=>!topButtons$1.includes(s)&&(bottomButtons$1.includes(s)||s.indexOf(":down")>-1)).map(s=>s.replace(":down",""));return t=t||[],this.$parent.isEnabled&&!t.includes("cancel")&&t.push("cancel"),t}},created(){this.$on("FormView.addGroup",t=>{t&&(this.activeIndex===-1&&(this.activeIndex=0),this.groups.push(t),this.groups=this.groups.sort((s,n)=>{const r=findParent$1(s.$el,"form-card"),a=findParent$1(n.$el,"form-card");if(r===a){const o=[].indexOf.call(s.$el.parentNode.children,s.$el),l=[].indexOf.call(n.$el.parentNode.children,n.$el);return o-l}else{const o=findParent$1(r,"form-scroller"),l=[].indexOf.call(o.children,r),c=[].indexOf.call(o.children,a);return l-c}}),t.active&&(this.activeIndex=this.groups.indexOf(t),this.navItemClick(t,this.activeIndex)))}),this.$on("FormView.removeGroup",t=>{if(t){const s=this.groups.indexOf(t);this.groups.splice(s,1),this.activeIndex>this.groups.length-1&&(this.activeIndex=0)}}),this.onFormResize({width:window.document.body.clientWidth})},activated(){return v(this,null,function*(){this.$refs.formScroller&&(yield this.$nextTick(),this.scrollTo(this.formScrollTop,this.formScrollLeft))})},methods:{getToolbarSlotKeys(){return Object.keys(this.$scopedSlots).filter(t=>builtInButtons$2.includes(t))},getFooterSlotKeys(){return Object.keys(this.$scopedSlots).filter(t=>footerButtons$1.includes(t))},getFooterSlotKey(t){return t.replace("-down","")},onFormResize({width:t}){this.showNav=t>1500},onEdit(){!this.toolbarListeners.edit&&core.hasOwn(this.$parent,"disabled")&&(this.$parent.disabled=!1)},navItemClick(t,s){return v(this,null,function*(){this.showNav&&(yield this.$nextTick(),this.activeFormItemGroup(t,s),t.expand||t.open())})},activeFormItemGroup(t,s){this.$refs.formScroller.scrollTop=t.$el.offsetTop-10,core.animate(t.$el,"breathe-indicator-animation"),this.tryByClick=!0,this.activeIndex=s},tryActive(){return v(this,null,function*(){if(this.showNav){for(let t=0;t<this.groups.length;t++)if(core.isInContainer(this.groups[t].$el,this.$refs.formScroller,{bottomOffset:10})){this.activeIndex=t;break}}})},onFormScroll(){this.formScrollTop=this.$refs.formScroller.scrollTop,this.formScrollLeft=this.$refs.formScroller.scrollLeft,!this.tryByClick&&this.groups.length&&window.requestAnimationFrame(this.tryActive),this.tryByClick=!1},scrollTo(t,s){t&&(this.$refs.formScroller.scrollTop=t),s&&(this.$refs.formScroller.scrollLeft=s)}}},__cssModules$27={};var __component__$27=normalizeComponent(__vue2_script$27,render$21,staticRenderFns$21,!1,__vue2_injectStyles$27,null,null,null);function __vue2_injectStyles$27(t){for(let s in __cssModules$27)this[s]=__cssModules$27[s]}const FormView=function(){return __component__$27.exports}(),props={mixins:[slot],data(){return{stringMode:!1,name:"",text:void 0,propsHttpDefault:DIC_HTTP_PROPS,propsDefault:DIC_PROPS}},props:{blur:Function,focus:Function,change:Function,click:Function,typeformat:Function,control:Function,separator:{type:String,default:DIC_SPLIT},params:{type:Object,default:()=>({})},listType:{type:String},tableData:{type:Object},value:{},column:{type:Object,default:()=>({})},label:{type:String,default:""},readonly:{type:Boolean,default:!1},size:{type:String,default:""},tip:{type:String,default:""},disabled:{type:Boolean,default:!1},dataType:{type:String},clearable:{type:Boolean,default:!0},type:{type:String,default:""},dicUrl:{type:String,default:""},dicMethod:{type:String,default:""},dicFormatter:Function,dicQuery:{type:Object,default:()=>({})},dic:{type:Array,default:()=>[]},placeholder:{type:String,default:""},rules:{type:Array},min:{type:Number},max:{type:Number},multiple:{type:Boolean,default:!1},button:{type:Boolean,default:!1},group:{type:Boolean,default:!1},row:{type:Boolean,default:!1},prop:{type:String,default:""},border:{type:Boolean,default:!1},popperClass:{type:String},propsHttp:{type:Object,default:()=>DIC_HTTP_PROPS},props:{type:Object,default:()=>DIC_PROPS}},watch:{text:{handler(t){this.handleChange(t)}},value:{handler(){this.initVal()}}},computed:{clearableVal(){return this.disabled?!1:this.clearable},componentName(){return`el-${this.name}${this.button?"-button":""}`},required(){return!core.isBlank(this.rules)},isArray(){return this.dataType==="array"},isString(){return this.dataType==="string"},isNumber(){return this.dataType==="number"},nameKey(){return this.propsHttp.name||this.propsHttpDefault.name},urlKey(){return this.propsHttp.url||this.propsHttpDefault.url},resKey(){return this.propsHttp.res||this.propsHttpDefault.res},groupsKey(){return this.props.groups||this.propsDefault.groups},valueKey(){return this.props.value||this.propsDefault.value},descKey(){return this.props.desc||this.propsDefault.desc},leafKey(){return this.props.leaf||this.propsDefault.leaf},labelKey(){return this.props.label||this.propsDefault.label},childrenKey(){return this.props.children||this.propsDefault.children},disabledKey(){return this.props.disabled||this.propsDefault.disabled},idKey(){return this.props.id||this.propsDefault.id}},created(){this.initVal()}},event={methods:{bindEvent(t,s){s=Object.assign(s,{column:this.column},this.tableData),typeof this[t]=="function"&&(t==="change"?this.column.cell!==!0&&this[t](s):this[t](s)),this.$emit(t,s)},initVal(){this.stringMode=typeof this.value=="string",this.text=initVal(this.value,this)},getLabelText(t){return core.isBlank(t)?"":typeof this.typeformat=="function"?this.typeformat(t,this.labelKey,this.valueKey):t[this.labelKey]},handleFocus(t){this.bindEvent("focus",{value:this.value,event:t})},handleBlur(t){this.bindEvent("blur",{value:this.value,event:t})},handleClick(t){this.bindEvent("click",{value:this.value,event:t})},handleChange(t){let s=t;(this.isString||this.isNumber||this.stringMode||this.listType==="picture-img")&&Array.isArray(t)&&(s=t.join(this.separator)),this.bindEvent("change",{value:s}),this.$emit("input",s)}}};var render$20=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-array"},[t.text?n("ElButton",{attrs:{type:"primary",icon:"el-icon-plus",circle:"",size:t.size,disabled:t.disabled},on:{click:function(r){return t.add()}}}):t._e(),t._l(t.text,function(r,a){return n("div",{key:a,staticClass:"avue-array__item"},[n("div",{staticClass:"avue-array__input"},[n("ElTooltip",{attrs:{placement:"bottom",disabled:!t.isImg&&!t.isUrl||!!r}},[n("div",{attrs:{slot:"content"},slot:"content"},[t.isImg?n(t.isMediaType(r),{tag:"Component",staticStyle:{width:"200px"},attrs:{src:r,controls:"controls"},on:{click:function(o){return t.openImg(a)}}}):t.isUrl?n("ElLink",{attrs:{type:"primary",href:r,target:t.target}},[t._v(" "+t._s(r)+" ")]):t._e()],1),n("ElInput",{attrs:{size:t.size,placeholder:t.placeholder,disabled:t.disabled},model:{value:t.text[a],callback:function(o){t.$set(t.text,a,o)},expression:"text[index]"}})],1),t.disabled||t.readonly||t.alone?t._e():[t.isLimit?t._e():n("ElButton",{attrs:{type:"primary",icon:"el-icon-plus",circle:"",size:t.size,disabled:t.disabled},on:{click:function(o){return t.add(a)}}}),n("ElButton",{attrs:{type:"danger",icon:"el-icon-minus",circle:"",size:t.size,disabled:t.disabled},on:{click:function(o){return t.remove(a)}}})]],2)])})],2)},staticRenderFns$20=[];const FyArray_vue_vue_type_style_index_0_lang="",__vue2_script$26={name:"FyArray",mixins:[props,event],props:{fileType:String,alone:Boolean,type:String,limit:Number},computed:{isLimit(){return this.limit},textLen(){return this.text.length},isImg(){return this.type==="img"},isUrl(){return this.type==="url"}},methods:{isMediaType(t){return isMediaType(t,this.fileType)},add(t){this.text.splice(t+1,0,"")},remove(t){this.text.splice(t,1)},openImg(){this.text.map(t=>({thumbUrl:t,url:t,type:this.fileType}))}}},__cssModules$26={};var __component__$26=normalizeComponent(__vue2_script$26,render$20,staticRenderFns$20,!1,__vue2_injectStyles$26,null,null,null);function __vue2_injectStyles$26(t){for(let s in __cssModules$26)this[s]=__cssModules$26[s]}const FyArray=function(){return __component__$26.exports}();var render$1$=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-article"},[n("div",{staticClass:"avue-article__header"},[t.title?n("div",{staticClass:"avue-article__title",domProps:{textContent:t._s(t.title)}}):t._e(),t.meta?n("small",{staticClass:"avue-article__meta",domProps:{textContent:t._s(t.meta)}}):t._e()]),t.lead?n("div",{staticClass:"avue-article__lead",domProps:{textContent:t._s(t.lead)}}):t._e(),t.body?n("div",{staticClass:"avue-article__body",domProps:{innerHTML:t._s(t.body)}}):t._e()])},staticRenderFns$1$=[];const FyArticle_vue_vue_type_style_index_0_lang="",propsDefault$1={title:"title",meta:"meta",lead:"lead",body:"body"},__vue2_script$25={name:"FyArticle",props:{data:{type:Object,default:()=>({})},props:{type:Object,default:()=>propsDefault$1}},computed:{titleKey(){return this.props.title||propsDefault$1.title},metaKey(){return this.props.meta||propsDefault$1.meta},leadKey(){return this.props.lead||propsDefault$1.lead},bodyKey(){return this.props.body||propsDefault$1.body},title(){return this.data[this.titleKey]},meta(){return this.data[this.metaKey]},lead(){return this.data[this.leadKey]},body(){return this.data[this.bodyKey]}}},__cssModules$25={};var __component__$25=normalizeComponent(__vue2_script$25,render$1$,staticRenderFns$1$,!1,__vue2_injectStyles$25,null,null,null);function __vue2_injectStyles$25(t){for(let s in __cssModules$25)this[s]=__cssModules$25[s]}const FyArticle=function(){return __component__$25.exports}();var render$1_=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("ElCascader",{attrs:{options:t.dic,placeholder:t.placeholder,props:t.allProps,size:t.size,clearable:t.clearableVal,"show-all-levels":t.showAllLevels,filterable:t.filterable,"popper-class":t.popperClass,separator:t.separator,disabled:t.disabled,"collapse-tags":t.tags},on:{focus:t.handleFocus,blur:t.handleBlur},nativeOn:{click:function(r){return t.handleClick.apply(null,arguments)}},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.data,o=r.node;return[t.$scopedSlots.default?t._t("default",null,{data:a,node:o}):n("span",[t._v(t._s(a[t.labelKey]))])]}}],null,!0),model:{value:t.text,callback:function(r){t.text=r},expression:"text"}})},staticRenderFns$1_=[];const __vue2_script$24={name:"FyCascader",mixins:[props,event],props:{checkStrictly:{type:Boolean,default:!1},emitPath:{type:Boolean,default:!0},tags:{type:Boolean,default:!1},expandTrigger:{type:String,default:"hover"},showAllLevels:{type:Boolean,default:!0},lazy:{type:Boolean,default:!1},lazyLoad:Function,filterable:{type:Boolean,default:!1},separator:{type:String}},data(){return{}},computed:{allProps(){return{label:this.labelKey,value:this.valueKey,children:this.childrenKey,checkStrictly:this.checkStrictly,multiple:this.multiple,emitPath:this.emitPath,lazy:this.lazy,lazyLoad:(t,s)=>{const n=r=>{const a=(o,l,c)=>{o.forEach(u=>{u[this.valueKey]===l?u[this.childrenKey]=c:u[this.childrenKey]&&a(u[this.childrenKey])})};a(this.dic,t[this.valueKey],r),s(r)};this.lazyLoad&&this.lazyLoad(t,n)},expandTrigger:this.expandTrigger}}}},__cssModules$24={};var __component__$24=normalizeComponent(__vue2_script$24,render$1_,staticRenderFns$1_,!1,__vue2_injectStyles$24,null,null,null);function __vue2_injectStyles$24(t){for(let s in __cssModules$24)this[s]=__cssModules$24[s]}const FyCascader=function(){return __component__$24.exports}();var render$1Z=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-checkbox"},[t.all?n("ElCheckbox",{attrs:{disabled:t.disabled,indeterminate:t.isIndeterminate},on:{change:t.handleCheckAll},model:{value:t.checkAll,callback:function(r){t.checkAll=r},expression:"checkAll"}},[t._v(" 全选 ")]):t._e(),n("ElCheckboxGroup",{attrs:{disabled:t.disabled,size:t.size,min:t.min,max:t.max},on:{change:t.handleCheckChange},nativeOn:{click:function(r){return t.handleClick.apply(null,arguments)}},model:{value:t.text,callback:function(r){t.text=r},expression:"text"}},t._l(t.dic,function(r,a){return n(t.componentName,{key:a,tag:"Component",attrs:{label:r[t.valueKey],border:t.border,size:t.size,readonly:t.readonly,disabled:r[t.disabledKey]}},[t._v(" "+t._s(r[t.labelKey])+" ")])}),1)],1)},staticRenderFns$1Z=[];const FyCheckbox_vue_vue_type_style_index_0_lang="",__vue2_script$23={name:"FyCheckbox",mixins:[props,event],props:{all:{type:Boolean,default:!1}},data(){return{checkAll:!1,isIndeterminate:!1,name:"checkbox"}},watch:{dic(){this.handleCheckChange()},text:{handler(){this.handleCheckChange()}}},methods:{handleCheckAll(t){this.all&&(this.text=t?this.dic.map(s=>s[this.valueKey]):[],this.isIndeterminate=!1)},handleCheckChange(){const t=this.text;if(!this.all)return;const s=t.length,n=this.dic.length;this.checkAll=s===n,this.isIndeterminate=s>0&&s<n}}},__cssModules$23={};var __component__$23=normalizeComponent(__vue2_script$23,render$1Z,staticRenderFns$1Z,!1,__vue2_injectStyles$23,null,null,null);function __vue2_injectStyles$23(t){for(let s in __cssModules$23)this[s]=__cssModules$23[s]}const FyCheckbox=function(){return __component__$23.exports}();var render$1Y=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-code"},[n("ElScrollbar",{style:t.styleName},[n("pre",[t._v(" "),n("code",{ref:"container",class:t.syntax},[t._v(`
|
|
7
7
|
`),t._t("default"),t._v(`
|
|
8
8
|
`)],2),t._v(`
|
|
9
|
-
`)])])],1)},staticRenderFns$1W=[];const __vue2_script$1$={name:"FyCode",components:{ElScrollbar},props:{height:{type:Number,default:200},syntax:{type:String,default:"javascript"}},computed:{styleName(){return{height:setPx(this.height)}}},mounted(){window.hljs&&window.hljs&&typeof window.hljs.highlightBlock=="function"&&window.hljs.highlightBlock(this.$refs.container)},methods:{setPx}},__cssModules$1$={};var __component__$1$=normalizeComponent(__vue2_script$1$,render$1W,staticRenderFns$1W,!1,__vue2_injectStyles$1$,null,null,null);function __vue2_injectStyles$1$(t){for(let s in __cssModules$1$)this[s]=__cssModules$1$[s]}const FyCode=function(){return __component__$1$.exports}(),list={AliOSS:{url:"https://cdn.staticfile.org/ali-oss/6.17.1/aliyun-oss-sdk.min.js",title:"阿里云云图片上传,需引入OSS的sdk",github:"https://github.com/ali-sdk/ali-oss/"},Map:{url:"https://webapi.amap.com/maps?v=1.4.11&key=xxxxx&plugin=AMap.PlaceSearch,https://webapi.amap.com/ui/1.0/main.js?v=1.0.11",title:"地图组件,需引入高德SDK"},MapUi:{url:"https://webapi.amap.com/ui/1.0/main.js?v=1.0.11",title:"地图组件,需引入高德UISDK"},Sortable:{url:"https://cdn.staticfile.org/Sortable/1.10.0-rc2/Sortable.min.js",title:"拖拽,需引入sortableJs",github:"https://github.com/SortableJS/Sortable"},Screenshot:{url:"https://cdn.staticfile.org/html2canvas/0.5.0-beta4/html2canvas.min.js",title:"需引入html2canvas依赖包",github:"https://github.com/niklasvh/html2canvas/"},CryptoJS:{url:"https://avuejs.com/cdn/CryptoJS.js",title:"七牛云图片上传,需引入CryptoJS"},hljs:{url:"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js",title:"需引入hljs框架包",github:"https://github.com/highlightjs/highlight.js"},"file-saver":{url:"https://cdn.staticfile.org/FileSaver.js/2014-11-29/FileSaver.min.js",title:"需引入文件操作包",github:"https://github.com/eligrey/FileSaver.js"},xlsx:{url:"https://cdn.staticfile.org/xlsx/0.18.2/xlsx.full.min.js",title:"需引入excel操作包",github:"https://github.com/protobi/js-xlsx"},mock:{url:"https://cdn.staticfile.org/Mock.js/1.0.1-beta3/mock-min.js",title:"需要引入mock模拟数据包",github:"https://github.com/Colingo/mock"}},packages$1=(()=>({logs:function(t){const s=list[t],n=core.createLogger(t);n.warning(s.title),n.warning(`CDN:${s.url||"-"}`),n.warning(`GITHUB:${s.github||"-"}`)}}))(),init={mixins:[slot],props:{defaults:{type:Object,default(){return{}}},option:{type:Object,required:!0,default:()=>({})}},watch:{defaults:{handler(t){this.objectOption=t},deep:!0},objectOption:{handler(t){this.$emit("update:defaults",t)},deep:!0},propOption:{handler(t){const s={};t.forEach(n=>{s[n.prop]=n}),this.$set(this,"objectOption",s)},deep:!0},option:{handler(){this.init(!1)},deep:!0}},data(){return{DIC:{},cascaderDIC:{},tableOption:{},isMobile:"",objectOption:{}}},created(){this.init()},computed:{resultOption(){return Object.assign(deepClone(this.tableOption),{column:this.propOption})},rowKey(){return this.tableOption.rowKey||DIC_PROPS.rowKey},formRules(){const t={};return this.propOption.forEach(s=>{s.rules&&s.display!==!1&&(t[s.prop]=s.rules)}),t},isMediumSize(){return this.controlSize},controlSize(){return this.tableOption.size||this.$AVUE.size}},methods:{init(t){this.tableOption=this.option,this.getIsMobile(),this.handleLocalDic(),t!==!1&&this.handleLoadDic()},dicInit(t){t==="cascader"?this.handleLoadCascaderDic():this.handleLoadDic()},getIsMobile(){this.isMobile=document.body.clientWidth<=768},updateDic(t,s){const n=this.findObject(this.propOption,t);core.isBlank(s)&&core.isBlank(t)?this.handleLoadDic():core.isBlank(s)&&!core.isBlank(n.dicUrl)?sendDic({column:n}).then(r=>{this.$set(this.DIC,t,r)}):this.$set(this.DIC,t,s)},handleSetDic(t,s={}){Object.keys(s).forEach(n=>{this.$set(t,n,s[n])})},handleLocalDic(){this.handleSetDic(this.DIC,loadLocalDic(this.resultOption))},handleLoadDic(){loadDic(this.resultOption).then(t=>this.handleSetDic(this.DIC,t))},handleLoadCascaderDic(){loadCascaderDic(this.propOption,this.data).then(t=>this.handleSetDic(this.cascaderDIC,t))}}};var render$1V=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-crud avue-crud--card"},[t.tableOption.title?n(t.tableOption.titleSize||"h2",{tag:"Component",style:t.tableOption.titleStyle},[t._v(" "+t._s(t.tableOption.title)+" ")]):t._e(),n("HeaderSearch",{ref:"headerSearch",scopedSlots:t._u([{key:"search",fn:function(r){return[t._t("search",null,null,r)]}},{key:"searchMenu",fn:function(r){return[t._t("searchMenu",null,null,r)]}},t._l(t.searchSlot,function(r){return{key:r,fn:function(a){return[t._t(r,null,null,a)]}}})],null,!0)}),t.optVal(t.tableOption.header,!0)?n("HeaderMenu",{ref:"headerMenu",scopedSlots:t._u([{key:"menuLeft",fn:function(r){return[t._t("menuLeft",null,null,r)]}},{key:"menuRight",fn:function(r){return[t._t("menuRight",null,null,r)]}}],null,!0)}):t._e(),t.optVal(t.tableOption.tip,t.config.tip)&&t.tableOption.selection?n("ElTag",{staticClass:"avue-crud__tip"},[n("span",{staticClass:"avue-crud__tip-name"},[t._v(" 当前表格已选择 "),n("span",{staticClass:"avue-crud__tip-count"},[t._v(t._s(t.selectLen))]),t._v(" 项 ")]),t.optVal(t.tableOption.selectClearBtn,t.config.selectClearBtn)&&t.tableOption.selection?n("ElButton",{directives:[{name:"permission",rawName:"v-permission",value:t.getPermission("selectClearBtn"),expression:"getPermission('selectClearBtn')"}],attrs:{type:"text",size:"small"},on:{click:t.selectClear}},[t._v(" 清 空 ")]):t._e(),t._t("tip")],2):t._e(),t._t("header"),n("ElForm",{ref:"cellForm",attrs:{model:t.cellForm,"show-message":!1},on:{validate:t.handleValidate}},[n("ElTable",{directives:[{name:"loading",rawName:"v-loading",value:t.tableLoading,expression:"tableLoading"}],key:t.reload,ref:"table",class:{"avue-crud--indeterminate":t.optVal(t.tableOption.indeterminate,!1)},attrs:{data:t.cellForm.list,"row-key":t.rowKey,size:t.$AVUE.tableSize||t.controlSize,lazy:t.optVal(t.tableOption.lazy,!1),load:t.treeLoad,"tree-props":t.treeProps,"expand-row-keys":t.tableOption.expandRowKeys,"default-expand-all":t.tableOption.defaultExpandAll,"highlight-current-row":t.tableOption.highlightCurrentRow,"show-summary":t.tableOption.showSummary,"summary-method":t.tableSummaryMethod,"span-method":t.tableSpanMethod,stripe:t.tableOption.stripe,"show-header":t.tableOption.showHeader,"default-sort":t.tableOption.defaultSort,"row-class-name":t.rowClassName,"cell-class-name":t.cellClassName,"row-style":t.rowStyle,"cell-style":t.cellStyle,fit:t.tableOption.fit,"header-cell-class-name":t.headerCellClassName,"max-height":t.isAutoHeight?t.tableHeight:t.tableOption.maxHeight,height:t.tableHeight,width:t.setPx(t.tableOption.width,t.config.width),border:t.tableOption.border},on:{"current-change":t.currentRowChange,"expand-change":t.expandChange,"header-dragend":t.headerDragend,"row-click":t.rowClick,"row-dblclick":t.rowDblclick,"cell-mouse-enter":t.cellMouseEnter,"cell-mouse-leave":t.cellMouseLeave,"cell-click":t.cellClick,"header-click":t.headerClick,"row-contextmenu":t.rowContextmenu,"header-contextmenu":t.headerContextmenu,"cell-dblclick":t.cellDblclick,"filter-change":t.filterChange,"selection-change":t.selectionChange,select:t.select,"select-all":t.selectAll,"sort-change":t.sortChange},scopedSlots:t._u([{key:"empty",fn:function(){return[t.$slots.empty?t._t("empty"):n("ElEmpty",{staticClass:"avue-crud__empty",attrs:{"image-size":100,description:t.tableOption.emptyText}})]},proxy:!0}],null,!0)},[n("Column",{attrs:{"column-option":t.columnOption},scopedSlots:t._u([{key:"header",fn:function(){return[n("ColumnDefault",{ref:"columnDefault",scopedSlots:t._u([{key:"expand",fn:function(r){var a=r.row,o=r.index;return[t._t("expand",null,{row:a,index:o})]}}],null,!0)})]},proxy:!0},t._l(t.mainSlot,function(r){return{key:r,fn:function(a){return[t._t(r,null,null,a)]}}}),{key:"footer",fn:function(){return[n("ColumnMenu",{scopedSlots:t._u([{key:"menu",fn:function(r){return[t._t("menu",null,null,r)]}},{key:"menuBtn",fn:function(r){return[t._t("menuBtn",null,null,r)]}}],null,!0)})]},proxy:!0}],null,!0)})],1)],1),t._t("footer"),n("TablePage",{ref:"tablePage"}),n("FyDialogForm",{ref:"dialogForm",scopedSlots:t._u([t._l(t.formSlot,function(r){return{key:r,fn:function(a){return[t._t(r,null,null,a)]}}}),{key:"menuForm",fn:function(r){return[t._t("menuForm",null,null,r)]}}],null,!0)}),n("DialogColumn",{ref:"dialogColumn"}),n("DialogExcel",{ref:"dialogExcel"}),n("DialogFilter",{ref:"dialogFilter"})],2)},staticRenderFns$1V=[];const FyCurd_vue_vue_type_style_index_0_lang="",__vue2_script$1_={name:"FyCurd",directives:{permission},mixins:[init],provide(){return{crud:this}},props:{spanMethod:Function,summaryMethod:Function,rowStyle:Function,cellStyle:Function,beforeClose:Function,beforeOpen:Function,rowClassName:Function,cellClassName:Function,headerCellClassName:Function,uploadBefore:Function,uploadAfter:Function,uploadDelete:Function,uploadPreview:Function,uploadError:Function,uploadExceed:Function,permission:{type:[Function,Object],default:()=>({})},value:{type:Object,default:()=>({})},search:{type:Object,default(){return{}}},page:{type:Object,default(){return{}}},tableLoading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},data:{type:Array,required:!0,default:()=>[]}},data(){return{reload:Math.random(),cellForm:{list:[]},config:config$1,list:[],listError:{},tableForm:{},tableHeight:void 0,tableIndex:-1,tableSelect:[],sumsList:{},cascaderIndexList:[],cascaderDicList:{},cascaderFormList:{},btnDisabledList:{},btnDisabled:!1,default:{}}},computed:{isHeightAuto(){return this.tableOption.height==="auto"},isSortable(){return this.tableOption.sortable},isRowSort(){return this.tableOption.rowSort},isColumnSort(){return this.tableOption.columnSort},rowParentKey(){return this.option.rowParentKey||DIC_PROPS.rowParentKey},childrenKey(){return this.treeProps.children||DIC_PROPS.children},hasChildrenKey(){return this.treeProps.hasChildren||DIC_PROPS.hasChildren},treeProps(){return this.tableOption.treeProps||{}},isAutoHeight(){return this.tableOption.height==="auto"},formSlot(){return this.getSlotList(["Error","Label","Type","Form"],this.$scopedSlots,this.propOption)},searchSlot(){return this.getSlotList(["Search"],this.$scopedSlots,this.propOption)},mainSlot(){const t=[];return this.propOption.forEach(s=>{this.$scopedSlots[s.prop]&&t.push(s.prop)}),this.getSlotList(["Header","Form"],this.$scopedSlots,this.propOption).concat(t)},calcHeight(){return(this.tableOption.calcHeight||0)+this.$AVUE.calcHeight},propOption(){let t=[];function s(n=[]){Array.isArray(n)&&n.forEach(r=>{Array.isArray(r.children)?s(r.children):t.push(r)})}return s(this.columnOption),t=calcCascader(t),t},isShowSummary(){return this.option.showSummary},isHeader(){let t=!1;return this.columnOption.forEach(s=>{s.children&&(t=!0)}),t},isTree(){let t=!1;return this.data.forEach(s=>{s.children&&(t=!0)}),t},isCard(){return this.option.card?"always":"never"},expandLevel(){return this.parentOption.expandLevel||0},expandAll(){return this.parentOption.expandAll||!1},parentOption(){return this.tableOption||{}},columnOption(){return this.tableOption.column||[]},sumColumnList(){return this.tableOption.sumColumnList||[]},selectLen(){return this.tableSelect?this.tableSelect.length:0}},watch:{value:{handler(){this.tableForm=this.value},immediate:!0,deep:!0},list:{handler(){this.cellForm.list=this.list},deep:!0},data:{handler(){this.dataInit()},deep:!0}},mounted(){this.dataInit(),this.getTableHeight(),this.refreshTable()},methods:{setPx,optVal,handleValidate(t,s,n){this.listError[t]||this.$set(this.listError,t,{valid:!1,msg:""}),this.listError[t].valid=!s,this.listError[t].msg=n},getPermission(t,s,n){return typeof this.permission=="function"?this.permission(t,s,n):core.isBlank(this.permission[t])?!0:this.permission[t]},getTableHeight(){this.isAutoHeight?this.$nextTick(()=>{const t=this.$refs.table,s=this.$refs.tablePage;if(!t)return;const n=t.$el,r=s.$el.offsetHeight||20;this.tableHeight=document.documentElement.clientHeight-n.offsetTop-r-this.calcHeight}):this.tableHeight=this.tableOption.height},doLayout(){this.$refs.table.doLayout()},refreshTable(t){this.reload=Math.random(),this.$nextTick(()=>{t&&t()})},treeLoad(t,s,n){this.$emit("tree-load",t,s,r=>{t.children=r,n(r)})},menuIcon(t){return optVal(this.tableOption[`${t}Text`],translate(`crud.${t}`))},getBtnIcon(t){const s=`${t}Icon`;return this.tableOption[s]||config$1[s]},validateField(t){return this.$refs.dialogForm.$refs.tableForm.validateField(t)},selectClear(){this.$emit("selection-clear",deepClone(this.tableSelect)),this.$refs.table.clearSelection()},toggleRowSelection(t,s){this.$refs.table.toggleRowSelection(t,s)},toggleRowExpansion(t,s){this.$refs.table.toggleRowExpansion(t,s)},setCurrentRow(t){this.$refs.table.setCurrentRow(t)},dataInit(){this.list=this.data,this.list.forEach((t,s)=>{t.$cellEdit&&!this.cascaderFormList[s]&&(this.cascaderFormList[s]=deepClone(t)),this.$set(t,"$cellEdit",t.$cellEdit||!1),this.$set(t,"$index",s)})},headerDragend(t,s,n,r){this.objectOption[n.property]&&this.$set(this.objectOption[n.property],"width",t),this.$emit("header-dragend",t,s,n,r)},headerSort(t,s){const n=this.columnOption,r=n.splice(t,1)[0];n.splice(s,0,r),this.refreshTable()},clearFilter(t){this.$refs.table.clearFilter(t)},expandChange(t,s){this.$emit("expand-change",t,s)},currentRowChange(t,s){this.$emit("current-row-change",t,s)},refreshChange(){this.$emit("refresh-change")},toggleSelection(t){t?t.forEach(s=>{this.$refs.table.toggleRowSelection(s)}):this.$refs.table.clearSelection()},selectionChange(t){this.tableSelect=t,this.$emit("selection-change",this.tableSelect)},select(t,s){this.$emit("select",t,s)},selectAll(t){this.$emit("select-all",t)},filterChange(t){this.$emit("filter-change",t)},sortChange(t){this.$emit("sort-change",t)},rowDblclick(t,s){this.$emit("row-dblclick",t,s)},rowClick(t,s,n){this.$emit("row-click",t,s,n)},clearSort(){this.$refs.table.clearSort()},cellMouseEnter(t,s,n,r){this.$emit("cell-mouse-enter",t,s,n,r)},cellMouseLeave(t,s,n,r){this.$emit("cell-mouse-leave",t,s,n,r)},cellClick(t,s,n,r){this.$emit("cell-click",t,s,n,r)},headerClick(t,s){this.$emit("header-click",t,s)},rowContextmenu(t,s,n){this.$emit("row-contextmenu",t,s,n)},headerContextmenu(t,s){this.$emit("header-contextmenu",t,s)},cellDblclick(t,s,n,r){this.$emit("cell-dblclick",t,s,n,r)},rowCellAdd(t={}){const s=this.list.length,n=formInitVal(this.propOption).tableForm;t=deepClone(Object.assign({$cellEdit:!0,$index:s},n,t)),this.list.push(t)},rowCancel(t,s){core.isBlank(t[this.rowKey])?(this.list.splice(s,1),delete this.cascaderDIC[s]):(this.cascaderFormList[s].$cellEdit=!1,this.$set(this.cascaderDIC,s,this.cascaderDicList[s]),this.$set(this.list,s,this.cascaderFormList[s])),delete this.cascaderDicList[s],delete this.cascaderFormList[s],this.cascaderIndexList.splice(this.cascaderIndexList.indexOf(s),1)},rowCell(t,s){t.$cellEdit?this.rowCellUpdate(t,s):this.rowCellEdit(t,s)},rowCellUpdate(t,s){t=deepClone(t);const n=this.validateCellField(s),r=()=>{this.btnDisabledList[s]=!1,this.btnDisabled=!1,this.list[s].$cellEdit=!1,this.cascaderIndexList.splice(this.cascaderIndexList.indexOf(s),1),delete this.cascaderFormList[s]},a=()=>{this.btnDisabledList[s]=!1,this.btnDisabled=!1};n&&(this.btnDisabledList[s]=!0,this.btnDisabled=!0,core.isBlank(t[this.rowKey])?this.$emit("row-save",t,r,a):this.$emit("row-update",t,s,r,a))},rowCellEdit(t,s){t.$cellEdit=!0,this.cascaderFormList[s]=deepClone(t),this.cascaderDicList[s]=deepClone(this.cascaderDIC[s])},validateCellForm(){return new Promise(t=>{this.$refs.cellForm.validate((s,n)=>{t(n)})})},validateCellField(t){let s=!0;for(const n of this.$refs.cellForm.fields)if(n.prop.split(".")[1]==t&&this.$refs.cellForm.validateField(n.prop,r=>{r&&(s=!1)}),!s)break;return s},rowAdd(){this.$refs.dialogForm.show("add")},rowSave(){return this.$refs.dialogForm.$refs.tableForm.submit()},rowUpdate(){return this.$refs.dialogForm.$refs.tableForm.submit()},closeDialog(){return this.$refs.dialogForm.closeDialog()},getPropRef(t){return this.$refs.dialogForm.$refs.tableForm.getPropRef(t)},setVal(){this.$emit("input",this.tableForm),this.$emit("change",this.tableForm)},rowEdit(t,s){this.tableForm=deepClone(t),this.tableIndex=s,this.setVal(),this.$refs.dialogForm.show("edit")},rowCopy(t){this.tableForm=deepClone(t),delete this.tableForm[this.rowKey],this.tableIndex=-1,this.setVal(),this.$refs.dialogForm.show("add")},rowView(t,s){this.tableForm=deepClone(t),this.tableIndex=s,this.setVal(),this.$refs.dialogForm.show("view")},rowDel(t,s){this.$emit("row-del",t,s,()=>{const{parentList:n,index:r}=this.findData(t[this.rowKey]);n&&n.splice(r,1)})},tableSpanMethod(t){if(typeof this.spanMethod=="function")return this.spanMethod(t)},tableSummaryMethod(t){const s={};if(typeof this.summaryMethod=="function")return this.summaryMethod(t);const{columns:n,data:r}=t,a=[];return n.length>0&&n.forEach((o,l)=>{const c=this.sumColumnList.find(u=>u.name===o.property);if(c){const u=c.decimals||2,d=c.label||"";switch(c.type){case"count":a[l]=d+r.length;break;case"avg":const p=r.map(_=>Number(_[o.property]));let h=1;a[l]=p.reduce((_,x)=>{const b=Number(x);return isNaN(b)?_:(_*(h-1)+x)/h++},0),a[l]=d+a[l].toFixed(u);break;case"sum":const m=r.map(_=>Number(_[o.property]));a[l]=m.reduce((_,x)=>{const b=Number(x);return isNaN(b)?_:_+x},0),a[l]=d+a[l].toFixed(u);break}s[o.property]=a[l]}else a[l]=""}),this.sumsList=s,a},tableDrop(t,s,n){if(this.isSortable!==!0){if(t==="row"&&!this.isRowSort)return;if(t==="column"&&!this.isColumnSort)return}if(!window.Sortable){packages$1.logs("Sortable");return}window.Sortable.create(s,{ghostClass:config$1.ghostClass,chosenClass:config$1.ghostClass,animation:500,delay:0,onEnd:r=>n(r)})},findData(t){let s={};const n=(r,a)=>{r.forEach((o,l)=>{o[this.rowKey]===t&&(s={item:o,index:l,parentList:r,parent:a}),o[this.childrenKey]&&n(o[this.childrenKey],o)})};return n(this.list),s}}},__cssModules$1_={};var __component__$1_=normalizeComponent(__vue2_script$1_,render$1V,staticRenderFns$1V,!1,__vue2_injectStyles$1_,null,null,null);function __vue2_injectStyles$1_(t){for(let s in __cssModules$1_)this[s]=__cssModules$1_[s]}const FyCurd=function(){return __component__$1_.exports}();var render$1U=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-date"},[n("ElDatePicker",{attrs:{type:t.type,"popper-class":t.popperClass,size:t.size,editable:t.editable,"unlink-panels":t.unlinkPanels,readonly:t.readonly,"default-value":t.defaultValue,"default-time":t.defaultTime,"range-separator":t.rangeSeparator,"start-placeholder":t.startPlaceholder||"开始","end-placeholder":t.endPlaceholder||"结束",format:t.format,clearable:t.clearableVal,"picker-options":t.pickerOptions,"value-format":t.valueFormat,placeholder:t.placeholder,disabled:t.disabled},on:{blur:t.handleBlur,focus:t.handleFocus},nativeOn:{click:function(r){return t.handleClick.apply(null,arguments)}},model:{value:t.text,callback:function(r){t.text=r},expression:"text"}})],1)},staticRenderFns$1U=[];const FyDate_vue_vue_type_style_index_0_lang="",__vue2_script$1Z={name:"FyDate",mixins:[props,event],props:{editable:Boolean,unlinkPanels:Boolean,startPlaceholder:String,endPlaceholder:String,rangeSeparator:String,defaultValue:[String,Array],defaultTime:[String,Array],pickerOptions:Object,type:{type:String,default:"date"},valueFormat:String,format:String}},__cssModules$1Z={};var __component__$1Z=normalizeComponent(__vue2_script$1Z,render$1U,staticRenderFns$1U,!1,__vue2_injectStyles$1Z,null,null,null);function __vue2_injectStyles$1Z(t){for(let s in __cssModules$1Z)this[s]=__cssModules$1Z[s]}const FyDate=function(){return __component__$1Z.exports}();var render$1T=function(){var t=this,s=t.$createElement,n=t._self._c||s;return t.boxVisible?n(t.dialogType,t._b({tag:"Component",class:{"dialog-form":!t.isView},attrs:{"lock-scroll":"","show-full-screen":"","destroy-on-close":t.crud.tableOption.dialogDestroy,"wrapper-closable":t.crud.tableOption.dialogClickModal,direction:t.direction,"custom-class":t.crud.tableOption.dialogCustomClass,"modal-append-to-body":"","append-to-body":"",top:t.dialogTop,title:t.dialogTitle,"close-on-press-escape":t.crud.tableOption.dialogEscape,"close-on-click-modal":t.optVal(t.crud.tableOption.dialogClickModal,!1),modal:t.crud.tableOption.dialogModal,"show-close":t.crud.tableOption.dialogCloseBtn,visible:t.boxVisible,"before-close":t.hide},on:{"update:visible":function(r){t.boxVisible=r}}},"Component",t.params,!1),[n("FyForm",t._b({ref:"tableForm",attrs:{status:t.disabled,option:t.option},on:{"update:status":function(r){t.disabled=r},change:t.handleChange,submit:t.handleSubmit,"reset-change":t.hide,"tab-click":t.handleTabClick,error:t.handleError},scopedSlots:t._u([t._l(t.crud.formSlot,function(r){return{key:t.getSlotName(r),fn:function(a){return[t._t(r,null,null,Object.assign(a,{type:t.boxType}))]}}})],null,!0),model:{value:t.crud.tableForm,callback:function(r){t.$set(t.crud,"tableForm",r)},expression:"crud.tableForm"}},"FyForm",t.uploadFun({},t.crud),!1)),n("span",{staticClass:"avue-dialog__footer",class:`avue-dialog__footer--${t.dialogMenuPosition}`},[t.optVal(t.option.submitBtn,!0)&&!t.isView?n("ElButton",{attrs:{loading:t.disabled,size:t.crud.controlSize,icon:t.option.submitIcon,type:"primary"},on:{click:t.submit}},[t._v(t._s(t.option.submitText))]):t._e(),t.optVal(t.option.emptyBtn,!0)&&!t.isView?n("ElButton",{attrs:{disabled:t.disabled,size:t.crud.controlSize,icon:t.option.emptyIcon},on:{click:t.reset}},[t._v(t._s(t.option.emptyText))]):t._e(),t._t("menuForm",null,{disabled:t.disabled,size:t.crud.controlSize,type:t.boxType})],2)],1):t._e()},staticRenderFns$1T=[];const FyDialogForm_vue_vue_type_style_index_0_lang="",__vue2_script$1Y={name:"FyDialogForm",inject:["crud"],props:{value:{type:Object,default:()=>({})}},data(){return{disabled:!1,boxType:"",fullscreen:!1,size:null,boxVisible:!1}},computed:{option(){const t=deepClone(this.crud.tableOption);return t.boxType=this.boxType,t.column=deepClone(this.crud.propOption),t.menuBtn=!1,this.isAdd?(t.submitBtn=t.saveBtn,t.submitText=this.crud.menuIcon("saveBtn"),t.submitIcon=this.crud.getBtnIcon("saveBtn")):this.isEdit?(t.submitBtn=t.updateBtn,t.submitText=this.crud.menuIcon("updateBtn"),t.submitIcon=this.crud.getBtnIcon("updateBtn")):this.isView&&(t.detail=!0),t.emptyBtn=t.cancelBtn,t.emptyText=this.crud.menuIcon("cancelBtn"),t.emptyIcon=this.crud.getBtnIcon("cancelBtn"),this.crud.isGroup||(t.dicFlag=!1,t.dicData=this.crud.DIC),core.isBlank(t.dicFlag)||t.column.forEach(s=>{s.boxType=this.boxType,s.dicFlag=s.dicFlag||t.dicFlag}),t},isView(){return this.boxType==="view"},isAdd(){return this.boxType==="add"},isEdit(){return this.boxType==="edit"},direction(){return this.crud.tableOption.dialogDirection},width(){return optVal(`${this.crud.tableOption.dialogWidth}`,this.crud.isMobile?"100%":`${config$1.dialogWidth}`)},dialogType(){return this.isDrawer?"ElDrawer":"ElementDialog"},dialogTop(){return!this.isDrawer&&!this.fullscreen?this.crud.tableOption.dialogTop:"0"},isDrawer(){return this.crud.tableOption.dialogType==="drawer"},params(){return this.isDrawer?{size:this.fullscreen?"100%":this.width,direction:this.crud.tableOption.dialogDirection}:{width:this.width,fullscreen:this.fullscreen}},dialogTitle(){const t=`${this.boxType}`;if(!core.isBlank(this.boxType)){const s={tipStartTitle:"当前表格已选择",tipEndTitle:"项",editTitle:"编 辑",copyTitle:"复 制",addTitle:"新 增",viewTitle:"查 看",filterTitle:"过滤条件",showTitle:"列显隐"};return this.crud.tableOption[`${t}Title`]||s[`${t}Title`]}return""},dialogMenuPosition(){return this.crud.option.dialogMenuPosition||"right"}},methods:{optVal,uploadFun,submit(){this.$refs.tableForm.submit()},reset(){this.$refs.tableForm.resetForm(!1)},getSlotName(t){return t.replace("Form","")},initFun(){["clearValidate","validate","resetForm","validateField"].forEach(t=>{this.crud[t]=this.$refs.tableForm[t]})},handleChange(){this.crud.setVal()},handleTabClick(t,s){this.crud.$emit("tab-click",t,s)},handleFullScreen(){this.isDrawer&&(core.isBlank(this.size)?this.size="100%":this.size=""),this.fullscreen=!this.fullscreen},handleError(t){this.crud.$emit("error",t)},handleSubmit(t,s){this.isAdd?this.rowSave(s):this.isEdit&&this.rowUpdate(s)},rowSave(t){this.crud.$emit("row-save",filterParams(this.crud.tableForm,["$"]),this.closeDialog,t)},rowUpdate(t){this.crud.$emit("row-update",filterParams(this.crud.tableForm,["$"]),this.crud.tableIndex,this.closeDialog,t)},closeDialog(t){t=deepClone(t),t&&(()=>{if(this.isEdit){const{parentList:n,index:r}=this.crud.findData(t[this.crud.rowKey]);if(n){const a=n.splice(r,1)[0];t[this.crud.childrenKey]=a[this.crud.childrenKey],n.splice(r,0,t)}}else if(this.isAdd){const{item:n}=this.crud.findData(t[this.crud.rowParentKey]);n?(n[this.crud.childrenKey]||this.$set(n,this.crud.childrenKey,[]),this.crud.tableOption.lazy&&this.$set(n,this.crud.hasChildrenKey,!0),n[this.crud.childrenKey].push(t)):this.crud.list.push(t)}})(),this.hide()},hide(t){const s=()=>{t&&t(),this.crud.tableIndex=-1,this.crud.tableForm={},this.crud.setVal(),this.boxVisible=!1};typeof this.crud.beforeClose=="function"?this.crud.beforeClose(s,this.boxType):s()},show(t){this.boxType=t;const s=()=>{this.fullscreen=this.crud.tableOption.dialogFullscreen,this.boxVisible=!0,this.$nextTick(()=>{this.initFun()})};typeof this.crud.beforeOpen=="function"?this.crud.beforeOpen(s,this.boxType):s()}}},__cssModules$1Y={};var __component__$1Y=normalizeComponent(__vue2_script$1Y,render$1T,staticRenderFns$1T,!1,__vue2_injectStyles$1Y,null,null,null);function __vue2_injectStyles$1Y(t){for(let s in __cssModules$1Y)this[s]=__cssModules$1Y[s]}const FyDialogForm=function(){return __component__$1Y.exports}();var render$1S=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{class:{"avue-draggable__active":(t.active||t.overActive)&&!t.readonly,"avue-draggable__move":t.moveActive,"avue-draggable__click":t.disabled},style:t.styleName,on:{mousedown:function(r){return r.stopPropagation(),t.handleMove.apply(null,arguments)},mouseover:function(r){return r.stopPropagation(),t.handleOver.apply(null,arguments)},mouseout:function(r){return r.stopPropagation(),t.handleOut.apply(null,arguments)}}},[n("ElInput",{ref:"input",staticClass:"avue-draggable__focus",model:{value:t.value,callback:function(r){t.value=r},expression:"value"}}),n("div",{ref:"wrapper",staticClass:"avue-draggable__wrapper"},[(t.active||t.overActive||t.moveActive)&&!t.readonly?[n("div",{staticClass:"avue-draggable__line['left'])",style:t.styleLineName}),n("div",{staticClass:"avue-draggable__line['top'])",style:t.styleLineName}),n("div",{staticClass:"avue-draggable__line['label'])",style:t.styleLabelName},[t._v(" "+t._s(t.baseLeft)+","+t._s(t.baseTop)+" ")])]:t._e(),t.readonly?t._e():[t._l(t.rangeList,function(r,a){return[t.active?n("div",{key:a,staticClass:"avue-draggable__range[item.classname])",style:[t.styleRangeName,t.getRangeStyle(r.classname)],on:{mousedown:function(o){return o.stopPropagation(),t.rangeMove(o,r.classname)}}}):t._e()]})],n("div",{directives:[{name:"show",rawName:"v-show",value:t.active||t.overActive,expression:"active || overActive"}],staticClass:"avue-draggable__menu",style:t.styleMenuName},[t._t("menu",null,{zIndex:t.zIndex,index:t.index})],2),n("div",{ref:"item",staticClass:"avue-draggable__item"},[t._t("default")],2),!t.disabled&&t.mask?n("div",{staticClass:"avue-draggable__mask"}):t._e()],2)],1)},staticRenderFns$1S=[];const FyDraggable_vue_vue_type_style_index_0_lang="",__vue2_script$1X={name:"FyDraggable",props:{index:{type:[String,Number]},mask:{type:Boolean,default:!0},scale:{type:Number,default:1},readonly:{type:Boolean,default:!1},resize:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},lock:{type:Boolean,default:!1},step:{type:Number,default:1},zIndex:{type:[Number,String],default:1},left:{type:Number,default:0},top:{type:Number,default:0},width:{type:Number},height:{type:Number}},data(){return{first:!0,value:"",baseWidth:0,baseHeight:0,baseLeft:0,baseTop:0,children:{},moveActive:!1,overActive:!1,rangeActive:!1,active:!1,keyDown:null,rangeList:[{classname:"left"},{classname:"right"},{classname:"top"},{classname:"bottom"},{classname:"top-left"},{classname:"top-right"},{classname:"bottom-left"},{classname:"bottom-right"}]}},computed:{scaleVal(){return this.scale},styleMenuName(){return{transformOrigin:"0 0",transform:`scale(${this.scaleVal})`}},styleLineName(){return{borderWidth:setPx(this.scaleVal)}},styleRangeName(){const t=10*this.scaleVal;return{width:setPx(t),height:setPx(t)}},styleLabelName(){return{fontSize:setPx(18*this.scaleVal)}},styleName(){return Object.assign((()=>this.active?Object.assign({zIndex:9999},this.styleLineName):{zIndex:this.zIndex})(),{top:setPx(this.baseTop),left:setPx(this.baseLeft),width:setPx(this.baseWidth),height:setPx(this.baseHeight)})}},watch:{active(t){t?this.handleKeydown():document.onkeydown=this.keyDown},width(t){this.baseWidth=getFixed(t)||this.children.offsetWidth},height(t){this.baseHeight=getFixed(t)||this.children.offsetHeight},left(t){this.baseLeft=getFixed(t)},top(t){this.baseTop=getFixed(t)},baseWidth(t){this.$refs.wrapper.style.width=setPx(t),this.resize&&this.children.style&&(this.children.style.width=setPx(t))},baseHeight(t){this.$refs.wrapper.style.height=setPx(t),this.resize&&this.children.style&&(this.children.style.height=setPx(t))},baseLeft(t,s){this.first||this.setMove(t-s,0)},baseTop(t,s){this.first||this.setMove(0,t-s)}},mounted(){this.init()},methods:{init(){this.children=this.$refs.item.firstChild,this.baseWidth=getFixed(this.width)||this.children.offsetWidth,this.baseHeight=getFixed(this.height)||this.children.offsetHeight,this.baseLeft=getFixed(this.left),this.baseTop=getFixed(this.top),this.keyDown=document.onkeydown,this.$nextTick(()=>{this.first=!1})},setMove(t,s){this.$emit("move",{index:this.index,left:t,top:s})},setLeft(t){this.baseLeft=t},setTop(t){this.baseTop=t},getRangeStyle(t){const s=10*this.scaleVal/2,n={};return t.split("-").forEach(a=>{n[a]=setPx(-s)}),n},setOverActive(t){this.overActive=t},setActive(t){this.active=t},rangeMove(t,s){if(this.disabled||this.lock)return;let n,r,a,o,l,c;this.rangeActive=!0,this.handleMouseDown();let u=t.clientX,d=t.clientY;document.onmousemove=p=>{this.moveActive=!0,s==="right"?(n=!0,r=!1):s==="left"?(n=!0,a=!0,l=!0,r=!1):s==="top"?(n=!1,r=!0,o=!0,c=!0):s==="bottom"?(n=!1,r=!0):s==="bottom-right"?(n=!0,r=!0):s==="bottom-left"?(n=!0,r=!0,a=!0,l=!0):s==="top-right"?(n=!0,r=!0,o=!0,c=!0):s==="top-left"&&(n=!0,r=!0,a=!0,l=!0,o=!0,c=!0);const h=p.clientX-u,m=p.clientY-d;if(u=p.clientX,d=p.clientY,n){let _=h*this.step;l&&(_=-_),a&&(this.baseLeft=getFixed(this.baseLeft-_)),this.baseWidth=getFixed(this.baseWidth+_)}if(r){let _=m*this.step;c&&(_=-_),o&&(this.baseTop=getFixed(this.baseTop-_)),this.baseHeight=getFixed(this.baseHeight+_)}},this.handleClear()},handleOut(){this.overActive=!1,this.$emit("out",{index:this.index,width:this.baseWidth,height:this.baseHeight,left:this.baseLeft,top:this.baseTop})},handleOver(){this.disabled||(this.overActive=!0,this.$emit("over",{index:this.index,width:this.baseWidth,height:this.baseHeight,left:this.baseLeft,top:this.baseTop}))},handleMove(t){if(this.disabled||this.lock)return;setTimeout(()=>{this.$refs.input.focus()}),this.active=!0,this.handleMouseDown();let s=t.clientX,n=t.clientY;document.onmousemove=r=>{const a=r.clientX-s,o=r.clientY-n;s=r.clientX,n=r.clientY,this.baseLeft=getFixed(this.baseLeft+a*this.step),this.baseTop=getFixed(this.baseTop+o*this.step)},this.handleClear()},handleClear(){document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null,this.handleMouseUp()}},handleKeydown(){document.onkeydown=t=>{const s=t||window.event||arguments.callee.caller.arguments[0],n=1*this.step;this.$refs.input.focused&&(s&&s.keyCode==38?this.baseTop=getFixed(this.baseTop-n):s&&s.keyCode==37?this.baseLeft=getFixed(this.baseLeft-n):s&&s.keyCode==40?this.baseTop=getFixed(this.baseTop+n):s&&s.keyCode==39&&(this.baseLeft=getFixed(this.baseLeft+n)),t.stopPropagation(),t.preventDefault(),this.$emit("blur",{index:this.index,width:this.baseWidth,height:this.baseHeight,left:this.baseLeft,top:this.baseTop}),this.keyDown&&this.keyDown(t))}},handleMouseDown(){this.moveActive=!0,this.$emit("focus",{index:this.index,width:this.baseWidth,height:this.baseHeight,left:this.baseLeft,top:this.baseTop})},handleMouseUp(){this.moveActive=!1,this.rangeActive=!1,this.$emit("blur",{index:this.index,width:this.baseWidth,height:this.baseHeight,left:this.baseLeft,top:this.baseTop})}}},__cssModules$1X={};var __component__$1X=normalizeComponent(__vue2_script$1X,render$1S,staticRenderFns$1S,!1,__vue2_injectStyles$1X,null,null,null);function __vue2_injectStyles$1X(t){for(let s in __cssModules$1X)this[s]=__cssModules$1X[s]}const FyDraggable=function(){return __component__$1X.exports}();function _objectDestructuringEmpty(t){if(t==null)throw new TypeError("Cannot destructure undefined")}var render$1R=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{key:t.reload,staticClass:"avue-dynamic"},[t.isForm?[n("div",{staticClass:"avue-dynamic__header"},[!t.readonly&&!t.disabled&&!t.addBtn?n("ElButton",{attrs:{size:"mini",circle:"",disabled:t.disabled,type:"primary",icon:"el-icon-plus"},on:{click:t.addRow}}):t._e()],1),n("div",t._l(t.text,function(r,a){return n("div",{key:a,staticClass:"avue-dynamic__row",on:{mouseenter:function(o){return t.cellMouseenter({$index:a})},mouseleave:function(o){return t.cellMouseLeave({$index:a})}}},[!t.readonly&&!t.disabled&&!t.delBtn&&t.hoverList[a]?n("ElButton",{staticClass:"avue-dynamic__menu",attrs:{type:"danger",size:"mini",disabled:t.disabled,icon:"el-icon-delete",circle:""},on:{click:function(o){return t.delRow(r.$index)}}}):t._e(),n("FyForm",{key:a,ref:"main",refInFor:!0,attrs:{option:t.deepClone(t.option)},scopedSlots:t._u([{key:"_index",fn:function(o){return _objectDestructuringEmpty(o),n("div",{},[n("span",[t._v(t._s(r.$index+1))])])}},t._l(t.columnSlot,function(o){return{key:o,fn:function(l){return[t._t(o,null,null,Object.assign(l,{row:t.text[a]}))]}}})],null,!0),model:{value:t.text[a],callback:function(o){t.$set(t.text,a,o)},expression:"text[index]"}})],1)}),0)]:t.isCrud?n("FyCurd",{ref:"main",attrs:{option:t.option,disabled:t.disabled,data:t.text},on:{"cell-mouse-enter":t.cellMouseenter,"cell-mouse-leave":t.cellMouseLeave,"selection-change":t.handleSelectionChange,"sortable-change":t.handleSortableChange},scopedSlots:t._u([{key:"_indexHeader",fn:function(){return[!(t.addBtn||t.readonly)&&t.maxFlag?n("ElButton",{attrs:{type:"primary",size:"mini",disabled:t.disabled,icon:"el-icon-plus",circle:""},on:{click:function(r){return t.addRow()}}}):t._e()]},proxy:!0},{key:"_index",fn:function(r){return[!t.readonly&&!t.disabled&&!t.delBtn&&t.hoverList[r.row.$index]?n("ElButton",{attrs:{type:"danger",size:"mini",disabled:t.disabled,icon:"el-icon-delete",circle:""},on:{click:function(a){return t.delRow(r.row.$index)}}}):n("div",[t._v(" "+t._s(r.row.$index+1)+" ")])]}},t._l(t.columnSlot,function(r){return{key:t.getSlotName({prop:r},"F"),fn:function(a){return[t._t(r,null,null,a)]}}})],null,!0)}):t._e()],2)},staticRenderFns$1R=[];const FyDynamic_vue_vue_type_style_index_0_lang="",__vue2_script$1W={name:"FyDynamic",mixins:[props,event],props:{max:Number,columnSlot:{type:Array,default:()=>[]},children:{type:Object,default:()=>({})}},data(){return{reload:Math.random(),hoverList:[]}},computed:{textLen(){return this.text.length},maxFlag(){return this.max?this.text.length!==this.max:!0},showIndex(){return optVal(this.children.index,!0)},showType(){return this.children.type||"crud"},isForm(){return this.showType==="form"},isCrud(){return this.showType==="crud"},selectionChange(){return this.children.selectionChange},sortableChange(){return this.children.sortableChange},rowAdd(){return this.children.rowAdd},rowDel(){return this.children.rowDel},viewBtn(){return this.children.viewBtn===!1},addBtn(){return this.children.addBtn===!1},delBtn(){return this.children.delBtn===!1},valueOption(){const t={};return this.columnOption.forEach(s=>{s.value&&(t[s.prop]=s.value)}),t},rulesOption(){const t={};return this.columnOption.forEach(s=>{s.rules&&(t[s.prop]=s.rules)}),t},columnOption(){return this.children.column||[]},option(){return Object.assign({border:!0,header:!1,menu:!1,size:this.size,disabled:this.disabled,readonly:this.readonly,emptyBtn:!1,submitBtn:!1},(()=>{const t=deepClone(this.children);return delete t.column,t})(),(()=>{const t=[{label:this.children.indexLabel||"#",prop:"_index",display:this.showIndex,hide:!this.showIndex,fixed:!0,align:"center",headerAlign:"center",span:24,width:50}];return this.columnOption.forEach(s=>{t.push(Object.assign(s,{cell:optVal(s.cell,this.isCrud)}))}),{column:t}})())}},watch:{text(){this.initData()}},mounted(){this.initData()},methods:{deepClone,handleSelectionChange(t){this.selectionChange&&this.selectionChange(t)},handleSortableChange(t,s,n,r){this.sortableChange&&this.sortableChange(t,s,n,r)},cellMouseenter(t){const s=t.$index;this.mouseoverRow(s)},cellMouseLeave(t){const s=t.$index;this.mouseoutRow(s)},initData(){this.text.forEach((t,s)=>{t=Object.assign(t,{$cellEdit:!0,$index:s})})},mouseoverRow(t){this.delBtn||(this.flagList(),this.$set(this.hoverList,t,!0))},mouseoutRow(t){this.delBtn||(this.flagList(),this.$set(this.hoverList,t,!1))},flagList(){this.hoverList.forEach((t,s)=>{this.hoverList[s]=!1})},delRow(t){const s=()=>{const n=deepClone(this.text);n.splice(t,1),this.text=n,this.reload=Math.random()};typeof this.rowDel=="function"?this.rowDel(this.text[t],s):s()},addRow(){const t=(s={})=>{s=Object.assign(this.valueOption,s,{$index:this.textLen}),this.isCrud?this.$refs.main.rowCellAdd(s):this.isForm&&this.text.push(s)};typeof this.rowAdd=="function"?this.rowAdd(t):t()}}},__cssModules$1W={};var __component__$1W=normalizeComponent(__vue2_script$1W,render$1R,staticRenderFns$1R,!1,__vue2_injectStyles$1W,null,null,null);function __vue2_injectStyles$1W(t){for(let s in __cssModules$1W)this[s]=__cssModules$1W[s]}const FyDynamic=function(){return __component__$1W.exports}();var render$1Q=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-empty"},[n("div",{staticClass:"avue-empty__image",style:{height:t.setPx(t.size)}},[n("img",{attrs:{src:t.image,alt:""}})]),n("p",{staticClass:"avue-empty__desc"},[t._v(" "+t._s(t.desc)+" ")]),t._t("default")],2)},staticRenderFns$1Q=[];const FyEmpty_vue_vue_type_style_index_0_lang="",__vue2_script$1V={name:"FyEmpty",props:{size:{type:String},image:{type:String,default:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTg0IiBoZWlnaHQ9IjE1MiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjQgMzEuNjcpIj4KICAgICAgPGVsbGlwc2UgZmlsbC1vcGFjaXR5PSIuOCIgZmlsbD0iI0Y1RjVGNyIgY3g9IjY3Ljc5NyIgY3k9IjEwNi44OSIgcng9IjY3Ljc5NyIgcnk9IjEyLjY2OCIvPgogICAgICA8cGF0aCBkPSJNMTIyLjAzNCA2OS42NzRMOTguMTA5IDQwLjIyOWMtMS4xNDgtMS4zODYtMi44MjYtMi4yMjUtNC41OTMtMi4yMjVoLTUxLjQ0Yy0xLjc2NiAwLTMuNDQ0LjgzOS00LjU5MiAyLjIyNUwxMy41NiA2OS42NzR2MTUuMzgzaDEwOC40NzVWNjkuNjc0eiIgZmlsbD0iI0FFQjhDMiIvPgogICAgICA8cGF0aCBkPSJNMTAxLjUzNyA4Ni4yMTRMODAuNjMgNjEuMTAyYy0xLjAwMS0xLjIwNy0yLjUwNy0xLjg2Ny00LjA0OC0xLjg2N0gzMS43MjRjLTEuNTQgMC0zLjA0Ny42Ni00LjA0OCAxLjg2N0w2Ljc2OSA4Ni4yMTR2MTMuNzkyaDk0Ljc2OFY4Ni4yMTR6IiBmaWxsPSJ1cmwoI2xpbmVhckdyYWRpZW50LTEpIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMy41NikiLz4KICAgICAgPHBhdGggZD0iTTMzLjgzIDBoNjcuOTMzYTQgNCAwIDAgMSA0IDR2OTMuMzQ0YTQgNCAwIDAgMS00IDRIMzMuODNhNCA0IDAgMCAxLTQtNFY0YTQgNCAwIDAgMSA0LTR6IiBmaWxsPSIjRjVGNUY3Ii8+CiAgICAgIDxwYXRoIGQ9Ik00Mi42NzggOS45NTNoNTAuMjM3YTIgMiAwIDAgMSAyIDJWMzYuOTFhMiAyIDAgMCAxLTIgMkg0Mi42NzhhMiAyIDAgMCAxLTItMlYxMS45NTNhMiAyIDAgMCAxIDItMnpNNDIuOTQgNDkuNzY3aDQ5LjcxM2EyLjI2MiAyLjI2MiAwIDEgMSAwIDQuNTI0SDQyLjk0YTIuMjYyIDIuMjYyIDAgMCAxIDAtNC41MjR6TTQyLjk0IDYxLjUzaDQ5LjcxM2EyLjI2MiAyLjI2MiAwIDEgMSAwIDQuNTI1SDQyLjk0YTIuMjYyIDIuMjYyIDAgMCAxIDAtNC41MjV6TTEyMS44MTMgMTA1LjAzMmMtLjc3NSAzLjA3MS0zLjQ5NyA1LjM2LTYuNzM1IDUuMzZIMjAuNTE1Yy0zLjIzOCAwLTUuOTYtMi4yOS02LjczNC01LjM2YTcuMzA5IDcuMzA5IDAgMCAxLS4yMjItMS43OVY2OS42NzVoMjYuMzE4YzIuOTA3IDAgNS4yNSAyLjQ0OCA1LjI1IDUuNDJ2LjA0YzAgMi45NzEgMi4zNyA1LjM3IDUuMjc3IDUuMzdoMzQuNzg1YzIuOTA3IDAgNS4yNzctMi40MjEgNS4yNzctNS4zOTNWNzUuMWMwLTIuOTcyIDIuMzQzLTUuNDI2IDUuMjUtNS40MjZoMjYuMzE4djMzLjU2OWMwIC42MTctLjA3NyAxLjIxNi0uMjIxIDEuNzg5eiIgZmlsbD0iI0RDRTBFNiIvPgogICAgPC9nPgogICAgPHBhdGggZD0iTTE0OS4xMjEgMzMuMjkybC02LjgzIDIuNjVhMSAxIDAgMCAxLTEuMzE3LTEuMjNsMS45MzctNi4yMDdjLTIuNTg5LTIuOTQ0LTQuMTA5LTYuNTM0LTQuMTA5LTEwLjQwOEMxMzguODAyIDguMTAyIDE0OC45MiAwIDE2MS40MDIgMCAxNzMuODgxIDAgMTg0IDguMTAyIDE4NCAxOC4wOTdjMCA5Ljk5NS0xMC4xMTggMTguMDk3LTIyLjU5OSAxOC4wOTctNC41MjggMC04Ljc0NC0xLjA2Ni0xMi4yOC0yLjkwMnoiIGZpbGw9IiNEQ0UwRTYiLz4KICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE0OS42NSAxNS4zODMpIiBmaWxsPSIjRkZGIj4KICAgICAgPGVsbGlwc2UgY3g9IjIwLjY1NCIgY3k9IjMuMTY3IiByeD0iMi44NDkiIHJ5PSIyLjgxNSIvPgogICAgICA8cGF0aCBkPSJNNS42OTggNS42M0gwTDIuODk4LjcwNHpNOS4yNTkuNzA0aDQuOTg1VjUuNjNIOS4yNTl6Ii8+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4K"},desc:{type:String,default:"暂无数据"}},methods:{setPx}},__cssModules$1V={};var __component__$1V=normalizeComponent(__vue2_script$1V,render$1Q,staticRenderFns$1Q,!1,__vue2_injectStyles$1V,null,null,null);function __vue2_injectStyles$1V(t){for(let s in __cssModules$1V)this[s]=__cssModules$1V[s]}const FyEmpty=function(){return __component__$1V.exports}(),mock=(t,s,n,r)=>{if(!r)return;if(!window.Mock){packages$1.logs("mock");return}const o=(window.Mock||{}).Random,l={};function c({en:b}){return b?o.name(!0):o.cname()}function u({max:b,min:g,precision:y}){if(y){const C=`${o.float(g,b,y)}`,$=C.indexOf(".")+1;return Number(C.substring(0,$+y))}else return o.integer(g,b)}function d({header:b,footer:g}){let y=o.url();const C=y.indexOf("://");return b===!1?y=y.substring(C+3):y=`http://${y.substring(C+3)}`,y}function p({format:b,now:g}){return g?o.now(b):o.datetime(b)}function h({min:b,max:g}){return o.csentence(b,g)}function m(){return o.county(!0)}function _({dic:b,props:g,columnType:y,multiple:C}){const $=g.value||"value",w=b.length;if(["checkbox"].includes(y)||C){const E=u({min:1,max:w}),k=[];for(let M=0;M<E;M++){let I=!0;for(;I;){const T=u({min:0,max:w-1}),F=b[T][$];k.includes(F)||(k.push(F),I=!1)}}return k}else{const E=u({min:0,max:w-1});return b[E][$]}}function x(){Object.keys(t).forEach(b=>{const g=t[b];if(g.mock&&typeof g.mock=="object"){const y=g.mock;switch(y.dic=typeof g.dicData=="string"?s[g.dicData]:g.dicData||[],y.props=g.props||{},y.columnType=g.type,y.multiple=g.multiple,y.type){case"name":l[g.prop]=c(y);break;case"number":l[g.prop]=u(y);break;case"datetime":l[g.prop]=p(y);break;case"word":l[g.prop]=h(y);break;case"url":l[g.prop]=d(y);break;case"county":l[g.prop]=m();break;case"dic":l[g.prop]=_(y);break}}else g.mock instanceof Function&&(l[g.prop]=g.mock(n))})}return x(),l};var render$1P=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{class:["avue-form",{"avue--detail":t.isDetail}],style:{width:t.setPx(t.parentOption.formWidth,"100%")}},[n("ElForm",{ref:"form",attrs:{"status-icon":t.parentOption.statusIcon,model:t.form,"label-suffix":t.labelSuffix,size:t.$AVUE.formSize||t.controlSize,"label-position":t.parentOption.labelPosition,"label-width":t.setPx(t.parentOption.labelWidth,t.labelWidth)},nativeOn:{submit:function(r){r.preventDefault()}}},[n("ElRow",{class:{"avue-form__tabs":t.isTabs},attrs:{span:24}},[t._l(t.columnOption,function(r,a){return n("FormGroup",{key:r.prop,attrs:{tabs:t.isTabs,arrow:r.arrow,collapse:r.collapse,display:t.vaildDisplay(r),icon:r.icon,index:a,header:!t.isTabs,active:t.activeName,label:r.label},on:{change:t.handleGroupClick},scopedSlots:t._u([t.getSlotName(r,"H",t.$scopedSlots)?{key:"header",fn:function(){return[t._t(t.getSlotName(r,"H"),null,{column:r})]},proxy:!0}:null],null,!0)},[t.isTabs&&a===1?n("ElTabs",{staticClass:"avue-form__tabs",attrs:{slot:"tabs",type:t.tabsType},on:{"tab-click":t.handleTabClick},slot:"tabs",model:{value:t.activeName,callback:function(o){t.activeName=o},expression:"activeName"}},[t._l(t.columnOption,function(o,l){return[t.vaildDisplay(o)&&l!==0?n("ElTabPane",{key:l,attrs:{name:`${l}`}},[n("span",{attrs:{slot:"label"},slot:"label"},[t.getSlotName(o,"H",t.$scopedSlots)?t._t(t.getSlotName(o,"H"),null,{column:t.column}):[n("i",{class:o.icon},[t._v(" ")]),t._v(" "+t._s(o.label)+" ")]],2)]):t._e()]})],2):t._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:t.isGroupShow(r,a),expression:"isGroupShow(item, index)"}],class:["avue-form__group",{"avue-form__group--flex":r.flex===!1}]},[t._l(r.column,function(o,l){return[t.vaildDisplay(o)?n("ElCol",{key:l,class:["avue-form__row",{"avue--detail avue--detail__column":t.vaildDetail(o)},o.className],style:{paddingLeft:t.gutter,paddingRight:t.gutter},attrs:{span:t.getSpan(o),md:t.getSpan(o),sm:o.smSpan||r.smSpan||12,xs:o.xsSpan||r.xmSpan||24,offset:o.offset||r.offset,push:o.push||r.push,pull:o.pull||r.pull}},[n("ElFormItem",{class:`avue-form__item--${o.labelPosition||r.labelPosition||""}`,attrs:{prop:o.prop,label:o.label,rules:o.rules,"label-position":o.labelPosition||r.labelPosition||t.parentOption.labelPosition,"label-width":t.getLabelWidth(o,r)},scopedSlots:t._u([t.getSlotName(o,"L",t.$scopedSlots)?{key:"label",fn:function(){return[t._t(t.getSlotName(o,"L"),null,{column:o,value:t.form[o.prop],readonly:o.readonly||t.readonly,disabled:t.getDisabled(o),size:o.size||t.controlSize,dic:t.DIC[o.prop]})]},proxy:!0}:o.labelTip?{key:"label",fn:function(){return[n("ElTooltip",{staticClass:"item",attrs:{effect:"dark",placement:o.labelTipPlacement||"top-start"}},[n("div",{attrs:{slot:"content"},domProps:{innerHTML:t._s(o.labelTip)},slot:"content"}),n("i",{staticClass:"el-icon-info"})]),n("span",[t._v(" "+t._s(o.label)+t._s(t.labelSuffix))])]},proxy:!0}:null,t.getSlotName(o,"E",t.$scopedSlots)?{key:"error",fn:function(c){return[t._t(t.getSlotName(o,"E"),null,null,Object.assign(c,{column:o,value:t.form[o.prop],readonly:t.readonly||o.readonly,disabled:t.getDisabled(o),size:o.size||t.controlSize,dic:t.DIC[o.prop]}))]}}:null],null,!0)},[n(t.validTip(o)?"div":"elTooltip",{tag:"Component",attrs:{disabled:t.validTip(o),content:o.tip||t.getPlaceholder(o),placement:o.tipPlacement}},[t.$scopedSlots[o.prop]?t._t(o.prop,null,{value:t.form[o.prop],column:o,label:t.form[`$${o.prop}`],size:o.size||t.controlSize,readonly:t.readonly||o.readonly,disabled:t.getDisabled(o),dic:t.DIC[o.prop]}):n("FormTemp",t._b({ref:o.prop,refInFor:!0,attrs:{column:o,dic:t.DIC[o.prop],props:t.parentOption.props,"props-http":t.parentOption.propsHttp,disabled:t.getDisabled(o),readonly:o.readonly||t.readonly,enter:t.parentOption.enter,size:o.size||t.controlSize,"column-slot":t.columnSlot},on:{enter:t.submit,change:function(c){return t.propChange(r.column,o)}},scopedSlots:t._u([t._l(t.getSlotName(o,"T",t.$scopedSlots)?[o]:[],function(c){return{key:t.getSlotName(o,"T"),fn:function(u){return[t._t(t.getSlotName(c,"T"),null,null,u)]}}}),t._l(t.columnSlot,function(c){return{key:c,fn:function(u){return[t._t(c,null,null,u)]}}})],null,!0),model:{value:t.form[o.prop],callback:function(c){t.$set(t.form,o.prop,c)},expression:"form[column.prop]"}},"FormTemp",t.uploadFun(o),!1))],2)],1)],1):t._e(),t.vaildDisplay(o)&&o.row&&o.span!==24&&o.count?n("div",{key:`line${l}`,staticClass:"avue-form__line",style:{width:`${o.count/24*100}%`}}):t._e()]}),!t.isDetail&&!t.isMenu?n("FyFormMenu",{scopedSlots:t._u([{key:"menuForm",fn:function(o){return[t._t("menuForm",null,null,o)]}}],null,!0)}):t._e()],2)],1)}),!t.isDetail&&t.isMenu?n("FyFormMenu",{scopedSlots:t._u([{key:"menuForm",fn:function(r){return[t._t("menuForm",null,null,r)]}}],null,!0)}):t._e()],2)],1)],1)},staticRenderFns$1P=[];const FyForm_vue_vue_type_style_index_0_lang="",__vue2_script$1U={name:"FyForm",mixins:[init],provide(){return{formSafe:this}},props:{uploadBefore:Function,uploadAfter:Function,uploadDelete:Function,uploadPreview:Function,uploadError:Function,uploadExceed:Function,status:{type:Boolean,default:!1},isCrud:{type:Boolean,default:!1},value:{type:Object,required:!0,default:()=>({})}},data(){return{activeName:"",labelWidth:90,allDisabled:!1,optionIndex:[],optionBox:!1,tableOption:{},itemSpanDefault:12,form:{},formCreate:!1,formList:[],formBind:{}}},computed:{columnSlot(){return Object.keys(this.$scopedSlots).filter(t=>!this.propOption.map(s=>s.prop).includes(t))},labelSuffix(){return this.parentOption.labelSuffix||":"},isMenu(){return this.columnOption.length!==1},isDetail(){return this.detail===!0},isTabs(){return this.parentOption.tabs===!0},isAdd(){return this.boxType==="add"},isEdit(){return this.boxType==="edit"},isView(){return this.boxType==="view"},gutter(){return setPx((this.parentOption.gutter||10)/2)},detail(){return this.parentOption.detail},disabled(){return this.parentOption.disabled},readonly(){return this.parentOption.readonly},tabsType(){return this.parentOption.tabsType},columnLen(){return this.columnOption.length},dynamicOption(){const t=[];return this.propOption.forEach(s=>{s.type==="dynamic"&&this.vaildDisplay(s)&&t.push(s)}),t},propOption(){const t=[];return this.columnOption.forEach(s=>{s.display!==!1&&s.column.forEach(n=>{t.push(n)})}),t},parentOption(){return this.tableOption||{}},columnOption(){const t=this.tableOption.column||[],s=deepClone(this.tableOption.group)||[],n=this.tableOption.footer||[];return s.unshift({header:!1,column:t}),n.length!==0&&s.push({header:!1,column:n}),s.forEach(r=>{r.column=r.column||[],r.column.forEach((a,o)=>{a.display!==!1&&!this.isMobile&&(a=calcCount(a,this.itemSpanDefault,o===0))}),r.column=calcCascader(r.column),r.column=r.column.sort((a,o)=>(o.order||0)-(a.order||0))}),s},menuPosition:function(){return this.parentOption.menuPosition?this.parentOption.menuPosition:"center"},boxType:function(){return this.parentOption.boxType},isPrint(){return this.parentOption.printBtn===!0},tabsActive(){return this.tableOption.tabsActive||"1"},isMock(){return this.parentOption.mockBtn===!0}},watch:{value:{handler(){this.formCreate&&this.setForm()},deep:!0},form:{handler(){this.formCreate&&(this.setLabel(),this.setVal())},deep:!0},tabsActive:{handler(){this.activeName=this.tabsActive},immediate:!0},DIC:{handler(){this.setLabel()},deep:!0,immediate:!0},allDisabled:{handler(t){this.$emit("update:status",t)},deep:!0,immediate:!0}},mounted(){setTimeout(()=>{this.dataFormat()})},beforeDestroy(){Object.keys(this.formBind).forEach(t=>{this.formBind[t].forEach(s=>{s()})})},methods:{setPx,deepClone,getComponent,getPlaceholder,uploadFun,getDisabled(t){return this.vaildDetail(t)||this.isDetail||this.vaildDisabled(t)||this.allDisabled},getSpan(t){return t.span||this.parentOption.span||this.itemSpanDefault},isGroupShow(t,s){return this.isTabs?s==this.activeName||s==0:!0},dataFormat(){const t=formInitVal(this.propOption).tableForm,s=this.value,n={};Object.entries(Object.assign(t,s)).forEach(r=>{const a=r[0],o=r[1];core.isBlank(s[a])?n[a]=o:n[a]=s[a]}),this.$set(this,"form",n),this.setLabel(),this.setControl(),this.setVal(),setTimeout(()=>{this.formCreate=!0,this.clearValidate()})},setControl(){this.propOption.forEach(t=>{const s=t.prop,n=t.bind,r=t.control;if(!this.formBind[s]){const a=[];if(n){const o=this.$watch(`form.${s}`,(c,u)=>{c!=u&&setAsVal(this.form,n,c)}),l=this.$watch(`form.${n}`,(c,u)=>{c!=u&&this.$set(this.form,s,c)});a.push(o),a.push(l),this.$set(this.form,s,getAsVal(this.form,n))}if(r){const o=()=>{const c=r(this.form[t.prop],this.form)||{};Object.keys(c).forEach(u=>{const d=Object.assign(this.objectOption[u]||{},c[u]);this.$set(this.objectOption,u,d),c[u].dicData&&(this.DIC[u]=c[u].dicData)})},l=this.$watch(`form.${s}`,()=>{o()});a.push(l),o()}this.formBind[s]=a}})},setForm(){Object.keys(this.value).forEach(t=>{this.$set(this.form,t,this.value[t])})},setVal(){this.$emit("input",this.form),this.$emit("change",this.form)},setLabel(){this.tableOption.filterNull===!0&&(this.form=filterParams(this.form,[""],!1)),this.tableOption.filterDic==!0?this.form=filterParams(this.form,["$"],!1):this.propOption.forEach(t=>{let s;const n=this.DIC[t.prop];core.isBlank(n)||(s=detail(this.form,t,this.tableOption,n),s?this.$set(this.form,`$${t.prop}`,s):this.$delete(this.form,`$${t.prop}`))})},handleGroupClick(t){this.$emit("tab-click",t)},handleTabClick(t,s){this.$emit("tab-click",t,s)},getLabelWidth(t,s){let n;return core.isBlank(t.labelWidth)?core.isBlank(s.labelWidth)?n=this.parentOption.labelWidth:n=s.labelWidth:n=t.labelWidth,setPx(n,this.labelWidth)},validateField(t){return this.$refs.form.validateField(t)},validTip(t){return!t.tip||t.type==="upload"},getPropRef(t){return this.$refs[t][0]},handleChange(t,s){this.$nextTick(()=>{const n=s.cascader,r=n.join(",");n.forEach(a=>{const o=a,l=this.form[s.prop],c=this.findObject(t,o);core.isBlank(c)||(this.formList.includes(r)&&n.forEach(u=>{this.form[u]="",this.$set(this.DIC,u,[])}),!(core.isBlank(n)||core.isBlank(l)||core.isBlank(c))&&sendDic({column:c,value:l,form:this.form}).then(u=>{this.formList.includes(r)||this.formList.push(r);const d=u||[];this.$set(this.DIC,o,d),!core.isBlank(d)&&!core.isBlank(d)&&!core.isBlank(c.cascaderIndex)&&core.isBlank(this.form[o])&&(this.form[o]=d[c.cascaderIndex][(c.props||{}).value||DIC_PROPS.value])}))})})},handlePrint(){this.$Print(this.$el)},propChange(t,s){s.cascader&&this.handleChange(t,s)},handleMock(){this.isMock&&(this.columnOption.forEach(t=>{const s=mock(t.column,this.DIC,this.form,this.isMock);core.isBlank(s)||Object.keys(s).forEach(n=>{this.form[n]=s[n]})}),this.$nextTick(()=>{this.clearValidate(),this.$emit("mock-change",this.form)}))},vaildDetail(t){let s;if(this.detail)return!1;if(!core.isBlank(t.detail))s="detail";else if(this.isAdd)s="addDetail";else if(this.isEdit)s="editDetail";else if(this.isView)return!1;return s?t[s]===!0:!1},vaildDisabled(t){let s;if(this.disabled)return!0;if(!core.isBlank(t.disabled))s="disabled";else if(this.isAdd)s="addDisabled";else if(this.isEdit)s="editDisabled";else if(this.isView)return!0;return s?t[s]===!0:!1},vaildDisplay(t){let s;return core.isBlank(t.display)?this.isAdd?s="addDisplay":this.isEdit?s="editDisplay":this.isView&&(s="viewDisplay"):s="display",s?optVal(t[s],!0):!0},clearValidate(t){return v(this,null,function*(){var s;(s=this.$refs.form)==null||s.clearValidate(t)})},validateCellForm(){return new Promise(t=>{this.$refs.form.validate((s,n)=>{t(n)})})},validate(t){this.$refs.form.validate((s,n)=>{const r=[],a=[],o={};this.dynamicOption.forEach(l=>{const c=l.children.type==="form";a.push(l.prop),c?core.isBlank(this.$refs[l.prop][0].$refs.temp.$refs.main)||this.$refs[l.prop][0].$refs.temp.$refs.main.forEach(u=>{r.push(u.validateCellForm())}):r.push(this.$refs[l.prop][0].$refs.temp.$refs.main.validateCellForm())}),Promise.all(r).then(l=>{l.forEach((u,d)=>{core.isBlank(u)||(o[a[d]]=u)});const c=Object.assign(o,n);core.isBlank(c)?(this.show(),t(!0,this.hide)):t(!1,this.hide,c)})})},resetForm(t=!0){if(t){const s=this.propOption.map(n=>n.prop);this.form=clearVal(this.form,s,(this.tableOption.filterParams||[]).concat([this.rowKey]))}this.$nextTick(()=>{this.clearValidate(),this.$emit("reset-change")})},resetFields(){this.$refs.form.resetFields()},show(){this.allDisabled=!0},hide(){this.allDisabled=!1},submit(){this.validate((t,s)=>{t?this.$emit("submit",filterParams(this.form,["$"]),this.hide):this.$emit("error",s)})}}},__cssModules$1U={};var __component__$1U=normalizeComponent(__vue2_script$1U,render$1P,staticRenderFns$1P,!1,__vue2_injectStyles$1U,null,null,null);function __vue2_injectStyles$1U(t){for(let s in __cssModules$1U)this[s]=__cssModules$1U[s]}const FyForm=function(){return __component__$1U.exports}(),fields$1=[{title:"布局字段",list:[{type:"group",label:"分组",icon:"icon-group",display:!0,arrow:!1,collapse:!0,children:{column:[]}},{type:"dynamic",label:"子表单",icon:"icon-table",span:24,display:!0,children:{align:"center",headerAlign:"center",index:!1,addBtn:!0,delBtn:!0,column:[]}},{type:"title",icon:"icon-title",span:24,display:!0,styles:{fontSize:"18px",color:"#000"},label:"标题",labelWidth:"0px",value:"标题"}]},{title:"输入字段",list:[{type:"input",label:"单行文本",icon:"icon-input",span:24,display:!0},{type:"password",label:"密码",icon:"icon-password",span:24,display:!0},{type:"textarea",label:"多行文本",icon:"icon-textarea",span:24,display:!0},{type:"number",label:"计数器",icon:"icon-number",controls:!0,span:24,display:!0},{type:"url",label:"超链接",icon:"icon-url",span:24,display:!0},{type:"array",label:"数组",icon:"icon-array",span:24,display:!0},{type:"img",label:"图片",icon:"icon-img",span:24,display:!0},{type:"map",component:"fy-input-map",label:"地图选择器",icon:"icon-map",span:24,display:!0}]},{title:"选择字段",list:[{type:"radio",label:"单选框组",icon:"icon-radio",dicData:[{label:"选项一",value:"0"},{label:"选项二",value:"1"},{label:"选项三",value:"2"}],span:24,display:!0,dicOption:"static",props:{label:"label",value:"value"}},{type:"checkbox",label:"多选框组",icon:"icon-checkbox",dicData:[{label:"选项一",value:"0"},{label:"选项二",value:"1"},{label:"选项三",value:"2"}],span:24,display:!0,dicOption:"static",props:{label:"label",value:"value"}},{type:"select",label:"下拉选择器",icon:"icon-select",dicData:[{label:"选项一",value:"0"},{label:"选项二",value:"1"},{label:"选项三",value:"2"}],cascaderItem:[],span:24,display:!0,dicOption:"static",props:{label:"label",value:"value",desc:"desc"}},{type:"cascader",label:"级联选择器",icon:"icon-link",span:24,display:!0,dicData:[{label:"选项一",value:0,children:[{label:"选项1-1",value:11},{label:"选项1-2",value:12}]},{label:"选项二",value:"1"},{label:"选项三",value:"2"}],cascaderIndex:1,cascaderItem:[],showAllLevels:!0,dicOption:"static",separator:"/",props:{label:"label",value:"value",desc:"desc"}},{type:"tree",label:"树形选择器",icon:"icon-tree",span:24,display:!0,dicOption:"static",dicData:[{label:"选项一",value:0,children:[{label:"选项1-1",value:"11"},{label:"选项1-2",value:"12"}]},{label:"选项二",value:"1"},{label:"选项三",value:"2"}],parent:!0,cascaderItem:[],props:{label:"label",value:"value",desc:"desc"}},{type:"table",label:"表格选择器",icon:"icon-table",display:!0,span:24,children:{border:!0,searchMenuSpan:6,searchIcon:!0,column:[],props:{url:"",method:"get",rowKey:"id",needPage:!0,currentPageKey:"current",pageSizeKey:"size",totalKey:"total",recordsKey:"records",resKey:"data.data",auto:!0}},formatter:t=>t.name,props:{label:"name",value:"id"}}]},{title:"上传字段",list:[{type:"upload",label:"上传",icon:"icon-upload",span:24,display:!0,showFileList:!0,multiple:!0,limit:10,propsHttp:{},headersConfig:[],dataConfig:[]}]},{title:"日期时间字段",list:[{type:"year",label:"年",icon:"icon-year",span:24,display:!0,format:"yyyy",valueFormat:"yyyy"},{type:"month",label:"月",icon:"icon-month",span:24,display:!0,format:"MM",valueFormat:"MM"},{type:"week",label:"周",icon:"icon-week",span:24,display:!0,format:"yyyy 第 WW 周"},{type:"date",label:"日期",icon:"icon-date",span:24,display:!0,format:"yyyy-MM-dd",valueFormat:"yyyy-MM-dd"},{type:"time",label:"时间",icon:"icon-time",span:24,display:!0,format:"HH:mm:ss",valueFormat:"HH:mm:ss"},{type:"datetime",label:"日期时间",icon:"icon-datetime",span:24,display:!0,format:"yyyy-MM-dd HH:mm:ss",valueFormat:"yyyy-MM-dd HH:mm:ss"},{type:"daterange",label:"日期范围",icon:"icon-date-range",span:24,display:!0,format:"yyyy-MM-dd",valueFormat:"yyyy-MM-dd"},{type:"timerange",label:"时间范围",icon:"icon-time-range",span:24,display:!0,format:"HH:mm:ss",valueFormat:"HH:mm:ss"},{type:"datetimerange",label:"日期时间范围",icon:"icon-datetime-range",span:24,display:!0,format:"yyyy-MM-dd HH:mm:ss",valueFormat:"yyyy-MM-dd HH:mm:ss"}]},{title:"插件字段(需单独引入依赖)",list:[{type:"u-editor",component:"fy-u-editor",label:"富文本",icon:"icon-richtext",span:24,display:!0,options:{action:"",oss:"",props:{},ali:{},qiniu:{}}}]},{title:"其他字段",list:[{type:"icon",label:"图标",component:"fy-input-icon",icon:"icon-icon",span:24,display:!0,params:{iconList:[{label:"基本图标",list:["el-icon-info","el-icon-error","el-icon-error","el-icon-success","el-icon-warning","el-icon-question"]},{label:"方向图标",list:["el-icon-info","el-icon-back","el-icon-arrow-left","el-icon-arrow-down","el-icon-arrow-right","el-icon-arrow-up"]},{label:"符号图标",list:["el-icon-plus","el-icon-minus","el-icon-close","el-icon-check"]}]}},{type:"switch",label:"开关",icon:"icon-switch",span:24,display:!0,value:"0",dicData:[{label:"",value:"0"},{label:"",value:"1"}]},{type:"rate",label:"评价",icon:"icon-star",span:24,display:!0,max:5,value:0,texts:["极差","失望","一般","满意","惊喜"],colors:["#99A9BF","#F7BA2A","#FF9900"]},{type:"slider",label:"滑块",icon:"icon-slider",span:24,display:!0,min:0,max:10},{type:"color",label:"颜色选择器",icon:"icon-color",span:24,display:!0}]}],escapable=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,keyable=/^[a-zA-Z_$][0-9a-zA-Z_$]*$/;let gap,indent;const meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"'":"\\'","\\":"\\\\"};let rep;function convert(t,s={}){const n=s.space||2,r=s.dropQuotesOnKeys!=!1,a=s.dropQuotesOnNumbers||!1,o=s.inlineShortArrays||!1,l=s.inlineShortArraysDepth||1,c=s.quoteType||"single",u=s.minify||!1;a&&walkObjectAndDropQuotesOnNumbers(t);let d=stringify(t,null,u?void 0:n,r,c);if(o&&!u){let p=inlineShortArraysInResult(d);if(l>1)for(let h=1;h<l&&(d=p,p=inlineShortArraysInResult(d),p!=d);h++);d=p}return d}function walkObjectAndDropQuotesOnNumbers(t){if(!isObject(t))return;const s=Object.keys(t);s&&s.forEach(function(n){const r=t[n];if(typeof r=="string"){const a=r-0;t[n]=isNaN(a)?r:a}else(isObject(r)||Array.isArray(r))&&walkObjectAndDropQuotesOnNumbers(r)})}function isObject(t){return t&&typeof t=="object"}function inlineShortArraysInResult(t,s){if(s||(s=80),typeof s!="number"||s<20)throw`Invalid width '${s}'. Expecting number equal or larger than 20.`;const n=t.split(`
|
|
9
|
+
`)])])],1)},staticRenderFns$1Y=[];const __vue2_script$22={name:"FyCode",components:{ElScrollbar},props:{height:{type:Number,default:200},syntax:{type:String,default:"javascript"}},computed:{styleName(){return{height:setPx(this.height)}}},mounted(){window.hljs&&window.hljs&&typeof window.hljs.highlightBlock=="function"&&window.hljs.highlightBlock(this.$refs.container)},methods:{setPx}},__cssModules$22={};var __component__$22=normalizeComponent(__vue2_script$22,render$1Y,staticRenderFns$1Y,!1,__vue2_injectStyles$22,null,null,null);function __vue2_injectStyles$22(t){for(let s in __cssModules$22)this[s]=__cssModules$22[s]}const FyCode=function(){return __component__$22.exports}(),list={AliOSS:{url:"https://cdn.staticfile.org/ali-oss/6.17.1/aliyun-oss-sdk.min.js",title:"阿里云云图片上传,需引入OSS的sdk",github:"https://github.com/ali-sdk/ali-oss/"},Map:{url:"https://webapi.amap.com/maps?v=1.4.11&key=xxxxx&plugin=AMap.PlaceSearch,https://webapi.amap.com/ui/1.0/main.js?v=1.0.11",title:"地图组件,需引入高德SDK"},MapUi:{url:"https://webapi.amap.com/ui/1.0/main.js?v=1.0.11",title:"地图组件,需引入高德UISDK"},Sortable:{url:"https://cdn.staticfile.org/Sortable/1.10.0-rc2/Sortable.min.js",title:"拖拽,需引入sortableJs",github:"https://github.com/SortableJS/Sortable"},Screenshot:{url:"https://cdn.staticfile.org/html2canvas/0.5.0-beta4/html2canvas.min.js",title:"需引入html2canvas依赖包",github:"https://github.com/niklasvh/html2canvas/"},CryptoJS:{url:"https://avuejs.com/cdn/CryptoJS.js",title:"七牛云图片上传,需引入CryptoJS"},hljs:{url:"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js",title:"需引入hljs框架包",github:"https://github.com/highlightjs/highlight.js"},"file-saver":{url:"https://cdn.staticfile.org/FileSaver.js/2014-11-29/FileSaver.min.js",title:"需引入文件操作包",github:"https://github.com/eligrey/FileSaver.js"},xlsx:{url:"https://cdn.staticfile.org/xlsx/0.18.2/xlsx.full.min.js",title:"需引入excel操作包",github:"https://github.com/protobi/js-xlsx"},mock:{url:"https://cdn.staticfile.org/Mock.js/1.0.1-beta3/mock-min.js",title:"需要引入mock模拟数据包",github:"https://github.com/Colingo/mock"}},packages$1=(()=>({logs:function(t){const s=list[t],n=core.createLogger(t);n.warning(s.title),n.warning(`CDN:${s.url||"-"}`),n.warning(`GITHUB:${s.github||"-"}`)}}))(),init={mixins:[slot],props:{defaults:{type:Object,default(){return{}}},option:{type:Object,required:!0,default:()=>({})}},watch:{defaults:{handler(t){this.objectOption=t},deep:!0},objectOption:{handler(t){this.$emit("update:defaults",t)},deep:!0},propOption:{handler(t){const s={};t.forEach(n=>{s[n.prop]=n}),this.$set(this,"objectOption",s)},deep:!0},option:{handler(){this.init(!1)},deep:!0}},data(){return{DIC:{},cascaderDIC:{},tableOption:{},isMobile:"",objectOption:{}}},created(){this.init()},computed:{resultOption(){return Object.assign(deepClone(this.tableOption),{column:this.propOption})},rowKey(){return this.tableOption.rowKey||DIC_PROPS.rowKey},formRules(){const t={};return this.propOption.forEach(s=>{s.rules&&s.display!==!1&&(t[s.prop]=s.rules)}),t},isMediumSize(){return this.controlSize},controlSize(){return this.tableOption.size||this.$AVUE.size}},methods:{init(t){this.tableOption=this.option,this.getIsMobile(),this.handleLocalDic(),t!==!1&&this.handleLoadDic()},dicInit(t){t==="cascader"?this.handleLoadCascaderDic():this.handleLoadDic()},getIsMobile(){this.isMobile=document.body.clientWidth<=768},updateDic(t,s){const n=this.findObject(this.propOption,t);core.isBlank(s)&&core.isBlank(t)?this.handleLoadDic():core.isBlank(s)&&!core.isBlank(n.dicUrl)?sendDic({column:n}).then(r=>{this.$set(this.DIC,t,r)}):this.$set(this.DIC,t,s)},handleSetDic(t,s={}){Object.keys(s).forEach(n=>{this.$set(t,n,s[n])})},handleLocalDic(){this.handleSetDic(this.DIC,loadLocalDic(this.resultOption))},handleLoadDic(){loadDic(this.resultOption).then(t=>this.handleSetDic(this.DIC,t))},handleLoadCascaderDic(){loadCascaderDic(this.propOption,this.data).then(t=>this.handleSetDic(this.cascaderDIC,t))}}};var render$1X=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-crud avue-crud--card"},[t.tableOption.title?n(t.tableOption.titleSize||"h2",{tag:"Component",style:t.tableOption.titleStyle},[t._v(" "+t._s(t.tableOption.title)+" ")]):t._e(),n("HeaderSearch",{ref:"headerSearch",scopedSlots:t._u([{key:"search",fn:function(r){return[t._t("search",null,null,r)]}},{key:"searchMenu",fn:function(r){return[t._t("searchMenu",null,null,r)]}},t._l(t.searchSlot,function(r){return{key:r,fn:function(a){return[t._t(r,null,null,a)]}}})],null,!0)}),t.optVal(t.tableOption.header,!0)?n("HeaderMenu",{ref:"headerMenu",scopedSlots:t._u([{key:"menuLeft",fn:function(r){return[t._t("menuLeft",null,null,r)]}},{key:"menuRight",fn:function(r){return[t._t("menuRight",null,null,r)]}}],null,!0)}):t._e(),t.optVal(t.tableOption.tip,t.config.tip)&&t.tableOption.selection?n("ElTag",{staticClass:"avue-crud__tip"},[n("span",{staticClass:"avue-crud__tip-name"},[t._v(" 当前表格已选择 "),n("span",{staticClass:"avue-crud__tip-count"},[t._v(t._s(t.selectLen))]),t._v(" 项 ")]),t.optVal(t.tableOption.selectClearBtn,t.config.selectClearBtn)&&t.tableOption.selection?n("ElButton",{directives:[{name:"permission",rawName:"v-permission",value:t.getPermission("selectClearBtn"),expression:"getPermission('selectClearBtn')"}],attrs:{type:"text",size:"small"},on:{click:t.selectClear}},[t._v(" 清 空 ")]):t._e(),t._t("tip")],2):t._e(),t._t("header"),n("ElForm",{ref:"cellForm",attrs:{model:t.cellForm,"show-message":!1},on:{validate:t.handleValidate}},[n("ElTable",{directives:[{name:"loading",rawName:"v-loading",value:t.tableLoading,expression:"tableLoading"}],key:t.reload,ref:"table",class:{"avue-crud--indeterminate":t.optVal(t.tableOption.indeterminate,!1)},attrs:{data:t.cellForm.list,"row-key":t.rowKey,size:t.$AVUE.tableSize||t.controlSize,lazy:t.optVal(t.tableOption.lazy,!1),load:t.treeLoad,"tree-props":t.treeProps,"expand-row-keys":t.tableOption.expandRowKeys,"default-expand-all":t.tableOption.defaultExpandAll,"highlight-current-row":t.tableOption.highlightCurrentRow,"show-summary":t.tableOption.showSummary,"summary-method":t.tableSummaryMethod,"span-method":t.tableSpanMethod,stripe:t.tableOption.stripe,"show-header":t.tableOption.showHeader,"default-sort":t.tableOption.defaultSort,"row-class-name":t.rowClassName,"cell-class-name":t.cellClassName,"row-style":t.rowStyle,"cell-style":t.cellStyle,fit:t.tableOption.fit,"header-cell-class-name":t.headerCellClassName,"max-height":t.isAutoHeight?t.tableHeight:t.tableOption.maxHeight,height:t.tableHeight,width:t.setPx(t.tableOption.width,t.config.width),border:t.tableOption.border},on:{"current-change":t.currentRowChange,"expand-change":t.expandChange,"header-dragend":t.headerDragend,"row-click":t.rowClick,"row-dblclick":t.rowDblclick,"cell-mouse-enter":t.cellMouseEnter,"cell-mouse-leave":t.cellMouseLeave,"cell-click":t.cellClick,"header-click":t.headerClick,"row-contextmenu":t.rowContextmenu,"header-contextmenu":t.headerContextmenu,"cell-dblclick":t.cellDblclick,"filter-change":t.filterChange,"selection-change":t.selectionChange,select:t.select,"select-all":t.selectAll,"sort-change":t.sortChange},scopedSlots:t._u([{key:"empty",fn:function(){return[t.$slots.empty?t._t("empty"):n("ElEmpty",{staticClass:"avue-crud__empty",attrs:{"image-size":100,description:t.tableOption.emptyText}})]},proxy:!0}],null,!0)},[n("Column",{attrs:{"column-option":t.columnOption},scopedSlots:t._u([{key:"header",fn:function(){return[n("ColumnDefault",{ref:"columnDefault",scopedSlots:t._u([{key:"expand",fn:function(r){var a=r.row,o=r.index;return[t._t("expand",null,{row:a,index:o})]}}],null,!0)})]},proxy:!0},t._l(t.mainSlot,function(r){return{key:r,fn:function(a){return[t._t(r,null,null,a)]}}}),{key:"footer",fn:function(){return[n("ColumnMenu",{scopedSlots:t._u([{key:"menu",fn:function(r){return[t._t("menu",null,null,r)]}},{key:"menuBtn",fn:function(r){return[t._t("menuBtn",null,null,r)]}}],null,!0)})]},proxy:!0}],null,!0)})],1)],1),t._t("footer"),n("TablePage",{ref:"tablePage"}),n("FyDialogForm",{ref:"dialogForm",scopedSlots:t._u([t._l(t.formSlot,function(r){return{key:r,fn:function(a){return[t._t(r,null,null,a)]}}}),{key:"menuForm",fn:function(r){return[t._t("menuForm",null,null,r)]}}],null,!0)}),n("DialogColumn",{ref:"dialogColumn"}),n("DialogExcel",{ref:"dialogExcel"}),n("DialogFilter",{ref:"dialogFilter"})],2)},staticRenderFns$1X=[];const FyCurd_vue_vue_type_style_index_0_lang="",__vue2_script$21={name:"FyCurd",directives:{permission},mixins:[init],provide(){return{crud:this}},props:{spanMethod:Function,summaryMethod:Function,rowStyle:Function,cellStyle:Function,beforeClose:Function,beforeOpen:Function,rowClassName:Function,cellClassName:Function,headerCellClassName:Function,uploadBefore:Function,uploadAfter:Function,uploadDelete:Function,uploadPreview:Function,uploadError:Function,uploadExceed:Function,permission:{type:[Function,Object],default:()=>({})},value:{type:Object,default:()=>({})},search:{type:Object,default(){return{}}},page:{type:Object,default(){return{}}},tableLoading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},data:{type:Array,required:!0,default:()=>[]}},data(){return{reload:Math.random(),cellForm:{list:[]},config:config$1,list:[],listError:{},tableForm:{},tableHeight:void 0,tableIndex:-1,tableSelect:[],sumsList:{},cascaderIndexList:[],cascaderDicList:{},cascaderFormList:{},btnDisabledList:{},btnDisabled:!1,default:{}}},computed:{isHeightAuto(){return this.tableOption.height==="auto"},isSortable(){return this.tableOption.sortable},isRowSort(){return this.tableOption.rowSort},isColumnSort(){return this.tableOption.columnSort},rowParentKey(){return this.option.rowParentKey||DIC_PROPS.rowParentKey},childrenKey(){return this.treeProps.children||DIC_PROPS.children},hasChildrenKey(){return this.treeProps.hasChildren||DIC_PROPS.hasChildren},treeProps(){return this.tableOption.treeProps||{}},isAutoHeight(){return this.tableOption.height==="auto"},formSlot(){return this.getSlotList(["Error","Label","Type","Form"],this.$scopedSlots,this.propOption)},searchSlot(){return this.getSlotList(["Search"],this.$scopedSlots,this.propOption)},mainSlot(){const t=[];return this.propOption.forEach(s=>{this.$scopedSlots[s.prop]&&t.push(s.prop)}),this.getSlotList(["Header","Form"],this.$scopedSlots,this.propOption).concat(t)},calcHeight(){return(this.tableOption.calcHeight||0)+this.$AVUE.calcHeight},propOption(){let t=[];function s(n=[]){Array.isArray(n)&&n.forEach(r=>{Array.isArray(r.children)?s(r.children):t.push(r)})}return s(this.columnOption),t=calcCascader(t),t},isShowSummary(){return this.option.showSummary},isHeader(){let t=!1;return this.columnOption.forEach(s=>{s.children&&(t=!0)}),t},isTree(){let t=!1;return this.data.forEach(s=>{s.children&&(t=!0)}),t},isCard(){return this.option.card?"always":"never"},expandLevel(){return this.parentOption.expandLevel||0},expandAll(){return this.parentOption.expandAll||!1},parentOption(){return this.tableOption||{}},columnOption(){return this.tableOption.column||[]},sumColumnList(){return this.tableOption.sumColumnList||[]},selectLen(){return this.tableSelect?this.tableSelect.length:0}},watch:{value:{handler(){this.tableForm=this.value},immediate:!0,deep:!0},list:{handler(){this.cellForm.list=this.list},deep:!0},data:{handler(){this.dataInit()},deep:!0}},mounted(){this.dataInit(),this.getTableHeight(),this.refreshTable()},methods:{setPx,optVal,handleValidate(t,s,n){this.listError[t]||this.$set(this.listError,t,{valid:!1,msg:""}),this.listError[t].valid=!s,this.listError[t].msg=n},getPermission(t,s,n){return typeof this.permission=="function"?this.permission(t,s,n):core.isBlank(this.permission[t])?!0:this.permission[t]},getTableHeight(){this.isAutoHeight?this.$nextTick(()=>{const t=this.$refs.table,s=this.$refs.tablePage;if(!t)return;const n=t.$el,r=s.$el.offsetHeight||20;this.tableHeight=document.documentElement.clientHeight-n.offsetTop-r-this.calcHeight}):this.tableHeight=this.tableOption.height},doLayout(){this.$refs.table.doLayout()},refreshTable(t){this.reload=Math.random(),this.$nextTick(()=>{t&&t()})},treeLoad(t,s,n){this.$emit("tree-load",t,s,r=>{t.children=r,n(r)})},menuIcon(t){return optVal(this.tableOption[`${t}Text`],translate(`crud.${t}`))},getBtnIcon(t){const s=`${t}Icon`;return this.tableOption[s]||config$1[s]},validateField(t){return this.$refs.dialogForm.$refs.tableForm.validateField(t)},selectClear(){this.$emit("selection-clear",deepClone(this.tableSelect)),this.$refs.table.clearSelection()},toggleRowSelection(t,s){this.$refs.table.toggleRowSelection(t,s)},toggleRowExpansion(t,s){this.$refs.table.toggleRowExpansion(t,s)},setCurrentRow(t){this.$refs.table.setCurrentRow(t)},dataInit(){this.list=this.data,this.list.forEach((t,s)=>{t.$cellEdit&&!this.cascaderFormList[s]&&(this.cascaderFormList[s]=deepClone(t)),this.$set(t,"$cellEdit",t.$cellEdit||!1),this.$set(t,"$index",s)})},headerDragend(t,s,n,r){this.objectOption[n.property]&&this.$set(this.objectOption[n.property],"width",t),this.$emit("header-dragend",t,s,n,r)},headerSort(t,s){const n=this.columnOption,r=n.splice(t,1)[0];n.splice(s,0,r),this.refreshTable()},clearFilter(t){this.$refs.table.clearFilter(t)},expandChange(t,s){this.$emit("expand-change",t,s)},currentRowChange(t,s){this.$emit("current-row-change",t,s)},refreshChange(){this.$emit("refresh-change")},toggleSelection(t){t?t.forEach(s=>{this.$refs.table.toggleRowSelection(s)}):this.$refs.table.clearSelection()},selectionChange(t){this.tableSelect=t,this.$emit("selection-change",this.tableSelect)},select(t,s){this.$emit("select",t,s)},selectAll(t){this.$emit("select-all",t)},filterChange(t){this.$emit("filter-change",t)},sortChange(t){this.$emit("sort-change",t)},rowDblclick(t,s){this.$emit("row-dblclick",t,s)},rowClick(t,s,n){this.$emit("row-click",t,s,n)},clearSort(){this.$refs.table.clearSort()},cellMouseEnter(t,s,n,r){this.$emit("cell-mouse-enter",t,s,n,r)},cellMouseLeave(t,s,n,r){this.$emit("cell-mouse-leave",t,s,n,r)},cellClick(t,s,n,r){this.$emit("cell-click",t,s,n,r)},headerClick(t,s){this.$emit("header-click",t,s)},rowContextmenu(t,s,n){this.$emit("row-contextmenu",t,s,n)},headerContextmenu(t,s){this.$emit("header-contextmenu",t,s)},cellDblclick(t,s,n,r){this.$emit("cell-dblclick",t,s,n,r)},rowCellAdd(t={}){const s=this.list.length,n=formInitVal(this.propOption).tableForm;t=deepClone(Object.assign({$cellEdit:!0,$index:s},n,t)),this.list.push(t)},rowCancel(t,s){core.isBlank(t[this.rowKey])?(this.list.splice(s,1),delete this.cascaderDIC[s]):(this.cascaderFormList[s].$cellEdit=!1,this.$set(this.cascaderDIC,s,this.cascaderDicList[s]),this.$set(this.list,s,this.cascaderFormList[s])),delete this.cascaderDicList[s],delete this.cascaderFormList[s],this.cascaderIndexList.splice(this.cascaderIndexList.indexOf(s),1)},rowCell(t,s){t.$cellEdit?this.rowCellUpdate(t,s):this.rowCellEdit(t,s)},rowCellUpdate(t,s){t=deepClone(t);const n=this.validateCellField(s),r=()=>{this.btnDisabledList[s]=!1,this.btnDisabled=!1,this.list[s].$cellEdit=!1,this.cascaderIndexList.splice(this.cascaderIndexList.indexOf(s),1),delete this.cascaderFormList[s]},a=()=>{this.btnDisabledList[s]=!1,this.btnDisabled=!1};n&&(this.btnDisabledList[s]=!0,this.btnDisabled=!0,core.isBlank(t[this.rowKey])?this.$emit("row-save",t,r,a):this.$emit("row-update",t,s,r,a))},rowCellEdit(t,s){t.$cellEdit=!0,this.cascaderFormList[s]=deepClone(t),this.cascaderDicList[s]=deepClone(this.cascaderDIC[s])},validateCellForm(){return new Promise(t=>{this.$refs.cellForm.validate((s,n)=>{t(n)})})},validateCellField(t){let s=!0;for(const n of this.$refs.cellForm.fields)if(n.prop.split(".")[1]==t&&this.$refs.cellForm.validateField(n.prop,r=>{r&&(s=!1)}),!s)break;return s},rowAdd(){this.$refs.dialogForm.show("add")},rowSave(){return this.$refs.dialogForm.$refs.tableForm.submit()},rowUpdate(){return this.$refs.dialogForm.$refs.tableForm.submit()},closeDialog(){return this.$refs.dialogForm.closeDialog()},getPropRef(t){return this.$refs.dialogForm.$refs.tableForm.getPropRef(t)},setVal(){this.$emit("input",this.tableForm),this.$emit("change",this.tableForm)},rowEdit(t,s){this.tableForm=deepClone(t),this.tableIndex=s,this.setVal(),this.$refs.dialogForm.show("edit")},rowCopy(t){this.tableForm=deepClone(t),delete this.tableForm[this.rowKey],this.tableIndex=-1,this.setVal(),this.$refs.dialogForm.show("add")},rowView(t,s){this.tableForm=deepClone(t),this.tableIndex=s,this.setVal(),this.$refs.dialogForm.show("view")},rowDel(t,s){this.$emit("row-del",t,s,()=>{const{parentList:n,index:r}=this.findData(t[this.rowKey]);n&&n.splice(r,1)})},tableSpanMethod(t){if(typeof this.spanMethod=="function")return this.spanMethod(t)},tableSummaryMethod(t){const s={};if(typeof this.summaryMethod=="function")return this.summaryMethod(t);const{columns:n,data:r}=t,a=[];return n.length>0&&n.forEach((o,l)=>{const c=this.sumColumnList.find(u=>u.name===o.property);if(c){const u=c.decimals||2,d=c.label||"";switch(c.type){case"count":a[l]=d+r.length;break;case"avg":const p=r.map(_=>Number(_[o.property]));let h=1;a[l]=p.reduce((_,x)=>{const b=Number(x);return isNaN(b)?_:(_*(h-1)+x)/h++},0),a[l]=d+a[l].toFixed(u);break;case"sum":const m=r.map(_=>Number(_[o.property]));a[l]=m.reduce((_,x)=>{const b=Number(x);return isNaN(b)?_:_+x},0),a[l]=d+a[l].toFixed(u);break}s[o.property]=a[l]}else a[l]=""}),this.sumsList=s,a},tableDrop(t,s,n){if(this.isSortable!==!0){if(t==="row"&&!this.isRowSort)return;if(t==="column"&&!this.isColumnSort)return}if(!window.Sortable){packages$1.logs("Sortable");return}window.Sortable.create(s,{ghostClass:config$1.ghostClass,chosenClass:config$1.ghostClass,animation:500,delay:0,onEnd:r=>n(r)})},findData(t){let s={};const n=(r,a)=>{r.forEach((o,l)=>{o[this.rowKey]===t&&(s={item:o,index:l,parentList:r,parent:a}),o[this.childrenKey]&&n(o[this.childrenKey],o)})};return n(this.list),s}}},__cssModules$21={};var __component__$21=normalizeComponent(__vue2_script$21,render$1X,staticRenderFns$1X,!1,__vue2_injectStyles$21,null,null,null);function __vue2_injectStyles$21(t){for(let s in __cssModules$21)this[s]=__cssModules$21[s]}const FyCurd=function(){return __component__$21.exports}();var render$1W=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-date"},[n("ElDatePicker",{attrs:{type:t.type,"popper-class":t.popperClass,size:t.size,editable:t.editable,"unlink-panels":t.unlinkPanels,readonly:t.readonly,"default-value":t.defaultValue,"default-time":t.defaultTime,"range-separator":t.rangeSeparator,"start-placeholder":t.startPlaceholder||"开始","end-placeholder":t.endPlaceholder||"结束",format:t.format,clearable:t.clearableVal,"picker-options":t.pickerOptions,"value-format":t.valueFormat,placeholder:t.placeholder,disabled:t.disabled},on:{blur:t.handleBlur,focus:t.handleFocus},nativeOn:{click:function(r){return t.handleClick.apply(null,arguments)}},model:{value:t.text,callback:function(r){t.text=r},expression:"text"}})],1)},staticRenderFns$1W=[];const FyDate_vue_vue_type_style_index_0_lang="",__vue2_script$20={name:"FyDate",mixins:[props,event],props:{editable:Boolean,unlinkPanels:Boolean,startPlaceholder:String,endPlaceholder:String,rangeSeparator:String,defaultValue:[String,Array],defaultTime:[String,Array],pickerOptions:Object,type:{type:String,default:"date"},valueFormat:String,format:String}},__cssModules$20={};var __component__$20=normalizeComponent(__vue2_script$20,render$1W,staticRenderFns$1W,!1,__vue2_injectStyles$20,null,null,null);function __vue2_injectStyles$20(t){for(let s in __cssModules$20)this[s]=__cssModules$20[s]}const FyDate=function(){return __component__$20.exports}();var render$1V=function(){var t=this,s=t.$createElement,n=t._self._c||s;return t.boxVisible?n(t.dialogType,t._b({tag:"Component",class:{"dialog-form":!t.isView},attrs:{"lock-scroll":"","show-full-screen":"","destroy-on-close":t.crud.tableOption.dialogDestroy,"wrapper-closable":t.crud.tableOption.dialogClickModal,direction:t.direction,"custom-class":t.crud.tableOption.dialogCustomClass,"modal-append-to-body":"","append-to-body":"",top:t.dialogTop,title:t.dialogTitle,"close-on-press-escape":t.crud.tableOption.dialogEscape,"close-on-click-modal":t.optVal(t.crud.tableOption.dialogClickModal,!1),modal:t.crud.tableOption.dialogModal,"show-close":t.crud.tableOption.dialogCloseBtn,visible:t.boxVisible,"before-close":t.hide},on:{"update:visible":function(r){t.boxVisible=r}}},"Component",t.params,!1),[n("FyForm",t._b({ref:"tableForm",attrs:{status:t.disabled,option:t.option},on:{"update:status":function(r){t.disabled=r},change:t.handleChange,submit:t.handleSubmit,"reset-change":t.hide,"tab-click":t.handleTabClick,error:t.handleError},scopedSlots:t._u([t._l(t.crud.formSlot,function(r){return{key:t.getSlotName(r),fn:function(a){return[t._t(r,null,null,Object.assign(a,{type:t.boxType}))]}}})],null,!0),model:{value:t.crud.tableForm,callback:function(r){t.$set(t.crud,"tableForm",r)},expression:"crud.tableForm"}},"FyForm",t.uploadFun({},t.crud),!1)),n("span",{staticClass:"avue-dialog__footer",class:`avue-dialog__footer--${t.dialogMenuPosition}`},[t.optVal(t.option.submitBtn,!0)&&!t.isView?n("ElButton",{attrs:{loading:t.disabled,size:t.crud.controlSize,icon:t.option.submitIcon,type:"primary"},on:{click:t.submit}},[t._v(t._s(t.option.submitText))]):t._e(),t.optVal(t.option.emptyBtn,!0)&&!t.isView?n("ElButton",{attrs:{disabled:t.disabled,size:t.crud.controlSize,icon:t.option.emptyIcon},on:{click:t.reset}},[t._v(t._s(t.option.emptyText))]):t._e(),t._t("menuForm",null,{disabled:t.disabled,size:t.crud.controlSize,type:t.boxType})],2)],1):t._e()},staticRenderFns$1V=[];const FyDialogForm_vue_vue_type_style_index_0_lang="",__vue2_script$1$={name:"FyDialogForm",inject:["crud"],props:{value:{type:Object,default:()=>({})}},data(){return{disabled:!1,boxType:"",fullscreen:!1,size:null,boxVisible:!1}},computed:{option(){const t=deepClone(this.crud.tableOption);return t.boxType=this.boxType,t.column=deepClone(this.crud.propOption),t.menuBtn=!1,this.isAdd?(t.submitBtn=t.saveBtn,t.submitText=this.crud.menuIcon("saveBtn"),t.submitIcon=this.crud.getBtnIcon("saveBtn")):this.isEdit?(t.submitBtn=t.updateBtn,t.submitText=this.crud.menuIcon("updateBtn"),t.submitIcon=this.crud.getBtnIcon("updateBtn")):this.isView&&(t.detail=!0),t.emptyBtn=t.cancelBtn,t.emptyText=this.crud.menuIcon("cancelBtn"),t.emptyIcon=this.crud.getBtnIcon("cancelBtn"),this.crud.isGroup||(t.dicFlag=!1,t.dicData=this.crud.DIC),core.isBlank(t.dicFlag)||t.column.forEach(s=>{s.boxType=this.boxType,s.dicFlag=s.dicFlag||t.dicFlag}),t},isView(){return this.boxType==="view"},isAdd(){return this.boxType==="add"},isEdit(){return this.boxType==="edit"},direction(){return this.crud.tableOption.dialogDirection},width(){return optVal(`${this.crud.tableOption.dialogWidth}`,this.crud.isMobile?"100%":`${config$1.dialogWidth}`)},dialogType(){return this.isDrawer?"ElDrawer":"ElementDialog"},dialogTop(){return!this.isDrawer&&!this.fullscreen?this.crud.tableOption.dialogTop:"0"},isDrawer(){return this.crud.tableOption.dialogType==="drawer"},params(){return this.isDrawer?{size:this.fullscreen?"100%":this.width,direction:this.crud.tableOption.dialogDirection}:{width:this.width,fullscreen:this.fullscreen}},dialogTitle(){const t=`${this.boxType}`;if(!core.isBlank(this.boxType)){const s={tipStartTitle:"当前表格已选择",tipEndTitle:"项",editTitle:"编 辑",copyTitle:"复 制",addTitle:"新 增",viewTitle:"查 看",filterTitle:"过滤条件",showTitle:"列显隐"};return this.crud.tableOption[`${t}Title`]||s[`${t}Title`]}return""},dialogMenuPosition(){return this.crud.option.dialogMenuPosition||"right"}},methods:{optVal,uploadFun,submit(){this.$refs.tableForm.submit()},reset(){this.$refs.tableForm.resetForm(!1)},getSlotName(t){return t.replace("Form","")},initFun(){["clearValidate","validate","resetForm","validateField"].forEach(t=>{this.crud[t]=this.$refs.tableForm[t]})},handleChange(){this.crud.setVal()},handleTabClick(t,s){this.crud.$emit("tab-click",t,s)},handleFullScreen(){this.isDrawer&&(core.isBlank(this.size)?this.size="100%":this.size=""),this.fullscreen=!this.fullscreen},handleError(t){this.crud.$emit("error",t)},handleSubmit(t,s){this.isAdd?this.rowSave(s):this.isEdit&&this.rowUpdate(s)},rowSave(t){this.crud.$emit("row-save",filterParams(this.crud.tableForm,["$"]),this.closeDialog,t)},rowUpdate(t){this.crud.$emit("row-update",filterParams(this.crud.tableForm,["$"]),this.crud.tableIndex,this.closeDialog,t)},closeDialog(t){t=deepClone(t),t&&(()=>{if(this.isEdit){const{parentList:n,index:r}=this.crud.findData(t[this.crud.rowKey]);if(n){const a=n.splice(r,1)[0];t[this.crud.childrenKey]=a[this.crud.childrenKey],n.splice(r,0,t)}}else if(this.isAdd){const{item:n}=this.crud.findData(t[this.crud.rowParentKey]);n?(n[this.crud.childrenKey]||this.$set(n,this.crud.childrenKey,[]),this.crud.tableOption.lazy&&this.$set(n,this.crud.hasChildrenKey,!0),n[this.crud.childrenKey].push(t)):this.crud.list.push(t)}})(),this.hide()},hide(t){const s=()=>{t&&t(),this.crud.tableIndex=-1,this.crud.tableForm={},this.crud.setVal(),this.boxVisible=!1};typeof this.crud.beforeClose=="function"?this.crud.beforeClose(s,this.boxType):s()},show(t){this.boxType=t;const s=()=>{this.fullscreen=this.crud.tableOption.dialogFullscreen,this.boxVisible=!0,this.$nextTick(()=>{this.initFun()})};typeof this.crud.beforeOpen=="function"?this.crud.beforeOpen(s,this.boxType):s()}}},__cssModules$1$={};var __component__$1$=normalizeComponent(__vue2_script$1$,render$1V,staticRenderFns$1V,!1,__vue2_injectStyles$1$,null,null,null);function __vue2_injectStyles$1$(t){for(let s in __cssModules$1$)this[s]=__cssModules$1$[s]}const FyDialogForm=function(){return __component__$1$.exports}();var render$1U=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{class:{"avue-draggable__active":(t.active||t.overActive)&&!t.readonly,"avue-draggable__move":t.moveActive,"avue-draggable__click":t.disabled},style:t.styleName,on:{mousedown:function(r){return r.stopPropagation(),t.handleMove.apply(null,arguments)},mouseover:function(r){return r.stopPropagation(),t.handleOver.apply(null,arguments)},mouseout:function(r){return r.stopPropagation(),t.handleOut.apply(null,arguments)}}},[n("ElInput",{ref:"input",staticClass:"avue-draggable__focus",model:{value:t.value,callback:function(r){t.value=r},expression:"value"}}),n("div",{ref:"wrapper",staticClass:"avue-draggable__wrapper"},[(t.active||t.overActive||t.moveActive)&&!t.readonly?[n("div",{staticClass:"avue-draggable__line['left'])",style:t.styleLineName}),n("div",{staticClass:"avue-draggable__line['top'])",style:t.styleLineName}),n("div",{staticClass:"avue-draggable__line['label'])",style:t.styleLabelName},[t._v(" "+t._s(t.baseLeft)+","+t._s(t.baseTop)+" ")])]:t._e(),t.readonly?t._e():[t._l(t.rangeList,function(r,a){return[t.active?n("div",{key:a,staticClass:"avue-draggable__range[item.classname])",style:[t.styleRangeName,t.getRangeStyle(r.classname)],on:{mousedown:function(o){return o.stopPropagation(),t.rangeMove(o,r.classname)}}}):t._e()]})],n("div",{directives:[{name:"show",rawName:"v-show",value:t.active||t.overActive,expression:"active || overActive"}],staticClass:"avue-draggable__menu",style:t.styleMenuName},[t._t("menu",null,{zIndex:t.zIndex,index:t.index})],2),n("div",{ref:"item",staticClass:"avue-draggable__item"},[t._t("default")],2),!t.disabled&&t.mask?n("div",{staticClass:"avue-draggable__mask"}):t._e()],2)],1)},staticRenderFns$1U=[];const FyDraggable_vue_vue_type_style_index_0_lang="",__vue2_script$1_={name:"FyDraggable",props:{index:{type:[String,Number]},mask:{type:Boolean,default:!0},scale:{type:Number,default:1},readonly:{type:Boolean,default:!1},resize:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},lock:{type:Boolean,default:!1},step:{type:Number,default:1},zIndex:{type:[Number,String],default:1},left:{type:Number,default:0},top:{type:Number,default:0},width:{type:Number},height:{type:Number}},data(){return{first:!0,value:"",baseWidth:0,baseHeight:0,baseLeft:0,baseTop:0,children:{},moveActive:!1,overActive:!1,rangeActive:!1,active:!1,keyDown:null,rangeList:[{classname:"left"},{classname:"right"},{classname:"top"},{classname:"bottom"},{classname:"top-left"},{classname:"top-right"},{classname:"bottom-left"},{classname:"bottom-right"}]}},computed:{scaleVal(){return this.scale},styleMenuName(){return{transformOrigin:"0 0",transform:`scale(${this.scaleVal})`}},styleLineName(){return{borderWidth:setPx(this.scaleVal)}},styleRangeName(){const t=10*this.scaleVal;return{width:setPx(t),height:setPx(t)}},styleLabelName(){return{fontSize:setPx(18*this.scaleVal)}},styleName(){return Object.assign((()=>this.active?Object.assign({zIndex:9999},this.styleLineName):{zIndex:this.zIndex})(),{top:setPx(this.baseTop),left:setPx(this.baseLeft),width:setPx(this.baseWidth),height:setPx(this.baseHeight)})}},watch:{active(t){t?this.handleKeydown():document.onkeydown=this.keyDown},width(t){this.baseWidth=getFixed(t)||this.children.offsetWidth},height(t){this.baseHeight=getFixed(t)||this.children.offsetHeight},left(t){this.baseLeft=getFixed(t)},top(t){this.baseTop=getFixed(t)},baseWidth(t){this.$refs.wrapper.style.width=setPx(t),this.resize&&this.children.style&&(this.children.style.width=setPx(t))},baseHeight(t){this.$refs.wrapper.style.height=setPx(t),this.resize&&this.children.style&&(this.children.style.height=setPx(t))},baseLeft(t,s){this.first||this.setMove(t-s,0)},baseTop(t,s){this.first||this.setMove(0,t-s)}},mounted(){this.init()},methods:{init(){this.children=this.$refs.item.firstChild,this.baseWidth=getFixed(this.width)||this.children.offsetWidth,this.baseHeight=getFixed(this.height)||this.children.offsetHeight,this.baseLeft=getFixed(this.left),this.baseTop=getFixed(this.top),this.keyDown=document.onkeydown,this.$nextTick(()=>{this.first=!1})},setMove(t,s){this.$emit("move",{index:this.index,left:t,top:s})},setLeft(t){this.baseLeft=t},setTop(t){this.baseTop=t},getRangeStyle(t){const s=10*this.scaleVal/2,n={};return t.split("-").forEach(a=>{n[a]=setPx(-s)}),n},setOverActive(t){this.overActive=t},setActive(t){this.active=t},rangeMove(t,s){if(this.disabled||this.lock)return;let n,r,a,o,l,c;this.rangeActive=!0,this.handleMouseDown();let u=t.clientX,d=t.clientY;document.onmousemove=p=>{this.moveActive=!0,s==="right"?(n=!0,r=!1):s==="left"?(n=!0,a=!0,l=!0,r=!1):s==="top"?(n=!1,r=!0,o=!0,c=!0):s==="bottom"?(n=!1,r=!0):s==="bottom-right"?(n=!0,r=!0):s==="bottom-left"?(n=!0,r=!0,a=!0,l=!0):s==="top-right"?(n=!0,r=!0,o=!0,c=!0):s==="top-left"&&(n=!0,r=!0,a=!0,l=!0,o=!0,c=!0);const h=p.clientX-u,m=p.clientY-d;if(u=p.clientX,d=p.clientY,n){let _=h*this.step;l&&(_=-_),a&&(this.baseLeft=getFixed(this.baseLeft-_)),this.baseWidth=getFixed(this.baseWidth+_)}if(r){let _=m*this.step;c&&(_=-_),o&&(this.baseTop=getFixed(this.baseTop-_)),this.baseHeight=getFixed(this.baseHeight+_)}},this.handleClear()},handleOut(){this.overActive=!1,this.$emit("out",{index:this.index,width:this.baseWidth,height:this.baseHeight,left:this.baseLeft,top:this.baseTop})},handleOver(){this.disabled||(this.overActive=!0,this.$emit("over",{index:this.index,width:this.baseWidth,height:this.baseHeight,left:this.baseLeft,top:this.baseTop}))},handleMove(t){if(this.disabled||this.lock)return;setTimeout(()=>{this.$refs.input.focus()}),this.active=!0,this.handleMouseDown();let s=t.clientX,n=t.clientY;document.onmousemove=r=>{const a=r.clientX-s,o=r.clientY-n;s=r.clientX,n=r.clientY,this.baseLeft=getFixed(this.baseLeft+a*this.step),this.baseTop=getFixed(this.baseTop+o*this.step)},this.handleClear()},handleClear(){document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null,this.handleMouseUp()}},handleKeydown(){document.onkeydown=t=>{const s=t||window.event||arguments.callee.caller.arguments[0],n=1*this.step;this.$refs.input.focused&&(s&&s.keyCode==38?this.baseTop=getFixed(this.baseTop-n):s&&s.keyCode==37?this.baseLeft=getFixed(this.baseLeft-n):s&&s.keyCode==40?this.baseTop=getFixed(this.baseTop+n):s&&s.keyCode==39&&(this.baseLeft=getFixed(this.baseLeft+n)),t.stopPropagation(),t.preventDefault(),this.$emit("blur",{index:this.index,width:this.baseWidth,height:this.baseHeight,left:this.baseLeft,top:this.baseTop}),this.keyDown&&this.keyDown(t))}},handleMouseDown(){this.moveActive=!0,this.$emit("focus",{index:this.index,width:this.baseWidth,height:this.baseHeight,left:this.baseLeft,top:this.baseTop})},handleMouseUp(){this.moveActive=!1,this.rangeActive=!1,this.$emit("blur",{index:this.index,width:this.baseWidth,height:this.baseHeight,left:this.baseLeft,top:this.baseTop})}}},__cssModules$1_={};var __component__$1_=normalizeComponent(__vue2_script$1_,render$1U,staticRenderFns$1U,!1,__vue2_injectStyles$1_,null,null,null);function __vue2_injectStyles$1_(t){for(let s in __cssModules$1_)this[s]=__cssModules$1_[s]}const FyDraggable=function(){return __component__$1_.exports}();function _objectDestructuringEmpty(t){if(t==null)throw new TypeError("Cannot destructure undefined")}var render$1T=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{key:t.reload,staticClass:"avue-dynamic"},[t.isForm?[n("div",{staticClass:"avue-dynamic__header"},[!t.readonly&&!t.disabled&&!t.addBtn?n("ElButton",{attrs:{size:"mini",circle:"",disabled:t.disabled,type:"primary",icon:"el-icon-plus"},on:{click:t.addRow}}):t._e()],1),n("div",t._l(t.text,function(r,a){return n("div",{key:a,staticClass:"avue-dynamic__row",on:{mouseenter:function(o){return t.cellMouseenter({$index:a})},mouseleave:function(o){return t.cellMouseLeave({$index:a})}}},[!t.readonly&&!t.disabled&&!t.delBtn&&t.hoverList[a]?n("ElButton",{staticClass:"avue-dynamic__menu",attrs:{type:"danger",size:"mini",disabled:t.disabled,icon:"el-icon-delete",circle:""},on:{click:function(o){return t.delRow(r.$index)}}}):t._e(),n("FyForm",{key:a,ref:"main",refInFor:!0,attrs:{option:t.deepClone(t.option)},scopedSlots:t._u([{key:"_index",fn:function(o){return _objectDestructuringEmpty(o),n("div",{},[n("span",[t._v(t._s(r.$index+1))])])}},t._l(t.columnSlot,function(o){return{key:o,fn:function(l){return[t._t(o,null,null,Object.assign(l,{row:t.text[a]}))]}}})],null,!0),model:{value:t.text[a],callback:function(o){t.$set(t.text,a,o)},expression:"text[index]"}})],1)}),0)]:t.isCrud?n("FyCurd",{ref:"main",attrs:{option:t.option,disabled:t.disabled,data:t.text},on:{"cell-mouse-enter":t.cellMouseenter,"cell-mouse-leave":t.cellMouseLeave,"selection-change":t.handleSelectionChange,"sortable-change":t.handleSortableChange},scopedSlots:t._u([{key:"_indexHeader",fn:function(){return[!(t.addBtn||t.readonly)&&t.maxFlag?n("ElButton",{attrs:{type:"primary",size:"mini",disabled:t.disabled,icon:"el-icon-plus",circle:""},on:{click:function(r){return t.addRow()}}}):t._e()]},proxy:!0},{key:"_index",fn:function(r){return[!t.readonly&&!t.disabled&&!t.delBtn&&t.hoverList[r.row.$index]?n("ElButton",{attrs:{type:"danger",size:"mini",disabled:t.disabled,icon:"el-icon-delete",circle:""},on:{click:function(a){return t.delRow(r.row.$index)}}}):n("div",[t._v(" "+t._s(r.row.$index+1)+" ")])]}},t._l(t.columnSlot,function(r){return{key:t.getSlotName({prop:r},"F"),fn:function(a){return[t._t(r,null,null,a)]}}})],null,!0)}):t._e()],2)},staticRenderFns$1T=[];const FyDynamic_vue_vue_type_style_index_0_lang="",__vue2_script$1Z={name:"FyDynamic",mixins:[props,event],props:{max:Number,columnSlot:{type:Array,default:()=>[]},children:{type:Object,default:()=>({})}},data(){return{reload:Math.random(),hoverList:[]}},computed:{textLen(){return this.text.length},maxFlag(){return this.max?this.text.length!==this.max:!0},showIndex(){return optVal(this.children.index,!0)},showType(){return this.children.type||"crud"},isForm(){return this.showType==="form"},isCrud(){return this.showType==="crud"},selectionChange(){return this.children.selectionChange},sortableChange(){return this.children.sortableChange},rowAdd(){return this.children.rowAdd},rowDel(){return this.children.rowDel},viewBtn(){return this.children.viewBtn===!1},addBtn(){return this.children.addBtn===!1},delBtn(){return this.children.delBtn===!1},valueOption(){const t={};return this.columnOption.forEach(s=>{s.value&&(t[s.prop]=s.value)}),t},rulesOption(){const t={};return this.columnOption.forEach(s=>{s.rules&&(t[s.prop]=s.rules)}),t},columnOption(){return this.children.column||[]},option(){return Object.assign({border:!0,header:!1,menu:!1,size:this.size,disabled:this.disabled,readonly:this.readonly,emptyBtn:!1,submitBtn:!1},(()=>{const t=deepClone(this.children);return delete t.column,t})(),(()=>{const t=[{label:this.children.indexLabel||"#",prop:"_index",display:this.showIndex,hide:!this.showIndex,fixed:!0,align:"center",headerAlign:"center",span:24,width:50}];return this.columnOption.forEach(s=>{t.push(Object.assign(s,{cell:optVal(s.cell,this.isCrud)}))}),{column:t}})())}},watch:{text(){this.initData()}},mounted(){this.initData()},methods:{deepClone,handleSelectionChange(t){this.selectionChange&&this.selectionChange(t)},handleSortableChange(t,s,n,r){this.sortableChange&&this.sortableChange(t,s,n,r)},cellMouseenter(t){const s=t.$index;this.mouseoverRow(s)},cellMouseLeave(t){const s=t.$index;this.mouseoutRow(s)},initData(){this.text.forEach((t,s)=>{t=Object.assign(t,{$cellEdit:!0,$index:s})})},mouseoverRow(t){this.delBtn||(this.flagList(),this.$set(this.hoverList,t,!0))},mouseoutRow(t){this.delBtn||(this.flagList(),this.$set(this.hoverList,t,!1))},flagList(){this.hoverList.forEach((t,s)=>{this.hoverList[s]=!1})},delRow(t){const s=()=>{const n=deepClone(this.text);n.splice(t,1),this.text=n,this.reload=Math.random()};typeof this.rowDel=="function"?this.rowDel(this.text[t],s):s()},addRow(){const t=(s={})=>{s=Object.assign(this.valueOption,s,{$index:this.textLen}),this.isCrud?this.$refs.main.rowCellAdd(s):this.isForm&&this.text.push(s)};typeof this.rowAdd=="function"?this.rowAdd(t):t()}}},__cssModules$1Z={};var __component__$1Z=normalizeComponent(__vue2_script$1Z,render$1T,staticRenderFns$1T,!1,__vue2_injectStyles$1Z,null,null,null);function __vue2_injectStyles$1Z(t){for(let s in __cssModules$1Z)this[s]=__cssModules$1Z[s]}const FyDynamic=function(){return __component__$1Z.exports}();var render$1S=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-empty"},[n("div",{staticClass:"avue-empty__image",style:{height:t.setPx(t.size)}},[n("img",{attrs:{src:t.image,alt:""}})]),n("p",{staticClass:"avue-empty__desc"},[t._v(" "+t._s(t.desc)+" ")]),t._t("default")],2)},staticRenderFns$1S=[];const FyEmpty_vue_vue_type_style_index_0_lang="",__vue2_script$1Y={name:"FyEmpty",props:{size:{type:String},image:{type:String,default:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTg0IiBoZWlnaHQ9IjE1MiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjQgMzEuNjcpIj4KICAgICAgPGVsbGlwc2UgZmlsbC1vcGFjaXR5PSIuOCIgZmlsbD0iI0Y1RjVGNyIgY3g9IjY3Ljc5NyIgY3k9IjEwNi44OSIgcng9IjY3Ljc5NyIgcnk9IjEyLjY2OCIvPgogICAgICA8cGF0aCBkPSJNMTIyLjAzNCA2OS42NzRMOTguMTA5IDQwLjIyOWMtMS4xNDgtMS4zODYtMi44MjYtMi4yMjUtNC41OTMtMi4yMjVoLTUxLjQ0Yy0xLjc2NiAwLTMuNDQ0LjgzOS00LjU5MiAyLjIyNUwxMy41NiA2OS42NzR2MTUuMzgzaDEwOC40NzVWNjkuNjc0eiIgZmlsbD0iI0FFQjhDMiIvPgogICAgICA8cGF0aCBkPSJNMTAxLjUzNyA4Ni4yMTRMODAuNjMgNjEuMTAyYy0xLjAwMS0xLjIwNy0yLjUwNy0xLjg2Ny00LjA0OC0xLjg2N0gzMS43MjRjLTEuNTQgMC0zLjA0Ny42Ni00LjA0OCAxLjg2N0w2Ljc2OSA4Ni4yMTR2MTMuNzkyaDk0Ljc2OFY4Ni4yMTR6IiBmaWxsPSJ1cmwoI2xpbmVhckdyYWRpZW50LTEpIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMy41NikiLz4KICAgICAgPHBhdGggZD0iTTMzLjgzIDBoNjcuOTMzYTQgNCAwIDAgMSA0IDR2OTMuMzQ0YTQgNCAwIDAgMS00IDRIMzMuODNhNCA0IDAgMCAxLTQtNFY0YTQgNCAwIDAgMSA0LTR6IiBmaWxsPSIjRjVGNUY3Ii8+CiAgICAgIDxwYXRoIGQ9Ik00Mi42NzggOS45NTNoNTAuMjM3YTIgMiAwIDAgMSAyIDJWMzYuOTFhMiAyIDAgMCAxLTIgMkg0Mi42NzhhMiAyIDAgMCAxLTItMlYxMS45NTNhMiAyIDAgMCAxIDItMnpNNDIuOTQgNDkuNzY3aDQ5LjcxM2EyLjI2MiAyLjI2MiAwIDEgMSAwIDQuNTI0SDQyLjk0YTIuMjYyIDIuMjYyIDAgMCAxIDAtNC41MjR6TTQyLjk0IDYxLjUzaDQ5LjcxM2EyLjI2MiAyLjI2MiAwIDEgMSAwIDQuNTI1SDQyLjk0YTIuMjYyIDIuMjYyIDAgMCAxIDAtNC41MjV6TTEyMS44MTMgMTA1LjAzMmMtLjc3NSAzLjA3MS0zLjQ5NyA1LjM2LTYuNzM1IDUuMzZIMjAuNTE1Yy0zLjIzOCAwLTUuOTYtMi4yOS02LjczNC01LjM2YTcuMzA5IDcuMzA5IDAgMCAxLS4yMjItMS43OVY2OS42NzVoMjYuMzE4YzIuOTA3IDAgNS4yNSAyLjQ0OCA1LjI1IDUuNDJ2LjA0YzAgMi45NzEgMi4zNyA1LjM3IDUuMjc3IDUuMzdoMzQuNzg1YzIuOTA3IDAgNS4yNzctMi40MjEgNS4yNzctNS4zOTNWNzUuMWMwLTIuOTcyIDIuMzQzLTUuNDI2IDUuMjUtNS40MjZoMjYuMzE4djMzLjU2OWMwIC42MTctLjA3NyAxLjIxNi0uMjIxIDEuNzg5eiIgZmlsbD0iI0RDRTBFNiIvPgogICAgPC9nPgogICAgPHBhdGggZD0iTTE0OS4xMjEgMzMuMjkybC02LjgzIDIuNjVhMSAxIDAgMCAxLTEuMzE3LTEuMjNsMS45MzctNi4yMDdjLTIuNTg5LTIuOTQ0LTQuMTA5LTYuNTM0LTQuMTA5LTEwLjQwOEMxMzguODAyIDguMTAyIDE0OC45MiAwIDE2MS40MDIgMCAxNzMuODgxIDAgMTg0IDguMTAyIDE4NCAxOC4wOTdjMCA5Ljk5NS0xMC4xMTggMTguMDk3LTIyLjU5OSAxOC4wOTctNC41MjggMC04Ljc0NC0xLjA2Ni0xMi4yOC0yLjkwMnoiIGZpbGw9IiNEQ0UwRTYiLz4KICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE0OS42NSAxNS4zODMpIiBmaWxsPSIjRkZGIj4KICAgICAgPGVsbGlwc2UgY3g9IjIwLjY1NCIgY3k9IjMuMTY3IiByeD0iMi44NDkiIHJ5PSIyLjgxNSIvPgogICAgICA8cGF0aCBkPSJNNS42OTggNS42M0gwTDIuODk4LjcwNHpNOS4yNTkuNzA0aDQuOTg1VjUuNjNIOS4yNTl6Ii8+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4K"},desc:{type:String,default:"暂无数据"}},methods:{setPx}},__cssModules$1Y={};var __component__$1Y=normalizeComponent(__vue2_script$1Y,render$1S,staticRenderFns$1S,!1,__vue2_injectStyles$1Y,null,null,null);function __vue2_injectStyles$1Y(t){for(let s in __cssModules$1Y)this[s]=__cssModules$1Y[s]}const FyEmpty=function(){return __component__$1Y.exports}(),mock=(t,s,n,r)=>{if(!r)return;if(!window.Mock){packages$1.logs("mock");return}const o=(window.Mock||{}).Random,l={};function c({en:b}){return b?o.name(!0):o.cname()}function u({max:b,min:g,precision:y}){if(y){const C=`${o.float(g,b,y)}`,$=C.indexOf(".")+1;return Number(C.substring(0,$+y))}else return o.integer(g,b)}function d({header:b,footer:g}){let y=o.url();const C=y.indexOf("://");return b===!1?y=y.substring(C+3):y=`http://${y.substring(C+3)}`,y}function p({format:b,now:g}){return g?o.now(b):o.datetime(b)}function h({min:b,max:g}){return o.csentence(b,g)}function m(){return o.county(!0)}function _({dic:b,props:g,columnType:y,multiple:C}){const $=g.value||"value",w=b.length;if(["checkbox"].includes(y)||C){const E=u({min:1,max:w}),k=[];for(let M=0;M<E;M++){let I=!0;for(;I;){const T=u({min:0,max:w-1}),F=b[T][$];k.includes(F)||(k.push(F),I=!1)}}return k}else{const E=u({min:0,max:w-1});return b[E][$]}}function x(){Object.keys(t).forEach(b=>{const g=t[b];if(g.mock&&typeof g.mock=="object"){const y=g.mock;switch(y.dic=typeof g.dicData=="string"?s[g.dicData]:g.dicData||[],y.props=g.props||{},y.columnType=g.type,y.multiple=g.multiple,y.type){case"name":l[g.prop]=c(y);break;case"number":l[g.prop]=u(y);break;case"datetime":l[g.prop]=p(y);break;case"word":l[g.prop]=h(y);break;case"url":l[g.prop]=d(y);break;case"county":l[g.prop]=m();break;case"dic":l[g.prop]=_(y);break}}else g.mock instanceof Function&&(l[g.prop]=g.mock(n))})}return x(),l};var render$1R=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{class:["avue-form",{"avue--detail":t.isDetail}],style:{width:t.setPx(t.parentOption.formWidth,"100%")}},[n("ElForm",{ref:"form",attrs:{"status-icon":t.parentOption.statusIcon,model:t.form,"label-suffix":t.labelSuffix,size:t.$AVUE.formSize||t.controlSize,"label-position":t.parentOption.labelPosition,"label-width":t.setPx(t.parentOption.labelWidth,t.labelWidth)},nativeOn:{submit:function(r){r.preventDefault()}}},[n("ElRow",{class:{"avue-form__tabs":t.isTabs},attrs:{span:24}},[t._l(t.columnOption,function(r,a){return n("FormGroup",{key:r.prop,attrs:{tabs:t.isTabs,arrow:r.arrow,collapse:r.collapse,display:t.vaildDisplay(r),icon:r.icon,index:a,header:!t.isTabs,active:t.activeName,label:r.label},on:{change:t.handleGroupClick},scopedSlots:t._u([t.getSlotName(r,"H",t.$scopedSlots)?{key:"header",fn:function(){return[t._t(t.getSlotName(r,"H"),null,{column:r})]},proxy:!0}:null],null,!0)},[t.isTabs&&a===1?n("ElTabs",{staticClass:"avue-form__tabs",attrs:{slot:"tabs",type:t.tabsType},on:{"tab-click":t.handleTabClick},slot:"tabs",model:{value:t.activeName,callback:function(o){t.activeName=o},expression:"activeName"}},[t._l(t.columnOption,function(o,l){return[t.vaildDisplay(o)&&l!==0?n("ElTabPane",{key:l,attrs:{name:`${l}`}},[n("span",{attrs:{slot:"label"},slot:"label"},[t.getSlotName(o,"H",t.$scopedSlots)?t._t(t.getSlotName(o,"H"),null,{column:t.column}):[n("i",{class:o.icon},[t._v(" ")]),t._v(" "+t._s(o.label)+" ")]],2)]):t._e()]})],2):t._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:t.isGroupShow(r,a),expression:"isGroupShow(item, index)"}],class:["avue-form__group",{"avue-form__group--flex":r.flex===!1}]},[t._l(r.column,function(o,l){return[t.vaildDisplay(o)?n("ElCol",{key:l,class:["avue-form__row",{"avue--detail avue--detail__column":t.vaildDetail(o)},o.className],style:{paddingLeft:t.gutter,paddingRight:t.gutter},attrs:{span:t.getSpan(o),md:t.getSpan(o),sm:o.smSpan||r.smSpan||12,xs:o.xsSpan||r.xmSpan||24,offset:o.offset||r.offset,push:o.push||r.push,pull:o.pull||r.pull}},[n("ElFormItem",{class:`avue-form__item--${o.labelPosition||r.labelPosition||""}`,attrs:{prop:o.prop,label:o.label,rules:o.rules,"label-position":o.labelPosition||r.labelPosition||t.parentOption.labelPosition,"label-width":t.getLabelWidth(o,r)},scopedSlots:t._u([t.getSlotName(o,"L",t.$scopedSlots)?{key:"label",fn:function(){return[t._t(t.getSlotName(o,"L"),null,{column:o,value:t.form[o.prop],readonly:o.readonly||t.readonly,disabled:t.getDisabled(o),size:o.size||t.controlSize,dic:t.DIC[o.prop]})]},proxy:!0}:o.labelTip?{key:"label",fn:function(){return[n("ElTooltip",{staticClass:"item",attrs:{effect:"dark",placement:o.labelTipPlacement||"top-start"}},[n("div",{attrs:{slot:"content"},domProps:{innerHTML:t._s(o.labelTip)},slot:"content"}),n("i",{staticClass:"el-icon-info"})]),n("span",[t._v(" "+t._s(o.label)+t._s(t.labelSuffix))])]},proxy:!0}:null,t.getSlotName(o,"E",t.$scopedSlots)?{key:"error",fn:function(c){return[t._t(t.getSlotName(o,"E"),null,null,Object.assign(c,{column:o,value:t.form[o.prop],readonly:t.readonly||o.readonly,disabled:t.getDisabled(o),size:o.size||t.controlSize,dic:t.DIC[o.prop]}))]}}:null],null,!0)},[n(t.validTip(o)?"div":"elTooltip",{tag:"Component",attrs:{disabled:t.validTip(o),content:o.tip||t.getPlaceholder(o),placement:o.tipPlacement}},[t.$scopedSlots[o.prop]?t._t(o.prop,null,{value:t.form[o.prop],column:o,label:t.form[`$${o.prop}`],size:o.size||t.controlSize,readonly:t.readonly||o.readonly,disabled:t.getDisabled(o),dic:t.DIC[o.prop]}):n("FormTemp",t._b({ref:o.prop,refInFor:!0,attrs:{column:o,dic:t.DIC[o.prop],props:t.parentOption.props,"props-http":t.parentOption.propsHttp,disabled:t.getDisabled(o),readonly:o.readonly||t.readonly,enter:t.parentOption.enter,size:o.size||t.controlSize,"column-slot":t.columnSlot},on:{enter:t.submit,change:function(c){return t.propChange(r.column,o)}},scopedSlots:t._u([t._l(t.getSlotName(o,"T",t.$scopedSlots)?[o]:[],function(c){return{key:t.getSlotName(o,"T"),fn:function(u){return[t._t(t.getSlotName(c,"T"),null,null,u)]}}}),t._l(t.columnSlot,function(c){return{key:c,fn:function(u){return[t._t(c,null,null,u)]}}})],null,!0),model:{value:t.form[o.prop],callback:function(c){t.$set(t.form,o.prop,c)},expression:"form[column.prop]"}},"FormTemp",t.uploadFun(o),!1))],2)],1)],1):t._e(),t.vaildDisplay(o)&&o.row&&o.span!==24&&o.count?n("div",{key:`line${l}`,staticClass:"avue-form__line",style:{width:`${o.count/24*100}%`}}):t._e()]}),!t.isDetail&&!t.isMenu?n("FyFormMenu",{scopedSlots:t._u([{key:"menuForm",fn:function(o){return[t._t("menuForm",null,null,o)]}}],null,!0)}):t._e()],2)],1)}),!t.isDetail&&t.isMenu?n("FyFormMenu",{scopedSlots:t._u([{key:"menuForm",fn:function(r){return[t._t("menuForm",null,null,r)]}}],null,!0)}):t._e()],2)],1)],1)},staticRenderFns$1R=[];const FyForm_vue_vue_type_style_index_0_lang="",__vue2_script$1X={name:"FyForm",mixins:[init],provide(){return{formSafe:this}},props:{uploadBefore:Function,uploadAfter:Function,uploadDelete:Function,uploadPreview:Function,uploadError:Function,uploadExceed:Function,status:{type:Boolean,default:!1},isCrud:{type:Boolean,default:!1},value:{type:Object,required:!0,default:()=>({})}},data(){return{activeName:"",labelWidth:90,allDisabled:!1,optionIndex:[],optionBox:!1,tableOption:{},itemSpanDefault:12,form:{},formCreate:!1,formList:[],formBind:{}}},computed:{columnSlot(){return Object.keys(this.$scopedSlots).filter(t=>!this.propOption.map(s=>s.prop).includes(t))},labelSuffix(){return this.parentOption.labelSuffix||":"},isMenu(){return this.columnOption.length!==1},isDetail(){return this.detail===!0},isTabs(){return this.parentOption.tabs===!0},isAdd(){return this.boxType==="add"},isEdit(){return this.boxType==="edit"},isView(){return this.boxType==="view"},gutter(){return setPx((this.parentOption.gutter||10)/2)},detail(){return this.parentOption.detail},disabled(){return this.parentOption.disabled},readonly(){return this.parentOption.readonly},tabsType(){return this.parentOption.tabsType},columnLen(){return this.columnOption.length},dynamicOption(){const t=[];return this.propOption.forEach(s=>{s.type==="dynamic"&&this.vaildDisplay(s)&&t.push(s)}),t},propOption(){const t=[];return this.columnOption.forEach(s=>{s.display!==!1&&s.column.forEach(n=>{t.push(n)})}),t},parentOption(){return this.tableOption||{}},columnOption(){const t=this.tableOption.column||[],s=deepClone(this.tableOption.group)||[],n=this.tableOption.footer||[];return s.unshift({header:!1,column:t}),n.length!==0&&s.push({header:!1,column:n}),s.forEach(r=>{r.column=r.column||[],r.column.forEach((a,o)=>{a.display!==!1&&!this.isMobile&&(a=calcCount(a,this.itemSpanDefault,o===0))}),r.column=calcCascader(r.column),r.column=r.column.sort((a,o)=>(o.order||0)-(a.order||0))}),s},menuPosition:function(){return this.parentOption.menuPosition?this.parentOption.menuPosition:"center"},boxType:function(){return this.parentOption.boxType},isPrint(){return this.parentOption.printBtn===!0},tabsActive(){return this.tableOption.tabsActive||"1"},isMock(){return this.parentOption.mockBtn===!0}},watch:{value:{handler(){this.formCreate&&this.setForm()},deep:!0},form:{handler(){this.formCreate&&(this.setLabel(),this.setVal())},deep:!0},tabsActive:{handler(){this.activeName=this.tabsActive},immediate:!0},DIC:{handler(){this.setLabel()},deep:!0,immediate:!0},allDisabled:{handler(t){this.$emit("update:status",t)},deep:!0,immediate:!0}},mounted(){setTimeout(()=>{this.dataFormat()})},beforeDestroy(){Object.keys(this.formBind).forEach(t=>{this.formBind[t].forEach(s=>{s()})})},methods:{setPx,deepClone,getComponent,getPlaceholder,uploadFun,getDisabled(t){return this.vaildDetail(t)||this.isDetail||this.vaildDisabled(t)||this.allDisabled},getSpan(t){return t.span||this.parentOption.span||this.itemSpanDefault},isGroupShow(t,s){return this.isTabs?s==this.activeName||s==0:!0},dataFormat(){const t=formInitVal(this.propOption).tableForm,s=this.value,n={};Object.entries(Object.assign(t,s)).forEach(r=>{const a=r[0],o=r[1];core.isBlank(s[a])?n[a]=o:n[a]=s[a]}),this.$set(this,"form",n),this.setLabel(),this.setControl(),this.setVal(),setTimeout(()=>{this.formCreate=!0,this.clearValidate()})},setControl(){this.propOption.forEach(t=>{const s=t.prop,n=t.bind,r=t.control;if(!this.formBind[s]){const a=[];if(n){const o=this.$watch(`form.${s}`,(c,u)=>{c!=u&&setAsVal(this.form,n,c)}),l=this.$watch(`form.${n}`,(c,u)=>{c!=u&&this.$set(this.form,s,c)});a.push(o),a.push(l),this.$set(this.form,s,getAsVal(this.form,n))}if(r){const o=()=>{const c=r(this.form[t.prop],this.form)||{};Object.keys(c).forEach(u=>{const d=Object.assign(this.objectOption[u]||{},c[u]);this.$set(this.objectOption,u,d),c[u].dicData&&(this.DIC[u]=c[u].dicData)})},l=this.$watch(`form.${s}`,()=>{o()});a.push(l),o()}this.formBind[s]=a}})},setForm(){Object.keys(this.value).forEach(t=>{this.$set(this.form,t,this.value[t])})},setVal(){this.$emit("input",this.form),this.$emit("change",this.form)},setLabel(){this.tableOption.filterNull===!0&&(this.form=filterParams(this.form,[""],!1)),this.tableOption.filterDic==!0?this.form=filterParams(this.form,["$"],!1):this.propOption.forEach(t=>{let s;const n=this.DIC[t.prop];core.isBlank(n)||(s=detail(this.form,t,this.tableOption,n),s?this.$set(this.form,`$${t.prop}`,s):this.$delete(this.form,`$${t.prop}`))})},handleGroupClick(t){this.$emit("tab-click",t)},handleTabClick(t,s){this.$emit("tab-click",t,s)},getLabelWidth(t,s){let n;return core.isBlank(t.labelWidth)?core.isBlank(s.labelWidth)?n=this.parentOption.labelWidth:n=s.labelWidth:n=t.labelWidth,setPx(n,this.labelWidth)},validateField(t){return this.$refs.form.validateField(t)},validTip(t){return!t.tip||t.type==="upload"},getPropRef(t){return this.$refs[t][0]},handleChange(t,s){this.$nextTick(()=>{const n=s.cascader,r=n.join(",");n.forEach(a=>{const o=a,l=this.form[s.prop],c=this.findObject(t,o);core.isBlank(c)||(this.formList.includes(r)&&n.forEach(u=>{this.form[u]="",this.$set(this.DIC,u,[])}),!(core.isBlank(n)||core.isBlank(l)||core.isBlank(c))&&sendDic({column:c,value:l,form:this.form}).then(u=>{this.formList.includes(r)||this.formList.push(r);const d=u||[];this.$set(this.DIC,o,d),!core.isBlank(d)&&!core.isBlank(d)&&!core.isBlank(c.cascaderIndex)&&core.isBlank(this.form[o])&&(this.form[o]=d[c.cascaderIndex][(c.props||{}).value||DIC_PROPS.value])}))})})},handlePrint(){this.$Print(this.$el)},propChange(t,s){s.cascader&&this.handleChange(t,s)},handleMock(){this.isMock&&(this.columnOption.forEach(t=>{const s=mock(t.column,this.DIC,this.form,this.isMock);core.isBlank(s)||Object.keys(s).forEach(n=>{this.form[n]=s[n]})}),this.$nextTick(()=>{this.clearValidate(),this.$emit("mock-change",this.form)}))},vaildDetail(t){let s;if(this.detail)return!1;if(!core.isBlank(t.detail))s="detail";else if(this.isAdd)s="addDetail";else if(this.isEdit)s="editDetail";else if(this.isView)return!1;return s?t[s]===!0:!1},vaildDisabled(t){let s;if(this.disabled)return!0;if(!core.isBlank(t.disabled))s="disabled";else if(this.isAdd)s="addDisabled";else if(this.isEdit)s="editDisabled";else if(this.isView)return!0;return s?t[s]===!0:!1},vaildDisplay(t){let s;return core.isBlank(t.display)?this.isAdd?s="addDisplay":this.isEdit?s="editDisplay":this.isView&&(s="viewDisplay"):s="display",s?optVal(t[s],!0):!0},clearValidate(t){return v(this,null,function*(){var s;(s=this.$refs.form)==null||s.clearValidate(t)})},validateCellForm(){return new Promise(t=>{this.$refs.form.validate((s,n)=>{t(n)})})},validate(t){this.$refs.form.validate((s,n)=>{const r=[],a=[],o={};this.dynamicOption.forEach(l=>{const c=l.children.type==="form";a.push(l.prop),c?core.isBlank(this.$refs[l.prop][0].$refs.temp.$refs.main)||this.$refs[l.prop][0].$refs.temp.$refs.main.forEach(u=>{r.push(u.validateCellForm())}):r.push(this.$refs[l.prop][0].$refs.temp.$refs.main.validateCellForm())}),Promise.all(r).then(l=>{l.forEach((u,d)=>{core.isBlank(u)||(o[a[d]]=u)});const c=Object.assign(o,n);core.isBlank(c)?(this.show(),t(!0,this.hide)):t(!1,this.hide,c)})})},resetForm(t=!0){if(t){const s=this.propOption.map(n=>n.prop);this.form=clearVal(this.form,s,(this.tableOption.filterParams||[]).concat([this.rowKey]))}this.$nextTick(()=>{this.clearValidate(),this.$emit("reset-change")})},resetFields(){this.$refs.form.resetFields()},show(){this.allDisabled=!0},hide(){this.allDisabled=!1},submit(){this.validate((t,s)=>{t?this.$emit("submit",filterParams(this.form,["$"]),this.hide):this.$emit("error",s)})}}},__cssModules$1X={};var __component__$1X=normalizeComponent(__vue2_script$1X,render$1R,staticRenderFns$1R,!1,__vue2_injectStyles$1X,null,null,null);function __vue2_injectStyles$1X(t){for(let s in __cssModules$1X)this[s]=__cssModules$1X[s]}const FyForm=function(){return __component__$1X.exports}(),fields$1=[{title:"布局字段",list:[{type:"group",label:"分组",icon:"icon-group",display:!0,arrow:!1,collapse:!0,children:{column:[]}},{type:"dynamic",label:"子表单",icon:"icon-table",span:24,display:!0,children:{align:"center",headerAlign:"center",index:!1,addBtn:!0,delBtn:!0,column:[]}},{type:"title",icon:"icon-title",span:24,display:!0,styles:{fontSize:"18px",color:"#000"},label:"标题",labelWidth:"0px",value:"标题"}]},{title:"输入字段",list:[{type:"input",label:"单行文本",icon:"icon-input",span:24,display:!0},{type:"password",label:"密码",icon:"icon-password",span:24,display:!0},{type:"textarea",label:"多行文本",icon:"icon-textarea",span:24,display:!0},{type:"number",label:"计数器",icon:"icon-number",controls:!0,span:24,display:!0},{type:"url",label:"超链接",icon:"icon-url",span:24,display:!0},{type:"array",label:"数组",icon:"icon-array",span:24,display:!0},{type:"img",label:"图片",icon:"icon-img",span:24,display:!0},{type:"map",component:"fy-input-map",label:"地图选择器",icon:"icon-map",span:24,display:!0}]},{title:"选择字段",list:[{type:"radio",label:"单选框组",icon:"icon-radio",dicData:[{label:"选项一",value:"0"},{label:"选项二",value:"1"},{label:"选项三",value:"2"}],span:24,display:!0,dicOption:"static",props:{label:"label",value:"value"}},{type:"checkbox",label:"多选框组",icon:"icon-checkbox",dicData:[{label:"选项一",value:"0"},{label:"选项二",value:"1"},{label:"选项三",value:"2"}],span:24,display:!0,dicOption:"static",props:{label:"label",value:"value"}},{type:"select",label:"下拉选择器",icon:"icon-select",dicData:[{label:"选项一",value:"0"},{label:"选项二",value:"1"},{label:"选项三",value:"2"}],cascaderItem:[],span:24,display:!0,dicOption:"static",props:{label:"label",value:"value",desc:"desc"}},{type:"cascader",label:"级联选择器",icon:"icon-link",span:24,display:!0,dicData:[{label:"选项一",value:0,children:[{label:"选项1-1",value:11},{label:"选项1-2",value:12}]},{label:"选项二",value:"1"},{label:"选项三",value:"2"}],cascaderIndex:1,cascaderItem:[],showAllLevels:!0,dicOption:"static",separator:"/",props:{label:"label",value:"value",desc:"desc"}},{type:"tree",label:"树形选择器",icon:"icon-tree",span:24,display:!0,dicOption:"static",dicData:[{label:"选项一",value:0,children:[{label:"选项1-1",value:"11"},{label:"选项1-2",value:"12"}]},{label:"选项二",value:"1"},{label:"选项三",value:"2"}],parent:!0,cascaderItem:[],props:{label:"label",value:"value",desc:"desc"}},{type:"table",label:"表格选择器",icon:"icon-table",display:!0,span:24,children:{border:!0,searchMenuSpan:6,searchIcon:!0,column:[],props:{url:"",method:"get",rowKey:"id",needPage:!0,currentPageKey:"current",pageSizeKey:"size",totalKey:"total",recordsKey:"records",resKey:"data.data",auto:!0}},formatter:t=>t.name,props:{label:"name",value:"id"}}]},{title:"上传字段",list:[{type:"upload",label:"上传",icon:"icon-upload",span:24,display:!0,showFileList:!0,multiple:!0,limit:10,propsHttp:{},headersConfig:[],dataConfig:[]}]},{title:"日期时间字段",list:[{type:"year",label:"年",icon:"icon-year",span:24,display:!0,format:"yyyy",valueFormat:"yyyy"},{type:"month",label:"月",icon:"icon-month",span:24,display:!0,format:"MM",valueFormat:"MM"},{type:"week",label:"周",icon:"icon-week",span:24,display:!0,format:"yyyy 第 WW 周"},{type:"date",label:"日期",icon:"icon-date",span:24,display:!0,format:"yyyy-MM-dd",valueFormat:"yyyy-MM-dd"},{type:"time",label:"时间",icon:"icon-time",span:24,display:!0,format:"HH:mm:ss",valueFormat:"HH:mm:ss"},{type:"datetime",label:"日期时间",icon:"icon-datetime",span:24,display:!0,format:"yyyy-MM-dd HH:mm:ss",valueFormat:"yyyy-MM-dd HH:mm:ss"},{type:"daterange",label:"日期范围",icon:"icon-date-range",span:24,display:!0,format:"yyyy-MM-dd",valueFormat:"yyyy-MM-dd"},{type:"timerange",label:"时间范围",icon:"icon-time-range",span:24,display:!0,format:"HH:mm:ss",valueFormat:"HH:mm:ss"},{type:"datetimerange",label:"日期时间范围",icon:"icon-datetime-range",span:24,display:!0,format:"yyyy-MM-dd HH:mm:ss",valueFormat:"yyyy-MM-dd HH:mm:ss"}]},{title:"插件字段(需单独引入依赖)",list:[{type:"u-editor",component:"fy-u-editor",label:"富文本",icon:"icon-richtext",span:24,display:!0,options:{action:"",oss:"",props:{},ali:{},qiniu:{}}}]},{title:"其他字段",list:[{type:"icon",label:"图标",component:"fy-input-icon",icon:"icon-icon",span:24,display:!0,params:{iconList:[{label:"基本图标",list:["el-icon-info","el-icon-error","el-icon-error","el-icon-success","el-icon-warning","el-icon-question"]},{label:"方向图标",list:["el-icon-info","el-icon-back","el-icon-arrow-left","el-icon-arrow-down","el-icon-arrow-right","el-icon-arrow-up"]},{label:"符号图标",list:["el-icon-plus","el-icon-minus","el-icon-close","el-icon-check"]}]}},{type:"switch",label:"开关",icon:"icon-switch",span:24,display:!0,value:"0",dicData:[{label:"",value:"0"},{label:"",value:"1"}]},{type:"rate",label:"评价",icon:"icon-star",span:24,display:!0,max:5,value:0,texts:["极差","失望","一般","满意","惊喜"],colors:["#99A9BF","#F7BA2A","#FF9900"]},{type:"slider",label:"滑块",icon:"icon-slider",span:24,display:!0,min:0,max:10},{type:"color",label:"颜色选择器",icon:"icon-color",span:24,display:!0}]}],escapable=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,keyable=/^[a-zA-Z_$][0-9a-zA-Z_$]*$/;let gap,indent;const meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"'":"\\'","\\":"\\\\"};let rep;function convert(t,s={}){const n=s.space||2,r=s.dropQuotesOnKeys!==!1,a=s.dropQuotesOnNumbers||!1,o=s.inlineShortArrays||!1,l=s.inlineShortArraysDepth||1,c=s.quoteType||"single",u=s.minify||!1;a&&walkObjectAndDropQuotesOnNumbers(t);let d=stringify(t,null,u?void 0:n,r,c);if(o&&!u){let p=inlineShortArraysInResult(d);if(l>1)for(let h=1;h<l&&(d=p,p=inlineShortArraysInResult(d),p!==d);h++);d=p}return d}function walkObjectAndDropQuotesOnNumbers(t){if(!isObject(t))return;const s=Object.keys(t);s&&s.forEach(function(n){const r=t[n];if(typeof r=="string"){const a=r-0;t[n]=isNaN(a)?r:a}else(isObject(r)||Array.isArray(r))&&walkObjectAndDropQuotesOnNumbers(r)})}function isObject(t){return t&&typeof t=="object"}function inlineShortArraysInResult(t,s){if(s||(s=80),typeof s!="number"||s<20)throw Error(`Invalid width '${s}'. Expecting number equal or larger than 20.`);const n=t.split(`
|
|
10
10
|
`);let r=0,a=null,o=[];for(;r<n.length;){const l=!!n[r].match(/\[/),c=!!n[r].match(/\],?/);if(l&&!c)o=[n[r]],a=r;else if(c&&!l&&a){o.push((n[r]||"").trim());const u=o.join(" ");u.length<s&&(n.splice(a,r-a+1,u),r=a),a=null,o=[]}else a&&o.push((n[r]||"").trim());r+=1}return n.join(`
|
|
11
11
|
`)}function stringify(t,s,n,r,a){let o;if(gap="",indent="",typeof n=="number")for(o=0;o<n;o+=1)indent+=" ";else typeof n=="string"&&(indent=n);if(rep=s,s&&typeof s!="function"&&(typeof s!="object"||typeof s.length!="number"))throw new Error("JSON.stringify");return str("",{"":t},r,a)}function str(t,s,n,r){let a,o,l,c;const u=gap;let d,p=s[t];switch(p&&typeof p=="object"&&typeof p.toJSON=="function"&&(p=p.toJSON(t)),typeof rep=="function"&&(p=rep.call(s,t,p)),typeof p){case"function":return p;case"string":return quote(p,r);case"number":return isFinite(p)?String(p):"null";case"boolean":case"null":return String(p);case"object":if(!p)return"null";if(gap+=indent,d=[],Object.prototype.toString.apply(p)==="[object Array]"){for(c=p.length,a=0;a<c;a+=1)d[a]=str(a,p,n,r)||"null";return l=d.length===0?"[]":gap?`[
|
|
12
12
|
${gap}${d.join(`,
|
|
@@ -14,11 +14,11 @@ ${gap}`)}
|
|
|
14
14
|
${u}]`:`[${d.join(",")}]`,gap=u,l}if(rep&&typeof rep=="object")for(c=rep.length,a=0;a<c;a+=1)typeof rep[a]=="string"&&(o=rep[a],l=str(o,p,n,r),l&&d.push((n?condQuoteKey(o,r):quote(o,r))+(gap?": ":":")+l));else for(o in p)Object.prototype.hasOwnProperty.call(p,o)&&(l=str(o,p,n,r),l&&d.push((n?condQuoteKey(o,r):quote(o,r))+(gap?": ":":")+l));return l=d.length===0?"{}":gap?`{
|
|
15
15
|
${gap}${d.join(`,
|
|
16
16
|
${gap}`)}
|
|
17
|
-
${u}}`:`{${d.join(",")}}`,gap=u,l}}function quote(t,s){escapable.lastIndex=0;let n='"';return s==="single"&&(n="'"),escapable.test(t)?n+t.replace(escapable,function(r){const a=meta[r];return typeof a=="string"?a:`\\u${`0000${r.charCodeAt(0).toString(16)}`.slice(-4)}`})+n:n+t+n}function condQuoteKey(t,s){return keyable.test(t)?t:quote(t,s)}function noop(){}const MonacoEditor={name:"MonacoEditor",props:{diffEditor:{type:Boolean,default:!1},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},original:String,value:[String,Object],language:{type:String,default:"javascript"},theme:{type:String,default:"vs"},readOnly:{type:Boolean,default:!1},options:{type:Object,default(){return{}}},editorMounted:{type:Function,default:noop},editorBeforeMount:{type:Function,default:noop},keyIndex:{type:String}},watch:{options:{deep:!0,handler(t){this.editor&&this.editor.updateOptions(t)}},keyIndex(){let t=this.value;typeof t=="object"&&(t=convert(t)),this.editor&&t!==this._getValue()&&this._setValue(t)},language(){if(this.editor)if(this.diffEditor){const{original:t,modified:s}=this.editor.getModel();monaco__namespace.editor.setModelLanguage(t,this.language),monaco__namespace.editor.setModelLanguage(s,this.language)}else monaco__namespace.editor.setModelLanguage(this.editor.getModel(),this.language)},theme(){this.editor&&monaco__namespace.editor.setTheme(this.theme)},style(){this.editor&&this.$nextTick(()=>{this.editor.layout()})},value(t){this.editor&&t!==this._getValue()&&this._setValue(t)}},computed:{style(){return{width:/^\d+$/.test(this.width)?`${this.width}px`:this.width,height:/^\d+$/.test(this.height)?`${this.height}px`:this.height,position:"relative"}}},mounted(){this.initMonaco()},beforeDestroy(){this.editor&&this.editor.dispose()},render(t){const s=this.options.fullScreen;return t("div",{class:"monaco_editor_container",style:this.style},[s?t("i",{class:"el-icon-full-screen",style:{width:"1.2em",height:"1.2em",position:"absolute",left:"0px",top:"0px",zIndex:"1",cursor:"pointer"},on:{click:this._handleFullScreen}}):""])},methods:{initMonaco(){const{value:t,language:s,theme:n,readOnly:r,options:a}=this;Object.assign(a,this._editorBeforeMount()),this.editor=monaco__namespace.editor[this.diffEditor?"createDiffEditor":"create"](this.$el,f({value:typeof t=="string"?t:convert(t),language:s,theme:n,readOnly:r},a)),this.diffEditor&&this._setModel(this.value,this.original),this._editorMounted(this.editor)},_handleFullScreen(){this.isMaximum?this.minEditor():this.maxEditor()},maxEditor(){this.isMaximum=!0;const t=this.$el;this.originSize={width:t.clientWidth,height:t.clientHeight},t.classList.add("editor-fullscreen"),this.editor.layout({height:document.body.clientHeight,width:document.body.clientWidth}),document.addEventListener("keyup",s=>{s.keyCode==27&&this.minEditor()})},minEditor(){this.isMaximum=!1,this.$el.classList.remove("editor-fullscreen"),this.editor.layout({height:this.originSize.height,width:this.originSize.width}),document.removeEventListener("keyup",()=>{})},_getEditor(){return this.editor?this.diffEditor?this.editor.modifiedEditor:this.editor:null},_setModel(t,s){const{language:n}=this,r=monaco__namespace.editor.createModel(s,n),a=monaco__namespace.editor.createModel(t,n);this.editor.setModel({original:r,modified:a})},_setValue(t){const s=this._getEditor();if(s)return s.setValue(t)},_getValue(){const t=this._getEditor();return t?t.getValue():""},_editorBeforeMount(){return this.editorBeforeMount(monaco__namespace)||{}},_editorMounted(t){this.editorMounted(t,monaco__namespace),this.diffEditor?t.onDidUpdateDiff(s=>{const n=this._getValue();this._emitChange(n,s)}):t.onDidChangeModelContent(s=>{const n=this._getValue();this._emitChange(n,s)})},_emitChange(t,s){this.$emit("change",t,s),this.$emit("input",t)}}},widgetEmpty="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUMAAADXCAYAAACAszPmAAAAAXNSR0IArs4c6QAADXRJREFUeAHt3cuLZGcZB+BvLk2PM0ZxFMdJXEQCYRIialrUmPgXuM0qkI3GnVl4ScBtUEFFXOhCEBQ3oiDi36BGkWQ0gpgIZgK59EhIxhBn0nMfz+nqwq6e6upT019933vqPAVxuuty3vc8b/fPU3UufWB9ff1GciNAgMDABQ6363/y5MmBM8y3+mfPnmU2H5lnEwgt0P5OHwzdoeYIECBQSEAYFoJWhgCB2ALCMPZ8dEeAQCEBYVgIWhkCBGILCMPY89EdAQKFBIRhIWhlCBCILbB5aE3sFnVHgEAtgfaQk0Xddh7St6haO+vstj4zw/DPr26knz/3dnrr4vXN199/cjV9/cHjm19/9w/n0nP/vjSx3I9/aDU9+VA/Hv/e0+fSX89O9v/J21fTVz876n9ixeb4ZlEDnaOFqU/t+gMx9cXuJDAAgZlvk3/6l/8HYWtx9frynKxy/vIo4LfP+Nn1S+nbv3tz+12+JkBgIAIH2tPxdttqeOTXo03kb306pZUmNg/NjM5+ibW5/s7VyZ6feiala839v3h49hk57dbfbma2DCdNfddvgUX+PO/8HVpUrZ11pk2krT3zbfL4RW0ILlMQtut18EBK714Zr6F/CRAYusDMMPxE8xnhlWZTaeXg5aE7WX8CBJZcYGYYPrG1s2RRm69Lbmv1CBDokcDMMOzRemRp9f7bj6RrS7STKAuKhRAYiMDMMGwPn2lvj941DI2vPPC+YayotSRA4CaBmfuH2+MIdx5LeNMS3EGAAIElEJi5ZbgE6zfXKoy3hMcHjs/14q0nd9mNfyvL9RoCBBYrIAy3+doK3obhSwIDE5j5NnlgFlaXAIEBC8zcMmzPNR7dJs/hjer13Bsp/fZMSv+9Murw3mZ/yBfvHX39k3+k9MJ/Jju/p3n8sW2Pjx8dn3kz+1zrs2n24ynr49POpX7gw0fS45+x02c8N//mFyj5sU/JWtOkZobh+LOzvhxn+JsXU7qw7RS79tS6Zbmdv3TzudR/evViOv/7N9M3Pvf+ZVlN60GgmsDMc5PHXfUlDL/29Kjjpz6V0pFDy3UK4bRzqb/5bEpXmozc61zq8Rz9S4DAdIE9z03+TnOc4eHmU8VHPjJ9AVHvPdScd+xc6qjT0ReBmAIzd6D8rT3OcMc1/2Kuxqir9jPCu97TbBXOfPMfeQ30RoBALYGlio3xzpJamOoSINBfgZlh+MFjh9LrF66lJ/84WsGPNXuX+3Cl6758xrnfH5v2XOrLy7SXaL8gXk9gHwIzw/Cx+9+bfvzsW+ncxmhPZvTfuxfPXUntWSRDOZf6oZXmOKLmmowvvPB6uuOOOzZ/DF577bV04cKFiR+JY8eOeZzPIH4+XnnllbSxsTHx87+2tjbx/W7fzAzD+06sph99/sTU144Pu5n6YHNnjcfb4wPbs0iGEoa72bufwFAFVlZW0tWro+PrrlzZOuC4I0anQ2s6Lqv608YHS3//weqtFGngZ/9sjh9qbo+vvatIPUUI9EngpZdeSm0gdtky3PPQmj6t+BB7/fsb14a42taZQCeBo0ePpsuXu1+lf+bb5HHFoeyQGK+vfwkQ6L/AiRPTP+Lbbc06heFuL452/ymn6UYbiX4I9EZgqcLwS1sXXeiNvkYJEFiYQHtkRXs7depUpxpLFYad1niJnnTfBw6l5sxDNwIEpgjsPMRsylMm7lqqMGwv09XehrKFaC/yaN7+l0AOgaUKw53XK8wBZBkECAxDYOaFGoZB0N+1/MEzG6n9z40Agf0LLNWW4fHmwtznmotyP7F1LnV7Jesv3DNC6nKl651blvu9kvVHm8/0vrx1QPQPT2+knccFzvP4r56/lJ5/c9uVa5vVOtucN378iE8N9/9rYAnLKNCehjrPbanC8OHm7zv/8l8pvb11nGXtc6kvXrzYzCLP2SHr56834Td56e4TRw+kR+87Ms+8PZfAYATG5+t3XeFOp+MN5aDrrn+DofXY67mnT5/enMHdd9/ddRaeR4DAAgRuu+22PZfa/k77zHBPJk8gQKCPAu1xhuNjDbv0v1Rvk7ussOcQIDAMgXmPM7RlOIyfC2tJgMAeArYM9wC61Yfn3ZN1q3W8jgCBPALCMI/jTUuZd0/WTQtwBwECRQWEYVFuxQgQKCUw77szYbigyYz3YtlCXBCwxRLYQ2De3z1huAforT48756sW63jdQQI5BHoFIZ7HWCcpxVLIUCAQD6B8bsz1zPMZ2pJBAj0UGDed2eOM+zhkLVMgEB+gU5vk/OXXf4lzrsna/lFrCGB2ALCcEHzmXdP1oLasFgCBDoKCMOOUJ5GgEC/BOZ9d9YpDF3Ca/4fgjNnzqTV1dXNS30dPOij2fkFvYLA/gTmfXfWKQz319IwX339+vXU7s16+eWX05133rmJ0O7q37mHq/1/r/HQPM7Hz8eFicCY5/djfX39pt+vGzdupLW1tYll7vaNMNxNJtP9KysrmZZkMQQIzBJog6/9b/vt8OHuEedK19vkuh5c3uVK19sW60sCBIILuNJ18AFpjwCBcgI+2S9nrRIBAoEFhGHg4WiNAIFyAsKwnLVKBAgEFhCGgYejNQIEygkIw3LWKhEgEFhAGAYejtYIECgnIAzLWatEgEBgAWEYeDhaI0CgnIAwLGetEgECgQWEYeDhaI0AgXICnc5i7nrObrm2VSJAgEBeAVuGeT0tjQCBngoIw54OTtsECOQVEIZ5PS2NAIGeCgjDng5O2wQI5BXotAPF30DJi25pBAjEE7BlGG8mOiJAoIKAMKyAriQBAvEEhGG8meiIAIEKAsKwArqSBAjEExCG8WaiIwIEKggIwwroShIgEE9AGMabiY4IEKggIAwroCtJgEA8AWEYbyY6IkCggoAwrICuJAEC8QSEYbyZ6IgAgQoCwrACupIECMQTEIbxZqIjAgQqCAjDCuhKEiAQT0AYxpuJjggQqCAgDCugK0mAQDyBThd39dfx4g1ORwQI5BWwZZjX09IIEOipgDDs6eC0TYBAXgFhmNfT0ggQ6KmAMOzp4LRNgEBegU47UPx1vLzolkaAQDwBW4bxZqIjAgQqCAjDCuhKEiAQT0AYxpuJjggQqCAgDCugK0mAQDwBYRhvJjoiQKCCgDCsgK4kAQLxBIRhvJnoiACBCgLCsAK6kgQIxBMQhvFmoiMCBCoICMMK6EoSIBBPQBjGm4mOCBCoICAMK6ArSYBAPAFhGG8mOiJAoIKAMKyAriQBAvEEhGG8meiIAIEKAsKwArqSBAjEE+h0cVd/HS/e4HREgEBeAVuGeT0tjQCBngoIw54OTtsECOQVEIZ5PS2NAIGeCgjDng5O2wQI5BXotAPFX8fLi25pBAjEE7BlGG8mOiJAoIKAMKyAriQBAvEEhGG8meiIAIEKAsKwArqSBAjEExCG8WaiIwIEKggIwwroShIgEE9AGMabiY4IEKggIAwroCtJgEA8AWEYbyY6IkCggoAwrICuJAEC8QSEYbyZ6IgAgQoCwrACupIECMQTEIbxZqIjAgQqCAjDCuhKEiAQT0AYxpuJjggQqCDQ6XqG/iBUhckoSYBAUQFbhkW5FSNAIKqAMIw6GX0RIFBUQBgW5VaMAIGoAsIw6mT0RYBAUQFhWJRbMQIEogp02pvsr+NFHZ++CBDIJWDLMJek5RAg0GsBYdjr8WmeAIFcAsIwl6TlECDQawFh2OvxaZ4AgVwCwjCXpOUQINBrAWHY6/FpngCBXALCMJek5RAg0GsBYdjr8WmeAIFcAsIwl6TlECDQawFh2OvxaZ4AgVwCwjCXpOUQINBrAWHY6/FpngCBXALCMJek5RAg0GsBYdjr8WmeAIFcAp0u4eUPQuXithwCBKIK2DKMOhl9ESBQVEAYFuVWjACBqALCMOpk9EWAQFEBYViUWzECBKIKCMOok9EXAQJFBYRhUW7FCBCIKiAMo05GXwQIFBUQhkW5FSNAIKqAMIw6GX0RIFBUQBgW5VaMAIGoAsIw6mT0RYBAUQFhWJRbMQIEogoIw6iT0RcBAkUFhGFRbsUIEIgqIAyjTkZfBAgUFRCGRbkVI0AgqoAwjDoZfREgUFRAGBblVowAgagCwjDqZPRFgEBRAWFYlFsxAgSiCgjDqJPRFwECRQWEYVFuxQgQiCogDKNORl8ECBQVEIZFuRUjQCCqgDCMOhl9ESBQVEAYFuVWjACBqALCMOpk9EWAQFEBYViUWzECBKIKCMOok9EXAQJFBYRhUW7FCBCIKiAMo05GXwQIFBUQhkW5FSNAIKqAMIw6GX0RIFBUQBgW5VaMAIGoAsIw6mT0RYBAUQFhWJRbMQIEogoIw6iT0RcBAkUFhGFRbsUIEIgqIAyjTkZfBAgUFRCGRbkVI0AgqoAwjDoZfREgUFRAGBblVowAgagCwjDqZPRFgEBRAWFYlFsxAgSiCgjDqJPRFwECRQWEYVFuxQgQiCogDKNORl8ECBQVEIZFuRUjQCCqgDCMOhl9ESBQVEAYFuVWjACBqALCMOpk9EWAQFEBYViUWzECBKIKCMOok9EXAQJFBYRhUW7FCBCIKiAMo05GXwQIFBUQhkW5FSNAIKqAMIw6GX0RIFBU4H8RUTV123y9kQAAAABJRU5ErkJggg==",history={data(){return{historySteps:{index:0,maxStep:20,steps:[],storage:!1}}},watch:{historySteps:{handler(t){t.storage?localStorage.setItem("avue-form-history",convert(t)):localStorage.removeItem("avue-form-history")},deep:!0}},methods:{initHistory(data){if(data.storage){const history=localStorage.getItem("avue-form-history");if(history){this.historySteps=eval(`(${history})`);const{index,steps}=this.historySteps;return deepClone(steps[index])}}this.historySteps=f(f({},this.historySteps),data);const{index,steps}=this.historySteps;return deepClone(steps[index])},handleHistoryChange(t){this.historySteps.index==this.historySteps.maxStep-1?this.historySteps.steps.shift():this.historySteps.index++,this.historySteps.steps[this.historySteps.index]=deepClone(t),this.historySteps.index<this.historySteps.steps.length-1&&(this.historySteps.steps=this.historySteps.steps.slice(0,this.historySteps.index+1))},handleUndo(){return this.historySteps.index!=0&&this.historySteps.index--,deepClone(this.historySteps.steps[this.historySteps.index])},handleRedo(){return this.historySteps.index!=this.historySteps.steps.length-1&&this.historySteps.index++,deepClone(this.historySteps.steps[this.historySteps.index])}}};var render$1O=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",[t.item.type==="title"?n("div",{staticStyle:{"margin-left":"5px"},style:t.item.styles},[t._v(" "+t._s(t.item.value)+" ")]):n(t.getComponent(t.item.type,t.item.component),t._b({tag:"Component",attrs:{multiple:!1,placeholder:t.item.placeholder||t.getPlaceholder(t.item),value:["time","timerange","checkbox"].includes(t.item.type)?t.item.dicData:void 0}},"Component",t.vBind,!1),[t.params.html?n("span",{domProps:{innerHTML:t._s(t.params.html)}}):t._e()])],1)},staticRenderFns$1O=[];const __vue2_script$1T={name:"WidgetFormItem",props:{item:{type:Object,default:()=>({})},params:{type:Object,default:()=>({})}},data(){return{form:{}}},computed:{vBind(){const t=Object.assign(deepClone(this.item),this.params,{size:this.item.size||"small",dic:this.item.dicData?this.item.dicData.map(n=>{if(!this.item.props)return n;const{label:r,value:a,desc:o}=this.item.props;return!r||!a?n:{[r]:n.label,[a]:n.value,[o]:n.desc}}):void 0,rules:this.item.pattern?this.item.rules.map(n=>(n.pattern&&(n.pattern=new RegExp(this.item.pattern)),n)):this.item.rules});return["change","blur","click","focus"].forEach(n=>delete t[n]),t.event&&delete t.event,t}},methods:{getComponent(t,s){const n="fy-";let r="input";return s||(["array","img","url"].includes(t)?r="array":t==="select"?r="select":t==="radio"?r="radio":t==="checkbox"?r="checkbox":["time","timerange"].includes(t)?r="time":["dates","date","datetime","datetimerange","daterange","week","month","year"].includes(t)?r="date":t==="cascader"?r="cascader":t==="number"?r="input-number":t==="password"?r="input":t==="switch"?r="switch":t==="rate"?r="rate":t==="upload"?r="upload":t==="slider"?r="slider":t==="dynamic"?r="dynamic":t==="icon"?r="input-icon":t==="color"?r="input-color":t==="map"&&(r="input-map"),n+r)},getPlaceholder(t){const s=t.label;return["select","checkbox","radio","tree","color","dates","date","datetime","datetimerange","daterange","week","month","year","map","icon"].includes(t.type)?`请选择 ${s}`:`请输入 ${s}`}}},__cssModules$1T={};var __component__$1T=normalizeComponent(__vue2_script$1T,render$1O,staticRenderFns$1O,!1,__vue2_injectStyles$1T,null,null,null);function __vue2_injectStyles$1T(t){for(let s in __cssModules$1T)this[s]=__cssModules$1T[s]}const WidgetFormItem=function(){return __component__$1T.exports}();var render$1N=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",[n("h3",{directives:[{name:"show",rawName:"v-show",value:t.column.label,expression:"column.label"}],staticStyle:{margin:"10px"}},[t._v(" "+t._s(t.column.label)+" ")]),n("Draggable",{staticClass:"widget-form-table__content",attrs:{list:t.column.children.column,group:{name:"form"},"ghost-class":"ghost",animation:200,handle:".widget-form-table__item"},on:{add:function(r){return t.handleWidgetTableAdd(r,t.column)},end:function(r){return t.$emit("change")}}},[t.column.children.column.length>0?t._l(t.column.children.column,function(r,a){return n("div",{key:a,staticClass:"widget-form-table__item",class:{active:t.selectWidget.prop===r.prop,required:r.required},style:{minWidth:r.width?`${r.width}px`:"33.3%",width:r.width?`${r.width}px`:"33.3%"},on:{click:function(o){return o.stopPropagation(),t.handleWidgetTableSelect(r)}}},[n("ElTable",{attrs:{data:[r],border:""}},[n("ElTableColumn",{attrs:{prop:r.prop,label:r.label,align:t.column.children.align,"header-align":t.column.children.headerAlign}},[n("WidgetFormItem",{attrs:{item:r,params:t.column.params}}),t.selectWidget.prop===r.prop?n("ElButton",{staticClass:"widget-table-action-delete",attrs:{title:"删除",circle:"",plain:"",size:"small",type:"danger"},on:{click:function(o){return o.stopPropagation(),t.handleWidgetTableDelete(t.column,a)}}},[n("i",{staticClass:"iconfont icon-delete"})]):t._e(),t.selectWidget.prop===r.prop?n("ElButton",{staticClass:"widget-table-action-clone",attrs:{title:"复制",circle:"",plain:"",size:"small",type:"primary"},on:{click:function(o){return o.stopPropagation(),t.handleWidgetTableClone(t.column,r)}}},[n("i",{staticClass:"iconfont icon-copy"})]):t._e()],1)],1)],1)}):[n("FyEmpty",{staticStyle:{width:"100%"},attrs:{size:"50",desc:"拖拽字段至此"}})]],2),t.selectWidget.prop===t.column.prop?n("ElButton",{staticClass:"widget-action-delete",attrs:{title:"删除",circle:"",plain:"",size:"small",type:"danger"},on:{click:function(r){return r.stopPropagation(),t.handleWidgetDelete(t.index)}}},[n("i",{staticClass:"iconfont icon-delete"})]):t._e(),t.selectWidget.prop===t.column.prop?n("ElButton",{staticClass:"widget-action-clear",attrs:{title:"清空",circle:"",plain:"",size:"small",type:"warning"},on:{click:function(r){return r.stopPropagation(),t.handleWidgetClear(t.index)}}},[n("i",{staticClass:"iconfont icon-clear"})]):t._e(),t.selectWidget.prop===t.column.prop?n("ElButton",{staticClass:"widget-action-clone",attrs:{title:"复制",circle:"",plain:"",size:"small",type:"primary"},on:{click:function(r){return r.stopPropagation(),t.handleWidgetCloneTable(t.index)}}},[n("i",{staticClass:"iconfont icon-copy"})]):t._e()],1)},staticRenderFns$1N=[];const __vue2_script$1S={name:"WidgetFormTable",components:{WidgetFormItem,Draggable},props:{data:Object,column:Object,select:Object,index:Number},data(){return{selectWidget:this.select}},watch:{select(t){this.selectWidget=t},selectWidget:{handler(t){this.$emit("update:select",t)},deep:!0}},methods:{handleSelectWidget(t){this.selectWidget=this.data.column[t]},handleWidgetClear(t){this.data.column[t].children.column=[],this.selectWidget=this.data.column[t],this.$emit("change")},handleWidgetDelete(t){this.data.column.length-1===t?t===0?this.selectWidget={}:this.handleSelectWidget(t-1):this.handleSelectWidget(t+1),this.$nextTick(()=>{this.data.column.splice(t,1),this.$emit("change")})},handleWidgetCloneTable(t){const s=deepClone(this.data.column[t]);s.prop=`a${Date.now()}${Math.ceil(Math.random()*99999)}`,s.children.column.forEach(n=>{n.prop=`a${Date.now()}${Math.ceil(Math.random()*99999)}`}),this.data.column.splice(t,0,s),this.$nextTick(()=>{this.handleSelectWidget(t+1),this.$emit("change")})},handleWidgetTableAdd(t,s){let n=t.newIndex;const r=t.item;if(n===1&&n>s.children.column.length-1&&(n=0),["子表单","富文本","坐标拾取器","分组"].includes(r.textContent)){s.children.column.splice(n,1);return}const a=deepClone(s.children.column[n]);a.prop||(a.prop=`a${Date.now()}${Math.ceil(Math.random()*99999)}`),a.subfield=!0,delete a.icon,this.$set(s.children.column,n,f({},a)),this.selectWidget=s.children.column[n],this.$emit("change")},handleWidgetTableSelect(t){this.selectWidget=t},handleWidgetTableClone(t,s){const n=deepClone(s);n.prop=`a${Date.now()}${Math.ceil(Math.random()*99999)}`,this.$set(t.children.column,t.children.column.length,f({},n)),this.$nextTick(()=>{this.selectWidget=t.children.column[t.children.column.length-1],this.$emit("change")})},handleWidgetTableDelete(t,s){t.children.column.length-1===s?s===0?this.selectWidget=t:this.selectWidget=t.children.column[s-1]:this.selectWidget=t.children.column[s+1],this.$nextTick(()=>{t.children.column.splice(s,1),this.$emit("change")})}}},__cssModules$1S={};var __component__$1S=normalizeComponent(__vue2_script$1S,render$1N,staticRenderFns$1N,!1,__vue2_injectStyles$1S,null,null,null);function __vue2_injectStyles$1S(t){for(let s in __cssModules$1S)this[s]=__cssModules$1S[s]}const WidgetFormTable=function(){return __component__$1S.exports}();var render$1M=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",[n("h4",{directives:[{name:"show",rawName:"v-show",value:t.column.label,expression:"column.label"}],staticClass:"widget-form-group__head"},[n("i",{directives:[{name:"show",rawName:"v-show",value:t.column.icon,expression:"column.icon"}],class:t.column.icon,staticStyle:{"margin-right":"10px"}}),t._v(t._s(t.column.label)+" ")]),n("Draggable",{staticClass:"widget-form-group__body",attrs:{list:t.column.children.column,group:{name:"form"},"ghost-class":"ghost",animation:200},on:{add:function(r){return t.handleWidgetGroupAdd(r,t.column)},end:function(r){return t.$emit("change")}}},[t._l(t.column.children.column,function(r,a){return[r.type==="dynamic"?n("div",{key:a,staticClass:"widget-form-table",class:{active:t.selectWidget.prop===r.prop},on:{click:function(o){return o.stopPropagation(),t.handleWidgetTableSelect(r)}}},[n("WidgetFormTable",{attrs:{data:t.column.children,column:r,index:a,select:t.selectWidget},on:{"update:select":function(o){t.selectWidget=o},change:function(o){return t.$emit("change")}}})],1):n("ElCol",{key:a,attrs:{md:r.span||12,xs:24,offset:r.offset||0}},[n("ElFormItem",{staticClass:"widget-form-group__item",class:{active:t.selectWidget.prop===r.prop,required:r.required},attrs:{label:r.label,prop:r.prop},nativeOn:{click:function(o){return o.stopPropagation(),t.handleWidgetTableSelect(r)}}},[n("WidgetFormItem",{attrs:{item:r,params:t.column.params}}),t.selectWidget.prop===r.prop?n("ElButton",{staticClass:"widget-form-group__item--delete",attrs:{title:"删除",circle:"",plain:"",type:"danger"},on:{click:function(o){return o.stopPropagation(),t.handleWidgetTableDelete(t.column,a)}}},[n("i",{staticClass:"iconfont icon-delete"})]):t._e(),t.selectWidget.prop===r.prop?n("ElButton",{staticClass:"widget-form-group__item--clone",attrs:{title:"复制",circle:"",plain:"",type:"primary"},on:{click:function(o){return o.stopPropagation(),t.handleWidgetTableClone(t.column,r)}}},[n("i",{staticClass:"iconfont icon-copy"})]):t._e()],1)],1)]})],2),t.selectWidget.prop===t.column.prop?n("ElButton",{staticClass:"widget-action-delete",attrs:{title:"删除",circle:"",plain:"",size:"small",type:"danger"},on:{click:function(r){return r.stopPropagation(),t.handleWidgetDelete(t.index)}}},[n("i",{staticClass:"iconfont icon-delete"})]):t._e(),t.selectWidget.prop===t.column.prop?n("ElButton",{staticClass:"widget-action-clear",attrs:{title:"清空",circle:"",plain:"",size:"small",type:"warning"},on:{click:function(r){return r.stopPropagation(),t.handleWidgetClear(t.index)}}},[n("i",{staticClass:"iconfont icon-clear"})]):t._e(),t.selectWidget.prop===t.column.prop?n("ElButton",{staticClass:"widget-action-clone",attrs:{title:"复制",circle:"",plain:"",size:"small",type:"primary"},on:{click:function(r){return r.stopPropagation(),t.handleWidgetCloneTable(t.index)}}},[n("i",{staticClass:"iconfont icon-copy"})]):t._e()],1)},staticRenderFns$1M=[];const __vue2_script$1R={name:"WidgetFormGroup",components:{WidgetFormItem,WidgetFormTable,Draggable},props:{data:Object,column:Object,select:Object,index:Number},data(){return{selectWidget:this.select}},watch:{select(t){this.selectWidget=t},selectWidget:{handler(t){this.$emit("update:select",t)},deep:!0}},methods:{handleSelectWidget(t){this.selectWidget=this.data.column[t]},handleWidgetClear(t){this.data.column[t].children.column=[],this.selectWidget=this.data.column[t],this.$emit("change")},handleWidgetDelete(t){this.data.column.length-1===t?t===0?this.selectWidget={}:this.handleSelectWidget(t-1):this.handleSelectWidget(t+1),this.$nextTick(()=>{this.data.column.splice(t,1),this.$emit("change")})},handleWidgetCloneTable(t){const s=deepClone(this.data.column[t]);s.prop=`a${Date.now()}${Math.ceil(Math.random()*99999)}`,s.children.column.forEach(n=>{n.prop=`a${Date.now()}${Math.ceil(Math.random()*99999)}`}),this.data.column.splice(t,0,s),this.$nextTick(()=>{this.handleSelectWidget(t+1),this.$emit("change")})},handleWidgetTableSelect(t){this.selectWidget=t},handleWidgetTableClone(t,s){const n=deepClone(s);n.prop=`a${Date.now()}${Math.ceil(Math.random()*99999)}`,this.$set(t.children.column,t.children.column.length,f({},n)),this.$nextTick(()=>{this.selectWidget=t.children.column[t.children.column.length-1],this.$emit("change")})},handleWidgetTableDelete(t,s){t.children.column.length-1===s?s===0?this.selectWidget=t:this.selectWidget=t.children.column[s-1]:this.selectWidget=t.children.column[s+1],this.$nextTick(()=>{t.children.column.splice(s,1),this.$emit("change")})},handleWidgetGroupAdd(t,s){let n=t.newIndex;const r=t.item;if(n===1&&n>s.children.column.length-1&&(n=0),["分组"].includes(r.textContent)){s.children.column.splice(n,1);return}const a=deepClone(s.children.column[n]);a.prop||(a.prop=`a${Date.now()}${Math.ceil(Math.random()*99999)}`),delete a.icon,a.type==="dynamic"?a.span=24:a.span=12,this.$set(s.children.column,n,f({},a)),this.selectWidget=s.children.column[n],this.$emit("change")}}},__cssModules$1R={};var __component__$1R=normalizeComponent(__vue2_script$1R,render$1M,staticRenderFns$1M,!1,__vue2_injectStyles$1R,null,null,null);function __vue2_injectStyles$1R(t){for(let s in __cssModules$1R)this[s]=__cssModules$1R[s]}const WidgetFormGroup=function(){return __component__$1R.exports}();var render$1L=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"widget-form-container"},[n("ElForm",{ref:"widgetForm",attrs:{"label-position":t.data.labelPosition||"left","label-width":t.data.labelWidth?`${t.data.labelWidth}px`:"100px","label-suffix":t.data.labelSuffix,model:t.form,size:"small"}},[n("ElRow",{attrs:{gutter:t.data.gutter}},[n("Draggable",{staticClass:"widget-form-list",attrs:{list:t.data.column,group:{name:"form"},"ghost-class":"ghost",animation:300},on:{add:t.handleWidgetAdd,end:function(r){return t.$emit("change")}}},[t._l(t.data.column,function(r,a){return[r.type==="dynamic"?n("div",{key:a,staticClass:"widget-form-table",class:{active:t.selectWidget.prop===r.prop},on:{click:function(o){return t.handleSelectWidget(a)}}},[n("WidgetFormTable",{attrs:{data:t.data,column:r,index:a,select:t.selectWidget},on:{"update:select":function(o){t.selectWidget=o},change:function(o){return t.$emit("change")}}})],1):r.type==="group"?n("div",{key:a,staticClass:"widget-form-group",class:{active:t.selectWidget.prop===r.prop},on:{click:function(o){return t.handleSelectWidget(a)}}},[n("WidgetFormGroup",{attrs:{data:t.data,column:r,index:a,select:t.selectWidget},on:{"update:select":function(o){t.selectWidget=o},change:function(o){return t.$emit("change")}}})],1):n("ElCol",{key:a,attrs:{md:r.span||12,xs:24,offset:r.offset||0}},[n("ElFormItem",{staticClass:"widget-form-item",class:[{active:t.selectWidget.prop===r.prop,required:r.required},`avue-form__item--${r.labelPosition}`||""],attrs:{label:r.label,"label-width":r.labelWidth&&`${r.labelWidth}px`,prop:r.prop},nativeOn:{click:function(o){return t.handleSelectWidget(a)}}},[n("WidgetFormItem",{attrs:{item:r,params:r.params}}),t.selectWidget.prop===r.prop?n("ElButton",{staticClass:"widget-action-delete",attrs:{title:"删除",circle:"",plain:"",size:"small",type:"danger"},on:{click:function(o){return o.stopPropagation(),t.handleWidgetDelete(a)}}},[n("i",{staticClass:"iconfont icon-delete"})]):t._e(),t.selectWidget.prop===r.prop?n("ElButton",{staticClass:"widget-action-clone",attrs:{title:"复制",circle:"",plain:"",size:"small",type:"primary"},on:{click:function(o){return o.stopPropagation(),t.handleWidgetClone(a)}}},[n("i",{staticClass:"iconfont icon-copy"})]):t._e()],1)],1)]})],2)],1)],1)],1)},staticRenderFns$1L=[];const __vue2_script$1Q={name:"WidgetForm",components:{Draggable,WidgetFormItem,WidgetFormTable,WidgetFormGroup},props:{data:Object,select:Object},data(){return{selectWidget:this.select,form:{}}},watch:{select(t){this.selectWidget=t},selectWidget:{handler(t){this.$emit("update:select",t)},deep:!0}},methods:{handleSelectWidget(t){this.selectWidget=this.data.column[t]},handleWidgetAdd(t){const s=t.newIndex,n=deepClone(this.data.column[s]);n.prop||(n.prop=`a${Date.now()}${Math.ceil(Math.random()*99999)}`),delete n.icon,delete n.subfield,n.type==="title"&&(delete n.label,this.form[n.prop]=n.value),this.$set(this.data.column,s,n),this.handleSelectWidget(s),this.$emit("change")},handleWidgetDelete(t){this.data.column.length-1===t?t===0?this.selectWidget={}:this.handleSelectWidget(t-1):this.handleSelectWidget(t+1),this.$nextTick(()=>{this.data.column.splice(t,1),this.$emit("change")})},handleWidgetClone(t){const s=deepClone(this.data.column[t]);s.prop=`a${Date.now()}${Math.ceil(Math.random()*99999)}`,this.data.column.push(s),this.$nextTick(()=>{this.handleSelectWidget(this.data.column.length-1),this.$emit("change")})}}},__cssModules$1Q={};var __component__$1Q=normalizeComponent(__vue2_script$1Q,render$1L,staticRenderFns$1L,!1,__vue2_injectStyles$1Q,null,null,null);function __vue2_injectStyles$1Q(t){for(let s in __cssModules$1Q)this[s]=__cssModules$1Q[s]}const WidgetForm=function(){return __component__$1Q.exports}();var render$1K=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"form-config-container"},[n("ElForm",{attrs:{"label-position":"left","label-suffix":":","label-width":"130px",size:"small"}},[n("ElFormItem",{attrs:{label:"标签对齐方式"}},[n("ElSelect",{attrs:{placeholder:"标签对齐方式"},model:{value:t.data.labelPosition,callback:function(r){t.$set(t.data,"labelPosition",r)},expression:"data.labelPosition"}},[n("ElOption",{attrs:{label:"左对齐",value:"left"}}),n("ElOption",{attrs:{label:"右对齐",value:"right"}}),n("ElOption",{attrs:{label:"顶部对齐",value:"top"}})],1)],1),n("ElFormItem",{attrs:{label:"标签宽度"}},[n("ElInputNumber",{staticStyle:{width:"100%"},attrs:{min:80,max:200,step:10,"controls-position":"right",placeholder:"标签宽度"},model:{value:t.data.labelWidth,callback:function(r){t.$set(t.data,"labelWidth",r)},expression:"data.labelWidth"}})],1),n("ElFormItem",{attrs:{label:"标签后缀"}},[n("ElInput",{attrs:{placeholder:"标签后缀"},model:{value:t.data.labelSuffix,callback:function(r){t.$set(t.data,"labelSuffix",r)},expression:"data.labelSuffix"}})],1),n("ElFormItem",{attrs:{label:"项之间的间隔"}},[n("ElInputNumber",{staticStyle:{width:"100%"},attrs:{min:0,max:60,step:5,"controls-position":"right",placeholder:"项之间的间隔"},model:{value:t.data.gutter,callback:function(r){t.$set(t.data,"gutter",r)},expression:"data.gutter"}})],1),n("ElFormItem",{attrs:{label:"多分组转标签"}},[n("ElSwitch",{model:{value:t.data.tabs,callback:function(r){t.$set(t.data,"tabs",r)},expression:"data.tabs"}})],1),n("ElFormItem",{attrs:{label:"详情模式"}},[n("ElSwitch",{model:{value:t.data.detail,callback:function(r){t.$set(t.data,"detail",r)},expression:"data.detail"}})],1),n("ElFormItem",{attrs:{label:"显示按钮"}},[n("ElSwitch",{model:{value:t.data.menuBtn,callback:function(r){t.$set(t.data,"menuBtn",r)},expression:"data.menuBtn"}})],1),t.data.menuBtn?n("ElFormItem",{attrs:{label:"显示提交按钮"}},[n("ElSwitch",{model:{value:t.data.submitBtn,callback:function(r){t.$set(t.data,"submitBtn",r)},expression:"data.submitBtn"}})],1):t._e(),t.data.menuBtn&&t.data.submitBtn?n("ElFormItem",{attrs:{label:"提交按钮的文字"}},[n("ElInput",{attrs:{placeholder:"提交按钮的文字"},model:{value:t.data.submitText,callback:function(r){t.$set(t.data,"submitText",r)},expression:"data.submitText"}})],1):t._e(),t.data.menuBtn?n("ElFormItem",{attrs:{label:"显示清空按钮"}},[n("ElSwitch",{model:{value:t.data.emptyBtn,callback:function(r){t.$set(t.data,"emptyBtn",r)},expression:"data.emptyBtn"}})],1):t._e(),t.data.menuBtn&&t.data.emptyBtn?n("ElFormItem",{attrs:{label:"清空按钮的文字"}},[n("ElInput",{attrs:{placeholder:"提交按钮的文字"},model:{value:t.data.emptyText,callback:function(r){t.$set(t.data,"emptyText",r)},expression:"data.emptyText"}})],1):t._e(),n("ElFormItem",{attrs:{label:"全局只读"}},[n("ElSwitch",{model:{value:t.data.readonly,callback:function(r){t.$set(t.data,"readonly",r)},expression:"data.readonly"}})],1),n("ElFormItem",{attrs:{label:"全局禁用"}},[n("ElSwitch",{model:{value:t.data.disabled,callback:function(r){t.$set(t.data,"disabled",r)},expression:"data.disabled"}})],1)],1)],1)},staticRenderFns$1K=[];const __vue2_script$1P={name:"FormConfig",props:{data:Object}},__cssModules$1P={};var __component__$1P=normalizeComponent(__vue2_script$1P,render$1K,staticRenderFns$1K,!1,__vue2_injectStyles$1P,null,null,null);function __vue2_injectStyles$1P(t){for(let s in __cssModules$1P)this[s]=__cssModules$1P[s]}const FormConfig=function(){return __component__$1P.exports}();var render$1J=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",[n("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[n("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[t._v("自定义属性:")]),n("div",{staticClass:"el-form-item__content"},[n("MonacoEditor",{attrs:{height:"300","key-index":t.data.prop,options:t.options},model:{value:t.params,callback:function(r){t.params=r},expression:"params"}})],1)]),n("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[n("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[t._v("自定义事件:")]),n("div",{staticClass:"el-form-item__content"},[n("MonacoEditor",{attrs:{height:"300","key-index":t.data.prop,options:t.options},model:{value:t.event,callback:function(r){t.event=r},expression:"event"}})],1)])])},staticRenderFns$1J=[];const __vue2_script$1O={name:"ConfigCustom",components:{MonacoEditor},props:{data:Object},data(){return{params:this.data.params||{},event:this.data.event||{},options:{fullScreen:!0,minimap:{enabled:!1}}}},watch:{"data.params"(t){this.params=t||{}},"data.event"(t){this.event=t||{}},params(val){try{this.data.params=eval(`(${val})`)}catch(t){}},event(val){try{this.data.event=eval(`(${val})`)}catch(t){}}}},__cssModules$1O={};var __component__$1O=normalizeComponent(__vue2_script$1O,render$1J,staticRenderFns$1J,!1,__vue2_injectStyles$1O,null,null,null);function __vue2_injectStyles$1O(t){for(let s in __cssModules$1O)this[s]=__cssModules$1O[s]}const ConfigCustom=function(){return __component__$1O.exports}();var render$1I=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",[n("ElFormItem",{attrs:{label:"占位内容"}},[n("ElInput",{attrs:{clearable:"",placeholder:"占位内容"},model:{value:t.data.placeholder,callback:function(r){t.$set(t.data,"placeholder",r)},expression:"data.placeholder"}})],1),n("ElFormItem",{attrs:{label:"前缀"}},[n("ElInput",{attrs:{clearable:"",placeholder:"前缀"},model:{value:t.data.prepend,callback:function(r){t.$set(t.data,"prepend",r)},expression:"data.prepend"}})],1),n("ElFormItem",{attrs:{label:"后缀"}},[n("ElInput",{attrs:{clearable:"",placeholder:"后缀"},model:{value:t.data.append,callback:function(r){t.$set(t.data,"append",r)},expression:"data.append"}})],1),n("ElFormItem",{attrs:{label:"最大长度"}},[n("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"最大长度"},model:{value:t.data.maxlength,callback:function(r){t.$set(t.data,"maxlength",r)},expression:"data.maxlength"}})],1),t.data.type!=="password"?n("ElFormItem",{attrs:{label:"显示计数"}},[n("ElSwitch",{model:{value:t.data.showWordLimit,callback:function(r){t.$set(t.data,"showWordLimit",r)},expression:"data.showWordLimit"}})],1):t._e(),t.data.type==="password"?n("ElFormItem",{attrs:{label:"显示密码"}},[n("ElSwitch",{model:{value:t.data.showPassword,callback:function(r){t.$set(t.data,"showPassword",r)},expression:"data.showPassword"}})],1):t._e()],1)},staticRenderFns$1I=[];const __vue2_script$1N={name:"ConfigInput",props:{data:Object,defaultValues:Object}},__cssModules$1N={};var __component__$1N=normalizeComponent(__vue2_script$1N,render$1I,staticRenderFns$1I,!1,__vue2_injectStyles$1N,null,null,null);function __vue2_injectStyles$1N(t){for(let s in __cssModules$1N)this[s]=__cssModules$1N[s]}const ConfigInput=function(){return __component__$1N.exports}();var render$1H=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",[n("ElFormItem",{attrs:{label:"占位内容"}},[n("ElInput",{attrs:{type:"textarea",autosize:"",clearable:"",placeholder:"占位内容"},model:{value:t.data.placeholder,callback:function(r){t.$set(t.data,"placeholder",r)},expression:"data.placeholder"}})],1),n("ElFormItem",{attrs:{label:"最大长度"}},[n("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"最大长度"},model:{value:t.data.maxlength,callback:function(r){t.$set(t.data,"maxlength",r)},expression:"data.maxlength"}})],1),n("ElFormItem",{attrs:{label:"显示计数"}},[n("ElSwitch",{model:{value:t.data.showWordLimit,callback:function(r){t.$set(t.data,"showWordLimit",r)},expression:"data.showWordLimit"}})],1),n("ElFormItem",{attrs:{label:"最小行"}},[n("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"最小行",min:1},model:{value:t.data.minRows,callback:function(r){t.$set(t.data,"minRows",r)},expression:"data.minRows"}})],1),n("ElFormItem",{attrs:{label:"最大行"}},[n("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"最大行",min:2},model:{value:t.data.maxRows,callback:function(r){t.$set(t.data,"maxRows",r)},expression:"data.maxRows"}})],1)],1)},staticRenderFns$1H=[];const __vue2_script$1M={name:"ConfigTextarea",props:{data:Object}},__cssModules$1M={};var __component__$1M=normalizeComponent(__vue2_script$1M,render$1H,staticRenderFns$1H,!1,__vue2_injectStyles$1M,null,null,null);function __vue2_injectStyles$1M(t){for(let s in __cssModules$1M)this[s]=__cssModules$1M[s]}const ConfigTextarea=function(){return __component__$1M.exports}();var render$1G=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",[n("ElFormItem",{attrs:{label:"占位内容"}},[n("ElInput",{attrs:{clearable:"",placeholder:"占位内容"},model:{value:t.data.placeholder,callback:function(r){t.$set(t.data,"placeholder",r)},expression:"data.placeholder"}})],1),n("ElFormItem",{attrs:{label:"最小值"}},[n("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"最小值"},model:{value:t.data.minRows,callback:function(r){t.$set(t.data,"minRows",r)},expression:"data.minRows"}})],1),n("ElFormItem",{attrs:{label:"最大值"}},[n("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"最大值"},model:{value:t.data.maxRows,callback:function(r){t.$set(t.data,"maxRows",r)},expression:"data.maxRows"}})],1),n("ElFormItem",{attrs:{label:"步长"}},[n("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"步长"},model:{value:t.data.step,callback:function(r){t.$set(t.data,"step",r)},expression:"data.step"}})],1),n("ElFormItem",{attrs:{label:"数值精度"}},[n("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"数值精度",min:0,max:10},model:{value:t.data.precision,callback:function(r){t.$set(t.data,"precision",r)},expression:"data.precision"}})],1),n("ElFormItem",{attrs:{label:"开启控制器","label-width":"100px"}},[n("ElSwitch",{model:{value:t.data.controls,callback:function(r){t.$set(t.data,"controls",r)},expression:"data.controls"}})],1),t.data.controls?n("ElFormItem",{attrs:{label:"控制器位置","label-width":"100px"}},[n("ElRadio",{attrs:{label:""},model:{value:t.data.controlsPosition,callback:function(r){t.$set(t.data,"controlsPosition",r)},expression:"data.controlsPosition"}},[t._v(" 默认 ")]),n("ElRadio",{attrs:{label:"right"},model:{value:t.data.controlsPosition,callback:function(r){t.$set(t.data,"controlsPosition",r)},expression:"data.controlsPosition"}},[t._v(" 右 ")])],1):t._e()],1)},staticRenderFns$1G=[];const __vue2_script$1L={name:"ConfigNumber",props:{data:Object}},__cssModules$1L={};var __component__$1L=normalizeComponent(__vue2_script$1L,render$1G,staticRenderFns$1G,!1,__vue2_injectStyles$1L,null,null,null);function __vue2_injectStyles$1L(t){for(let s in __cssModules$1L)this[s]=__cssModules$1L[s]}const ConfigNumber=function(){return __component__$1L.exports}();var render$1F=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",[n("ElFormItem",{attrs:{label:"对齐方式"}},[n("ElSelect",{attrs:{placeholder:"对齐方式",clearable:""},model:{value:t.data.children.align,callback:function(r){t.$set(t.data.children,"align",r)},expression:"data.children.align"}},[n("ElOption",{attrs:{label:"居左",value:"left"}}),n("ElOption",{attrs:{label:"居中",value:"center"}}),n("ElOption",{attrs:{label:"居右",value:"right"}})],1)],1),n("ElFormItem",{attrs:{label:"头部对齐方式","label-width":"110px"}},[n("ElSelect",{attrs:{placeholder:"对齐方式",clearable:""},model:{value:t.data.children.headerAlign,callback:function(r){t.$set(t.data.children,"headerAlign",r)},expression:"data.children.headerAlign"}},[n("ElOption",{attrs:{label:"居左",value:"left"}}),n("ElOption",{attrs:{label:"居中",value:"center"}}),n("ElOption",{attrs:{label:"居右",value:"right"}})],1)],1),n("ElFormItem",{attrs:{label:"表单格式"}},[n("ElSelect",{attrs:{placeholder:"表单格式",clearable:""},model:{value:t.data.children.type,callback:function(r){t.$set(t.data.children,"type",r)},expression:"data.children.type"}},[n("ElOption",{attrs:{label:"表格",value:""}}),n("ElOption",{attrs:{label:"表单",value:"form"}})],1)],1),t.data.children.type==="form"?n("ElFormItem",{attrs:{label:"序号"}},[n("ElSwitch",{model:{value:t.data.children.index,callback:function(r){t.$set(t.data.children,"index",r)},expression:"data.children.index"}})],1):t._e(),n("ElFormItem",{attrs:{label:"添加按钮"}},[n("ElSwitch",{model:{value:t.data.children.addBtn,callback:function(r){t.$set(t.data.children,"addBtn",r)},expression:"data.children.addBtn"}})],1),n("ElFormItem",{attrs:{label:"删除按钮"}},[n("ElSwitch",{model:{value:t.data.children.delBtn,callback:function(r){t.$set(t.data.children,"delBtn",r)},expression:"data.children.delBtn"}})],1)],1)},staticRenderFns$1F=[];const __vue2_script$1K={name:"ConfigDynamic",props:{data:Object}},__cssModules$1K={};var __component__$1K=normalizeComponent(__vue2_script$1K,render$1F,staticRenderFns$1F,!1,__vue2_injectStyles$1K,null,null,null);function __vue2_injectStyles$1K(t){for(let s in __cssModules$1K)this[s]=__cssModules$1K[s]}const ConfigDynamic=function(){return __component__$1K.exports}();var render$1E=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",[n("ElFormItem",{attrs:{label:"自定义"}},[n("ElButton",{staticClass:"danger",attrs:{type:"text"},on:{click:t.handleDicClear}},[t._v(" 清空 ")]),t._l(t.data.dicData,function(r,a){return n("div",{key:a,staticClass:"dic"},[n("ElInput",{staticStyle:{"margin-right":"5px"},attrs:{size:"mini",placeholder:"自定义文字",clearable:""},model:{value:r.label,callback:function(o){t.$set(r,"label",o)},expression:"item.label"}}),n("ElInput",{attrs:{size:"mini",clearable:"",placeholder:"自定义值"},model:{value:r.value,callback:function(o){t.$set(r,"value",o)},expression:"item.value"}})],1)})],2)],1)},staticRenderFns$1E=[];const ConfigSwitch_vue_vue_type_style_index_0_scoped_true_lang="",__vue2_script$1J={name:"ConfigSwitch",props:{data:Object},methods:{handleDicClear(){this.data.dicData=[{label:"",value:"0"},{label:"",value:"1"}]}}},__cssModules$1J={};var __component__$1J=normalizeComponent(__vue2_script$1J,render$1E,staticRenderFns$1E,!1,__vue2_injectStyles$1J,"75f24f72",null,null);function __vue2_injectStyles$1J(t){for(let s in __cssModules$1J)this[s]=__cssModules$1J[s]}const ConfigSwitch=function(){return __component__$1J.exports}();var render$1D=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",[n("ElFormItem",{attrs:{label:"最大星数"}},[n("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"最大星数"},model:{value:t.data.max,callback:function(r){t.$set(t.data,"max",r)},expression:"data.max"}})],1),n("ElFormItem",{attrs:{label:"是否显示文本","label-width":"110px"}},[n("ElSwitch",{model:{value:t.data.showText,callback:function(r){t.$set(t.data,"showText",r)},expression:"data.showText"}})],1),t.data.showText?n("ElFormItem",{attrs:{label:"自定义文本","label-width":"110px"}},[t._l(t.data.texts,function(r,a){return n("ElTag",{key:a,attrs:{size:"small",closable:""},on:{close:function(o){return t.handleTextClose(r)}}},[t._v(" "+t._s(r)+" ")])}),t.textVisible?n("ElInput",{ref:"textTag",staticClass:"input-new-tag",attrs:{size:"mini",clearable:""},on:{blur:t.handleTextConfirm},nativeOn:{keyup:function(r){return!r.type.indexOf("key")&&t._k(r.keyCode,"enter",13,r.key,"Enter")?null:t.handleTextConfirm.apply(null,arguments)}},model:{value:t.textValue,callback:function(r){t.textValue=r},expression:"textValue"}}):t._e(),!t.textVisible&&t.data.texts.length<t.data.max?n("ElButton",{staticStyle:{"margin-left":"5px"},attrs:{size:"mini",icon:"el-icon-plus",circle:""},on:{click:t.showTextInput}}):t._e()],2):t._e(),n("ElFormItem",{attrs:{label:"自定义颜色","label-width":"110px"}},[t._l(t.data.colors,function(r,a){return n("ElTag",{key:a,style:{color:r},attrs:{closable:"",size:"small"},on:{close:function(o){return t.handleColorClose(r)}}},[t._v(" "+t._s(r)+" ")])}),n("ElColorPicker",{staticClass:"color-picker",attrs:{size:"mini"},on:{change:t.handleColorConfirm},model:{value:t.colorValue,callback:function(r){t.colorValue=r},expression:"colorValue"}})],2)],1)},staticRenderFns$1D=[];const ConfigRate_vue_vue_type_style_index_0_scoped_true_lang="",__vue2_script$1I={name:"ConfigRate",props:{data:Object},data(){return{textVisible:!1,textValue:"",colorVisible:!1,colorValue:"",iconVisible:!1,iconValue:""}},methods:{handleTextClose(t){this.data.texts.splice(this.data.texts.indexOf(t),1)},showTextInput(){this.textVisible=!0,this.$nextTick(()=>{this.$refs.textTag.$refs.input.focus()})},handleTextConfirm(){this.textValue&&this.data.texts.push(this.textValue),this.textVisible=!1,this.textValue=""},handleColorClose(t){this.data.colors.splice(this.data.colors.indexOf(t),1)},handleColorConfirm(){this.colorValue&&this.data.colors.push(this.colorValue),this.colorValue=""}}},__cssModules$1I={};var __component__$1I=normalizeComponent(__vue2_script$1I,render$1D,staticRenderFns$1D,!1,__vue2_injectStyles$1I,"64e64f97",null,null);function __vue2_injectStyles$1I(t){for(let s in __cssModules$1I)this[s]=__cssModules$1I[s]}const ConfigRate=function(){return __component__$1I.exports}();var render$1C=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",[n("ElFormItem",{attrs:{label:"最小值"}},[n("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"最小值",max:t.data.max-1,min:0},model:{value:t.data.min,callback:function(r){t.$set(t.data,"min",r)},expression:"data.min"}})],1),n("ElFormItem",{attrs:{label:"最大值"}},[n("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"最大值",min:t.data.min+1},model:{value:t.data.max,callback:function(r){t.$set(t.data,"max",r)},expression:"data.max"}})],1),n("ElFormItem",{attrs:{label:"步长"}},[n("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"步长",min:1,max:t.data.max-t.data.min},model:{value:t.data.step,callback:function(r){t.$set(t.data,"step",r)},expression:"data.step"}})],1),n("ElFormItem",{attrs:{label:"显示间隔点","label-width":"100px"}},[n("ElSwitch",{model:{value:t.data.showStops,callback:function(r){t.$set(t.data,"showStops",r)},expression:"data.showStops"}})],1),n("ElFormItem",{attrs:{label:"显示输入框","label-width":"100px"}},[n("ElSwitch",{model:{value:t.data.showInput,callback:function(r){t.$set(t.data,"showInput",r)},expression:"data.showInput"}})],1),n("ElFormItem",{attrs:{label:"范围"}},[n("ElSwitch",{model:{value:t.data.range,callback:function(r){t.$set(t.data,"range",r)},expression:"data.range"}})],1)],1)},staticRenderFns$1C=[];const __vue2_script$1H={name:"ConfigSlider",props:{data:Object}},__cssModules$1H={};var __component__$1H=normalizeComponent(__vue2_script$1H,render$1C,staticRenderFns$1C,!1,__vue2_injectStyles$1H,null,null,null);function __vue2_injectStyles$1H(t){for(let s in __cssModules$1H)this[s]=__cssModules$1H[s]}const ConfigSlider=function(){return __component__$1H.exports}();var render$1B=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",[n("ElFormItem",{attrs:{label:"占位内容"}},[n("ElInput",{attrs:{clearable:"",placeholder:"占位内容"},model:{value:t.data.placeholder,callback:function(r){t.$set(t.data,"placeholder",r)},expression:"data.placeholder"}})],1)],1)},staticRenderFns$1B=[];const __vue2_script$1G={name:"ConfigColor",props:{data:Object}},__cssModules$1G={};var __component__$1G=normalizeComponent(__vue2_script$1G,render$1B,staticRenderFns$1B,!1,__vue2_injectStyles$1G,null,null,null);function __vue2_injectStyles$1G(t){for(let s in __cssModules$1G)this[s]=__cssModules$1G[s]}const ConfigColor=function(){return __component__$1G.exports}();var render$1A=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",[t.data.type==="select"?n("ElFormItem",{attrs:{label:"占位内容"}},[n("ElInput",{attrs:{clearable:"",placeholder:"占位内容"},model:{value:t.data.placeholder,callback:function(r){t.$set(t.data,"placeholder",r)},expression:"data.placeholder"}})],1):t._e(),n("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[n("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[t._v("字典配置:")]),n("div",{staticClass:"el-form-item__content"},[n("ElTabs",{attrs:{stretch:""},on:{"tab-click":t.handleTabClick},model:{value:t.data.dicOption,callback:function(r){t.$set(t.data,"dicOption",r)},expression:"data.dicOption"}},[n("ElTabPane",{attrs:{label:"静态数据",name:"static"}},[n("Draggable",{attrs:{tag:"ul",list:t.data.dicData,group:{name:"dic"},"ghost-class":"ghost",handle:".drag-item"}},t._l(t.data.dicData,function(r,a){return n("li",{key:a},[n("i",{staticClass:"drag-item el-icon-s-operation",staticStyle:{margin:"0 5px","font-size":"16px",cursor:"move"}}),n("ElInput",{staticStyle:{"margin-right":"5px"},attrs:{size:"mini",clearable:"",placeholder:"label"},model:{value:r.label,callback:function(o){t.$set(r,"label",o)},expression:"item.label"}}),n("ElInput",{style:{"margin-right":t.data.type==="select"?"5px":"0"},attrs:{size:"mini",clearable:"",placeholder:"value"},model:{value:r.value,callback:function(o){t.$set(r,"value",o)},expression:"item.value"}}),t.data.type==="select"?n("ElInput",{attrs:{size:"mini",clearable:"",placeholder:"描述"},model:{value:r.desc,callback:function(o){t.$set(r,"desc",o)},expression:"item.desc"}}):t._e(),n("ElButton",{staticStyle:{"margin-left":"5px",padding:"4px"},attrs:{circle:"",plain:"",type:"danger",size:"mini",icon:"el-icon-minus"},on:{click:function(o){return t.handleRemoveFields(a)}}})],1)}),0),n("div",{staticStyle:{"margin-left":"22px"}},[n("ElButton",{attrs:{type:"text"},on:{click:t.handleAddFields}},[t._v(" 添加列 ")])],1)],1),n("ElTabPane",{attrs:{label:"远端数据",name:"remote"}},[t._v(" 网址 "),n("ElInput",{attrs:{size:"small",placeholder:"远端数据字典网址"},model:{value:t.data.dicUrl,callback:function(r){t.$set(t.data,"dicUrl",r)},expression:"data.dicUrl"}}),t._v(" 远程搜索 "),n("ElSwitch",{model:{value:t.data.remote,callback:function(r){t.$set(t.data,"remote",r)},expression:"data.remote"}}),n("br"),t._v(" 请求方法 "),n("ElSelect",{staticStyle:{width:"100%"},attrs:{placeholder:"请求方法",size:"small"},model:{value:t.data.dicMethod,callback:function(r){t.$set(t.data,"dicMethod",r)},expression:"data.dicMethod"}},[n("ElOption",{attrs:{label:"POST",value:"post"}}),n("ElOption",{attrs:{label:"GET",value:"get"}})],1),t.data.dicMethod==="post"?n("p",[t._v(" 请求参数 "),n("FyDynamic",{attrs:{children:t.option},model:{value:t.data.dicQueryConfig,callback:function(r){t.$set(t.data,"dicQueryConfig",r)},expression:"data.dicQueryConfig"}})],1):t._e(),t.data.dicUrl?n("p",[t._v(" 返回结构 "),n("MonacoEditor",{attrs:{height:"80","key-index":`dict-formatter-${t.data.prop}`,options:t.options},model:{value:t.dicFormatter,callback:function(r){t.dicFormatter=r},expression:"dicFormatter"}})],1):t._e()],1)],1)],1)]),n("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[n("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[t._v("字典key配置:")]),n("div",{staticClass:"el-form-item__content"},[n("ul",t._l(t.data.props,function(r,a){return n("li",{key:a},[n("span",{staticStyle:{width:"50px"}},[t._v(t._s(a))]),n("ElInput",{attrs:{size:"mini",clearable:"",placeholder:"key配置"},model:{value:t.data.props[a],callback:function(o){t.$set(t.data.props,a,o)},expression:"data.props[key]"}})],1)}),0)])]),t.data.dicOption==="remote"?n("ElFormItem",{attrs:{label:"重新请求字典(crud)","label-width":"150px"}},[n("ElSwitch",{model:{value:t.data.dicFlag,callback:function(r){t.$set(t.data,"dicFlag",r)},expression:"data.dicFlag"}})],1):t._e(),t.data.type==="select"?[n("ElFormItem",{attrs:{label:"是否多选"}},[n("ElSwitch",{model:{value:t.data.multiple,callback:function(r){t.$set(t.data,"multiple",r)},expression:"data.multiple"}})],1),t.data.multiple?n("ElFormItem",{attrs:{label:"是否可拖拽","label-width":"110px"},scopedSlots:t._u([{key:"label",fn:function(){return[n("ElLink",{attrs:{underline:!1,href:"https://avuejs.com/form/form-select.html#%E6%8B%96%E6%8B%BD",target:"_blank"}},[t._v(" 是否可拖拽 "),n("i",{staticClass:"el-icon-question"})])]},proxy:!0}],null,!1,2120444940)},[n("ElSwitch",{model:{value:t.data.drag,callback:function(r){t.$set(t.data,"drag",r)},expression:"data.drag"}})],1):t._e(),t.data.multiple?n("ElFormItem",{attrs:{label:"多选数量限制","label-width":"110px"}},[n("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"多选限制",min:0,max:t.data.dicData.length},model:{value:t.data.limit,callback:function(r){t.$set(t.data,"limit",r)},expression:"data.limit"}})],1):t._e(),n("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[n("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[t._v("级联配置:")]),n("div",{staticClass:"el-form-item__content"},[n("Draggable",{attrs:{tag:"ul",list:t.data.cascaderItem||t.data.cascader,group:{name:"cascaderItem"},"ghost-class":"ghost",handle:".drag-item"}},t._l(t.data.cascaderItem||t.data.cascader,function(r,a){return n("li",{key:a},[n("i",{staticClass:"drag-item el-icon-s-operation",staticStyle:{margin:"0 5px","font-size":"16px",cursor:"move"}}),n("ElInput",{attrs:{size:"mini",clearable:"",placeholder:"级联属性值"},model:{value:t.data.cascader[a],callback:function(o){t.$set(t.data.cascader,a,o)},expression:"data.cascader[index]"}}),n("ElButton",{staticStyle:{"margin-left":"5px",padding:"4px"},attrs:{circle:"",plain:"",type:"danger",size:"mini",icon:"el-icon-minus"},on:{click:function(o){return t.handleRemoveCascaderItemFields(a)}}})],1)}),0),n("div",{staticStyle:{"margin-left":"22px"}},[n("ElButton",{attrs:{type:"text"},on:{click:t.handleAddCascaderItemFields}},[t._v(" 添加列 ")])],1)],1)]),(t.data.cascaderItem||t.data.cascader)&&(t.data.cascaderItem||t.data.cascader).length>0?n("ElFormItem",{attrs:{label:"级联默认选中","label-width":"110px"}},[n("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"级联默认选中",min:0},model:{value:t.data.cascaderIndex,callback:function(r){t.$set(t.data,"cascaderIndex",r)},expression:"data.cascaderIndex"}})],1):t._e(),n("ElFormItem",{attrs:{label:"是否可清空","label-width":"110px"}},[n("ElSwitch",{model:{value:t.data.clearable,callback:function(r){t.$set(t.data,"clearable",r)},expression:"data.clearable"}})],1),n("ElFormItem",{attrs:{label:"是否可搜索","label-width":"110px"}},[n("ElSwitch",{model:{value:t.data.filterable,callback:function(r){t.$set(t.data,"filterable",r)},expression:"data.filterable"}})],1)]:t._e(),["radio","checkbox"].includes(t.data.type)?[t.data.button?t._e():n("ElFormItem",{attrs:{label:"边框"}},[n("ElSwitch",{model:{value:t.data.border,callback:function(r){t.$set(t.data,"border",r)},expression:"data.border"}})],1),t.data.border?t._e():n("ElFormItem",{attrs:{label:"按钮"}},[n("ElSwitch",{model:{value:t.data.button,callback:function(r){t.$set(t.data,"button",r)},expression:"data.button"}})],1)]:t._e(),t.data.border||t.data.button?n("ElFormItem",{attrs:{label:"尺寸"}},[n("ElRadioGroup",{attrs:{size:"mini"},model:{value:t.data.size,callback:function(r){t.$set(t.data,"size",r)},expression:"data.size"}},[n("ElRadioButton",{attrs:{label:"medium"}},[t._v(" 正常 ")]),n("ElRadioButton",{attrs:{label:"small"}},[t._v(" 小 ")]),n("ElRadioButton",{attrs:{label:"mini"}},[t._v(" 超小 ")])],1)],1):t._e()],2)},staticRenderFns$1A=[];const __vue2_script$1F={name:"ConfigSelect",components:{Draggable,MonacoEditor},props:{data:Object},data(){return{option:{column:[{type:"input",prop:"key",label:"key"},{type:"input",prop:"value",label:"value"}]},options:{fullScreen:!0,minimap:{enabled:!1}},dicFormatter:""}},watch:{"data.prop":{handler(){const{dicFormatter:t}=this.data;this.dicFormatter=t?`${t}`:`(res) => {\r
|
|
17
|
+
${u}}`:`{${d.join(",")}}`,gap=u,l}}function quote(t,s){escapable.lastIndex=0;let n='"';return s==="single"&&(n="'"),escapable.test(t)?n+t.replace(escapable,function(r){const a=meta[r];return typeof a=="string"?a:`\\u${`0000${r.charCodeAt(0).toString(16)}`.slice(-4)}`})+n:n+t+n}function condQuoteKey(t,s){return keyable.test(t)?t:quote(t,s)}const widgetEmpty="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUMAAADXCAYAAACAszPmAAAAAXNSR0IArs4c6QAADXRJREFUeAHt3cuLZGcZB+BvLk2PM0ZxFMdJXEQCYRIialrUmPgXuM0qkI3GnVl4ScBtUEFFXOhCEBQ3oiDi36BGkWQ0gpgIZgK59EhIxhBn0nMfz+nqwq6e6upT019933vqPAVxuuty3vc8b/fPU3UufWB9ff1GciNAgMDABQ6363/y5MmBM8y3+mfPnmU2H5lnEwgt0P5OHwzdoeYIECBQSEAYFoJWhgCB2ALCMPZ8dEeAQCEBYVgIWhkCBGILCMPY89EdAQKFBIRhIWhlCBCILbB5aE3sFnVHgEAtgfaQk0Xddh7St6haO+vstj4zw/DPr26knz/3dnrr4vXN199/cjV9/cHjm19/9w/n0nP/vjSx3I9/aDU9+VA/Hv/e0+fSX89O9v/J21fTVz876n9ixeb4ZlEDnaOFqU/t+gMx9cXuJDAAgZlvk3/6l/8HYWtx9frynKxy/vIo4LfP+Nn1S+nbv3tz+12+JkBgIAIH2tPxdttqeOTXo03kb306pZUmNg/NjM5+ibW5/s7VyZ6feiala839v3h49hk57dbfbma2DCdNfddvgUX+PO/8HVpUrZ11pk2krT3zbfL4RW0ILlMQtut18EBK714Zr6F/CRAYusDMMPxE8xnhlWZTaeXg5aE7WX8CBJZcYGYYPrG1s2RRm69Lbmv1CBDokcDMMOzRemRp9f7bj6RrS7STKAuKhRAYiMDMMGwPn2lvj941DI2vPPC+YayotSRA4CaBmfuH2+MIdx5LeNMS3EGAAIElEJi5ZbgE6zfXKoy3hMcHjs/14q0nd9mNfyvL9RoCBBYrIAy3+doK3obhSwIDE5j5NnlgFlaXAIEBC8zcMmzPNR7dJs/hjer13Bsp/fZMSv+9Murw3mZ/yBfvHX39k3+k9MJ/Jju/p3n8sW2Pjx8dn3kz+1zrs2n24ynr49POpX7gw0fS45+x02c8N//mFyj5sU/JWtOkZobh+LOzvhxn+JsXU7qw7RS79tS6Zbmdv3TzudR/evViOv/7N9M3Pvf+ZVlN60GgmsDMc5PHXfUlDL/29Kjjpz6V0pFDy3UK4bRzqb/5bEpXmozc61zq8Rz9S4DAdIE9z03+TnOc4eHmU8VHPjJ9AVHvPdScd+xc6qjT0ReBmAIzd6D8rT3OcMc1/2Kuxqir9jPCu97TbBXOfPMfeQ30RoBALYGlio3xzpJamOoSINBfgZlh+MFjh9LrF66lJ/84WsGPNXuX+3Cl6758xrnfH5v2XOrLy7SXaL8gXk9gHwIzw/Cx+9+bfvzsW+ncxmhPZvTfuxfPXUntWSRDOZf6oZXmOKLmmowvvPB6uuOOOzZ/DF577bV04cKFiR+JY8eOeZzPIH4+XnnllbSxsTHx87+2tjbx/W7fzAzD+06sph99/sTU144Pu5n6YHNnjcfb4wPbs0iGEoa72bufwFAFVlZW0tWro+PrrlzZOuC4I0anQ2s6Lqv608YHS3//weqtFGngZ/9sjh9qbo+vvatIPUUI9EngpZdeSm0gdtky3PPQmj6t+BB7/fsb14a42taZQCeBo0ePpsuXu1+lf+bb5HHFoeyQGK+vfwkQ6L/AiRPTP+Lbbc06heFuL452/ymn6UYbiX4I9EZgqcLwS1sXXeiNvkYJEFiYQHtkRXs7depUpxpLFYad1niJnnTfBw6l5sxDNwIEpgjsPMRsylMm7lqqMGwv09XehrKFaC/yaN7+l0AOgaUKw53XK8wBZBkECAxDYOaFGoZB0N+1/MEzG6n9z40Agf0LLNWW4fHmwtznmotyP7F1LnV7Jesv3DNC6nKl651blvu9kvVHm8/0vrx1QPQPT2+knccFzvP4r56/lJ5/c9uVa5vVOtucN378iE8N9/9rYAnLKNCehjrPbanC8OHm7zv/8l8pvb11nGXtc6kvXrzYzCLP2SHr56834Td56e4TRw+kR+87Ms+8PZfAYATG5+t3XeFOp+MN5aDrrn+DofXY67mnT5/enMHdd9/ddRaeR4DAAgRuu+22PZfa/k77zHBPJk8gQKCPAu1xhuNjDbv0v1Rvk7ussOcQIDAMgXmPM7RlOIyfC2tJgMAeArYM9wC61Yfn3ZN1q3W8jgCBPALCMI/jTUuZd0/WTQtwBwECRQWEYVFuxQgQKCUw77szYbigyYz3YtlCXBCwxRLYQ2De3z1huAforT48756sW63jdQQI5BHoFIZ7HWCcpxVLIUCAQD6B8bsz1zPMZ2pJBAj0UGDed2eOM+zhkLVMgEB+gU5vk/OXXf4lzrsna/lFrCGB2ALCcEHzmXdP1oLasFgCBDoKCMOOUJ5GgEC/BOZ9d9YpDF3Ca/4fgjNnzqTV1dXNS30dPOij2fkFvYLA/gTmfXfWKQz319IwX339+vXU7s16+eWX05133rmJ0O7q37mHq/1/r/HQPM7Hz8eFicCY5/djfX39pt+vGzdupLW1tYll7vaNMNxNJtP9KysrmZZkMQQIzBJog6/9b/vt8OHuEedK19vkuh5c3uVK19sW60sCBIILuNJ18AFpjwCBcgI+2S9nrRIBAoEFhGHg4WiNAIFyAsKwnLVKBAgEFhCGgYejNQIEygkIw3LWKhEgEFhAGAYejtYIECgnIAzLWatEgEBgAWEYeDhaI0CgnIAwLGetEgECgQWEYeDhaI0AgXICnc5i7nrObrm2VSJAgEBeAVuGeT0tjQCBngoIw54OTtsECOQVEIZ5PS2NAIGeCgjDng5O2wQI5BXotAPF30DJi25pBAjEE7BlGG8mOiJAoIKAMKyAriQBAvEEhGG8meiIAIEKAsKwArqSBAjEExCG8WaiIwIEKggIwwroShIgEE9AGMabiY4IEKggIAwroCtJgEA8AWEYbyY6IkCggoAwrICuJAEC8QSEYbyZ6IgAgQoCwrACupIECMQTEIbxZqIjAgQqCAjDCuhKEiAQT0AYxpuJjggQqCAgDCugK0mAQDyBThd39dfx4g1ORwQI5BWwZZjX09IIEOipgDDs6eC0TYBAXgFhmNfT0ggQ6KmAMOzp4LRNgEBegU47UPx1vLzolkaAQDwBW4bxZqIjAgQqCAjDCuhKEiAQT0AYxpuJjggQqCAgDCugK0mAQDwBYRhvJjoiQKCCgDCsgK4kAQLxBIRhvJnoiACBCgLCsAK6kgQIxBMQhvFmoiMCBCoICMMK6EoSIBBPQBjGm4mOCBCoICAMK6ArSYBAPAFhGG8mOiJAoIKAMKyAriQBAvEEhGG8meiIAIEKAsKwArqSBAjEE+h0cVd/HS/e4HREgEBeAVuGeT0tjQCBngoIw54OTtsECOQVEIZ5PS2NAIGeCgjDng5O2wQI5BXotAPFX8fLi25pBAjEE7BlGG8mOiJAoIKAMKyAriQBAvEEhGG8meiIAIEKAsKwArqSBAjEExCG8WaiIwIEKggIwwroShIgEE9AGMabiY4IEKggIAwroCtJgEA8AWEYbyY6IkCggoAwrICuJAEC8QSEYbyZ6IgAgQoCwrACupIECMQTEIbxZqIjAgQqCAjDCuhKEiAQT0AYxpuJjggQqCDQ6XqG/iBUhckoSYBAUQFbhkW5FSNAIKqAMIw6GX0RIFBUQBgW5VaMAIGoAsIw6mT0RYBAUQFhWJRbMQIEogp02pvsr+NFHZ++CBDIJWDLMJek5RAg0GsBYdjr8WmeAIFcAsIwl6TlECDQawFh2OvxaZ4AgVwCwjCXpOUQINBrAWHY6/FpngCBXALCMJek5RAg0GsBYdjr8WmeAIFcAsIwl6TlECDQawFh2OvxaZ4AgVwCwjCXpOUQINBrAWHY6/FpngCBXALCMJek5RAg0GsBYdjr8WmeAIFcAp0u4eUPQuXithwCBKIK2DKMOhl9ESBQVEAYFuVWjACBqALCMOpk9EWAQFEBYViUWzECBKIKCMOok9EXAQJFBYRhUW7FCBCIKiAMo05GXwQIFBUQhkW5FSNAIKqAMIw6GX0RIFBUQBgW5VaMAIGoAsIw6mT0RYBAUQFhWJRbMQIEogoIw6iT0RcBAkUFhGFRbsUIEIgqIAyjTkZfBAgUFRCGRbkVI0AgqoAwjDoZfREgUFRAGBblVowAgagCwjDqZPRFgEBRAWFYlFsxAgSiCgjDqJPRFwECRQWEYVFuxQgQiCogDKNORl8ECBQVEIZFuRUjQCCqgDCMOhl9ESBQVEAYFuVWjACBqALCMOpk9EWAQFEBYViUWzECBKIKCMOok9EXAQJFBYRhUW7FCBCIKiAMo05GXwQIFBUQhkW5FSNAIKqAMIw6GX0RIFBUQBgW5VaMAIGoAsIw6mT0RYBAUQFhWJRbMQIEogoIw6iT0RcBAkUFhGFRbsUIEIgqIAyjTkZfBAgUFRCGRbkVI0AgqoAwjDoZfREgUFRAGBblVowAgagCwjDqZPRFgEBRAWFYlFsxAgSiCgjDqJPRFwECRQWEYVFuxQgQiCogDKNORl8ECBQVEIZFuRUjQCCqgDCMOhl9ESBQVEAYFuVWjACBqALCMOpk9EWAQFEBYViUWzECBKIKCMOok9EXAQJFBYRhUW7FCBCIKiAMo05GXwQIFBUQhkW5FSNAIKqAMIw6GX0RIFBU4H8RUTV123y9kQAAAABJRU5ErkJggg==",history={data(){return{historySteps:{index:0,maxStep:20,steps:[],storage:!1}}},watch:{historySteps:{handler(t){t.storage?localStorage.setItem("avue-form-history",convert(t)):localStorage.removeItem("avue-form-history")},deep:!0}},methods:{initHistory(data){if(data.storage){const history=localStorage.getItem("avue-form-history");if(history){this.historySteps=eval(`(${history})`);const{index,steps}=this.historySteps;return deepClone(steps[index])}}this.historySteps=f(f({},this.historySteps),data);const{index,steps}=this.historySteps;return deepClone(steps[index])},handleHistoryChange(t){this.historySteps.index==this.historySteps.maxStep-1?this.historySteps.steps.shift():this.historySteps.index++,this.historySteps.steps[this.historySteps.index]=deepClone(t),this.historySteps.index<this.historySteps.steps.length-1&&(this.historySteps.steps=this.historySteps.steps.slice(0,this.historySteps.index+1))},handleUndo(){return this.historySteps.index!=0&&this.historySteps.index--,deepClone(this.historySteps.steps[this.historySteps.index])},handleRedo(){return this.historySteps.index!=this.historySteps.steps.length-1&&this.historySteps.index++,deepClone(this.historySteps.steps[this.historySteps.index])}}};var render$1Q=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",[t.item.type==="title"?n("div",{staticStyle:{"margin-left":"5px"},style:t.item.styles},[t._v(" "+t._s(t.item.value)+" ")]):n(t.getComponent(t.item.type,t.item.component),t._b({tag:"Component",attrs:{multiple:!1,placeholder:t.item.placeholder||t.getPlaceholder(t.item),value:["time","timerange","checkbox"].includes(t.item.type)?t.item.dicData:void 0}},"Component",t.vBind,!1),[t.params.html?n("span",{domProps:{innerHTML:t._s(t.params.html)}}):t._e()])],1)},staticRenderFns$1Q=[];const __vue2_script$1W={name:"WidgetFormItem",props:{item:{type:Object,default:()=>({})},params:{type:Object,default:()=>({})}},data(){return{form:{}}},computed:{vBind(){const t=Object.assign(deepClone(this.item),this.params,{size:this.item.size||"small",dic:this.item.dicData?this.item.dicData.map(n=>{if(!this.item.props)return n;const{label:r,value:a,desc:o}=this.item.props;return!r||!a?n:{[r]:n.label,[a]:n.value,[o]:n.desc}}):void 0,rules:this.item.pattern?this.item.rules.map(n=>(n.pattern&&(n.pattern=new RegExp(this.item.pattern)),n)):this.item.rules});return["change","blur","click","focus"].forEach(n=>delete t[n]),t.event&&delete t.event,t}},methods:{getComponent(t,s){const n="fy-";let r="input";return s||(["array","img","url"].includes(t)?r="array":t==="select"?r="select":t==="radio"?r="radio":t==="checkbox"?r="checkbox":["time","timerange"].includes(t)?r="time":["dates","date","datetime","datetimerange","daterange","week","month","year"].includes(t)?r="date":t==="cascader"?r="cascader":t==="number"?r="input-number":t==="password"?r="input":t==="switch"?r="switch":t==="rate"?r="rate":t==="upload"?r="upload":t==="slider"?r="slider":t==="dynamic"?r="dynamic":t==="icon"?r="input-icon":t==="color"?r="input-color":t==="map"&&(r="input-map"),n+r)},getPlaceholder(t){const s=t.label;return["select","checkbox","radio","tree","color","dates","date","datetime","datetimerange","daterange","week","month","year","map","icon"].includes(t.type)?`请选择 ${s}`:`请输入 ${s}`}}},__cssModules$1W={};var __component__$1W=normalizeComponent(__vue2_script$1W,render$1Q,staticRenderFns$1Q,!1,__vue2_injectStyles$1W,null,null,null);function __vue2_injectStyles$1W(t){for(let s in __cssModules$1W)this[s]=__cssModules$1W[s]}const WidgetFormItem=function(){return __component__$1W.exports}();var render$1P=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",[n("h3",{directives:[{name:"show",rawName:"v-show",value:t.column.label,expression:"column.label"}],staticStyle:{margin:"10px"}},[t._v(" "+t._s(t.column.label)+" ")]),n("Draggable",{staticClass:"widget-form-table__content",attrs:{list:t.column.children.column,group:{name:"form"},"ghost-class":"ghost",animation:200,handle:".widget-form-table__item"},on:{add:function(r){return t.handleWidgetTableAdd(r,t.column)},end:function(r){return t.$emit("change")}}},[t.column.children.column.length>0?t._l(t.column.children.column,function(r,a){return n("div",{key:a,staticClass:"widget-form-table__item",class:{active:t.selectWidget.prop===r.prop,required:r.required},style:{minWidth:r.width?`${r.width}px`:"33.3%",width:r.width?`${r.width}px`:"33.3%"},on:{click:function(o){return o.stopPropagation(),t.handleWidgetTableSelect(r)}}},[n("ElTable",{attrs:{data:[r],border:""}},[n("ElTableColumn",{attrs:{prop:r.prop,label:r.label,align:t.column.children.align,"header-align":t.column.children.headerAlign}},[n("WidgetFormItem",{attrs:{item:r,params:t.column.params}}),t.selectWidget.prop===r.prop?n("ElButton",{staticClass:"widget-table-action-delete",attrs:{title:"删除",circle:"",plain:"",size:"small",type:"danger"},on:{click:function(o){return o.stopPropagation(),t.handleWidgetTableDelete(t.column,a)}}},[n("i",{staticClass:"iconfont icon-delete"})]):t._e(),t.selectWidget.prop===r.prop?n("ElButton",{staticClass:"widget-table-action-clone",attrs:{title:"复制",circle:"",plain:"",size:"small",type:"primary"},on:{click:function(o){return o.stopPropagation(),t.handleWidgetTableClone(t.column,r)}}},[n("i",{staticClass:"iconfont icon-copy"})]):t._e()],1)],1)],1)}):[n("FyEmpty",{staticStyle:{width:"100%"},attrs:{size:"50",desc:"拖拽字段至此"}})]],2),t.selectWidget.prop===t.column.prop?n("ElButton",{staticClass:"widget-action-delete",attrs:{title:"删除",circle:"",plain:"",size:"small",type:"danger"},on:{click:function(r){return r.stopPropagation(),t.handleWidgetDelete(t.index)}}},[n("i",{staticClass:"iconfont icon-delete"})]):t._e(),t.selectWidget.prop===t.column.prop?n("ElButton",{staticClass:"widget-action-clear",attrs:{title:"清空",circle:"",plain:"",size:"small",type:"warning"},on:{click:function(r){return r.stopPropagation(),t.handleWidgetClear(t.index)}}},[n("i",{staticClass:"iconfont icon-clear"})]):t._e(),t.selectWidget.prop===t.column.prop?n("ElButton",{staticClass:"widget-action-clone",attrs:{title:"复制",circle:"",plain:"",size:"small",type:"primary"},on:{click:function(r){return r.stopPropagation(),t.handleWidgetCloneTable(t.index)}}},[n("i",{staticClass:"iconfont icon-copy"})]):t._e()],1)},staticRenderFns$1P=[];const __vue2_script$1V={name:"WidgetFormTable",components:{WidgetFormItem,Draggable},props:{data:Object,column:Object,select:Object,index:Number},data(){return{selectWidget:this.select}},watch:{select(t){this.selectWidget=t},selectWidget:{handler(t){this.$emit("update:select",t)},deep:!0}},methods:{handleSelectWidget(t){this.selectWidget=this.data.column[t]},handleWidgetClear(t){this.data.column[t].children.column=[],this.selectWidget=this.data.column[t],this.$emit("change")},handleWidgetDelete(t){this.data.column.length-1===t?t===0?this.selectWidget={}:this.handleSelectWidget(t-1):this.handleSelectWidget(t+1),this.$nextTick(()=>{this.data.column.splice(t,1),this.$emit("change")})},handleWidgetCloneTable(t){const s=deepClone(this.data.column[t]);s.prop=`a${Date.now()}${Math.ceil(Math.random()*99999)}`,s.children.column.forEach(n=>{n.prop=`a${Date.now()}${Math.ceil(Math.random()*99999)}`}),this.data.column.splice(t,0,s),this.$nextTick(()=>{this.handleSelectWidget(t+1),this.$emit("change")})},handleWidgetTableAdd(t,s){let n=t.newIndex;const r=t.item;if(n===1&&n>s.children.column.length-1&&(n=0),["子表单","富文本","坐标拾取器","分组"].includes(r.textContent)){s.children.column.splice(n,1);return}const a=deepClone(s.children.column[n]);a.prop||(a.prop=`a${Date.now()}${Math.ceil(Math.random()*99999)}`),a.subfield=!0,delete a.icon,this.$set(s.children.column,n,f({},a)),this.selectWidget=s.children.column[n],this.$emit("change")},handleWidgetTableSelect(t){this.selectWidget=t},handleWidgetTableClone(t,s){const n=deepClone(s);n.prop=`a${Date.now()}${Math.ceil(Math.random()*99999)}`,this.$set(t.children.column,t.children.column.length,f({},n)),this.$nextTick(()=>{this.selectWidget=t.children.column[t.children.column.length-1],this.$emit("change")})},handleWidgetTableDelete(t,s){t.children.column.length-1===s?s===0?this.selectWidget=t:this.selectWidget=t.children.column[s-1]:this.selectWidget=t.children.column[s+1],this.$nextTick(()=>{t.children.column.splice(s,1),this.$emit("change")})}}},__cssModules$1V={};var __component__$1V=normalizeComponent(__vue2_script$1V,render$1P,staticRenderFns$1P,!1,__vue2_injectStyles$1V,null,null,null);function __vue2_injectStyles$1V(t){for(let s in __cssModules$1V)this[s]=__cssModules$1V[s]}const WidgetFormTable=function(){return __component__$1V.exports}();var render$1O=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",[n("h4",{directives:[{name:"show",rawName:"v-show",value:t.column.label,expression:"column.label"}],staticClass:"widget-form-group__head"},[n("i",{directives:[{name:"show",rawName:"v-show",value:t.column.icon,expression:"column.icon"}],class:t.column.icon,staticStyle:{"margin-right":"10px"}}),t._v(t._s(t.column.label)+" ")]),n("Draggable",{staticClass:"widget-form-group__body",attrs:{list:t.column.children.column,group:{name:"form"},"ghost-class":"ghost",animation:200},on:{add:function(r){return t.handleWidgetGroupAdd(r,t.column)},end:function(r){return t.$emit("change")}}},[t._l(t.column.children.column,function(r,a){return[r.type==="dynamic"?n("div",{key:a,staticClass:"widget-form-table",class:{active:t.selectWidget.prop===r.prop},on:{click:function(o){return o.stopPropagation(),t.handleWidgetTableSelect(r)}}},[n("WidgetFormTable",{attrs:{data:t.column.children,column:r,index:a,select:t.selectWidget},on:{"update:select":function(o){t.selectWidget=o},change:function(o){return t.$emit("change")}}})],1):n("ElCol",{key:a,attrs:{md:r.span||12,xs:24,offset:r.offset||0}},[n("ElFormItem",{staticClass:"widget-form-group__item",class:{active:t.selectWidget.prop===r.prop,required:r.required},attrs:{label:r.label,prop:r.prop},nativeOn:{click:function(o){return o.stopPropagation(),t.handleWidgetTableSelect(r)}}},[n("WidgetFormItem",{attrs:{item:r,params:t.column.params}}),t.selectWidget.prop===r.prop?n("ElButton",{staticClass:"widget-form-group__item--delete",attrs:{title:"删除",circle:"",plain:"",type:"danger"},on:{click:function(o){return o.stopPropagation(),t.handleWidgetTableDelete(t.column,a)}}},[n("i",{staticClass:"iconfont icon-delete"})]):t._e(),t.selectWidget.prop===r.prop?n("ElButton",{staticClass:"widget-form-group__item--clone",attrs:{title:"复制",circle:"",plain:"",type:"primary"},on:{click:function(o){return o.stopPropagation(),t.handleWidgetTableClone(t.column,r)}}},[n("i",{staticClass:"iconfont icon-copy"})]):t._e()],1)],1)]})],2),t.selectWidget.prop===t.column.prop?n("ElButton",{staticClass:"widget-action-delete",attrs:{title:"删除",circle:"",plain:"",size:"small",type:"danger"},on:{click:function(r){return r.stopPropagation(),t.handleWidgetDelete(t.index)}}},[n("i",{staticClass:"iconfont icon-delete"})]):t._e(),t.selectWidget.prop===t.column.prop?n("ElButton",{staticClass:"widget-action-clear",attrs:{title:"清空",circle:"",plain:"",size:"small",type:"warning"},on:{click:function(r){return r.stopPropagation(),t.handleWidgetClear(t.index)}}},[n("i",{staticClass:"iconfont icon-clear"})]):t._e(),t.selectWidget.prop===t.column.prop?n("ElButton",{staticClass:"widget-action-clone",attrs:{title:"复制",circle:"",plain:"",size:"small",type:"primary"},on:{click:function(r){return r.stopPropagation(),t.handleWidgetCloneTable(t.index)}}},[n("i",{staticClass:"iconfont icon-copy"})]):t._e()],1)},staticRenderFns$1O=[];const __vue2_script$1U={name:"WidgetFormGroup",components:{WidgetFormItem,WidgetFormTable,Draggable},props:{data:Object,column:Object,select:Object,index:Number},data(){return{selectWidget:this.select}},watch:{select(t){this.selectWidget=t},selectWidget:{handler(t){this.$emit("update:select",t)},deep:!0}},methods:{handleSelectWidget(t){this.selectWidget=this.data.column[t]},handleWidgetClear(t){this.data.column[t].children.column=[],this.selectWidget=this.data.column[t],this.$emit("change")},handleWidgetDelete(t){this.data.column.length-1===t?t===0?this.selectWidget={}:this.handleSelectWidget(t-1):this.handleSelectWidget(t+1),this.$nextTick(()=>{this.data.column.splice(t,1),this.$emit("change")})},handleWidgetCloneTable(t){const s=deepClone(this.data.column[t]);s.prop=`a${Date.now()}${Math.ceil(Math.random()*99999)}`,s.children.column.forEach(n=>{n.prop=`a${Date.now()}${Math.ceil(Math.random()*99999)}`}),this.data.column.splice(t,0,s),this.$nextTick(()=>{this.handleSelectWidget(t+1),this.$emit("change")})},handleWidgetTableSelect(t){this.selectWidget=t},handleWidgetTableClone(t,s){const n=deepClone(s);n.prop=`a${Date.now()}${Math.ceil(Math.random()*99999)}`,this.$set(t.children.column,t.children.column.length,f({},n)),this.$nextTick(()=>{this.selectWidget=t.children.column[t.children.column.length-1],this.$emit("change")})},handleWidgetTableDelete(t,s){t.children.column.length-1===s?s===0?this.selectWidget=t:this.selectWidget=t.children.column[s-1]:this.selectWidget=t.children.column[s+1],this.$nextTick(()=>{t.children.column.splice(s,1),this.$emit("change")})},handleWidgetGroupAdd(t,s){let n=t.newIndex;const r=t.item;if(n===1&&n>s.children.column.length-1&&(n=0),["分组"].includes(r.textContent)){s.children.column.splice(n,1);return}const a=deepClone(s.children.column[n]);a.prop||(a.prop=`a${Date.now()}${Math.ceil(Math.random()*99999)}`),delete a.icon,a.type==="dynamic"?a.span=24:a.span=12,this.$set(s.children.column,n,f({},a)),this.selectWidget=s.children.column[n],this.$emit("change")}}},__cssModules$1U={};var __component__$1U=normalizeComponent(__vue2_script$1U,render$1O,staticRenderFns$1O,!1,__vue2_injectStyles$1U,null,null,null);function __vue2_injectStyles$1U(t){for(let s in __cssModules$1U)this[s]=__cssModules$1U[s]}const WidgetFormGroup=function(){return __component__$1U.exports}();var render$1N=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"widget-form-container"},[n("ElForm",{ref:"widgetForm",attrs:{"label-position":t.data.labelPosition||"left","label-width":t.data.labelWidth?`${t.data.labelWidth}px`:"100px","label-suffix":t.data.labelSuffix,model:t.form,size:"small"}},[n("ElRow",{attrs:{gutter:t.data.gutter}},[n("Draggable",{staticClass:"widget-form-list",attrs:{list:t.data.column,group:{name:"form"},"ghost-class":"ghost",animation:300},on:{add:t.handleWidgetAdd,end:function(r){return t.$emit("change")}}},[t._l(t.data.column,function(r,a){return[r.type==="dynamic"?n("div",{key:a,staticClass:"widget-form-table",class:{active:t.selectWidget.prop===r.prop},on:{click:function(o){return t.handleSelectWidget(a)}}},[n("WidgetFormTable",{attrs:{data:t.data,column:r,index:a,select:t.selectWidget},on:{"update:select":function(o){t.selectWidget=o},change:function(o){return t.$emit("change")}}})],1):r.type==="group"?n("div",{key:a,staticClass:"widget-form-group",class:{active:t.selectWidget.prop===r.prop},on:{click:function(o){return t.handleSelectWidget(a)}}},[n("WidgetFormGroup",{attrs:{data:t.data,column:r,index:a,select:t.selectWidget},on:{"update:select":function(o){t.selectWidget=o},change:function(o){return t.$emit("change")}}})],1):n("ElCol",{key:a,attrs:{md:r.span||12,xs:24,offset:r.offset||0}},[n("ElFormItem",{staticClass:"widget-form-item",class:[{active:t.selectWidget.prop===r.prop,required:r.required},`avue-form__item--${r.labelPosition}`||""],attrs:{label:r.label,"label-width":r.labelWidth&&`${r.labelWidth}px`,prop:r.prop},nativeOn:{click:function(o){return t.handleSelectWidget(a)}}},[n("WidgetFormItem",{attrs:{item:r,params:r.params}}),t.selectWidget.prop===r.prop?n("ElButton",{staticClass:"widget-action-delete",attrs:{title:"删除",circle:"",plain:"",size:"small",type:"danger"},on:{click:function(o){return o.stopPropagation(),t.handleWidgetDelete(a)}}},[n("i",{staticClass:"iconfont icon-delete"})]):t._e(),t.selectWidget.prop===r.prop?n("ElButton",{staticClass:"widget-action-clone",attrs:{title:"复制",circle:"",plain:"",size:"small",type:"primary"},on:{click:function(o){return o.stopPropagation(),t.handleWidgetClone(a)}}},[n("i",{staticClass:"iconfont icon-copy"})]):t._e()],1)],1)]})],2)],1)],1)],1)},staticRenderFns$1N=[];const __vue2_script$1T={name:"WidgetForm",components:{Draggable,WidgetFormItem,WidgetFormTable,WidgetFormGroup},props:{data:Object,select:Object},data(){return{selectWidget:this.select,form:{}}},watch:{select(t){this.selectWidget=t},selectWidget:{handler(t){this.$emit("update:select",t)},deep:!0}},methods:{handleSelectWidget(t){this.selectWidget=this.data.column[t]},handleWidgetAdd(t){const s=t.newIndex,n=deepClone(this.data.column[s]);n.prop||(n.prop=`a${Date.now()}${Math.ceil(Math.random()*99999)}`),delete n.icon,delete n.subfield,n.type==="title"&&(delete n.label,this.form[n.prop]=n.value),this.$set(this.data.column,s,n),this.handleSelectWidget(s),this.$emit("change")},handleWidgetDelete(t){this.data.column.length-1===t?t===0?this.selectWidget={}:this.handleSelectWidget(t-1):this.handleSelectWidget(t+1),this.$nextTick(()=>{this.data.column.splice(t,1),this.$emit("change")})},handleWidgetClone(t){const s=deepClone(this.data.column[t]);s.prop=`a${Date.now()}${Math.ceil(Math.random()*99999)}`,this.data.column.push(s),this.$nextTick(()=>{this.handleSelectWidget(this.data.column.length-1),this.$emit("change")})}}},__cssModules$1T={};var __component__$1T=normalizeComponent(__vue2_script$1T,render$1N,staticRenderFns$1N,!1,__vue2_injectStyles$1T,null,null,null);function __vue2_injectStyles$1T(t){for(let s in __cssModules$1T)this[s]=__cssModules$1T[s]}const WidgetForm=function(){return __component__$1T.exports}();var render$1M=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"form-config-container"},[n("ElForm",{attrs:{"label-position":"left","label-suffix":":","label-width":"130px",size:"small"}},[n("ElFormItem",{attrs:{label:"标签对齐方式"}},[n("ElSelect",{attrs:{placeholder:"标签对齐方式"},model:{value:t.data.labelPosition,callback:function(r){t.$set(t.data,"labelPosition",r)},expression:"data.labelPosition"}},[n("ElOption",{attrs:{label:"左对齐",value:"left"}}),n("ElOption",{attrs:{label:"右对齐",value:"right"}}),n("ElOption",{attrs:{label:"顶部对齐",value:"top"}})],1)],1),n("ElFormItem",{attrs:{label:"标签宽度"}},[n("ElInputNumber",{staticStyle:{width:"100%"},attrs:{min:80,max:200,step:10,"controls-position":"right",placeholder:"标签宽度"},model:{value:t.data.labelWidth,callback:function(r){t.$set(t.data,"labelWidth",r)},expression:"data.labelWidth"}})],1),n("ElFormItem",{attrs:{label:"标签后缀"}},[n("ElInput",{attrs:{placeholder:"标签后缀"},model:{value:t.data.labelSuffix,callback:function(r){t.$set(t.data,"labelSuffix",r)},expression:"data.labelSuffix"}})],1),n("ElFormItem",{attrs:{label:"项之间的间隔"}},[n("ElInputNumber",{staticStyle:{width:"100%"},attrs:{min:0,max:60,step:5,"controls-position":"right",placeholder:"项之间的间隔"},model:{value:t.data.gutter,callback:function(r){t.$set(t.data,"gutter",r)},expression:"data.gutter"}})],1),n("ElFormItem",{attrs:{label:"多分组转标签"}},[n("ElSwitch",{model:{value:t.data.tabs,callback:function(r){t.$set(t.data,"tabs",r)},expression:"data.tabs"}})],1),n("ElFormItem",{attrs:{label:"详情模式"}},[n("ElSwitch",{model:{value:t.data.detail,callback:function(r){t.$set(t.data,"detail",r)},expression:"data.detail"}})],1),n("ElFormItem",{attrs:{label:"显示按钮"}},[n("ElSwitch",{model:{value:t.data.menuBtn,callback:function(r){t.$set(t.data,"menuBtn",r)},expression:"data.menuBtn"}})],1),t.data.menuBtn?n("ElFormItem",{attrs:{label:"显示提交按钮"}},[n("ElSwitch",{model:{value:t.data.submitBtn,callback:function(r){t.$set(t.data,"submitBtn",r)},expression:"data.submitBtn"}})],1):t._e(),t.data.menuBtn&&t.data.submitBtn?n("ElFormItem",{attrs:{label:"提交按钮的文字"}},[n("ElInput",{attrs:{placeholder:"提交按钮的文字"},model:{value:t.data.submitText,callback:function(r){t.$set(t.data,"submitText",r)},expression:"data.submitText"}})],1):t._e(),t.data.menuBtn?n("ElFormItem",{attrs:{label:"显示清空按钮"}},[n("ElSwitch",{model:{value:t.data.emptyBtn,callback:function(r){t.$set(t.data,"emptyBtn",r)},expression:"data.emptyBtn"}})],1):t._e(),t.data.menuBtn&&t.data.emptyBtn?n("ElFormItem",{attrs:{label:"清空按钮的文字"}},[n("ElInput",{attrs:{placeholder:"提交按钮的文字"},model:{value:t.data.emptyText,callback:function(r){t.$set(t.data,"emptyText",r)},expression:"data.emptyText"}})],1):t._e(),n("ElFormItem",{attrs:{label:"全局只读"}},[n("ElSwitch",{model:{value:t.data.readonly,callback:function(r){t.$set(t.data,"readonly",r)},expression:"data.readonly"}})],1),n("ElFormItem",{attrs:{label:"全局禁用"}},[n("ElSwitch",{model:{value:t.data.disabled,callback:function(r){t.$set(t.data,"disabled",r)},expression:"data.disabled"}})],1)],1)],1)},staticRenderFns$1M=[];const __vue2_script$1S={name:"FormConfig",props:{data:Object}},__cssModules$1S={};var __component__$1S=normalizeComponent(__vue2_script$1S,render$1M,staticRenderFns$1M,!1,__vue2_injectStyles$1S,null,null,null);function __vue2_injectStyles$1S(t){for(let s in __cssModules$1S)this[s]=__cssModules$1S[s]}const FormConfig=function(){return __component__$1S.exports}();var render$1L=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",[n("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[n("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[t._v("自定义属性:")]),n("div",{staticClass:"el-form-item__content"},[n("MonacoEditor",{attrs:{height:"300","key-index":t.data.prop,options:t.options},model:{value:t.params,callback:function(r){t.params=r},expression:"params"}})],1)]),n("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[n("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[t._v("自定义事件:")]),n("div",{staticClass:"el-form-item__content"},[n("MonacoEditor",{attrs:{height:"300","key-index":t.data.prop,options:t.options},model:{value:t.event,callback:function(r){t.event=r},expression:"event"}})],1)])])},staticRenderFns$1L=[];const __vue2_script$1R={name:"ConfigCustom",components:{MonacoEditor:component.MonacoEditor},props:{data:Object},data(){return{params:this.data.params||{},event:this.data.event||{},options:{fullScreen:!0,minimap:{enabled:!1}}}},watch:{"data.params"(t){this.params=t||{}},"data.event"(t){this.event=t||{}},params(val){try{this.data.params=eval(`(${val})`)}catch(t){}},event(val){try{this.data.event=eval(`(${val})`)}catch(t){}}}},__cssModules$1R={};var __component__$1R=normalizeComponent(__vue2_script$1R,render$1L,staticRenderFns$1L,!1,__vue2_injectStyles$1R,null,null,null);function __vue2_injectStyles$1R(t){for(let s in __cssModules$1R)this[s]=__cssModules$1R[s]}const ConfigCustom=function(){return __component__$1R.exports}();var render$1K=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",[n("ElFormItem",{attrs:{label:"占位内容"}},[n("ElInput",{attrs:{clearable:"",placeholder:"占位内容"},model:{value:t.data.placeholder,callback:function(r){t.$set(t.data,"placeholder",r)},expression:"data.placeholder"}})],1),n("ElFormItem",{attrs:{label:"前缀"}},[n("ElInput",{attrs:{clearable:"",placeholder:"前缀"},model:{value:t.data.prepend,callback:function(r){t.$set(t.data,"prepend",r)},expression:"data.prepend"}})],1),n("ElFormItem",{attrs:{label:"后缀"}},[n("ElInput",{attrs:{clearable:"",placeholder:"后缀"},model:{value:t.data.append,callback:function(r){t.$set(t.data,"append",r)},expression:"data.append"}})],1),n("ElFormItem",{attrs:{label:"最大长度"}},[n("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"最大长度"},model:{value:t.data.maxlength,callback:function(r){t.$set(t.data,"maxlength",r)},expression:"data.maxlength"}})],1),t.data.type!=="password"?n("ElFormItem",{attrs:{label:"显示计数"}},[n("ElSwitch",{model:{value:t.data.showWordLimit,callback:function(r){t.$set(t.data,"showWordLimit",r)},expression:"data.showWordLimit"}})],1):t._e(),t.data.type==="password"?n("ElFormItem",{attrs:{label:"显示密码"}},[n("ElSwitch",{model:{value:t.data.showPassword,callback:function(r){t.$set(t.data,"showPassword",r)},expression:"data.showPassword"}})],1):t._e()],1)},staticRenderFns$1K=[];const __vue2_script$1Q={name:"ConfigInput",props:{data:Object,defaultValues:Object}},__cssModules$1Q={};var __component__$1Q=normalizeComponent(__vue2_script$1Q,render$1K,staticRenderFns$1K,!1,__vue2_injectStyles$1Q,null,null,null);function __vue2_injectStyles$1Q(t){for(let s in __cssModules$1Q)this[s]=__cssModules$1Q[s]}const ConfigInput=function(){return __component__$1Q.exports}();var render$1J=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",[n("ElFormItem",{attrs:{label:"占位内容"}},[n("ElInput",{attrs:{type:"textarea",autosize:"",clearable:"",placeholder:"占位内容"},model:{value:t.data.placeholder,callback:function(r){t.$set(t.data,"placeholder",r)},expression:"data.placeholder"}})],1),n("ElFormItem",{attrs:{label:"最大长度"}},[n("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"最大长度"},model:{value:t.data.maxlength,callback:function(r){t.$set(t.data,"maxlength",r)},expression:"data.maxlength"}})],1),n("ElFormItem",{attrs:{label:"显示计数"}},[n("ElSwitch",{model:{value:t.data.showWordLimit,callback:function(r){t.$set(t.data,"showWordLimit",r)},expression:"data.showWordLimit"}})],1),n("ElFormItem",{attrs:{label:"最小行"}},[n("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"最小行",min:1},model:{value:t.data.minRows,callback:function(r){t.$set(t.data,"minRows",r)},expression:"data.minRows"}})],1),n("ElFormItem",{attrs:{label:"最大行"}},[n("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"最大行",min:2},model:{value:t.data.maxRows,callback:function(r){t.$set(t.data,"maxRows",r)},expression:"data.maxRows"}})],1)],1)},staticRenderFns$1J=[];const __vue2_script$1P={name:"ConfigTextarea",props:{data:Object}},__cssModules$1P={};var __component__$1P=normalizeComponent(__vue2_script$1P,render$1J,staticRenderFns$1J,!1,__vue2_injectStyles$1P,null,null,null);function __vue2_injectStyles$1P(t){for(let s in __cssModules$1P)this[s]=__cssModules$1P[s]}const ConfigTextarea=function(){return __component__$1P.exports}();var render$1I=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",[n("ElFormItem",{attrs:{label:"占位内容"}},[n("ElInput",{attrs:{clearable:"",placeholder:"占位内容"},model:{value:t.data.placeholder,callback:function(r){t.$set(t.data,"placeholder",r)},expression:"data.placeholder"}})],1),n("ElFormItem",{attrs:{label:"最小值"}},[n("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"最小值"},model:{value:t.data.minRows,callback:function(r){t.$set(t.data,"minRows",r)},expression:"data.minRows"}})],1),n("ElFormItem",{attrs:{label:"最大值"}},[n("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"最大值"},model:{value:t.data.maxRows,callback:function(r){t.$set(t.data,"maxRows",r)},expression:"data.maxRows"}})],1),n("ElFormItem",{attrs:{label:"步长"}},[n("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"步长"},model:{value:t.data.step,callback:function(r){t.$set(t.data,"step",r)},expression:"data.step"}})],1),n("ElFormItem",{attrs:{label:"数值精度"}},[n("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"数值精度",min:0,max:10},model:{value:t.data.precision,callback:function(r){t.$set(t.data,"precision",r)},expression:"data.precision"}})],1),n("ElFormItem",{attrs:{label:"开启控制器","label-width":"100px"}},[n("ElSwitch",{model:{value:t.data.controls,callback:function(r){t.$set(t.data,"controls",r)},expression:"data.controls"}})],1),t.data.controls?n("ElFormItem",{attrs:{label:"控制器位置","label-width":"100px"}},[n("ElRadio",{attrs:{label:""},model:{value:t.data.controlsPosition,callback:function(r){t.$set(t.data,"controlsPosition",r)},expression:"data.controlsPosition"}},[t._v(" 默认 ")]),n("ElRadio",{attrs:{label:"right"},model:{value:t.data.controlsPosition,callback:function(r){t.$set(t.data,"controlsPosition",r)},expression:"data.controlsPosition"}},[t._v(" 右 ")])],1):t._e()],1)},staticRenderFns$1I=[];const __vue2_script$1O={name:"ConfigNumber",props:{data:Object}},__cssModules$1O={};var __component__$1O=normalizeComponent(__vue2_script$1O,render$1I,staticRenderFns$1I,!1,__vue2_injectStyles$1O,null,null,null);function __vue2_injectStyles$1O(t){for(let s in __cssModules$1O)this[s]=__cssModules$1O[s]}const ConfigNumber=function(){return __component__$1O.exports}();var render$1H=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",[n("ElFormItem",{attrs:{label:"对齐方式"}},[n("ElSelect",{attrs:{placeholder:"对齐方式",clearable:""},model:{value:t.data.children.align,callback:function(r){t.$set(t.data.children,"align",r)},expression:"data.children.align"}},[n("ElOption",{attrs:{label:"居左",value:"left"}}),n("ElOption",{attrs:{label:"居中",value:"center"}}),n("ElOption",{attrs:{label:"居右",value:"right"}})],1)],1),n("ElFormItem",{attrs:{label:"头部对齐方式","label-width":"110px"}},[n("ElSelect",{attrs:{placeholder:"对齐方式",clearable:""},model:{value:t.data.children.headerAlign,callback:function(r){t.$set(t.data.children,"headerAlign",r)},expression:"data.children.headerAlign"}},[n("ElOption",{attrs:{label:"居左",value:"left"}}),n("ElOption",{attrs:{label:"居中",value:"center"}}),n("ElOption",{attrs:{label:"居右",value:"right"}})],1)],1),n("ElFormItem",{attrs:{label:"表单格式"}},[n("ElSelect",{attrs:{placeholder:"表单格式",clearable:""},model:{value:t.data.children.type,callback:function(r){t.$set(t.data.children,"type",r)},expression:"data.children.type"}},[n("ElOption",{attrs:{label:"表格",value:""}}),n("ElOption",{attrs:{label:"表单",value:"form"}})],1)],1),t.data.children.type==="form"?n("ElFormItem",{attrs:{label:"序号"}},[n("ElSwitch",{model:{value:t.data.children.index,callback:function(r){t.$set(t.data.children,"index",r)},expression:"data.children.index"}})],1):t._e(),n("ElFormItem",{attrs:{label:"添加按钮"}},[n("ElSwitch",{model:{value:t.data.children.addBtn,callback:function(r){t.$set(t.data.children,"addBtn",r)},expression:"data.children.addBtn"}})],1),n("ElFormItem",{attrs:{label:"删除按钮"}},[n("ElSwitch",{model:{value:t.data.children.delBtn,callback:function(r){t.$set(t.data.children,"delBtn",r)},expression:"data.children.delBtn"}})],1)],1)},staticRenderFns$1H=[];const __vue2_script$1N={name:"ConfigDynamic",props:{data:Object}},__cssModules$1N={};var __component__$1N=normalizeComponent(__vue2_script$1N,render$1H,staticRenderFns$1H,!1,__vue2_injectStyles$1N,null,null,null);function __vue2_injectStyles$1N(t){for(let s in __cssModules$1N)this[s]=__cssModules$1N[s]}const ConfigDynamic=function(){return __component__$1N.exports}();var render$1G=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",[n("ElFormItem",{attrs:{label:"自定义"}},[n("ElButton",{staticClass:"danger",attrs:{type:"text"},on:{click:t.handleDicClear}},[t._v(" 清空 ")]),t._l(t.data.dicData,function(r,a){return n("div",{key:a,staticClass:"dic"},[n("ElInput",{staticStyle:{"margin-right":"5px"},attrs:{size:"mini",placeholder:"自定义文字",clearable:""},model:{value:r.label,callback:function(o){t.$set(r,"label",o)},expression:"item.label"}}),n("ElInput",{attrs:{size:"mini",clearable:"",placeholder:"自定义值"},model:{value:r.value,callback:function(o){t.$set(r,"value",o)},expression:"item.value"}})],1)})],2)],1)},staticRenderFns$1G=[];const ConfigSwitch_vue_vue_type_style_index_0_scoped_true_lang="",__vue2_script$1M={name:"ConfigSwitch",props:{data:Object},methods:{handleDicClear(){this.data.dicData=[{label:"",value:"0"},{label:"",value:"1"}]}}},__cssModules$1M={};var __component__$1M=normalizeComponent(__vue2_script$1M,render$1G,staticRenderFns$1G,!1,__vue2_injectStyles$1M,"75f24f72",null,null);function __vue2_injectStyles$1M(t){for(let s in __cssModules$1M)this[s]=__cssModules$1M[s]}const ConfigSwitch=function(){return __component__$1M.exports}();var render$1F=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",[n("ElFormItem",{attrs:{label:"最大星数"}},[n("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"最大星数"},model:{value:t.data.max,callback:function(r){t.$set(t.data,"max",r)},expression:"data.max"}})],1),n("ElFormItem",{attrs:{label:"是否显示文本","label-width":"110px"}},[n("ElSwitch",{model:{value:t.data.showText,callback:function(r){t.$set(t.data,"showText",r)},expression:"data.showText"}})],1),t.data.showText?n("ElFormItem",{attrs:{label:"自定义文本","label-width":"110px"}},[t._l(t.data.texts,function(r,a){return n("ElTag",{key:a,attrs:{size:"small",closable:""},on:{close:function(o){return t.handleTextClose(r)}}},[t._v(" "+t._s(r)+" ")])}),t.textVisible?n("ElInput",{ref:"textTag",staticClass:"input-new-tag",attrs:{size:"mini",clearable:""},on:{blur:t.handleTextConfirm},nativeOn:{keyup:function(r){return!r.type.indexOf("key")&&t._k(r.keyCode,"enter",13,r.key,"Enter")?null:t.handleTextConfirm.apply(null,arguments)}},model:{value:t.textValue,callback:function(r){t.textValue=r},expression:"textValue"}}):t._e(),!t.textVisible&&t.data.texts.length<t.data.max?n("ElButton",{staticStyle:{"margin-left":"5px"},attrs:{size:"mini",icon:"el-icon-plus",circle:""},on:{click:t.showTextInput}}):t._e()],2):t._e(),n("ElFormItem",{attrs:{label:"自定义颜色","label-width":"110px"}},[t._l(t.data.colors,function(r,a){return n("ElTag",{key:a,style:{color:r},attrs:{closable:"",size:"small"},on:{close:function(o){return t.handleColorClose(r)}}},[t._v(" "+t._s(r)+" ")])}),n("ElColorPicker",{staticClass:"color-picker",attrs:{size:"mini"},on:{change:t.handleColorConfirm},model:{value:t.colorValue,callback:function(r){t.colorValue=r},expression:"colorValue"}})],2)],1)},staticRenderFns$1F=[];const ConfigRate_vue_vue_type_style_index_0_scoped_true_lang="",__vue2_script$1L={name:"ConfigRate",props:{data:Object},data(){return{textVisible:!1,textValue:"",colorVisible:!1,colorValue:"",iconVisible:!1,iconValue:""}},methods:{handleTextClose(t){this.data.texts.splice(this.data.texts.indexOf(t),1)},showTextInput(){this.textVisible=!0,this.$nextTick(()=>{this.$refs.textTag.$refs.input.focus()})},handleTextConfirm(){this.textValue&&this.data.texts.push(this.textValue),this.textVisible=!1,this.textValue=""},handleColorClose(t){this.data.colors.splice(this.data.colors.indexOf(t),1)},handleColorConfirm(){this.colorValue&&this.data.colors.push(this.colorValue),this.colorValue=""}}},__cssModules$1L={};var __component__$1L=normalizeComponent(__vue2_script$1L,render$1F,staticRenderFns$1F,!1,__vue2_injectStyles$1L,"64e64f97",null,null);function __vue2_injectStyles$1L(t){for(let s in __cssModules$1L)this[s]=__cssModules$1L[s]}const ConfigRate=function(){return __component__$1L.exports}();var render$1E=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",[n("ElFormItem",{attrs:{label:"最小值"}},[n("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"最小值",max:t.data.max-1,min:0},model:{value:t.data.min,callback:function(r){t.$set(t.data,"min",r)},expression:"data.min"}})],1),n("ElFormItem",{attrs:{label:"最大值"}},[n("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"最大值",min:t.data.min+1},model:{value:t.data.max,callback:function(r){t.$set(t.data,"max",r)},expression:"data.max"}})],1),n("ElFormItem",{attrs:{label:"步长"}},[n("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"步长",min:1,max:t.data.max-t.data.min},model:{value:t.data.step,callback:function(r){t.$set(t.data,"step",r)},expression:"data.step"}})],1),n("ElFormItem",{attrs:{label:"显示间隔点","label-width":"100px"}},[n("ElSwitch",{model:{value:t.data.showStops,callback:function(r){t.$set(t.data,"showStops",r)},expression:"data.showStops"}})],1),n("ElFormItem",{attrs:{label:"显示输入框","label-width":"100px"}},[n("ElSwitch",{model:{value:t.data.showInput,callback:function(r){t.$set(t.data,"showInput",r)},expression:"data.showInput"}})],1),n("ElFormItem",{attrs:{label:"范围"}},[n("ElSwitch",{model:{value:t.data.range,callback:function(r){t.$set(t.data,"range",r)},expression:"data.range"}})],1)],1)},staticRenderFns$1E=[];const __vue2_script$1K={name:"ConfigSlider",props:{data:Object}},__cssModules$1K={};var __component__$1K=normalizeComponent(__vue2_script$1K,render$1E,staticRenderFns$1E,!1,__vue2_injectStyles$1K,null,null,null);function __vue2_injectStyles$1K(t){for(let s in __cssModules$1K)this[s]=__cssModules$1K[s]}const ConfigSlider=function(){return __component__$1K.exports}();var render$1D=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",[n("ElFormItem",{attrs:{label:"占位内容"}},[n("ElInput",{attrs:{clearable:"",placeholder:"占位内容"},model:{value:t.data.placeholder,callback:function(r){t.$set(t.data,"placeholder",r)},expression:"data.placeholder"}})],1)],1)},staticRenderFns$1D=[];const __vue2_script$1J={name:"ConfigColor",props:{data:Object}},__cssModules$1J={};var __component__$1J=normalizeComponent(__vue2_script$1J,render$1D,staticRenderFns$1D,!1,__vue2_injectStyles$1J,null,null,null);function __vue2_injectStyles$1J(t){for(let s in __cssModules$1J)this[s]=__cssModules$1J[s]}const ConfigColor=function(){return __component__$1J.exports}();var render$1C=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",[t.data.type==="select"?n("ElFormItem",{attrs:{label:"占位内容"}},[n("ElInput",{attrs:{clearable:"",placeholder:"占位内容"},model:{value:t.data.placeholder,callback:function(r){t.$set(t.data,"placeholder",r)},expression:"data.placeholder"}})],1):t._e(),n("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[n("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[t._v("字典配置:")]),n("div",{staticClass:"el-form-item__content"},[n("ElTabs",{attrs:{stretch:""},on:{"tab-click":t.handleTabClick},model:{value:t.data.dicOption,callback:function(r){t.$set(t.data,"dicOption",r)},expression:"data.dicOption"}},[n("ElTabPane",{attrs:{label:"静态数据",name:"static"}},[n("Draggable",{attrs:{tag:"ul",list:t.data.dicData,group:{name:"dic"},"ghost-class":"ghost",handle:".drag-item"}},t._l(t.data.dicData,function(r,a){return n("li",{key:a},[n("i",{staticClass:"drag-item el-icon-s-operation",staticStyle:{margin:"0 5px","font-size":"16px",cursor:"move"}}),n("ElInput",{staticStyle:{"margin-right":"5px"},attrs:{size:"mini",clearable:"",placeholder:"label"},model:{value:r.label,callback:function(o){t.$set(r,"label",o)},expression:"item.label"}}),n("ElInput",{style:{"margin-right":t.data.type==="select"?"5px":"0"},attrs:{size:"mini",clearable:"",placeholder:"value"},model:{value:r.value,callback:function(o){t.$set(r,"value",o)},expression:"item.value"}}),t.data.type==="select"?n("ElInput",{attrs:{size:"mini",clearable:"",placeholder:"描述"},model:{value:r.desc,callback:function(o){t.$set(r,"desc",o)},expression:"item.desc"}}):t._e(),n("ElButton",{staticStyle:{"margin-left":"5px",padding:"4px"},attrs:{circle:"",plain:"",type:"danger",size:"mini",icon:"el-icon-minus"},on:{click:function(o){return t.handleRemoveFields(a)}}})],1)}),0),n("div",{staticStyle:{"margin-left":"22px"}},[n("ElButton",{attrs:{type:"text"},on:{click:t.handleAddFields}},[t._v(" 添加列 ")])],1)],1),n("ElTabPane",{attrs:{label:"远端数据",name:"remote"}},[t._v(" 网址 "),n("ElInput",{attrs:{size:"small",placeholder:"远端数据字典网址"},model:{value:t.data.dicUrl,callback:function(r){t.$set(t.data,"dicUrl",r)},expression:"data.dicUrl"}}),t._v(" 远程搜索 "),n("ElSwitch",{model:{value:t.data.remote,callback:function(r){t.$set(t.data,"remote",r)},expression:"data.remote"}}),n("br"),t._v(" 请求方法 "),n("ElSelect",{staticStyle:{width:"100%"},attrs:{placeholder:"请求方法",size:"small"},model:{value:t.data.dicMethod,callback:function(r){t.$set(t.data,"dicMethod",r)},expression:"data.dicMethod"}},[n("ElOption",{attrs:{label:"POST",value:"post"}}),n("ElOption",{attrs:{label:"GET",value:"get"}})],1),t.data.dicMethod==="post"?n("p",[t._v(" 请求参数 "),n("FyDynamic",{attrs:{children:t.option},model:{value:t.data.dicQueryConfig,callback:function(r){t.$set(t.data,"dicQueryConfig",r)},expression:"data.dicQueryConfig"}})],1):t._e(),t.data.dicUrl?n("p",[t._v(" 返回结构 "),n("MonacoEditor",{attrs:{height:"80","key-index":`dict-formatter-${t.data.prop}`,options:t.options},model:{value:t.dicFormatter,callback:function(r){t.dicFormatter=r},expression:"dicFormatter"}})],1):t._e()],1)],1)],1)]),n("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[n("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[t._v("字典key配置:")]),n("div",{staticClass:"el-form-item__content"},[n("ul",t._l(t.data.props,function(r,a){return n("li",{key:a},[n("span",{staticStyle:{width:"50px"}},[t._v(t._s(a))]),n("ElInput",{attrs:{size:"mini",clearable:"",placeholder:"key配置"},model:{value:t.data.props[a],callback:function(o){t.$set(t.data.props,a,o)},expression:"data.props[key]"}})],1)}),0)])]),t.data.dicOption==="remote"?n("ElFormItem",{attrs:{label:"重新请求字典(crud)","label-width":"150px"}},[n("ElSwitch",{model:{value:t.data.dicFlag,callback:function(r){t.$set(t.data,"dicFlag",r)},expression:"data.dicFlag"}})],1):t._e(),t.data.type==="select"?[n("ElFormItem",{attrs:{label:"是否多选"}},[n("ElSwitch",{model:{value:t.data.multiple,callback:function(r){t.$set(t.data,"multiple",r)},expression:"data.multiple"}})],1),t.data.multiple?n("ElFormItem",{attrs:{label:"是否可拖拽","label-width":"110px"},scopedSlots:t._u([{key:"label",fn:function(){return[n("ElLink",{attrs:{underline:!1,href:"https://avuejs.com/form/form-select.html#%E6%8B%96%E6%8B%BD",target:"_blank"}},[t._v(" 是否可拖拽 "),n("i",{staticClass:"el-icon-question"})])]},proxy:!0}],null,!1,2120444940)},[n("ElSwitch",{model:{value:t.data.drag,callback:function(r){t.$set(t.data,"drag",r)},expression:"data.drag"}})],1):t._e(),t.data.multiple?n("ElFormItem",{attrs:{label:"多选数量限制","label-width":"110px"}},[n("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"多选限制",min:0,max:t.data.dicData.length},model:{value:t.data.limit,callback:function(r){t.$set(t.data,"limit",r)},expression:"data.limit"}})],1):t._e(),n("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[n("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[t._v("级联配置:")]),n("div",{staticClass:"el-form-item__content"},[n("Draggable",{attrs:{tag:"ul",list:t.data.cascaderItem||t.data.cascader,group:{name:"cascaderItem"},"ghost-class":"ghost",handle:".drag-item"}},t._l(t.data.cascaderItem||t.data.cascader,function(r,a){return n("li",{key:a},[n("i",{staticClass:"drag-item el-icon-s-operation",staticStyle:{margin:"0 5px","font-size":"16px",cursor:"move"}}),n("ElInput",{attrs:{size:"mini",clearable:"",placeholder:"级联属性值"},model:{value:t.data.cascader[a],callback:function(o){t.$set(t.data.cascader,a,o)},expression:"data.cascader[index]"}}),n("ElButton",{staticStyle:{"margin-left":"5px",padding:"4px"},attrs:{circle:"",plain:"",type:"danger",size:"mini",icon:"el-icon-minus"},on:{click:function(o){return t.handleRemoveCascaderItemFields(a)}}})],1)}),0),n("div",{staticStyle:{"margin-left":"22px"}},[n("ElButton",{attrs:{type:"text"},on:{click:t.handleAddCascaderItemFields}},[t._v(" 添加列 ")])],1)],1)]),(t.data.cascaderItem||t.data.cascader)&&(t.data.cascaderItem||t.data.cascader).length>0?n("ElFormItem",{attrs:{label:"级联默认选中","label-width":"110px"}},[n("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"级联默认选中",min:0},model:{value:t.data.cascaderIndex,callback:function(r){t.$set(t.data,"cascaderIndex",r)},expression:"data.cascaderIndex"}})],1):t._e(),n("ElFormItem",{attrs:{label:"是否可清空","label-width":"110px"}},[n("ElSwitch",{model:{value:t.data.clearable,callback:function(r){t.$set(t.data,"clearable",r)},expression:"data.clearable"}})],1),n("ElFormItem",{attrs:{label:"是否可搜索","label-width":"110px"}},[n("ElSwitch",{model:{value:t.data.filterable,callback:function(r){t.$set(t.data,"filterable",r)},expression:"data.filterable"}})],1)]:t._e(),["radio","checkbox"].includes(t.data.type)?[t.data.button?t._e():n("ElFormItem",{attrs:{label:"边框"}},[n("ElSwitch",{model:{value:t.data.border,callback:function(r){t.$set(t.data,"border",r)},expression:"data.border"}})],1),t.data.border?t._e():n("ElFormItem",{attrs:{label:"按钮"}},[n("ElSwitch",{model:{value:t.data.button,callback:function(r){t.$set(t.data,"button",r)},expression:"data.button"}})],1)]:t._e(),t.data.border||t.data.button?n("ElFormItem",{attrs:{label:"尺寸"}},[n("ElRadioGroup",{attrs:{size:"mini"},model:{value:t.data.size,callback:function(r){t.$set(t.data,"size",r)},expression:"data.size"}},[n("ElRadioButton",{attrs:{label:"medium"}},[t._v(" 正常 ")]),n("ElRadioButton",{attrs:{label:"small"}},[t._v(" 小 ")]),n("ElRadioButton",{attrs:{label:"mini"}},[t._v(" 超小 ")])],1)],1):t._e()],2)},staticRenderFns$1C=[];const __vue2_script$1I={name:"ConfigSelect",components:{Draggable,MonacoEditor:component.MonacoEditor},props:{data:Object},data(){return{option:{column:[{type:"input",prop:"key",label:"key"},{type:"input",prop:"value",label:"value"}]},options:{fullScreen:!0,minimap:{enabled:!1}},dicFormatter:""}},watch:{"data.prop":{handler(){const{dicFormatter:t}=this.data;this.dicFormatter=t?`${t}`:`(res) => {\r
|
|
18
18
|
return res.data\r
|
|
19
|
-
}`},immediate:!0},dicFormatter:{handler(val){try{this.data.dicFormatter=eval(val)}catch(t){}}}},methods:{handleRemoveFields(t){this.data.dicData.splice(t,1)},handleAddFields(){const t=Math.ceil(Math.random()*99999);this.data.dicData.push({label:`字段${t}`,value:`col_${t}`})},handleRemoveCascaderItemFields(t){this.data.cascader.splice(t,1)},handleAddCascaderItemFields(){this.data.cascader||(this.$set(this.data,"cascader",[]),delete this.data.cascaderItem),this.data.cascader.push("")},handleTabClick({name:t}){t=="remote"&&!this.data.dicQueryConfig&&(this.data.dicQueryConfig=[])}}},__cssModules$
|
|
19
|
+
}`},immediate:!0},dicFormatter:{handler(val){try{this.data.dicFormatter=eval(val)}catch(t){}}}},methods:{handleRemoveFields(t){this.data.dicData.splice(t,1)},handleAddFields(){const t=Math.ceil(Math.random()*99999);this.data.dicData.push({label:`字段${t}`,value:`col_${t}`})},handleRemoveCascaderItemFields(t){this.data.cascader.splice(t,1)},handleAddCascaderItemFields(){this.data.cascader||(this.$set(this.data,"cascader",[]),delete this.data.cascaderItem),this.data.cascader.push("")},handleTabClick({name:t}){t=="remote"&&!this.data.dicQueryConfig&&(this.data.dicQueryConfig=[])}}},__cssModules$1I={};var __component__$1I=normalizeComponent(__vue2_script$1I,render$1C,staticRenderFns$1C,!1,__vue2_injectStyles$1I,null,null,null);function __vue2_injectStyles$1I(t){for(let s in __cssModules$1I)this[s]=__cssModules$1I[s]}const ConfigSelect=function(){return __component__$1I.exports}();var render$1B=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",[n("ElFormItem",{attrs:{label:"占位内容"}},[n("ElInput",{attrs:{clearable:"",placeholder:"占位内容"},model:{value:t.data.placeholder,callback:function(r){t.$set(t.data,"placeholder",r)},expression:"data.placeholder"}})],1),n("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[n("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[t._v("字典配置:")]),n("div",{staticClass:"el-form-item__content"},[n("ElTabs",{attrs:{stretch:""},on:{"tab-click":t.handleTabClick},model:{value:t.data.dicOption,callback:function(r){t.$set(t.data,"dicOption",r)},expression:"data.dicOption"}},[n("ElTabPane",{attrs:{label:"静态数据",name:"static"}},[n("ElTree",{ref:"tree",attrs:{data:t.data.dicData,"default-expand-all":"",draggable:"","node-key":"value","expand-on-click-node":!1},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.node,o=r.data;return n("span",{staticClass:"custom-tree-node"},[n("span",[t._v(t._s(a.label))]),n("span",[n("ElButton",{attrs:{type:"text",size:"mini",icon:"el-icon-plus"},on:{click:function(l){return t.handleNodeAdd(o)}}}),n("ElButton",{staticClass:"danger",attrs:{type:"text",size:"mini",icon:"el-icon-delete"},on:{click:function(l){return t.handleNodeRemove(a,o)}}})],1)])}}])}),n("div",{staticStyle:{"margin-left":"22px"}},[n("ElButton",{attrs:{type:"text"},on:{click:t.handleParentNodeAdd}},[t._v(" 添加父级 ")])],1)],1),n("ElTabPane",{attrs:{label:"远端数据",name:"remote"}},[t._v(" 网址 "),n("ElInput",{attrs:{size:"small",placeholder:"远端数据字典网址"},model:{value:t.data.dicUrl,callback:function(r){t.$set(t.data,"dicUrl",r)},expression:"data.dicUrl"}}),t._v(" 远程搜索 "),n("ElSwitch",{model:{value:t.data.remote,callback:function(r){t.$set(t.data,"remote",r)},expression:"data.remote"}}),n("br"),t._v(" 请求方法 "),n("ElSelect",{staticStyle:{width:"100%"},attrs:{size:"small",placeholder:"请求方法"},model:{value:t.data.dicMethod,callback:function(r){t.$set(t.data,"dicMethod",r)},expression:"data.dicMethod"}},[n("ElOption",{attrs:{label:"POST",value:"post"}}),n("ElOption",{attrs:{label:"GET",value:"get"}})],1),t.data.dicMethod==="post"?n("p",[t._v(" 请求参数 "),n("FyDynamic",{attrs:{children:t.option},model:{value:t.data.dicQueryConfig,callback:function(r){t.$set(t.data,"dicQueryConfig",r)},expression:"data.dicQueryConfig"}})],1):t._e(),t.data.dicUrl?n("p",[t._v(" 返回结构 "),n("MonacoEditor",{attrs:{height:"80","key-index":`dict-formatter-${t.data.prop}`,options:t.options},model:{value:t.dicFormatter,callback:function(r){t.dicFormatter=r},expression:"dicFormatter"}})],1):t._e()],1)],1)],1)]),n("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[n("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[t._v("字典key配置:")]),n("div",{staticClass:"el-form-item__content"},[n("ul",t._l(t.data.props,function(r,a){return n("li",{key:a},[n("span",{staticStyle:{width:"50px"}},[t._v(t._s(a))]),n("ElInput",{attrs:{size:"mini",placeholder:"key配置"},model:{value:t.data.props[a],callback:function(o){t.$set(t.data.props,a,o)},expression:"data.props[key]"}})],1)}),0)])]),t.data.dicOption==="remote"?n("ElFormItem",{attrs:{label:"重新请求字典(crud)"}},[n("ElSwitch",{model:{value:t.data.dicFlag,callback:function(r){t.$set(t.data,"dicFlag",r)},expression:"data.dicFlag"}})],1):t._e(),n("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[n("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[t._v("级联配置:")]),n("div",{staticClass:"el-form-item__content"},[n("Draggable",{attrs:{tag:"ul",list:t.data.cascaderItem||t.data.cascader,group:{name:"cascaderItem"},"ghost-class":"ghost",handle:".drag-item"}},t._l(t.data.cascaderItem||t.data.cascader,function(r,a){return n("li",{key:a},[n("i",{staticClass:"drag-item el-icon-s-operation",staticStyle:{margin:"0 5px","font-size":"16px",cursor:"move"}}),n("ElInput",{attrs:{size:"mini",clearable:"",placeholder:"级联属性值"},model:{value:t.data.cascader[a],callback:function(o){t.$set(t.data.cascader,a,o)},expression:"data.cascader[index]"}}),n("ElButton",{staticStyle:{"margin-left":"5px",padding:"4px"},attrs:{circle:"",plain:"",type:"danger",size:"mini",icon:"el-icon-minus"},on:{click:function(o){return t.handleRemoveCascaderItemFields(a)}}})],1)}),0),n("div",{staticStyle:{"margin-left":"22px"}},[n("ElButton",{attrs:{type:"text"},on:{click:t.handleAddCascaderItemFields}},[t._v(" 添加列 ")])],1)],1)]),t.data.type==="tree"?[n("ElFormItem",{attrs:{label:"当有子级时,是否可选择父级","label-width":"200px"}},[n("ElSwitch",{model:{value:t.data.parent,callback:function(r){t.$set(t.data,"parent",r)},expression:"data.parent"}})],1)]:t._e(),t.data.type==="cascader"?[n("ElFormItem",{attrs:{label:"选项分隔符","label-width":"100px"}},[n("ElInput",{attrs:{clearable:"",placeholder:"选项分隔符"},model:{value:t.data.separator,callback:function(r){t.$set(t.data,"separator",r)},expression:"data.separator"}})],1),n("ElFormItem",{attrs:{label:"是否显示选中值的完整路径","label-width":"200px"}},[n("ElSwitch",{model:{value:t.data.showAllLevels,callback:function(r){t.$set(t.data,"showAllLevels",r)},expression:"data.showAllLevels"}})],1),n("ElFormItem",{attrs:{label:"是否可搜索","label-width":"100px"}},[n("ElSwitch",{model:{value:t.data.filterable,callback:function(r){t.$set(t.data,"filterable",r)},expression:"data.filterable"}})],1)]:t._e(),n("ElFormItem",{attrs:{label:"是否多选"}},[n("ElSwitch",{model:{value:t.data.multiple,callback:function(r){t.$set(t.data,"multiple",r)},expression:"data.multiple"}})],1),t.data.type==="tree"&&t.data.multiple?n("ElFormItem",{attrs:{label:"勾选时,父子不关联","label-width":"160px"}},[n("ElSwitch",{model:{value:t.data.checkStrictly,callback:function(r){t.$set(t.data,"checkStrictly",r)},expression:"data.checkStrictly"}})],1):t._e(),n("ElementDialog",{attrs:{visible:t.dialogVisible,rules:t.dialogRules,"before-close":t.beforeClose},on:{"update:visible":function(r){t.dialogVisible=r}},scopedSlots:t._u([{key:"footer",fn:function(){return[n("ElButton",{on:{click:function(r){t.dialogVisible=!1}}},[t._v(" 取 消 ")]),t.dialogStatus==="add"?n("ElButton",{attrs:{type:"primary"},on:{click:t.handleDialogAdd}},[t._v(" 确 定 ")]):t._e()]},proxy:!0}])},[n("ElForm",{ref:"dialogForm",attrs:{model:t.dialogForm,"label-width":"80px"}},[n("ElFormItem",{attrs:{label:"label"}},[n("ElInput",{attrs:{placeholder:"label"},model:{value:t.dialogForm.label,callback:function(r){t.$set(t.dialogForm,"label",r)},expression:"dialogForm.label"}})],1),n("ElFormItem",{attrs:{label:"value"}},[n("ElInput",{attrs:{placeholder:"value",type:t.dialogInputType},model:{value:t.dialogForm.value,callback:function(r){t.$set(t.dialogForm,"value",r)},expression:"dialogForm.value"}},[n("ElSelect",{staticStyle:{width:"100px"},attrs:{slot:"append",placeholder:"数据类型"},slot:"append",model:{value:t.dialogInputType,callback:function(r){t.dialogInputType=r},expression:"dialogInputType"}},[n("ElOption",{attrs:{label:"String",value:"text"}}),n("ElOption",{attrs:{label:"Number",value:"number"}})],1)],1)],1)],1)],1)],2)},staticRenderFns$1B=[];const ConfigTree_vue_vue_type_style_index_0_scoped_true_lang="",__vue2_script$1H={name:"ConfigTree",components:{MonacoEditor:component.MonacoEditor,Draggable},props:{data:Object},data(){return{dialogForm:{},dialogVisible:!1,dialogRules:{label:{required:!0,message:"请输入label"},value:{required:!0,message:"请输入value"}},dialogStatus:"add",selectData:void 0,dialogInputType:"text",option:{column:[{type:"input",prop:"key",label:"key"},{type:"input",prop:"value",label:"value"}]},options:{fullScreen:!0,minimap:{enabled:!1}},dicFormatter:""}},watch:{"data.prop":{handler(){this.$set(this.data,"cascader",this.data.cascaderItem),this.$delete(this.data,"cascaderItem");const{dicFormatter:t}=this.data;this.dicFormatter=t?`${t}`:`(res) => {\r
|
|
20
20
|
return res.data\r
|
|
21
|
-
}`},immediate:!0},dicFormatter:{handler(val){try{this.data.dicFormatter=eval(val)}catch(t){}}}},methods:{handleRemoveCascaderItemFields(t){this.data.cascader.splice(t,1)},handleAddCascaderItemFields(){this.data.cascader||(this.$set(this.data,"cascader",[]),delete this.data.cascaderItem),this.data.cascader.push("")},handleTabClick({name:t}){t=="remote"&&!this.data.dicQueryConfig&&(this.data.dicQueryConfig=[])},handleParentNodeAdd(){this.selectData=void 0,this.dialogStatus="add",this.dialogVisible=!0},handleNodeAdd(t){this.selectData=t,this.dialogStatus="add",this.dialogVisible=!0},handleNodeRemove(t,s){const n=t.parent,r=n.data.children||n.data,a=r.findIndex(o=>o.id===s.id);r.splice(a,1)},handleDialogAdd(){this.$refs.dialogForm.validate(t=>{if(t){const{label:s,value:n}=this.dialogForm;if(this.$refs.tree.getNode(n))this.$message.error("value重复");else{const a=this.selectData,o={label:s,value:this.dialogInputType=="number"?new Number(n):n};a?(a.children||this.$set(a,"children",[]),a.children.push(o)):this.$set(this.data.dicData,this.data.dicData.length,o),this.beforeClose()}}})},beforeClose(){this.$refs.dialogForm.clearValidate(),this.dialogForm={},this.dialogVisible=!1}}},__cssModules$1E={};var __component__$1E=normalizeComponent(__vue2_script$1E,render$1z,staticRenderFns$1z,!1,__vue2_injectStyles$1E,"3c348f5c",null,null);function __vue2_injectStyles$1E(t){for(let s in __cssModules$1E)this[s]=__cssModules$1E[s]}const ConfigTree=function(){return __component__$1E.exports}();var render$1y=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",[t.data.type.indexOf("range")!==-1?[n("ElFormItem",{attrs:{label:"开始占位内容","label-width":"110px"}},[n("ElInput",{attrs:{clearable:"",placeholder:"开始占位内容"},model:{value:t.data.startPlaceholder,callback:function(r){t.$set(t.data,"startPlaceholder",r)},expression:"data.startPlaceholder"}})],1),n("ElFormItem",{attrs:{label:"结束占位内容","label-width":"110px"}},[n("ElInput",{attrs:{clearable:"",placeholder:"结束占位内容"},model:{value:t.data.endPlaceholder,callback:function(r){t.$set(t.data,"endPlaceholder",r)},expression:"data.endPlaceholder"}})],1)]:n("ElFormItem",{attrs:{label:"占位内容"}},[n("ElInput",{attrs:{clearable:"",placeholder:"占位内容"},model:{value:t.data.placeholder,callback:function(r){t.$set(t.data,"placeholder",r)},expression:"data.placeholder"}})],1),n("ElFormItem",{attrs:{label:"显示格式化","label-width":"100px"}},[n("ElInput",{attrs:{clearable:"",placeholder:"显示格式化"},model:{value:t.data.format,callback:function(r){t.$set(t.data,"format",r)},expression:"data.format"}})],1),n("ElFormItem",{attrs:{label:"值格式化"}},[n("ElInput",{attrs:{clearable:"",placeholder:"值格式化"},model:{value:t.data.valueFormat,callback:function(r){t.$set(t.data,"valueFormat",r)},expression:"data.valueFormat"}})],1),["timerange","daterange","datetimerange"].includes(t.data.type)?n("ElFormItem",{attrs:{label:"取消范围联动","label-width":"110px"}},[n("ElSwitch",{model:{value:t.data.unlinkPanels,callback:function(r){t.$set(t.data,"unlinkPanels",r)},expression:"data.unlinkPanels"}})],1):t._e()],2)},staticRenderFns$1y=[];const __vue2_script$1D={name:"ConfigDate",props:{data:Object}},__cssModules$1D={};var __component__$1D=normalizeComponent(__vue2_script$1D,render$1y,staticRenderFns$1y,!1,__vue2_injectStyles$1D,null,null,null);function __vue2_injectStyles$1D(t){for(let s in __cssModules$1D)this[s]=__cssModules$1D[s]}const ConfigDate=function(){return __component__$1D.exports}();var render$1x=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",[t.data.oss?t._e():n("ElFormItem",{attrs:{label:"上传地址"}},[n("ElInput",{attrs:{clearable:"",placeholder:"上传地址"},model:{value:t.data.action,callback:function(r){t.$set(t.data,"action",r)},expression:"data.action"}})],1),t.data.oss?t._e():n("ElFormItem",{attrs:{label:"接受文件类型","label-width":"110px"}},[n("ElInput",{attrs:{clearable:"",placeholder:"接受文件类型,如:image/png,image/jpg"},model:{value:t.data.accept,callback:function(r){t.$set(t.data,"accept",r)},expression:"data.accept"}})],1),n("ElFormItem",{attrs:{label:"OSS"},scopedSlots:t._u([{key:"label",fn:function(){return[n("ElLink",{attrs:{underline:!1,href:"https://avuejs.com/form/form-upload.html#%E9%98%BF%E9%87%8C%E4%BA%91oss%E4%B8%8A%E4%BC%A0",target:"_blank"}},[t._v(" OSS "),n("i",{staticClass:"el-icon-question"})])]},proxy:!0}])},[n("ElSelect",{staticStyle:{width:"100%"},attrs:{placeholder:"oss不写则为普通上传",clearable:""},model:{value:t.data.oss,callback:function(r){t.$set(t.data,"oss",r)},expression:"data.oss"}},[n("ElOption",{attrs:{label:"阿里",value:"ali"}}),n("ElOption",{attrs:{label:"七牛",value:"qiniu"}})],1)],1),n("ElFormItem",{attrs:{label:"拖拽上传","label-width":"110px"}},[n("ElSwitch",{model:{value:t.data.dragFile,callback:function(r){t.$set(t.data,"dragFile",r)},expression:"data.dragFile"}})],1),t.data.dragFile?t._e():n("ElFormItem",{attrs:{label:"文件列表类型","label-width":"110px"}},[n("ElSelect",{attrs:{placeholder:"文件列表类型",clearable:""},model:{value:t.data.listType,callback:function(r){t.$set(t.data,"listType",r)},expression:"data.listType"}},[n("ElOption",{attrs:{label:"附件",value:"text"}}),n("ElOption",{attrs:{label:"照片墙",value:"picture-card"}}),n("ElOption",{attrs:{label:"头像",value:"picture-img"}}),n("ElOption",{attrs:{label:"缩略图",value:"picture"}})],1)],1),n("ElFormItem",{attrs:{label:"拖拽排序","label-width":"110px"}},[n("ElSwitch",{model:{value:t.data.drag,callback:function(r){t.$set(t.data,"drag",r)},expression:"data.drag"}})],1),n("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[n("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[t._v("参数设置:")]),n("div",{staticClass:"el-form-item__content"},[t._v(" 请求头 "),n("FyDynamic",{attrs:{children:t.option},model:{value:t.data.headersConfig,callback:function(r){t.$set(t.data,"headersConfig",r)},expression:"data.headersConfig"}}),t._v(" 请求体 "),n("FyDynamic",{attrs:{children:t.option},model:{value:t.data.dataConfig,callback:function(r){t.$set(t.data,"dataConfig",r)},expression:"data.dataConfig"}})],1)]),n("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[n("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[n("ElLink",{attrs:{underline:!1,href:"https://avuejs.com/form/form-upload.html",target:"_blank"}},[t._v("上传参数设置 "),n("i",{staticClass:"el-icon-question"})])],1),n("div",{staticClass:"el-form-item__content"},[t._v(" 上传成功返回结构体的图片地址 "),n("ElInput",{attrs:{size:"small",placeholder:"上传成功返回结构体的图片地址"},model:{value:t.data.propsHttp.url,callback:function(r){t.$set(t.data.propsHttp,"url",r)},expression:"data.propsHttp.url"}}),t._v(" 上传成功返回结构体的图片的姓名 "),n("ElInput",{attrs:{size:"small",placeholder:"上传成功返回结构体的图片的姓名"},model:{value:t.data.propsHttp.name,callback:function(r){t.$set(t.data.propsHttp,"name",r)},expression:"data.propsHttp.name"}}),t._v(" 返回结构体的层次 "),n("ElInput",{attrs:{size:"small",placeholder:"返回结构体的层次"},model:{value:t.data.propsHttp.res,callback:function(r){t.$set(t.data.propsHttp,"res",r)},expression:"data.propsHttp.res"}}),t._v(" 文件名称 "),n("ElInput",{attrs:{size:"small",placeholder:"文件名称,默认file"},model:{value:t.data.propsHttp.fileName,callback:function(r){t.$set(t.data.propsHttp,"fileName",r)},expression:"data.propsHttp.fileName"}})],1)]),n("ElFormItem",{attrs:{label:"是否显示已上传文件列表","label-width":"180px"}},[n("ElSwitch",{model:{value:t.data.showFileList,callback:function(r){t.$set(t.data,"showFileList",r)},expression:"data.showFileList"}})],1),n("ElFormItem",{attrs:{label:"文件大小"}},[n("ElInputNumber",{staticStyle:{width:"100%"},attrs:{"controls-position":"right",placeholder:"文件大小限制(字节)",min:0},model:{value:t.data.fileSize,callback:function(r){t.$set(t.data,"fileSize",r)},expression:"data.fileSize"}})],1),n("ElFormItem",{attrs:{label:"上传限制提示","label-width":"110px"}},[n("ElInput",{attrs:{clearable:"",placeholder:"上传限制提示"},model:{value:t.data.tip,callback:function(r){t.$set(t.data,"tip",r)},expression:"data.tip"}})],1),n("ElFormItem",{attrs:{label:"上传中提示","label-width":"110px"}},[n("ElInput",{attrs:{clearable:"",placeholder:"上传中提示"},model:{value:t.data.loadText,callback:function(r){t.$set(t.data,"loadText",r)},expression:"data.loadText"}})],1),n("ElFormItem",{attrs:{label:"是否多文件上传","label-width":"130px"}},[n("ElSwitch",{model:{value:t.data.multiple,callback:function(r){t.$set(t.data,"multiple",r)},expression:"data.multiple"}})],1),t.data.multiple?n("ElFormItem",{attrs:{label:"多文件数量限制","label-width":"130px"}},[n("ElInputNumber",{staticStyle:{width:"100%"},attrs:{"controls-position":"right",placeholder:"多文件上传数量限制",min:1},model:{value:t.data.limit,callback:function(r){t.$set(t.data,"limit",r)},expression:"data.limit"}})],1):t._e(),n("ElFormItem",{attrs:{label:"水印配置,开启后只能上传图片","label-width":"230px"}},[n("ElSwitch",{model:{value:t.data.showCanvas,callback:function(r){t.$set(t.data,"showCanvas",r)},expression:"data.showCanvas"}})],1),t.data.canvasOption?n("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[n("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[t._v("水印设置:")]),n("div",{staticClass:"el-form-item__content"},[t._v(" 水印文字 "),n("ElInput",{attrs:{size:"small",clearable:"",placeholder:"水印文字"},model:{value:t.data.canvasOption.text,callback:function(r){t.$set(t.data.canvasOption,"text",r)},expression:"data.canvasOption.text"}}),t._v(" 字体类型 "),n("ElInput",{attrs:{size:"small",clearable:"",placeholder:"字体类型"},model:{value:t.data.canvasOption.fontFamily,callback:function(r){t.$set(t.data.canvasOption,"fontFamily",r)},expression:"data.canvasOption.fontFamily"}}),t._v(" 字体颜色 "),n("FyInputColor",{attrs:{size:"small",placeholder:"字体颜色"},model:{value:t.data.canvasOption.color,callback:function(r){t.$set(t.data.canvasOption,"color",r)},expression:"data.canvasOption.color"}}),t._v(" 字体大小 "),n("ElInputNumber",{attrs:{size:"small","controls-position":"right",placeholder:"字体大小"},model:{value:t.data.canvasOption.fontSize,callback:function(r){t.$set(t.data.canvasOption,"fontSize",r)},expression:"data.canvasOption.fontSize"}}),t._v(" 文字的透明度 "),n("ElInputNumber",{attrs:{size:"small","controls-position":"right",placeholder:"文字的透明度",step:10,min:10,max:100},model:{value:t.data.canvasOption.opacity,callback:function(r){t.$set(t.data.canvasOption,"opacity",r)},expression:"data.canvasOption.opacity"}}),t._v(" 文字距离图片底部的距离"),n("br"),n("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"文字距离图片底部的距离",size:"small"},model:{value:t.data.canvasOption.bottom,callback:function(r){t.$set(t.data.canvasOption,"bottom",r)},expression:"data.canvasOption.bottom"}}),t._v(" 文字距离图片右边的距离"),n("br"),n("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"文字距离图片右边的距离",size:"small"},model:{value:t.data.canvasOption.right,callback:function(r){t.$set(t.data.canvasOption,"right",r)},expression:"data.canvasOption.right"}}),t._v(" 压缩图片比率"),n("br"),n("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"压缩图片比率",step:.1,min:0,max:1,size:"small"},model:{value:t.data.canvasOption.ratio,callback:function(r){t.$set(t.data.canvasOption,"ratio",r)},expression:"data.canvasOption.ratio"}})],1)]):t._e()],1)},staticRenderFns$1x=[];const __vue2_script$1C={name:"ConfigUpload",props:{data:Object},data(){return{option:{column:[{type:"input",prop:"key",label:"key"},{type:"input",prop:"value",label:"value"}]}}},watch:{"data.prop":{handler(){},immediate:!0},"data.drag":function(){},"data.dragFile":function(t){t&&this.$delete(this.data,"listType")},"data.showCanvas"(t){t?(this.$set(this.data,"canvasOption",{}),this.$set(this.data,"accept","image/*")):this.$delete(this.data,"canvasOption")}}},__cssModules$1C={};var __component__$1C=normalizeComponent(__vue2_script$1C,render$1x,staticRenderFns$1x,!1,__vue2_injectStyles$1C,null,null,null);function __vue2_injectStyles$1C(t){for(let s in __cssModules$1C)this[s]=__cssModules$1C[s]}const ConfigUpload=function(){return __component__$1C.exports}();var render$1w=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",[n("ElFormItem",{attrs:{label:"图片上传地址","label-width":"110px"}},[n("ElInput",{attrs:{clearable:"",placeholder:"图片上传地址"},model:{value:t.data.options.action,callback:function(r){t.$set(t.data.options,"action",r)},expression:"data.options.action"}})],1),n("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[n("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[n("ElLink",{attrs:{underline:!1,href:"https://avuejs.com/plugins/ueditor-plugins.html",target:"_blank"}},[t._v("参数设置 "),n("i",{staticClass:"el-icon-question"})])],1),n("div",{staticClass:"el-form-item__content"},[t._v(" 返回的数据结构层次 "),n("ElInput",{attrs:{size:"small",placeholder:"返回的数据结构层次"},model:{value:t.data.options.props.res,callback:function(r){t.$set(t.data.options.props,"res",r)},expression:"data.options.props.res"}}),t._v(" 返回结构体图片地址字段 "),n("ElInput",{attrs:{size:"small",placeholder:"返回结构体图片地址字段"},model:{value:t.data.options.props.url,callback:function(r){t.$set(t.data.options.props,"url",r)},expression:"data.options.props.url"}})],1)]),n("ElFormItem",{attrs:{label:"OSS"}},[n("ElSelect",{attrs:{placeholder:"oss不写则为普通上传",clearable:""},model:{value:t.data.options.oss,callback:function(r){t.$set(t.data.options,"oss",r)},expression:"data.options.oss"}},[n("ElOption",{attrs:{label:"阿里",value:"ali"}}),n("ElOption",{attrs:{label:"七牛",value:"qiniu"}})],1)],1),t.data.options.oss=="qiniu"?[n("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[n("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[t._v("七牛oss配置:")]),n("div",{staticClass:"el-form-item__content"},[t._v(" AK: "),n("ElInput",{attrs:{size:"small",clearable:"",placeholder:"七牛云的密钥(AK)"},model:{value:t.data.options.qiniu.AK,callback:function(r){t.$set(t.data.options.qiniu,"AK",r)},expression:"data.options.qiniu.AK"}}),t._v(" SK: "),n("ElInput",{attrs:{size:"small",clearable:"",placeholder:"七牛云的密钥(SK)"},model:{value:t.data.options.qiniu.SK,callback:function(r){t.$set(t.data.options.qiniu,"SK",r)},expression:"data.options.qiniu.SK"}}),t._v(" scope: "),n("ElInput",{attrs:{size:"small",clearable:"",placeholder:"七牛云存储的空间名"},model:{value:t.data.options.qiniu.scope,callback:function(r){t.$set(t.data.options.qiniu,"scope",r)},expression:"data.options.qiniu.scope"}}),t._v(" url: "),n("ElInput",{attrs:{size:"small",clearable:"",placeholder:"空间的自定义域名"},model:{value:t.data.options.qiniu.url,callback:function(r){t.$set(t.data.options.qiniu,"url",r)},expression:"data.options.qiniu.url"}}),t._v(" deadline: "),n("ElInput",{attrs:{size:"small",clearable:"",placeholder:"token的过期时间"},model:{value:t.data.options.qiniu.deadline,callback:function(r){t.$set(t.data.options.qiniu,"deadline",r)},expression:"data.options.qiniu.deadline"}})],1)])]:t._e(),t.data.options.oss==="ali"?[n("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[n("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[t._v("七牛oss配置:")]),n("div",{staticClass:"el-form-item__content"},[t._v(" region: "),n("ElInput",{attrs:{size:"small",clearable:"",placeholder:"region"},model:{value:t.data.options.ali.region,callback:function(r){t.$set(t.data.options.ali,"region",r)},expression:"data.options.ali.region"}}),t._v(" endpoint: "),n("ElInput",{attrs:{size:"small",clearable:"",placeholder:"endpoint"},model:{value:t.data.options.ali.endpoint,callback:function(r){t.$set(t.data.options.ali,"endpoint",r)},expression:"data.options.ali.endpoint"}}),t._v(" accessKeyId: "),n("ElInput",{attrs:{size:"small",clearable:"",placeholder:"accessKeyId"},model:{value:t.data.options.ali.accessKeyId,callback:function(r){t.$set(t.data.options.ali,"accessKeyId",r)},expression:"data.options.ali.accessKeyId"}}),t._v(" accessKeySecret: "),n("ElInput",{attrs:{size:"small",clearable:"",placeholder:"accessKeySecret"},model:{value:t.data.options.ali.accessKeySecret,callback:function(r){t.$set(t.data.options.ali,"accessKeySecret",r)},expression:"data.options.ali.accessKeySecret"}}),t._v(" bucket: "),n("ElInput",{attrs:{size:"small",clearable:"",placeholder:"bucket "},model:{value:t.data.options.ali.bucket,callback:function(r){t.$set(t.data.options.ali,"bucket",r)},expression:"data.options.ali.bucket"}})],1)])]:t._e()],2)},staticRenderFns$1w=[];const __vue2_script$1B={name:"ConfigUEditor",props:{data:Object},watch:{"data.options.oss":function(t){debugger;t==="ali"?this.data.options.qiniu={}:t==="qiniu"&&(this.data.options.ali={})}}},__cssModules$1B={};var __component__$1B=normalizeComponent(__vue2_script$1B,render$1w,staticRenderFns$1w,!1,__vue2_injectStyles$1B,null,null,null);function __vue2_injectStyles$1B(t){for(let s in __cssModules$1B)this[s]=__cssModules$1B[s]}const ConfigUEditor=function(){return __component__$1B.exports}();var render$1v=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",[n("ElFormItem",{attrs:{label:"默认值"}},[n("a",{staticStyle:{color:"#409EFF"},attrs:{href:"https://avuejs.com/form/form-input-map.html",target:"_blank"}},[t._v("详细文档")]),n("br"),n("ElInput",{attrs:{placeholder:"默认值"},model:{value:t.data.value,callback:function(r){t.$set(t.data,"value",r)},expression:"data.value"}})],1)],1)},staticRenderFns$1v=[];const __vue2_script$1A={name:"ConfigMap",props:{data:Object}},__cssModules$1A={};var __component__$1A=normalizeComponent(__vue2_script$1A,render$1v,staticRenderFns$1v,!1,__vue2_injectStyles$1A,null,null,null);function __vue2_injectStyles$1A(t){for(let s in __cssModules$1A)this[s]=__cssModules$1A[s]}const ConfigMap=function(){return __component__$1A.exports}();var render$1u=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",[n("ElFormItem",{attrs:{label:"图标"}},[n("FyInputIcon",{attrs:{"icon-list":t.iconList,placeholder:"图标"},model:{value:t.data.icon,callback:function(r){t.$set(t.data,"icon",r)},expression:"data.icon"}})],1),n("ElFormItem",{attrs:{label:"开启折叠"}},[n("ElSwitch",{model:{value:t.data.arrow,callback:function(r){t.$set(t.data,"arrow",r)},expression:"data.arrow"}})],1),t.data.arrow?n("ElFormItem",{attrs:{label:"默认展开"}},[n("ElSwitch",{model:{value:t.data.collapse,callback:function(r){t.$set(t.data,"collapse",r)},expression:"data.collapse"}})],1):t._e()],1)},staticRenderFns$1u=[];const __vue2_script$1z={name:"ConfigGroup",props:{data:Object},data(){return{iconList:[{label:"element-ui",list:["el-icon-info","el-icon-error","el-icon-success","el-icon-warning","el-icon-question"]}]}}},__cssModules$1z={};var __component__$1z=normalizeComponent(__vue2_script$1z,render$1u,staticRenderFns$1u,!1,__vue2_injectStyles$1z,null,null,null);function __vue2_injectStyles$1z(t){for(let s in __cssModules$1z)this[s]=__cssModules$1z[s]}const ConfigGroup=function(){return __component__$1z.exports}();var render$1t=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",[n("ElFormItem",{attrs:{label:"占位内容"}},[n("ElInput",{attrs:{clearable:"",placeholder:"占位内容"},model:{value:t.data.placeholder,callback:function(r){t.$set(t.data,"placeholder",r)},expression:"data.placeholder"}})],1),n("ElFormItem",{attrs:{label:"尺寸"}},[n("ElRadioGroup",{attrs:{size:"mini"},model:{value:t.data.size,callback:function(r){t.$set(t.data,"size",r)},expression:"data.size"}},[n("ElRadioButton",{attrs:{label:"medium"}},[t._v(" 正常 ")]),n("ElRadioButton",{attrs:{label:"small"}},[t._v(" 小 ")]),n("ElRadioButton",{attrs:{label:"mini"}},[t._v(" 超小 ")])],1)],1)],1)},staticRenderFns$1t=[];const __vue2_script$1y={name:"ConfigArray",props:{data:Object}},__cssModules$1y={};var __component__$1y=normalizeComponent(__vue2_script$1y,render$1t,staticRenderFns$1t,!1,__vue2_injectStyles$1y,null,null,null);function __vue2_injectStyles$1y(t){for(let s in __cssModules$1y)this[s]=__cssModules$1y[s]}const ConfigArray=function(){return __component__$1y.exports}();var render$1s=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",[n("ElFormItem",{attrs:{label:"文本对齐"}},[n("ElRadioGroup",{model:{value:t.data.styles.textAlign,callback:function(r){t.$set(t.data.styles,"textAlign",r)},expression:"data.styles.textAlign"}},[n("ElRadio",{attrs:{label:"left"}},[t._v(" 左 ")]),n("ElRadio",{attrs:{label:"center"}},[t._v(" 中 ")]),n("ElRadio",{attrs:{label:"right"}},[t._v(" 右 ")])],1)],1),n("ElFormItem",{attrs:{label:"颜色"}},[n("ElColorPicker",{attrs:{size:"mini"},model:{value:t.data.styles.color,callback:function(r){t.$set(t.data.styles,"color",r)},expression:"data.styles.color"}})],1),n("ElFormItem",{attrs:{label:"字体大小"}},[n("ElInput",{attrs:{clearable:"",placeholder:"字体大小"},model:{value:t.data.styles.fontSize,callback:function(r){t.$set(t.data.styles,"fontSize",r)},expression:"data.styles.fontSize"}})],1),n("ElFormItem",{attrs:{label:"粗体"}},[n("ElSelect",{attrs:{placeholder:"粗体",clearable:""},model:{value:t.data.styles.fontWeight,callback:function(r){t.$set(t.data.styles,"fontWeight",r)},expression:"data.styles.fontWeight"}},t._l(t.options,function(r){return n("ElOption",{key:r,attrs:{label:r,value:r}})}),1)],1)],1)},staticRenderFns$1s=[];const __vue2_script$1x={name:"ConfigTitle",props:{data:Object},data(){return{options:["100","200","300","400","500","600","700","800","900","blod","bloder","inherit","initial","lighter","normal","revert","unset"]}}},__cssModules$1x={};var __component__$1x=normalizeComponent(__vue2_script$1x,render$1s,staticRenderFns$1s,!1,__vue2_injectStyles$1x,null,null,null);function __vue2_injectStyles$1x(t){for(let s in __cssModules$1x)this[s]=__cssModules$1x[s]}const ConfigTitle=function(){return __component__$1x.exports}();var render$1r=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",[n("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[n("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[t._v("change:")]),n("div",{staticClass:"el-form-item__content"},[n("MonacoEditor",{attrs:{height:"300","key-index":`event-change-${t.data.prop}`,options:t.options},model:{value:t.change,callback:function(r){t.change=r},expression:"change"}})],1)]),n("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[n("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[t._v("click:")]),n("div",{staticClass:"el-form-item__content"},[n("MonacoEditor",{attrs:{height:"200","key-index":`event-click-${t.data.prop}`,options:t.options},model:{value:t.click,callback:function(r){t.click=r},expression:"click"}})],1)]),n("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[n("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[t._v("focus:")]),n("div",{staticClass:"el-form-item__content"},[n("MonacoEditor",{attrs:{height:"200","key-index":`event-focus-${t.data.prop}`,options:t.options},model:{value:t.focus,callback:function(r){t.focus=r},expression:"focus"}})],1)]),n("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[n("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[t._v("blur:")]),n("div",{staticClass:"el-form-item__content"},[n("MonacoEditor",{attrs:{height:"200","key-index":`event-blur-${t.data.prop}`,options:t.options},model:{value:t.blur,callback:function(r){t.blur=r},expression:"blur"}})],1)])])},staticRenderFns$1r=[];const __vue2_script$1w={name:"ConfigEvent",components:{MonacoEditor},props:{data:Object},data(){return{change:"",click:"",focus:"",blur:"",options:{fullScreen:!0,minimap:{enabled:!1}}}},watch:{"data.prop":{handler(){const{change:t,click:s,focus:n,blur:r}=this.data;this.$set(this,"change",t?`${t}`:`({value}) => {\r
|
|
21
|
+
}`},immediate:!0},dicFormatter:{handler(val){try{this.data.dicFormatter=eval(val)}catch(t){}}}},methods:{handleRemoveCascaderItemFields(t){this.data.cascader.splice(t,1)},handleAddCascaderItemFields(){this.data.cascader||(this.$set(this.data,"cascader",[]),delete this.data.cascaderItem),this.data.cascader.push("")},handleTabClick({name:t}){t=="remote"&&!this.data.dicQueryConfig&&(this.data.dicQueryConfig=[])},handleParentNodeAdd(){this.selectData=void 0,this.dialogStatus="add",this.dialogVisible=!0},handleNodeAdd(t){this.selectData=t,this.dialogStatus="add",this.dialogVisible=!0},handleNodeRemove(t,s){const n=t.parent,r=n.data.children||n.data,a=r.findIndex(o=>o.id===s.id);r.splice(a,1)},handleDialogAdd(){this.$refs.dialogForm.validate(t=>{if(t){const{label:s,value:n}=this.dialogForm;if(this.$refs.tree.getNode(n))this.$message.error("value重复");else{const a=this.selectData,o={label:s,value:this.dialogInputType=="number"?new Number(n):n};a?(a.children||this.$set(a,"children",[]),a.children.push(o)):this.$set(this.data.dicData,this.data.dicData.length,o),this.beforeClose()}}})},beforeClose(){this.$refs.dialogForm.clearValidate(),this.dialogForm={},this.dialogVisible=!1}}},__cssModules$1H={};var __component__$1H=normalizeComponent(__vue2_script$1H,render$1B,staticRenderFns$1B,!1,__vue2_injectStyles$1H,"3235e132",null,null);function __vue2_injectStyles$1H(t){for(let s in __cssModules$1H)this[s]=__cssModules$1H[s]}const ConfigTree=function(){return __component__$1H.exports}();var render$1A=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",[t.data.type.indexOf("range")!==-1?[n("ElFormItem",{attrs:{label:"开始占位内容","label-width":"110px"}},[n("ElInput",{attrs:{clearable:"",placeholder:"开始占位内容"},model:{value:t.data.startPlaceholder,callback:function(r){t.$set(t.data,"startPlaceholder",r)},expression:"data.startPlaceholder"}})],1),n("ElFormItem",{attrs:{label:"结束占位内容","label-width":"110px"}},[n("ElInput",{attrs:{clearable:"",placeholder:"结束占位内容"},model:{value:t.data.endPlaceholder,callback:function(r){t.$set(t.data,"endPlaceholder",r)},expression:"data.endPlaceholder"}})],1)]:n("ElFormItem",{attrs:{label:"占位内容"}},[n("ElInput",{attrs:{clearable:"",placeholder:"占位内容"},model:{value:t.data.placeholder,callback:function(r){t.$set(t.data,"placeholder",r)},expression:"data.placeholder"}})],1),n("ElFormItem",{attrs:{label:"显示格式化","label-width":"100px"}},[n("ElInput",{attrs:{clearable:"",placeholder:"显示格式化"},model:{value:t.data.format,callback:function(r){t.$set(t.data,"format",r)},expression:"data.format"}})],1),n("ElFormItem",{attrs:{label:"值格式化"}},[n("ElInput",{attrs:{clearable:"",placeholder:"值格式化"},model:{value:t.data.valueFormat,callback:function(r){t.$set(t.data,"valueFormat",r)},expression:"data.valueFormat"}})],1),["timerange","daterange","datetimerange"].includes(t.data.type)?n("ElFormItem",{attrs:{label:"取消范围联动","label-width":"110px"}},[n("ElSwitch",{model:{value:t.data.unlinkPanels,callback:function(r){t.$set(t.data,"unlinkPanels",r)},expression:"data.unlinkPanels"}})],1):t._e()],2)},staticRenderFns$1A=[];const __vue2_script$1G={name:"ConfigDate",props:{data:Object}},__cssModules$1G={};var __component__$1G=normalizeComponent(__vue2_script$1G,render$1A,staticRenderFns$1A,!1,__vue2_injectStyles$1G,null,null,null);function __vue2_injectStyles$1G(t){for(let s in __cssModules$1G)this[s]=__cssModules$1G[s]}const ConfigDate=function(){return __component__$1G.exports}();var render$1z=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",[t.data.oss?t._e():n("ElFormItem",{attrs:{label:"上传地址"}},[n("ElInput",{attrs:{clearable:"",placeholder:"上传地址"},model:{value:t.data.action,callback:function(r){t.$set(t.data,"action",r)},expression:"data.action"}})],1),t.data.oss?t._e():n("ElFormItem",{attrs:{label:"接受文件类型","label-width":"110px"}},[n("ElInput",{attrs:{clearable:"",placeholder:"接受文件类型,如:image/png,image/jpg"},model:{value:t.data.accept,callback:function(r){t.$set(t.data,"accept",r)},expression:"data.accept"}})],1),n("ElFormItem",{attrs:{label:"OSS"},scopedSlots:t._u([{key:"label",fn:function(){return[n("ElLink",{attrs:{underline:!1,href:"https://avuejs.com/form/form-upload.html#%E9%98%BF%E9%87%8C%E4%BA%91oss%E4%B8%8A%E4%BC%A0",target:"_blank"}},[t._v(" OSS "),n("i",{staticClass:"el-icon-question"})])]},proxy:!0}])},[n("ElSelect",{staticStyle:{width:"100%"},attrs:{placeholder:"oss不写则为普通上传",clearable:""},model:{value:t.data.oss,callback:function(r){t.$set(t.data,"oss",r)},expression:"data.oss"}},[n("ElOption",{attrs:{label:"阿里",value:"ali"}}),n("ElOption",{attrs:{label:"七牛",value:"qiniu"}})],1)],1),n("ElFormItem",{attrs:{label:"拖拽上传","label-width":"110px"}},[n("ElSwitch",{model:{value:t.data.dragFile,callback:function(r){t.$set(t.data,"dragFile",r)},expression:"data.dragFile"}})],1),t.data.dragFile?t._e():n("ElFormItem",{attrs:{label:"文件列表类型","label-width":"110px"}},[n("ElSelect",{attrs:{placeholder:"文件列表类型",clearable:""},model:{value:t.data.listType,callback:function(r){t.$set(t.data,"listType",r)},expression:"data.listType"}},[n("ElOption",{attrs:{label:"附件",value:"text"}}),n("ElOption",{attrs:{label:"照片墙",value:"picture-card"}}),n("ElOption",{attrs:{label:"头像",value:"picture-img"}}),n("ElOption",{attrs:{label:"缩略图",value:"picture"}})],1)],1),n("ElFormItem",{attrs:{label:"拖拽排序","label-width":"110px"}},[n("ElSwitch",{model:{value:t.data.drag,callback:function(r){t.$set(t.data,"drag",r)},expression:"data.drag"}})],1),n("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[n("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[t._v("参数设置:")]),n("div",{staticClass:"el-form-item__content"},[t._v(" 请求头 "),n("FyDynamic",{attrs:{children:t.option},model:{value:t.data.headersConfig,callback:function(r){t.$set(t.data,"headersConfig",r)},expression:"data.headersConfig"}}),t._v(" 请求体 "),n("FyDynamic",{attrs:{children:t.option},model:{value:t.data.dataConfig,callback:function(r){t.$set(t.data,"dataConfig",r)},expression:"data.dataConfig"}})],1)]),n("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[n("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[n("ElLink",{attrs:{underline:!1,href:"https://avuejs.com/form/form-upload.html",target:"_blank"}},[t._v("上传参数设置 "),n("i",{staticClass:"el-icon-question"})])],1),n("div",{staticClass:"el-form-item__content"},[t._v(" 上传成功返回结构体的图片地址 "),n("ElInput",{attrs:{size:"small",placeholder:"上传成功返回结构体的图片地址"},model:{value:t.data.propsHttp.url,callback:function(r){t.$set(t.data.propsHttp,"url",r)},expression:"data.propsHttp.url"}}),t._v(" 上传成功返回结构体的图片的姓名 "),n("ElInput",{attrs:{size:"small",placeholder:"上传成功返回结构体的图片的姓名"},model:{value:t.data.propsHttp.name,callback:function(r){t.$set(t.data.propsHttp,"name",r)},expression:"data.propsHttp.name"}}),t._v(" 返回结构体的层次 "),n("ElInput",{attrs:{size:"small",placeholder:"返回结构体的层次"},model:{value:t.data.propsHttp.res,callback:function(r){t.$set(t.data.propsHttp,"res",r)},expression:"data.propsHttp.res"}}),t._v(" 文件名称 "),n("ElInput",{attrs:{size:"small",placeholder:"文件名称,默认file"},model:{value:t.data.propsHttp.fileName,callback:function(r){t.$set(t.data.propsHttp,"fileName",r)},expression:"data.propsHttp.fileName"}})],1)]),n("ElFormItem",{attrs:{label:"是否显示已上传文件列表","label-width":"180px"}},[n("ElSwitch",{model:{value:t.data.showFileList,callback:function(r){t.$set(t.data,"showFileList",r)},expression:"data.showFileList"}})],1),n("ElFormItem",{attrs:{label:"文件大小"}},[n("ElInputNumber",{staticStyle:{width:"100%"},attrs:{"controls-position":"right",placeholder:"文件大小限制(字节)",min:0},model:{value:t.data.fileSize,callback:function(r){t.$set(t.data,"fileSize",r)},expression:"data.fileSize"}})],1),n("ElFormItem",{attrs:{label:"上传限制提示","label-width":"110px"}},[n("ElInput",{attrs:{clearable:"",placeholder:"上传限制提示"},model:{value:t.data.tip,callback:function(r){t.$set(t.data,"tip",r)},expression:"data.tip"}})],1),n("ElFormItem",{attrs:{label:"上传中提示","label-width":"110px"}},[n("ElInput",{attrs:{clearable:"",placeholder:"上传中提示"},model:{value:t.data.loadText,callback:function(r){t.$set(t.data,"loadText",r)},expression:"data.loadText"}})],1),n("ElFormItem",{attrs:{label:"是否多文件上传","label-width":"130px"}},[n("ElSwitch",{model:{value:t.data.multiple,callback:function(r){t.$set(t.data,"multiple",r)},expression:"data.multiple"}})],1),t.data.multiple?n("ElFormItem",{attrs:{label:"多文件数量限制","label-width":"130px"}},[n("ElInputNumber",{staticStyle:{width:"100%"},attrs:{"controls-position":"right",placeholder:"多文件上传数量限制",min:1},model:{value:t.data.limit,callback:function(r){t.$set(t.data,"limit",r)},expression:"data.limit"}})],1):t._e(),n("ElFormItem",{attrs:{label:"水印配置,开启后只能上传图片","label-width":"230px"}},[n("ElSwitch",{model:{value:t.data.showCanvas,callback:function(r){t.$set(t.data,"showCanvas",r)},expression:"data.showCanvas"}})],1),t.data.canvasOption?n("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[n("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[t._v("水印设置:")]),n("div",{staticClass:"el-form-item__content"},[t._v(" 水印文字 "),n("ElInput",{attrs:{size:"small",clearable:"",placeholder:"水印文字"},model:{value:t.data.canvasOption.text,callback:function(r){t.$set(t.data.canvasOption,"text",r)},expression:"data.canvasOption.text"}}),t._v(" 字体类型 "),n("ElInput",{attrs:{size:"small",clearable:"",placeholder:"字体类型"},model:{value:t.data.canvasOption.fontFamily,callback:function(r){t.$set(t.data.canvasOption,"fontFamily",r)},expression:"data.canvasOption.fontFamily"}}),t._v(" 字体颜色 "),n("FyInputColor",{attrs:{size:"small",placeholder:"字体颜色"},model:{value:t.data.canvasOption.color,callback:function(r){t.$set(t.data.canvasOption,"color",r)},expression:"data.canvasOption.color"}}),t._v(" 字体大小 "),n("ElInputNumber",{attrs:{size:"small","controls-position":"right",placeholder:"字体大小"},model:{value:t.data.canvasOption.fontSize,callback:function(r){t.$set(t.data.canvasOption,"fontSize",r)},expression:"data.canvasOption.fontSize"}}),t._v(" 文字的透明度 "),n("ElInputNumber",{attrs:{size:"small","controls-position":"right",placeholder:"文字的透明度",step:10,min:10,max:100},model:{value:t.data.canvasOption.opacity,callback:function(r){t.$set(t.data.canvasOption,"opacity",r)},expression:"data.canvasOption.opacity"}}),t._v(" 文字距离图片底部的距离"),n("br"),n("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"文字距离图片底部的距离",size:"small"},model:{value:t.data.canvasOption.bottom,callback:function(r){t.$set(t.data.canvasOption,"bottom",r)},expression:"data.canvasOption.bottom"}}),t._v(" 文字距离图片右边的距离"),n("br"),n("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"文字距离图片右边的距离",size:"small"},model:{value:t.data.canvasOption.right,callback:function(r){t.$set(t.data.canvasOption,"right",r)},expression:"data.canvasOption.right"}}),t._v(" 压缩图片比率"),n("br"),n("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"压缩图片比率",step:.1,min:0,max:1,size:"small"},model:{value:t.data.canvasOption.ratio,callback:function(r){t.$set(t.data.canvasOption,"ratio",r)},expression:"data.canvasOption.ratio"}})],1)]):t._e()],1)},staticRenderFns$1z=[];const __vue2_script$1F={name:"ConfigUpload",props:{data:Object},data(){return{option:{column:[{type:"input",prop:"key",label:"key"},{type:"input",prop:"value",label:"value"}]}}},watch:{"data.prop":{handler(){},immediate:!0},"data.drag":function(){},"data.dragFile":function(t){t&&this.$delete(this.data,"listType")},"data.showCanvas"(t){t?(this.$set(this.data,"canvasOption",{}),this.$set(this.data,"accept","image/*")):this.$delete(this.data,"canvasOption")}}},__cssModules$1F={};var __component__$1F=normalizeComponent(__vue2_script$1F,render$1z,staticRenderFns$1z,!1,__vue2_injectStyles$1F,null,null,null);function __vue2_injectStyles$1F(t){for(let s in __cssModules$1F)this[s]=__cssModules$1F[s]}const ConfigUpload=function(){return __component__$1F.exports}();var render$1y=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",[n("ElFormItem",{attrs:{label:"图片上传地址","label-width":"110px"}},[n("ElInput",{attrs:{clearable:"",placeholder:"图片上传地址"},model:{value:t.data.options.action,callback:function(r){t.$set(t.data.options,"action",r)},expression:"data.options.action"}})],1),n("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[n("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[n("ElLink",{attrs:{underline:!1,href:"https://avuejs.com/plugins/ueditor-plugins.html",target:"_blank"}},[t._v("参数设置 "),n("i",{staticClass:"el-icon-question"})])],1),n("div",{staticClass:"el-form-item__content"},[t._v(" 返回的数据结构层次 "),n("ElInput",{attrs:{size:"small",placeholder:"返回的数据结构层次"},model:{value:t.data.options.props.res,callback:function(r){t.$set(t.data.options.props,"res",r)},expression:"data.options.props.res"}}),t._v(" 返回结构体图片地址字段 "),n("ElInput",{attrs:{size:"small",placeholder:"返回结构体图片地址字段"},model:{value:t.data.options.props.url,callback:function(r){t.$set(t.data.options.props,"url",r)},expression:"data.options.props.url"}})],1)]),n("ElFormItem",{attrs:{label:"OSS"}},[n("ElSelect",{attrs:{placeholder:"oss不写则为普通上传",clearable:""},model:{value:t.data.options.oss,callback:function(r){t.$set(t.data.options,"oss",r)},expression:"data.options.oss"}},[n("ElOption",{attrs:{label:"阿里",value:"ali"}}),n("ElOption",{attrs:{label:"七牛",value:"qiniu"}})],1)],1),t.data.options.oss=="qiniu"?[n("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[n("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[t._v("七牛oss配置:")]),n("div",{staticClass:"el-form-item__content"},[t._v(" AK: "),n("ElInput",{attrs:{size:"small",clearable:"",placeholder:"七牛云的密钥(AK)"},model:{value:t.data.options.qiniu.AK,callback:function(r){t.$set(t.data.options.qiniu,"AK",r)},expression:"data.options.qiniu.AK"}}),t._v(" SK: "),n("ElInput",{attrs:{size:"small",clearable:"",placeholder:"七牛云的密钥(SK)"},model:{value:t.data.options.qiniu.SK,callback:function(r){t.$set(t.data.options.qiniu,"SK",r)},expression:"data.options.qiniu.SK"}}),t._v(" scope: "),n("ElInput",{attrs:{size:"small",clearable:"",placeholder:"七牛云存储的空间名"},model:{value:t.data.options.qiniu.scope,callback:function(r){t.$set(t.data.options.qiniu,"scope",r)},expression:"data.options.qiniu.scope"}}),t._v(" url: "),n("ElInput",{attrs:{size:"small",clearable:"",placeholder:"空间的自定义域名"},model:{value:t.data.options.qiniu.url,callback:function(r){t.$set(t.data.options.qiniu,"url",r)},expression:"data.options.qiniu.url"}}),t._v(" deadline: "),n("ElInput",{attrs:{size:"small",clearable:"",placeholder:"token的过期时间"},model:{value:t.data.options.qiniu.deadline,callback:function(r){t.$set(t.data.options.qiniu,"deadline",r)},expression:"data.options.qiniu.deadline"}})],1)])]:t._e(),t.data.options.oss==="ali"?[n("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[n("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[t._v("七牛oss配置:")]),n("div",{staticClass:"el-form-item__content"},[t._v(" region: "),n("ElInput",{attrs:{size:"small",clearable:"",placeholder:"region"},model:{value:t.data.options.ali.region,callback:function(r){t.$set(t.data.options.ali,"region",r)},expression:"data.options.ali.region"}}),t._v(" endpoint: "),n("ElInput",{attrs:{size:"small",clearable:"",placeholder:"endpoint"},model:{value:t.data.options.ali.endpoint,callback:function(r){t.$set(t.data.options.ali,"endpoint",r)},expression:"data.options.ali.endpoint"}}),t._v(" accessKeyId: "),n("ElInput",{attrs:{size:"small",clearable:"",placeholder:"accessKeyId"},model:{value:t.data.options.ali.accessKeyId,callback:function(r){t.$set(t.data.options.ali,"accessKeyId",r)},expression:"data.options.ali.accessKeyId"}}),t._v(" accessKeySecret: "),n("ElInput",{attrs:{size:"small",clearable:"",placeholder:"accessKeySecret"},model:{value:t.data.options.ali.accessKeySecret,callback:function(r){t.$set(t.data.options.ali,"accessKeySecret",r)},expression:"data.options.ali.accessKeySecret"}}),t._v(" bucket: "),n("ElInput",{attrs:{size:"small",clearable:"",placeholder:"bucket "},model:{value:t.data.options.ali.bucket,callback:function(r){t.$set(t.data.options.ali,"bucket",r)},expression:"data.options.ali.bucket"}})],1)])]:t._e()],2)},staticRenderFns$1y=[];const __vue2_script$1E={name:"ConfigUEditor",props:{data:Object},watch:{"data.options.oss":function(t){debugger;t==="ali"?this.data.options.qiniu={}:t==="qiniu"&&(this.data.options.ali={})}}},__cssModules$1E={};var __component__$1E=normalizeComponent(__vue2_script$1E,render$1y,staticRenderFns$1y,!1,__vue2_injectStyles$1E,null,null,null);function __vue2_injectStyles$1E(t){for(let s in __cssModules$1E)this[s]=__cssModules$1E[s]}const ConfigUEditor=function(){return __component__$1E.exports}();var render$1x=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",[n("ElFormItem",{attrs:{label:"默认值"}},[n("a",{staticStyle:{color:"#409EFF"},attrs:{href:"https://avuejs.com/form/form-input-map.html",target:"_blank"}},[t._v("详细文档")]),n("br"),n("ElInput",{attrs:{placeholder:"默认值"},model:{value:t.data.value,callback:function(r){t.$set(t.data,"value",r)},expression:"data.value"}})],1)],1)},staticRenderFns$1x=[];const __vue2_script$1D={name:"ConfigMap",props:{data:Object}},__cssModules$1D={};var __component__$1D=normalizeComponent(__vue2_script$1D,render$1x,staticRenderFns$1x,!1,__vue2_injectStyles$1D,null,null,null);function __vue2_injectStyles$1D(t){for(let s in __cssModules$1D)this[s]=__cssModules$1D[s]}const ConfigMap=function(){return __component__$1D.exports}();var render$1w=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",[n("ElFormItem",{attrs:{label:"图标"}},[n("FyInputIcon",{attrs:{"icon-list":t.iconList,placeholder:"图标"},model:{value:t.data.icon,callback:function(r){t.$set(t.data,"icon",r)},expression:"data.icon"}})],1),n("ElFormItem",{attrs:{label:"开启折叠"}},[n("ElSwitch",{model:{value:t.data.arrow,callback:function(r){t.$set(t.data,"arrow",r)},expression:"data.arrow"}})],1),t.data.arrow?n("ElFormItem",{attrs:{label:"默认展开"}},[n("ElSwitch",{model:{value:t.data.collapse,callback:function(r){t.$set(t.data,"collapse",r)},expression:"data.collapse"}})],1):t._e()],1)},staticRenderFns$1w=[];const __vue2_script$1C={name:"ConfigGroup",props:{data:Object},data(){return{iconList:[{label:"element-ui",list:["el-icon-info","el-icon-error","el-icon-success","el-icon-warning","el-icon-question"]}]}}},__cssModules$1C={};var __component__$1C=normalizeComponent(__vue2_script$1C,render$1w,staticRenderFns$1w,!1,__vue2_injectStyles$1C,null,null,null);function __vue2_injectStyles$1C(t){for(let s in __cssModules$1C)this[s]=__cssModules$1C[s]}const ConfigGroup=function(){return __component__$1C.exports}();var render$1v=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",[n("ElFormItem",{attrs:{label:"占位内容"}},[n("ElInput",{attrs:{clearable:"",placeholder:"占位内容"},model:{value:t.data.placeholder,callback:function(r){t.$set(t.data,"placeholder",r)},expression:"data.placeholder"}})],1),n("ElFormItem",{attrs:{label:"尺寸"}},[n("ElRadioGroup",{attrs:{size:"mini"},model:{value:t.data.size,callback:function(r){t.$set(t.data,"size",r)},expression:"data.size"}},[n("ElRadioButton",{attrs:{label:"medium"}},[t._v(" 正常 ")]),n("ElRadioButton",{attrs:{label:"small"}},[t._v(" 小 ")]),n("ElRadioButton",{attrs:{label:"mini"}},[t._v(" 超小 ")])],1)],1)],1)},staticRenderFns$1v=[];const __vue2_script$1B={name:"ConfigArray",props:{data:Object}},__cssModules$1B={};var __component__$1B=normalizeComponent(__vue2_script$1B,render$1v,staticRenderFns$1v,!1,__vue2_injectStyles$1B,null,null,null);function __vue2_injectStyles$1B(t){for(let s in __cssModules$1B)this[s]=__cssModules$1B[s]}const ConfigArray=function(){return __component__$1B.exports}();var render$1u=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",[n("ElFormItem",{attrs:{label:"文本对齐"}},[n("ElRadioGroup",{model:{value:t.data.styles.textAlign,callback:function(r){t.$set(t.data.styles,"textAlign",r)},expression:"data.styles.textAlign"}},[n("ElRadio",{attrs:{label:"left"}},[t._v(" 左 ")]),n("ElRadio",{attrs:{label:"center"}},[t._v(" 中 ")]),n("ElRadio",{attrs:{label:"right"}},[t._v(" 右 ")])],1)],1),n("ElFormItem",{attrs:{label:"颜色"}},[n("ElColorPicker",{attrs:{size:"mini"},model:{value:t.data.styles.color,callback:function(r){t.$set(t.data.styles,"color",r)},expression:"data.styles.color"}})],1),n("ElFormItem",{attrs:{label:"字体大小"}},[n("ElInput",{attrs:{clearable:"",placeholder:"字体大小"},model:{value:t.data.styles.fontSize,callback:function(r){t.$set(t.data.styles,"fontSize",r)},expression:"data.styles.fontSize"}})],1),n("ElFormItem",{attrs:{label:"粗体"}},[n("ElSelect",{attrs:{placeholder:"粗体",clearable:""},model:{value:t.data.styles.fontWeight,callback:function(r){t.$set(t.data.styles,"fontWeight",r)},expression:"data.styles.fontWeight"}},t._l(t.options,function(r){return n("ElOption",{key:r,attrs:{label:r,value:r}})}),1)],1)],1)},staticRenderFns$1u=[];const __vue2_script$1A={name:"ConfigTitle",props:{data:Object},data(){return{options:["100","200","300","400","500","600","700","800","900","blod","bloder","inherit","initial","lighter","normal","revert","unset"]}}},__cssModules$1A={};var __component__$1A=normalizeComponent(__vue2_script$1A,render$1u,staticRenderFns$1u,!1,__vue2_injectStyles$1A,null,null,null);function __vue2_injectStyles$1A(t){for(let s in __cssModules$1A)this[s]=__cssModules$1A[s]}const ConfigTitle=function(){return __component__$1A.exports}();var render$1t=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",[n("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[n("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[t._v("change:")]),n("div",{staticClass:"el-form-item__content"},[n("MonacoEditor",{attrs:{height:"300","key-index":`event-change-${t.data.prop}`,options:t.options},model:{value:t.change,callback:function(r){t.change=r},expression:"change"}})],1)]),n("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[n("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[t._v("click:")]),n("div",{staticClass:"el-form-item__content"},[n("MonacoEditor",{attrs:{height:"200","key-index":`event-click-${t.data.prop}`,options:t.options},model:{value:t.click,callback:function(r){t.click=r},expression:"click"}})],1)]),n("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[n("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[t._v("focus:")]),n("div",{staticClass:"el-form-item__content"},[n("MonacoEditor",{attrs:{height:"200","key-index":`event-focus-${t.data.prop}`,options:t.options},model:{value:t.focus,callback:function(r){t.focus=r},expression:"focus"}})],1)]),n("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[n("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[t._v("blur:")]),n("div",{staticClass:"el-form-item__content"},[n("MonacoEditor",{attrs:{height:"200","key-index":`event-blur-${t.data.prop}`,options:t.options},model:{value:t.blur,callback:function(r){t.blur=r},expression:"blur"}})],1)])])},staticRenderFns$1t=[];const __vue2_script$1z={name:"ConfigEvent",components:{MonacoEditor:component.MonacoEditor},props:{data:Object},data(){return{change:"",click:"",focus:"",blur:"",options:{fullScreen:!0,minimap:{enabled:!1}}}},watch:{"data.prop":{handler(){const{change:t,click:s,focus:n,blur:r}=this.data;this.$set(this,"change",t?`${t}`:`({value}) => {\r
|
|
22
22
|
\r
|
|
23
23
|
}`),this.$set(this,"click",s?`${s}`:`({value}) => {\r
|
|
24
24
|
\r
|
|
@@ -26,7 +26,7 @@ ${u}}`:`{${d.join(",")}}`,gap=u,l}}function quote(t,s){escapable.lastIndex=0;let
|
|
|
26
26
|
\r
|
|
27
27
|
}`),this.$set(this,"blur",r?`${r}`:`({value}) => {\r
|
|
28
28
|
\r
|
|
29
|
-
}`)},immediate:!0}},mounted(){this.$nextTick(()=>{const event=["change","click","focus","blur"];event.forEach(e=>{this.$watch(`${e}`,val=>{try{this.$set(this.data,e,eval(val))}catch(t){}})})})}},__cssModules$
|
|
29
|
+
}`)},immediate:!0}},mounted(){this.$nextTick(()=>{const event=["change","click","focus","blur"];event.forEach(e=>{this.$watch(`${e}`,val=>{try{this.$set(this.data,e,eval(val))}catch(t){}})})})}},__cssModules$1z={};var __component__$1z=normalizeComponent(__vue2_script$1z,render$1t,staticRenderFns$1t,!1,__vue2_injectStyles$1z,null,null,null);function __vue2_injectStyles$1z(t){for(let s in __cssModules$1z)this[s]=__cssModules$1z[s]}const ConfigEvent=function(){return __component__$1z.exports}(),fields=[{label:"输入框",value:"input"},{label:"选择框",value:"select"},{label:"密码框",value:"password"},{label:"数字框",value:"number"},{label:"上传框",value:"upload"},{label:"颜色选择器",value:"color"},{label:"地图选择器",value:"map"},{label:"图标选择器",value:"icon"},{label:"树型下拉框",value:"tree"},{label:"单选框",value:"radio"},{label:"多选",value:"checkbox"},{label:"开关框",value:"switch"},{label:"文本框",value:"textarea"},{label:"时间框",value:"time"},{label:"时间范围",value:"timerange"},{label:"级联框",value:"cascader"},{label:"日期框",value:"date"},{label:"日期时间框",value:"datetime"},{label:"日期时间范围",value:"datetimerange"},{label:"多个日期",value:"dates"},{label:"月",value:"month"},{label:"周",value:"week"},{label:"年",value:"year"}];var render$1s=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("ElDrawer",{attrs:{visible:t.visible,size:"80%","append-to-body":""},on:{"update:visible":function(r){t.visible=r}}},[n("ElTable",{attrs:{data:t.list,border:""}},[n("ElTableColumn",{attrs:{align:"center",width:"60"},scopedSlots:t._u([{key:"header",fn:function(){return[n("ElButton",{attrs:{icon:"el-icon-plus",type:"primary",circle:"",size:"mini"},on:{click:function(r){return t.list.push({})}}})]},proxy:!0},{key:"default",fn:function(r){var a=r.$index;return[n("ElButton",{attrs:{icon:"el-icon-minus",type:"danger",circle:"",size:"mini"},on:{click:function(o){return t.list.splice(a,1)}}})]}}])}),n("ElTableColumn",{attrs:{label:"字段名",prop:"label",align:"center"},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.row;return[n("ElInput",{attrs:{placeholder:"请输入 字段名"},model:{value:a.label,callback:function(o){t.$set(a,"label",o)},expression:"row.label"}})]}}])}),n("ElTableColumn",{attrs:{label:"Prop",prop:"prop",align:"center"},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.row;return[n("ElInput",{attrs:{placeholder:"请输入 prop"},model:{value:a.prop,callback:function(o){t.$set(a,"prop",o)},expression:"row.prop"}})]}}])}),n("ElTableColumn",{attrs:{label:"类型",prop:"type",align:"center"},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.row;return[n("ElSelect",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择 类型",filterable:""},model:{value:a.type,callback:function(o){t.$set(a,"type",o)},expression:"row.type"}},t._l(t.fields,function(o){return n("ElOption",{key:o.value,attrs:{label:o.value,value:o.value}})}),1)]}}])}),n("ElTableColumn",{attrs:{label:"搜索",prop:"search",align:"center"},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.row;return[n("ElSwitch",{model:{value:a.search,callback:function(o){t.$set(a,"search",o)},expression:"row.search"}})]}}])}),n("ElTableColumn",{attrs:{label:"操作",align:"center"},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.row;return[["select","cascader","tree","radio","checkbox"].includes(a.type)?[n("ElButton",{attrs:{type:"text"},on:{click:function(o){return t.handleDic(a)}}},[t._v(" 字典配置 ")])]:t._e()]}}])})],1),n("span",{staticClass:"afd-drawer-foot"},[n("ElButton",{attrs:{type:"primary"},on:{click:t.handleSubmit}},[t._v("确定")]),n("ElButton",{on:{click:function(r){t.visible=!1}}},[t._v("取消")])],1)],1)},staticRenderFns$1s=[];const __vue2_script$1y={name:"AfdColumn",props:{column:{type:Array,default:()=>[]}},emits:["submit"],data(){return{fields,visible:!1,list:[]}},watch:{column:{handler(t){this.list=t},deep:!0,immediate:!0}},methods:{handleSubmit(){this.$emit("submit",deepClone(this.list)),this.visible=!1},handleDic(t){console.log(t),this.$message.error("暂未实现")}}},__cssModules$1y={};var __component__$1y=normalizeComponent(__vue2_script$1y,render$1s,staticRenderFns$1s,!1,__vue2_injectStyles$1y,null,null,null);function __vue2_injectStyles$1y(t){for(let s in __cssModules$1y)this[s]=__cssModules$1y[s]}const AfdColumn=function(){return __component__$1y.exports}();var render$1r=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",[n("ElFormItem",{attrs:{label:"字段配置"}},[n("ElButton",{attrs:{type:"primary",size:"small"},on:{click:function(r){t.$refs.column.visible=!0}}},[t._v(" 字段配置 ")])],1),n("ElFormItem",{attrs:{label:"边框"}},[n("ElSwitch",{model:{value:t.data.children.border,callback:function(r){t.$set(t.data.children,"border",r)},expression:"data.children.border"}})],1),n("ElFormItem",{attrs:{label:"label"}},[n("ElInput",{attrs:{placeholder:"label",clearable:""},model:{value:t.data.props.label,callback:function(r){t.$set(t.data.props,"label",r)},expression:"data.props.label"}})],1),n("ElFormItem",{attrs:{label:"value"}},[n("ElInput",{attrs:{placeholder:"value",clearable:""},model:{value:t.data.props.value,callback:function(r){t.$set(t.data.props,"value",r)},expression:"data.props.value"}})],1),n("ElFormItem",{attrs:{label:"请求地址"}},[n("ElInput",{attrs:{type:"textarea",placeholder:"请求地址",autosize:""},model:{value:t.data.children.props.url,callback:function(r){t.$set(t.data.children.props,"url",r)},expression:"data.children.props.url"}})],1),n("ElFormItem",{attrs:{label:"请求方法"}},[n("ElSelect",{attrs:{placeholder:"请求方法",clearable:""},model:{value:t.data.children.props.method,callback:function(r){t.$set(t.data.children.props,"method",r)},expression:"data.children.props.method"}},[n("ElOption",{attrs:{label:"GET",value:"get"}}),n("ElOption",{attrs:{label:"POST",value:"post"}})],1)],1),n("ElFormItem",{attrs:{label:"分页"}},[n("ElSwitch",{model:{value:t.data.children.props.needPage,callback:function(r){t.$set(t.data.children.props,"needPage",r)},expression:"data.children.props.needPage"}})],1),t.data.children.props.needPage?n("ElFormItem",{attrs:{label:"当前页"}},[n("ElInput",{attrs:{placeholder:"当前页",clearable:""},model:{value:t.data.children.props.currentPageKey,callback:function(r){t.$set(t.data.children.props,"currentPageKey",r)},expression:"data.children.props.currentPageKey"}})],1):t._e(),t.data.children.props.needPage?n("ElFormItem",{attrs:{label:"每页条数"}},[n("ElInput",{attrs:{placeholder:"每页条数",clearable:""},model:{value:t.data.children.props.pageSizeKey,callback:function(r){t.$set(t.data.children.props,"pageSizeKey",r)},expression:"data.children.props.pageSizeKey"}})],1):t._e(),t.data.children.props.needPage?n("ElFormItem",{attrs:{label:"总条数"}},[n("ElInput",{attrs:{placeholder:"总条数",clearable:""},model:{value:t.data.children.props.totalKey,callback:function(r){t.$set(t.data.children.props,"totalKey",r)},expression:"data.children.props.totalKey"}})],1):t._e(),t.data.children.props.needPage?n("ElFormItem",{attrs:{label:"列表"}},[n("ElInput",{attrs:{placeholder:"列表",clearable:""},model:{value:t.data.children.props.recordsKey,callback:function(r){t.$set(t.data.children.props,"recordsKey",r)},expression:"data.children.props.recordsKey"}})],1):t._e(),n("ElFormItem",{attrs:{label:"返回层级"}},[n("ElInput",{attrs:{placeholder:"返回层级",clearable:""},model:{value:t.data.children.props.resKey,callback:function(r){t.$set(t.data.children.props,"resKey",r)},expression:"data.children.props.resKey"}})],1),n("ElFormItem",{attrs:{label:"自动生成"}},[n("ElSwitch",{model:{value:t.data.children.props.auto,callback:function(r){t.$set(t.data.children.props,"auto",r)},expression:"data.children.props.auto"}})],1),n("div",{staticClass:"el-form--label-top"},[n("div",{staticClass:"el-form-item"},[n("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[n("ElPopover",{attrs:{placement:"top-start",width:200,trigger:"hover",content:"填写以上配置后会自动生成,若觉得生成的不对请自行修改或关闭自动生成"},scopedSlots:t._u([{key:"reference",fn:function(){return[n("ElLink",{attrs:{href:"https://avuejs.com/form/form-input-table.html",underline:!1,target:"_blank"}},[t._v(" onLoad: "),n("i",{staticClass:"el-icon-question"})])]},proxy:!0}])})],1),n("div",{staticClass:"el-form-item__content"},[n("MonacoEditor",{attrs:{height:"200","key-index":`table-onload-${t.data.prop}`,options:t.options},model:{value:t.onLoad,callback:function(r){t.onLoad=r},expression:"onLoad"}})],1)]),n("div",{staticClass:"el-form-item"},[n("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[t._v("formatter:")]),n("div",{staticClass:"el-form-item__content"},[n("MonacoEditor",{attrs:{height:"200","key-index":`table-formatter-${t.data.prop}`,options:t.options},model:{value:t.formatter,callback:function(r){t.formatter=r},expression:"formatter"}})],1)])]),n("AfdColumn",{ref:"column",attrs:{column:t.data.children.column},on:{submit:t.handleColumn}})],1)},staticRenderFns$1r=[];const __vue2_script$1x={name:"ConfigTable",components:{MonacoEditor:component.MonacoEditor,AfdColumn},props:{data:Object},data(){return{options:{fullScreen:!0,minimap:{enabled:!1}},onLoad:"",formatter:""}},watch:{"data.prop":{handler(){const{onLoad:t,formatter:s}=this.data;this.onLoad=t?`${t}`:"",this.formatter=s?`${s}`:""},immediate:!0},"data.children.props":{handler(t){this.handleOnLoad(t)},deep:!0},onLoad:{handler(val){try{this.data.onLoad=eval(val)}catch(t){console.error(t)}}}},methods:{handleColumn(t){this.data.children.column=t},handleOnLoad(t){const{url:s,method:n,needPage:r,currentPageKey:a,pageSizeKey:o,totalKey:l,recordsKey:c,resKey:u,auto:d}=t;if(!d)return;if(!s){this.onLoad="(res, cb) => { }";return}let{props:p}=this.data;p||(p={label:"label",value:"value"});const{value:h}=p,m=`(res, cb) => {
|
|
30
30
|
let { page, value, data } = res
|
|
31
31
|
if (!page) page = { currentPage: 1, pageSize: 10 }
|
|
32
32
|
const { currentPage, pageSize } = page
|
|
@@ -64,10 +64,10 @@ ${u}}`:`{${d.join(",")}}`,gap=u,l}}function quote(t,s){escapable.lastIndex=0;let
|
|
|
64
64
|
else this.$message.error('根据${h}: ' + value + ' 查询不到结果')
|
|
65
65
|
} else cb(result)
|
|
66
66
|
})
|
|
67
|
-
}`;this.onLoad=m}}},__cssModules$1u={};var __component__$1u=normalizeComponent(__vue2_script$1u,render$1p,staticRenderFns$1p,!1,__vue2_injectStyles$1u,null,null,null);function __vue2_injectStyles$1u(t){for(let s in __cssModules$1u)this[s]=__cssModules$1u[s]}const ConfigTable=function(){return __component__$1u.exports}();var render$1o=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"widget-config"},[t.data&&Object.keys(t.data).length>0?n("ElForm",{attrs:{"label-suffix":":","label-position":"left","label-width":"90px",size:"small"}},[n("ElCollapse",{model:{value:t.collapse,callback:function(r){t.collapse=r},expression:"collapse"}},[n("ElCollapseItem",{attrs:{name:"1",title:"基本属性"}},[t.data.type&&!t.data.component?n("ElFormItem",{attrs:{label:"类型"}},[n("ElSelect",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择类型"},on:{change:t.handleChangeType},model:{value:t.data.type,callback:function(r){t.$set(t.data,"type",r)},expression:"data.type"}},t._l(t.fields,function(r){return n("ElOptionGroup",{key:r.title,attrs:{label:r.title}},t._l(r.list,function(a){return n("ElOption",{key:a.type,attrs:{label:a.label,value:a.type}})}),1)}),1)],1):t._e(),n("ElFormItem",{attrs:{label:"属性值"}},[n("ElInput",{attrs:{clearable:"",placeholder:"属性值"},model:{value:t.data.prop,callback:function(r){t.$set(t.data,"prop",r)},expression:"data.prop"}})],1),n("ElFormItem",{attrs:{label:"标题"}},[n("ElInput",{attrs:{clearable:"",placeholder:"标题"},model:{value:t.data.label,callback:function(r){t.$set(t.data,"label",r)},expression:"data.label"}})],1),["group","dynamic","title"].includes(t.data.type)?t._e():n("ElFormItem",{attrs:{label:"标题宽度"}},[n("ElInputNumber",{staticStyle:{width:"100%"},attrs:{min:80,step:10,"controls-position":"right",placeholder:"标签宽度"},model:{value:t.data.labelWidth,callback:function(r){t.$set(t.data,"labelWidth",r)},expression:"data.labelWidth"}})],1),t.data.subfield?t._e():n("ElFormItem",{attrs:{label:"标签位置"}},[n("ElSelect",{attrs:{placeholder:"标签位置",clearable:""},model:{value:t.data.labelPosition,callback:function(r){t.$set(t.data,"labelPosition",r)},expression:"data.labelPosition"}},[n("ElOption",{attrs:{label:"上",value:"top"}}),n("ElOption",{attrs:{label:"左",value:"left"}}),n("ElOption",{attrs:{label:"右",value:"right"}})],1)],1),t.data.subfield?n("ElFormItem",{attrs:{label:"宽度"}},[n("ElInputNumber",{staticStyle:{width:"100%"},attrs:{"controls-position":"right",placeholder:"宽度",min:100},model:{value:t.data.width,callback:function(r){t.$set(t.data,"width",r)},expression:"data.width"}})],1):t._e(),!t.data.subfield&&!["group"].includes(t.data.type)?n("ElFormItem",{attrs:{label:"表单栅格"}},[n("ElInputNumber",{staticStyle:{width:"100%"},attrs:{"controls-position":"right",placeholder:"表单栅格",min:2,max:24},model:{value:t.data.span,callback:function(r){t.$set(t.data,"span",r)},expression:"data.span"}})],1):t._e(),["cascader","checkbox","radio","select","tree","upload","img","array","slider","timerange","daterange","datetimerange"].includes(t.data.type)?n("ElFormItem",{attrs:{label:"数据类型"},scopedSlots:t._u([{key:"label",fn:function(){return[n("ElLink",{attrs:{underline:!1,href:"https://avuejs.com/docs/datatype.html",target:"_blank"}},[t._v(" 数据类型 "),n("i",{staticClass:"el-icon-question"})])]},proxy:!0}],null,!1,3051713203)},[n("ElSelect",{attrs:{placeholder:"数据类型",clearable:""},model:{value:t.data.dataType,callback:function(r){t.$set(t.data,"dataType",r)},expression:"data.dataType"}},[n("ElOption",{attrs:{label:"String",value:"string"}}),n("ElOption",{attrs:{label:"Number",value:"number"}}),n("ElOption",{attrs:{label:"Array",value:"array"}})],1)],1):t._e(),n("ElFormItem",{attrs:{label:"字段提示"},scopedSlots:t._u([{key:"label",fn:function(){return[n("ElLink",{attrs:{underline:!1,href:"https://avuejs.com/form/form-tip.html",target:"_blank"}},[t._v(" 字段提示 "),n("i",{staticClass:"el-icon-question"})])]},proxy:!0}],null,!1,708991366)},[n("ElInput",{attrs:{clearable:"",placeholder:"字段提示"},model:{value:t.data.tip,callback:function(r){t.$set(t.data,"tip",r)},expression:"data.tip"}})],1),t.data.tip&&!["upload"].includes(t.data.type)?n("ElFormItem",{attrs:{label:"字段提示位置","label-width":"110px"}},[n("ElSelect",{attrs:{placeholder:"字段提示位置",clearable:""},model:{value:t.data.tipPlacement,callback:function(r){t.$set(t.data,"tipPlacement",r)},expression:"data.tipPlacement"}},[n("ElOption",{attrs:{label:"上",value:"top"}}),n("ElOption",{attrs:{label:"下",value:"bottom"}}),n("ElOption",{attrs:{label:"左",value:"left"}}),n("ElOption",{attrs:{label:"右",value:"right"}})],1)],1):t._e(),n("ElFormItem",{attrs:{label:"标题提示"},scopedSlots:t._u([{key:"label",fn:function(){return[n("ElLink",{attrs:{underline:!1,href:"https://avuejs.com/form/form-tip.html",target:"_blank"}},[t._v(" 标题提示 "),n("i",{staticClass:"el-icon-question"})])]},proxy:!0}],null,!1,1033131739)},[n("ElInput",{attrs:{clearable:"",placeholder:"标题提示"},model:{value:t.data.labelTip,callback:function(r){t.$set(t.data,"labelTip",r)},expression:"data.labelTip"}})],1),t.data.labelTip&&!["upload"].includes(t.data.type)?n("ElFormItem",{attrs:{label:"标题提示位置","label-width":"110px"}},[n("ElSelect",{attrs:{placeholder:"标题提示位置",clearable:""},model:{value:t.data.labelTipPlacement,callback:function(r){t.$set(t.data,"labelTipPlacement",r)},expression:"data.labelTipPlacement"}},[n("ElOption",{attrs:{label:"上",value:"top"}}),n("ElOption",{attrs:{label:"下",value:"bottom"}}),n("ElOption",{attrs:{label:"左",value:"left"}}),n("ElOption",{attrs:{label:"右",value:"right"}})],1)],1):t._e(),["color","dynamic","group","ueditor","upload","map"].includes(t.data.type)?t._e():n("ElFormItem",{attrs:{label:"默认值"}},[t.defaultValues&&t.defaultValues[t.data.type]?[n("ElSelect",{attrs:{"allow-create":"",clearable:"",filterable:"",placeholder:"默认值"},model:{value:t.data.value,callback:function(r){t.$set(t.data,"value",r)},expression:"data.value"}},t._l(t.defaultValues[t.data.type],function(r){return n("ElOption",{key:r.value,attrs:{label:r.label,value:r.value}})}),1)]:[n("ElInput",{attrs:{clearable:"",placeholder:"默认值"},model:{value:t.data.value,callback:function(r){t.$set(t.data,"value",r)},expression:"data.value"}})]],2),n("ElFormItem",{attrs:{label:"详情模式"}},[n("ElSwitch",{model:{value:t.data.detail,callback:function(r){t.$set(t.data,"detail",r)},expression:"data.detail"}})],1),n("ElFormItem",{attrs:{label:"是否只读"}},[n("ElSwitch",{model:{value:t.data.readonly,callback:function(r){t.$set(t.data,"readonly",r)},expression:"data.readonly"}})],1),n("ElFormItem",{attrs:{label:"是否禁用"}},[n("ElSwitch",{model:{value:t.data.disabled,callback:function(r){t.$set(t.data,"disabled",r)},expression:"data.disabled"}})],1),n("ElFormItem",{attrs:{label:"是否可见"}},[n("ElSwitch",{model:{value:t.data.display,callback:function(r){t.$set(t.data,"display",r)},expression:"data.display"}})],1),n("ElFormItem",{attrs:{label:"是否必填"}},[n("ElSwitch",{model:{value:t.data.required,callback:function(r){t.$set(t.data,"required",r)},expression:"data.required"}}),t.data.required?n("ElInput",{attrs:{placeholder:"正则表达式"},model:{value:t.data.pattern,callback:function(r){t.$set(t.data,"pattern",r)},expression:"data.pattern"}}):t._e()],1)],1),n("ElCollapseItem",{attrs:{name:"2",title:"组件属性"}},[n(t.getComponent,{tag:"Component",attrs:{data:t.data,"default-values":t.defaultValues}})],1),["group"].includes(t.data.type)?t._e():n("ElCollapseItem",{attrs:{name:"3",title:"事件属性"}},[n("ConfigEvent",{attrs:{data:t.data}})],1)],1)],1):[n("FyEmpty",{staticStyle:{"margin-top":"100%"},attrs:{desc:"拖拽字段进行配置"}})]],2)},staticRenderFns$1o=[];const dateArr=["year","month","week","date","datetime","time","daterange","timerange","datetimerange","dates"],__vue2_script$1t={name:"WidgetConfig",components:{ConfigCustom,ConfigInput,ConfigTextarea,ConfigNumber,ConfigDynamic,ConfigSwitch,ConfigRate,ConfigSlider,ConfigColor,ConfigSelect,ConfigTree,ConfigDate,ConfigUpload,ConfigUEditor,ConfigMap,ConfigGroup,ConfigArray,ConfigTitle,ConfigEvent,ConfigTable},props:{data:Object,defaultValues:Object},data(){return{fields:fields$1,collapse:["1","2","3"],validator:{type:null,required:null,pattern:null,length:null}}},computed:{getComponent(){const t="config-",{type:s,component:n}=this.data;if((!s||n)&&s!=="u-editor")return`${t}custom`;let r="input";return[void 0,"input","password","url"].includes(s)?r="input":dateArr.includes(s)?r="date":["array","img"].includes(s)?r="array":["tree","cascader"].includes(s)?r="tree":["radio","checkbox","select"].includes(s)?r="select":r=s,t+r}},watch:{"data.required"(t){t?this.validator.required={required:!0,message:`${this.data.label}必须填写`}:this.validator.required=null,this.generateRule()},"data.pattern"(t){t?this.validator.pattern={pattern:new RegExp(t),message:`${this.data.label}格式不匹配`}:this.validator.pattern=null,this.generateRule()}},methods:{handleChangeType(t){if(!t)return;let s;for(const n of this.fields)if(s=n.list.find(r=>r.type===t),s)break;if(s)for(const n in s)s&&Object.prototype.hasOwnProperty.call(s,n)&&!["icon","label","span"].includes(n)&&(this.data[n]=s[n])},generateRule(){const t=[];Object.keys(this.validator).forEach(s=>{this.validator[s]&&t.push(this.validator[s])}),t.length===0?delete this.data.rules:this.data.rules=t}}},__cssModules$1t={};var __component__$1t=normalizeComponent(__vue2_script$1t,render$1o,staticRenderFns$1o,!1,__vue2_injectStyles$1t,null,null,null);function __vue2_injectStyles$1t(t){for(let s in __cssModules$1t)this[s]=__cssModules$1t[s]}const WidgetConfig=function(){return __component__$1t.exports}();var render$1n=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("ElContainer",{staticClass:"form-designer"},[n("ElAside",{attrs:{width:t.leftWidth}},[n("div",{staticClass:"fields-list"},[t.customFields&&t.customFields.length>0?[t.customFields[0].title&&t.customFields[0].list&&t.customFields[0].list.length>0?[t._l(t.customFields,function(r,a){return[n("div",{key:`f_${a}`,staticClass:"field-title"},[t._v(" "+t._s(r.title)+" ")]),n("Draggable",{key:`d_${a}`,attrs:{tag:"ul",list:r.list,group:{name:"form",pull:"clone",put:!1},"ghost-class":"ghost",sort:!1}},[t._l(r.list,function(o,l){return[n("li",{key:`c_${l}`,staticClass:"field-label"},[n("a",{on:{click:function(c){return t.handleFieldClick(o)}}},[n("i",{staticClass:"icon iconfont",class:o.icon}),n("span",[t._v(t._s(o.title||o.label))])])])]})],2)]})]:[n("ElLink",{staticClass:"field-title",attrs:{underline:!1,href:"https://github.com/sscfaith/avue-form-design/blob/master/CHANGELOG.md#2020-09-22",target:"_blank"}},[t._v(" 自定义字段 "),n("i",{staticClass:"el-icon-question"})]),n("Draggable",{attrs:{tag:"ul",list:t.customFields,group:{name:"form",pull:"clone",put:!1},"ghost-class":"ghost",sort:!1}},[t._l(t.customFields,function(r,a){return[r.tips?n("ElTooltip",{key:a,attrs:{effect:"dark",content:r.tips}},[n("li",{key:a,staticClass:"field-label"},[n("a",{staticStyle:{padding:"0 5px"},on:{click:function(o){return t.handleFieldClick(r)}}},[n("i",{class:r.icon}),n("span",{staticStyle:{"margin-left":"5px"}},[t._v(t._s(r.title||r.label))])])])]):n("li",{key:a,staticClass:"field-label"},[n("a",{staticStyle:{padding:"0 5px"},on:{click:function(o){return t.handleFieldClick(r)}}},[n("i",{class:r.icon}),n("span",{staticStyle:{"margin-left":"5px"}},[t._v(t._s(r.title||r.label))])])])]})],2)]]:t._e(),t._l(t.fields,function(r,a){return n("div",{key:a},[r.list.find(function(o){return t.includeFields.includes(o.type)})?[n("div",{staticClass:"field-title"},[t._v(" "+t._s(r.title)+" ")]),n("Draggable",{attrs:{tag:"ul",list:r.list,group:{name:"form",pull:"clone",put:!1},"ghost-class":"ghost",sort:!1}},[t._l(r.list,function(o,l){return[t.includeFields.includes(o.type)?n("li",{key:`c_${l}`,staticClass:"field-label"},[n("a",{on:{click:function(c){return t.handleFieldClick(o)}}},[n("i",{staticClass:"icon iconfont",class:o.icon}),n("span",[t._v(t._s(o.title||o.label))])])]):t._e()]})],2)]:t._e()],2)})],2)]),n("ElContainer",{staticClass:"widget-container",attrs:{direction:"vertical"}},[n("ElHeader",{staticClass:"widget-container-header"},[n("div",[t.undoRedo?[n("ElButton",{attrs:{type:"text",size:"medium",icon:"el-icon-refresh-left",disabled:t.historySteps.index===0},on:{click:function(r){t.widgetForm=t.handleUndo()}}},[t._v(" 撤销 ")]),n("ElButton",{attrs:{type:"text",size:"medium",icon:"el-icon-refresh-right",disabled:t.historySteps.index===t.historySteps.steps.length-1},on:{click:function(r){t.widgetForm=t.handleRedo()}}},[t._v(" 重做 ")])]:t._e()],2),n("div",{staticStyle:{display:"flex","align-items":"center"}},[t.showGithubStar?n("iframe",{staticStyle:{"margin-left":"10px"},attrs:{src:"https://ghbtns.com/github-btn.html?user=sscfaith&repo=avue-form-design&type=star&count=true",frameborder:"0",scrolling:"0",width:"100",height:"20",title:"GitHub"}}):t._e(),t._t("toolbar-left"),t.toolbar.includes("avue-doc")?n("ElButton",{attrs:{type:"text",size:"medium",icon:"el-icon-document"},on:{click:t.handleAvueDoc}},[t._v(" Avue文档 ")]):t._e(),t.toolbar.includes("import")?n("ElButton",{attrs:{type:"text",size:"medium",icon:"el-icon-upload2"},on:{click:function(r){t.importJsonVisible=!0}}},[t._v(" 导入JSON ")]):t._e(),t.toolbar.includes("generate")?n("ElButton",{attrs:{type:"text",size:"medium",icon:"el-icon-download"},on:{click:t.handleGenerateJson}},[t._v(" 生成JSON ")]):t._e(),t.toolbar.includes("preview")?n("ElButton",{attrs:{type:"text",size:"medium",icon:"el-icon-view"},on:{click:t.handlePreview}},[t._v(" 预览 ")]):t._e(),t.toolbar.includes("clear")?n("ElButton",{staticClass:"danger",attrs:{type:"text",size:"medium",icon:"el-icon-delete"},on:{click:t.handleClear}},[t._v(" 清空 ")]):t._e(),t._t("toolbar")],2)]),n("ElMain",{style:{background:t.widgetForm.column.length===0?`url(${t.widgetEmpty}) no-repeat 50%`:""}},[n("WidgetForm",{ref:"widgetForm",attrs:{data:t.widgetForm,select:t.widgetFormSelect},on:{"update:select":function(r){t.widgetFormSelect=r},change:function(r){return t.handleHistoryChange(t.widgetForm)}}})],1)],1),n("ElAside",{staticClass:"widget-config-container",attrs:{width:t.rightWidth}},[n("ElTabs",{attrs:{stretch:""},model:{value:t.configTab,callback:function(r){t.configTab=r},expression:"configTab"}},[n("ElTabPane",{staticStyle:{padding:"0 10px"},attrs:{label:"字段属性",name:"widget"}},[n("WidgetConfig",{attrs:{data:t.widgetFormSelect,"default-values":t.defaultValues}})],1),n("ElTabPane",{staticStyle:{padding:"0 10px"},attrs:{label:"表单属性",name:"form",lazy:""}},[n("FormConfig",{attrs:{data:t.widgetForm}})],1)],1)],1),n("ElDrawer",{attrs:{title:"导入JSON",visible:t.importJsonVisible,size:"50%","append-to-body":"","destroy-on-close":""},on:{"update:visible":function(r){t.importJsonVisible=r}}},[n("MonacoEditor",{attrs:{"key-index":"import",height:"82%"},model:{value:t.importJson,callback:function(r){t.importJson=r},expression:"importJson"}}),n("div",{staticClass:"afd-drawer-foot"},[n("ElButton",{attrs:{size:"medium",type:"primary"},on:{click:t.handleImportJsonSubmit}},[t._v(" 确定 ")]),n("ElButton",{attrs:{size:"medium",type:"danger"},on:{click:function(r){t.importJsonVisible=!1}}},[t._v(" 取消 ")])],1)],1),n("ElDrawer",{attrs:{title:"生成JSON",visible:t.generateJsonVisible,size:"50%","append-to-body":"","destroy-on-close":""},on:{"update:visible":function(r){t.generateJsonVisible=r}}},[n("MonacoEditor",{attrs:{"key-index":"generate",height:"82%","read-only":!0},model:{value:t.option,callback:function(r){t.option=r},expression:"option"}}),n("div",{staticClass:"afd-drawer-foot"},[n("ElButton",{attrs:{size:"medium",type:"primary"},on:{click:t.handleGenerate}},[t._v(" 生成 ")]),n("ElPopover",{attrs:{placement:"top",trigger:"hover",width:"350px"},scopedSlots:t._u([{key:"reference",fn:function(){return[n("ElButton",{staticStyle:{"margin-left":"10px"},attrs:{size:"medium",type:"primary"},on:{click:t.handleCopy}},[t._v(" 复制 ")])]},proxy:!0}])},[n("ElForm",{staticStyle:{padding:"0 20px"},attrs:{"label-suffix":":","label-width":"180px","label-position":"left"},model:{value:t.configOption,callback:function(r){t.configOption=r},expression:"configOption"}},[n("ElFormItem",{attrs:{label:"类型"}},[n("ElPopover",{staticStyle:{"margin-right":"15px"},attrs:{placement:"top-start",trigger:"hover",content:"复制json对象"},scopedSlots:t._u([{key:"reference",fn:function(){return[n("ElRadio",{attrs:{label:"json"},model:{value:t.configOption.generateType,callback:function(r){t.$set(t.configOption,"generateType",r)},expression:"configOption.generateType"}},[t._v(" json ")])]},proxy:!0}])}),n("ElPopover",{attrs:{placement:"top-start",trigger:"hover",content:"复制string字符串,可直接用于后端保存无需再次处理。"},scopedSlots:t._u([{key:"reference",fn:function(){return[n("ElRadio",{attrs:{label:"string"},model:{value:t.configOption.generateType,callback:function(r){t.$set(t.configOption,"generateType",r)},expression:"configOption.generateType"}},[t._v(" string ")])]},proxy:!0}])})],1),n("ElFormItem",{attrs:{label:"缩进长度-空格数量"}},[n("ElSlider",{attrs:{"show-stops":"",marks:{1:"1",2:"2",3:"3",4:"4"},min:1,max:4,step:1},model:{value:t.configOption.space,callback:function(r){t.$set(t.configOption,"space",r)},expression:"configOption.space"}})],1),n("ElFormItem",{attrs:{label:"引号类型"}},[n("ElSwitch",{attrs:{"active-value":"single","inactive-value":"double","active-text":"单引号","inactive-text":"双引号"},model:{value:t.configOption.quoteType,callback:function(r){t.$set(t.configOption,"quoteType",r)},expression:"configOption.quoteType"}})],1),n("ElFormItem",{attrs:{label:"移除key的引号"}},[n("ElSwitch",{model:{value:t.configOption.dropQuotesOnKeys,callback:function(r){t.$set(t.configOption,"dropQuotesOnKeys",r)},expression:"configOption.dropQuotesOnKeys"}})],1),n("ElFormItem",{attrs:{label:"移除数字字符串的引号"}},[n("ElSwitch",{model:{value:t.configOption.dropQuotesOnNumbers,callback:function(r){t.$set(t.configOption,"dropQuotesOnNumbers",r)},expression:"configOption.dropQuotesOnNumbers"}})],1)],1)],1)],1)],1),n("ElDrawer",{attrs:{title:"预览",visible:t.previewVisible,size:"60%","append-to-body":"","before-close":t.handleBeforeClose},on:{"update:visible":function(r){t.previewVisible=r}}},[t.previewVisible?n("FyForm",{ref:"form",staticClass:"afd-preview-form",attrs:{option:t.option},on:{submit:t.handlePreviewSubmit},model:{value:t.form,callback:function(r){t.form=r},expression:"form"}}):t._e(),n("div",{staticClass:"afd-drawer-foot"},[n("ElButton",{attrs:{size:"medium",type:"primary"},on:{click:t.handlePreviewSubmit}},[t._v(" 确定 ")]),n("ElButton",{attrs:{size:"medium",type:"danger"},on:{click:t.handleBeforeClose}},[t._v(" 取消 ")])],1)],1)],1)},staticRenderFns$1n=[];const FyFormDesign_vue_vue_type_style_index_0_lang="",__vue2_script$1s={name:"FyFormDesign",components:{Draggable,MonacoEditor,WidgetForm,FormConfig,WidgetConfig},mixins:[history],props:{options:{type:[Object,String],default:()=>({column:[]})},storage:{type:Boolean,default:!1},asideLeftWidth:{type:[String,Number],default:"270px"},asideRightWidth:{type:[String,Number],default:"380px"},showGithubStar:Boolean,toolbar:{type:Array,default:()=>["import","generate","preview","clear"]},undoRedo:{type:Boolean,default:!0},includeFields:{type:Array,default:()=>{const t=[];return fields$1.forEach(s=>{s.list.forEach(n=>{t.push(n.type)})}),t}},customFields:{type:Array},defaultValues:{type:Object}},data(){return{widgetEmpty,fields:fields$1,widgetForm:{column:[],labelPosition:"left",labelSuffix:":",labelWidth:120,gutter:0,menuBtn:!0,submitBtn:!0,submitText:"提交",emptyBtn:!0,emptyText:"清空",menuPosition:"center"},option:{},configTab:"form",widgetFormSelect:{},previewVisible:!1,generateJsonVisible:!1,importJsonVisible:!1,importJson:{},form:{},configOption:{generateType:"json",space:2,quoteType:"single",dropQuotesOnKeys:!0},history:{index:0,maxStep:20,steps:[]}}},computed:{leftWidth(){return typeof this.asideLeftWidth=="string"?this.asideLeftWidth:`${this.asideLeftWidth}px`},rightWidth(){return typeof this.asideRightWidth=="string"?this.asideRightWidth:`${this.asideRightWidth}px`}},watch:{options:{handler(val){let options=val;if(typeof options=="string")try{options=eval(`(${options})`)}catch(t){console.error("非法配置"),options={column:[]}}this.transAvueOptionsToFormDesigner(options).then(t=>{this.widgetForm=f(f({},this.widgetForm),t)})},deep:!0},widgetFormSelect:{handler(){this.configTab==="form"&&(this.configTab="widget")},deep:!0}},mounted(){this.handleLoadStorage(),this.handleLoadCss()},methods:{handleLoadStorage(){return v(this,null,function*(){let options=this.options;if(typeof options=="string")try{options=eval(`(${options})`)}catch(t){console.error("非法配置"),options={column:[]}}options.column||(options.column=[]),this.widgetForm=this.initHistory({index:0,maxStep:20,steps:[yield this.transAvueOptionsToFormDesigner(f(f({},this.widgetForm),options))],storage:this.storage}),this.undoRedo&&window.addEventListener("keydown",t=>{(t.metaKey&&!t.shiftKey&&t.keyCode===90||t.ctrlKey&&!t.shiftKey&&t.keyCode===90)&&(this.widgetForm=this.handleUndo()),(t.metaKey&&t.shiftKey&&t.keyCode===90||t.ctrlKey&&t.shiftKey&&t.keyCode===90||t.ctrlKey&&t.keyCode===89)&&(this.widgetForm=this.handleRedo())},!1)})},handleLoadCss(){const t=document.getElementsByTagName("head")[0],s=document.createElement("link");s.rel="stylesheet",s.type="text/css",s.href="https://at.alicdn.com/t/font_1254447_zc9iezc230c.css",t.appendChild(s)},handleAvueDoc(){window.open("https://avuejs.com/form/form.html","_blank")},handleFieldClick(t){const s=this.widgetForm.column.findIndex(r=>r.prop===this.widgetFormSelect.prop)+1;let n=0;s===-1?(this.widgetForm.column.push(t),n=this.widgetForm.column.length-1):(this.widgetForm.column.splice(s,0,t),n=s),this.$refs.widgetForm.handleWidgetAdd({newIndex:n})},handlePreview(){!this.widgetForm.column||this.widgetForm.column.length===0?this.$message.error("没有需要展示的内容"):this.transformToAvueOptions(this.widgetForm,!0).then(t=>{this.option=t,this.previewVisible=!0})},handleImportJsonSubmit(){try{this.transAvueOptionsToFormDesigner(this.importJson).then(t=>{this.widgetForm=t,this.importJsonVisible=!1,this.handleHistoryChange(this.widgetForm)})}catch(t){this.$message.error(t.message)}},handleGenerateJson(){this.transformToAvueOptions(this.widgetForm).then(t=>{this.option=t,this.generateJsonVisible=!0})},handleGenerate(){this.transformToAvueOptions(this.widgetForm).then(t=>{this.configOption.generateType&&this.configOption.generateType==="string"?this.$emit("submit",convert(t,f({minify:!0},this.configOption))):this.$emit("submit",t)})},handleCopy(){this.transformToAvueOptions(this.widgetForm).then(t=>{this.$Clipboard({text:convert(t,f({minify:!0},this.configOption))}).then(()=>{this.$message.success("复制成功")}).catch(()=>{this.$message.error("复制失败")})})},handlePreviewSubmit(t,s){s?this.$alert(this.form).then(()=>{s()}).catch(()=>{s()}):this.$refs.form.validate((n,r)=>{n&&this.$alert(this.form).then(()=>{r()}).catch(()=>{r()})})},handleBeforeClose(){this.$refs.form.resetForm(),this.form={},this.previewVisible=!1},handleClear(){this.widgetForm&&this.widgetForm.column&&this.widgetForm.column.length>0?this.$confirm("确定要清空吗?","警告",{type:"warning"}).then(()=>{this.$set(this.widgetForm,"column",[]),this.$set(this,"form",{}),this.$set(this,"widgetFormSelect",{}),this.handleHistoryChange(this.widgetForm)}).catch(()=>{}):this.$message.error("没有需要清空的内容")},transformToAvueOptions(obj,isPreview=!1){return new Promise((resolve,reject)=>{try{const data=deepClone(obj);for(const t in data)core.isBlank(data[t])&&delete data[t];for(let i=0;i<data.column.length;i++){const col=data.column[i];if(isPreview){const event=["change","blur","click","focus"];event.forEach(e=>{col[e]&&(col[e]=eval(`${col[e]}`.replace(/this/g,"_this")))}),col.event&&Object.keys(col.event).forEach(key=>col.event[key]=eval(`${col.event[key]}`.replace(/this/g,"_this")))}if(col.type==="dynamic"&&col.children&&col.children.column&&col.children.column.length>0)col.children.column.forEach(s=>{delete s.subfield}),this.transformToAvueOptions(col.children,isPreview).then(s=>{col.children=s});else if(col.type==="group"){data.group||(data.group=[]);const t={label:col.label,icon:col.icon,prop:col.prop,arrow:col.arrow,collapse:col.collapse,display:col.display};this.transformToAvueOptions(col.children,isPreview).then(s=>{t.column=s.column,data.group.push(t)}),data.column.splice(i,1),i--}else if(["checkbox","radio","tree","cascader","select"].includes(col.type)){if(col.dicOption==="static"){delete col.dicUrl,delete col.dicMethod,delete col.dicQuery,delete col.dicQueryConfig;const{label:t,value:s,desc:n}=col.props;col.dicData.forEach(r=>{if(r.label){const a=r.label;delete r.label,r[t]=a}if(r.value){const a=r.value;delete r.value,r[s]=a}if(r.desc){const a=r.desc;delete r.desc,r[n]=a}})}else if(col.dicOption==="remote")if(delete col.dicData,col.dicQueryConfig&&col.dicQueryConfig.length>0){const t={};col.dicQueryConfig.forEach(s=>{s.key&&s.value&&(t[s.key]=s.value)}),col.dicQuery=t,delete col.dicQueryConfig}else delete col.dicQueryConfig;delete col.dicOption}else if(["upload"].includes(col.type)){if(col.headersConfig&&col.headersConfig.length>0){const t={};col.headersConfig.forEach(s=>{s.key&&s.value&&(t[s.key]=s.value)}),col.headers=t}else delete col.headers;if(delete col.headersConfig,col.dataConfig&&col.dataConfig.length>0){const t={};col.dataConfig.forEach(s=>{s.key&&s.value&&(t[s.key]=s.value)}),col.data=t}else delete col.data;delete col.dataConfig}for(const t in col)core.isBlank(col[t])&&delete col[t]}resolve(data)}catch(t){reject(t)}})},transAvueOptionsToFormDesigner(obj){typeof obj=="string"&&(obj=eval(`(${obj})`));const data=deepClone(obj);return new Promise((t,s)=>{try{if(data.column&&data.column.length>0&&data.column.forEach(n=>{if(n.type==="dynamic"&&n.children&&n.children.column&&n.children.column.length>0)n.children.column.forEach(a=>{a.subfield=!0}),this.transAvueOptionsToFormDesigner(n.children).then(a=>{n.children=a});else if(["checkbox","radio","tree","cascader","select"].includes(n.type)){if(!n.dicData&&n.dicQuery&&typeof n.dicQuery=="object"){const r=[];for(const a in n.dicQuery)r.push({key:a,value:n.dicQuery[a],$cellEdit:!0});n.dicQueryConfig=r}n.dicUrl?n.dicOption="remote":n.dicOption="static",n.dicData?n.props&&n.dicData.forEach(r=>{const{label:a,value:o,desc:l}=n.props;if(a){const c=r[a];delete r[a],r.label=c}if(o){const c=r[o];delete r[o],r.value=c}if(l){const c=r[l];delete r[l],r.desc=c}}):n.dicData=[]}else if(["upload"].includes(n.type)){if(n.headers&&typeof n.headers=="object"){const r=[];for(const a in n.headers)r.push({key:a,value:n.headers[a],$cellEdit:!0});n.headersConfig=r}else n.headersConfig=[];if(n.data&&typeof n.data=="object"){const r=[];for(const a in n.data)r.push({key:a,value:n.data[a],$cellEdit:!0});n.dataConfig=r}else n.dataConfig=[]}}),data.group&&data.group.length>0){for(let n=0;n<data.group.length;n++){data.column||(data.column=[]);const r=data.group[n],a={type:"group",label:r.label,icon:r.icon,prop:r.prop,arrow:r.arrow,collapse:r.collapse,display:r.display};this.transAvueOptionsToFormDesigner(r).then(o=>{a.children=o,data.column.push(a)})}delete data.group}t(data)}catch(n){s(n)}})},getData(){return v(this,arguments,function*(t="json",s={}){if(t==="string")return convert(yield this.transformToAvueOptions(this.widgetForm),f({minify:!0},s));if(t==="app"){const n=yield this.transformToAvueOptions(this.widgetForm);return this.parseJson(n),n}else return yield this.transformToAvueOptions(this.widgetForm)})},parseJson(t){for(const s in t){const n=t[s];n&&n.length>0&&typeof n=="object"||typeof n=="object"?this.parseJson(n):typeof n=="function"&&(t[s]=`${n}`)}}}},__cssModules$1s={};var __component__$1s=normalizeComponent(__vue2_script$1s,render$1n,staticRenderFns$1n,!1,__vue2_injectStyles$1s,null,null,null);function __vue2_injectStyles$1s(t){for(let s in __cssModules$1s)this[s]=__cssModules$1s[s]}const FyFormDesign=function(){return __component__$1s.exports}();var render$1m=function(){var t=this,s=t.$createElement,n=t._self._c||s;return t.formSafe.parentOption.menuBtn!==!1?n("ElCol",{class:["menu",t.formSafe.menuPosition,"no-print"],style:t.styleName,attrs:{span:t.menuSpan,md:t.menuSpan}},[n("ElFormItem",{staticStyle:{"text-align":"center"},attrs:{"label-width":"0px"}},[t.formSafe.isMock?n("ElButton",{attrs:{type:"primary",size:t.formSafe.controlSize,icon:"el-icon-edit-outline",disabled:t.formSafe.allDisabled},on:{click:t.formSafe.handleMock}},[t._v(" "+t._s(t.formSafe.parentOption.mockText||"模拟")+" ")]):t._e(),t.formSafe.isPrint?n("ElButton",{attrs:{type:"primary",size:t.formSafe.controlSize,icon:"el-icon-printer",disabled:t.formSafe.allDisabled},on:{click:t.formSafe.handlePrint}},[t._v(" "+t._s(t.formSafe.parentOption.printText||"打印")+" ")]):t._e(),t.formSafe.parentOption.submitBtn!==!1?n("ElButton",{attrs:{type:"primary",size:t.formSafe.controlSize,icon:t.formSafe.parentOption.submitIcon||"el-icon-check",loading:t.formSafe.allDisabled},on:{click:t.formSafe.submit}},[t._v(" "+t._s(t.formSafe.parentOption.submitText||"提交")+" ")]):t._e(),t.formSafe.parentOption.emptyBtn!==!1?n("ElButton",{attrs:{icon:t.formSafe.parentOption.emptyIcon||"el-icon-delete",size:t.formSafe.controlSize,disabled:t.formSafe.allDisabled},on:{click:t.formSafe.resetForm}},[t._v(" "+t._s(t.formSafe.parentOption.emptyText||"清空")+" ")]):t._e(),t._t("menuForm",null,{disabled:t.formSafe.allDisabled,size:t.formSafe.controlSize})],2)],1):t._e()},staticRenderFns$1m=[];const __vue2_script$1r={name:"FyFormMenu",inject:["formSafe"],computed:{menuSpan(){return this.formSafe.parentOption.menuSpan||24},styleName(){return this.menuSpan!==24?{padding:0}:{}}}},__cssModules$1r={};var __component__$1r=normalizeComponent(__vue2_script$1r,render$1m,staticRenderFns$1m,!1,__vue2_injectStyles$1r,null,null,null);function __vue2_injectStyles$1r(t){for(let s in __cssModules$1r)this[s]=__cssModules$1r[s]}const FyFormMenu=function(){return __component__$1r.exports}();var render$1l=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("ElInput",{staticClass:"avue-input",attrs:{size:t.size,clearable:t.clearableVal,type:t.typeParam,maxlength:t.maxlength,minlength:t.minlength,"show-password":t.typeParam==="password"?t.showPassword:!1,rows:t.rows,autosize:{minRows:t.minRows,maxRows:t.maxRows},"prefix-icon":t.prefixIcon,"suffix-icon":t.suffixIcon,readonly:t.readonly,placeholder:t.placeholder,"show-word-limit":t.showWordLimit,disabled:t.disabled,autocomplete:t.autocomplete},on:{keyup:function(r){if(!r.type.indexOf("key")&&t._k(r.keyCode,"enter",13,r.key,"Enter"))return null;t.isSearch&&t.appendClick()},focus:t.handleFocus,blur:t.handleBlur},nativeOn:{click:function(r){return t.handleClick.apply(null,arguments)}},scopedSlots:t._u([t.prepend?{key:"prepend",fn:function(){return[n("span",{on:{click:function(r){return t.prependClick()}}},[t._v(t._s(t.prepend))])]},proxy:!0}:null,t.append?{key:"append",fn:function(){return[n("span",{on:{click:function(r){return t.appendClick()}}},[t._v(t._s(t.append))])]},proxy:!0}:t.isSearch?{key:"append",fn:function(r){return n("ElButton",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(a){return t.appendClick()}},slot:"append"})}}:null],null,!0),model:{value:t.text,callback:function(r){t.text=r},expression:"text"}})},staticRenderFns$1l=[];const __vue2_script$1q={name:"FyInput",mixins:[props,event],props:{showPassword:{type:Boolean,default:!0},showWordLimit:{type:Boolean,default:!1},target:{type:String,default:" _blank"},prefixIcon:{type:String},suffixIcon:{type:String},prependClick:{type:Function,default:()=>{}},prepend:{type:String},appendClick:{type:Function,default:()=>{}},append:{type:String},minlength:{type:Number},maxlength:{type:Number},rows:Number,minRows:{type:Number,default:5},maxRows:{type:Number,default:10},autocomplete:{type:String}},computed:{isSearch(){return this.type==="search"},typeParam:function(){return this.type==="textarea"?"textarea":this.type==="password"?"password":"text"}}},__cssModules$1q={};var __component__$1q=normalizeComponent(__vue2_script$1q,render$1l,staticRenderFns$1l,!1,__vue2_injectStyles$1q,null,null,null);function __vue2_injectStyles$1q(t){for(let s in __cssModules$1q)this[s]=__cssModules$1q[s]}const FyInput=function(){return __component__$1q.exports}();var render$1k=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-input-color"},[n("ElInput",{ref:"main",attrs:{placeholder:t.placeholder,size:t.size,readonly:t.readonly,clearable:t.clearableVal,disabled:t.disabled},nativeOn:{click:function(r){return t.handleClick.apply(null,arguments)}},scopedSlots:t._u([{key:"append",fn:function(){return[n("ElColorPicker",{attrs:{size:"mini","popper-class":t.popperClass,"color-format":t.colorFormat,disabled:t.disabled,"show-alpha":t.showAlpha,predefine:t.predefine},model:{value:t.text,callback:function(r){t.text=r},expression:"text"}})]},proxy:!0}]),model:{value:t.text,callback:function(r){t.text=r},expression:"text"}})],1)},staticRenderFns$1k=[];const __vue2_script$1p={name:"FyInputColor",mixins:[props,event],props:{colorFormat:String,predefine:{type:Array,default:()=>["#ff4500","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","rgba(255, 69, 0, 0.68)","rgb(255, 120, 0)","hsv(51, 100, 98)","hsva(120, 40, 94, 0.5)","hsl(181, 100%, 37%)","hsla(209, 100%, 56%, 0.73)"]},showAlpha:{type:Boolean,default:!0}}},__cssModules$1p={};var __component__$1p=normalizeComponent(__vue2_script$1p,render$1k,staticRenderFns$1k,!1,__vue2_injectStyles$1p,null,null,null);function __vue2_injectStyles$1p(t){for(let s in __cssModules$1p)this[s]=__cssModules$1p[s]}const FyInputColor=function(){return __component__$1p.exports}();var render$1j=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-input-icon"},[n("ElInput",{ref:"main",attrs:{placeholder:t.placeholder,size:t.size,clearable:t.clearableVal,disabled:t.disabled},on:{focus:t.handleShow},nativeOn:{click:function(r){return t.handleClick.apply(null,arguments)}},model:{value:t.text,callback:function(r){t.text=r},expression:"text"}},[n("IconTemp",{attrs:{slot:"append",text:t.text,size:28,small:t.size==="mini"},on:{click:t.handleShow},slot:"append"})],1),t.box?n("div",[n("ElementDialog",{attrs:{title:t.placeholder,visible:t.box,width:t.dialogWidth},on:{"update:visible":function(r){t.box=r}}},[n("div",{staticClass:"avue-input-icon__filter"},[n("ElInput",{attrs:{placeholder:"请输入",size:t.size},model:{value:t.filterText,callback:function(r){t.filterText=r},expression:"filterText"}})],1),n("FyTabs",{attrs:{option:t.option},on:{change:t.handleTabs}}),n("div",{staticClass:"avue-input-icon__list"},t._l(t.list,function(r,a){return n("div",{key:a,class:["avue-input-icon__item",{active:t.text===r}],on:{click:function(o){return t.handleSubmit(r.value)}}},[n("IconTemp",{attrs:{text:r.value,small:t.size==="mini"}}),n("p",[t._v(t._s(r.label||r.value))])],1)}),0)],1)],1):t._e()],1)},staticRenderFns$1j=[];const FyInputIcon_vue_vue_type_style_index_0_lang="",__vue2_script$1o={name:"FyInputIcon",mixins:[props,event],props:{dialogWidth:{type:String,default:"80%"},iconList:{type:Array,default:()=>[]}},data(){return{filterText:"",box:!1,tabs:{}}},computed:{list(){let t=(this.tabs.list||[]).map(s=>!s.value&&!s.label?{value:s}:s);return this.filterText&&(t=t.filter(s=>s.label.indexOf(this.filterText)!==-1)),t},option(){return{column:this.iconList}}},created(){this.tabs=this.iconList[0]||{}},methods:{handleTabs(t){this.tabs=t},handleSubmit(t){this.box=!1,this.text=t,this.handleChange(t)},handleShow(){this.$refs.main.blur(),!(this.disabled||this.readonly)&&(this.box=!0)}}},__cssModules$1o={};var __component__$1o=normalizeComponent(__vue2_script$1o,render$1j,staticRenderFns$1j,!1,__vue2_injectStyles$1o,null,null,null);function __vue2_injectStyles$1o(t){for(let s in __cssModules$1o)this[s]=__cssModules$1o[s]}const FyInputIcon=function(){return __component__$1o.exports}();var render$1i=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-input-map"},[n("ElInput",{ref:"main",attrs:{size:t.size,clearable:t.clearableVal,rows:t.rows,autosize:{minRows:t.minRows,maxRows:t.maxRows},disabled:t.disabled,type:"textarea",placeholder:t.placeholder},on:{clear:t.handleClear,focus:t.handleShow},nativeOn:{click:function(r){return t.handleClick.apply(null,arguments)}},model:{value:t.address,callback:function(r){t.address=r},expression:"address"}}),t.box?n("div",[n("ElementDialog",{attrs:{"show-full-screen":"",width:t.dialogWidth,title:t.placeholder,visible:t.box},on:{"update:visible":function(r){t.box=r},close:t.handleClose},scopedSlots:t._u([{key:"footer",fn:function(){return[t.disabled||t.readonly?t._e():n("ElButton",{attrs:{type:"primary",size:t.size,icon:"el-icon-check"},on:{click:t.handleSubmit}},[t._v(" 确 定 ")])]},proxy:!0}],null,!1,1816263233)},[t.box?n("div",{staticClass:"avue-input-map__content"},[n("ElInput",{staticClass:"avue-input-map__content-input",attrs:{id:"map__input",size:t.size,readonly:t.disabled,clearable:"",placeholder:"输入关键字选取地点"},on:{clear:t.clear},model:{value:t.formattedAddress,callback:function(r){t.formattedAddress=r},expression:"formattedAddress"}}),n("div",{staticClass:"avue-input-map__content-box"},[n("div",{staticClass:"avue-input-map__content-container",attrs:{id:"map__container",tabindex:"0"}}),n("div",{staticClass:"avue-input-map__content-result",attrs:{id:"map__result"}})])],1):t._e()])],1):t._e()],1)},staticRenderFns$1i=[];const FyInputMap_vue_vue_type_style_index_0_lang="",__vue2_script$1n={name:"FyInputMap",mixins:[props,event],props:{dialogWidth:{type:String,default:"60%"},rows:Number,minRows:{type:Number,default:1},maxRows:{type:Number}},data(){return{formattedAddress:"",address:"",poi:{},marker:null,map:null,box:!1}},computed:{longitude(){var t;return(t=this.text)==null?void 0:t[0]},latitude(){var t;return(t=this.text)==null?void 0:t[1]},title(){return this.disabled||this.readonly?"查看":"选择"}},watch:{poi(t){this.formattedAddress=t.formattedAddress},value(t){core.isBlank(t)&&(this.poi={},this.address="")},text(t){core.isBlank(t)||(this.poi={longitude:t[0],latitude:t[1],formattedAddress:t[2]},this.address=t[2])},box:{handler(){this.box&&this.$nextTick(()=>this.init(()=>{this.longitude&&this.latitude&&(this.addMarker(this.longitude,this.latitude),this.getAddress(this.longitude,this.latitude))}))},immediate:!0}},methods:{clear(){this.poi={},this.clearMarker()},handleSubmit(){this.setVal(),this.box=!1},handleClear(){this.text=[],this.poi={},this.handleChange(this.text)},setVal(){this.text=[this.poi.longitude,this.poi.latitude,this.poi.formattedAddress],this.handleChange(this.text)},handleShow(){this.$refs.main.blur(),this.box=!0},addMarker(t,s){this.clearMarker(),this.marker=new window.AMap.Marker({position:[t,s]}),this.marker.setMap(this.map)},clearMarker(){this.marker&&(this.marker.setMap(null),this.marker=null)},getAddress(t,s){new window.AMap.service("AMap.Geocoder",()=>{new window.AMap.Geocoder({}).getAddress([t,s],(r,a)=>{if(r==="complete"&&a.info==="OK"){const o=a.regeocode;this.poi=Object.assign(o,{longitude:t,latitude:s});const l=document.createElement("div"),c=document.createElement("img");c.src="//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-default.png",l.appendChild(c);const u=document.createElement("span");u.className="avue-input-map__marker",u.innerHTML=this.poi.formattedAddress,l.appendChild(u),this.marker.setContent(l)}})})},handleClose(){window.poiPicker.clearSearchResults()},addClick(){this.map.on("click",t=>{if(this.disabled||this.readonly)return;const s=t.lnglat,n=s.P||s.Q,r=s.R;this.addMarker(r,n),this.getAddress(r,n)})},init(t){this.map=new window.AMap.Map("map__container",Object.assign({zoom:13,center:(()=>{if(this.longitude&&this.latitude)return[this.longitude,this.latitude]})()},this.params)),this.initPoip(),this.addClick(),t()},initPoip(){window.AMapUI.loadUI(["misc/PoiPicker"],t=>{const s=new t({input:"map__input",placeSearchOptions:{map:this.map,pageSize:10},searchResultsContainer:"map__result"});this.poiPickerReady(s)})},poiPickerReady(t){window.poiPicker=t,t.on("poiPicked",s=>{this.clearMarker();const n=s.source,r=s.item;this.poi=Object.assign(r,{formattedAddress:r.name,longitude:r.location.R,latitude:r.location.P||r.location.Q}),n!=="search"&&t.searchByKeyword(r.name)})}}},__cssModules$1n={};var __component__$1n=normalizeComponent(__vue2_script$1n,render$1i,staticRenderFns$1i,!1,__vue2_injectStyles$1n,null,null,null);function __vue2_injectStyles$1n(t){for(let s in __cssModules$1n)this[s]=__cssModules$1n[s]}const FyInputMap=function(){return __component__$1n.exports}();var render$1h=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("ElInputNumber",{staticClass:"avue-input-number",attrs:{precision:t.precision,placeholder:t.placeholder,size:t.size,min:t.min,max:t.max,step:t.step,clearable:t.clearableVal,readonly:t.readonly,"controls-position":t.controlsPosition,controls:t.controls,label:t.placeholder,disabled:t.disabled},on:{focus:t.handleFocus,blur:t.handleBlur},nativeOn:{click:function(r){return t.handleClick.apply(null,arguments)}},model:{value:t.text,callback:function(r){t.text=t._n(r)},expression:"text"}})},staticRenderFns$1h=[];const __vue2_script$1m={name:"FyInputNumber",mixins:[props,event],props:{controls:{type:Boolean,default:!0},step:{type:Number,default:1},controlsPosition:{type:String,default:"right"},precision:{type:Number},min:{type:Number,default:-1/0},max:{type:Number,default:1/0}}},__cssModules$1m={};var __component__$1m=normalizeComponent(__vue2_script$1m,render$1h,staticRenderFns$1h,!1,__vue2_injectStyles$1m,null,null,null);function __vue2_injectStyles$1m(t){for(let s in __cssModules$1m)this[s]=__cssModules$1m[s]}const FyInputNumber=function(){return __component__$1m.exports}();var render$1g=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-input-table"},[n("ElInput",{ref:"main",attrs:{size:t.size,value:t.labelShow,clearable:t.clearableVal,placeholder:t.placeholder,disabled:t.disabled},on:{clear:t.handleClear,focus:t.handleShow},nativeOn:{click:function(r){return t.handleClick.apply(null,arguments)}}}),t.box?n("div",[n("ElementDialog",{attrs:{width:t.dialogWidth,title:t.placeholder,visible:t.box},on:{"update:visible":function(r){t.box=r}},scopedSlots:t._u([{key:"footer",fn:function(){return[n("ElButton",{attrs:{type:"primary",size:t.size,icon:"el-icon-check"},on:{click:t.setVal}},[t._v(" 确 定 ")])]},proxy:!0}],null,!1,2921262159)},[t.box?n("FyCurd",{ref:"crud",staticClass:"avue-input-table__crud",attrs:{option:t.option,data:t.data,"table-loading":t.loading,search:t.search,page:t.page},on:{"update:search":function(r){t.search=r},"update:page":function(r){t.page=r},"on-load":t.onList,"search-change":t.handleSearchChange,"search-reset":t.handleSearchChange,"current-row-change":t.handleCurrentRowChange}}):t._e()],1)],1):t._e()],1)},staticRenderFns$1g=[];const FyInputTable_vue_vue_type_style_index_0_lang="",__vue2_script$1l={name:"FyInputTable",mixins:[props,event],props:{formatter:Function,onLoad:Function,dialogWidth:{type:String,default:"80%"}},data(){return{object:{},active:{},search:{},page:{},loading:!1,box:!1,created:!1,data:[]}},computed:{title(){return this.disabled||this.readonly?"查看":"选择"},labelShow(){return typeof this.formatter=="function"?this.formatter(this.object):this.object[this.labelKey]||""},option(){return Object.assign({menu:!1,header:!1,size:this.size,headerAlign:"center",align:"center",highlightCurrentRow:!0},this.column.children)}},watch:{value(t){core.isBlank(t)&&(this.active={},this.object={})},text(t){this.created||core.isBlank(t)||typeof this.onLoad=="function"&&this.onLoad({value:this.text},s=>{this.active=s,this.object=s,this.created=!0})}},methods:{handleClear(){this.active={},this.setVal()},handleShow(){this.$refs.main.blur(),!(this.disabled||this.readonly)&&(this.page={currentPage:1,total:0},this.data=[],this.box=!0)},setVal(){this.object=this.active,this.text=this.active[this.valueKey]||"",this.handleChange(this.active),this.box=!1},handleCurrentRowChange(t){this.active=t},handleSearchChange(t,s){this.page.page=1,this.onList(),s&&s()},onList(){this.loading=!0,typeof this.onLoad=="function"&&this.onLoad({page:this.page,data:this.search},t=>{this.page.total=t.total,this.data=t.data,this.loading=!1;const s=this.data.find(n=>n[this.valueKey]===this.object[this.valueKey]);setTimeout(()=>this.$refs.crud.setCurrentRow(s))})}}},__cssModules$1l={};var __component__$1l=normalizeComponent(__vue2_script$1l,render$1g,staticRenderFns$1g,!1,__vue2_injectStyles$1l,null,null,null);function __vue2_injectStyles$1l(t){for(let s in __cssModules$1l)this[s]=__cssModules$1l[s]}const FyInputTable=function(){return __component__$1l.exports}();var render$1f=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("ElSelect",{ref:"main",staticClass:"avue-input-tree",attrs:{size:t.size,multiple:t.multiple,"multiple-limit":t.limit,"collapse-tags":t.tags,value:t.labelShow,clearable:t.clearableVal,placeholder:t.placeholder,"popper-class":t.popperClass,"popper-append-to-body":t.popperAppendToBody,disabled:t.disabled},on:{click:t.handleClick,focus:t.handleFocus,blur:t.handleBlur,clear:t.handleClear}},[t.filter?n("div",{staticClass:"avue-input__filter"},[n("ElInput",{attrs:{size:"mini",placeholder:t.filterText},model:{value:t.filterValue,callback:function(r){t.filterValue=r},expression:"filterValue"}})],1):t._e(),n("ElOption",{attrs:{value:t.text}},[n("ElTree",{ref:"tree",staticClass:"avue-input__select",attrs:{data:t.dicList,lazy:t.lazy,load:t.handleTreeLoad,"node-key":t.valueKey,accordion:t.accordion,"icon-class":t.iconClass,"show-checkbox":t.multiple,"expand-on-click-node":t.expandOnClickNode,props:t.treeProps,"check-strictly":t.checkStrictly,"highlight-current":t.multiple!==!0,"current-node-key":t.currentNodeKey,"filter-node-method":t.filterNode,"default-checked-keys":t.keysList,"default-expanded-keys":t.defaultExpandedKeys?t.defaultExpandedKeys:t.keysList,"default-expand-all":t.defaultExpandAll},on:{check:t.checkChange,"node-click":function(r){return r.target!==r.currentTarget?null:t.handleNodeClick.apply(null,arguments)}},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.data;return n("div",{staticClass:"avue-input__item"},[t.$scopedSlots.default?t._t("default",null,{label:t.labelKey,value:t.valueKey,item:a}):[n("span",{class:{"avue--disabled":a[t.disabledKey]}},[t._v(t._s(a[t.labelKey]))]),a[t.descKey]?n("span",{staticClass:"avue-input__desc"},[t._v(t._s(a[t.descKey]))]):t._e()]],2)}}],null,!0)})],1)],1)},staticRenderFns$1f=[];const FyInputTree_vue_vue_type_style_index_0_lang="",__vue2_script$1k={name:"FyInputTree",mixins:[props,event],props:{nodeClick:Function,treeLoad:Function,checked:Function,lazy:{type:Boolean,default:!1},leafOnly:{type:Boolean,default:!1},tags:{type:Boolean,default:!1},limit:{type:Number,default:0},expandOnClickNode:{type:Boolean,default:!0},filter:{type:Boolean,default:!0},filterText:{type:String,default:""},checkStrictly:{type:Boolean,default:!1},accordion:{type:Boolean,default:!1},parent:{type:Boolean,default:!0},iconClass:String,defaultExpandedKeys:Array,defaultExpandAll:{type:Boolean,default:!1},popperAppendToBody:{type:Boolean,default:!0}},data(){return{node:[],filterValue:"",box:!1,dicList:[]}},computed:{treeProps(){return Object.assign(this.props,{isLeaf:this.leafKey})},currentNodeKey(){return this.multiple?"":this.text},keysList(){return this.multiple?this.text:[this.text||""]},labelShow(){return[...this.node].map(n=>this.getLabelText(n))}},watch:{text(){this.init()},dic:{handler(t){this.dicList=t},immediate:!0},dicList:{handler(){this.init()},immediate:!0},filterValue(t){this.$refs.tree.filter(t)}},methods:{handleClear(){this.text=this.multiple?[]:"",this.node=[],this.filterValue="",this.$refs.tree.setCurrentKey(null),this.$refs.tree.setCheckedKeys([])},handleTreeLoad(t,s){const n=r=>{const a=(o,l,c)=>{o.forEach(u=>{u[this.valueKey]===l?u[this.childrenKey]=c:u[this.childrenKey]&&a(u[this.childrenKey])})};a(this.dicList,t.key,r),s(r)};this.treeLoad&&this.treeLoad(t,n)},filterNode(t,s){return t?s[this.labelKey].toLowerCase().indexOf(t.toLowerCase())!==-1:!0},checkChange(t,s,n,r){this.text.splice(0,this.text.length),this.$refs.tree.getCheckedNodes(this.leafOnly,!1).forEach(o=>this.text.push(o[this.valueKey])),typeof this.checked=="function"&&this.checked(t,s,n,r)},getHalfList(){let t=this.$refs.tree.getCheckedNodes(!1,!0);return t=t.map(s=>s[this.valueKey]),t},init(){this.$nextTick(()=>{if(this.node=[],this.multiple)this.$refs.tree.getCheckedNodes(this.leafOnly,!1).forEach(s=>{this.node.push(s)});else{const t=this.$refs.tree.getNode(this.text);if(t){const s=t.data;this.$refs.tree.setCurrentKey(s[this.valueKey]),this.node.push(s)}}}),this.disabledParentNode(this.dic,this.parent)},disabledParentNode(t,s){t.forEach(n=>{const r=n[this.childrenKey];core.isBlank(r)||(s||(n.disabled=!0),this.disabledParentNode(r,s))})},handleNodeClick(t,s,n){t.disabled||(typeof this.nodeClick=="function"&&this.nodeClick(t,s,n),!this.multiple&&(core.isBlank(t[this.childrenKey])&&!this.multiple||this.parent)&&(this.text=t[this.valueKey],this.$refs.main.blur()))}}},__cssModules$1k={};var __component__$1k=normalizeComponent(__vue2_script$1k,render$1f,staticRenderFns$1f,!1,__vue2_injectStyles$1k,null,null,null);function __vue2_injectStyles$1k(t){for(let s in __cssModules$1k)this[s]=__cssModules$1k[s]}const FyInputTree=function(){return __component__$1k.exports}();var render$1e=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-progress"},[n("ElProgress",{attrs:{type:t.type,color:t.color,width:t.width,"text-inside":"","show-text":t.showText,"stroke-width":t.strokeWidth,percentage:t.percentage}})],1)},staticRenderFns$1e=[];const __vue2_script$1j={name:"FyProgress",props:{showText:{type:Boolean},width:{type:[Number,String]},strokeWidth:{type:[Number,String]},type:{type:String},color:{type:String},percentage:{type:[Number]}}},__cssModules$1j={};var __component__$1j=normalizeComponent(__vue2_script$1j,render$1e,staticRenderFns$1e,!1,__vue2_injectStyles$1j,null,null,null);function __vue2_injectStyles$1j(t){for(let s in __cssModules$1j)this[s]=__cssModules$1j[s]}const FyProgress=function(){return __component__$1j.exports}();var render$1d=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-radio"},[n("ElRadioGroup",{attrs:{size:t.size,disabled:t.disabled},nativeOn:{click:function(r){return t.handleClick.apply(null,arguments)}},model:{value:t.text,callback:function(r){t.text=r},expression:"text"}},t._l(t.dic,function(r,a){return n(t.componentName,{key:a,tag:"Component",attrs:{label:r[t.valueKey],border:t.border,readonly:t.readonly,disabled:r[t.disabledKey]}},[t._v(" "+t._s(r[t.labelKey])+" ")])}),1)],1)},staticRenderFns$1d=[];const FyRadio_vue_vue_type_style_index_0_lang="",__vue2_script$1i={name:"FyRadio",mixins:[props,event],props:{value:[String,Object,Number,Boolean,Array]},data(){return{name:"radio"}}},__cssModules$1i={};var __component__$1i=normalizeComponent(__vue2_script$1i,render$1d,staticRenderFns$1d,!1,__vue2_injectStyles$1i,null,null,null);function __vue2_injectStyles$1i(t){for(let s in __cssModules$1i)this[s]=__cssModules$1i[s]}const FyRadio=function(){return __component__$1i.exports}();var render$1c=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("ElRate",{attrs:{max:t.max,"low-threshold":t.lowThreshold,"high-threshold":t.highThreshold,"disabled-void-color":t.disabledVoidColor,"disabled-void-icon-class":t.disabledVoidIconClass,"allow-half":t.allowHalf,readonly:t.readonly,texts:t.texts,"show-score":t.showScore,"score-template":t.scoreTemplate,"show-text":t.showText,"icon-classes":t.iconClasses,"void-icon-class":t.voidIconClass,disabled:t.disabled,colors:t.colors},nativeOn:{click:function(r){return t.handleClick.apply(null,arguments)}},model:{value:t.text,callback:function(r){t.text=r},expression:"text"}})},staticRenderFns$1c=[];const FyRate_vue_vue_type_style_index_0_lang="",__vue2_script$1h={name:"FyRate",mixins:[props,event],props:{allowHalf:Boolean,lowThreshold:Number,highThreshold:Number,disabledVoidColor:String,disabledVoidIconClass:String,value:{type:Number,default:0},colors:{type:Array},max:{type:Number,default:5},iconClasses:{type:Array},texts:{type:Array},scoreTemplate:String,showScore:{type:Boolean,default:!1},showText:{type:Boolean,default:!1},voidIconClass:{type:String}},data(){return{}},watch:{},created(){},mounted(){},methods:{}},__cssModules$1h={};var __component__$1h=normalizeComponent(__vue2_script$1h,render$1c,staticRenderFns$1c,!1,__vue2_injectStyles$1h,null,null,null);function __vue2_injectStyles$1h(t){for(let s in __cssModules$1h)this[s]=__cssModules$1h[s]}const FyRate=function(){return __component__$1h.exports}();var render$1b=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("ElSelect",{ref:"main",staticClass:"avue-select",attrs:{size:t.size,loading:t.loading,"loading-text":t.loadingText,multiple:t.multiple,filterable:t.remote?!0:t.filterable,remote:t.remote,readonly:t.readonly,"no-match-text":t.noMatchText,"no-data-text":t.noDataText,"remote-method":t.remote?t.handleRemoteMethod:void 0,"popper-class":t.popperClass,"popper-append-to-body":t.popperAppendToBody,"collapse-tags":t.tags,clearable:t.clearableVal,placeholder:t.placeholder,"multiple-limit":t.limit,"allow-create":t.allowCreate,"default-first-option":t.defaultFirstOption,disabled:t.disabled},on:{focus:t.handleFocus,blur:t.handleBlur,change:t.changeSelect},nativeOn:{click:function(r){return t.handleClick.apply(null,arguments)}},model:{value:t.text,callback:function(r){t.text=r},expression:"text"}},[t.group?t._l(t.netDic,function(r,a){return n("ElOptionGroup",{key:a,attrs:{label:t.getLabelText(r)}},t._l(r[t.groupsKey],function(o,l){return n("ElOption",{key:l,attrs:{disabled:o[t.disabledKey],label:t.getLabelText(o),value:o[t.valueKey]}},[t.$scopedSlots.default?t._t("default",null,{label:t.labelKey,value:t.valueKey,item:o}):[n("span",[t._v(t._s(t.getLabelText(o)))]),o[t.descKey]?n("span",{staticClass:"avue-select__desc"},[t._v(t._s(o[t.descKey]))]):t._e()]],2)}),1)}):[t.all&&t.multiple?n("ElCheckbox",{staticClass:"avue-select__check",on:{change:t.selectAll},model:{value:t.checkAll,callback:function(r){t.checkAll=r},expression:"checkAll"}},[t._v(" 全选 ")]):t._e(),t._l(t.netDic,function(r,a){return n("ElOption",{key:a,attrs:{disabled:r[t.disabledKey],label:t.getLabelText(r),value:r[t.valueKey]}},[t.$scopedSlots.default?t._t("default",null,{label:t.labelKey,value:t.valueKey,item:r}):[n("span",[t._v(t._s(t.getLabelText(r)))]),r[t.descKey]?n("span",{staticClass:"avue-select__desc"},[t._v(t._s(r[t.descKey]))]):t._e()]],2)})]],2)},staticRenderFns$1b=[];const FySelect_vue_vue_type_style_index_0_lang="",__vue2_script$1g={name:"FySelect",mixins:[props,event],props:{loadingText:{type:String},noMatchText:{type:String},noDataText:{type:String},drag:{type:Boolean,default:!1},remote:{type:Boolean,default:!1},tags:{type:Boolean,default:!1},limit:{type:Number,default:0},filterable:{type:Boolean,default:!1},allowCreate:{type:Boolean,default:!1},defaultFirstOption:{type:Boolean,default:!1},all:{type:Boolean,default:!1},popperAppendToBody:{type:Boolean,default:!0}},data(){return{checkAll:!1,created:!1,netDic:[],loading:!1}},watch:{text(t){core.isBlank(t)||this.remote&&!this.created&&(this.created=!0,this.handleRemoteMethod(this.multiple?this.text.join(DIC_SPLIT):this.text))},dic:{handler(t){this.netDic=t},immediate:!0}},mounted(){this.drag&&this.setSort()},methods:{setSort(){if(!window.Sortable){packages.logs("Sortable");return}const t=this.$refs.main.$el.querySelectorAll(".el-select__tags > span")[0];window.Sortable.create(t,{animation:100,onEnd:s=>{const n=this.value.splice(s.oldIndex,1)[0];this.value.splice(s.newIndex,0,n)}})},handleRemoteMethod(t){this.loading=!0,sendDic({column:this.column,value:t}).then(s=>{this.loading=!1,this.netDic=s})},selectAll(){this.text=[],this.checkAll&&this.netDic.map(t=>{this.text.push(t[this.valueKey])})},changeSelect(t){this.checkAll=t.length===this.netDic.length}}},__cssModules$1g={};var __component__$1g=normalizeComponent(__vue2_script$1g,render$1b,staticRenderFns$1b,!1,__vue2_injectStyles$1g,null,null,null);function __vue2_injectStyles$1g(t){for(let s in __cssModules$1g)this[s]=__cssModules$1g[s]}const FySelect=function(){return __component__$1g.exports}();var render$1a=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("ElSlider",{attrs:{disabled:t.disabled,vertical:t.vertical,height:t.setPx(t.height),step:t.step,min:t.min,max:t.max,range:t.range,"show-stops":t.showStops,"show-tooltip":t.showTooltip,"show-input":t.showInput,"show-input-controls":t.showInputControls,"input-size":t.size,"tooltip-class":t.tooltipClass,marks:t.marks,"format-tooltip":t.formatTooltip},nativeOn:{click:function(r){return t.handleClick.apply(null,arguments)}},model:{value:t.text,callback:function(r){t.text=r},expression:"text"}})},staticRenderFns$1a=[];const __vue2_script$1f={name:"FySlider",mixins:[props,event],props:{step:Number,min:Number,max:Number,marks:Number,range:Boolean,showTooltip:Boolean,showInput:Boolean,showStops:Boolean,vertical:Boolean,formatTooltip:Function,height:String,showInputControls:Boolean,tooltipClass:String},methods:{setPx}},__cssModules$1f={};var __component__$1f=normalizeComponent(__vue2_script$1f,render$1a,staticRenderFns$1a,!1,__vue2_injectStyles$1f,null,null,null);function __vue2_injectStyles$1f(t){for(let s in __cssModules$1f)this[s]=__cssModules$1f[s]}const FySlider=function(){return __component__$1f.exports}();var render$19=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("ElSwitch",{attrs:{"active-text":t.active[t.labelKey],"active-value":t.active[t.valueKey],"inactive-value":t.inactive[t.valueKey],"inactive-text":t.inactive[t.labelKey],"active-icon-class":t.activeIconClass,"inactive-icon-class":t.inactiveIconClass,"active-color":t.activeColor,"inactive-color":t.inactiveColor,width:t.len,disabled:t.disabled,readonly:t.readonly,size:t.size},nativeOn:{click:function(r){return t.handleClick.apply(null,arguments)}},model:{value:t.text,callback:function(r){t.text=r},expression:"text"}})},staticRenderFns$19=[];const __vue2_script$1e={name:"FySwitch",mixins:[props,event],props:{value:[String,Object,Number,Boolean,Array],activeIconClass:String,inactiveIconClass:String,activeColor:String,inactiveColor:String,len:Number},computed:{active(){return this.dic[1]||{}},inactive(){return this.dic[0]||{}}}},__cssModules$1e={};var __component__$1e=normalizeComponent(__vue2_script$1e,render$19,staticRenderFns$19,!1,__vue2_injectStyles$1e,null,null,null);function __vue2_injectStyles$1e(t){for(let s in __cssModules$1e)this[s]=__cssModules$1e[s]}const FySwitch=function(){return __component__$1e.exports}();var render$18=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-tabs"},[n("ElTabs",{attrs:{"tab-position":t.parentOption.position,type:t.parentOption.type},model:{value:t.active,callback:function(r){t.active=r},expression:"active"}},t._l(t.columnOption,function(r,a){return n("ElTabPane",{key:a,attrs:{name:`${a}`,disabled:r.disabled}},[n("span",{attrs:{slot:"label"},slot:"label"},[n("i",{class:r.icon}),t._v(" "+t._s(r.label)+" ")])])}),1)],1)},staticRenderFns$18=[];const __vue2_script$1d={name:"FyTabs",props:{option:{type:Object,required:!0,default:()=>({})}},data(){return{active:"0"}},computed:{tabsObj(){return this.columnOption[this.active]},parentOption(){return this.option},columnOption(){return this.parentOption.column||[]}},watch:{active(){this.$emit("change",this.tabsObj)}},methods:{changeTabs(t){this.active=`${t}`}}},__cssModules$1d={};var __component__$1d=normalizeComponent(__vue2_script$1d,render$18,staticRenderFns$18,!1,__vue2_injectStyles$1d,null,null,null);function __vue2_injectStyles$1d(t){for(let s in __cssModules$1d)this[s]=__cssModules$1d[s]}const FyTabs=function(){return __component__$1d.exports}();var render$17=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-time"},[n(t.componentName,{tag:"Component",attrs:{"popper-class":t.popperClass,"is-range":t.isRange,size:t.size,editable:t.editable,"default-value":t.defaultValue,"range-separator":t.rangeSeparator,"arrow-control":t.arrowControl,"start-placeholder":t.startPlaceholder||"开始","end-placeholder":t.endPlaceholder||"结束",format:t.format,readonly:t.readonly,clearable:t.clearableVal,"picker-options":t.pickerOptions,"value-format":t.valueFormat,placeholder:t.placeholder,disabled:t.disabled},on:{change:t.handleChange},nativeOn:{click:function(r){return t.handleClick.apply(null,arguments)}},model:{value:t.text,callback:function(r){t.text=r},expression:"text"}})],1)},staticRenderFns$17=[];const __vue2_script$1c={name:"FyTime",mixins:[props,event],props:{editable:Boolean,startPlaceholder:String,endPlaceholder:String,rangeSeparator:String,defaultValue:[String,Array],pickerOptions:Object,valueFormat:String,arrowControl:Boolean,type:String,format:String},computed:{componentName(){const t=this.pickerOptions||{};return t.start||t.end||t.step?"elTimeSelect":"elTimePicker"},isRange(){return this.type==="timerange"}},watch:{text(){Array.isArray(this.text)&&core.isBlank(this.text)&&(this.text=this.text.join(","))}},methods:{}},__cssModules$1c={};var __component__$1c=normalizeComponent(__vue2_script$1c,render$17,staticRenderFns$17,!1,__vue2_injectStyles$1c,null,null,null);function __vue2_injectStyles$1c(t){for(let s in __cssModules$1c)this[s]=__cssModules$1c[s]}const FyTime=function(){return __component__$1c.exports}();var render$16=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-title"},[n("p",{style:t.styles},[t._v(" "+t._s(t.text)+" ")])])},staticRenderFns$16=[];const FyTitle_vue_vue_type_style_index_0_lang="",__vue2_script$1b={name:"FyTitle",mixins:[props,event],props:{styles:{type:Object,default:()=>({})}}},__cssModules$1b={};var __component__$1b=normalizeComponent(__vue2_script$1b,render$16,staticRenderFns$16,!1,__vue2_injectStyles$1b,null,null,null);function __vue2_injectStyles$1b(t){for(let s in __cssModules$1b)this[s]=__cssModules$1b[s]}const FyTitle=function(){return __component__$1b.exports}();var render$15=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-tree"},[t.optVal(t.option.filter,!0)?n("div",{staticClass:"avue-tree__filter"},[n("ElInput",{attrs:{placeholder:t.optVal(t.option.filterText,"输入关键字进行过滤"),size:t.size},model:{value:t.filterValue,callback:function(r){t.filterValue=r},expression:"filterValue"}}),t.optVal(t.option.addBtn,!0)?n("ElButton",{directives:[{name:"permission",rawName:"v-permission",value:t.getPermission("addBtn"),expression:"getPermission('addBtn')"}],attrs:{size:t.size,icon:"el-icon-plus"},on:{click:t.parentAdd}}):t._t("addBtn")],2):t._e(),n("ElScrollbar",{staticClass:"avue-tree__content"},[n("ElTree",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"tree",attrs:{data:t.data,lazy:t.lazy,load:t.treeLoad,props:t.treeProps,"icon-class":t.iconClass,indent:t.indent,"highlight-current":!t.multiple,"show-checkbox":t.multiple,accordion:t.accordion,"node-key":t.valueKey,"check-strictly":t.checkStrictly,"check-on-click-node":t.checkOnClickNode,"filter-node-method":t.filterNode,"expand-on-click-node":t.expandOnClickNode,"default-expand-all":t.defaultExpandAll,"default-expanded-keys":t.defaultExpandedKeys},on:{"check-change":t.handleCheckChange,"node-click":t.nodeClick,"node-contextmenu":t.nodeContextmenu},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.node,o=r.data;return t.$scopedSlots.default?t._t("default",null,{node:a,data:o}):n("span",{staticClass:"el-tree-node__label"},[n("span",[t._v(t._s(a.label))])])}}],null,!0)})],1),t.client.show&&t.menu?n("div",{staticClass:"el-cascader-panel is-bordered avue-tree__menu",style:t.styleName,on:{click:function(r){t.client.show=!1}}},[t.optVal(t.option.addBtn,!0)?n("div",{directives:[{name:"permission",rawName:"v-permission",value:t.getPermission("addBtn"),expression:"getPermission('addBtn')"}],staticClass:"avue-tree__item",on:{click:t.rowAdd}},[t._v(" "+t._s(t.menuIcon("addBtn"))+" ")]):t._e(),t.optVal(t.option.editBtn,!0)?n("div",{directives:[{name:"permission",rawName:"v-permission",value:t.getPermission("editBtn"),expression:"getPermission('editBtn')"}],staticClass:"avue-tree__item",on:{click:t.rowEdit}},[t._v(" "+t._s(t.menuIcon("editBtn"))+" ")]):t._e(),t.optVal(t.option.delBtn,!0)?n("div",{directives:[{name:"permission",rawName:"v-permission",value:t.getPermission("delBtn"),expression:"getPermission('delBtn')"}],staticClass:"avue-tree__item",on:{click:t.rowRemove}},[t._v(" "+t._s(t.menuIcon("delBtn"))+" ")]):t._e(),t._t("menu",null,{node:t.node})],2):t._e(),t.box?n("div",[n("ElementDialog",{attrs:{title:t.node[t.labelKey]||t.title,visible:t.box,"before-close":t.hide,width:t.optVal(t.option.dialogWidth,"50%")},on:{"update:visible":function(r){t.box=r}}},[n("FyForm",{ref:"form",attrs:{option:t.formOption},on:{submit:t.handleSubmit},model:{value:t.form,callback:function(r){t.form=r},expression:"form"}})],1)],1):t._e()],1)},staticRenderFns$15=[];const FyTree_vue_vue_type_style_index_0_lang="",__vue2_script$1a={name:"FyTree",directives:{permission},props:{indent:Number,filterNodeMethod:Function,checkOnClickNode:Boolean,beforeClose:Function,beforeOpen:Function,permission:{type:[Function,Object],default:()=>({})},iconClass:{type:String},loading:{type:Boolean,default:!1},expandOnClickNode:{type:Boolean,default:!1},option:{type:Object,default:()=>({})},data:{type:Array,default:()=>[]},value:{type:Object,default:()=>({})}},data(){return{filterValue:"",client:{x:0,y:0,show:!1},box:!1,type:"",node:{},form:{}}},computed:{styleName(){return{top:setPx(this.client.y-10),left:setPx(this.client.x-10)}},treeProps(){return Object.assign(this.props,{isLeaf:this.leafKey})},menu(){return optVal(this.option.menu,!0)},title(){return this.option.title||"添加"},treeLoad(){return this.option.treeLoad},checkStrictly(){return this.option.checkStrictly},accordion(){return this.option.accordion},multiple(){return this.option.multiple},lazy(){return this.option.lazy},addText(){return this.addFlag?this.menuIcon("addBtn"):this.menuIcon("updateBtn")},addFlag(){return["add","parentAdd"].includes(this.type)},size(){return this.option.size||"small"},props(){return this.option.props||{}},leafKey(){return this.props.leaf||DIC_PROPS.leaf},valueKey(){return this.props.value||DIC_PROPS.value},labelKey(){return this.props.label||DIC_PROPS.label},childrenKey(){return this.props.children||DIC_PROPS.children},nodeKey(){return this.option.nodeKey||DIC_PROPS.nodeKey},defaultExpandAll(){return this.option.defaultExpandAll},defaultExpandedKeys(){return this.option.defaultExpandedKeys},formOption(){return Object.assign(this.option.formOption||{},{submitText:this.addText})}},watch:{filterValue(t){this.$refs.tree.filter(t)},value(t){this.form=t},form(t){this.$emit("input",t),this.$emit("change",t)}},mounted(){document.addEventListener("click",t=>{this.$el.contains(t.target)||(this.client.show=!1)}),this.initFun()},methods:{optVal,menuIcon(t){return optVal(this.option[`${t}Text`],t)},getPermission(t){return typeof this.permission=="function"?this.permission(t,this.node.data||{}):core.isBlank(this.permission[t])?!0:this.permission[t]},initFun(){["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"].forEach(t=>{this[t]=this.$refs.tree[t]})},nodeContextmenu(t,s,n){this.node=n,this.client.x=t.clientX,this.client.y=t.clientY,this.client.show=!0},handleCheckChange(t,s,n){this.$emit("check-change",t,s,n)},handleSubmit(t,s){this.addFlag?this.save(t,s):this.update(t,s)},nodeClick(t,s,n){this.client.show=!1,this.$emit("node-click",t,s,n)},filterNode(t,s){return typeof this.filterNodeMethod=="function"?this.filterNodeMethod(t,s):t?s[this.labelKey].indexOf(t)!==-1:!0},hide(t){const s=()=>{t&&t(),this.node={},this.form={},this.box=!1};typeof this.beforeClose=="function"?this.beforeClose(s,this.type):s()},save(t,s){const n=r=>{r=r||this.form,this.type==="add"?this.$refs.tree.append(r,this.node.data[this.valueKey]):this.type==="parentAdd"&&this.$refs.tree.append(r),this.hide(),s()};this.$emit("save",this.node,t,n,s)},update(t,s){const n=r=>{r=r||this.form;const a=r[this.valueKey];this.node.data=this.form;const{parentList:o,index:l}=this.findData(a);if(o){const c=o.splice(l,1)[0];r[this.childrenKey]=c[this.childrenKey],o.splice(l,0,r)}this.hide(),s()};this.$emit("update",this.node,t,n,s)},rowEdit(){this.type="edit",this.form=this.node.data,this.show()},parentAdd(){this.type="parentAdd",this.show()},rowAdd(){this.type="add",this.show()},show(){const t=()=>{this.client.show=!1,this.box=!0};typeof this.beforeOpen=="function"?this.beforeOpen(t,this.type):t()},rowRemove(){this.client.show=!1;const t=()=>{this.$refs.tree.remove(this.node.data[this.valueKey])};this.$emit("del",this.node,t)},findData(t){let s={};const n=(r,a)=>{r.forEach((o,l)=>{o[this.valueKey]==t&&(s={item:o,index:l,parentList:r,parent:a}),o[this.childrenKey]&&n(o[this.childrenKey],o)})};return n(this.data),s}}},__cssModules$1a={};var __component__$1a=normalizeComponent(__vue2_script$1a,render$15,staticRenderFns$15,!1,__vue2_injectStyles$1a,null,null,null);function __vue2_injectStyles$1a(t){for(let s in __cssModules$1a)this[s]=__cssModules$1a[s]}const FyTree=function(){return __component__$1a.exports}(),getClient$1=t=>{const{region:s,endpoint:n,accessKeyId:r,accessKeySecret:a,bucket:o}=t;return new window.OSS({region:s,endpoint:n,accessKeyId:r,accessKeySecret:a,bucket:o})},getToken$1=(t,s,n)=>{let{scope:r,deadline:a}=n;var o=JSON.stringify({scope:r,deadline:a}),l=base64encode$1(utf16to8$1(o)),c=window.CryptoJS.HmacSHA1(l,s),u=c.toString(window.CryptoJS.enc.Base64),d=t+":"+safe64$1(u)+":"+l;return d};function utf16to8$1(t){var s,n,r,a;for(s="",r=t.length,n=0;n<r;n++)a=t.charCodeAt(n),a>=1&&a<=127?s+=t.charAt(n):a>2047?(s+=String.fromCharCode(224|a>>12&15),s+=String.fromCharCode(128|a>>6&63),s+=String.fromCharCode(128|a>>0&63)):(s+=String.fromCharCode(192|a>>6&31),s+=String.fromCharCode(128|a>>0&63));return s}var base64EncodeChars$1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1);function base64encode$1(t){var s,n,r,a,o,l;for(r=t.length,n=0,s="";n<r;){if(a=t.charCodeAt(n++)&255,n==r){s+=base64EncodeChars$1.charAt(a>>2),s+=base64EncodeChars$1.charAt((a&3)<<4),s+="==";break}if(o=t.charCodeAt(n++),n==r){s+=base64EncodeChars$1.charAt(a>>2),s+=base64EncodeChars$1.charAt((a&3)<<4|(o&240)>>4),s+=base64EncodeChars$1.charAt((o&15)<<2),s+="=";break}l=t.charCodeAt(n++),s+=base64EncodeChars$1.charAt(a>>2),s+=base64EncodeChars$1.charAt((a&3)<<4|(o&240)>>4),s+=base64EncodeChars$1.charAt((o&15)<<2|(l&192)>>6),s+=base64EncodeChars$1.charAt(l&63)}return s}var safe64$1=function(t){return t=t.replace(/\+/g,"-"),t=t.replace(/\//g,"_"),t},render$14=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-ueditor"},[n("div",{ref:"toolbar",staticClass:"fy-editor-toolbar"}),n("div",{ref:"editor",staticClass:"fy-editor"})])},staticRenderFns$14=[];const FyUEditor_vue_vue_type_style_index_0_lang="",__vue2_script$19={name:"FyUEditor",props:{data:{type:Object,default:()=>({})},headers:{type:Object,default:()=>({})},customConfig:{type:Object,default:()=>({})},toolbarConfig:{type:Object,default:()=>({})},propsHttp:{type:Object,default:()=>({})},options:{type:Object,default:()=>({})},ali:{type:Object,default:()=>({})},qiniu:{type:Object,default:()=>({})},oss:String,action:String,disabled:{type:Boolean,default:!1},value:{type:String,default:""},placeholder:{type:String,default:""}},data(){return{editor:null}},computed:{fileName(){return this.propsHttp.fileName||"file"},homeUrl(){return this.propsHttp.home||""},resKey(){return this.propsHttp.res},urlKey(){return this.propsHttp.url||"url"},isQiniuOSS(){return this.oss==="qiniu"},isAliOSS(){return this.oss==="ali"}},watch:{disabled(t){t?this.editor.disable():this.editor.enable()},value(t){t?this.editor.setHtml(t):this.editor.clear()}},mounted(){this.initEdit()},beforeDestroy(){var t;(t=this.editor)==null||t.destroy()},methods:{initEdit(){const t="default",c=this.customConfig,{onFocus:s,onBlur:n,onChange:r}=c,a=R(c,["onFocus","onBlur","onChange"]),o=f({placeholder:this.placeholder,readOnly:this.disabled,MENU_CONF:{uploadImage:{customUpload:u=>v(this,null,function*(){const d=yield this.uploadFile(u);this.editor.dangerouslyInsertHtml(d)})},uploadVideo:{customUpload:u=>v(this,null,function*(){const d=yield this.uploadFile(u);this.editor.dangerouslyInsertHtml(d)})}},onFocus:()=>{this.$emit("focus",this.value)},onBlur:u=>{const d=u.getHtml();this.$emit("blur",d)},onChange:u=>{const d=u.getHtml();this.$emit("input",d)}},a);this.editor=Object.seal(editor.createEditor({selector:this.$refs.editor,config:o,html:this.value,mode:t}));const l=f({},this.toolbarConfig);this.toolbar=editor.createToolbar({editor:this.editor,selector:this.$refs.toolbar,config:l,mode:t})},uploadFile(t){return new Promise((s,n)=>{const r=Object.assign(this.headers,{"Content-Type":"multipart/form-data"});let a={},o;const l=new FormData;let c=this.action;if(l.append(this.fileName,t),Object.keys(this.data).forEach(u=>{l.append(u,this.data[u])}),this.isQiniuOSS){a=this.qiniu;const u=getToken$1(a.AK,a.SK,{scope:a.scope,deadline:new Date().getTime()+a.deadline*3600});l.append("token",u),c="http://up.qiniu.com/"}else this.isAliOSS&&(a=this.ali,o=getClient$1({region:a.region,endpoint:a.endpoint,accessKeyId:a.accessKeyId,accessKeySecret:a.accessKeySecret,bucket:a.bucket}));(()=>this.isAliOSS?o.put(t.name,t):this.$axios.post(c,l,{headers:r}))().then(u=>{let d;this.isAliOSS?d=u:this.isQiniuOSS?(d=u.data,d.key=a.url+d.key):typeof this.resKey=="function"?d=this.resKey(u.data):(d=getAsVal(u.data,this.resKey),d=d[this.urlKey]);const p=this.homeUrl+d;s(p)}).catch(u=>{n(u)})})},getUEContent(){return this.editor.getHtml()}}},__cssModules$19={};var __component__$19=normalizeComponent(__vue2_script$19,render$14,staticRenderFns$14,!1,__vue2_injectStyles$19,null,null,null);function __vue2_injectStyles$19(t){for(let s in __cssModules$19)this[s]=__cssModules$19[s]}const FyUEditor=function(){return __component__$19.exports}();let canvas,ctx;const configDefault={width:200,height:200},config={text:"avueJS",fontFamily:"microsoft yahei",color:"#999",fontSize:16,opacity:100,bottom:10,right:10,ratio:1};function fileToBase64(t,s){const n=new FileReader;n.readAsDataURL(t),n.onload=function(r){s(r.target.result)}}function detailImg(t,s={},n){const{text:r,fontFamily:a,color:o,fontSize:l,opacity:c,bottom:u,right:d,ratio:p}=s;h(),fileToBase64(t,m);function h(){config.text=r||config.text,config.fontFamily=a||config.fontFamily,config.color=o||config.color,config.fontSize=l||config.fontSize,config.opacity=c||config.opacity,config.bottom=u||config.bottom,config.right=d||config.right,config.ratio=p||config.ratio}function m(g){const y=new Image;y.src=g,y.onload=function(){const C=y.width,$=y.height;_(C,$),ctx.drawImage(y,0,0,C,$),x(C,$);const w=document.getElementById("canvas").toDataURL(t.type,config.ratio),E=dataURLtoFile(w,t.name);n&&n(E)}}function _(g,y){canvas=document.getElementById("canvas"),canvas===null&&(canvas=document.createElement("canvas"),canvas.id="canvas",canvas.className="avue-canvas",document.body.appendChild(canvas)),ctx=canvas.getContext("2d"),canvas.width=g,canvas.height=y}function x(g,y){const C=config.text,$=b(C,g,y);ctx.font=`${$.fontSize}px ${config.fontFamily}`,ctx.fillStyle=config.color,ctx.globalAlpha=config.opacity/100,ctx.fillText(C,$.x,$.y)}function b(g,y,C){let $,w;const k=config.fontSize/configDefault.width*y;config.bottom?w=configDefault.height-config.bottom:w=config.top,config.right?$=configDefault.width-config.right:$=config.left,ctx.font=`${config.fontSize}px ${config.fontFamily}`;const M=Number(ctx.measureText(g).width);$=$-M;const I=$/configDefault.width,T=w/configDefault.height;return $=I*y,w=T*C,{x:$,y:w,fontSize:k}}}const getToken=(t,s,n)=>{const r=JSON.stringify(n);window.__ENV__==="development"&&console&&console.log("put_policy = ",r);const a=base64encode(utf16to8(r));window.__ENV__==="development"&&console&&console.log("encoded = ",a);const l=CryptoJS.HmacSHA1(a,s).toString(CryptoJS.enc.Base64);window.__ENV__==="development"&&console&&console.log("encoded_signed=",l);const c=`${t}:${safe64(l)}:${a}`;return window.__ENV__==="development"&&console&&console.log("upload_token=",c),c};function utf16to8(t){let s,n,r;s="";const a=t.length;for(n=0;n<a;n++)r=t.charCodeAt(n),r>=1&&r<=127?s+=t.charAt(n):r>2047?(s+=String.fromCharCode(224|r>>12&15),s+=String.fromCharCode(128|r>>6&63),s+=String.fromCharCode(128|r>>0&63)):(s+=String.fromCharCode(192|r>>6&31),s+=String.fromCharCode(128|r>>0&63));return s}const base64EncodeChars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";function base64encode(t){let s,n,r,a,o,l;for(r=t.length,n=0,s="";n<r;){if(a=t.charCodeAt(n++)&255,n==r){s+=base64EncodeChars.charAt(a>>2),s+=base64EncodeChars.charAt((a&3)<<4),s+="==";break}if(o=t.charCodeAt(n++),n==r){s+=base64EncodeChars.charAt(a>>2),s+=base64EncodeChars.charAt((a&3)<<4|(o&240)>>4),s+=base64EncodeChars.charAt((o&15)<<2),s+="=";break}l=t.charCodeAt(n++),s+=base64EncodeChars.charAt(a>>2),s+=base64EncodeChars.charAt((a&3)<<4|(o&240)>>4),s+=base64EncodeChars.charAt((o&15)<<2|(l&192)>>6),s+=base64EncodeChars.charAt(l&63)}return s}const safe64=function(t){return t=t.replace(/\+/g,"-"),t=t.replace(/\//g,"_"),t},getClient=t=>new OSS(t);var render$13=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{directives:[{name:"loading",rawName:"v-loading.lock",value:t.loading,expression:"loading",modifiers:{lock:!0}}],staticClass:"avue-upload",attrs:{"element-loading-text":t.loadText}},[n("ElUpload",{key:t.reload,class:{"avue-upload--list":t.listType==="picture-img","avue-upload--upload":t.disabled},attrs:{action:t.action,"on-remove":t.handleRemove,accept:t.acceptList,"before-remove":t.beforeRemove,multiple:t.multiple,"on-preview":t.handlePreview,limit:t.limit,"http-request":t.httpUpload,readonly:t.readonly,drag:t.dragFile,"show-file-list":t.isPictureImg?!1:t.showFileList,"list-type":t.listType,"on-change":t.handleFileChange,"on-exceed":t.handleExceed,disabled:t.disabled,"file-list":t.fileList},nativeOn:{click:function(r){return t.handleClick.apply(null,arguments)}},scopedSlots:t._u([{key:"tip",fn:function(){return[n("div",{staticClass:"el-upload__tip",domProps:{innerHTML:t._s(t.tip)}})]},proxy:!0},{key:"file",fn:function(r){var a=r.file;return[t.$scopedSlots.default?t._t("default",null,{file:a}):t.listType==="picture-card"?n("span",[t.isMediaType(a.url)?n(a.type,{tag:"Component",staticClass:"el-upload-list__item-thumbnail",attrs:{src:a.url}}):n("i",{staticClass:"avue-upload__avatar el-icon-document"}),n("span",{staticClass:"el-upload-list__item-actions"},[n("span",{staticClass:"el-upload-list__item-preview"},[n("i",{staticClass:"el-icon-zoom-in",on:{click:function(o){return o.stopPropagation(),t.handlePreview(a)}}})]),n("span",{staticClass:"el-upload-list__item-delete"},[t.disabled?t._e():n("i",{staticClass:"el-icon-delete",on:{click:function(o){return o.stopPropagation(),t.handleRemove(a)}}})])])],1):t.listType==="picture"?n("span",{on:{click:function(o){return o.stopPropagation(),t.handlePreview(a)}}},[n(a.type,{tag:"Component",staticClass:"el-upload-list__item-thumbnail",attrs:{src:a.url}}),n("a",{staticClass:"el-upload-list__item-name"},[n("i",{staticClass:"el-icon-document"}),t._v(" "+t._s(a.name)+" ")]),n("i",{staticClass:"el-icon-close",on:{click:function(o){return o.stopPropagation(),t.handleRemove(a)}}})],1):n("span",{on:{click:function(o){return o.stopPropagation(),t.handlePreview(a)}}},[n("a",{staticClass:"el-upload-list__item-name"},[n("i",{staticClass:"el-icon-document"}),t._v(" "+t._s(a.name)+" ")]),t.disabled?t._e():n("i",{staticClass:"el-icon-close",on:{click:function(o){return o.stopPropagation(),t.handleRemove(a)}}})])]}}],null,!0)},[t.listType==="picture-card"?[n("i",{staticClass:"el-icon-plus"})]:t.listType==="picture-img"?[t.$scopedSlots.default?t._t("default",null,{file:{url:t.imgUrl}}):[t.isMediaType(t.imgUrl)?n(t.isMediaType(t.imgUrl),{tag:"Component",staticClass:"avue-upload__avatar",attrs:{src:t.imgUrl},on:{mouseover:function(r){t.menu=!0}}}):t.imgUrl?n("i",{staticClass:"avue-upload__avatar el-icon-document",on:{mouseover:function(r){t.menu=!0}}}):n("i",{staticClass:"el-icon-plus avue-upload__avatar"}),t.menu?n("div",{staticClass:"el-upload-list__item-actions avue-upload__menu",on:{mouseover:function(r){t.menu=!0},mouseout:function(r){t.menu=!1},click:function(r){r.stopPropagation()}}},[n("i",{staticClass:"el-icon-zoom-in",on:{click:function(r){return r.stopPropagation(),t.handlePreview({url:t.imgUrl})}}}),t.disabled?t._e():n("i",{staticClass:"el-icon-delete",on:{click:function(r){return r.stopPropagation(),t.handleDelete(t.imgUrl)}}})]):t._e()]]:t.dragFile?[n("i",{staticClass:"el-icon-upload"}),n("div",{staticClass:"el-upload__text"},[n("em",[t._v(t._s(t.fileText||"上传"))])])]:[n("ElButton",{attrs:{icon:"el-icon-upload",size:t.size,type:"primary"}},[t._v(" "+t._s(t.fileText||"上传")+" ")])]],2)],1)},staticRenderFns$13=[];const FyUpload_vue_vue_type_style_index_0_lang="";function getFileUrl(t,s=""){return s.match(/(^http:\/\/|^https:\/\/|^\/\/|data:image\/)/)?s:t+s}const __vue2_script$18={name:"FyUpload",mixins:[props,event],props:{qiniu:Object,ali:Object,data:{type:Object,default:()=>({})},showFileList:{type:Boolean,default:!0},fileText:String,fileType:{type:String},oss:{type:String},limit:{type:Number},headers:{type:Object,default:()=>({})},accept:{type:[String,Array],default:""},canvasOption:{type:Object,default:()=>({})},cropperOption:{type:Object,default:()=>({})},fileSize:{type:Number},dragFile:{type:Boolean,default:!1},drag:{type:Boolean,default:!1},loadText:{type:String,default:"Loading..."},action:{type:String,default:""},uploadBefore:Function,uploadAfter:Function,uploadDelete:Function,uploadPreview:Function,uploadError:Function,uploadExceed:Function,httpRequest:Function},data(){return{res:"",loading:!1,menu:!1,reload:Math.random()}},computed:{isObject(){return typeof this.text[0]=="object"},acceptList(){return Array.isArray(this.accept)?this.accept.join(","):this.accept},homeUrl(){return this.propsHttp.home||""},fileName(){return this.propsHttp.fileName||"file"},isAliOss(){return this.oss==="ali"},isQiniuOss(){return this.oss==="qiniu"},isPictureImg(){return this.listType==="picture-img"},imgUrl(){return core.isBlank(this.text)?null:getFileUrl(this.homeUrl,this.text[0])},fileList(){const t=[];return(this.text||[]).forEach((s,n)=>{if(s){const r=this.isObject?s[this.labelKey]:s.substring(s.lastIndexOf("/")+1);let a=this.isObject?s[this.valueKey]:s;a=getFileUrl(this.homeUrl,a),t.push({uid:`${n}`,status:"done",type:this.isMediaType(a),name:r,url:a})}}),t}},mounted(){this.drag&&this.setSort()},methods:{isMediaType(t){return isMediaType(t,this.fileType)},setSort(){if(!window.Sortable){packages$1.logs("Sortable");return}const t=this.$el.querySelectorAll(".avue-upload > ul")[0];window.Sortable.create(t,{animation:100,onEnd:s=>{const n=this.text.splice(s.oldIndex,1)[0];this.text.splice(s.newIndex,0,n),this.reload=Math.random(),this.$nextTick(()=>this.setSort())}})},handleSuccess(t){if(this.isPictureImg)this.text.splice(0,1,t[this.urlKey]);else if(this.isObject){const s={};s[this.labelKey]=t[this.nameKey],s[this.valueKey]=t[this.urlKey],this.text.push(s)}else this.text.push(t[this.urlKey])},handleRemove(t){this.beforeRemove(t).then(()=>{this.delete(t)})},handleError(t){this.uploadError&&this.uploadError(t,this.column)},delete(t){(this.text||[]).forEach((s,n)=>{const r=this.isObject?s[this.valueKey]:s;getFileUrl(this.homeUrl,r)===t.url&&this.text.splice(n,1)})},show(t){this.loading=!1,this.res=t||this.res,this.handleSuccess(this.res)},hide(t){this.loading=!1,t&&this.handleError(t)},handleFileChange(t,s){s.splice(s.length-1,1)},httpUpload(t){if(typeof this.httpRequest=="function"){this.httpRequest(t);return}this.loading=!0;let s=t.file;const n=s.size/1024;if(!core.isBlank(n)&&n>this.fileSize){this.hide("文件太大不符合");return}const r=Object.assign(this.headers,{"Content-Type":"multipart/form-data"});let a={},o={};const l=new FormData,c=()=>{const d=p=>{let h=this.action;for(const _ in this.data)l.append(_,this.data[_]);const m=p||s;if(l.append(this.fileName,m),this.isQiniuOss){if(!window.CryptoJS){packages$1.logs("CryptoJS"),this.hide();return}a=this.qiniu||this.$AVUE.qiniu;const _=getToken(a.AK,a.SK,{scope:a.scope,deadline:new Date().getTime()+a.deadline*3600});l.append("token",_),h=a.bucket}else if(this.isAliOss){if(!window.OSS){packages$1.logs("AliOSS"),this.hide();return}a=this.ali||this.$AVUE.ali,o=getClient(a)}(()=>this.isAliOss?o.put(m.name,m,{headers:this.headers}):this.$axios.post(h,l,{headers:r}))().then(_=>{this.res={},this.isQiniuOss&&(_.data.key=a.url+_.data.key),this.res=getAsVal(this.isAliOss?_:_.data,this.resKey),typeof this.uploadAfter=="function"?this.uploadAfter(this.res,this.show,this.hide,this.column):this.show()}).catch(_=>{this.hide(_)})};typeof this.uploadBefore=="function"?this.uploadBefore(s,d,this.hide,this.column):d()};if(isMediaType(s.name)!=="img"){c();return}const u=()=>{core.isBlank(this.canvasOption)?c():detailImg(s,this.canvasOption,d=>{s=d,c()})};core.isBlank(this.cropperOption)?u():fileToBase64(s,d=>{const p=Object.assign(this.cropperOption,{img:d,type:"file",callback:h=>{s=h,u()},cancel:()=>{this.loading=!1}});this.$ImageCropper(p)})},handleExceed(t,s){this.uploadExceed&&this.uploadExceed(this.limit,t,s,this.column)},handlePreview(t){const s=()=>{const n=this.fileList.findIndex(r=>r.url===t.url);this.$ImagePreview(this.fileList,n)};typeof this.uploadPreview=="function"?this.uploadPreview(t,this.column,s):s()},handleDelete(t){this.beforeRemove(t).then(()=>{this.text=[],this.menu=!1})},beforeRemove(t){return typeof this.uploadDelete=="function"?this.uploadDelete(t,this.column):Promise.resolve()}}},__cssModules$18={};var __component__$18=normalizeComponent(__vue2_script$18,render$13,staticRenderFns$13,!1,__vue2_injectStyles$18,null,null,null);function __vue2_injectStyles$18(t){for(let s in __cssModules$18)this[s]=__cssModules$18[s]}const FyUpload=function(){return __component__$18.exports}();var render$12=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("ElSteps",{staticClass:"guide-steps",attrs:{"align-center":""}},t._l(t.steps,function(r,a){return n("ElStep",{key:r.label,class:[{"current important":t.value===a,disabled:!t.available(a),available:!t.ready[a]&&t.available(a)}],attrs:{status:t.ready[a]?"success":"",title:r.label},nativeOn:{click:function(o){return t.activeStep(a)}}})}),1)},staticRenderFns$12=[];const GuideSteps_vue_vue_type_style_index_0_lang="",__vue2_script$17={name:"GuideSteps",props:{value:{type:Number,default:0},steps:{type:Array,default:()=>[]}},data(){return{ready:[]}},watch:{steps:{immediate:!0,deep:!0,handler(t){this.ready=t!=null&&t.length?t.map(()=>!1):[]}}},methods:{activeStep(t){t!==0&&!this.available(t)||this.$emit("input",t)},setReady(t,s){t<this.ready.length&&this.$set(this.ready,t,s)},available(t){let s=!0;if(t>0&&t<this.ready.length){for(let n=0;n<t;n++)if(!this.ready[n]){s=!1;break}}return s}}},__cssModules$17={};var __component__$17=normalizeComponent(__vue2_script$17,render$12,staticRenderFns$12,!1,__vue2_injectStyles$17,null,null,null);function __vue2_injectStyles$17(t){for(let s in __cssModules$17)this[s]=__cssModules$17[s]}const GuideSteps=function(){return __component__$17.exports}();var render$11=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-crud__menu"},[t.optVal(t.crud.tableOption.menuLeft,!0)?n("div",{staticClass:"avue-crud__left"},[t.optVal(t.crud.tableOption.addBtn,t.config.addBtn)?n("ElButton",{directives:[{name:"permission",rawName:"v-permission",value:t.crud.getPermission("addBtn"),expression:"crud.getPermission('addBtn')"}],attrs:{type:"primary",icon:t.crud.getBtnIcon("addBtn"),size:t.crud.isMediumSize},on:{click:t.crud.rowAdd}},[t.crud.isIconMenu?t._e():[t._v(" "+t._s(t.crud.menuIcon("addBtn"))+" ")]],2):t._e(),t.optVal(t.crud.tableOption.addRowBtn,t.config.addRowBtn)?n("ElButton",{directives:[{name:"permission",rawName:"v-permission",value:t.crud.getPermission("addRowBtn"),expression:"crud.getPermission('addRowBtn')"}],attrs:{type:"primary",icon:t.crud.getBtnIcon("addBtn"),size:t.crud.isMediumSize},on:{click:t.crud.rowCellAdd}},[t.crud.isIconMenu?t._e():[t._v(" "+t._s(t.crud.menuIcon("addBtn"))+" ")]],2):t._e(),t._t("menuLeft",null,{size:t.crud.isMediumSize})],2):t._e(),t.optVal(t.crud.tableOption.menuRight,!0)?n("div",{staticClass:"avue-crud__right"},[t.optVal(t.crud.tableOption.dateBtn,t.config.dateBtn)?n("FyDate",{staticStyle:{display:"inline-block","margin-right":"20px"},attrs:{type:"datetimerange","value-format":"yyyy-MM-dd HH:mm:ss",format:"yyyy-MM-dd HH:mm:ss","picker-options":t.pickerOptions,size:t.crud.isMediumSize},on:{change:t.dateChange}}):t._e(),t._t("menuRight",null,{size:t.crud.isMediumSize}),t.optVal(t.crud.tableOption.excelBtn,t.config.excelBtn)?n("ElButton",{directives:[{name:"permission",rawName:"v-permission",value:t.crud.getPermission("excelBtn"),expression:"crud.getPermission('excelBtn')"}],attrs:{icon:t.crud.getBtnIcon("excelBtn"),circle:"",size:t.crud.isMediumSize},on:{click:t.rowExcel}}):t._e(),t.optVal(t.crud.tableOption.printBtn,t.config.printBtn)?n("ElButton",{directives:[{name:"permission",rawName:"v-permission",value:t.crud.getPermission("printBtn"),expression:"crud.getPermission('printBtn')"}],attrs:{icon:t.crud.getBtnIcon("printBtn"),circle:"",size:t.crud.isMediumSize},on:{click:t.rowPrint}}):t._e(),t.optVal(t.crud.tableOption.refreshBtn,t.config.refreshBtn)?n("ElButton",{directives:[{name:"permission",rawName:"v-permission",value:t.crud.getPermission("refreshBtn"),expression:"crud.getPermission('refreshBtn')"}],attrs:{icon:t.crud.getBtnIcon("refreshBtn"),circle:"",size:t.crud.isMediumSize},on:{click:t.crud.refreshChange}}):t._e(),t.optVal(t.crud.tableOption.columnBtn,t.config.columnBtn)?n("ElButton",{directives:[{name:"permission",rawName:"v-permission",value:t.crud.getPermission("columnBtn"),expression:"crud.getPermission('columnBtn')"}],attrs:{icon:t.crud.getBtnIcon("columnBtn"),circle:"",size:t.crud.isMediumSize},on:{click:function(r){return t.crud.$refs.dialogColumn.handleShow()}}}):t._e(),(t.crud.$refs.headerSearch||{}).searchFlag&&t.optVal(t.crud.tableOption.searchShowBtn,!0)?n("ElButton",{attrs:{icon:t.crud.getBtnIcon("searchBtn"),circle:"",size:t.crud.isMediumSize},on:{click:function(r){return t.crud.$refs.headerSearch.handleSearchShow()}}}):t._e(),t.optVal(t.crud.tableOption.filterBtn,t.config.filterBtn)?n("ElButton",{directives:[{name:"permission",rawName:"v-permission",value:t.crud.getPermission("filterBtn"),expression:"crud.getPermission('filterBtn')"}],attrs:{icon:t.crud.getBtnIcon("filterBtn"),circle:"",size:t.crud.isMediumSize},on:{click:function(r){return t.crud.$refs.dialogFilter.handleShow()}}}):t._e()],2):t._e()])},staticRenderFns$11=[];const __vue2_script$16={name:"HeaderMenu",directives:{permission},inject:["crud"],data(){return{dateCreate:!1,pickerOptions:{shortcuts:[{text:"今日",onClick(t){const s=new Date,n=new Date;n.setTime(n.getTime()),t.$emit("pick",[n,s])}},{text:"昨日",onClick(t){const s=new Date,n=new Date;n.setTime(n.getTime()-3600*1e3*24*1),t.$emit("pick",[n,s])}},{text:"最近一周",onClick(t){const s=new Date,n=new Date;n.setTime(n.getTime()-3600*1e3*24*7),t.$emit("pick",[n,s])}},{text:"最近一个月",onClick(t){const s=new Date,n=new Date;n.setTime(n.getTime()-3600*1e3*24*30),t.$emit("pick",[n,s])}},{text:"最近三个月",onClick(t){const s=new Date,n=new Date;n.setTime(n.getTime()-3600*1e3*24*90),t.$emit("pick",[n,s])}}]},config:config$1}},created(){this.initFun()},methods:{optVal,dateChange(t){this.dateCreate?this.crud.$emit("date-change",t):this.dateCreate=!0},initFun(){this.crud.rowExcel=this.rowExcel,this.crud.rowPrint=this.rowPrint},rowExcel(){this.crud.$refs.dialogExcel.handleShow()},rowPrint(){this.$Print(this.crud.$refs.table)}}},__cssModules$16={};var __component__$16=normalizeComponent(__vue2_script$16,render$11,staticRenderFns$11,!1,__vue2_injectStyles$16,null,null,null);function __vue2_injectStyles$16(t){for(let s in __cssModules$16)this[s]=__cssModules$16[s]}const HeaderMenu=function(){return __component__$16.exports}();var render$10=function(){var t=this,s=t.$createElement,n=t._self._c||s;return t.searchFlag?n("ElCard",{directives:[{name:"show",rawName:"v-show",value:t.searchShow&&t.searchFlag,expression:"searchShow && searchFlag"}],staticClass:"avue-crud__search",attrs:{shadow:t.crud.isCard}},[t._t("search",null,{row:t.searchForm,search:t.searchForm,size:t.crud.controlSize}),n("FyForm",{ref:"form",attrs:{option:t.option},on:{submit:t.searchChange,"reset-change":t.resetChange},scopedSlots:t._u([{key:"menuForm",fn:function(r){return[t._t("searchMenu",null,null,Object.assign(r,{search:t.searchForm,row:t.searchForm})),t.isSearchIcon?[t.show===!1?n("ElButton",{attrs:{type:"text",icon:"el-icon-arrow-down"},on:{click:function(a){t.show=!0}}},[t._v(" 展 开 ")]):t._e(),t.show===!0?n("ElButton",{attrs:{type:"text",icon:"el-icon-arrow-up"},on:{click:function(a){t.show=!1}}},[t._v(" 收 缩 ")]):t._e()]:t._e()]}},t._l(t.crud.searchSlot,function(r){return{key:t.getSlotName(r),fn:function(a){return[t._t(r,null,null,Object.assign(a,{search:t.searchForm,row:t.searchForm}))]}}})],null,!0),model:{value:t.searchForm,callback:function(r){t.searchForm=r},expression:"searchForm"}})],2):t._e()},staticRenderFns$10=[];const __vue2_script$15={name:"HeaderSearch",mixins:[slot],inject:["crud"],props:{search:Object},data(){return{show:!1,searchIndex:2,searchShow:!0}},computed:{searchForm:{get(){return this.crud.search},set(t){this.crud.$emit("update:search",t)}},option(){const t=this.crud.option,s=(r=[])=>{r=deepClone(r);const a=[];let o=0;return r=r.sort((l,c)=>(c.searchOrder||0)-(l.searchOrder||0)),r.forEach(l=>{if(l.search){const c=o<this.searchIndex,u={};Object.keys(l).forEach(d=>{const p="search";if(d!="searchProp"&&d.includes(p)){let h=d.replace(p,"");if(h.length==0)return;h=h.replace(h[0],h[0].toLowerCase()),u[h]=l[d]}}),l=Object.assign(l,u,{type:getSearchType(l),detail:!1,dicFlag:l.cascader?!0:optVal(l.dicFlag,!1),span:l.searchSpan||t.searchSpan||config$1.searchSpan,control:l.searchControl,gutter:l.searchGutter||t.searchGutter||config$1.searchGutter,labelWidth:l.searchLabelWidth||t.searchLabelWidth||config$1.searchLabelWidth,labelPosition:l.searchLabelPosition||t.searchLabelPosition,size:l.searchSize||t.searchSize,value:l.searchValue,rules:l.searchRules,row:l.searchRow,bind:l.searchBin,disabled:l.searchDisabled,readonly:l.searchReadonly,display:this.isSearchIcon?this.show?!0:c:!0}),a.push(l),o=o+1}}),a};return(r=>{let a=deepClone(r);return a.column=s(this.crud.propOption),a=Object.assign(a,{rowKey:t.searchRowKey||"null",tabs:!1,group:!1,printBtn:!1,mockBtn:!1,filterDic:t.searchFilterDic,filterNull:t.searchFilterNull,filterParam:t.searchFilterParam,enter:t.searchEnter,size:t.searchSize,submitText:t.searchBtnText||"搜 索",submitBtn:optVal(t.searchBtn,config$1.searchSubBtn),submitIcon:this.crud.getBtnIcon("searchBtn"),emptyText:t.emptyBtnText||"清 空",emptyBtn:optVal(t.emptyBtn,config$1.emptyBtn),emptyIcon:this.crud.getBtnIcon("emptyBtn"),menuSpan:(()=>this.show||!this.isSearchIcon||t.searchMenuSpan<6?t.searchMenuSpan:6)(),menuPosition:t.searchMenuPosition||"center",dicFlag:!1,dicData:this.crud.DIC}),a})(t)},isSearchIcon(){return optVal(this.crud.option.searchIcon,this.$AVUE.searchIcon)&&this.searchLen>this.searchIndex},searchLen(){let t=0;return this.crud.propOption.forEach(s=>{s.search&&t++}),t},searchFlag(){return!!this.crud.$scopedSlots.search||this.searchLen!==0}},watch:{"crud.propOption":{handler(){this.dataFormat()},deep:!0},show(){this.crud.getTableHeight()},searchShow(){this.crud.getTableHeight()},option:{immediate:!0,deep:!0,handler(){var t;this.searchIndex=((t=this.option)==null?void 0:t.searchIndex)||2}}},created(){this.initFun(),this.dataFormat()},methods:{initFun(){["searchReset","searchChange"].forEach(t=>this.crud[t]=this[t])},getSlotName(t){return t.replace("Search","")},searchChange(t,s){t=filterParams(t),this.crud.propOption.forEach(n=>{n.searchProp&&(t[n.searchProp]=t[n.prop],delete t[n.prop])}),this.crud.$emit("search-change",t,s)},resetChange(){this.crud.$emit("search-reset",this.searchForm)},searchReset(){this.$refs.form.resetForm()},handleSearchShow(){this.searchShow=!this.searchShow},dataFormat(){const t=this.crud.option;this.searchShow=optVal(t.searchShow,config$1.searchShow)}}},__cssModules$15={};var __component__$15=normalizeComponent(__vue2_script$15,render$10,staticRenderFns$10,!1,__vue2_injectStyles$15,null,null,null);function __vue2_injectStyles$15(t){for(let s in __cssModules$15)this[s]=__cssModules$15[s]}const HeaderSearch=function(){return __component__$15.exports}();var render$$=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("pre",{staticClass:"highlight-js"},[n("code",{class:t.className,domProps:{innerHTML:t._s(t.highlighted.value)}})])},staticRenderFns$$=[];const HighlightJS_vue_vue_type_style_index_0_lang="",__vue2_script$14={name:"HighlightJS",props:{language:String,code:String,autodetect:Boolean},data:function(){return{detectedLanguage:""}},computed:{className(){return this.detectedLanguage?`hljs ${this.detectedLanguage}`:""},highlighted(){if(!this.language&&!hljs.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`),{language:"",value:core.escapeHtml(this.code)};let t={};return!this.language||this.autodetect?t=hljs.highlightAuto(this.code):t=hljs.highlight(this.code,{language:this.language,ignoreIllegals:this.ignoreIllegals}),t},ignoreIllegals(){return!0}},watch:{"highlighted.language":{immediate:!0,handler(t){this.detectedLanguage=t}}}},__cssModules$14={};var __component__$14=normalizeComponent(__vue2_script$14,render$$,staticRenderFns$$,!1,__vue2_injectStyles$14,null,null,null);function __vue2_injectStyles$14(t){for(let s in __cssModules$14)this[s]=__cssModules$14[s]}const HighlightJS=function(){return __component__$14.exports}();var render$_=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{class:["icon-card","flex-row",t.iconBg]},[n("div",{staticClass:"card-icon_bg"},[n("i",{class:["card-icon",t.icon]})]),n("div",{staticClass:"flex-item"},[n("p",{staticClass:"icon-card_title"},[t._t("default")],2),n("div",{staticClass:"icon-card_num"},[n("span",{staticClass:"icon-card_color",on:{click:t.toDetails}},[t._v(t._s(t.number))]),t._t("nuit")],2)])])},staticRenderFns$_=[];const IconCard_vue_vue_type_style_index_0_lang="",__vue2_script$13={name:"IconCard",props:{iconBg:{type:String,default:"blue"},icon:{type:String,default:"el-icon-s-custom"},path:String,number:Number},methods:{toDetails(){this.$router.push(this.path)}}},__cssModules$13={};var __component__$13=normalizeComponent(__vue2_script$13,render$_,staticRenderFns$_,!1,__vue2_injectStyles$13,null,null,null);function __vue2_injectStyles$13(t){for(let s in __cssModules$13)this[s]=__cssModules$13[s]}const IconCard=function(){return __component__$13.exports}();var render$Z=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("span",{staticClass:"avue-icon",class:{"avue-icon--small":t.small}},[t.text.includes("#")?n("svg",{attrs:{"aria-hidden":"true"}},[n("use",{attrs:{"xlink:href":t.text}})]):n("i",{class:t.text})])},staticRenderFns$Z=[];const IconTemp_vue_vue_type_style_index_0_lang="",__vue2_script$12={name:"IconTemp",props:{small:Boolean,text:{type:String,default:""}}},__cssModules$12={};var __component__$12=normalizeComponent(__vue2_script$12,render$Z,staticRenderFns$Z,!1,__vue2_injectStyles$12,null,null,null);function __vue2_injectStyles$12(t){for(let s in __cssModules$12)this[s]=__cssModules$12[s]}const IconTemp=function(){return __component__$12.exports}();var render$Y=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("ElementDialog",t._g(t._b({attrs:{"custom-class":"iframe-window",embed:"",height:"60vh",title:t.title,"show-full-screen":"",visible:t.visible},scopedSlots:t._u([{key:"default",fn:function(){return[n("iframe",{staticClass:"iframe-window-iframe",attrs:{src:t.url,frameborder:"0"}})]},proxy:!0}])},"ElementDialog",t.$attrs,!1),t.$listeners))},staticRenderFns$Y=[];const IframeWindow_vue_vue_type_style_index_0_lang="",__vue2_script$11={name:"IframeWindow",props:{title:{type:String,default:"iframe窗口"},url:{type:String,default:"http://192.168.0.107:31221/wallboard"},visible:Boolean}},__cssModules$11={};var __component__$11=normalizeComponent(__vue2_script$11,render$Y,staticRenderFns$Y,!1,__vue2_injectStyles$11,null,null,null);function __vue2_injectStyles$11(t){for(let s in __cssModules$11)this[s]=__cssModules$11[s]}const IframeWindow=function(){return __component__$11.exports}();var render$X=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("ElementDialog",{staticClass:"avue-cropper",attrs:{visible:t.visible,"before-close":t.cancel,title:"图片剪裁","close-on-press-escape":!1,"close-on-click-modal":!1,"modal-append-to-body":t.$AVUE.modalAppendToBody,"append-to-body":t.$AVUE.appendToBody,width:"1000px"},on:{"update:visible":function(r){t.visible=r}},scopedSlots:t._u([{key:"footer",fn:function(){return[n("ElButton",{attrs:{size:"small",type:"primary"},on:{click:t.submit}},[t._v(" 确 定 ")]),n("ElButton",{attrs:{size:"small"},on:{click:function(r){return t.cancel()}}},[t._v(" 取 消 ")])]},proxy:!0}])},[n("div",{staticClass:"cropper-content"},[n("div",{staticClass:"cropper-box"},[n("div",{staticClass:"cropper"},[n("VueCropper",{ref:"cropper",attrs:{img:t.option.img,"output-size":t.option.outputSize,"output-type":t.option.outputType,info:t.option.info,"can-scale":t.option.canScale,"auto-crop":t.option.autoCrop,"auto-crop-width":t.option.autoCropWidth,"auto-crop-height":t.option.autoCropHeight,fixed:t.option.fixed,"fixed-number":t.option.fixedNumber,full:t.option.full,"fixed-box":t.option.fixedBox,"can-move":t.option.canMove,"can-move-box":t.option.canMoveBox,original:t.option.original,"center-box":t.option.centerBox,height:t.option.height,"info-true":t.option.infoTrue,"max-img-size":t.option.maxImgSize,enlarge:t.option.enlarge,mode:t.option.mode},on:{realTime:t.realTime}})],1),n("div",{staticClass:"footer-btn"},[n("ElButton",{attrs:{size:"mini",type:"danger",icon:"el-icon-zoom-in"},on:{click:function(r){return t.changeScale(1)}}}),n("ElButton",{attrs:{size:"mini",type:"danger",icon:"el-icon-zoom-out"},on:{click:function(r){return t.changeScale(-1)}}}),n("ElButton",{attrs:{size:"mini",icon:"el-icon-back",type:"danger"},on:{click:t.rotateLeft}}),n("ElButton",{attrs:{size:"mini",type:"danger",icon:"el-icon-right"},on:{click:t.rotateRight}})],1)]),n("div",{staticClass:"show-preview"},[n("div",{staticClass:"preview",style:t.previews.div},[n("img",{style:t.previews.img,attrs:{src:t.previews.url,alt:""}})])])])])},staticRenderFns$X=[];const ImageCropper_vue_vue_type_style_index_0_lang="",ImageCropper={name:"ImageCropper",components:{VueCropper:vueCropper.VueCropper},data(){return{visible:!1,previews:{},option:{}}},methods:{show(){this.visible=!0},changeScale(t){t=t||1,this.$refs.cropper.changeScale(t)},rotateLeft(){this.$refs.cropper.rotateLeft()},rotateRight(){this.$refs.cropper.rotateRight()},realTime(t){this.previews=t},submit(){this.visible=!1,this.$refs.cropper.getCropData(t=>{let s=t;this.option.type==="file"&&(s=dataURLtoFile(t,`${new Date().getTime()}.${this.option.outputType}`)),this.option.callback&&this.option.callback(s)})},cancel(t){t&&t(),this.visible=!1,this.option.cancel&&this.option.cancel(),typeof this.option.beforeClose=="function"&&this.option.beforeClose(),this.$destroy(),this.$el.remove()}}},imageCropper=(t={})=>{const s=Vue.extend(ImageCropper),n=f({outputSize:1,outputType:"jpeg",info:!0,canScale:!0,autoCrop:!0,fixed:!1,full:!1,fixedBox:!1,canMove:!0,canMoveBox:!0,original:!1,centerBox:!1,height:!0,infoTrue:!1,enlarge:1},t),r=new s({data:{option:n}}).$mount();return document.body.appendChild(r.$el),r.show(),r};ImageCropper.imageCropper=imageCropper;const __vue2_script$10=ImageCropper,__cssModules$10={};var __component__$10=normalizeComponent(__vue2_script$10,render$X,staticRenderFns$X,!1,__vue2_injectStyles$10,null,null,null);function __vue2_injectStyles$10(t){for(let s in __cssModules$10)this[s]=__cssModules$10[s]}const ImageCropper$1=function(){return __component__$10.exports}();var render$W=function(){var t=this,s=t.$createElement,n=t._self._c||s;return t.isShow?n("div",{staticClass:"avue-image-preview"},[t.ops.modal?n("div",{staticClass:"avue-image-preview__mask",on:{click:t.close}}):t._e(),n("span",{staticClass:"el-image-viewer__btn el-image-viewer__close",on:{click:t.close}},[n("i",{staticClass:"el-icon-circle-close"})]),t.isRrrow?n("span",{staticClass:"el-image-viewer__btn el-image-viewer__prev",on:{click:function(r){return t.handlePrev()}}},[n("i",{staticClass:"el-icon-arrow-left"})]):t._e(),t.isRrrow?n("span",{staticClass:"el-image-viewer__btn el-image-viewer__next",on:{click:function(r){return t.handleNext()}}},[n("i",{staticClass:"el-icon-arrow-right"})]):t._e(),n("div",{ref:"box",staticClass:"avue-image-preview__box"},[n("ElCarousel",{ref:"carousel",attrs:{"show-indicators":!1,"initial-index":t.index,"initial-swipe":t.index,interval:0,arrow:"never","indicator-position":"none"},on:{change:t.handleChange}},t._l(t.datas,function(r,a){return n("ElCarouselItem",{key:a,nativeOn:{click:function(o){if(o.target!==o.currentTarget)return null;t.ops.closeOnClickModal&&t.close()}}},[t.isMediaType(r)?n(t.isMediaType(r),{ref:"item",refInFor:!0,tag:"Component",style:[t.styleName,t.styleBoxName],attrs:{id:`avue-image-preview__${a}`,src:r.url,controls:"controls",ondragstart:"return false"},on:{click:function(o){return t.handleClick(r,a)},mousedown:t.move}}):n("div",{staticClass:"avue-image-preview__file",attrs:{id:`avue-image-preview__${a}`},on:{click:function(o){return t.handleClick(r,a,!0)}}},[n("span",[n("i",{staticClass:"el-icon-document"}),n("p",[t._v(t._s(r.name||t.getName(r.url)))])])])],1)}),1)],1),n("div",{staticClass:"el-image-viewer__btn el-image-viewer__actions"},[n("div",{staticClass:"el-image-viewer__actions__inner"},[n("i",{staticClass:"el-icon-zoom-out",on:{click:t.subScale}}),n("i",{staticClass:"el-icon-zoom-in",on:{click:t.addScale}}),n("i",{staticClass:"el-image-viewer__actions__divider"}),n("i",{staticClass:"el-icon-printer",on:{click:t.handlePrint}}),n("i",{staticClass:"el-image-viewer__actions__divider"}),n("i",{staticClass:"el-icon-refresh-left",on:{click:function(r){t.rotate=t.rotate-90}}}),n("i",{staticClass:"el-icon-refresh-right",on:{click:function(r){t.rotate=t.rotate+90}}})])])]):t._e()},staticRenderFns$W=[];const ImagePreview_vue_vue_type_style_index_0_lang="",ImagePreview={name:"ImagePreview",data(){return{left:0,top:0,scale:1,datas:[],rotate:0,isShow:!1,index:0,ops:{}}},computed:{styleBoxName(){return{marginLeft:core.setPx(this.left),marginTop:core.setPx(this.top)}},styleName(){return{transform:`scale(${this.scale}) rotate(${this.rotate}deg)`,maxWidth:"100%",maxHeight:"100%"}},isRrrow(){return this.datas.length>1}},methods:{getName(t){return t.substring(t.lastIndexOf("/")+1)},handlePrint(){this.$Print(`#avue-image-preview__${this.index}`)},handlePrev(){this.$refs.carousel.prev(),this.index=this.$refs.carousel.activeIndex,this.stopItem()},handleNext(){this.$refs.carousel.next(),this.index=this.$refs.carousel.activeIndex,this.stopItem()},stopItem(){this.left=0,this.top=0,this.$refs.item.forEach(t=>{t.pause&&t.pause()})},isMediaType(t){return isMediaType(t.url,t.type)},subScale(){this.scale!==.2&&(this.scale=parseFloat((this.scale-.2).toFixed(2)))},addScale(){this.scale=parseFloat((this.scale+.2).toFixed(2))},handleChange(){this.scale=1,this.rotate=0},move(t){let s=t.clientX,n=t.clientY;const r=2;document.onmousemove=a=>{const o=a.clientX-s,l=a.clientY-n;s=a.clientX,n=a.clientY,this.left=this.left+o*r,this.top=this.top+l*r},document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null}},handleClick(t,s,n=!1){typeof this.ops.click=="function"?this.ops.click(t,s):n&&window.open(t.url)},close(){this.isShow=!1,typeof this.ops.beforeClose=="function"&&this.ops.beforeClose(this.datas,this.index),this.$destroy(),this.$el.remove()}}},imagePreview=(t=[],s=0,n={})=>{const r=Vue.extend(ImagePreview),a={datas:t,index:s,ops:f({closeOnClickModal:!1,beforeClose:null,click:null,modal:!0},n)},o=new r({data:a}).$mount();return document.body.appendChild(o.$el),o.isShow=!0,o};ImagePreview.imagePreview=imagePreview;const __vue2_script$$=ImagePreview,__cssModules$$={};var __component__$$=normalizeComponent(__vue2_script$$,render$W,staticRenderFns$W,!1,__vue2_injectStyles$$,null,null,null);function __vue2_injectStyles$$(t){for(let s in __cssModules$$)this[s]=__cssModules$$[s]}const ImagePreview$1=function(){return __component__$$.exports}();var render$V=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{directives:[{name:"show",rawName:"v-show",value:!t.lazy,expression:"!lazy"}],ref:"wrapper",staticClass:"image-viewer"},[t._t("default",function(){return t._l(t.images,function(r){return n("img",{key:r.src,staticClass:"image-item",style:{backgroundImage:`url('${r.src}')`},attrs:{"data-src":r.src,alt:r.alt}})})})],2)},staticRenderFns$V=[];const ImageViewer_vue_vue_type_style_index_0_lang="",__vue2_script$_={name:"ImageViewer",props:{images:Array,url:{type:String,default:"data-src"},lazy:Boolean},mounted(){this.lazy||this.init({container:this.$refs.wrapper,options:{navbar:!1,backdrop:"static",url:this.url}})},updated(){var t;this.lazy||(t=this.gallery)==null||t.update()},beforeDestroy(){this.lazy||this.gallery.destroy()},methods:{init({container:t,options:s}){this.gallery=new Viewer(t,s)},show({container:t,options:s,index:n}={}){t=t||this.$refs.wrapper,s=s||{navbar:!1,backdrop:"static",url:this.url,loop:!1,initialViewIndex:n||0,hidden:()=>{this.gallery.destroy(),this.gallery=null}},this.gallery||(this.init({container:t,options:s}),this.gallery.show())}}},__cssModules$_={};var __component__$_=normalizeComponent(__vue2_script$_,render$V,staticRenderFns$V,!1,__vue2_injectStyles$_,null,null,null);function __vue2_injectStyles$_(t){for(let s in __cssModules$_)this[s]=__cssModules$_[s]}const ImageViewer=function(){return __component__$_.exports}();var render$U=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{class:["input-number","el-input-number",t.inputNumberSize?`el-input-number--${t.inputNumberSize}`:"",{"is-disabled":t.inputNumberDisabled,"is-without-controls":!t.controls,"is-controls-right":t.controlsAtRight}],on:{dragstart:function(r){r.preventDefault()}}},[t.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:t.decrease,expression:"decrease"}],staticClass:"el-input-number__decrease",class:{"is-disabled":t.minDisabled},attrs:{role:"button"},on:{keydown:function(r){return!r.type.indexOf("key")&&t._k(r.keyCode,"enter",13,r.key,"Enter")?null:t.decrease.apply(null,arguments)}}},[n("i",{class:`el-icon-${t.controlsAtRight?"arrow-down":"minus"}`})]):t._e(),t.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:t.increase,expression:"increase"}],staticClass:"el-input-number__increase",class:{"is-disabled":t.maxDisabled},attrs:{role:"button"},on:{keydown:function(r){return!r.type.indexOf("key")&&t._k(r.keyCode,"enter",13,r.key,"Enter")?null:t.increase.apply(null,arguments)}}},[n("i",{class:`el-icon-${t.controlsAtRight?"arrow-up":"plus"}`})]):t._e(),n("ElInput",{ref:"input",attrs:{value:t.displayValue,placeholder:t.placeholder,disabled:t.inputNumberDisabled,size:t.inputNumberSize,max:t.max,"prefix-icon":t.prefixIcon,"suffix-icon":t.suffixIcon,min:t.min,name:t.name,label:t.label},on:{blur:t.handleBlur,focus:t.handleFocus,input:t.handleInput,change:t.handleInputChange},nativeOn:{keydown:[function(r){return!r.type.indexOf("key")&&t._k(r.keyCode,"up",38,r.key,["Up","ArrowUp"])?null:(r.preventDefault(),t.increase.apply(null,arguments))},function(r){return!r.type.indexOf("key")&&t._k(r.keyCode,"down",40,r.key,["Down","ArrowDown"])?null:(r.preventDefault(),t.decrease.apply(null,arguments))}]},scopedSlots:t._u([{key:"append",fn:function(){return[t._t("append")]},proxy:!0},{key:"prefix",fn:function(){return[t._t("prefix")]},proxy:!0},{key:"prepend",fn:function(){return[t._t("prepend")]},proxy:!0},{key:"suffix",fn:function(){return[t._t("suffix")]},proxy:!0}],null,!0)})],1)},staticRenderFns$U=[];const InputNumber_vue_vue_type_style_index_0_lang="",__vue2_script$Z={name:"InputNumber",directives:{repeatClick:RepeatClick},mixins:[Focus("input"),inputNumberMixin],inject:{elForm:{default:""},elFormItem:{default:""}},data(){return{currentValue:0,userInput:null}},computed:{minDisabled(){return this._decrease(this.value,this.step)<this.min},maxDisabled(){return this._increase(this.value,this.step)>this.max},numPrecision(){const{value:t,step:s,getPrecision:n,precision:r}=this,a=n(s);return r!==void 0?(a>r&&console.warn("[Element Warn][InputNumber]precision should not be less than the decimal places of step"),r):Math.max(n(t),a)},controlsAtRight(){return this.controls&&this.controlsPosition==="right"},_elFormItemSize(){return(this.elFormItem||{}).elFormItemSize},inputNumberSize(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputNumberDisabled(){return this.disabled||!!(this.elForm||{}).disabled},displayValue(){if(this.userInput!==null)return this.userInput;let t=this.currentValue;if(typeof t=="number"){if(this.stepStrictly){const s=this.getPrecision(this.step),n=Math.pow(10,s);t=Math.round(t/this.step)*n*this.step/n}this.precision!==void 0&&(t=t.toFixed(this.precision))}return t}},watch:{value:{immediate:!0,handler(t){let s=t===void 0?t:Number(t);if(s!==void 0){if(isNaN(s))return;if(this.stepStrictly){const n=this.getPrecision(this.step),r=Math.pow(10,n);s=Math.round(s/this.step)*r*this.step/r}this.precision!==void 0&&(s=this.toPrecision(s,this.precision))}s>=this.max&&(s=this.max),s<=this.min&&(s=this.min),this.currentValue=s,this.userInput=null,this.$emit("input",s)}}},mounted(){const t=this.$refs.input.$refs.input;t.setAttribute("role","spinbutton"),t.setAttribute("aria-valuemax",this.max),t.setAttribute("aria-valuemin",this.min),t.setAttribute("aria-valuenow",this.currentValue),t.setAttribute("aria-disabled",this.inputNumberDisabled)},updated(){if(!this.$refs||!this.$refs.input)return;this.$refs.input.$refs.input.setAttribute("aria-valuenow",this.currentValue)},methods:{toPrecision(t,s){return s===void 0&&(s=this.numPrecision),parseFloat(Math.round(t*Math.pow(10,s))/Math.pow(10,s))},getPrecision(t){if(t===void 0)return 0;const s=t.toString(),n=s.indexOf(".");let r=0;return n!==-1&&(r=s.length-n-1),r},_increase(t,s){if(typeof t!="number"&&t!==void 0)return this.currentValue;const n=Math.pow(10,this.numPrecision);return this.toPrecision((n*t+n*s)/n)},_decrease(t,s){if(typeof t!="number"&&t!==void 0)return this.currentValue;const n=Math.pow(10,this.numPrecision);return this.toPrecision((n*t-n*s)/n)},increase(){if(this.inputNumberDisabled||this.maxDisabled)return;const t=this.value||0,s=this._increase(t,this.step);this.setCurrentValue(s)},decrease(){if(this.inputNumberDisabled||this.minDisabled)return;const t=this.value||0,s=this._decrease(t,this.step);this.setCurrentValue(s)},handleBlur(t){this.$emit("blur",t)},handleFocus(t){this.$emit("focus",t)},setCurrentValue(t){const s=this.currentValue;typeof t=="number"&&this.precision!==void 0&&(t=this.toPrecision(t,this.precision)),t>=this.max&&(t=this.max),t<=this.min&&(t=this.min),s!==t&&(this.userInput=null,this.$emit("input",t),this.$emit("change",t,s),this.currentValue=t)},handleInput(t){this.userInput=t},handleInputChange(t){const s=t===""?void 0:Number(t);(!isNaN(s)||t==="")&&this.setCurrentValue(s),this.userInput=null},select(){this.$refs.input.select()}}},__cssModules$Z={};var __component__$Z=normalizeComponent(__vue2_script$Z,render$U,staticRenderFns$U,!1,__vue2_injectStyles$Z,null,null,null);function __vue2_injectStyles$Z(t){for(let s in __cssModules$Z)this[s]=__cssModules$Z[s]}const InputNumber=function(){return __component__$Z.exports}();var render$T=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"input-number-range"},[n("ElInputNumber",{staticClass:"flex-item",staticStyle:{width:"auto"},attrs:{controls:t.controls,disabled:t.disabled,size:"mini"},on:{input:t.emitInput},model:{value:t.val[0],callback:function(r){t.$set(t.val,0,r)},expression:"val[0]"}}),n("span",{staticStyle:{padding:"0 6px","font-size":"12px"}},[t._v(t._s(t.separator))]),n("ElInputNumber",{staticClass:"flex-item",staticStyle:{width:"auto"},attrs:{controls:t.controls,disabled:t.disabled,size:"mini"},on:{input:t.emitInput},model:{value:t.val[1],callback:function(r){t.$set(t.val,1,r)},expression:"val[1]"}})],1)},staticRenderFns$T=[];const InputNumberRange_vue_vue_type_style_index_0_lang="",__vue2_script$Y={name:"InputNumberRange",props:{value:{type:Array,default:()=>[]},disabled:Boolean,separator:{type:String,default:"至"},controls:{type:Boolean,default:!0}},data(){return{val:[void 0,void 0]}},watch:{value:{immediate:!0,handler(t){const s=[void 0,void 0];core.isNotEmpty(t==null?void 0:t[0])&&(s[0]=t[0]),core.isNotEmpty(t==null?void 0:t[1])&&(s[1]=t[1]),this.val=s}}},methods:{emitInput(){this.$emit("input",this.val)}}},__cssModules$Y={};var __component__$Y=normalizeComponent(__vue2_script$Y,render$T,staticRenderFns$T,!1,__vue2_injectStyles$Y,null,null,null);function __vue2_injectStyles$Y(t){for(let s in __cssModules$Y)this[s]=__cssModules$Y[s]}const InputNumberRange=function(){return __component__$Y.exports}(),JSXComponent={name:"JSXComponent",props:{msg:{type:String,default:""}},render(){const t=arguments[0];return t("div",[this.msg])}},_toString=Object.prototype.toString;function isDef(t){return t!=null}function isAsyncPlaceholder(t){return t.isComment&&t.asyncFactory}function getFirstComponentChild(t){if(Array.isArray(t))for(let s=0;s<t.length;s++){const n=t[s];if(isDef(n)&&(isDef(n.componentOptions)||isAsyncPlaceholder(n)))return n}}function isRegExp(t){return _toString.call(t)==="[object RegExp]"}function getComponentName(t){return t&&(t.Ctor.options.name||t.tag)}function matches(t,s){return Array.isArray(t)?t.indexOf(s)>-1:typeof t=="string"?t.split(",").indexOf(s)>-1:isRegExp(t)?t.test(s):!1}function remove(t,s){if(t.length){const n=t.indexOf(s);if(n>-1)return t.splice(n,1)}}function pruneCache(t,s){const{cache:n,keys:r,_vnode:a}=t;for(const o in n){const l=n[o];if(l){const c=l.name;c&&!s(c)&&pruneCacheEntry(n,o,r,a)}}}function pruneCacheEntry(t,s,n,r){const a=t[s];a&&(!r||a.tag!==r.tag)&&a.componentInstance.$destroy(),t[s]=null,remove(n,s)}const __vue2_script$X={name:"KeepViewAlive",abstract:!0,props:{include:Array,exclude:Array,max:[String,Number]},created(){this.cache=Object.create(null),this.keys=[]},destroyed(){for(const t in this.cache)pruneCacheEntry(this.cache,t,this.keys)},mounted(){this.cacheVNode(),this.$watch("include",t=>{pruneCache(this,s=>matches(t,s))}),this.$watch("exclude",t=>{pruneCache(this,s=>!matches(t,s))})},updated(){this.cacheVNode()},methods:{cacheVNode(){const{cache:t,keys:s,vnodeToCache:n,keyToCache:r}=this;if(n){const{tag:a,componentInstance:o,componentOptions:l}=n;t[r]={name:getComponentName(l),tag:a,cid:l.Ctor.cid,componentInstance:o},s.push(r),this.max&&s.length>parseInt(this.max)&&pruneCacheEntry(t,s[0],s,this._vnode),this.vnodeToCache=null}}},render(){const t=this.$slots.default,s=getFirstComponentChild(t),n=s&&s.componentOptions;if(n){const r=getComponentName(n),{include:a,exclude:o}=this;if(a&&(!r||!matches(a,r))||o&&r&&matches(o,r))return s;const{cache:l,keys:c}=this,u=s.key==null?n.Ctor.cid+(n.tag?`::${n.tag}`:""):s.key,d=l[u];d?d.cid===n.Ctor.cid?(s.componentInstance=d.componentInstance,remove(c,u),c.push(u)):(d.componentInstance.$destroy(),l[u]=null,this.vnodeToCache=s,this.keyToCache=u):(this.vnodeToCache=s,this.keyToCache=u),s.data.keepAlive=!0}return s||t&&t[0]}};let __vue2_render$4,__vue2_staticRenderFns$4;const __cssModules$X={};var __component__$X=normalizeComponent(__vue2_script$X,__vue2_render$4,__vue2_staticRenderFns$4,!1,__vue2_injectStyles$X,null,null,null);function __vue2_injectStyles$X(t){for(let s in __cssModules$X)this[s]=__cssModules$X[s]}const KeepViewAlive=function(){return __component__$X.exports}();let Keyboard$1=class{constructor(s){if(typeof s!="object"){console.error('aKeyboard: The obj parameter needs to be an object <In "new aKeyboard()">');return}this.obj=s;const n=document.querySelector(s.el);let r="";if(typeof s.style=="object")for(const m in s.style)r+=`${m}: ${s.style[m]};`;let a=`<div class="akeyboard-keyboard${s.fixedBottomCenter?" akeyboard-keyboard-fixedBottomCenter":""}" style="${r}">`;const o=[];for(let m=1;m<10;m++)o.push(m.toString());o.push("0");const l=s.keys||[["`"].concat(o).concat(["-","=","Delete"]),["Tab","q","w","e","r","t","y","u","i","o","p","[","]","\\"],["Caps","a","s","d","f","g","h","j","k","l",";","'","Enter"],["Shift","z","x","c","v","b","n","m",",",".","/","Shift"],["Space"]];let c;const u=[],d=[];for(let m=0;m<l.length;m++){u.push([]),d.push([]),c=l[m];for(let _=0;_<c.length;_++){if(c[_].length===1){switch(d[m].push(c[_].toUpperCase()),c[_]){case"`":u[m].push("~");continue;case"1":u[m].push("!");continue;case"2":u[m].push("@");continue;case"3":u[m].push("#");continue;case"4":u[m].push("$");continue;case"5":u[m].push("%");continue;case"6":u[m].push("^");continue;case"7":u[m].push("&");continue;case"8":u[m].push("*");continue;case"9":u[m].push("(");continue;case"0":u[m].push(")");continue;case"-":u[m].push("_");continue;case"=":u[m].push("+");continue;case"[":u[m].push("{");continue;case"]":u[m].push("}");continue;case"\\":u[m].push("|");continue;case";":u[m].push(":");continue;case"'":u[m].push('"');continue;case",":u[m].push("<");continue;case".":u[m].push(">");continue;case"/":u[m].push("?");continue}u[m].push(c[_].toUpperCase());continue}u[m].push(c[_]),d[m].push(c[_])}}for(let m=0;m<l.length;m++){c=l[m],a+='<div class="akeyboard-keyboard-innerKeys">';for(let _=0;_<c.length;_++)a+=`<div class="akeyboard-keyboard-keys akeyboard-keyboard-keys-${c[_]}">${c[_]}</div>`;a+="</div>"}a+="</div>",n.innerHTML=a;let p=!1;l.forEach(m=>{m.includes("Shift")&&(p=!0)}),p&&document.querySelectorAll(`${s.el} .akeyboard-keyboard-keys-Shift`).forEach(_=>{_.onclick=function(){if(!this.isShift){const g=document.querySelector(`${s.el} .akeyboard-keyboard-keys-Caps`);if(g&&g.isCaps)return;_.isShift=!0,_.innerHTML="SHIFT",this.classList.add("keyboard-keyboard-keys-focus");const y=document.querySelectorAll(`${s.el} .akeyboard-keyboard-innerKeys`);let C;for(let $=0;$<y.length;$++){C=y[$];for(let w=0;w<C.childNodes.length;w++)u[$][w]!=="Shift"&&(C.childNodes[w].innerHTML=u[$][w])}return}_.isShift=!1,_.innerHTML="Shift",this.classList.remove("keyboard-keyboard-keys-focus");const x=document.querySelectorAll(`${s.el} .akeyboard-keyboard-innerKeys`);let b;for(let g=0;g<x.length;g++){b=x[g];for(let y=0;y<b.childNodes.length;y++)b.childNodes[y].innerHTML=l[g][y]}}});let h=!1;l.forEach(m=>{m.includes("Caps")&&(h=!0)}),h&&document.querySelectorAll(`${s.el} .akeyboard-keyboard-keys-Caps`).forEach(_=>{_.onclick=function(){if(!this.isCaps){const g=document.querySelector(`${s.el} .akeyboard-keyboard-keys-Shift`);if(g&&g.isShift)return;this.isCaps=!0,this.classList.add("keyboard-keyboard-keys-focus");const y=document.querySelectorAll(`${s.el} .akeyboard-keyboard-innerKeys`);let C;for(let $=0;$<y.length;$++){C=y[$];for(let w=0;w<C.childNodes.length;w++)C.childNodes[w].innerHTML=d[$][w]}return}this.isCaps=!1,this.classList.remove("keyboard-keyboard-keys-focus");const x=document.querySelectorAll(`${s.el} .akeyboard-keyboard-innerKeys`);let b;for(let g=0;g<x.length;g++){b=x[g];for(let y=0;y<b.childNodes.length;y++)b.childNodes[y].innerHTML=l[g][y]}}})}inputOn(s,n,r,a){if(typeof s!="string"){console.error('aKeyboard: The inputEle parameter needs to be a string <In "aKeyboard.inputOn()">');return}if(typeof n!="string"){console.error('aKeyboard: The type parameter needs to be a string <In "aKeyboard.inputOn()">');return}const o=document.querySelector(s),l=document.querySelectorAll(`${this.obj.el} .akeyboard-keyboard-keys`);for(let c=0;c<l.length;c++)if(!["Shift","Caps"].includes(l[c].innerHTML)){if(l[c].innerHTML==="Delete"){l[c].onclick=function(){o[n]=o[n].substr(0,o[n].length-1),r("Delete",o[n])};continue}if(l[c].innerHTML==="Tab"){l[c].onclick=function(){o[n]+=" ",r("Tab",o[n])};continue}if(l[c].innerHTML==="Enter"){l[c].onclick=function(){o[n]+=`
|
|
67
|
+
}`;this.onLoad=m}}},__cssModules$1x={};var __component__$1x=normalizeComponent(__vue2_script$1x,render$1r,staticRenderFns$1r,!1,__vue2_injectStyles$1x,null,null,null);function __vue2_injectStyles$1x(t){for(let s in __cssModules$1x)this[s]=__cssModules$1x[s]}const ConfigTable=function(){return __component__$1x.exports}();var render$1q=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"widget-config"},[t.data&&Object.keys(t.data).length>0?n("ElForm",{attrs:{"label-suffix":":","label-position":"left","label-width":"90px",size:"small"}},[n("ElCollapse",{model:{value:t.collapse,callback:function(r){t.collapse=r},expression:"collapse"}},[n("ElCollapseItem",{attrs:{name:"1",title:"基本属性"}},[t.data.type&&!t.data.component?n("ElFormItem",{attrs:{label:"类型"}},[n("ElSelect",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择类型"},on:{change:t.handleChangeType},model:{value:t.data.type,callback:function(r){t.$set(t.data,"type",r)},expression:"data.type"}},t._l(t.fields,function(r){return n("ElOptionGroup",{key:r.title,attrs:{label:r.title}},t._l(r.list,function(a){return n("ElOption",{key:a.type,attrs:{label:a.label,value:a.type}})}),1)}),1)],1):t._e(),n("ElFormItem",{attrs:{label:"属性值"}},[n("ElInput",{attrs:{clearable:"",placeholder:"属性值"},model:{value:t.data.prop,callback:function(r){t.$set(t.data,"prop",r)},expression:"data.prop"}})],1),n("ElFormItem",{attrs:{label:"标题"}},[n("ElInput",{attrs:{clearable:"",placeholder:"标题"},model:{value:t.data.label,callback:function(r){t.$set(t.data,"label",r)},expression:"data.label"}})],1),["group","dynamic","title"].includes(t.data.type)?t._e():n("ElFormItem",{attrs:{label:"标题宽度"}},[n("ElInputNumber",{staticStyle:{width:"100%"},attrs:{min:80,step:10,"controls-position":"right",placeholder:"标签宽度"},model:{value:t.data.labelWidth,callback:function(r){t.$set(t.data,"labelWidth",r)},expression:"data.labelWidth"}})],1),t.data.subfield?t._e():n("ElFormItem",{attrs:{label:"标签位置"}},[n("ElSelect",{attrs:{placeholder:"标签位置",clearable:""},model:{value:t.data.labelPosition,callback:function(r){t.$set(t.data,"labelPosition",r)},expression:"data.labelPosition"}},[n("ElOption",{attrs:{label:"上",value:"top"}}),n("ElOption",{attrs:{label:"左",value:"left"}}),n("ElOption",{attrs:{label:"右",value:"right"}})],1)],1),t.data.subfield?n("ElFormItem",{attrs:{label:"宽度"}},[n("ElInputNumber",{staticStyle:{width:"100%"},attrs:{"controls-position":"right",placeholder:"宽度",min:100},model:{value:t.data.width,callback:function(r){t.$set(t.data,"width",r)},expression:"data.width"}})],1):t._e(),!t.data.subfield&&!["group"].includes(t.data.type)?n("ElFormItem",{attrs:{label:"表单栅格"}},[n("ElInputNumber",{staticStyle:{width:"100%"},attrs:{"controls-position":"right",placeholder:"表单栅格",min:2,max:24},model:{value:t.data.span,callback:function(r){t.$set(t.data,"span",r)},expression:"data.span"}})],1):t._e(),["cascader","checkbox","radio","select","tree","upload","img","array","slider","timerange","daterange","datetimerange"].includes(t.data.type)?n("ElFormItem",{attrs:{label:"数据类型"},scopedSlots:t._u([{key:"label",fn:function(){return[n("ElLink",{attrs:{underline:!1,href:"https://avuejs.com/docs/datatype.html",target:"_blank"}},[t._v(" 数据类型 "),n("i",{staticClass:"el-icon-question"})])]},proxy:!0}],null,!1,3051713203)},[n("ElSelect",{attrs:{placeholder:"数据类型",clearable:""},model:{value:t.data.dataType,callback:function(r){t.$set(t.data,"dataType",r)},expression:"data.dataType"}},[n("ElOption",{attrs:{label:"String",value:"string"}}),n("ElOption",{attrs:{label:"Number",value:"number"}}),n("ElOption",{attrs:{label:"Array",value:"array"}})],1)],1):t._e(),n("ElFormItem",{attrs:{label:"字段提示"},scopedSlots:t._u([{key:"label",fn:function(){return[n("ElLink",{attrs:{underline:!1,href:"https://avuejs.com/form/form-tip.html",target:"_blank"}},[t._v(" 字段提示 "),n("i",{staticClass:"el-icon-question"})])]},proxy:!0}],null,!1,708991366)},[n("ElInput",{attrs:{clearable:"",placeholder:"字段提示"},model:{value:t.data.tip,callback:function(r){t.$set(t.data,"tip",r)},expression:"data.tip"}})],1),t.data.tip&&!["upload"].includes(t.data.type)?n("ElFormItem",{attrs:{label:"字段提示位置","label-width":"110px"}},[n("ElSelect",{attrs:{placeholder:"字段提示位置",clearable:""},model:{value:t.data.tipPlacement,callback:function(r){t.$set(t.data,"tipPlacement",r)},expression:"data.tipPlacement"}},[n("ElOption",{attrs:{label:"上",value:"top"}}),n("ElOption",{attrs:{label:"下",value:"bottom"}}),n("ElOption",{attrs:{label:"左",value:"left"}}),n("ElOption",{attrs:{label:"右",value:"right"}})],1)],1):t._e(),n("ElFormItem",{attrs:{label:"标题提示"},scopedSlots:t._u([{key:"label",fn:function(){return[n("ElLink",{attrs:{underline:!1,href:"https://avuejs.com/form/form-tip.html",target:"_blank"}},[t._v(" 标题提示 "),n("i",{staticClass:"el-icon-question"})])]},proxy:!0}],null,!1,1033131739)},[n("ElInput",{attrs:{clearable:"",placeholder:"标题提示"},model:{value:t.data.labelTip,callback:function(r){t.$set(t.data,"labelTip",r)},expression:"data.labelTip"}})],1),t.data.labelTip&&!["upload"].includes(t.data.type)?n("ElFormItem",{attrs:{label:"标题提示位置","label-width":"110px"}},[n("ElSelect",{attrs:{placeholder:"标题提示位置",clearable:""},model:{value:t.data.labelTipPlacement,callback:function(r){t.$set(t.data,"labelTipPlacement",r)},expression:"data.labelTipPlacement"}},[n("ElOption",{attrs:{label:"上",value:"top"}}),n("ElOption",{attrs:{label:"下",value:"bottom"}}),n("ElOption",{attrs:{label:"左",value:"left"}}),n("ElOption",{attrs:{label:"右",value:"right"}})],1)],1):t._e(),["color","dynamic","group","ueditor","upload","map"].includes(t.data.type)?t._e():n("ElFormItem",{attrs:{label:"默认值"}},[t.defaultValues&&t.defaultValues[t.data.type]?[n("ElSelect",{attrs:{"allow-create":"",clearable:"",filterable:"",placeholder:"默认值"},model:{value:t.data.value,callback:function(r){t.$set(t.data,"value",r)},expression:"data.value"}},t._l(t.defaultValues[t.data.type],function(r){return n("ElOption",{key:r.value,attrs:{label:r.label,value:r.value}})}),1)]:[n("ElInput",{attrs:{clearable:"",placeholder:"默认值"},model:{value:t.data.value,callback:function(r){t.$set(t.data,"value",r)},expression:"data.value"}})]],2),n("ElFormItem",{attrs:{label:"详情模式"}},[n("ElSwitch",{model:{value:t.data.detail,callback:function(r){t.$set(t.data,"detail",r)},expression:"data.detail"}})],1),n("ElFormItem",{attrs:{label:"是否只读"}},[n("ElSwitch",{model:{value:t.data.readonly,callback:function(r){t.$set(t.data,"readonly",r)},expression:"data.readonly"}})],1),n("ElFormItem",{attrs:{label:"是否禁用"}},[n("ElSwitch",{model:{value:t.data.disabled,callback:function(r){t.$set(t.data,"disabled",r)},expression:"data.disabled"}})],1),n("ElFormItem",{attrs:{label:"是否可见"}},[n("ElSwitch",{model:{value:t.data.display,callback:function(r){t.$set(t.data,"display",r)},expression:"data.display"}})],1),n("ElFormItem",{attrs:{label:"是否必填"}},[n("ElSwitch",{model:{value:t.data.required,callback:function(r){t.$set(t.data,"required",r)},expression:"data.required"}}),t.data.required?n("ElInput",{attrs:{placeholder:"正则表达式"},model:{value:t.data.pattern,callback:function(r){t.$set(t.data,"pattern",r)},expression:"data.pattern"}}):t._e()],1)],1),n("ElCollapseItem",{attrs:{name:"2",title:"组件属性"}},[n(t.getComponent,{tag:"Component",attrs:{data:t.data,"default-values":t.defaultValues}})],1),["group"].includes(t.data.type)?t._e():n("ElCollapseItem",{attrs:{name:"3",title:"事件属性"}},[n("ConfigEvent",{attrs:{data:t.data}})],1)],1)],1):[n("FyEmpty",{staticStyle:{"margin-top":"100%"},attrs:{desc:"拖拽字段进行配置"}})]],2)},staticRenderFns$1q=[];const dateArr=["year","month","week","date","datetime","time","daterange","timerange","datetimerange","dates"],__vue2_script$1w={name:"WidgetConfig",components:{ConfigCustom,ConfigInput,ConfigTextarea,ConfigNumber,ConfigDynamic,ConfigSwitch,ConfigRate,ConfigSlider,ConfigColor,ConfigSelect,ConfigTree,ConfigDate,ConfigUpload,ConfigUEditor,ConfigMap,ConfigGroup,ConfigArray,ConfigTitle,ConfigEvent,ConfigTable},props:{data:Object,defaultValues:Object},data(){return{fields:fields$1,collapse:["1","2","3"],validator:{type:null,required:null,pattern:null,length:null}}},computed:{getComponent(){const t="config-",{type:s,component:n}=this.data;if((!s||n)&&s!=="u-editor")return`${t}custom`;let r="input";return[void 0,"input","password","url"].includes(s)?r="input":dateArr.includes(s)?r="date":["array","img"].includes(s)?r="array":["tree","cascader"].includes(s)?r="tree":["radio","checkbox","select"].includes(s)?r="select":r=s,t+r}},watch:{"data.required"(t){t?this.validator.required={required:!0,message:`${this.data.label}必须填写`}:this.validator.required=null,this.generateRule()},"data.pattern"(t){t?this.validator.pattern={pattern:new RegExp(t),message:`${this.data.label}格式不匹配`}:this.validator.pattern=null,this.generateRule()}},methods:{handleChangeType(t){if(!t)return;let s;for(const n of this.fields)if(s=n.list.find(r=>r.type===t),s)break;if(s)for(const n in s)s&&Object.prototype.hasOwnProperty.call(s,n)&&!["icon","label","span"].includes(n)&&(this.data[n]=s[n])},generateRule(){const t=[];Object.keys(this.validator).forEach(s=>{this.validator[s]&&t.push(this.validator[s])}),t.length===0?delete this.data.rules:this.data.rules=t}}},__cssModules$1w={};var __component__$1w=normalizeComponent(__vue2_script$1w,render$1q,staticRenderFns$1q,!1,__vue2_injectStyles$1w,null,null,null);function __vue2_injectStyles$1w(t){for(let s in __cssModules$1w)this[s]=__cssModules$1w[s]}const WidgetConfig=function(){return __component__$1w.exports}();var render$1p=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("ElContainer",{staticClass:"form-designer"},[n("ElAside",{attrs:{width:t.leftWidth}},[n("div",{staticClass:"fields-list"},[t.customFields&&t.customFields.length>0?[t.customFields[0].title&&t.customFields[0].list&&t.customFields[0].list.length>0?[t._l(t.customFields,function(r,a){return[n("div",{key:`f_${a}`,staticClass:"field-title"},[t._v(" "+t._s(r.title)+" ")]),n("Draggable",{key:`d_${a}`,attrs:{tag:"ul",list:r.list,group:{name:"form",pull:"clone",put:!1},"ghost-class":"ghost",sort:!1}},[t._l(r.list,function(o,l){return[n("li",{key:`c_${l}`,staticClass:"field-label"},[n("a",{on:{click:function(c){return t.handleFieldClick(o)}}},[n("i",{staticClass:"icon iconfont",class:o.icon}),n("span",[t._v(t._s(o.title||o.label))])])])]})],2)]})]:[n("ElLink",{staticClass:"field-title",attrs:{underline:!1,href:"https://github.com/sscfaith/avue-form-design/blob/master/CHANGELOG.md#2020-09-22",target:"_blank"}},[t._v(" 自定义字段 "),n("i",{staticClass:"el-icon-question"})]),n("Draggable",{attrs:{tag:"ul",list:t.customFields,group:{name:"form",pull:"clone",put:!1},"ghost-class":"ghost",sort:!1}},[t._l(t.customFields,function(r,a){return[r.tips?n("ElTooltip",{key:a,attrs:{effect:"dark",content:r.tips}},[n("li",{key:a,staticClass:"field-label"},[n("a",{staticStyle:{padding:"0 5px"},on:{click:function(o){return t.handleFieldClick(r)}}},[n("i",{class:r.icon}),n("span",{staticStyle:{"margin-left":"5px"}},[t._v(t._s(r.title||r.label))])])])]):n("li",{key:a,staticClass:"field-label"},[n("a",{staticStyle:{padding:"0 5px"},on:{click:function(o){return t.handleFieldClick(r)}}},[n("i",{class:r.icon}),n("span",{staticStyle:{"margin-left":"5px"}},[t._v(t._s(r.title||r.label))])])])]})],2)]]:t._e(),t._l(t.fields,function(r,a){return n("div",{key:a},[r.list.find(function(o){return t.includeFields.includes(o.type)})?[n("div",{staticClass:"field-title"},[t._v(" "+t._s(r.title)+" ")]),n("Draggable",{attrs:{tag:"ul",list:r.list,group:{name:"form",pull:"clone",put:!1},"ghost-class":"ghost",sort:!1}},[t._l(r.list,function(o,l){return[t.includeFields.includes(o.type)?n("li",{key:`c_${l}`,staticClass:"field-label"},[n("a",{on:{click:function(c){return t.handleFieldClick(o)}}},[n("i",{staticClass:"icon iconfont",class:o.icon}),n("span",[t._v(t._s(o.title||o.label))])])]):t._e()]})],2)]:t._e()],2)})],2)]),n("ElContainer",{staticClass:"widget-container",attrs:{direction:"vertical"}},[n("ElHeader",{staticClass:"widget-container-header"},[n("div",[t.undoRedo?[n("ElButton",{attrs:{type:"text",size:"medium",icon:"el-icon-refresh-left",disabled:t.historySteps.index===0},on:{click:function(r){t.widgetForm=t.handleUndo()}}},[t._v(" 撤销 ")]),n("ElButton",{attrs:{type:"text",size:"medium",icon:"el-icon-refresh-right",disabled:t.historySteps.index===t.historySteps.steps.length-1},on:{click:function(r){t.widgetForm=t.handleRedo()}}},[t._v(" 重做 ")])]:t._e()],2),n("div",{staticStyle:{display:"flex","align-items":"center"}},[t.showGithubStar?n("iframe",{staticStyle:{"margin-left":"10px"},attrs:{src:"https://ghbtns.com/github-btn.html?user=sscfaith&repo=avue-form-design&type=star&count=true",frameborder:"0",scrolling:"0",width:"100",height:"20",title:"GitHub"}}):t._e(),t._t("toolbar-left"),t.toolbar.includes("avue-doc")?n("ElButton",{attrs:{type:"text",size:"medium",icon:"el-icon-document"},on:{click:t.handleAvueDoc}},[t._v(" Avue文档 ")]):t._e(),t.toolbar.includes("import")?n("ElButton",{attrs:{type:"text",size:"medium",icon:"el-icon-upload2"},on:{click:function(r){t.importJsonVisible=!0}}},[t._v(" 导入JSON ")]):t._e(),t.toolbar.includes("generate")?n("ElButton",{attrs:{type:"text",size:"medium",icon:"el-icon-download"},on:{click:t.handleGenerateJson}},[t._v(" 生成JSON ")]):t._e(),t.toolbar.includes("preview")?n("ElButton",{attrs:{type:"text",size:"medium",icon:"el-icon-view"},on:{click:t.handlePreview}},[t._v(" 预览 ")]):t._e(),t.toolbar.includes("clear")?n("ElButton",{staticClass:"danger",attrs:{type:"text",size:"medium",icon:"el-icon-delete"},on:{click:t.handleClear}},[t._v(" 清空 ")]):t._e(),t._t("toolbar")],2)]),n("ElMain",{style:{background:t.widgetForm.column.length===0?`url(${t.widgetEmpty}) no-repeat 50%`:""}},[n("WidgetForm",{ref:"widgetForm",attrs:{data:t.widgetForm,select:t.widgetFormSelect},on:{"update:select":function(r){t.widgetFormSelect=r},change:function(r){return t.handleHistoryChange(t.widgetForm)}}})],1)],1),n("ElAside",{staticClass:"widget-config-container",attrs:{width:t.rightWidth}},[n("ElTabs",{attrs:{stretch:""},model:{value:t.configTab,callback:function(r){t.configTab=r},expression:"configTab"}},[n("ElTabPane",{staticStyle:{padding:"0 10px"},attrs:{label:"字段属性",name:"widget"}},[n("WidgetConfig",{attrs:{data:t.widgetFormSelect,"default-values":t.defaultValues}})],1),n("ElTabPane",{staticStyle:{padding:"0 10px"},attrs:{label:"表单属性",name:"form",lazy:""}},[n("FormConfig",{attrs:{data:t.widgetForm}})],1)],1)],1),n("ElDrawer",{attrs:{title:"导入JSON",visible:t.importJsonVisible,size:"50%","append-to-body":"","destroy-on-close":""},on:{"update:visible":function(r){t.importJsonVisible=r}}},[n("MonacoEditor",{attrs:{"key-index":"import",height:"82%"},model:{value:t.importJson,callback:function(r){t.importJson=r},expression:"importJson"}}),n("div",{staticClass:"afd-drawer-foot"},[n("ElButton",{attrs:{size:"medium",type:"primary"},on:{click:t.handleImportJsonSubmit}},[t._v(" 确定 ")]),n("ElButton",{attrs:{size:"medium",type:"danger"},on:{click:function(r){t.importJsonVisible=!1}}},[t._v(" 取消 ")])],1)],1),n("ElDrawer",{attrs:{title:"生成JSON",visible:t.generateJsonVisible,size:"50%","append-to-body":"","destroy-on-close":""},on:{"update:visible":function(r){t.generateJsonVisible=r}}},[n("MonacoEditor",{attrs:{"key-index":"generate",height:"82%","read-only":!0},model:{value:t.option,callback:function(r){t.option=r},expression:"option"}}),n("div",{staticClass:"afd-drawer-foot"},[n("ElButton",{attrs:{size:"medium",type:"primary"},on:{click:t.handleGenerate}},[t._v(" 生成 ")]),n("ElPopover",{attrs:{placement:"top",trigger:"hover",width:"350px"},scopedSlots:t._u([{key:"reference",fn:function(){return[n("ElButton",{staticStyle:{"margin-left":"10px"},attrs:{size:"medium",type:"primary"},on:{click:t.handleCopy}},[t._v(" 复制 ")])]},proxy:!0}])},[n("ElForm",{staticStyle:{padding:"0 20px"},attrs:{"label-suffix":":","label-width":"180px","label-position":"left"},model:{value:t.configOption,callback:function(r){t.configOption=r},expression:"configOption"}},[n("ElFormItem",{attrs:{label:"类型"}},[n("ElPopover",{staticStyle:{"margin-right":"15px"},attrs:{placement:"top-start",trigger:"hover",content:"复制json对象"},scopedSlots:t._u([{key:"reference",fn:function(){return[n("ElRadio",{attrs:{label:"json"},model:{value:t.configOption.generateType,callback:function(r){t.$set(t.configOption,"generateType",r)},expression:"configOption.generateType"}},[t._v(" json ")])]},proxy:!0}])}),n("ElPopover",{attrs:{placement:"top-start",trigger:"hover",content:"复制string字符串,可直接用于后端保存无需再次处理。"},scopedSlots:t._u([{key:"reference",fn:function(){return[n("ElRadio",{attrs:{label:"string"},model:{value:t.configOption.generateType,callback:function(r){t.$set(t.configOption,"generateType",r)},expression:"configOption.generateType"}},[t._v(" string ")])]},proxy:!0}])})],1),n("ElFormItem",{attrs:{label:"缩进长度-空格数量"}},[n("ElSlider",{attrs:{"show-stops":"",marks:{1:"1",2:"2",3:"3",4:"4"},min:1,max:4,step:1},model:{value:t.configOption.space,callback:function(r){t.$set(t.configOption,"space",r)},expression:"configOption.space"}})],1),n("ElFormItem",{attrs:{label:"引号类型"}},[n("ElSwitch",{attrs:{"active-value":"single","inactive-value":"double","active-text":"单引号","inactive-text":"双引号"},model:{value:t.configOption.quoteType,callback:function(r){t.$set(t.configOption,"quoteType",r)},expression:"configOption.quoteType"}})],1),n("ElFormItem",{attrs:{label:"移除key的引号"}},[n("ElSwitch",{model:{value:t.configOption.dropQuotesOnKeys,callback:function(r){t.$set(t.configOption,"dropQuotesOnKeys",r)},expression:"configOption.dropQuotesOnKeys"}})],1),n("ElFormItem",{attrs:{label:"移除数字字符串的引号"}},[n("ElSwitch",{model:{value:t.configOption.dropQuotesOnNumbers,callback:function(r){t.$set(t.configOption,"dropQuotesOnNumbers",r)},expression:"configOption.dropQuotesOnNumbers"}})],1)],1)],1)],1)],1),n("ElDrawer",{attrs:{title:"预览",visible:t.previewVisible,size:"60%","append-to-body":"","before-close":t.handleBeforeClose},on:{"update:visible":function(r){t.previewVisible=r}}},[t.previewVisible?n("FyForm",{ref:"form",staticClass:"afd-preview-form",attrs:{option:t.option},on:{submit:t.handlePreviewSubmit},model:{value:t.form,callback:function(r){t.form=r},expression:"form"}}):t._e(),n("div",{staticClass:"afd-drawer-foot"},[n("ElButton",{attrs:{size:"medium",type:"primary"},on:{click:t.handlePreviewSubmit}},[t._v(" 确定 ")]),n("ElButton",{attrs:{size:"medium",type:"danger"},on:{click:t.handleBeforeClose}},[t._v(" 取消 ")])],1)],1)],1)},staticRenderFns$1p=[];const FyFormDesign_vue_vue_type_style_index_0_lang="",__vue2_script$1v={name:"FyFormDesign",components:{Draggable,WidgetForm,FormConfig,WidgetConfig},mixins:[history],props:{options:{type:[Object,String],default:()=>({column:[]})},storage:{type:Boolean,default:!1},asideLeftWidth:{type:[String,Number],default:"270px"},asideRightWidth:{type:[String,Number],default:"380px"},showGithubStar:Boolean,toolbar:{type:Array,default:()=>["import","generate","preview","clear"]},undoRedo:{type:Boolean,default:!0},includeFields:{type:Array,default:()=>{const t=[];return fields$1.forEach(s=>{s.list.forEach(n=>{t.push(n.type)})}),t}},customFields:{type:Array},defaultValues:{type:Object}},data(){return{widgetEmpty,fields:fields$1,widgetForm:{column:[],labelPosition:"left",labelSuffix:":",labelWidth:120,gutter:0,menuBtn:!0,submitBtn:!0,submitText:"提交",emptyBtn:!0,emptyText:"清空",menuPosition:"center"},option:{},configTab:"form",widgetFormSelect:{},previewVisible:!1,generateJsonVisible:!1,importJsonVisible:!1,importJson:{},form:{},configOption:{generateType:"json",space:2,quoteType:"single",dropQuotesOnKeys:!0},history:{index:0,maxStep:20,steps:[]}}},computed:{leftWidth(){return typeof this.asideLeftWidth=="string"?this.asideLeftWidth:`${this.asideLeftWidth}px`},rightWidth(){return typeof this.asideRightWidth=="string"?this.asideRightWidth:`${this.asideRightWidth}px`}},watch:{options:{handler(val){let options=val;if(typeof options=="string")try{options=eval(`(${options})`)}catch(t){console.error("非法配置"),options={column:[]}}this.transAvueOptionsToFormDesigner(options).then(t=>{this.widgetForm=f(f({},this.widgetForm),t)})},deep:!0},widgetFormSelect:{handler(){this.configTab==="form"&&(this.configTab="widget")},deep:!0}},mounted(){this.handleLoadStorage(),this.handleLoadCss()},methods:{handleLoadStorage(){return v(this,null,function*(){let options=this.options;if(typeof options=="string")try{options=eval(`(${options})`)}catch(t){console.error("非法配置"),options={column:[]}}options.column||(options.column=[]),this.widgetForm=this.initHistory({index:0,maxStep:20,steps:[yield this.transAvueOptionsToFormDesigner(f(f({},this.widgetForm),options))],storage:this.storage}),this.undoRedo&&window.addEventListener("keydown",t=>{(t.metaKey&&!t.shiftKey&&t.keyCode===90||t.ctrlKey&&!t.shiftKey&&t.keyCode===90)&&(this.widgetForm=this.handleUndo()),(t.metaKey&&t.shiftKey&&t.keyCode===90||t.ctrlKey&&t.shiftKey&&t.keyCode===90||t.ctrlKey&&t.keyCode===89)&&(this.widgetForm=this.handleRedo())},!1)})},handleLoadCss(){const t=document.getElementsByTagName("head")[0],s=document.createElement("link");s.rel="stylesheet",s.type="text/css",s.href="https://at.alicdn.com/t/font_1254447_zc9iezc230c.css",t.appendChild(s)},handleAvueDoc(){window.open("https://avuejs.com/form/form.html","_blank")},handleFieldClick(t){const s=this.widgetForm.column.findIndex(r=>r.prop===this.widgetFormSelect.prop)+1;let n=0;s===-1?(this.widgetForm.column.push(t),n=this.widgetForm.column.length-1):(this.widgetForm.column.splice(s,0,t),n=s),this.$refs.widgetForm.handleWidgetAdd({newIndex:n})},handlePreview(){!this.widgetForm.column||this.widgetForm.column.length===0?this.$message.error("没有需要展示的内容"):this.transformToAvueOptions(this.widgetForm,!0).then(t=>{this.option=t,this.previewVisible=!0})},handleImportJsonSubmit(){try{this.transAvueOptionsToFormDesigner(this.importJson).then(t=>{this.widgetForm=t,this.importJsonVisible=!1,this.handleHistoryChange(this.widgetForm)})}catch(t){this.$message.error(t.message)}},handleGenerateJson(){this.transformToAvueOptions(this.widgetForm).then(t=>{this.option=t,this.generateJsonVisible=!0})},handleGenerate(){this.transformToAvueOptions(this.widgetForm).then(t=>{this.configOption.generateType&&this.configOption.generateType==="string"?this.$emit("submit",convert(t,f({minify:!0},this.configOption))):this.$emit("submit",t)})},handleCopy(){this.transformToAvueOptions(this.widgetForm).then(t=>{this.$Clipboard({text:convert(t,f({minify:!0},this.configOption))}).then(()=>{this.$message.success("复制成功")}).catch(()=>{this.$message.error("复制失败")})})},handlePreviewSubmit(t,s){s?this.$alert(this.form).then(()=>{s()}).catch(()=>{s()}):this.$refs.form.validate((n,r)=>{n&&this.$alert(this.form).then(()=>{r()}).catch(()=>{r()})})},handleBeforeClose(){this.$refs.form.resetForm(),this.form={},this.previewVisible=!1},handleClear(){this.widgetForm&&this.widgetForm.column&&this.widgetForm.column.length>0?this.$confirm("确定要清空吗?","警告",{type:"warning"}).then(()=>{this.$set(this.widgetForm,"column",[]),this.$set(this,"form",{}),this.$set(this,"widgetFormSelect",{}),this.handleHistoryChange(this.widgetForm)}).catch(()=>{}):this.$message.error("没有需要清空的内容")},transformToAvueOptions(obj,isPreview=!1){return new Promise((resolve,reject)=>{try{const data=deepClone(obj);for(const t in data)core.isBlank(data[t])&&delete data[t];for(let i=0;i<data.column.length;i++){const col=data.column[i];if(isPreview){const event=["change","blur","click","focus"];event.forEach(e=>{col[e]&&(col[e]=eval(`${col[e]}`.replace(/this/g,"_this")))}),col.event&&Object.keys(col.event).forEach(key=>col.event[key]=eval(`${col.event[key]}`.replace(/this/g,"_this")))}if(col.type==="dynamic"&&col.children&&col.children.column&&col.children.column.length>0)col.children.column.forEach(s=>{delete s.subfield}),this.transformToAvueOptions(col.children,isPreview).then(s=>{col.children=s});else if(col.type==="group"){data.group||(data.group=[]);const t={label:col.label,icon:col.icon,prop:col.prop,arrow:col.arrow,collapse:col.collapse,display:col.display};this.transformToAvueOptions(col.children,isPreview).then(s=>{t.column=s.column,data.group.push(t)}),data.column.splice(i,1),i--}else if(["checkbox","radio","tree","cascader","select"].includes(col.type)){if(col.dicOption==="static"){delete col.dicUrl,delete col.dicMethod,delete col.dicQuery,delete col.dicQueryConfig;const{label:t,value:s,desc:n}=col.props;col.dicData.forEach(r=>{if(r.label){const a=r.label;delete r.label,r[t]=a}if(r.value){const a=r.value;delete r.value,r[s]=a}if(r.desc){const a=r.desc;delete r.desc,r[n]=a}})}else if(col.dicOption==="remote")if(delete col.dicData,col.dicQueryConfig&&col.dicQueryConfig.length>0){const t={};col.dicQueryConfig.forEach(s=>{s.key&&s.value&&(t[s.key]=s.value)}),col.dicQuery=t,delete col.dicQueryConfig}else delete col.dicQueryConfig;delete col.dicOption}else if(["upload"].includes(col.type)){if(col.headersConfig&&col.headersConfig.length>0){const t={};col.headersConfig.forEach(s=>{s.key&&s.value&&(t[s.key]=s.value)}),col.headers=t}else delete col.headers;if(delete col.headersConfig,col.dataConfig&&col.dataConfig.length>0){const t={};col.dataConfig.forEach(s=>{s.key&&s.value&&(t[s.key]=s.value)}),col.data=t}else delete col.data;delete col.dataConfig}for(const t in col)core.isBlank(col[t])&&delete col[t]}resolve(data)}catch(t){reject(t)}})},transAvueOptionsToFormDesigner(obj){typeof obj=="string"&&(obj=eval(`(${obj})`));const data=deepClone(obj);return new Promise((t,s)=>{try{if(data.column&&data.column.length>0&&data.column.forEach(n=>{if(n.type==="dynamic"&&n.children&&n.children.column&&n.children.column.length>0)n.children.column.forEach(a=>{a.subfield=!0}),this.transAvueOptionsToFormDesigner(n.children).then(a=>{n.children=a});else if(["checkbox","radio","tree","cascader","select"].includes(n.type)){if(!n.dicData&&n.dicQuery&&typeof n.dicQuery=="object"){const r=[];for(const a in n.dicQuery)r.push({key:a,value:n.dicQuery[a],$cellEdit:!0});n.dicQueryConfig=r}n.dicUrl?n.dicOption="remote":n.dicOption="static",n.dicData?n.props&&n.dicData.forEach(r=>{const{label:a,value:o,desc:l}=n.props;if(a){const c=r[a];delete r[a],r.label=c}if(o){const c=r[o];delete r[o],r.value=c}if(l){const c=r[l];delete r[l],r.desc=c}}):n.dicData=[]}else if(["upload"].includes(n.type)){if(n.headers&&typeof n.headers=="object"){const r=[];for(const a in n.headers)r.push({key:a,value:n.headers[a],$cellEdit:!0});n.headersConfig=r}else n.headersConfig=[];if(n.data&&typeof n.data=="object"){const r=[];for(const a in n.data)r.push({key:a,value:n.data[a],$cellEdit:!0});n.dataConfig=r}else n.dataConfig=[]}}),data.group&&data.group.length>0){for(let n=0;n<data.group.length;n++){data.column||(data.column=[]);const r=data.group[n],a={type:"group",label:r.label,icon:r.icon,prop:r.prop,arrow:r.arrow,collapse:r.collapse,display:r.display};this.transAvueOptionsToFormDesigner(r).then(o=>{a.children=o,data.column.push(a)})}delete data.group}t(data)}catch(n){s(n)}})},getData(){return v(this,arguments,function*(t="json",s={}){if(t==="string")return convert(yield this.transformToAvueOptions(this.widgetForm),f({minify:!0},s));if(t==="app"){const n=yield this.transformToAvueOptions(this.widgetForm);return this.parseJson(n),n}else return yield this.transformToAvueOptions(this.widgetForm)})},parseJson(t){for(const s in t){const n=t[s];n&&n.length>0&&typeof n=="object"||typeof n=="object"?this.parseJson(n):typeof n=="function"&&(t[s]=`${n}`)}}}},__cssModules$1v={};var __component__$1v=normalizeComponent(__vue2_script$1v,render$1p,staticRenderFns$1p,!1,__vue2_injectStyles$1v,null,null,null);function __vue2_injectStyles$1v(t){for(let s in __cssModules$1v)this[s]=__cssModules$1v[s]}const FyFormDesign=function(){return __component__$1v.exports}();var render$1o=function(){var t=this,s=t.$createElement,n=t._self._c||s;return t.formSafe.parentOption.menuBtn!==!1?n("ElCol",{class:["menu",t.formSafe.menuPosition,"no-print"],style:t.styleName,attrs:{span:t.menuSpan,md:t.menuSpan}},[n("ElFormItem",{staticStyle:{"text-align":"center"},attrs:{"label-width":"0px"}},[t.formSafe.isMock?n("ElButton",{attrs:{type:"primary",size:t.formSafe.controlSize,icon:"el-icon-edit-outline",disabled:t.formSafe.allDisabled},on:{click:t.formSafe.handleMock}},[t._v(" "+t._s(t.formSafe.parentOption.mockText||"模拟")+" ")]):t._e(),t.formSafe.isPrint?n("ElButton",{attrs:{type:"primary",size:t.formSafe.controlSize,icon:"el-icon-printer",disabled:t.formSafe.allDisabled},on:{click:t.formSafe.handlePrint}},[t._v(" "+t._s(t.formSafe.parentOption.printText||"打印")+" ")]):t._e(),t.formSafe.parentOption.submitBtn!==!1?n("ElButton",{attrs:{type:"primary",size:t.formSafe.controlSize,icon:t.formSafe.parentOption.submitIcon||"el-icon-check",loading:t.formSafe.allDisabled},on:{click:t.formSafe.submit}},[t._v(" "+t._s(t.formSafe.parentOption.submitText||"提交")+" ")]):t._e(),t.formSafe.parentOption.emptyBtn!==!1?n("ElButton",{attrs:{icon:t.formSafe.parentOption.emptyIcon||"el-icon-delete",size:t.formSafe.controlSize,disabled:t.formSafe.allDisabled},on:{click:t.formSafe.resetForm}},[t._v(" "+t._s(t.formSafe.parentOption.emptyText||"清空")+" ")]):t._e(),t._t("menuForm",null,{disabled:t.formSafe.allDisabled,size:t.formSafe.controlSize})],2)],1):t._e()},staticRenderFns$1o=[];const __vue2_script$1u={name:"FyFormMenu",inject:["formSafe"],computed:{menuSpan(){return this.formSafe.parentOption.menuSpan||24},styleName(){return this.menuSpan!==24?{padding:0}:{}}}},__cssModules$1u={};var __component__$1u=normalizeComponent(__vue2_script$1u,render$1o,staticRenderFns$1o,!1,__vue2_injectStyles$1u,null,null,null);function __vue2_injectStyles$1u(t){for(let s in __cssModules$1u)this[s]=__cssModules$1u[s]}const FyFormMenu=function(){return __component__$1u.exports}();var render$1n=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("ElInput",{staticClass:"avue-input",attrs:{size:t.size,clearable:t.clearableVal,type:t.typeParam,maxlength:t.maxlength,minlength:t.minlength,"show-password":t.typeParam==="password"?t.showPassword:!1,rows:t.rows,autosize:{minRows:t.minRows,maxRows:t.maxRows},"prefix-icon":t.prefixIcon,"suffix-icon":t.suffixIcon,readonly:t.readonly,placeholder:t.placeholder,"show-word-limit":t.showWordLimit,disabled:t.disabled,autocomplete:t.autocomplete},on:{keyup:function(r){if(!r.type.indexOf("key")&&t._k(r.keyCode,"enter",13,r.key,"Enter"))return null;t.isSearch&&t.appendClick()},focus:t.handleFocus,blur:t.handleBlur},nativeOn:{click:function(r){return t.handleClick.apply(null,arguments)}},scopedSlots:t._u([t.prepend?{key:"prepend",fn:function(){return[n("span",{on:{click:function(r){return t.prependClick()}}},[t._v(t._s(t.prepend))])]},proxy:!0}:null,t.append?{key:"append",fn:function(){return[n("span",{on:{click:function(r){return t.appendClick()}}},[t._v(t._s(t.append))])]},proxy:!0}:t.isSearch?{key:"append",fn:function(r){return n("ElButton",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(a){return t.appendClick()}},slot:"append"})}}:null],null,!0),model:{value:t.text,callback:function(r){t.text=r},expression:"text"}})},staticRenderFns$1n=[];const __vue2_script$1t={name:"FyInput",mixins:[props,event],props:{showPassword:{type:Boolean,default:!0},showWordLimit:{type:Boolean,default:!1},target:{type:String,default:" _blank"},prefixIcon:{type:String},suffixIcon:{type:String},prependClick:{type:Function,default:()=>{}},prepend:{type:String},appendClick:{type:Function,default:()=>{}},append:{type:String},minlength:{type:Number},maxlength:{type:Number},rows:Number,minRows:{type:Number,default:5},maxRows:{type:Number,default:10},autocomplete:{type:String}},computed:{isSearch(){return this.type==="search"},typeParam:function(){return this.type==="textarea"?"textarea":this.type==="password"?"password":"text"}}},__cssModules$1t={};var __component__$1t=normalizeComponent(__vue2_script$1t,render$1n,staticRenderFns$1n,!1,__vue2_injectStyles$1t,null,null,null);function __vue2_injectStyles$1t(t){for(let s in __cssModules$1t)this[s]=__cssModules$1t[s]}const FyInput=function(){return __component__$1t.exports}();var render$1m=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-input-color"},[n("ElInput",{ref:"main",attrs:{placeholder:t.placeholder,size:t.size,readonly:t.readonly,clearable:t.clearableVal,disabled:t.disabled},nativeOn:{click:function(r){return t.handleClick.apply(null,arguments)}},scopedSlots:t._u([{key:"append",fn:function(){return[n("ElColorPicker",{attrs:{size:"mini","popper-class":t.popperClass,"color-format":t.colorFormat,disabled:t.disabled,"show-alpha":t.showAlpha,predefine:t.predefine},model:{value:t.text,callback:function(r){t.text=r},expression:"text"}})]},proxy:!0}]),model:{value:t.text,callback:function(r){t.text=r},expression:"text"}})],1)},staticRenderFns$1m=[];const __vue2_script$1s={name:"FyInputColor",mixins:[props,event],props:{colorFormat:String,predefine:{type:Array,default:()=>["#ff4500","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","rgba(255, 69, 0, 0.68)","rgb(255, 120, 0)","hsv(51, 100, 98)","hsva(120, 40, 94, 0.5)","hsl(181, 100%, 37%)","hsla(209, 100%, 56%, 0.73)"]},showAlpha:{type:Boolean,default:!0}}},__cssModules$1s={};var __component__$1s=normalizeComponent(__vue2_script$1s,render$1m,staticRenderFns$1m,!1,__vue2_injectStyles$1s,null,null,null);function __vue2_injectStyles$1s(t){for(let s in __cssModules$1s)this[s]=__cssModules$1s[s]}const FyInputColor=function(){return __component__$1s.exports}();var render$1l=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-input-icon"},[n("ElInput",{ref:"main",attrs:{placeholder:t.placeholder,size:t.size,clearable:t.clearableVal,disabled:t.disabled},on:{focus:t.handleShow},nativeOn:{click:function(r){return t.handleClick.apply(null,arguments)}},model:{value:t.text,callback:function(r){t.text=r},expression:"text"}},[n("IconTemp",{attrs:{slot:"append",text:t.text,size:28,small:t.size==="mini"},on:{click:t.handleShow},slot:"append"})],1),t.box?n("div",[n("ElementDialog",{attrs:{title:t.placeholder,visible:t.box,width:t.dialogWidth},on:{"update:visible":function(r){t.box=r}}},[n("div",{staticClass:"avue-input-icon__filter"},[n("ElInput",{attrs:{placeholder:"请输入",size:t.size},model:{value:t.filterText,callback:function(r){t.filterText=r},expression:"filterText"}})],1),n("FyTabs",{attrs:{option:t.option},on:{change:t.handleTabs}}),n("div",{staticClass:"avue-input-icon__list"},t._l(t.list,function(r,a){return n("div",{key:a,class:["avue-input-icon__item",{active:t.text===r}],on:{click:function(o){return t.handleSubmit(r.value)}}},[n("IconTemp",{attrs:{text:r.value,small:t.size==="mini"}}),n("p",[t._v(t._s(r.label||r.value))])],1)}),0)],1)],1):t._e()],1)},staticRenderFns$1l=[];const FyInputIcon_vue_vue_type_style_index_0_lang="",__vue2_script$1r={name:"FyInputIcon",mixins:[props,event],props:{dialogWidth:{type:String,default:"80%"},iconList:{type:Array,default:()=>[]}},data(){return{filterText:"",box:!1,tabs:{}}},computed:{list(){let t=(this.tabs.list||[]).map(s=>!s.value&&!s.label?{value:s}:s);return this.filterText&&(t=t.filter(s=>s.label.indexOf(this.filterText)!==-1)),t},option(){return{column:this.iconList}}},created(){this.tabs=this.iconList[0]||{}},methods:{handleTabs(t){this.tabs=t},handleSubmit(t){this.box=!1,this.text=t,this.handleChange(t)},handleShow(){this.$refs.main.blur(),!(this.disabled||this.readonly)&&(this.box=!0)}}},__cssModules$1r={};var __component__$1r=normalizeComponent(__vue2_script$1r,render$1l,staticRenderFns$1l,!1,__vue2_injectStyles$1r,null,null,null);function __vue2_injectStyles$1r(t){for(let s in __cssModules$1r)this[s]=__cssModules$1r[s]}const FyInputIcon=function(){return __component__$1r.exports}();var render$1k=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-input-map"},[n("ElInput",{ref:"main",attrs:{size:t.size,clearable:t.clearableVal,rows:t.rows,autosize:{minRows:t.minRows,maxRows:t.maxRows},disabled:t.disabled,type:"textarea",placeholder:t.placeholder},on:{clear:t.handleClear,focus:t.handleShow},nativeOn:{click:function(r){return t.handleClick.apply(null,arguments)}},model:{value:t.address,callback:function(r){t.address=r},expression:"address"}}),t.box?n("div",[n("ElementDialog",{attrs:{"show-full-screen":"",width:t.dialogWidth,title:t.placeholder,visible:t.box},on:{"update:visible":function(r){t.box=r},close:t.handleClose},scopedSlots:t._u([{key:"footer",fn:function(){return[t.disabled||t.readonly?t._e():n("ElButton",{attrs:{type:"primary",size:t.size,icon:"el-icon-check"},on:{click:t.handleSubmit}},[t._v(" 确 定 ")])]},proxy:!0}],null,!1,1816263233)},[t.box?n("div",{staticClass:"avue-input-map__content"},[n("ElInput",{staticClass:"avue-input-map__content-input",attrs:{id:"map__input",size:t.size,readonly:t.disabled,clearable:"",placeholder:"输入关键字选取地点"},on:{clear:t.clear},model:{value:t.formattedAddress,callback:function(r){t.formattedAddress=r},expression:"formattedAddress"}}),n("div",{staticClass:"avue-input-map__content-box"},[n("div",{staticClass:"avue-input-map__content-container",attrs:{id:"map__container",tabindex:"0"}}),n("div",{staticClass:"avue-input-map__content-result",attrs:{id:"map__result"}})])],1):t._e()])],1):t._e()],1)},staticRenderFns$1k=[];const FyInputMap_vue_vue_type_style_index_0_lang="",__vue2_script$1q={name:"FyInputMap",mixins:[props,event],props:{dialogWidth:{type:String,default:"60%"},rows:Number,minRows:{type:Number,default:1},maxRows:{type:Number}},data(){return{formattedAddress:"",address:"",poi:{},marker:null,map:null,box:!1}},computed:{longitude(){var t;return(t=this.text)==null?void 0:t[0]},latitude(){var t;return(t=this.text)==null?void 0:t[1]},title(){return this.disabled||this.readonly?"查看":"选择"}},watch:{poi(t){this.formattedAddress=t.formattedAddress},value(t){core.isBlank(t)&&(this.poi={},this.address="")},text(t){core.isBlank(t)||(this.poi={longitude:t[0],latitude:t[1],formattedAddress:t[2]},this.address=t[2])},box:{handler(){this.box&&this.$nextTick(()=>this.init(()=>{this.longitude&&this.latitude&&(this.addMarker(this.longitude,this.latitude),this.getAddress(this.longitude,this.latitude))}))},immediate:!0}},methods:{clear(){this.poi={},this.clearMarker()},handleSubmit(){this.setVal(),this.box=!1},handleClear(){this.text=[],this.poi={},this.handleChange(this.text)},setVal(){this.text=[this.poi.longitude,this.poi.latitude,this.poi.formattedAddress],this.handleChange(this.text)},handleShow(){this.$refs.main.blur(),this.box=!0},addMarker(t,s){this.clearMarker(),this.marker=new window.AMap.Marker({position:[t,s]}),this.marker.setMap(this.map)},clearMarker(){this.marker&&(this.marker.setMap(null),this.marker=null)},getAddress(t,s){new window.AMap.service("AMap.Geocoder",()=>{new window.AMap.Geocoder({}).getAddress([t,s],(r,a)=>{if(r==="complete"&&a.info==="OK"){const o=a.regeocode;this.poi=Object.assign(o,{longitude:t,latitude:s});const l=document.createElement("div"),c=document.createElement("img");c.src="//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-default.png",l.appendChild(c);const u=document.createElement("span");u.className="avue-input-map__marker",u.innerHTML=this.poi.formattedAddress,l.appendChild(u),this.marker.setContent(l)}})})},handleClose(){window.poiPicker.clearSearchResults()},addClick(){this.map.on("click",t=>{if(this.disabled||this.readonly)return;const s=t.lnglat,n=s.P||s.Q,r=s.R;this.addMarker(r,n),this.getAddress(r,n)})},init(t){this.map=new window.AMap.Map("map__container",Object.assign({zoom:13,center:(()=>{if(this.longitude&&this.latitude)return[this.longitude,this.latitude]})()},this.params)),this.initPoip(),this.addClick(),t()},initPoip(){window.AMapUI.loadUI(["misc/PoiPicker"],t=>{const s=new t({input:"map__input",placeSearchOptions:{map:this.map,pageSize:10},searchResultsContainer:"map__result"});this.poiPickerReady(s)})},poiPickerReady(t){window.poiPicker=t,t.on("poiPicked",s=>{this.clearMarker();const n=s.source,r=s.item;this.poi=Object.assign(r,{formattedAddress:r.name,longitude:r.location.R,latitude:r.location.P||r.location.Q}),n!=="search"&&t.searchByKeyword(r.name)})}}},__cssModules$1q={};var __component__$1q=normalizeComponent(__vue2_script$1q,render$1k,staticRenderFns$1k,!1,__vue2_injectStyles$1q,null,null,null);function __vue2_injectStyles$1q(t){for(let s in __cssModules$1q)this[s]=__cssModules$1q[s]}const FyInputMap=function(){return __component__$1q.exports}();var render$1j=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("ElInputNumber",{staticClass:"avue-input-number",attrs:{precision:t.precision,placeholder:t.placeholder,size:t.size,min:t.min,max:t.max,step:t.step,clearable:t.clearableVal,readonly:t.readonly,"controls-position":t.controlsPosition,controls:t.controls,label:t.placeholder,disabled:t.disabled},on:{focus:t.handleFocus,blur:t.handleBlur},nativeOn:{click:function(r){return t.handleClick.apply(null,arguments)}},model:{value:t.text,callback:function(r){t.text=t._n(r)},expression:"text"}})},staticRenderFns$1j=[];const __vue2_script$1p={name:"FyInputNumber",mixins:[props,event],props:{controls:{type:Boolean,default:!0},step:{type:Number,default:1},controlsPosition:{type:String,default:"right"},precision:{type:Number},min:{type:Number,default:-1/0},max:{type:Number,default:1/0}}},__cssModules$1p={};var __component__$1p=normalizeComponent(__vue2_script$1p,render$1j,staticRenderFns$1j,!1,__vue2_injectStyles$1p,null,null,null);function __vue2_injectStyles$1p(t){for(let s in __cssModules$1p)this[s]=__cssModules$1p[s]}const FyInputNumber=function(){return __component__$1p.exports}();var render$1i=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-input-table"},[n("ElInput",{ref:"main",attrs:{size:t.size,value:t.labelShow,clearable:t.clearableVal,placeholder:t.placeholder,disabled:t.disabled},on:{clear:t.handleClear,focus:t.handleShow},nativeOn:{click:function(r){return t.handleClick.apply(null,arguments)}}}),t.box?n("div",[n("ElementDialog",{attrs:{width:t.dialogWidth,title:t.placeholder,visible:t.box},on:{"update:visible":function(r){t.box=r}},scopedSlots:t._u([{key:"footer",fn:function(){return[n("ElButton",{attrs:{type:"primary",size:t.size,icon:"el-icon-check"},on:{click:t.setVal}},[t._v(" 确 定 ")])]},proxy:!0}],null,!1,2921262159)},[t.box?n("FyCurd",{ref:"crud",staticClass:"avue-input-table__crud",attrs:{option:t.option,data:t.data,"table-loading":t.loading,search:t.search,page:t.page},on:{"update:search":function(r){t.search=r},"update:page":function(r){t.page=r},"on-load":t.onList,"search-change":t.handleSearchChange,"search-reset":t.handleSearchChange,"current-row-change":t.handleCurrentRowChange}}):t._e()],1)],1):t._e()],1)},staticRenderFns$1i=[];const FyInputTable_vue_vue_type_style_index_0_lang="",__vue2_script$1o={name:"FyInputTable",mixins:[props,event],props:{formatter:Function,onLoad:Function,dialogWidth:{type:String,default:"80%"}},data(){return{object:{},active:{},search:{},page:{},loading:!1,box:!1,created:!1,data:[]}},computed:{title(){return this.disabled||this.readonly?"查看":"选择"},labelShow(){return typeof this.formatter=="function"?this.formatter(this.object):this.object[this.labelKey]||""},option(){return Object.assign({menu:!1,header:!1,size:this.size,headerAlign:"center",align:"center",highlightCurrentRow:!0},this.column.children)}},watch:{value(t){core.isBlank(t)&&(this.active={},this.object={})},text(t){this.created||core.isBlank(t)||typeof this.onLoad=="function"&&this.onLoad({value:this.text},s=>{this.active=s,this.object=s,this.created=!0})}},methods:{handleClear(){this.active={},this.setVal()},handleShow(){this.$refs.main.blur(),!(this.disabled||this.readonly)&&(this.page={currentPage:1,total:0},this.data=[],this.box=!0)},setVal(){this.object=this.active,this.text=this.active[this.valueKey]||"",this.handleChange(this.active),this.box=!1},handleCurrentRowChange(t){this.active=t},handleSearchChange(t,s){this.page.page=1,this.onList(),s&&s()},onList(){this.loading=!0,typeof this.onLoad=="function"&&this.onLoad({page:this.page,data:this.search},t=>{this.page.total=t.total,this.data=t.data,this.loading=!1;const s=this.data.find(n=>n[this.valueKey]===this.object[this.valueKey]);setTimeout(()=>this.$refs.crud.setCurrentRow(s))})}}},__cssModules$1o={};var __component__$1o=normalizeComponent(__vue2_script$1o,render$1i,staticRenderFns$1i,!1,__vue2_injectStyles$1o,null,null,null);function __vue2_injectStyles$1o(t){for(let s in __cssModules$1o)this[s]=__cssModules$1o[s]}const FyInputTable=function(){return __component__$1o.exports}();var render$1h=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("ElSelect",{ref:"main",staticClass:"avue-input-tree",attrs:{size:t.size,multiple:t.multiple,"multiple-limit":t.limit,"collapse-tags":t.tags,value:t.labelShow,clearable:t.clearableVal,placeholder:t.placeholder,"popper-class":t.popperClass,"popper-append-to-body":t.popperAppendToBody,disabled:t.disabled},on:{click:t.handleClick,focus:t.handleFocus,blur:t.handleBlur,clear:t.handleClear}},[t.filter?n("div",{staticClass:"avue-input__filter"},[n("ElInput",{attrs:{size:"mini",placeholder:t.filterText},model:{value:t.filterValue,callback:function(r){t.filterValue=r},expression:"filterValue"}})],1):t._e(),n("ElOption",{attrs:{value:t.text}},[n("ElTree",{ref:"tree",staticClass:"avue-input__select",attrs:{data:t.dicList,lazy:t.lazy,load:t.handleTreeLoad,"node-key":t.valueKey,accordion:t.accordion,"icon-class":t.iconClass,"show-checkbox":t.multiple,"expand-on-click-node":t.expandOnClickNode,props:t.treeProps,"check-strictly":t.checkStrictly,"highlight-current":t.multiple!==!0,"current-node-key":t.currentNodeKey,"filter-node-method":t.filterNode,"default-checked-keys":t.keysList,"default-expanded-keys":t.defaultExpandedKeys?t.defaultExpandedKeys:t.keysList,"default-expand-all":t.defaultExpandAll},on:{check:t.checkChange,"node-click":function(r){return r.target!==r.currentTarget?null:t.handleNodeClick.apply(null,arguments)}},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.data;return n("div",{staticClass:"avue-input__item"},[t.$scopedSlots.default?t._t("default",null,{label:t.labelKey,value:t.valueKey,item:a}):[n("span",{class:{"avue--disabled":a[t.disabledKey]}},[t._v(t._s(a[t.labelKey]))]),a[t.descKey]?n("span",{staticClass:"avue-input__desc"},[t._v(t._s(a[t.descKey]))]):t._e()]],2)}}],null,!0)})],1)],1)},staticRenderFns$1h=[];const FyInputTree_vue_vue_type_style_index_0_lang="",__vue2_script$1n={name:"FyInputTree",mixins:[props,event],props:{nodeClick:Function,treeLoad:Function,checked:Function,lazy:{type:Boolean,default:!1},leafOnly:{type:Boolean,default:!1},tags:{type:Boolean,default:!1},limit:{type:Number,default:0},expandOnClickNode:{type:Boolean,default:!0},filter:{type:Boolean,default:!0},filterText:{type:String,default:""},checkStrictly:{type:Boolean,default:!1},accordion:{type:Boolean,default:!1},parent:{type:Boolean,default:!0},iconClass:String,defaultExpandedKeys:Array,defaultExpandAll:{type:Boolean,default:!1},popperAppendToBody:{type:Boolean,default:!0}},data(){return{node:[],filterValue:"",box:!1,dicList:[]}},computed:{treeProps(){return Object.assign(this.props,{isLeaf:this.leafKey})},currentNodeKey(){return this.multiple?"":this.text},keysList(){return this.multiple?this.text:[this.text||""]},labelShow(){return[...this.node].map(n=>this.getLabelText(n))}},watch:{text(){this.init()},dic:{handler(t){this.dicList=t},immediate:!0},dicList:{handler(){this.init()},immediate:!0},filterValue(t){this.$refs.tree.filter(t)}},methods:{handleClear(){this.text=this.multiple?[]:"",this.node=[],this.filterValue="",this.$refs.tree.setCurrentKey(null),this.$refs.tree.setCheckedKeys([])},handleTreeLoad(t,s){const n=r=>{const a=(o,l,c)=>{o.forEach(u=>{u[this.valueKey]===l?u[this.childrenKey]=c:u[this.childrenKey]&&a(u[this.childrenKey])})};a(this.dicList,t.key,r),s(r)};this.treeLoad&&this.treeLoad(t,n)},filterNode(t,s){return t?s[this.labelKey].toLowerCase().indexOf(t.toLowerCase())!==-1:!0},checkChange(t,s,n,r){this.text.splice(0,this.text.length),this.$refs.tree.getCheckedNodes(this.leafOnly,!1).forEach(o=>this.text.push(o[this.valueKey])),typeof this.checked=="function"&&this.checked(t,s,n,r)},getHalfList(){let t=this.$refs.tree.getCheckedNodes(!1,!0);return t=t.map(s=>s[this.valueKey]),t},init(){this.$nextTick(()=>{if(this.node=[],this.multiple)this.$refs.tree.getCheckedNodes(this.leafOnly,!1).forEach(s=>{this.node.push(s)});else{const t=this.$refs.tree.getNode(this.text);if(t){const s=t.data;this.$refs.tree.setCurrentKey(s[this.valueKey]),this.node.push(s)}}}),this.disabledParentNode(this.dic,this.parent)},disabledParentNode(t,s){t.forEach(n=>{const r=n[this.childrenKey];core.isBlank(r)||(s||(n.disabled=!0),this.disabledParentNode(r,s))})},handleNodeClick(t,s,n){t.disabled||(typeof this.nodeClick=="function"&&this.nodeClick(t,s,n),!this.multiple&&(core.isBlank(t[this.childrenKey])&&!this.multiple||this.parent)&&(this.text=t[this.valueKey],this.$refs.main.blur()))}}},__cssModules$1n={};var __component__$1n=normalizeComponent(__vue2_script$1n,render$1h,staticRenderFns$1h,!1,__vue2_injectStyles$1n,null,null,null);function __vue2_injectStyles$1n(t){for(let s in __cssModules$1n)this[s]=__cssModules$1n[s]}const FyInputTree=function(){return __component__$1n.exports}();var render$1g=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-progress"},[n("ElProgress",{attrs:{type:t.type,color:t.color,width:t.width,"text-inside":"","show-text":t.showText,"stroke-width":t.strokeWidth,percentage:t.percentage}})],1)},staticRenderFns$1g=[];const __vue2_script$1m={name:"FyProgress",props:{showText:{type:Boolean},width:{type:[Number,String]},strokeWidth:{type:[Number,String]},type:{type:String},color:{type:String},percentage:{type:[Number]}}},__cssModules$1m={};var __component__$1m=normalizeComponent(__vue2_script$1m,render$1g,staticRenderFns$1g,!1,__vue2_injectStyles$1m,null,null,null);function __vue2_injectStyles$1m(t){for(let s in __cssModules$1m)this[s]=__cssModules$1m[s]}const FyProgress=function(){return __component__$1m.exports}();var render$1f=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-radio"},[n("ElRadioGroup",{attrs:{size:t.size,disabled:t.disabled},nativeOn:{click:function(r){return t.handleClick.apply(null,arguments)}},model:{value:t.text,callback:function(r){t.text=r},expression:"text"}},t._l(t.dic,function(r,a){return n(t.componentName,{key:a,tag:"Component",attrs:{label:r[t.valueKey],border:t.border,readonly:t.readonly,disabled:r[t.disabledKey]}},[t._v(" "+t._s(r[t.labelKey])+" ")])}),1)],1)},staticRenderFns$1f=[];const FyRadio_vue_vue_type_style_index_0_lang="",__vue2_script$1l={name:"FyRadio",mixins:[props,event],props:{value:[String,Object,Number,Boolean,Array]},data(){return{name:"radio"}}},__cssModules$1l={};var __component__$1l=normalizeComponent(__vue2_script$1l,render$1f,staticRenderFns$1f,!1,__vue2_injectStyles$1l,null,null,null);function __vue2_injectStyles$1l(t){for(let s in __cssModules$1l)this[s]=__cssModules$1l[s]}const FyRadio=function(){return __component__$1l.exports}();var render$1e=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("ElRate",{attrs:{max:t.max,"low-threshold":t.lowThreshold,"high-threshold":t.highThreshold,"disabled-void-color":t.disabledVoidColor,"disabled-void-icon-class":t.disabledVoidIconClass,"allow-half":t.allowHalf,readonly:t.readonly,texts:t.texts,"show-score":t.showScore,"score-template":t.scoreTemplate,"show-text":t.showText,"icon-classes":t.iconClasses,"void-icon-class":t.voidIconClass,disabled:t.disabled,colors:t.colors},nativeOn:{click:function(r){return t.handleClick.apply(null,arguments)}},model:{value:t.text,callback:function(r){t.text=r},expression:"text"}})},staticRenderFns$1e=[];const FyRate_vue_vue_type_style_index_0_lang="",__vue2_script$1k={name:"FyRate",mixins:[props,event],props:{allowHalf:Boolean,lowThreshold:Number,highThreshold:Number,disabledVoidColor:String,disabledVoidIconClass:String,value:{type:Number,default:0},colors:{type:Array},max:{type:Number,default:5},iconClasses:{type:Array},texts:{type:Array},scoreTemplate:String,showScore:{type:Boolean,default:!1},showText:{type:Boolean,default:!1},voidIconClass:{type:String}},data(){return{}},watch:{},created(){},mounted(){},methods:{}},__cssModules$1k={};var __component__$1k=normalizeComponent(__vue2_script$1k,render$1e,staticRenderFns$1e,!1,__vue2_injectStyles$1k,null,null,null);function __vue2_injectStyles$1k(t){for(let s in __cssModules$1k)this[s]=__cssModules$1k[s]}const FyRate=function(){return __component__$1k.exports}();var render$1d=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("ElSelect",{ref:"main",staticClass:"avue-select",attrs:{size:t.size,loading:t.loading,"loading-text":t.loadingText,multiple:t.multiple,filterable:t.remote?!0:t.filterable,remote:t.remote,readonly:t.readonly,"no-match-text":t.noMatchText,"no-data-text":t.noDataText,"remote-method":t.remote?t.handleRemoteMethod:void 0,"popper-class":t.popperClass,"popper-append-to-body":t.popperAppendToBody,"collapse-tags":t.tags,clearable:t.clearableVal,placeholder:t.placeholder,"multiple-limit":t.limit,"allow-create":t.allowCreate,"default-first-option":t.defaultFirstOption,disabled:t.disabled},on:{focus:t.handleFocus,blur:t.handleBlur,change:t.changeSelect},nativeOn:{click:function(r){return t.handleClick.apply(null,arguments)}},model:{value:t.text,callback:function(r){t.text=r},expression:"text"}},[t.group?t._l(t.netDic,function(r,a){return n("ElOptionGroup",{key:a,attrs:{label:t.getLabelText(r)}},t._l(r[t.groupsKey],function(o,l){return n("ElOption",{key:l,attrs:{disabled:o[t.disabledKey],label:t.getLabelText(o),value:o[t.valueKey]}},[t.$scopedSlots.default?t._t("default",null,{label:t.labelKey,value:t.valueKey,item:o}):[n("span",[t._v(t._s(t.getLabelText(o)))]),o[t.descKey]?n("span",{staticClass:"avue-select__desc"},[t._v(t._s(o[t.descKey]))]):t._e()]],2)}),1)}):[t.all&&t.multiple?n("ElCheckbox",{staticClass:"avue-select__check",on:{change:t.selectAll},model:{value:t.checkAll,callback:function(r){t.checkAll=r},expression:"checkAll"}},[t._v(" 全选 ")]):t._e(),t._l(t.netDic,function(r,a){return n("ElOption",{key:a,attrs:{disabled:r[t.disabledKey],label:t.getLabelText(r),value:r[t.valueKey]}},[t.$scopedSlots.default?t._t("default",null,{label:t.labelKey,value:t.valueKey,item:r}):[n("span",[t._v(t._s(t.getLabelText(r)))]),r[t.descKey]?n("span",{staticClass:"avue-select__desc"},[t._v(t._s(r[t.descKey]))]):t._e()]],2)})]],2)},staticRenderFns$1d=[];const FySelect_vue_vue_type_style_index_0_lang="",__vue2_script$1j={name:"FySelect",mixins:[props,event],props:{loadingText:{type:String},noMatchText:{type:String},noDataText:{type:String},drag:{type:Boolean,default:!1},remote:{type:Boolean,default:!1},tags:{type:Boolean,default:!1},limit:{type:Number,default:0},filterable:{type:Boolean,default:!1},allowCreate:{type:Boolean,default:!1},defaultFirstOption:{type:Boolean,default:!1},all:{type:Boolean,default:!1},popperAppendToBody:{type:Boolean,default:!0}},data(){return{checkAll:!1,created:!1,netDic:[],loading:!1}},watch:{text(t){core.isBlank(t)||this.remote&&!this.created&&(this.created=!0,this.handleRemoteMethod(this.multiple?this.text.join(DIC_SPLIT):this.text))},dic:{handler(t){this.netDic=t},immediate:!0}},mounted(){this.drag&&this.setSort()},methods:{setSort(){if(!window.Sortable){packages.logs("Sortable");return}const t=this.$refs.main.$el.querySelectorAll(".el-select__tags > span")[0];window.Sortable.create(t,{animation:100,onEnd:s=>{const n=this.value.splice(s.oldIndex,1)[0];this.value.splice(s.newIndex,0,n)}})},handleRemoteMethod(t){this.loading=!0,sendDic({column:this.column,value:t}).then(s=>{this.loading=!1,this.netDic=s})},selectAll(){this.text=[],this.checkAll&&this.netDic.map(t=>{this.text.push(t[this.valueKey])})},changeSelect(t){this.checkAll=t.length===this.netDic.length}}},__cssModules$1j={};var __component__$1j=normalizeComponent(__vue2_script$1j,render$1d,staticRenderFns$1d,!1,__vue2_injectStyles$1j,null,null,null);function __vue2_injectStyles$1j(t){for(let s in __cssModules$1j)this[s]=__cssModules$1j[s]}const FySelect=function(){return __component__$1j.exports}();var render$1c=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("ElSlider",{attrs:{disabled:t.disabled,vertical:t.vertical,height:t.setPx(t.height),step:t.step,min:t.min,max:t.max,range:t.range,"show-stops":t.showStops,"show-tooltip":t.showTooltip,"show-input":t.showInput,"show-input-controls":t.showInputControls,"input-size":t.size,"tooltip-class":t.tooltipClass,marks:t.marks,"format-tooltip":t.formatTooltip},nativeOn:{click:function(r){return t.handleClick.apply(null,arguments)}},model:{value:t.text,callback:function(r){t.text=r},expression:"text"}})},staticRenderFns$1c=[];const __vue2_script$1i={name:"FySlider",mixins:[props,event],props:{step:Number,min:Number,max:Number,marks:Number,range:Boolean,showTooltip:Boolean,showInput:Boolean,showStops:Boolean,vertical:Boolean,formatTooltip:Function,height:String,showInputControls:Boolean,tooltipClass:String},methods:{setPx}},__cssModules$1i={};var __component__$1i=normalizeComponent(__vue2_script$1i,render$1c,staticRenderFns$1c,!1,__vue2_injectStyles$1i,null,null,null);function __vue2_injectStyles$1i(t){for(let s in __cssModules$1i)this[s]=__cssModules$1i[s]}const FySlider=function(){return __component__$1i.exports}();var render$1b=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("ElSwitch",{attrs:{"active-text":t.active[t.labelKey],"active-value":t.active[t.valueKey],"inactive-value":t.inactive[t.valueKey],"inactive-text":t.inactive[t.labelKey],"active-icon-class":t.activeIconClass,"inactive-icon-class":t.inactiveIconClass,"active-color":t.activeColor,"inactive-color":t.inactiveColor,width:t.len,disabled:t.disabled,readonly:t.readonly,size:t.size},nativeOn:{click:function(r){return t.handleClick.apply(null,arguments)}},model:{value:t.text,callback:function(r){t.text=r},expression:"text"}})},staticRenderFns$1b=[];const __vue2_script$1h={name:"FySwitch",mixins:[props,event],props:{value:[String,Object,Number,Boolean,Array],activeIconClass:String,inactiveIconClass:String,activeColor:String,inactiveColor:String,len:Number},computed:{active(){return this.dic[1]||{}},inactive(){return this.dic[0]||{}}}},__cssModules$1h={};var __component__$1h=normalizeComponent(__vue2_script$1h,render$1b,staticRenderFns$1b,!1,__vue2_injectStyles$1h,null,null,null);function __vue2_injectStyles$1h(t){for(let s in __cssModules$1h)this[s]=__cssModules$1h[s]}const FySwitch=function(){return __component__$1h.exports}();var render$1a=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-tabs"},[n("ElTabs",{attrs:{"tab-position":t.parentOption.position,type:t.parentOption.type},model:{value:t.active,callback:function(r){t.active=r},expression:"active"}},t._l(t.columnOption,function(r,a){return n("ElTabPane",{key:a,attrs:{name:`${a}`,disabled:r.disabled}},[n("span",{attrs:{slot:"label"},slot:"label"},[n("i",{class:r.icon}),t._v(" "+t._s(r.label)+" ")])])}),1)],1)},staticRenderFns$1a=[];const __vue2_script$1g={name:"FyTabs",props:{option:{type:Object,required:!0,default:()=>({})}},data(){return{active:"0"}},computed:{tabsObj(){return this.columnOption[this.active]},parentOption(){return this.option},columnOption(){return this.parentOption.column||[]}},watch:{active(){this.$emit("change",this.tabsObj)}},methods:{changeTabs(t){this.active=`${t}`}}},__cssModules$1g={};var __component__$1g=normalizeComponent(__vue2_script$1g,render$1a,staticRenderFns$1a,!1,__vue2_injectStyles$1g,null,null,null);function __vue2_injectStyles$1g(t){for(let s in __cssModules$1g)this[s]=__cssModules$1g[s]}const FyTabs=function(){return __component__$1g.exports}();var render$19=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-time"},[n(t.componentName,{tag:"Component",attrs:{"popper-class":t.popperClass,"is-range":t.isRange,size:t.size,editable:t.editable,"default-value":t.defaultValue,"range-separator":t.rangeSeparator,"arrow-control":t.arrowControl,"start-placeholder":t.startPlaceholder||"开始","end-placeholder":t.endPlaceholder||"结束",format:t.format,readonly:t.readonly,clearable:t.clearableVal,"picker-options":t.pickerOptions,"value-format":t.valueFormat,placeholder:t.placeholder,disabled:t.disabled},on:{change:t.handleChange},nativeOn:{click:function(r){return t.handleClick.apply(null,arguments)}},model:{value:t.text,callback:function(r){t.text=r},expression:"text"}})],1)},staticRenderFns$19=[];const __vue2_script$1f={name:"FyTime",mixins:[props,event],props:{editable:Boolean,startPlaceholder:String,endPlaceholder:String,rangeSeparator:String,defaultValue:[String,Array],pickerOptions:Object,valueFormat:String,arrowControl:Boolean,type:String,format:String},computed:{componentName(){const t=this.pickerOptions||{};return t.start||t.end||t.step?"elTimeSelect":"elTimePicker"},isRange(){return this.type==="timerange"}},watch:{text(){Array.isArray(this.text)&&core.isBlank(this.text)&&(this.text=this.text.join(","))}},methods:{}},__cssModules$1f={};var __component__$1f=normalizeComponent(__vue2_script$1f,render$19,staticRenderFns$19,!1,__vue2_injectStyles$1f,null,null,null);function __vue2_injectStyles$1f(t){for(let s in __cssModules$1f)this[s]=__cssModules$1f[s]}const FyTime=function(){return __component__$1f.exports}();var render$18=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-title"},[n("p",{style:t.styles},[t._v(" "+t._s(t.text)+" ")])])},staticRenderFns$18=[];const FyTitle_vue_vue_type_style_index_0_lang="",__vue2_script$1e={name:"FyTitle",mixins:[props,event],props:{styles:{type:Object,default:()=>({})}}},__cssModules$1e={};var __component__$1e=normalizeComponent(__vue2_script$1e,render$18,staticRenderFns$18,!1,__vue2_injectStyles$1e,null,null,null);function __vue2_injectStyles$1e(t){for(let s in __cssModules$1e)this[s]=__cssModules$1e[s]}const FyTitle=function(){return __component__$1e.exports}();var render$17=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-tree"},[t.optVal(t.option.filter,!0)?n("div",{staticClass:"avue-tree__filter"},[n("ElInput",{attrs:{placeholder:t.optVal(t.option.filterText,"输入关键字进行过滤"),size:t.size},model:{value:t.filterValue,callback:function(r){t.filterValue=r},expression:"filterValue"}}),t.optVal(t.option.addBtn,!0)?n("ElButton",{directives:[{name:"permission",rawName:"v-permission",value:t.getPermission("addBtn"),expression:"getPermission('addBtn')"}],attrs:{size:t.size,icon:"el-icon-plus"},on:{click:t.parentAdd}}):t._t("addBtn")],2):t._e(),n("ElScrollbar",{staticClass:"avue-tree__content"},[n("ElTree",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"tree",attrs:{data:t.data,lazy:t.lazy,load:t.treeLoad,props:t.treeProps,"icon-class":t.iconClass,indent:t.indent,"highlight-current":!t.multiple,"show-checkbox":t.multiple,accordion:t.accordion,"node-key":t.valueKey,"check-strictly":t.checkStrictly,"check-on-click-node":t.checkOnClickNode,"filter-node-method":t.filterNode,"expand-on-click-node":t.expandOnClickNode,"default-expand-all":t.defaultExpandAll,"default-expanded-keys":t.defaultExpandedKeys},on:{"check-change":t.handleCheckChange,"node-click":t.nodeClick,"node-contextmenu":t.nodeContextmenu},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.node,o=r.data;return t.$scopedSlots.default?t._t("default",null,{node:a,data:o}):n("span",{staticClass:"el-tree-node__label"},[n("span",[t._v(t._s(a.label))])])}}],null,!0)})],1),t.client.show&&t.menu?n("div",{staticClass:"el-cascader-panel is-bordered avue-tree__menu",style:t.styleName,on:{click:function(r){t.client.show=!1}}},[t.optVal(t.option.addBtn,!0)?n("div",{directives:[{name:"permission",rawName:"v-permission",value:t.getPermission("addBtn"),expression:"getPermission('addBtn')"}],staticClass:"avue-tree__item",on:{click:t.rowAdd}},[t._v(" "+t._s(t.menuIcon("addBtn"))+" ")]):t._e(),t.optVal(t.option.editBtn,!0)?n("div",{directives:[{name:"permission",rawName:"v-permission",value:t.getPermission("editBtn"),expression:"getPermission('editBtn')"}],staticClass:"avue-tree__item",on:{click:t.rowEdit}},[t._v(" "+t._s(t.menuIcon("editBtn"))+" ")]):t._e(),t.optVal(t.option.delBtn,!0)?n("div",{directives:[{name:"permission",rawName:"v-permission",value:t.getPermission("delBtn"),expression:"getPermission('delBtn')"}],staticClass:"avue-tree__item",on:{click:t.rowRemove}},[t._v(" "+t._s(t.menuIcon("delBtn"))+" ")]):t._e(),t._t("menu",null,{node:t.node})],2):t._e(),t.box?n("div",[n("ElementDialog",{attrs:{title:t.node[t.labelKey]||t.title,visible:t.box,"before-close":t.hide,width:t.optVal(t.option.dialogWidth,"50%")},on:{"update:visible":function(r){t.box=r}}},[n("FyForm",{ref:"form",attrs:{option:t.formOption},on:{submit:t.handleSubmit},model:{value:t.form,callback:function(r){t.form=r},expression:"form"}})],1)],1):t._e()],1)},staticRenderFns$17=[];const FyTree_vue_vue_type_style_index_0_lang="",__vue2_script$1d={name:"FyTree",directives:{permission},props:{indent:Number,filterNodeMethod:Function,checkOnClickNode:Boolean,beforeClose:Function,beforeOpen:Function,permission:{type:[Function,Object],default:()=>({})},iconClass:{type:String},loading:{type:Boolean,default:!1},expandOnClickNode:{type:Boolean,default:!1},option:{type:Object,default:()=>({})},data:{type:Array,default:()=>[]},value:{type:Object,default:()=>({})}},data(){return{filterValue:"",client:{x:0,y:0,show:!1},box:!1,type:"",node:{},form:{}}},computed:{styleName(){return{top:setPx(this.client.y-10),left:setPx(this.client.x-10)}},treeProps(){return Object.assign(this.props,{isLeaf:this.leafKey})},menu(){return optVal(this.option.menu,!0)},title(){return this.option.title||"添加"},treeLoad(){return this.option.treeLoad},checkStrictly(){return this.option.checkStrictly},accordion(){return this.option.accordion},multiple(){return this.option.multiple},lazy(){return this.option.lazy},addText(){return this.addFlag?this.menuIcon("addBtn"):this.menuIcon("updateBtn")},addFlag(){return["add","parentAdd"].includes(this.type)},size(){return this.option.size||"small"},props(){return this.option.props||{}},leafKey(){return this.props.leaf||DIC_PROPS.leaf},valueKey(){return this.props.value||DIC_PROPS.value},labelKey(){return this.props.label||DIC_PROPS.label},childrenKey(){return this.props.children||DIC_PROPS.children},nodeKey(){return this.option.nodeKey||DIC_PROPS.nodeKey},defaultExpandAll(){return this.option.defaultExpandAll},defaultExpandedKeys(){return this.option.defaultExpandedKeys},formOption(){return Object.assign(this.option.formOption||{},{submitText:this.addText})}},watch:{filterValue(t){this.$refs.tree.filter(t)},value(t){this.form=t},form(t){this.$emit("input",t),this.$emit("change",t)}},mounted(){document.addEventListener("click",t=>{this.$el.contains(t.target)||(this.client.show=!1)}),this.initFun()},methods:{optVal,menuIcon(t){return optVal(this.option[`${t}Text`],t)},getPermission(t){return typeof this.permission=="function"?this.permission(t,this.node.data||{}):core.isBlank(this.permission[t])?!0:this.permission[t]},initFun(){["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"].forEach(t=>{this[t]=this.$refs.tree[t]})},nodeContextmenu(t,s,n){this.node=n,this.client.x=t.clientX,this.client.y=t.clientY,this.client.show=!0},handleCheckChange(t,s,n){this.$emit("check-change",t,s,n)},handleSubmit(t,s){this.addFlag?this.save(t,s):this.update(t,s)},nodeClick(t,s,n){this.client.show=!1,this.$emit("node-click",t,s,n)},filterNode(t,s){return typeof this.filterNodeMethod=="function"?this.filterNodeMethod(t,s):t?s[this.labelKey].indexOf(t)!==-1:!0},hide(t){const s=()=>{t&&t(),this.node={},this.form={},this.box=!1};typeof this.beforeClose=="function"?this.beforeClose(s,this.type):s()},save(t,s){const n=r=>{r=r||this.form,this.type==="add"?this.$refs.tree.append(r,this.node.data[this.valueKey]):this.type==="parentAdd"&&this.$refs.tree.append(r),this.hide(),s()};this.$emit("save",this.node,t,n,s)},update(t,s){const n=r=>{r=r||this.form;const a=r[this.valueKey];this.node.data=this.form;const{parentList:o,index:l}=this.findData(a);if(o){const c=o.splice(l,1)[0];r[this.childrenKey]=c[this.childrenKey],o.splice(l,0,r)}this.hide(),s()};this.$emit("update",this.node,t,n,s)},rowEdit(){this.type="edit",this.form=this.node.data,this.show()},parentAdd(){this.type="parentAdd",this.show()},rowAdd(){this.type="add",this.show()},show(){const t=()=>{this.client.show=!1,this.box=!0};typeof this.beforeOpen=="function"?this.beforeOpen(t,this.type):t()},rowRemove(){this.client.show=!1;const t=()=>{this.$refs.tree.remove(this.node.data[this.valueKey])};this.$emit("del",this.node,t)},findData(t){let s={};const n=(r,a)=>{r.forEach((o,l)=>{o[this.valueKey]==t&&(s={item:o,index:l,parentList:r,parent:a}),o[this.childrenKey]&&n(o[this.childrenKey],o)})};return n(this.data),s}}},__cssModules$1d={};var __component__$1d=normalizeComponent(__vue2_script$1d,render$17,staticRenderFns$17,!1,__vue2_injectStyles$1d,null,null,null);function __vue2_injectStyles$1d(t){for(let s in __cssModules$1d)this[s]=__cssModules$1d[s]}const FyTree=function(){return __component__$1d.exports}(),getClient$1=t=>{const{region:s,endpoint:n,accessKeyId:r,accessKeySecret:a,bucket:o}=t;return new window.OSS({region:s,endpoint:n,accessKeyId:r,accessKeySecret:a,bucket:o})},getToken$1=(t,s,n)=>{let{scope:r,deadline:a}=n;var o=JSON.stringify({scope:r,deadline:a}),l=base64encode$1(utf16to8$1(o)),c=window.CryptoJS.HmacSHA1(l,s),u=c.toString(window.CryptoJS.enc.Base64),d=t+":"+safe64$1(u)+":"+l;return d};function utf16to8$1(t){var s,n,r,a;for(s="",r=t.length,n=0;n<r;n++)a=t.charCodeAt(n),a>=1&&a<=127?s+=t.charAt(n):a>2047?(s+=String.fromCharCode(224|a>>12&15),s+=String.fromCharCode(128|a>>6&63),s+=String.fromCharCode(128|a>>0&63)):(s+=String.fromCharCode(192|a>>6&31),s+=String.fromCharCode(128|a>>0&63));return s}var base64EncodeChars$1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1);function base64encode$1(t){var s,n,r,a,o,l;for(r=t.length,n=0,s="";n<r;){if(a=t.charCodeAt(n++)&255,n==r){s+=base64EncodeChars$1.charAt(a>>2),s+=base64EncodeChars$1.charAt((a&3)<<4),s+="==";break}if(o=t.charCodeAt(n++),n==r){s+=base64EncodeChars$1.charAt(a>>2),s+=base64EncodeChars$1.charAt((a&3)<<4|(o&240)>>4),s+=base64EncodeChars$1.charAt((o&15)<<2),s+="=";break}l=t.charCodeAt(n++),s+=base64EncodeChars$1.charAt(a>>2),s+=base64EncodeChars$1.charAt((a&3)<<4|(o&240)>>4),s+=base64EncodeChars$1.charAt((o&15)<<2|(l&192)>>6),s+=base64EncodeChars$1.charAt(l&63)}return s}var safe64$1=function(t){return t=t.replace(/\+/g,"-"),t=t.replace(/\//g,"_"),t},render$16=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-ueditor"},[n("div",{ref:"toolbar",staticClass:"fy-editor-toolbar"}),n("div",{ref:"editor",staticClass:"fy-editor"})])},staticRenderFns$16=[];const FyUEditor_vue_vue_type_style_index_0_lang="",__vue2_script$1c={name:"FyUEditor",props:{data:{type:Object,default:()=>({})},headers:{type:Object,default:()=>({})},customConfig:{type:Object,default:()=>({})},toolbarConfig:{type:Object,default:()=>({})},propsHttp:{type:Object,default:()=>({})},options:{type:Object,default:()=>({})},ali:{type:Object,default:()=>({})},qiniu:{type:Object,default:()=>({})},oss:String,action:String,disabled:{type:Boolean,default:!1},value:{type:String,default:""},placeholder:{type:String,default:""}},data(){return{editor:null}},computed:{fileName(){return this.propsHttp.fileName||"file"},homeUrl(){return this.propsHttp.home||""},resKey(){return this.propsHttp.res},urlKey(){return this.propsHttp.url||"url"},isQiniuOSS(){return this.oss==="qiniu"},isAliOSS(){return this.oss==="ali"}},watch:{disabled(t){t?this.editor.disable():this.editor.enable()},value(t){t?this.editor.setHtml(t):this.editor.clear()}},mounted(){this.initEdit()},beforeDestroy(){var t;(t=this.editor)==null||t.destroy()},methods:{initEdit(){const t="default",c=this.customConfig,{onFocus:s,onBlur:n,onChange:r}=c,a=R(c,["onFocus","onBlur","onChange"]),o=f({placeholder:this.placeholder,readOnly:this.disabled,MENU_CONF:{uploadImage:{customUpload:u=>v(this,null,function*(){const d=yield this.uploadFile(u);this.editor.dangerouslyInsertHtml(d)})},uploadVideo:{customUpload:u=>v(this,null,function*(){const d=yield this.uploadFile(u);this.editor.dangerouslyInsertHtml(d)})}},onFocus:()=>{this.$emit("focus",this.value)},onBlur:u=>{const d=u.getHtml();this.$emit("blur",d)},onChange:u=>{const d=u.getHtml();this.$emit("input",d)}},a);this.editor=Object.seal(editor.createEditor({selector:this.$refs.editor,config:o,html:this.value,mode:t}));const l=f({},this.toolbarConfig);this.toolbar=editor.createToolbar({editor:this.editor,selector:this.$refs.toolbar,config:l,mode:t})},uploadFile(t){return new Promise((s,n)=>{const r=Object.assign(this.headers,{"Content-Type":"multipart/form-data"});let a={},o;const l=new FormData;let c=this.action;if(l.append(this.fileName,t),Object.keys(this.data).forEach(u=>{l.append(u,this.data[u])}),this.isQiniuOSS){a=this.qiniu;const u=getToken$1(a.AK,a.SK,{scope:a.scope,deadline:new Date().getTime()+a.deadline*3600});l.append("token",u),c="http://up.qiniu.com/"}else this.isAliOSS&&(a=this.ali,o=getClient$1({region:a.region,endpoint:a.endpoint,accessKeyId:a.accessKeyId,accessKeySecret:a.accessKeySecret,bucket:a.bucket}));(()=>this.isAliOSS?o.put(t.name,t):this.$axios.post(c,l,{headers:r}))().then(u=>{let d;this.isAliOSS?d=u:this.isQiniuOSS?(d=u.data,d.key=a.url+d.key):typeof this.resKey=="function"?d=this.resKey(u.data):(d=getAsVal(u.data,this.resKey),d=d[this.urlKey]);const p=this.homeUrl+d;s(p)}).catch(u=>{n(u)})})},getUEContent(){return this.editor.getHtml()}}},__cssModules$1c={};var __component__$1c=normalizeComponent(__vue2_script$1c,render$16,staticRenderFns$16,!1,__vue2_injectStyles$1c,null,null,null);function __vue2_injectStyles$1c(t){for(let s in __cssModules$1c)this[s]=__cssModules$1c[s]}const FyUEditor=function(){return __component__$1c.exports}();let canvas,ctx;const configDefault={width:200,height:200},config={text:"avueJS",fontFamily:"microsoft yahei",color:"#999",fontSize:16,opacity:100,bottom:10,right:10,ratio:1};function fileToBase64$1(t,s){const n=new FileReader;n.readAsDataURL(t),n.onload=function(r){s(r.target.result)}}function detailImg(t,s={},n){const{text:r,fontFamily:a,color:o,fontSize:l,opacity:c,bottom:u,right:d,ratio:p}=s;h(),fileToBase64$1(t,m);function h(){config.text=r||config.text,config.fontFamily=a||config.fontFamily,config.color=o||config.color,config.fontSize=l||config.fontSize,config.opacity=c||config.opacity,config.bottom=u||config.bottom,config.right=d||config.right,config.ratio=p||config.ratio}function m(g){const y=new Image;y.src=g,y.onload=function(){const C=y.width,$=y.height;_(C,$),ctx.drawImage(y,0,0,C,$),x(C,$);const w=document.getElementById("canvas").toDataURL(t.type,config.ratio),E=dataURLtoFile(w,t.name);n&&n(E)}}function _(g,y){canvas=document.getElementById("canvas"),canvas===null&&(canvas=document.createElement("canvas"),canvas.id="canvas",canvas.className="avue-canvas",document.body.appendChild(canvas)),ctx=canvas.getContext("2d"),canvas.width=g,canvas.height=y}function x(g,y){const C=config.text,$=b(C,g,y);ctx.font=`${$.fontSize}px ${config.fontFamily}`,ctx.fillStyle=config.color,ctx.globalAlpha=config.opacity/100,ctx.fillText(C,$.x,$.y)}function b(g,y,C){let $,w;const k=config.fontSize/configDefault.width*y;config.bottom?w=configDefault.height-config.bottom:w=config.top,config.right?$=configDefault.width-config.right:$=config.left,ctx.font=`${config.fontSize}px ${config.fontFamily}`;const M=Number(ctx.measureText(g).width);$=$-M;const I=$/configDefault.width,T=w/configDefault.height;return $=I*y,w=T*C,{x:$,y:w,fontSize:k}}}const getToken=(t,s,n)=>{const r=JSON.stringify(n);window.__ENV__==="development"&&console&&console.log("put_policy = ",r);const a=base64encode(utf16to8(r));window.__ENV__==="development"&&console&&console.log("encoded = ",a);const l=CryptoJS.HmacSHA1(a,s).toString(CryptoJS.enc.Base64);window.__ENV__==="development"&&console&&console.log("encoded_signed=",l);const c=`${t}:${safe64(l)}:${a}`;return window.__ENV__==="development"&&console&&console.log("upload_token=",c),c};function utf16to8(t){let s,n,r;s="";const a=t.length;for(n=0;n<a;n++)r=t.charCodeAt(n),r>=1&&r<=127?s+=t.charAt(n):r>2047?(s+=String.fromCharCode(224|r>>12&15),s+=String.fromCharCode(128|r>>6&63),s+=String.fromCharCode(128|r>>0&63)):(s+=String.fromCharCode(192|r>>6&31),s+=String.fromCharCode(128|r>>0&63));return s}const base64EncodeChars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";function base64encode(t){let s,n,r,a,o,l;for(r=t.length,n=0,s="";n<r;){if(a=t.charCodeAt(n++)&255,n==r){s+=base64EncodeChars.charAt(a>>2),s+=base64EncodeChars.charAt((a&3)<<4),s+="==";break}if(o=t.charCodeAt(n++),n==r){s+=base64EncodeChars.charAt(a>>2),s+=base64EncodeChars.charAt((a&3)<<4|(o&240)>>4),s+=base64EncodeChars.charAt((o&15)<<2),s+="=";break}l=t.charCodeAt(n++),s+=base64EncodeChars.charAt(a>>2),s+=base64EncodeChars.charAt((a&3)<<4|(o&240)>>4),s+=base64EncodeChars.charAt((o&15)<<2|(l&192)>>6),s+=base64EncodeChars.charAt(l&63)}return s}const safe64=function(t){return t=t.replace(/\+/g,"-"),t=t.replace(/\//g,"_"),t},getClient=t=>new OSS(t);var render$15=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{directives:[{name:"loading",rawName:"v-loading.lock",value:t.loading,expression:"loading",modifiers:{lock:!0}}],staticClass:"avue-upload",attrs:{"element-loading-text":t.loadText}},[n("ElUpload",{key:t.reload,class:{"avue-upload--list":t.listType==="picture-img","avue-upload--upload":t.disabled},attrs:{action:t.action,"on-remove":t.handleRemove,accept:t.acceptList,"before-remove":t.beforeRemove,multiple:t.multiple,"on-preview":t.handlePreview,limit:t.limit,"http-request":t.httpUpload,readonly:t.readonly,drag:t.dragFile,"show-file-list":t.isPictureImg?!1:t.showFileList,"list-type":t.listType,"on-change":t.handleFileChange,"on-exceed":t.handleExceed,disabled:t.disabled,"file-list":t.fileList},nativeOn:{click:function(r){return t.handleClick.apply(null,arguments)}},scopedSlots:t._u([{key:"tip",fn:function(){return[n("div",{staticClass:"el-upload__tip",domProps:{innerHTML:t._s(t.tip)}})]},proxy:!0},{key:"file",fn:function(r){var a=r.file;return[t.$scopedSlots.default?t._t("default",null,{file:a}):t.listType==="picture-card"?n("span",[t.isMediaType(a.url)?n(a.type,{tag:"Component",staticClass:"el-upload-list__item-thumbnail",attrs:{src:a.url}}):n("i",{staticClass:"avue-upload__avatar el-icon-document"}),n("span",{staticClass:"el-upload-list__item-actions"},[n("span",{staticClass:"el-upload-list__item-preview"},[n("i",{staticClass:"el-icon-zoom-in",on:{click:function(o){return o.stopPropagation(),t.handlePreview(a)}}})]),n("span",{staticClass:"el-upload-list__item-delete"},[t.disabled?t._e():n("i",{staticClass:"el-icon-delete",on:{click:function(o){return o.stopPropagation(),t.handleRemove(a)}}})])])],1):t.listType==="picture"?n("span",{on:{click:function(o){return o.stopPropagation(),t.handlePreview(a)}}},[n(a.type,{tag:"Component",staticClass:"el-upload-list__item-thumbnail",attrs:{src:a.url}}),n("a",{staticClass:"el-upload-list__item-name"},[n("i",{staticClass:"el-icon-document"}),t._v(" "+t._s(a.name)+" ")]),n("i",{staticClass:"el-icon-close",on:{click:function(o){return o.stopPropagation(),t.handleRemove(a)}}})],1):n("span",{on:{click:function(o){return o.stopPropagation(),t.handlePreview(a)}}},[n("a",{staticClass:"el-upload-list__item-name"},[n("i",{staticClass:"el-icon-document"}),t._v(" "+t._s(a.name)+" ")]),t.disabled?t._e():n("i",{staticClass:"el-icon-close",on:{click:function(o){return o.stopPropagation(),t.handleRemove(a)}}})])]}}],null,!0)},[t.listType==="picture-card"?[n("i",{staticClass:"el-icon-plus"})]:t.listType==="picture-img"?[t.$scopedSlots.default?t._t("default",null,{file:{url:t.imgUrl}}):[t.isMediaType(t.imgUrl)?n(t.isMediaType(t.imgUrl),{tag:"Component",staticClass:"avue-upload__avatar",attrs:{src:t.imgUrl},on:{mouseover:function(r){t.menu=!0}}}):t.imgUrl?n("i",{staticClass:"avue-upload__avatar el-icon-document",on:{mouseover:function(r){t.menu=!0}}}):n("i",{staticClass:"el-icon-plus avue-upload__avatar"}),t.menu?n("div",{staticClass:"el-upload-list__item-actions avue-upload__menu",on:{mouseover:function(r){t.menu=!0},mouseout:function(r){t.menu=!1},click:function(r){r.stopPropagation()}}},[n("i",{staticClass:"el-icon-zoom-in",on:{click:function(r){return r.stopPropagation(),t.handlePreview({url:t.imgUrl})}}}),t.disabled?t._e():n("i",{staticClass:"el-icon-delete",on:{click:function(r){return r.stopPropagation(),t.handleDelete(t.imgUrl)}}})]):t._e()]]:t.dragFile?[n("i",{staticClass:"el-icon-upload"}),n("div",{staticClass:"el-upload__text"},[n("em",[t._v(t._s(t.fileText||"上传"))])])]:[n("ElButton",{attrs:{icon:"el-icon-upload",size:t.size,type:"primary"}},[t._v(" "+t._s(t.fileText||"上传")+" ")])]],2)],1)},staticRenderFns$15=[];const FyUpload_vue_vue_type_style_index_0_lang="";function getFileUrl(t,s=""){return s.match(/(^http:\/\/|^https:\/\/|^\/\/|data:image\/)/)?s:t+s}const __vue2_script$1b={name:"FyUpload",mixins:[props,event],props:{qiniu:Object,ali:Object,data:{type:Object,default:()=>({})},showFileList:{type:Boolean,default:!0},fileText:String,fileType:{type:String},oss:{type:String},limit:{type:Number},headers:{type:Object,default:()=>({})},accept:{type:[String,Array],default:""},canvasOption:{type:Object,default:()=>({})},cropperOption:{type:Object,default:()=>({})},fileSize:{type:Number},dragFile:{type:Boolean,default:!1},drag:{type:Boolean,default:!1},loadText:{type:String,default:"Loading..."},action:{type:String,default:""},uploadBefore:Function,uploadAfter:Function,uploadDelete:Function,uploadPreview:Function,uploadError:Function,uploadExceed:Function,httpRequest:Function},data(){return{res:"",loading:!1,menu:!1,reload:Math.random()}},computed:{isObject(){return typeof this.text[0]=="object"},acceptList(){return Array.isArray(this.accept)?this.accept.join(","):this.accept},homeUrl(){return this.propsHttp.home||""},fileName(){return this.propsHttp.fileName||"file"},isAliOss(){return this.oss==="ali"},isQiniuOss(){return this.oss==="qiniu"},isPictureImg(){return this.listType==="picture-img"},imgUrl(){return core.isBlank(this.text)?null:getFileUrl(this.homeUrl,this.text[0])},fileList(){const t=[];return(this.text||[]).forEach((s,n)=>{if(s){const r=this.isObject?s[this.labelKey]:s.substring(s.lastIndexOf("/")+1);let a=this.isObject?s[this.valueKey]:s;a=getFileUrl(this.homeUrl,a),t.push({uid:`${n}`,status:"done",type:this.isMediaType(a),name:r,url:a})}}),t}},mounted(){this.drag&&this.setSort()},methods:{isMediaType(t){return isMediaType(t,this.fileType)},setSort(){if(!window.Sortable){packages$1.logs("Sortable");return}const t=this.$el.querySelectorAll(".avue-upload > ul")[0];window.Sortable.create(t,{animation:100,onEnd:s=>{const n=this.text.splice(s.oldIndex,1)[0];this.text.splice(s.newIndex,0,n),this.reload=Math.random(),this.$nextTick(()=>this.setSort())}})},handleSuccess(t){if(this.isPictureImg)this.text.splice(0,1,t[this.urlKey]);else if(this.isObject){const s={};s[this.labelKey]=t[this.nameKey],s[this.valueKey]=t[this.urlKey],this.text.push(s)}else this.text.push(t[this.urlKey])},handleRemove(t){this.beforeRemove(t).then(()=>{this.delete(t)})},handleError(t){this.uploadError&&this.uploadError(t,this.column)},delete(t){(this.text||[]).forEach((s,n)=>{const r=this.isObject?s[this.valueKey]:s;getFileUrl(this.homeUrl,r)===t.url&&this.text.splice(n,1)})},show(t){this.loading=!1,this.res=t||this.res,this.handleSuccess(this.res)},hide(t){this.loading=!1,t&&this.handleError(t)},handleFileChange(t,s){s.splice(s.length-1,1)},httpUpload(t){if(typeof this.httpRequest=="function"){this.httpRequest(t);return}this.loading=!0;let s=t.file;const n=s.size/1024;if(!core.isBlank(n)&&n>this.fileSize){this.hide("文件太大不符合");return}const r=Object.assign(this.headers,{"Content-Type":"multipart/form-data"});let a={},o={};const l=new FormData,c=()=>{const d=p=>{let h=this.action;for(const _ in this.data)l.append(_,this.data[_]);const m=p||s;if(l.append(this.fileName,m),this.isQiniuOss){if(!window.CryptoJS){packages$1.logs("CryptoJS"),this.hide();return}a=this.qiniu||this.$AVUE.qiniu;const _=getToken(a.AK,a.SK,{scope:a.scope,deadline:new Date().getTime()+a.deadline*3600});l.append("token",_),h=a.bucket}else if(this.isAliOss){if(!window.OSS){packages$1.logs("AliOSS"),this.hide();return}a=this.ali||this.$AVUE.ali,o=getClient(a)}(()=>this.isAliOss?o.put(m.name,m,{headers:this.headers}):this.$axios.post(h,l,{headers:r}))().then(_=>{this.res={},this.isQiniuOss&&(_.data.key=a.url+_.data.key),this.res=getAsVal(this.isAliOss?_:_.data,this.resKey),typeof this.uploadAfter=="function"?this.uploadAfter(this.res,this.show,this.hide,this.column):this.show()}).catch(_=>{this.hide(_)})};typeof this.uploadBefore=="function"?this.uploadBefore(s,d,this.hide,this.column):d()};if(isMediaType(s.name)!=="img"){c();return}const u=()=>{core.isBlank(this.canvasOption)?c():detailImg(s,this.canvasOption,d=>{s=d,c()})};core.isBlank(this.cropperOption)?u():fileToBase64$1(s,d=>{const p=Object.assign(this.cropperOption,{img:d,type:"file",callback:h=>{s=h,u()},cancel:()=>{this.loading=!1}});this.$ImageCropper(p)})},handleExceed(t,s){this.uploadExceed&&this.uploadExceed(this.limit,t,s,this.column)},handlePreview(t){const s=()=>{const n=this.fileList.findIndex(r=>r.url===t.url);this.$ImagePreview(this.fileList,n)};typeof this.uploadPreview=="function"?this.uploadPreview(t,this.column,s):s()},handleDelete(t){this.beforeRemove(t).then(()=>{this.text=[],this.menu=!1})},beforeRemove(t){return typeof this.uploadDelete=="function"?this.uploadDelete(t,this.column):Promise.resolve()}}},__cssModules$1b={};var __component__$1b=normalizeComponent(__vue2_script$1b,render$15,staticRenderFns$15,!1,__vue2_injectStyles$1b,null,null,null);function __vue2_injectStyles$1b(t){for(let s in __cssModules$1b)this[s]=__cssModules$1b[s]}const FyUpload=function(){return __component__$1b.exports}();var render$14=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("ElSteps",{staticClass:"guide-steps",attrs:{"align-center":""}},t._l(t.steps,function(r,a){return n("ElStep",{key:r.label,class:[{"current important":t.value===a,disabled:!t.available(a),available:!t.ready[a]&&t.available(a)}],attrs:{status:t.ready[a]?"success":"",title:r.label},nativeOn:{click:function(o){return t.activeStep(a)}}})}),1)},staticRenderFns$14=[];const GuideSteps_vue_vue_type_style_index_0_lang="",__vue2_script$1a={name:"GuideSteps",props:{value:{type:Number,default:0},steps:{type:Array,default:()=>[]}},data(){return{ready:[]}},watch:{steps:{immediate:!0,deep:!0,handler(t){this.ready=t!=null&&t.length?t.map(()=>!1):[]}}},methods:{activeStep(t){t!==0&&!this.available(t)||this.$emit("input",t)},setReady(t,s){t<this.ready.length&&this.$set(this.ready,t,s)},available(t){let s=!0;if(t>0&&t<this.ready.length){for(let n=0;n<t;n++)if(!this.ready[n]){s=!1;break}}return s}}},__cssModules$1a={};var __component__$1a=normalizeComponent(__vue2_script$1a,render$14,staticRenderFns$14,!1,__vue2_injectStyles$1a,null,null,null);function __vue2_injectStyles$1a(t){for(let s in __cssModules$1a)this[s]=__cssModules$1a[s]}const GuideSteps=function(){return __component__$1a.exports}();var render$13=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-crud__menu"},[t.optVal(t.crud.tableOption.menuLeft,!0)?n("div",{staticClass:"avue-crud__left"},[t.optVal(t.crud.tableOption.addBtn,t.config.addBtn)?n("ElButton",{directives:[{name:"permission",rawName:"v-permission",value:t.crud.getPermission("addBtn"),expression:"crud.getPermission('addBtn')"}],attrs:{type:"primary",icon:t.crud.getBtnIcon("addBtn"),size:t.crud.isMediumSize},on:{click:t.crud.rowAdd}},[t.crud.isIconMenu?t._e():[t._v(" "+t._s(t.crud.menuIcon("addBtn"))+" ")]],2):t._e(),t.optVal(t.crud.tableOption.addRowBtn,t.config.addRowBtn)?n("ElButton",{directives:[{name:"permission",rawName:"v-permission",value:t.crud.getPermission("addRowBtn"),expression:"crud.getPermission('addRowBtn')"}],attrs:{type:"primary",icon:t.crud.getBtnIcon("addBtn"),size:t.crud.isMediumSize},on:{click:t.crud.rowCellAdd}},[t.crud.isIconMenu?t._e():[t._v(" "+t._s(t.crud.menuIcon("addBtn"))+" ")]],2):t._e(),t._t("menuLeft",null,{size:t.crud.isMediumSize})],2):t._e(),t.optVal(t.crud.tableOption.menuRight,!0)?n("div",{staticClass:"avue-crud__right"},[t.optVal(t.crud.tableOption.dateBtn,t.config.dateBtn)?n("FyDate",{staticStyle:{display:"inline-block","margin-right":"20px"},attrs:{type:"datetimerange","value-format":"yyyy-MM-dd HH:mm:ss",format:"yyyy-MM-dd HH:mm:ss","picker-options":t.pickerOptions,size:t.crud.isMediumSize},on:{change:t.dateChange}}):t._e(),t._t("menuRight",null,{size:t.crud.isMediumSize}),t.optVal(t.crud.tableOption.excelBtn,t.config.excelBtn)?n("ElButton",{directives:[{name:"permission",rawName:"v-permission",value:t.crud.getPermission("excelBtn"),expression:"crud.getPermission('excelBtn')"}],attrs:{icon:t.crud.getBtnIcon("excelBtn"),circle:"",size:t.crud.isMediumSize},on:{click:t.rowExcel}}):t._e(),t.optVal(t.crud.tableOption.printBtn,t.config.printBtn)?n("ElButton",{directives:[{name:"permission",rawName:"v-permission",value:t.crud.getPermission("printBtn"),expression:"crud.getPermission('printBtn')"}],attrs:{icon:t.crud.getBtnIcon("printBtn"),circle:"",size:t.crud.isMediumSize},on:{click:t.rowPrint}}):t._e(),t.optVal(t.crud.tableOption.refreshBtn,t.config.refreshBtn)?n("ElButton",{directives:[{name:"permission",rawName:"v-permission",value:t.crud.getPermission("refreshBtn"),expression:"crud.getPermission('refreshBtn')"}],attrs:{icon:t.crud.getBtnIcon("refreshBtn"),circle:"",size:t.crud.isMediumSize},on:{click:t.crud.refreshChange}}):t._e(),t.optVal(t.crud.tableOption.columnBtn,t.config.columnBtn)?n("ElButton",{directives:[{name:"permission",rawName:"v-permission",value:t.crud.getPermission("columnBtn"),expression:"crud.getPermission('columnBtn')"}],attrs:{icon:t.crud.getBtnIcon("columnBtn"),circle:"",size:t.crud.isMediumSize},on:{click:function(r){return t.crud.$refs.dialogColumn.handleShow()}}}):t._e(),(t.crud.$refs.headerSearch||{}).searchFlag&&t.optVal(t.crud.tableOption.searchShowBtn,!0)?n("ElButton",{attrs:{icon:t.crud.getBtnIcon("searchBtn"),circle:"",size:t.crud.isMediumSize},on:{click:function(r){return t.crud.$refs.headerSearch.handleSearchShow()}}}):t._e(),t.optVal(t.crud.tableOption.filterBtn,t.config.filterBtn)?n("ElButton",{directives:[{name:"permission",rawName:"v-permission",value:t.crud.getPermission("filterBtn"),expression:"crud.getPermission('filterBtn')"}],attrs:{icon:t.crud.getBtnIcon("filterBtn"),circle:"",size:t.crud.isMediumSize},on:{click:function(r){return t.crud.$refs.dialogFilter.handleShow()}}}):t._e()],2):t._e()])},staticRenderFns$13=[];const __vue2_script$19={name:"HeaderMenu",directives:{permission},inject:["crud"],data(){return{dateCreate:!1,pickerOptions:{shortcuts:[{text:"今日",onClick(t){const s=new Date,n=new Date;n.setTime(n.getTime()),t.$emit("pick",[n,s])}},{text:"昨日",onClick(t){const s=new Date,n=new Date;n.setTime(n.getTime()-3600*1e3*24*1),t.$emit("pick",[n,s])}},{text:"最近一周",onClick(t){const s=new Date,n=new Date;n.setTime(n.getTime()-3600*1e3*24*7),t.$emit("pick",[n,s])}},{text:"最近一个月",onClick(t){const s=new Date,n=new Date;n.setTime(n.getTime()-3600*1e3*24*30),t.$emit("pick",[n,s])}},{text:"最近三个月",onClick(t){const s=new Date,n=new Date;n.setTime(n.getTime()-3600*1e3*24*90),t.$emit("pick",[n,s])}}]},config:config$1}},created(){this.initFun()},methods:{optVal,dateChange(t){this.dateCreate?this.crud.$emit("date-change",t):this.dateCreate=!0},initFun(){this.crud.rowExcel=this.rowExcel,this.crud.rowPrint=this.rowPrint},rowExcel(){this.crud.$refs.dialogExcel.handleShow()},rowPrint(){this.$Print(this.crud.$refs.table)}}},__cssModules$19={};var __component__$19=normalizeComponent(__vue2_script$19,render$13,staticRenderFns$13,!1,__vue2_injectStyles$19,null,null,null);function __vue2_injectStyles$19(t){for(let s in __cssModules$19)this[s]=__cssModules$19[s]}const HeaderMenu=function(){return __component__$19.exports}();var render$12=function(){var t=this,s=t.$createElement,n=t._self._c||s;return t.searchFlag?n("ElCard",{directives:[{name:"show",rawName:"v-show",value:t.searchShow&&t.searchFlag,expression:"searchShow && searchFlag"}],staticClass:"avue-crud__search",attrs:{shadow:t.crud.isCard}},[t._t("search",null,{row:t.searchForm,search:t.searchForm,size:t.crud.controlSize}),n("FyForm",{ref:"form",attrs:{option:t.option},on:{submit:t.searchChange,"reset-change":t.resetChange},scopedSlots:t._u([{key:"menuForm",fn:function(r){return[t._t("searchMenu",null,null,Object.assign(r,{search:t.searchForm,row:t.searchForm})),t.isSearchIcon?[t.show===!1?n("ElButton",{attrs:{type:"text",icon:"el-icon-arrow-down"},on:{click:function(a){t.show=!0}}},[t._v(" 展 开 ")]):t._e(),t.show===!0?n("ElButton",{attrs:{type:"text",icon:"el-icon-arrow-up"},on:{click:function(a){t.show=!1}}},[t._v(" 收 缩 ")]):t._e()]:t._e()]}},t._l(t.crud.searchSlot,function(r){return{key:t.getSlotName(r),fn:function(a){return[t._t(r,null,null,Object.assign(a,{search:t.searchForm,row:t.searchForm}))]}}})],null,!0),model:{value:t.searchForm,callback:function(r){t.searchForm=r},expression:"searchForm"}})],2):t._e()},staticRenderFns$12=[];const __vue2_script$18={name:"HeaderSearch",mixins:[slot],inject:["crud"],props:{search:Object},data(){return{show:!1,searchIndex:2,searchShow:!0}},computed:{searchForm:{get(){return this.crud.search},set(t){this.crud.$emit("update:search",t)}},option(){const t=this.crud.option,s=(r=[])=>{r=deepClone(r);const a=[];let o=0;return r=r.sort((l,c)=>(c.searchOrder||0)-(l.searchOrder||0)),r.forEach(l=>{if(l.search){const c=o<this.searchIndex,u={};Object.keys(l).forEach(d=>{const p="search";if(d!="searchProp"&&d.includes(p)){let h=d.replace(p,"");if(h.length==0)return;h=h.replace(h[0],h[0].toLowerCase()),u[h]=l[d]}}),l=Object.assign(l,u,{type:getSearchType(l),detail:!1,dicFlag:l.cascader?!0:optVal(l.dicFlag,!1),span:l.searchSpan||t.searchSpan||config$1.searchSpan,control:l.searchControl,gutter:l.searchGutter||t.searchGutter||config$1.searchGutter,labelWidth:l.searchLabelWidth||t.searchLabelWidth||config$1.searchLabelWidth,labelPosition:l.searchLabelPosition||t.searchLabelPosition,size:l.searchSize||t.searchSize,value:l.searchValue,rules:l.searchRules,row:l.searchRow,bind:l.searchBin,disabled:l.searchDisabled,readonly:l.searchReadonly,display:this.isSearchIcon?this.show?!0:c:!0}),a.push(l),o=o+1}}),a};return(r=>{let a=deepClone(r);return a.column=s(this.crud.propOption),a=Object.assign(a,{rowKey:t.searchRowKey||"null",tabs:!1,group:!1,printBtn:!1,mockBtn:!1,filterDic:t.searchFilterDic,filterNull:t.searchFilterNull,filterParam:t.searchFilterParam,enter:t.searchEnter,size:t.searchSize,submitText:t.searchBtnText||"搜 索",submitBtn:optVal(t.searchBtn,config$1.searchSubBtn),submitIcon:this.crud.getBtnIcon("searchBtn"),emptyText:t.emptyBtnText||"清 空",emptyBtn:optVal(t.emptyBtn,config$1.emptyBtn),emptyIcon:this.crud.getBtnIcon("emptyBtn"),menuSpan:(()=>this.show||!this.isSearchIcon||t.searchMenuSpan<6?t.searchMenuSpan:6)(),menuPosition:t.searchMenuPosition||"center",dicFlag:!1,dicData:this.crud.DIC}),a})(t)},isSearchIcon(){return optVal(this.crud.option.searchIcon,this.$AVUE.searchIcon)&&this.searchLen>this.searchIndex},searchLen(){let t=0;return this.crud.propOption.forEach(s=>{s.search&&t++}),t},searchFlag(){return!!this.crud.$scopedSlots.search||this.searchLen!==0}},watch:{"crud.propOption":{handler(){this.dataFormat()},deep:!0},show(){this.crud.getTableHeight()},searchShow(){this.crud.getTableHeight()},option:{immediate:!0,deep:!0,handler(){var t;this.searchIndex=((t=this.option)==null?void 0:t.searchIndex)||2}}},created(){this.initFun(),this.dataFormat()},methods:{initFun(){["searchReset","searchChange"].forEach(t=>this.crud[t]=this[t])},getSlotName(t){return t.replace("Search","")},searchChange(t,s){t=filterParams(t),this.crud.propOption.forEach(n=>{n.searchProp&&(t[n.searchProp]=t[n.prop],delete t[n.prop])}),this.crud.$emit("search-change",t,s)},resetChange(){this.crud.$emit("search-reset",this.searchForm)},searchReset(){this.$refs.form.resetForm()},handleSearchShow(){this.searchShow=!this.searchShow},dataFormat(){const t=this.crud.option;this.searchShow=optVal(t.searchShow,config$1.searchShow)}}},__cssModules$18={};var __component__$18=normalizeComponent(__vue2_script$18,render$12,staticRenderFns$12,!1,__vue2_injectStyles$18,null,null,null);function __vue2_injectStyles$18(t){for(let s in __cssModules$18)this[s]=__cssModules$18[s]}const HeaderSearch=function(){return __component__$18.exports}();var render$11=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("pre",{staticClass:"highlight-js"},[n("code",{class:t.className,domProps:{innerHTML:t._s(t.highlighted.value)}})])},staticRenderFns$11=[];const HighlightJS_vue_vue_type_style_index_0_lang="",__vue2_script$17={name:"HighlightJS",props:{language:String,code:String,autodetect:Boolean},data:function(){return{detectedLanguage:""}},computed:{className(){return this.detectedLanguage?`hljs ${this.detectedLanguage}`:""},highlighted(){if(!this.language&&!hljs.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`),{language:"",value:core.escapeHtml(this.code)};let t={};return!this.language||this.autodetect?t=hljs.highlightAuto(this.code):t=hljs.highlight(this.code,{language:this.language,ignoreIllegals:this.ignoreIllegals}),t},ignoreIllegals(){return!0}},watch:{"highlighted.language":{immediate:!0,handler(t){this.detectedLanguage=t}}}},__cssModules$17={};var __component__$17=normalizeComponent(__vue2_script$17,render$11,staticRenderFns$11,!1,__vue2_injectStyles$17,null,null,null);function __vue2_injectStyles$17(t){for(let s in __cssModules$17)this[s]=__cssModules$17[s]}const HighlightJS=function(){return __component__$17.exports}();var render$10=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{class:["icon-card","flex-row",t.iconBg]},[n("div",{staticClass:"card-icon_bg"},[n("i",{class:["card-icon",t.icon]})]),n("div",{staticClass:"flex-item"},[n("p",{staticClass:"icon-card_title"},[t._t("default")],2),n("div",{staticClass:"icon-card_num"},[n("span",{staticClass:"icon-card_color",on:{click:t.toDetails}},[t._v(t._s(t.number))]),t._t("nuit")],2)])])},staticRenderFns$10=[];const IconCard_vue_vue_type_style_index_0_lang="",__vue2_script$16={name:"IconCard",props:{iconBg:{type:String,default:"blue"},icon:{type:String,default:"el-icon-s-custom"},path:String,number:Number},methods:{toDetails(){this.$router.push(this.path)}}},__cssModules$16={};var __component__$16=normalizeComponent(__vue2_script$16,render$10,staticRenderFns$10,!1,__vue2_injectStyles$16,null,null,null);function __vue2_injectStyles$16(t){for(let s in __cssModules$16)this[s]=__cssModules$16[s]}const IconCard=function(){return __component__$16.exports}();var render$$=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("span",{staticClass:"avue-icon",class:{"avue-icon--small":t.small}},[t.text.includes("#")?n("svg",{attrs:{"aria-hidden":"true"}},[n("use",{attrs:{"xlink:href":t.text}})]):n("i",{class:t.text})])},staticRenderFns$$=[];const IconTemp_vue_vue_type_style_index_0_lang="",__vue2_script$15={name:"IconTemp",props:{small:Boolean,text:{type:String,default:""}}},__cssModules$15={};var __component__$15=normalizeComponent(__vue2_script$15,render$$,staticRenderFns$$,!1,__vue2_injectStyles$15,null,null,null);function __vue2_injectStyles$15(t){for(let s in __cssModules$15)this[s]=__cssModules$15[s]}const IconTemp=function(){return __component__$15.exports}();var render$_=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("ElementDialog",t._g(t._b({attrs:{"custom-class":"iframe-window",embed:"",height:"60vh",title:t.title,"show-full-screen":"",visible:t.visible},scopedSlots:t._u([{key:"default",fn:function(){return[n("iframe",{staticClass:"iframe-window-iframe",attrs:{src:t.url,frameborder:"0"}})]},proxy:!0}])},"ElementDialog",t.$attrs,!1),t.$listeners))},staticRenderFns$_=[];const IframeWindow_vue_vue_type_style_index_0_lang="",__vue2_script$14={name:"IframeWindow",props:{title:{type:String,default:"iframe窗口"},url:{type:String,default:"http://192.168.0.107:31221/wallboard"},visible:Boolean}},__cssModules$14={};var __component__$14=normalizeComponent(__vue2_script$14,render$_,staticRenderFns$_,!1,__vue2_injectStyles$14,null,null,null);function __vue2_injectStyles$14(t){for(let s in __cssModules$14)this[s]=__cssModules$14[s]}const IframeWindow=function(){return __component__$14.exports}();var render$Z=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("ElementDialog",{staticClass:"avue-cropper",attrs:{visible:t.visible,"before-close":t.cancel,title:"图片剪裁","close-on-press-escape":!1,"close-on-click-modal":!1,"modal-append-to-body":t.$AVUE.modalAppendToBody,"append-to-body":t.$AVUE.appendToBody,width:"1000px"},on:{"update:visible":function(r){t.visible=r}},scopedSlots:t._u([{key:"footer",fn:function(){return[n("ElButton",{attrs:{size:"small",type:"primary"},on:{click:t.submit}},[t._v(" 确 定 ")]),n("ElButton",{attrs:{size:"small"},on:{click:function(r){return t.cancel()}}},[t._v(" 取 消 ")])]},proxy:!0}])},[n("div",{staticClass:"cropper-content"},[n("div",{staticClass:"cropper-box"},[n("div",{staticClass:"cropper"},[n("VueCropper",{ref:"cropper",attrs:{img:t.option.img,"output-size":t.option.outputSize,"output-type":t.option.outputType,info:t.option.info,"can-scale":t.option.canScale,"auto-crop":t.option.autoCrop,"auto-crop-width":t.option.autoCropWidth,"auto-crop-height":t.option.autoCropHeight,fixed:t.option.fixed,"fixed-number":t.option.fixedNumber,full:t.option.full,"fixed-box":t.option.fixedBox,"can-move":t.option.canMove,"can-move-box":t.option.canMoveBox,original:t.option.original,"center-box":t.option.centerBox,height:t.option.height,"info-true":t.option.infoTrue,"max-img-size":t.option.maxImgSize,enlarge:t.option.enlarge,mode:t.option.mode},on:{realTime:t.realTime}})],1),n("div",{staticClass:"footer-btn"},[n("ElButton",{attrs:{size:"mini",type:"danger",icon:"el-icon-zoom-in"},on:{click:function(r){return t.changeScale(1)}}}),n("ElButton",{attrs:{size:"mini",type:"danger",icon:"el-icon-zoom-out"},on:{click:function(r){return t.changeScale(-1)}}}),n("ElButton",{attrs:{size:"mini",icon:"el-icon-back",type:"danger"},on:{click:t.rotateLeft}}),n("ElButton",{attrs:{size:"mini",type:"danger",icon:"el-icon-right"},on:{click:t.rotateRight}})],1)]),n("div",{staticClass:"show-preview"},[n("div",{staticClass:"preview",style:t.previews.div},[n("img",{style:t.previews.img,attrs:{src:t.previews.url,alt:""}})])])])])},staticRenderFns$Z=[];const ImageCropper_vue_vue_type_style_index_0_lang="",ImageCropper={name:"ImageCropper",components:{VueCropper:vueCropper.VueCropper},data(){return{visible:!1,previews:{},option:{}}},methods:{show(){this.visible=!0},changeScale(t){t=t||1,this.$refs.cropper.changeScale(t)},rotateLeft(){this.$refs.cropper.rotateLeft()},rotateRight(){this.$refs.cropper.rotateRight()},realTime(t){this.previews=t},submit(){this.visible=!1,this.$refs.cropper.getCropData(t=>{let s=t;this.option.type==="file"&&(s=dataURLtoFile(t,`${new Date().getTime()}.${this.option.outputType}`)),this.option.callback&&this.option.callback(s)})},cancel(t){t&&t(),this.visible=!1,this.option.cancel&&this.option.cancel(),typeof this.option.beforeClose=="function"&&this.option.beforeClose(),this.$destroy(),this.$el.remove()}}},imageCropper=(t={})=>{const s=Vue.extend(ImageCropper),n=f({outputSize:1,outputType:"jpeg",info:!0,canScale:!0,autoCrop:!0,fixed:!1,full:!1,fixedBox:!1,canMove:!0,canMoveBox:!0,original:!1,centerBox:!1,height:!0,infoTrue:!1,enlarge:1},t),r=new s({data:{option:n}}).$mount();return document.body.appendChild(r.$el),r.show(),r};ImageCropper.imageCropper=imageCropper;const __vue2_script$13=ImageCropper,__cssModules$13={};var __component__$13=normalizeComponent(__vue2_script$13,render$Z,staticRenderFns$Z,!1,__vue2_injectStyles$13,null,null,null);function __vue2_injectStyles$13(t){for(let s in __cssModules$13)this[s]=__cssModules$13[s]}const ImageCropper$1=function(){return __component__$13.exports}();var render$Y=function(){var t=this,s=t.$createElement,n=t._self._c||s;return t.isShow?n("div",{staticClass:"avue-image-preview"},[t.ops.modal?n("div",{staticClass:"avue-image-preview__mask",on:{click:t.close}}):t._e(),n("span",{staticClass:"el-image-viewer__btn el-image-viewer__close",on:{click:t.close}},[n("i",{staticClass:"el-icon-circle-close"})]),t.isRrrow?n("span",{staticClass:"el-image-viewer__btn el-image-viewer__prev",on:{click:function(r){return t.handlePrev()}}},[n("i",{staticClass:"el-icon-arrow-left"})]):t._e(),t.isRrrow?n("span",{staticClass:"el-image-viewer__btn el-image-viewer__next",on:{click:function(r){return t.handleNext()}}},[n("i",{staticClass:"el-icon-arrow-right"})]):t._e(),n("div",{ref:"box",staticClass:"avue-image-preview__box"},[n("ElCarousel",{ref:"carousel",attrs:{"show-indicators":!1,"initial-index":t.index,"initial-swipe":t.index,interval:0,arrow:"never","indicator-position":"none"},on:{change:t.handleChange}},t._l(t.datas,function(r,a){return n("ElCarouselItem",{key:a,nativeOn:{click:function(o){if(o.target!==o.currentTarget)return null;t.ops.closeOnClickModal&&t.close()}}},[t.isMediaType(r)?n(t.isMediaType(r),{ref:"item",refInFor:!0,tag:"Component",style:[t.styleName,t.styleBoxName],attrs:{id:`avue-image-preview__${a}`,src:r.url,controls:"controls",ondragstart:"return false"},on:{click:function(o){return t.handleClick(r,a)},mousedown:t.move}}):n("div",{staticClass:"avue-image-preview__file",attrs:{id:`avue-image-preview__${a}`},on:{click:function(o){return t.handleClick(r,a,!0)}}},[n("span",[n("i",{staticClass:"el-icon-document"}),n("p",[t._v(t._s(r.name||t.getName(r.url)))])])])],1)}),1)],1),n("div",{staticClass:"el-image-viewer__btn el-image-viewer__actions"},[n("div",{staticClass:"el-image-viewer__actions__inner"},[n("i",{staticClass:"el-icon-zoom-out",on:{click:t.subScale}}),n("i",{staticClass:"el-icon-zoom-in",on:{click:t.addScale}}),n("i",{staticClass:"el-image-viewer__actions__divider"}),n("i",{staticClass:"el-icon-printer",on:{click:t.handlePrint}}),n("i",{staticClass:"el-image-viewer__actions__divider"}),n("i",{staticClass:"el-icon-refresh-left",on:{click:function(r){t.rotate=t.rotate-90}}}),n("i",{staticClass:"el-icon-refresh-right",on:{click:function(r){t.rotate=t.rotate+90}}})])])]):t._e()},staticRenderFns$Y=[];const ImagePreview_vue_vue_type_style_index_0_lang="",ImagePreview={name:"ImagePreview",data(){return{left:0,top:0,scale:1,datas:[],rotate:0,isShow:!1,index:0,ops:{}}},computed:{styleBoxName(){return{marginLeft:core.setPx(this.left),marginTop:core.setPx(this.top)}},styleName(){return{transform:`scale(${this.scale}) rotate(${this.rotate}deg)`,maxWidth:"100%",maxHeight:"100%"}},isRrrow(){return this.datas.length>1}},methods:{getName(t){return t.substring(t.lastIndexOf("/")+1)},handlePrint(){this.$Print(`#avue-image-preview__${this.index}`)},handlePrev(){this.$refs.carousel.prev(),this.index=this.$refs.carousel.activeIndex,this.stopItem()},handleNext(){this.$refs.carousel.next(),this.index=this.$refs.carousel.activeIndex,this.stopItem()},stopItem(){this.left=0,this.top=0,this.$refs.item.forEach(t=>{t.pause&&t.pause()})},isMediaType(t){return isMediaType(t.url,t.type)},subScale(){this.scale!==.2&&(this.scale=parseFloat((this.scale-.2).toFixed(2)))},addScale(){this.scale=parseFloat((this.scale+.2).toFixed(2))},handleChange(){this.scale=1,this.rotate=0},move(t){let s=t.clientX,n=t.clientY;const r=2;document.onmousemove=a=>{const o=a.clientX-s,l=a.clientY-n;s=a.clientX,n=a.clientY,this.left=this.left+o*r,this.top=this.top+l*r},document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null}},handleClick(t,s,n=!1){typeof this.ops.click=="function"?this.ops.click(t,s):n&&window.open(t.url)},close(){this.isShow=!1,typeof this.ops.beforeClose=="function"&&this.ops.beforeClose(this.datas,this.index),this.$destroy(),this.$el.remove()}}},imagePreview=(t=[],s=0,n={})=>{const r=Vue.extend(ImagePreview),a={datas:t,index:s,ops:f({closeOnClickModal:!1,beforeClose:null,click:null,modal:!0},n)},o=new r({data:a}).$mount();return document.body.appendChild(o.$el),o.isShow=!0,o};ImagePreview.imagePreview=imagePreview;const __vue2_script$12=ImagePreview,__cssModules$12={};var __component__$12=normalizeComponent(__vue2_script$12,render$Y,staticRenderFns$Y,!1,__vue2_injectStyles$12,null,null,null);function __vue2_injectStyles$12(t){for(let s in __cssModules$12)this[s]=__cssModules$12[s]}const ImagePreview$1=function(){return __component__$12.exports}();var render$X=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{directives:[{name:"show",rawName:"v-show",value:!t.lazy,expression:"!lazy"}],ref:"wrapper",staticClass:"image-viewer"},[t._t("default",function(){return t._l(t.images,function(r){return n("img",{key:r.src,staticClass:"image-item",style:{backgroundImage:`url('${r.src}')`},attrs:{"data-src":r.src,alt:r.alt}})})})],2)},staticRenderFns$X=[];const ImageViewer_vue_vue_type_style_index_0_lang="",__vue2_script$11={name:"ImageViewer",props:{images:Array,url:{type:String,default:"data-src"},lazy:Boolean},mounted(){this.lazy||this.init({container:this.$refs.wrapper,options:{navbar:!1,backdrop:"static",url:this.url}})},updated(){var t;this.lazy||(t=this.gallery)==null||t.update()},beforeDestroy(){this.lazy||this.gallery.destroy()},methods:{init({container:t,options:s}){this.gallery=new Viewer(t,s)},show({container:t,options:s,index:n}={}){t=t||this.$refs.wrapper,s=s||{navbar:!1,backdrop:"static",url:this.url,loop:!1,initialViewIndex:n||0,hidden:()=>{this.gallery.destroy(),this.gallery=null}},this.gallery||(this.init({container:t,options:s}),this.gallery.show())}}},__cssModules$11={};var __component__$11=normalizeComponent(__vue2_script$11,render$X,staticRenderFns$X,!1,__vue2_injectStyles$11,null,null,null);function __vue2_injectStyles$11(t){for(let s in __cssModules$11)this[s]=__cssModules$11[s]}const ImageViewer=function(){return __component__$11.exports}();var render$W=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{class:["input-number","el-input-number",t.inputNumberSize?`el-input-number--${t.inputNumberSize}`:"",{"is-disabled":t.inputNumberDisabled,"is-without-controls":!t.controls,"is-controls-right":t.controlsAtRight}],on:{dragstart:function(r){r.preventDefault()}}},[t.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:t.decrease,expression:"decrease"}],staticClass:"el-input-number__decrease",class:{"is-disabled":t.minDisabled},attrs:{role:"button"},on:{keydown:function(r){return!r.type.indexOf("key")&&t._k(r.keyCode,"enter",13,r.key,"Enter")?null:t.decrease.apply(null,arguments)}}},[n("i",{class:`el-icon-${t.controlsAtRight?"arrow-down":"minus"}`})]):t._e(),t.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:t.increase,expression:"increase"}],staticClass:"el-input-number__increase",class:{"is-disabled":t.maxDisabled},attrs:{role:"button"},on:{keydown:function(r){return!r.type.indexOf("key")&&t._k(r.keyCode,"enter",13,r.key,"Enter")?null:t.increase.apply(null,arguments)}}},[n("i",{class:`el-icon-${t.controlsAtRight?"arrow-up":"plus"}`})]):t._e(),n("ElInput",{ref:"input",attrs:{value:t.displayValue,placeholder:t.placeholder,disabled:t.inputNumberDisabled,size:t.inputNumberSize,max:t.max,"prefix-icon":t.prefixIcon,"suffix-icon":t.suffixIcon,min:t.min,name:t.name,label:t.label},on:{blur:t.handleBlur,focus:t.handleFocus,input:t.handleInput,change:t.handleInputChange},nativeOn:{keydown:[function(r){return!r.type.indexOf("key")&&t._k(r.keyCode,"up",38,r.key,["Up","ArrowUp"])?null:(r.preventDefault(),t.increase.apply(null,arguments))},function(r){return!r.type.indexOf("key")&&t._k(r.keyCode,"down",40,r.key,["Down","ArrowDown"])?null:(r.preventDefault(),t.decrease.apply(null,arguments))}]},scopedSlots:t._u([{key:"append",fn:function(){return[t._t("append")]},proxy:!0},{key:"prefix",fn:function(){return[t._t("prefix")]},proxy:!0},{key:"prepend",fn:function(){return[t._t("prepend")]},proxy:!0},{key:"suffix",fn:function(){return[t._t("suffix")]},proxy:!0}],null,!0)})],1)},staticRenderFns$W=[];const InputNumber_vue_vue_type_style_index_0_lang="",__vue2_script$10={name:"InputNumber",directives:{repeatClick:RepeatClick},mixins:[Focus("input"),inputNumberMixin],inject:{elForm:{default:""},elFormItem:{default:""}},data(){return{currentValue:0,userInput:null}},computed:{minDisabled(){return this._decrease(this.value,this.step)<this.min},maxDisabled(){return this._increase(this.value,this.step)>this.max},numPrecision(){const{value:t,step:s,getPrecision:n,precision:r}=this,a=n(s);return r!==void 0?(a>r&&console.warn("[Element Warn][InputNumber]precision should not be less than the decimal places of step"),r):Math.max(n(t),a)},controlsAtRight(){return this.controls&&this.controlsPosition==="right"},_elFormItemSize(){return(this.elFormItem||{}).elFormItemSize},inputNumberSize(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputNumberDisabled(){return this.disabled||!!(this.elForm||{}).disabled},displayValue(){if(this.userInput!==null)return this.userInput;let t=this.currentValue;if(typeof t=="number"){if(this.stepStrictly){const s=this.getPrecision(this.step),n=Math.pow(10,s);t=Math.round(t/this.step)*n*this.step/n}this.precision!==void 0&&(t=t.toFixed(this.precision))}return t}},watch:{value:{immediate:!0,handler(t){let s=t===void 0?t:Number(t);if(s!==void 0){if(isNaN(s))return;if(this.stepStrictly){const n=this.getPrecision(this.step),r=Math.pow(10,n);s=Math.round(s/this.step)*r*this.step/r}this.precision!==void 0&&(s=this.toPrecision(s,this.precision))}s>=this.max&&(s=this.max),s<=this.min&&(s=this.min),this.currentValue=s,this.userInput=null,this.$emit("input",s)}}},mounted(){const t=this.$refs.input.$refs.input;t.setAttribute("role","spinbutton"),t.setAttribute("aria-valuemax",this.max),t.setAttribute("aria-valuemin",this.min),t.setAttribute("aria-valuenow",this.currentValue),t.setAttribute("aria-disabled",this.inputNumberDisabled)},updated(){if(!this.$refs||!this.$refs.input)return;this.$refs.input.$refs.input.setAttribute("aria-valuenow",this.currentValue)},methods:{toPrecision(t,s){return s===void 0&&(s=this.numPrecision),parseFloat(Math.round(t*Math.pow(10,s))/Math.pow(10,s))},getPrecision(t){if(t===void 0)return 0;const s=t.toString(),n=s.indexOf(".");let r=0;return n!==-1&&(r=s.length-n-1),r},_increase(t,s){if(typeof t!="number"&&t!==void 0)return this.currentValue;const n=Math.pow(10,this.numPrecision);return this.toPrecision((n*t+n*s)/n)},_decrease(t,s){if(typeof t!="number"&&t!==void 0)return this.currentValue;const n=Math.pow(10,this.numPrecision);return this.toPrecision((n*t-n*s)/n)},increase(){if(this.inputNumberDisabled||this.maxDisabled)return;const t=this.value||0,s=this._increase(t,this.step);this.setCurrentValue(s)},decrease(){if(this.inputNumberDisabled||this.minDisabled)return;const t=this.value||0,s=this._decrease(t,this.step);this.setCurrentValue(s)},handleBlur(t){this.$emit("blur",t)},handleFocus(t){this.$emit("focus",t)},setCurrentValue(t){const s=this.currentValue;typeof t=="number"&&this.precision!==void 0&&(t=this.toPrecision(t,this.precision)),t>=this.max&&(t=this.max),t<=this.min&&(t=this.min),s!==t&&(this.userInput=null,this.$emit("input",t),this.$emit("change",t,s),this.currentValue=t)},handleInput(t){this.userInput=t},handleInputChange(t){const s=t===""?void 0:Number(t);(!isNaN(s)||t==="")&&this.setCurrentValue(s),this.userInput=null},select(){this.$refs.input.select()}}},__cssModules$10={};var __component__$10=normalizeComponent(__vue2_script$10,render$W,staticRenderFns$W,!1,__vue2_injectStyles$10,null,null,null);function __vue2_injectStyles$10(t){for(let s in __cssModules$10)this[s]=__cssModules$10[s]}const InputNumber=function(){return __component__$10.exports}();var render$V=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"input-number-range"},[n("ElInputNumber",{staticClass:"flex-item",staticStyle:{width:"auto"},attrs:{controls:t.controls,disabled:t.disabled,size:"mini"},on:{input:t.emitInput},model:{value:t.val[0],callback:function(r){t.$set(t.val,0,r)},expression:"val[0]"}}),n("span",{staticStyle:{padding:"0 6px","font-size":"12px"}},[t._v(t._s(t.separator))]),n("ElInputNumber",{staticClass:"flex-item",staticStyle:{width:"auto"},attrs:{controls:t.controls,disabled:t.disabled,size:"mini"},on:{input:t.emitInput},model:{value:t.val[1],callback:function(r){t.$set(t.val,1,r)},expression:"val[1]"}})],1)},staticRenderFns$V=[];const InputNumberRange_vue_vue_type_style_index_0_lang="",__vue2_script$$={name:"InputNumberRange",props:{value:{type:Array,default:()=>[]},disabled:Boolean,separator:{type:String,default:"至"},controls:{type:Boolean,default:!0}},data(){return{val:[void 0,void 0]}},watch:{value:{immediate:!0,handler(t){const s=[void 0,void 0];core.isNotEmpty(t==null?void 0:t[0])&&(s[0]=t[0]),core.isNotEmpty(t==null?void 0:t[1])&&(s[1]=t[1]),this.val=s}}},methods:{emitInput(){this.$emit("input",this.val)}}},__cssModules$$={};var __component__$$=normalizeComponent(__vue2_script$$,render$V,staticRenderFns$V,!1,__vue2_injectStyles$$,null,null,null);function __vue2_injectStyles$$(t){for(let s in __cssModules$$)this[s]=__cssModules$$[s]}const InputNumberRange=function(){return __component__$$.exports}(),JSXComponent={name:"JSXComponent",props:{msg:{type:String,default:""}},render(){const t=arguments[0];return t("div",[this.msg])}},_toString=Object.prototype.toString;function isDef(t){return t!=null}function isAsyncPlaceholder(t){return t.isComment&&t.asyncFactory}function getFirstComponentChild(t){if(Array.isArray(t))for(let s=0;s<t.length;s++){const n=t[s];if(isDef(n)&&(isDef(n.componentOptions)||isAsyncPlaceholder(n)))return n}}function isRegExp(t){return _toString.call(t)==="[object RegExp]"}function getComponentName(t){return t&&(t.Ctor.options.name||t.tag)}function matches(t,s){return Array.isArray(t)?t.indexOf(s)>-1:typeof t=="string"?t.split(",").indexOf(s)>-1:isRegExp(t)?t.test(s):!1}function remove(t,s){if(t.length){const n=t.indexOf(s);if(n>-1)return t.splice(n,1)}}function pruneCache(t,s){const{cache:n,keys:r,_vnode:a}=t;for(const o in n){const l=n[o];if(l){const c=l.name;c&&!s(c)&&pruneCacheEntry(n,o,r,a)}}}function pruneCacheEntry(t,s,n,r){const a=t[s];a&&(!r||a.tag!==r.tag)&&a.componentInstance.$destroy(),t[s]=null,remove(n,s)}const __vue2_script$_={name:"KeepViewAlive",abstract:!0,props:{include:Array,exclude:Array,max:[String,Number]},created(){this.cache=Object.create(null),this.keys=[]},destroyed(){for(const t in this.cache)pruneCacheEntry(this.cache,t,this.keys)},mounted(){this.cacheVNode(),this.$watch("include",t=>{pruneCache(this,s=>matches(t,s))}),this.$watch("exclude",t=>{pruneCache(this,s=>!matches(t,s))})},updated(){this.cacheVNode()},methods:{cacheVNode(){const{cache:t,keys:s,vnodeToCache:n,keyToCache:r}=this;if(n){const{tag:a,componentInstance:o,componentOptions:l}=n;t[r]={name:getComponentName(l),tag:a,cid:l.Ctor.cid,componentInstance:o},s.push(r),this.max&&s.length>parseInt(this.max)&&pruneCacheEntry(t,s[0],s,this._vnode),this.vnodeToCache=null}}},render(){const t=this.$slots.default,s=getFirstComponentChild(t),n=s&&s.componentOptions;if(n){const r=getComponentName(n),{include:a,exclude:o}=this;if(a&&(!r||!matches(a,r))||o&&r&&matches(o,r))return s;const{cache:l,keys:c}=this,u=s.key==null?n.Ctor.cid+(n.tag?`::${n.tag}`:""):s.key,d=l[u];d?d.cid===n.Ctor.cid?(s.componentInstance=d.componentInstance,remove(c,u),c.push(u)):(d.componentInstance.$destroy(),l[u]=null,this.vnodeToCache=s,this.keyToCache=u):(this.vnodeToCache=s,this.keyToCache=u),s.data.keepAlive=!0}return s||t&&t[0]}};let __vue2_render$5,__vue2_staticRenderFns$5;const __cssModules$_={};var __component__$_=normalizeComponent(__vue2_script$_,__vue2_render$5,__vue2_staticRenderFns$5,!1,__vue2_injectStyles$_,null,null,null);function __vue2_injectStyles$_(t){for(let s in __cssModules$_)this[s]=__cssModules$_[s]}const KeepViewAlive=function(){return __component__$_.exports}();let Keyboard$1=class{constructor(s){if(typeof s!="object"){console.error('aKeyboard: The obj parameter needs to be an object <In "new aKeyboard()">');return}this.obj=s;const n=document.querySelector(s.el);let r="";if(typeof s.style=="object")for(const m in s.style)r+=`${m}: ${s.style[m]};`;let a=`<div class="akeyboard-keyboard${s.fixedBottomCenter?" akeyboard-keyboard-fixedBottomCenter":""}" style="${r}">`;const o=[];for(let m=1;m<10;m++)o.push(m.toString());o.push("0");const l=s.keys||[["`"].concat(o).concat(["-","=","Delete"]),["Tab","q","w","e","r","t","y","u","i","o","p","[","]","\\"],["Caps","a","s","d","f","g","h","j","k","l",";","'","Enter"],["Shift","z","x","c","v","b","n","m",",",".","/","Shift"],["Space"]];let c;const u=[],d=[];for(let m=0;m<l.length;m++){u.push([]),d.push([]),c=l[m];for(let _=0;_<c.length;_++){if(c[_].length===1){switch(d[m].push(c[_].toUpperCase()),c[_]){case"`":u[m].push("~");continue;case"1":u[m].push("!");continue;case"2":u[m].push("@");continue;case"3":u[m].push("#");continue;case"4":u[m].push("$");continue;case"5":u[m].push("%");continue;case"6":u[m].push("^");continue;case"7":u[m].push("&");continue;case"8":u[m].push("*");continue;case"9":u[m].push("(");continue;case"0":u[m].push(")");continue;case"-":u[m].push("_");continue;case"=":u[m].push("+");continue;case"[":u[m].push("{");continue;case"]":u[m].push("}");continue;case"\\":u[m].push("|");continue;case";":u[m].push(":");continue;case"'":u[m].push('"');continue;case",":u[m].push("<");continue;case".":u[m].push(">");continue;case"/":u[m].push("?");continue}u[m].push(c[_].toUpperCase());continue}u[m].push(c[_]),d[m].push(c[_])}}for(let m=0;m<l.length;m++){c=l[m],a+='<div class="akeyboard-keyboard-innerKeys">';for(let _=0;_<c.length;_++)a+=`<div class="akeyboard-keyboard-keys akeyboard-keyboard-keys-${c[_]}">${c[_]}</div>`;a+="</div>"}a+="</div>",n.innerHTML=a;let p=!1;l.forEach(m=>{m.includes("Shift")&&(p=!0)}),p&&document.querySelectorAll(`${s.el} .akeyboard-keyboard-keys-Shift`).forEach(_=>{_.onclick=function(){if(!this.isShift){const g=document.querySelector(`${s.el} .akeyboard-keyboard-keys-Caps`);if(g&&g.isCaps)return;_.isShift=!0,_.innerHTML="SHIFT",this.classList.add("keyboard-keyboard-keys-focus");const y=document.querySelectorAll(`${s.el} .akeyboard-keyboard-innerKeys`);let C;for(let $=0;$<y.length;$++){C=y[$];for(let w=0;w<C.childNodes.length;w++)u[$][w]!=="Shift"&&(C.childNodes[w].innerHTML=u[$][w])}return}_.isShift=!1,_.innerHTML="Shift",this.classList.remove("keyboard-keyboard-keys-focus");const x=document.querySelectorAll(`${s.el} .akeyboard-keyboard-innerKeys`);let b;for(let g=0;g<x.length;g++){b=x[g];for(let y=0;y<b.childNodes.length;y++)b.childNodes[y].innerHTML=l[g][y]}}});let h=!1;l.forEach(m=>{m.includes("Caps")&&(h=!0)}),h&&document.querySelectorAll(`${s.el} .akeyboard-keyboard-keys-Caps`).forEach(_=>{_.onclick=function(){if(!this.isCaps){const g=document.querySelector(`${s.el} .akeyboard-keyboard-keys-Shift`);if(g&&g.isShift)return;this.isCaps=!0,this.classList.add("keyboard-keyboard-keys-focus");const y=document.querySelectorAll(`${s.el} .akeyboard-keyboard-innerKeys`);let C;for(let $=0;$<y.length;$++){C=y[$];for(let w=0;w<C.childNodes.length;w++)C.childNodes[w].innerHTML=d[$][w]}return}this.isCaps=!1,this.classList.remove("keyboard-keyboard-keys-focus");const x=document.querySelectorAll(`${s.el} .akeyboard-keyboard-innerKeys`);let b;for(let g=0;g<x.length;g++){b=x[g];for(let y=0;y<b.childNodes.length;y++)b.childNodes[y].innerHTML=l[g][y]}}})}inputOn(s,n,r,a){if(typeof s!="string"){console.error('aKeyboard: The inputEle parameter needs to be a string <In "aKeyboard.inputOn()">');return}if(typeof n!="string"){console.error('aKeyboard: The type parameter needs to be a string <In "aKeyboard.inputOn()">');return}const o=document.querySelector(s),l=document.querySelectorAll(`${this.obj.el} .akeyboard-keyboard-keys`);for(let c=0;c<l.length;c++)if(!["Shift","Caps"].includes(l[c].innerHTML)){if(l[c].innerHTML==="Delete"){l[c].onclick=function(){o[n]=o[n].substr(0,o[n].length-1),r("Delete",o[n])};continue}if(l[c].innerHTML==="Tab"){l[c].onclick=function(){o[n]+=" ",r("Tab",o[n])};continue}if(l[c].innerHTML==="Enter"){l[c].onclick=function(){o[n]+=`
|
|
68
68
|
`,r("Enter",o[n])};continue}if(l[c].innerHTML==="Space"){l[c].onclick=function(){o[n]+=" ",r("Space",o[n])};continue}a&&typeof a=="object"&&Object.keys(a).length>0&&a[l[c].innerHTML]?l[c].onclick=a[l[c].innerHTML]:l[c].onclick=function(){o[n]+=this.innerText,r(this.innerText,o[n])}}}onclick(s,n){if(typeof s!="string"){console.error('aKeyboard: The btn parameter needs to be a string <In "aKeyboard.onclick()">');return}if(typeof n!="function"){console.error('aKeyboard: The fn parameter needs to be a function <In "aKeyboard.onclick()">');return}const r=document.querySelector(`${this.obj.el} .akeyboard-keyboard-keys-${s}`);r?r.onclick=n:console.error(`Can not find key: ${s}`)}};class NumberKeyboard{constructor(s){if(typeof s!="object"){console.error('aKeyboard: The obj parameter needs to be an object <In "new aKeyboard()">');return}this.obj=s;const n=document.querySelector(s.el);let r="";if(typeof s.style=="object")for(const o in s.style)r+=`${o}: ${s.style[o]};`;let a=`<div class="akeyboard-numberKeyboard${s.fixedBottomCenter?" akeyboard-keyboard-fixedBottomCenter":""}" style="${r}">`;a+='<div class="akeyboard-keyboard-innerKeys">';for(let o=1;o<10;o++)a+=`<div class="akeyboard-keyboard-keys akeyboard-keyboard-keys-${o}">${o}</div>`,o%3===0&&(a+='</div><div class="akeyboard-keyboard-innerKeys">');a+='<div class="akeyboard-keyboard-keys akeyboard-keyboard-keys-0">0</div><div class="akeyboard-keyboard-keys akeyboard-keyboard-keys-Delete">Delete</div></div><div class="akeyboard-keyboard-innerKeys"><div class="akeyboard-keyboard-keys akeyboard-numberKeyboard-keys-Enter">Enter</div></div>',a+="</div>",n.innerHTML=a}inputOn(s,n,r,a){if(typeof s!="string"){console.error('aKeyboard: The inputEle parameter needs to be a string <In "aKeyboard.inputOn()">');return}if(typeof n!="string"){console.error('aKeyboard: The type parameter needs to be a string <In "aKeyboard.inputOn()">');return}const o=document.querySelector(s),l=document.querySelectorAll(`${this.obj.el} .akeyboard-keyboard-keys`);for(let c=0;c<l.length;c++){if(l[c].innerHTML==="Delete"){l[c].onclick=function(){o[n]=o[n].substr(0,o[n].length-1),r("Delete",o[n])};continue}if(l[c].innerHTML==="Enter"){l[c].onclick=function(){o[n]+=`
|
|
69
|
-
`,r("Enter",o[n])};continue}a&&typeof a=="object"&&Object.keys(a).length>0&&a[l[c].innerHTML]?l[c].onclick=a[l[c].innerHTML]:l[c].onclick=function(){o[n]+=this.innerText,r(this.innerText,o[n])}}}onclick(s,n){if(typeof s!="string"){console.error('aKeyboard: The btn parameter needs to be a string <In "aKeyboard.onclick()">');return}if(typeof n!="function"){console.error('aKeyboard: The fn parameter needs to be a function <In "aKeyboard.onclick()">');return}const r=document.querySelector(`${this.obj.el} .akeyboard-keyboard-keys-${s}`);r?r.onclick=n:console.error(`Can not find key: ${s}`)}}var render$S=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{class:["avue-keyboard",t.className]},[n("div",{attrs:{id:"keyboard"}})])},staticRenderFns$S=[];const Keyboard_vue_vue_type_style_index_0_lang="",__vue2_script$W={name:"Keyboard",props:{ele:{type:String,required:!0},keys:Array,theme:{type:String,default:"default",validator:t=>["default","dark","green","classic"].includes(t)},type:{type:String,default:"default",validator:t=>["default","number","mobile"].includes(t)},fixedBottomCenter:{type:Boolean,default:!1},rebind:{type:Boolean,default:!0}},data(){return{customClick:{}}},computed:{className(){return`avue-keyboard--${this.theme}`}},watch:{ele(){this.init()}},mounted(){this.init()},methods:{init(){if(!this.ele)return;let t;const s={el:"#keyboard",style:{},keys:this.keys,fixedBottomCenter:this.fixedBottomCenter};this.type==="default"?t=new Keyboard$1(s):this.type==="number"&&(t=new NumberKeyboard(s));const n=this.ele.indexOf("#")===0?this.ele.substring(1):this.ele;t.inputOn(`#${n}`,"value",(r,a)=>{this.$emit("click",r,a)},this.rebind?this.customClick:null),this.keyboard=t},bindClick(t,s){this.keyboard.onclick(t,s),this.customClick[t]=s}}},__cssModules$W={};var __component__$W=normalizeComponent(__vue2_script$W,render$S,staticRenderFns$S,!1,__vue2_injectStyles$W,null,null,null);function __vue2_injectStyles$W(t){for(let s in __cssModules$W)this[s]=__cssModules$W[s]}const Keyboard=function(){return __component__$W.exports}();var render$R=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-license",staticStyle:{position:"relative"}},[n("canvas",{ref:"canvas",attrs:{id:`canvas${t.id}`}}),t._t("default")],2)},staticRenderFns$R=[];const __vue2_script$V={name:"License",props:{id:{type:String,default:""},option:{type:Object,default:()=>({})}},data(){return{base64:"",draw:!1,canvas:"",context:""}},computed:{img(){return this.option.img},list(){return this.option.list||[]}},watch:{option:{handler(){this.init()},deep:!0}},mounted(){this.canvas=document.getElementById(`canvas${this.id}`),this.context=this.canvas.getContext("2d"),this.init()},methods:{init(){this.draw=!1;const t=new Image;t.src=this.img,t.onload=()=>{const s=this.option.width||t.width,n=this.option.width?t.height/t.width*this.option.width:t.height;this.$refs.canvas.width=s,this.$refs.canvas.height=n,this.context.clearRect(0,0,s,n),this.context.drawImage(t,0,0,s,n),this.list.forEach((r,a)=>{const o=()=>{a===this.list.length-1&&setTimeout(()=>{this.draw=!0},0)};if(r.img){const l=new Image;l.src=r.img,l.onload=()=>{const c=r.width||l.width,u=r.width?l.height/l.width*r.width:l.height;this.context.drawImage(l,r.left,r.top,c,u),o()}}else r.bold?this.context.font=`bold ${r.size}px ${r.style}`:this.context.font=`${r.size}px ${r.style}`,this.context.fillStyle=r.color,this.context.fillText(r.text,r.left,r.top),this.context.stroke(),o()})}},getFile(t=new Date().getTime()){return new Promise(s=>{const n=setInterval(()=>{if(this.draw){const r=this.canvas.toDataURL("image/jpeg",1),a=this.dataURLtoFile(r,t);clearInterval(n),s(a)}},1e3)})},downFile(t=new Date().getTime()){downFile(this.base64,t)},getBase64(){return new Promise(t=>{const s=setInterval(()=>{if(this.draw){const n=this.canvas.toDataURL("image/jpeg",1);this.base64=n,clearInterval(s),t(n)}},100)})},getPdf(t=new Date().getTime()){const s=this.canvas.width,n=this.canvas.height,r=s/592.28*841.89;let a=n,o=0;const l=595.28,c=592.28/s*n,u=this.canvas.toDataURL("image/jpeg",1),d=new window.jsPDF("","pt","a4");if(a<r)d.addImage(u,"JPEG",0,0,l,c);else for(;a>0;)d.addImage(u,"JPEG",0,o,l,c),a-=r,o-=841.89,a>0&&d.addPage();d.save(`${t}.pdf`)}}},__cssModules$V={};var __component__$V=normalizeComponent(__vue2_script$V,render$R,staticRenderFns$R,!1,__vue2_injectStyles$V,null,null,null);function __vue2_injectStyles$V(t){for(let s in __cssModules$V)this[s]=__cssModules$V[s]}const License=function(){return __component__$V.exports}();var render$Q=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"loading-view",style:{fontSize:t.fontSize,height:t.height}},[t._t("default",function(){return[n("div",{staticClass:"flex-column horizon-center"},[n("i",{staticClass:"el-icon-loading",style:{fontSize:t.iconSize}}),n("p",[t._v(t._s(t.loadingTips))])])]})],2)},staticRenderFns$Q=[];const LoadingView_vue_vue_type_style_index_0_lang="",__vue2_script$U={name:"LoadingView",props:{loadingTips:{type:String,default:"加载中..."},fontSize:{type:String,default:"20px"},iconSize:{type:String,default:"20px"},height:{type:String,default:"100%"}}},__cssModules$U={};var __component__$U=normalizeComponent(__vue2_script$U,render$Q,staticRenderFns$Q,!1,__vue2_injectStyles$U,null,null,null);function __vue2_injectStyles$U(t){for(let s in __cssModules$U)this[s]=__cssModules$U[s]}const LoadingView=function(){return __component__$U.exports}();var render$P=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-login",style:{width:t.setPx(t.width)}},[n("ElForm",{ref:"form",attrs:{model:t.form,"label-suffix":":","label-width":t.setPx(t.labelWidth)}},[t.username.hide?t._e():n("ElFormItem",{attrs:{label:t.username.label||"用户名",rules:t.username.rules,"label-width":t.setPx(t.username.labelWidth),prop:"username"}},[n("ElTooltip",{attrs:{content:t.username.tip,disabled:t.username.tip===void 0,placement:"top-start"}},[n("ElInput",{attrs:{size:"small","prefix-icon":t.username.prefixIcon||"el-icon-user",placeholder:t.username.placeholder||"请输入用户名",autocomplete:t.username.autocomplete},model:{value:t.form.username,callback:function(r){t.$set(t.form,"username",r)},expression:"form.username"}})],1)],1),t.password.hide?t._e():n("ElFormItem",{attrs:{label:t.password.label||"密码",rules:t.password.rules,"label-width":t.setPx(t.password.labelWidth),prop:"password"}},[n("ElTooltip",{attrs:{content:t.password.tip,disabled:t.password.tip===void 0,placement:"top-start"}},[n("ElInput",{attrs:{type:"password",size:"small","prefix-icon":t.password.prefixIcon||"el-icon-unlock",placeholder:t.password.placeholder||"请输入密码","show-password":"",autocomplete:t.password.autocomplete},model:{value:t.form.password,callback:function(r){t.$set(t.form,"password",r)},expression:"form.password"}})],1)],1),t.code.hide?t._e():n("ElFormItem",{attrs:{label:t.code.label||"验证码",rules:t.code.rules,"label-width":t.setPx(t.code.labelWidth),prop:"code"}},[n("ElTooltip",{attrs:{content:t.code.tip,disabled:t.code.tip===void 0,placement:"top-start"}},[n("ElInput",{attrs:{size:"small","prefix-icon":t.code.prefixIcon||"el-icon-c-scale-to-original",placeholder:t.code.placeholder||"请输入验证码",autocomplete:t.code.autocomplete},scopedSlots:t._u([{key:"append",fn:function(){return[t.isPhone?n("ElButton",{staticClass:"avue-login__send",attrs:{type:"primary",disabled:t.sendDisabled},on:{click:t.onSend}},[t._v(" "+t._s(t.text)+" ")]):t._e(),t.isImg?n("span",[n("img",{attrs:{src:t.codesrc,alt:"",width:"80",height:"25"},on:{click:t.onRefresh}})]):t._e()]},proxy:!0}],null,!1,2861735427),model:{value:t.form.code,callback:function(r){t.$set(t.form,"code",r)},expression:"form.code"}})],1)],1),n("ElFormItem",[n("ElButton",{staticClass:"avue-login__submit",attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v(" 登录 ")])],1)],1)],1)},staticRenderFns$P=[];const Login_vue_vue_type_style_index_0_lang="",INIT_TEXT="发送验证码",TIP_TEXT="{{time}}s后重获取",__vue2_script$T={name:"Login",props:{value:{type:Object,default:()=>({})},codesrc:{type:String},option:{type:Object,default:()=>({})}},data(){return{text:INIT_TEXT,nowtime:"",check:{},flag:!1}},computed:{form:{get(){return this.value},set(t){this.$emit("input",t),this.$emit("change",t)}},labelWidth(){return this.option.labelWidth||80},time(){return this.option.time||60},isImg(){return this.codeType==="img"},isPhone(){return this.codeType==="phone"},codeType(){return this.option.codeType||"img"},width(){return this.option.width||"100%"},username(){return this.column.username||{}},password(){return this.column.password||{}},code(){return this.column.code||{}},column(){return this.option.column||{}},sendDisabled(){return!core.isBlank(this.check)}},methods:{setPx,onSend(){const t=()=>{this.nowtime=this.time,this.text=TIP_TEXT.replace("{{time}}",this.nowtime),this.check=setInterval(()=>{this.nowtime--,this.nowtime===0?(this.text=INIT_TEXT,clearInterval(this.check),this.check=null):this.text=TIP_TEXT.replace("{{time}}",this.nowtime)},1e3)};this.sendDisabled||this.$emit("send",t)},onRefresh(){this.$emit("refresh")},onSubmit(){const t=()=>{const s={};for(const n in this.form){let r=n;this[n].prop&&(r=this[n].prop),s[r]=this.form[n]}return s};this.$refs.form.validate(s=>{s&&this.$emit("submit",t())})}}},__cssModules$T={};var __component__$T=normalizeComponent(__vue2_script$T,render$P,staticRenderFns$P,!1,__vue2_injectStyles$T,null,null,null);function __vue2_injectStyles$T(t){for(let s in __cssModules$T)this[s]=__cssModules$T[s]}const Login=function(){return __component__$T.exports}();var render$O=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"name-avatar",class:t.square?"square":"round"},[t.faceUrl&&!t.num?n("img",{staticClass:"name-avatar-image",attrs:{src:t.faceUrl,alt:""}}):n("div",{staticClass:"name-avatar-text",style:t.styles},[t._v(" "+t._s(t.text)+" ")])])},staticRenderFns$O=[];const NameAvatar_vue_vue_type_style_index_0_lang="",__vue2_script$S={name:"NameAvatar",props:{num:[Number,String],name:String,square:Boolean,fontColor:{type:String,default:"#fff"},backgroundColor:{type:String,default:"#3696F2"},faceUrl:{type:String,default:""}},computed:{text(){return this.num!==void 0?`+${this.num}`:this.name?this.name.slice(-2):""},styles(){const t={};return this.size&&(t["font-size"]="12px"),this.fontColor&&(t.color=this.fontColor),this.backgroundColor&&(t.background=this.backgroundColor),t}}},__cssModules$S={};var __component__$S=normalizeComponent(__vue2_script$S,render$O,staticRenderFns$O,!1,__vue2_injectStyles$S,null,null,null);function __vue2_injectStyles$S(t){for(let s in __cssModules$S)this[s]=__cssModules$S[s]}const NameAvatar=function(){return __component__$S.exports}();var render$N=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"nav-bar"},[t.showBack?n("ElButton",{attrs:{type:"text",icon:"el-icon-arrow-left"},on:{click:t.goBack}},[t._v(" 返回 ")]):t._e(),t.$slots.right?n("div",{staticClass:"flex-item flex-row-column vertical-center"},[t._t("right")],2):t._e()],1)},staticRenderFns$N=[];const NavBar_vue_vue_type_style_index_0_lang="",__vue2_script$R={name:"NavBar",props:{onGoBack:Function,showBack:{type:Boolean,default:!0}},methods:{goBack(){this.onGoBack?this.onGoBack():this.$router.back()}}},__cssModules$R={};var __component__$R=normalizeComponent(__vue2_script$R,render$N,staticRenderFns$N,!1,__vue2_injectStyles$R,null,null,null);function __vue2_injectStyles$R(t){for(let s in __cssModules$R)this[s]=__cssModules$R[s]}const NavBar=function(){return __component__$R.exports}();var render$M=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-notice"},[t._l(t.data,function(r,a){return n("div",{key:a,staticClass:"avue-notice__item",on:{click:function(o){return t.click(r)}}},[r[t.imgKey]?n("div",{staticClass:"avue-notice__img"},[n("img",{attrs:{src:r[t.imgKey],alt:""}})]):t._e(),n("div",{staticClass:"avue-notice__content"},[n("div",{staticClass:"avue-notice__title"},[n("span",{staticClass:"avue-notice__name"},[t._v(t._s(r[t.titleKey]))]),r[t.tagKey]?n("span",{staticClass:"avue-notice__tag"},[n("ElTag",{attrs:{size:"small",type:t.getType(r[t.statusKey])}},[t._v(t._s(r[t.tagKey]))])],1):t._e()]),n("div",{staticClass:"avue-notice__subtitle"},[t._v(" "+t._s(r[t.subtitleKey])+" ")])])])}),t.finish?t._e():n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"avue-notice__more",on:{click:t.handleClick}},[t._v(" 加载更多 ")])],2)},staticRenderFns$M=[];const Notice_vue_vue_type_style_index_0_lang="",propsDefault={img:"img",title:"title",subtile:"title",tag:"tag",status:"status"},__vue2_script$Q={name:"Notice",props:{finish:{type:Boolean,default:!1},option:{type:Object,default:()=>({})},data:{type:Array,default:()=>[]}},data(){return{page:1,loading:!1}},computed:{props(){return this.option.props||propsDefault},imgKey(){return this.props.img||propsDefault.img},titleKey(){return this.props.title||propsDefault.title},subtitleKey(){return this.props.subtitle||propsDefault.subtitle},tagKey(){return this.props.tag||propsDefault.tag},statusKey(){return this.props.status||propsDefault.status}},methods:{click(t){this.$emit("click",t)},handleClick(){this.loading=!0;const t=()=>{this.loading=!1};this.page++,this.$emit("page-change",this.page,t)},getType(t=0){if(t===0)return"info";if(t===1)return"";if(t===2)return"warning";if(t===3)return"danger";if(t===4)return"success"}}},__cssModules$Q={};var __component__$Q=normalizeComponent(__vue2_script$Q,render$M,staticRenderFns$M,!1,__vue2_injectStyles$Q,null,null,null);function __vue2_injectStyles$Q(t){for(let s in __cssModules$Q)this[s]=__cssModules$Q[s]}const Notice=function(){return __component__$Q.exports}();var render$L=function(){var t=this,s=t.$createElement;return t._self._c,t._m(0)},staticRenderFns$L=[function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"not-implement"},[n("div",[n("i",{staticClass:"fa fa-wrench"}),t._v(" 建设中... ")])])}];const NotImplement_vue_vue_type_style_index_0_lang="",__vue2_script$P={name:"NotImplement"},__cssModules$P={};var __component__$P=normalizeComponent(__vue2_script$P,render$L,staticRenderFns$L,!1,__vue2_injectStyles$P,null,null,null);function __vue2_injectStyles$P(t){for(let s in __cssModules$P)this[s]=__cssModules$P[s]}const NotImplement=function(){return __component__$P.exports}();var render$K=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"page flex-row flex-item",class:{vertical:t.vertical&&!t.horizontal}},[t._t("default")],2)},staticRenderFns$K=[];const Page_vue_vue_type_style_index_0_lang="",__vue2_script$O={name:"Page",props:{vertical:{type:Boolean,default:!0},horizontal:Boolean}},__cssModules$O={};var __component__$O=normalizeComponent(__vue2_script$O,render$K,staticRenderFns$K,!1,__vue2_injectStyles$O,null,null,null);function __vue2_injectStyles$O(t){for(let s in __cssModules$O)this[s]=__cssModules$O[s]}const Page=function(){return __component__$O.exports}();var render$J=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{class:["pageable-table",{"auto-height":t.autoHeight}]},[n("div",{staticClass:"pageable-table-wrapper"},[t._t("toolbar"),n("ElTable",t._g(t._b({ref:"table",class:["flex-item",{"header-bold":t.headerBold}],attrs:{data:t.records,border:t.border},on:{"hook:updated":t.updateTableScrollPosition,"sort-change":t.onSortChange,"row-dblclick":t.rowDbClick,"current-change":t.onCurrentChange},scopedSlots:t._u([{key:"empty",fn:function(){return[t._t("empty",function(){return[t.tableStatus===t.TABLE_STATUS.loading?[n("span",{staticClass:"pageable-table-loading"},[n("i",{staticClass:"table-status-icon el-icon-loading"}),t._v(" 加载中...")])]:t.tableStatus===t.TABLE_STATUS.error?[n("ElButton",{staticClass:"pageable-table-error",attrs:{icon:"table-status-icon fa fa-frown-o"},on:{click:t.refresh}},[t._v(" 加载失败,点击重试! ")])]:[t._v(" 暂无数据 ")]]})]},proxy:!0},{key:"append",fn:function(){return[t._t("append")]},proxy:!0}],null,!0)},"ElTable",t.filterTableProperties(t.mergeAttrs),!1),t.filterTableEvents(t.$listeners)),[t.multiple&&t.selection?n("TableColumn",{key:"multiple",attrs:{type:"selection",width:"45",align:"center"}}):t._e(),!t.multiple&&t.selection?n("TableColumn",{key:"single",attrs:{type:"single-selection","class-name":"single-select-column",width:"45",align:"center"},scopedSlots:t._u([{key:"header",fn:function(){return[n("ElRadio",{attrs:{value:!!t.currentRow,label:!0}},[n("span")])]},proxy:!0},{key:"default",fn:function(r){var a=r.row;return[n("ElRadio",{attrs:{label:!0,value:t.currentRow&&t.currentRow[t.$attrs["row-key"]||"id"]===a[t.$attrs["row-key"]||"id"]}},[n("span")])]}}],null,!1,307797321)}):t._e(),t.index?n("TableColumn",{key:"order",attrs:{type:"index",label:"序号",width:t.indexWidth,align:"center"},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.$index;return[t._v(" "+t._s((t.page.page-1)*t.page.limit+a+1||a+1)+" ")]}}],null,!1,4238275121)}):t._e(),t._t("default",function(){return[t.columns&&t.columns.length?t._l(t.headers,function(r,a){return n("TableColumn",t._b({key:`${r.prop}-${a}`},"TableColumn",r,!1))}):n("TableColumn",{attrs:{label:"点击表格行复制模板"},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.row;return[n("pre",{staticClass:"pointer"},[t._v(t._s(JSON.stringify(a,null," ")))])]}}])})]})],2),n("ElPagination",{staticClass:"flex-not-shrink",attrs:{"current-page":t.page.page,"hide-on-single-page":t.hideOnSinglePage,"page-size":t.page.limit,total:t.page.total,background:"",layout:"total, prev, pager, next, jumper"},on:{"current-change":function(r){t.page.page=r}}})],2)])},staticRenderFns$J=[];const PageableTable_vue_vue_type_style_index_0_lang="",TABLE_STATUS$1={loading:1,error:-1,empty:2,success:0},__vue2_script$N={name:"PageableTable",bus:{reloadTableView(t){t===this.viewId&&this.getPage()}},inheritAttrs:!1,props:{viewId:{type:String},url:{type:String},httpGet:Boolean,hideOnSinglePage:Boolean,api:{type:Function},filters:{type:Object},filter:{type:Object},rules:{type:Array,default:()=>[]},model:{type:Object},ascs:{type:String,default:""},descs:{type:String,default:""},headerBold:Boolean,autoHeight:Boolean,immediate:{type:Boolean,default:!0},index:{type:Boolean,default:!0},multiple:{type:Boolean,default:!0},selection:{type:Boolean,default:!0},border:{type:Boolean,default:!0},reloadOnModelChange:{type:Boolean,default:!1},columns:{type:Array},pageSize:{type:Number,default:25}},data(){let t={rules:[]};this.rules&&this.rules.length>0&&(t.rules=this.rules),this.filters&&(t=this.filters),this.filter&&(t=Object.assign({},t,this.filter));let s={};this.model&&(s=lodash.cloneDeep(this.model));const n=this.pageSize;return{TABLE_STATUS:Object.freeze(TABLE_STATUS$1),tableStatus:TABLE_STATUS$1.empty,records:[],currentRow:null,page:{total:0,page:1,limit:n,ascs:this.ascs,descs:this.descs,model:s,filters:t}}},computed:{guard(){return this.reloadOnModelChange?{asc:this.page.ascs,desc:this.page.descs,page:this.page.page,model:this.page.model,filters:this.page.filters}:{asc:this.page.ascs,desc:this.page.descs,page:this.page.page,filters:this.page.filters}},method(){return this.httpGet?this.httpGet:this.httpPost},indexWidth(){const t=`${(this.page.page-1)*this.page.limit+this.records.length}`;return t.length>3?50+(t.length-3)*10:50},mergeAttrs(){return lodash.merge({},this.$attrs,{height:this.autoHeight?null:"auto"})},headers(){var t;return((t=this.columns)==null?void 0:t.map(filterTableColumnProperties))||[]}},watch:{url:{handler:"reload"},api:{handler:"reload"},"$attrs.data"(){this.getPage()},model:{deep:!0,handler(t){this.setModel(t)}}},created(){this.$watch(()=>this.guard,this.getPage,{deep:!0,immediate:this.immediate})},mounted(){this.$refs.table.bodyWrapper.addEventListener("scroll",this.onTableScroll)},beforeDestroy(){this.$refs.table.bodyWrapper.removeEventListener("scroll",this.onTableScroll)},methods:{rowDbClick(...t){var n;const s=this.$refs.table.$children.find(r=>{var a;return((a=r.$options)==null?void 0:a.name)==="ElTableBody"});s&&((n=s.$refs.tooltip)==null||n.hide()),this.$emit("row-dblclick",...t)},updateTableScrollPosition(){return v(this,null,function*(){this.$refs.table.bodyWrapper&&this.scrollTo(this.tableScrollTop,this.tableScrollLeft)})},filterTableProperties,filterTableEvents,filterTableColumnProperties,onTableScroll(){this.tableScrollTop=this.$refs.table.bodyWrapper.scrollTop,this.tableScrollLeft=this.$refs.table.bodyWrapper.scrollLeft},onSortChange({prop:t,order:s}){this.page.ascs=s==="ascending"?t:"",this.page.descs=s==="descending"?t:""},onCurrentChange(t){this.currentRow=t},addRule(t){this.removeRule(t.field),this.page.filters.rules.push(t)},addRules(t){t.forEach(s=>this.addRule(s))},setModelField(t,s){this.$set(this.page.model,t,s)},setModel(t){this.page.page=1,this.page.model=lodash.cloneDeep(t)},deleteModelField(t){delete this.page.model[t]},removeRule(t){const s=this.page.filters.rules,n=s.findIndex(r=>r.field===t);n>-1&&s.splice(n,1)},addFilter({field:t,op:s,value:n}){this.page.filters=Object.assign({},this.page.filters,{rules:[{field:t,op:s,value:n}],op:"and"})},clearFilters(){this.page.filters={}},clearSelection(){this.$refs.table.clearSelection()},search(){this.setModel(this.model),this.getPage()},getPage(){return v(this,null,function*(){var u;if(core.hasOwn(this.$attrs,"data")){this.records=this.$attrs.data,this.page.page=1,this.page.total=this.records.length,this.page.limit=this.page.total;return}this.records=[];let t;const c=this.page,{filters:s}=c,n=R(c,["filters"]),r=f({},n);if((u=s==null?void 0:s.rules)!=null&&u.length&&(r.filters={rules:s.rules}),this.api||this.url){this.tableStatus=TABLE_STATUS$1.loading;try{this.api&&(t=yield this.api(r)),this.url&&(t=yield this.method(this.url,r))}catch(d){this.tableStatus=TABLE_STATUS$1.error,console.error(d);return}}else{this.$notify.warning({title:"开发提示!",message:"PageableTable 请提供 url(String) 或 api(Function) 属性"});return}const{data:a}=t||{},{total:o,records:l}=a||{};this.page.total=Number(o),this.records=l,!l||!l.length?this.tableStatus=TABLE_STATUS$1.empty:this.tableStatus=TABLE_STATUS$1.success,this.$refs.table.doLayout(),this.$emit("page-loaded",a)})},refresh(){return v(this,null,function*(){yield this.getPage()})},reload(){return v(this,null,function*(){this.page=S(f({},this.$options.data.call(this).page),{total:this.page.total})})},scrollTo(t,s){t&&(this.$refs.table.bodyWrapper.scrollTop=t),s&&(this.$refs.table.bodyWrapper.scrollLeft=s)}}},__cssModules$N={};var __component__$N=normalizeComponent(__vue2_script$N,render$J,staticRenderFns$J,!1,__vue2_injectStyles$N,null,null,null);function __vue2_injectStyles$N(t){for(let s in __cssModules$N)this[s]=__cssModules$N[s]}const PageableTable=function(){return __component__$N.exports}();var render$I=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"work",staticStyle:{height:"100%","background-color":"#fff"}},[n("div",{staticClass:"flex-column list-content",staticStyle:{height:"100%"}},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"flex-item-relative",attrs:{"element-loading-text":"加载中...","element-loading-background":"#fff"}},[n("div",{ref:"scroller",staticClass:"scroll-wrapper"},[n("div",{staticClass:"cards-block"},[t._t("prepend"),t._l(t.records,function(r){return[t._t("default",null,{item:r})]}),t._t("append")],2)])]),n("ElPagination",{staticClass:"flex-not-shrink",staticStyle:{"border-top":"1px solid #ebeef5"},attrs:{"current-page":t.page.page,"hide-on-single-page":t.hideOnSinglePage,"page-size":t.page.limit,total:t.page.total,background:"",layout:"total, prev, pager, next, jumper"},on:{"current-change":function(r){t.page.page=r}}})],1)])},staticRenderFns$I=[];const PageableView_vue_vue_type_style_index_0_lang="";function getTemplate(t){let s="";for(const n in t)s+=`<ElTableColumn prop="${n}" label="${n}"/>
|
|
70
|
-
`;return s}const TABLE_STATUS={loading:1,error:-1,empty:2,success:0},__vue2_script$M={name:"PageableView",bus:{reloadTableView(t){t===this.viewId&&this.getPage()}},inheritAttrs:!1,props:{viewId:{type:String},url:{type:String},httpGet:Boolean,hideOnSinglePage:Boolean,api:{type:Function},filters:{type:Object},filter:{type:Object},rules:{type:Array,default:()=>[]},model:{type:Object},ascs:{type:String,default:""},descs:{type:String,default:""},autoHeight:Boolean,immediate:{type:Boolean,default:!0},reloadOnModelChange:{type:Boolean,default:!1},columns:{type:Array},pageSize:{type:Number,default:25}},data(){let t={rules:[]};this.rules&&this.rules.length>0&&(t.rules=this.rules),this.filters&&(t=this.filters),this.filter&&(t=Object.assign({},t,this.filter));let s={};this.model&&(s=lodash.cloneDeep(this.model));const n=this.pageSize;return{tableStatus:TABLE_STATUS.empty,records:[],loading:!1,currentRow:null,page:{total:0,page:1,limit:n,ascs:this.ascs,descs:this.descs,model:s,filters:t}}},computed:{guard(){return this.reloadOnModelChange?{asc:this.page.ascs,desc:this.page.descs,page:this.page.page,model:this.page.model,filters:this.page.filters}:{asc:this.page.ascs,desc:this.page.descs,page:this.page.page,filters:this.page.filters}},method(){return this.httpGet?this.httpGet:this.httpPost},indexWidth(){const t=`${(this.page.page-1)*this.page.limit+this.records.length}`;return t.length>3?50+(t.length-3)*10:50},mergeAttrs(){return lodash.merge({},this.$attrs,{height:this.autoHeight?null:"auto"})},headers(){var t;return((t=this.columns)==null?void 0:t.map(filterTableColumnProperties))||[]}},watch:{url:{handler:"reload"},api:{handler:"reload"},"$attrs.data"(){this.getPage()},model:{deep:!0,handler(t){this.setModel(t)}}},created(){this.$watch(()=>this.guard,this.getPage,{deep:!0,immediate:this.immediate})},mounted(){this.$refs.scroller.addEventListener("scroll",this.onTableScroll)},beforeDestroy(){var t;(t=this.$refs.scroller)==null||t.removeEventListener("scroll",this.onTableScroll)},methods:{updateTableScrollPosition(){return v(this,null,function*(){this.$refs.scroller&&this.scrollTo(this.tableScrollTop,this.tableScrollLeft)})},filterTableProperties,filterTableEvents,filterTableColumnProperties,onTableScroll(){this.tableScrollTop=this.$refs.scroller.scrollTop,this.tableScrollLeft=this.$refs.scroller.scrollLeft},copy:t=>core.copy(getTemplate(t)),onSortChange({prop:t,order:s}){this.page.ascs=s==="ascending"?t:"",this.page.descs=s==="descending"?t:""},onCurrentChange(t){this.currentRow=t},addRule(t){this.removeRule(t.field),this.page.filters.rules.push(t)},addRules(t){t.forEach(s=>this.addRule(s))},setModelField(t,s){this.$set(this.page.model,t,s)},setModel(t){this.page.page=1,this.page.model=lodash.cloneDeep(t)},deleteModelField(t){delete this.page.model[t]},removeRule(t){const s=this.page.filters.rules,n=s.findIndex(r=>r.field===t);n>-1&&s.splice(n,1)},addFilter({field:t,op:s,value:n}){this.page.filters=Object.assign({},this.page.filters,{rules:[{field:t,op:s,value:n}],op:"and"})},clearFilters(){this.page.filters={}},clearSelection(){this.$refs.table.clearSelection()},search(){this.setModel(this.model),this.getPage()},getPage(){return v(this,null,function*(){var u;if(core.hasOwn(this.$attrs,"data")){this.records=this.$attrs.data,this.page.page=1,this.page.total=this.records.length,this.page.limit=this.page.total;return}this.records=[];let t;const c=this.page,{filters:s}=c,n=R(c,["filters"]),r=f({},n);if((u=s==null?void 0:s.rules)!=null&&u.length&&(r.filters={rules:s.rules}),this.api||this.url){this.tableStatus=TABLE_STATUS.loading;try{this.loading=!0,this.api&&(t=yield this.api(r)),this.url&&(t=yield this.method(this.url,r)),this.loading=!1}catch(d){this.tableStatus=TABLE_STATUS.error,console.error(d),this.loading=!1;return}}else{this.$notify.warning({title:"开发提示!",message:"PageableTable 请提供 url(String) 或 api(Function) 属性"});return}const{data:a}=t||{},{total:o,records:l}=a||{};this.page.total=Number(o),this.records=l,!l||!l.length?this.tableStatus=TABLE_STATUS.empty:this.tableStatus=TABLE_STATUS.success,this.$refs.table&&(this.$refs.scroller.scrollTop=0),this.$emit("page-loaded",a)})},refresh(){return v(this,null,function*(){yield this.getPage()})},reload(){return v(this,null,function*(){this.page=S(f({},this.$options.data.call(this).page),{total:this.page.total})})},scrollTo(t,s){t&&(this.$refs.scroller.scrollTop=t),s&&(this.$refs.scroller.scrollLeft=s)}}},__cssModules$M={};var __component__$M=normalizeComponent(__vue2_script$M,render$I,staticRenderFns$I,!1,__vue2_injectStyles$M,null,null,null);function __vue2_injectStyles$M(t){for(let s in __cssModules$M)this[s]=__cssModules$M[s]}const PageableView=function(){return __component__$M.exports}();var render$H=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"egd-header flex-row egd-page-header"},[t._t("section-title",function(){return[n("span",{staticClass:"section-title"},[t._t("title",function(){return[t._v(t._s(t.title))]},{title:t.title})],2)]},{title:t.title}),n("div",{staticClass:"flex-row flex-item vertical-center"},[n("div",{class:["flex-row","flex-item","vertical-center",{"align-end":t.alignEnd}]},[t._t("default")],2)])],2)},staticRenderFns$H=[];const PageHeader_vue_vue_type_style_index_0_lang="",__vue2_script$L={name:"PageHeader",props:{title:{type:String,default:"标题"},alignEnd:{type:Boolean,default:!0}}},__cssModules$L={};var __component__$L=normalizeComponent(__vue2_script$L,render$H,staticRenderFns$H,!1,__vue2_injectStyles$L,null,null,null);function __vue2_injectStyles$L(t){for(let s in __cssModules$L)this[s]=__cssModules$L[s]}const PageHeader=function(){return __component__$L.exports}();var render$G=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"egd-container"},[t.aside?n("div",{staticClass:"egd-aside",style:{width:t.asideWidth}},[t._t("aside",function(){return[n("div",{staticClass:"egd-main"},[t._t("nav-top"),n("div",{staticClass:"egd-header"},[n("span",{staticClass:"section-title flex-not-shrink"},[t._v(t._s(t.sectionTitle))])]),t._t("menu",function(){return[n("ElTree",{ref:"menuTree",attrs:{data:t.menus,"default-expand-all":"",props:t.defaultProps,"highlight-current":"","empty-text":"请配置菜单!","default-expanded-keys":t.currentTreeKey,"node-key":"key"},on:{"node-click":t.onNodeClick},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.data,o=r.node;return[t._t("tree-node",function(){return[n("span",[n("i",{class:a.icon}),t._v(" "+t._s(a.label))])]},{data:a,node:o})]}}],null,!0)})]})],2)]})],2):t._e(),n("div",{staticClass:"page-index-content",style:{width:t.aside?`calc(100% - ${t.asideWidth})`:"100%"}},[t._t("default",function(){return[n("div",{staticClass:"page-index-content-empty"},[t._v(" "+t._s(t.tips)+" ")])]})],2)])},staticRenderFns$G=[];const PageIndex_vue_vue_type_style_index_0_lang="",__vue2_script$K={name:"PageIndex",props:{menus:{type:Array,default:()=>[]},asideWidth:{type:String,default:"220px"},aside:{type:Boolean,default:!0},tips:{type:String,default:"请添加页面内容!"},sectionTitle:{type:String,default:"功能导航"},schema:{type:String,default:""},currentTreeKey:{type:Array,default:()=>[]},defaultProps:{type:Object,default:()=>({})}},watch:{menus(){this.setCurrentKey(this.$route.path)}},mounted(){this.activeFirstMenu()},activated(){this.setCurrentKey(this.$route.path)},methods:{activeFirstMenu(){return v(this,null,function*(){if(core.treeToArray(this.menus).map(s=>s.path).filter(s=>s).includes(this.$route.path))yield this.setCurrentKey(this.$route.path);else{const s=core.findFirstMatchNode(this.menus,n=>n.path);s&&(yield this.$router.push({path:s.path,query:s.query}),yield this.setCurrentKey(s.path))}})},onNodeClick(t){return v(this,null,function*(){t.path&&t.path.indexOf("/")>-1&&(yield this.$router.push({path:t.path,query:t.query})),yield this.setCurrentKey(t.key)})},setCurrentKey(t){return v(this,null,function*(){yield this.$nextTick(),this.$refs.menuTree&&this.$refs.menuTree.setCurrentKey(t)})},beforeRouteUpdate(t,s,n){return v(this,null,function*(){if(t.path===this.schema){const r=core.findFirstMatchNode(this.menus,a=>a.path);r?(yield n({path:r.path,query:r.query}),yield this.setCurrentKey(r.path)):yield n(!1)}else yield n(),yield this.setCurrentKey(this.$route.path)})}}},__cssModules$K={};var __component__$K=normalizeComponent(__vue2_script$K,render$G,staticRenderFns$G,!1,__vue2_injectStyles$K,null,null,null);function __vue2_injectStyles$K(t){for(let s in __cssModules$K)this[s]=__cssModules$K[s]}const PageIndex=function(){return __component__$K.exports}();var render$F=function(){var t=this,s=t.$createElement,n=t._self._c||s;return t.menus&&t.menus.length?n("PageSkeleton",{scopedSlots:t._u([{key:"header",fn:function(){return[n("PageHeader",{scopedSlots:t._u([{key:"section-title",fn:function(){return[n("ElTabs",{on:{"tab-click":t.tabClick},model:{value:t.activeTab,callback:function(r){t.activeTab=r},expression:"activeTab"}},t._l(t.menus,function(r){return n("ElTabPane",{key:r.path,attrs:{label:r.label,name:`${r.path}`}})}),1)]},proxy:!0}],null,!1,412017982)})]},proxy:!0}],null,!1,2288233724)},[t._t("default",function(){return[n("EmptyView",{attrs:{"empty-tips":t.tips}})]})],2):n("EmptyView",{attrs:{"empty-tips":"暂无权限!"}})},staticRenderFns$F=[];const __vue2_script$J={name:"PageIndexTop",props:{menus:{type:Array,default:()=>[]},tips:{type:String,default:"请添加页面内容!"},schema:{type:String,default:""}},data(){return{activeTab:""}},watch:{menus:"activeFirstMenu"},mounted(){this.activeFirstMenu()},methods:{activeFirstMenu(){return v(this,null,function*(){if(core.treeToArray(this.menus).map(s=>s.path).filter(s=>s).includes(this.$route.path))this.activeTab=this.$route.path;else{const s=core.findFirstMatchNode(this.menus,n=>n.path);s&&(this.activeTab=s.path,yield this.$router.push({path:s.path,query:s.query}))}})},tabClick(t){return v(this,null,function*(){yield this.$router.push(t.name)})},beforeRouteUpdate(t,s,n){return v(this,null,function*(){if(t.path===this.schema){const r=core.findFirstMatchNode(this.menus,a=>a.path);r?(yield n({path:r.path,query:r.query}),this.activeTab=r.path):yield n(!1)}else yield n()})}}},__cssModules$J={};var __component__$J=normalizeComponent(__vue2_script$J,render$F,staticRenderFns$F,!1,__vue2_injectStyles$J,null,null,null);function __vue2_injectStyles$J(t){for(let s in __cssModules$J)this[s]=__cssModules$J[s]}const PageIndexTop=function(){return __component__$J.exports}();var render$E=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("Page",{staticClass:"page-skeleton"},[t.header?t._t("header",function(){return[t.title?n("PageHeader",{attrs:{title:t.title}}):n("NavBar")]}):t._e(),n("div",{class:["page-content",{"flex-column":t.flexColumn,"flex-row":t.flexRow,"content-scroll":t.contentScroll},t.contentClass]},[t._t("default")],2)],2)},staticRenderFns$E=[];const PageSkeleton_vue_vue_type_style_index_0_lang="",__vue2_script$I={name:"PageSkeleton",props:{title:String,flexColumn:Boolean,flexRow:Boolean,header:{type:Boolean,default:!0},contentClass:String,contentScroll:{type:Boolean,default:!0}}},__cssModules$I={};var __component__$I=normalizeComponent(__vue2_script$I,render$E,staticRenderFns$E,!1,__vue2_injectStyles$I,null,null,null);function __vue2_injectStyles$I(t){for(let s in __cssModules$I)this[s]=__cssModules$I[s]}const PageSkeleton=function(){return __component__$I.exports}();var render$D=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("Page",{staticClass:"page-skeleton-new",attrs:{horizontal:""}},[n("div",{staticClass:"page-skeleton-new-left",style:{width:t.sidebarWidth}},[t.header?n("div",{staticClass:"page-skeleton-new-header",staticStyle:{"margin-right":"0"}},[n("span",{staticClass:"section-title"},[t._v(t._s(t.title))])]):t._e(),n("div",{staticClass:"flex-item",staticStyle:{"border-right":"1px solid #eee"}},[t._t("sidebar-content",function(){return[t._v(" 侧栏内容 ")]})],2)]),n("div",{staticClass:"page-skeleton-new-right",style:{width:`calc(100% - ${t.sidebarWidth})`}},[t.header?n("div",{staticClass:"page-skeleton-new-header",staticStyle:{"margin-left":"0","padding-left":"10px"}},[n("div",{staticClass:"flex-item flex-row vertical-center"},[t._t("header-left")],2),n("div",{staticClass:"flex-item flex-row vertical-center"},[n("div",{class:["flex-row","flex-item","vertical-center","align-end"]},[t._t("header-right")],2)])]):t._e(),n("div",{class:["page-skeleton-new-page-content","flex-item",{"flex-column":t.flexColumn,"flex-row":t.flexRow,"content-scroll":t.contentScroll},t.contentClass]},[t._t("default",function(){return[t._v("内容")]})],2)])])},staticRenderFns$D=[];const PageSkeletonNew_vue_vue_type_style_index_0_lang="",__vue2_script$H={name:"PageSkeletonNew",props:{title:{type:String,default:"页面标题"},flexColumn:Boolean,flexRow:Boolean,header:{type:Boolean,default:!0},contentClass:String,contentScroll:{type:Boolean,default:!0},sidebarWidth:{type:String,default:"240px"}}},__cssModules$H={};var __component__$H=normalizeComponent(__vue2_script$H,render$D,staticRenderFns$D,!1,__vue2_injectStyles$H,null,null,null);function __vue2_injectStyles$H(t){for(let s in __cssModules$H)this[s]=__cssModules$H[s]}const PageSkeletonNew=function(){return __component__$H.exports}();function initPhotoSwipe(t){new PhotoSwipe$1(t).init()}function photoswipe(r,a){return v(this,arguments,function*(t,s,n={selector:"chat-image"}){const o=t.target;if(!(!o||o.classList.contains(n.selector)||o.tagName==="IMG"))return;const l=s.querySelectorAll(n.selector==="img"?n.selector:`.${n.selector}`),c=[...l].findIndex(d=>d===o);c>=0&&(n.index=c);const u=yield getDataSource(l);yield initPhotoSwipe({dataSource:u,index:c})})}function getDataSource(t){return v(this,null,function*(){const s=[];for(let n=0,r=t.length;n<r;n++){const a=t[n],o=a.getAttribute("data-src")||a.getAttribute("src"),l={src:o,msrc:o,alt:a.getAttribute("data-title")||a.getAttribute("alt"),element:a},c=a.getAttribute("data-height"),u=a.getAttribute("data-width");let d={width:u,height:c};!c&&!u&&(d=yield getImageSize(a),a.setAttribute("data-height",d.height),a.setAttribute("data-width",d.width)),l.w=d.width,l.width=d.width,l.h=d.height,l.height=d.height,s.push(l)}return s})}function getImageSize(t){const s=t.getAttribute("data-src")||t.getAttribute("src"),n=t.getAttribute("data-height"),r=t.getAttribute("data-width");return n&&r?{width:r,height:n}:t.complete?{width:t.naturalWidth,height:t.naturalHeight}:new Promise(a=>{const o=new Image;o.src=s;const l={};o.complete?(l.width=o.width,l.height=o.height,a(l)):(o.onload=()=>{l.width=o.width,l.height=o.height,a(l)},o.onerror=()=>{l.width=0,l.height=0,a(l)})})}var render$C=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{ref:"wrapper"},[t._t("default",function(){return t._l(t.urls,function(r){return n("img",{key:r.src,staticStyle:{cursor:"pointer"},attrs:{width:"100",src:r.src,alt:""},on:{click:t.preview}})})},{urls:t.urls,preview:t.preview})],2)},staticRenderFns$C=[];const __vue2_script$G={name:"PhotoSwipe",photoswipe,props:{urls:Array,selector:{type:String,default:"img"}},methods:{preview(t){return v(this,null,function*(){yield photoswipe(t,this.$refs.wrapper,{selector:this.selector})})}}},__cssModules$G={};var __component__$G=normalizeComponent(__vue2_script$G,render$C,staticRenderFns$C,!1,__vue2_injectStyles$G,null,null,null);function __vue2_injectStyles$G(t){for(let s in __cssModules$G)this[s]=__cssModules$G[s]}const PhotoSwipe=function(){return __component__$G.exports}(),processDesigner="",DefaultEmptyXML=(t,s,n)=>(n=n||"camunda",`<?xml version="1.0" encoding="UTF-8"?>
|
|
69
|
+
`,r("Enter",o[n])};continue}a&&typeof a=="object"&&Object.keys(a).length>0&&a[l[c].innerHTML]?l[c].onclick=a[l[c].innerHTML]:l[c].onclick=function(){o[n]+=this.innerText,r(this.innerText,o[n])}}}onclick(s,n){if(typeof s!="string"){console.error('aKeyboard: The btn parameter needs to be a string <In "aKeyboard.onclick()">');return}if(typeof n!="function"){console.error('aKeyboard: The fn parameter needs to be a function <In "aKeyboard.onclick()">');return}const r=document.querySelector(`${this.obj.el} .akeyboard-keyboard-keys-${s}`);r?r.onclick=n:console.error(`Can not find key: ${s}`)}}var render$U=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{class:["avue-keyboard",t.className]},[n("div",{attrs:{id:"keyboard"}})])},staticRenderFns$U=[];const Keyboard_vue_vue_type_style_index_0_lang="",__vue2_script$Z={name:"Keyboard",props:{ele:{type:String,required:!0},keys:Array,theme:{type:String,default:"default",validator:t=>["default","dark","green","classic"].includes(t)},type:{type:String,default:"default",validator:t=>["default","number","mobile"].includes(t)},fixedBottomCenter:{type:Boolean,default:!1},rebind:{type:Boolean,default:!0}},data(){return{customClick:{}}},computed:{className(){return`avue-keyboard--${this.theme}`}},watch:{ele(){this.init()}},mounted(){this.init()},methods:{init(){if(!this.ele)return;let t;const s={el:"#keyboard",style:{},keys:this.keys,fixedBottomCenter:this.fixedBottomCenter};this.type==="default"?t=new Keyboard$1(s):this.type==="number"&&(t=new NumberKeyboard(s));const n=this.ele.indexOf("#")===0?this.ele.substring(1):this.ele;t.inputOn(`#${n}`,"value",(r,a)=>{this.$emit("click",r,a)},this.rebind?this.customClick:null),this.keyboard=t},bindClick(t,s){this.keyboard.onclick(t,s),this.customClick[t]=s}}},__cssModules$Z={};var __component__$Z=normalizeComponent(__vue2_script$Z,render$U,staticRenderFns$U,!1,__vue2_injectStyles$Z,null,null,null);function __vue2_injectStyles$Z(t){for(let s in __cssModules$Z)this[s]=__cssModules$Z[s]}const Keyboard=function(){return __component__$Z.exports}();var render$T=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-license",staticStyle:{position:"relative"}},[n("canvas",{ref:"canvas",attrs:{id:`canvas${t.id}`}}),t._t("default")],2)},staticRenderFns$T=[];const __vue2_script$Y={name:"License",props:{id:{type:String,default:""},option:{type:Object,default:()=>({})}},data(){return{base64:"",draw:!1,canvas:"",context:""}},computed:{img(){return this.option.img},list(){return this.option.list||[]}},watch:{option:{handler(){this.init()},deep:!0}},mounted(){this.canvas=document.getElementById(`canvas${this.id}`),this.context=this.canvas.getContext("2d"),this.init()},methods:{init(){this.draw=!1;const t=new Image;t.src=this.img,t.onload=()=>{const s=this.option.width||t.width,n=this.option.width?t.height/t.width*this.option.width:t.height;this.$refs.canvas.width=s,this.$refs.canvas.height=n,this.context.clearRect(0,0,s,n),this.context.drawImage(t,0,0,s,n),this.list.forEach((r,a)=>{const o=()=>{a===this.list.length-1&&setTimeout(()=>{this.draw=!0},0)};if(r.img){const l=new Image;l.src=r.img,l.onload=()=>{const c=r.width||l.width,u=r.width?l.height/l.width*r.width:l.height;this.context.drawImage(l,r.left,r.top,c,u),o()}}else r.bold?this.context.font=`bold ${r.size}px ${r.style}`:this.context.font=`${r.size}px ${r.style}`,this.context.fillStyle=r.color,this.context.fillText(r.text,r.left,r.top),this.context.stroke(),o()})}},getFile(t=new Date().getTime()){return new Promise(s=>{const n=setInterval(()=>{if(this.draw){const r=this.canvas.toDataURL("image/jpeg",1),a=this.dataURLtoFile(r,t);clearInterval(n),s(a)}},1e3)})},downFile(t=new Date().getTime()){downFile(this.base64,t)},getBase64(){return new Promise(t=>{const s=setInterval(()=>{if(this.draw){const n=this.canvas.toDataURL("image/jpeg",1);this.base64=n,clearInterval(s),t(n)}},100)})},getPdf(t=new Date().getTime()){const s=this.canvas.width,n=this.canvas.height,r=s/592.28*841.89;let a=n,o=0;const l=595.28,c=592.28/s*n,u=this.canvas.toDataURL("image/jpeg",1),d=new window.jsPDF("","pt","a4");if(a<r)d.addImage(u,"JPEG",0,0,l,c);else for(;a>0;)d.addImage(u,"JPEG",0,o,l,c),a-=r,o-=841.89,a>0&&d.addPage();d.save(`${t}.pdf`)}}},__cssModules$Y={};var __component__$Y=normalizeComponent(__vue2_script$Y,render$T,staticRenderFns$T,!1,__vue2_injectStyles$Y,null,null,null);function __vue2_injectStyles$Y(t){for(let s in __cssModules$Y)this[s]=__cssModules$Y[s]}const License=function(){return __component__$Y.exports}();var render$S=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"loading-view",style:{fontSize:t.fontSize,height:t.height}},[t._t("default",function(){return[n("div",{staticClass:"flex-column horizon-center"},[n("i",{staticClass:"el-icon-loading",style:{fontSize:t.iconSize}}),n("p",[t._v(t._s(t.loadingTips))])])]})],2)},staticRenderFns$S=[];const LoadingView_vue_vue_type_style_index_0_lang="",__vue2_script$X={name:"LoadingView",props:{loadingTips:{type:String,default:"加载中..."},fontSize:{type:String,default:"20px"},iconSize:{type:String,default:"20px"},height:{type:String,default:"100%"}}},__cssModules$X={};var __component__$X=normalizeComponent(__vue2_script$X,render$S,staticRenderFns$S,!1,__vue2_injectStyles$X,null,null,null);function __vue2_injectStyles$X(t){for(let s in __cssModules$X)this[s]=__cssModules$X[s]}const LoadingView=function(){return __component__$X.exports}();var render$R=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-login",style:{width:t.setPx(t.width)}},[n("ElForm",{ref:"form",attrs:{model:t.form,"label-suffix":":","label-width":t.setPx(t.labelWidth)}},[t.username.hide?t._e():n("ElFormItem",{attrs:{label:t.username.label||"用户名",rules:t.username.rules,"label-width":t.setPx(t.username.labelWidth),prop:"username"}},[n("ElTooltip",{attrs:{content:t.username.tip,disabled:t.username.tip===void 0,placement:"top-start"}},[n("ElInput",{attrs:{size:"small","prefix-icon":t.username.prefixIcon||"el-icon-user",placeholder:t.username.placeholder||"请输入用户名",autocomplete:t.username.autocomplete},model:{value:t.form.username,callback:function(r){t.$set(t.form,"username",r)},expression:"form.username"}})],1)],1),t.password.hide?t._e():n("ElFormItem",{attrs:{label:t.password.label||"密码",rules:t.password.rules,"label-width":t.setPx(t.password.labelWidth),prop:"password"}},[n("ElTooltip",{attrs:{content:t.password.tip,disabled:t.password.tip===void 0,placement:"top-start"}},[n("ElInput",{attrs:{type:"password",size:"small","prefix-icon":t.password.prefixIcon||"el-icon-unlock",placeholder:t.password.placeholder||"请输入密码","show-password":"",autocomplete:t.password.autocomplete},model:{value:t.form.password,callback:function(r){t.$set(t.form,"password",r)},expression:"form.password"}})],1)],1),t.code.hide?t._e():n("ElFormItem",{attrs:{label:t.code.label||"验证码",rules:t.code.rules,"label-width":t.setPx(t.code.labelWidth),prop:"code"}},[n("ElTooltip",{attrs:{content:t.code.tip,disabled:t.code.tip===void 0,placement:"top-start"}},[n("ElInput",{attrs:{size:"small","prefix-icon":t.code.prefixIcon||"el-icon-c-scale-to-original",placeholder:t.code.placeholder||"请输入验证码",autocomplete:t.code.autocomplete},scopedSlots:t._u([{key:"append",fn:function(){return[t.isPhone?n("ElButton",{staticClass:"avue-login__send",attrs:{type:"primary",disabled:t.sendDisabled},on:{click:t.onSend}},[t._v(" "+t._s(t.text)+" ")]):t._e(),t.isImg?n("span",[n("img",{attrs:{src:t.codesrc,alt:"",width:"80",height:"25"},on:{click:t.onRefresh}})]):t._e()]},proxy:!0}],null,!1,2861735427),model:{value:t.form.code,callback:function(r){t.$set(t.form,"code",r)},expression:"form.code"}})],1)],1),n("ElFormItem",[n("ElButton",{staticClass:"avue-login__submit",attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v(" 登录 ")])],1)],1)],1)},staticRenderFns$R=[];const Login_vue_vue_type_style_index_0_lang="",INIT_TEXT="发送验证码",TIP_TEXT="{{time}}s后重获取",__vue2_script$W={name:"Login",props:{value:{type:Object,default:()=>({})},codesrc:{type:String},option:{type:Object,default:()=>({})}},data(){return{text:INIT_TEXT,nowtime:"",check:{},flag:!1}},computed:{form:{get(){return this.value},set(t){this.$emit("input",t),this.$emit("change",t)}},labelWidth(){return this.option.labelWidth||80},time(){return this.option.time||60},isImg(){return this.codeType==="img"},isPhone(){return this.codeType==="phone"},codeType(){return this.option.codeType||"img"},width(){return this.option.width||"100%"},username(){return this.column.username||{}},password(){return this.column.password||{}},code(){return this.column.code||{}},column(){return this.option.column||{}},sendDisabled(){return!core.isBlank(this.check)}},methods:{setPx,onSend(){const t=()=>{this.nowtime=this.time,this.text=TIP_TEXT.replace("{{time}}",this.nowtime),this.check=setInterval(()=>{this.nowtime--,this.nowtime===0?(this.text=INIT_TEXT,clearInterval(this.check),this.check=null):this.text=TIP_TEXT.replace("{{time}}",this.nowtime)},1e3)};this.sendDisabled||this.$emit("send",t)},onRefresh(){this.$emit("refresh")},onSubmit(){const t=()=>{const s={};for(const n in this.form){let r=n;this[n].prop&&(r=this[n].prop),s[r]=this.form[n]}return s};this.$refs.form.validate(s=>{s&&this.$emit("submit",t())})}}},__cssModules$W={};var __component__$W=normalizeComponent(__vue2_script$W,render$R,staticRenderFns$R,!1,__vue2_injectStyles$W,null,null,null);function __vue2_injectStyles$W(t){for(let s in __cssModules$W)this[s]=__cssModules$W[s]}const Login=function(){return __component__$W.exports}(),__vue2_script$V={name:"MonacoEditor",props:{diffEditor:{type:Boolean,default:!1},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},original:String,value:[String,Object],language:{type:String,default:"javascript"},theme:{type:String,default:"vs"},readOnly:{type:Boolean,default:!1},options:{type:Object,default(){return{}}},editorMounted:{type:Function,default:core.NOOP},editorBeforeMount:{type:Function,default:core.NOOP},keyIndex:{type:String}},computed:{style(){return{width:/^\d+$/.test(this.width)?`${this.width}px`:this.width,height:/^\d+$/.test(this.height)?`${this.height}px`:this.height,position:"relative"}}},watch:{options:{deep:!0,handler(t){this.editor&&this.editor.updateOptions(t)}},keyIndex(){let t=this.value;typeof t=="object"&&(t=convert(t)),this.editor&&t!==this._getValue()&&this._setValue(t)},language(){if(this.editor)if(this.diffEditor){const{original:t,modified:s}=this.editor.getModel();monaco__namespace.editor.setModelLanguage(t,this.language),monaco__namespace.editor.setModelLanguage(s,this.language)}else monaco__namespace.editor.setModelLanguage(this.editor.getModel(),this.language)},theme(){this.editor&&monaco__namespace.editor.setTheme(this.theme)},style(){this.editor&&this.$nextTick(()=>{this.editor.layout()})},value(t){this.editor&&t!==this._getValue()&&this._setValue(t)}},mounted(){this.initMonaco()},beforeDestroy(){this.editor&&this.editor.dispose()},methods:{initMonaco(){const{value:t,language:s,theme:n,readOnly:r,options:a}=this;Object.assign(a,this._editorBeforeMount()),this.editor=monaco__namespace.editor[this.diffEditor?"createDiffEditor":"create"](this.$el,f({value:typeof t=="string"?t:convert(t),language:s,theme:n,readOnly:r},a)),this.diffEditor&&this._setModel(this.value,this.original),this._editorMounted(this.editor)},_handleFullScreen(){this.isMaximum?this.minEditor():this.maxEditor()},maxEditor(){this.isMaximum=!0;const t=this.$el;this.originSize={width:t.clientWidth,height:t.clientHeight},t.classList.add("editor-fullscreen"),this.editor.layout({height:document.body.clientHeight,width:document.body.clientWidth}),document.addEventListener("keyup",s=>{s.keyCode===27&&this.minEditor()})},minEditor(){this.isMaximum=!1,this.$el.classList.remove("editor-fullscreen"),this.editor.layout({height:this.originSize.height,width:this.originSize.width}),document.removeEventListener("keyup",()=>{})},_getEditor(){return this.editor?this.diffEditor?this.editor.modifiedEditor:this.editor:null},_setModel(t,s){const{language:n}=this,r=monaco__namespace.editor.createModel(s,n),a=monaco__namespace.editor.createModel(t,n);this.editor.setModel({original:r,modified:a})},_setValue(t){const s=this._getEditor();if(s)return s.setValue(t)},_getValue(){const t=this._getEditor();return t?t.getValue():""},_editorBeforeMount(){return this.editorBeforeMount(monaco__namespace)||{}},_editorMounted(t){this.editorMounted(t,monaco__namespace),this.diffEditor?t.onDidUpdateDiff(s=>{const n=this._getValue();this._emitChange(n,s)}):t.onDidChangeModelContent(s=>{const n=this._getValue();this._emitChange(n,s)})},_emitChange(t,s){this.$emit("change",t,s),this.$emit("input",t)}},render(t){const s=this.options.fullScreen;return t("div",{class:"monaco_editor_container",style:this.style},[s?t("i",{class:"el-icon-full-screen",style:{width:"1.2em",height:"1.2em",position:"absolute",left:"0px",top:"0px",zIndex:"1",cursor:"pointer"},on:{click:this._handleFullScreen}}):""])}};let __vue2_render$4,__vue2_staticRenderFns$4;const __cssModules$V={};var __component__$V=normalizeComponent(__vue2_script$V,__vue2_render$4,__vue2_staticRenderFns$4,!1,__vue2_injectStyles$V,null,null,null);function __vue2_injectStyles$V(t){for(let s in __cssModules$V)this[s]=__cssModules$V[s]}const MonacoEditor=function(){return __component__$V.exports}();var render$Q=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"name-avatar",class:t.square?"square":"round"},[t.faceUrl&&!t.num?n("img",{staticClass:"name-avatar-image",attrs:{src:t.faceUrl,alt:""}}):n("div",{staticClass:"name-avatar-text",style:t.styles},[t._v(" "+t._s(t.text)+" ")])])},staticRenderFns$Q=[];const NameAvatar_vue_vue_type_style_index_0_lang="",__vue2_script$U={name:"NameAvatar",props:{num:[Number,String],name:String,square:Boolean,fontColor:{type:String,default:"#fff"},backgroundColor:{type:String,default:"#3696F2"},faceUrl:{type:String,default:""}},computed:{text(){return this.num!==void 0?`+${this.num}`:this.name?this.name.slice(-2):""},styles(){const t={};return this.size&&(t["font-size"]="12px"),this.fontColor&&(t.color=this.fontColor),this.backgroundColor&&(t.background=this.backgroundColor),t}}},__cssModules$U={};var __component__$U=normalizeComponent(__vue2_script$U,render$Q,staticRenderFns$Q,!1,__vue2_injectStyles$U,null,null,null);function __vue2_injectStyles$U(t){for(let s in __cssModules$U)this[s]=__cssModules$U[s]}const NameAvatar=function(){return __component__$U.exports}();var render$P=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"nav-bar"},[t.showBack?n("ElButton",{attrs:{type:"text",icon:"el-icon-arrow-left"},on:{click:t.goBack}},[t._v(" 返回 ")]):t._e(),t.$slots.right?n("div",{staticClass:"flex-item flex-row-column vertical-center"},[t._t("right")],2):t._e()],1)},staticRenderFns$P=[];const NavBar_vue_vue_type_style_index_0_lang="",__vue2_script$T={name:"NavBar",props:{onGoBack:Function,showBack:{type:Boolean,default:!0}},methods:{goBack(){this.onGoBack?this.onGoBack():this.$router.back()}}},__cssModules$T={};var __component__$T=normalizeComponent(__vue2_script$T,render$P,staticRenderFns$P,!1,__vue2_injectStyles$T,null,null,null);function __vue2_injectStyles$T(t){for(let s in __cssModules$T)this[s]=__cssModules$T[s]}const NavBar=function(){return __component__$T.exports}();var render$O=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-notice"},[t._l(t.data,function(r,a){return n("div",{key:a,staticClass:"avue-notice__item",on:{click:function(o){return t.click(r)}}},[r[t.imgKey]?n("div",{staticClass:"avue-notice__img"},[n("img",{attrs:{src:r[t.imgKey],alt:""}})]):t._e(),n("div",{staticClass:"avue-notice__content"},[n("div",{staticClass:"avue-notice__title"},[n("span",{staticClass:"avue-notice__name"},[t._v(t._s(r[t.titleKey]))]),r[t.tagKey]?n("span",{staticClass:"avue-notice__tag"},[n("ElTag",{attrs:{size:"small",type:t.getType(r[t.statusKey])}},[t._v(t._s(r[t.tagKey]))])],1):t._e()]),n("div",{staticClass:"avue-notice__subtitle"},[t._v(" "+t._s(r[t.subtitleKey])+" ")])])])}),t.finish?t._e():n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"avue-notice__more",on:{click:t.handleClick}},[t._v(" 加载更多 ")])],2)},staticRenderFns$O=[];const Notice_vue_vue_type_style_index_0_lang="",propsDefault={img:"img",title:"title",subtile:"title",tag:"tag",status:"status"},__vue2_script$S={name:"Notice",props:{finish:{type:Boolean,default:!1},option:{type:Object,default:()=>({})},data:{type:Array,default:()=>[]}},data(){return{page:1,loading:!1}},computed:{props(){return this.option.props||propsDefault},imgKey(){return this.props.img||propsDefault.img},titleKey(){return this.props.title||propsDefault.title},subtitleKey(){return this.props.subtitle||propsDefault.subtitle},tagKey(){return this.props.tag||propsDefault.tag},statusKey(){return this.props.status||propsDefault.status}},methods:{click(t){this.$emit("click",t)},handleClick(){this.loading=!0;const t=()=>{this.loading=!1};this.page++,this.$emit("page-change",this.page,t)},getType(t=0){if(t===0)return"info";if(t===1)return"";if(t===2)return"warning";if(t===3)return"danger";if(t===4)return"success"}}},__cssModules$S={};var __component__$S=normalizeComponent(__vue2_script$S,render$O,staticRenderFns$O,!1,__vue2_injectStyles$S,null,null,null);function __vue2_injectStyles$S(t){for(let s in __cssModules$S)this[s]=__cssModules$S[s]}const Notice=function(){return __component__$S.exports}();var render$N=function(){var t=this,s=t.$createElement;return t._self._c,t._m(0)},staticRenderFns$N=[function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"not-implement"},[n("div",[n("i",{staticClass:"fa fa-wrench"}),t._v(" 建设中... ")])])}];const NotImplement_vue_vue_type_style_index_0_lang="",__vue2_script$R={name:"NotImplement"},__cssModules$R={};var __component__$R=normalizeComponent(__vue2_script$R,render$N,staticRenderFns$N,!1,__vue2_injectStyles$R,null,null,null);function __vue2_injectStyles$R(t){for(let s in __cssModules$R)this[s]=__cssModules$R[s]}const NotImplement=function(){return __component__$R.exports}();var render$M=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"page flex-row flex-item",class:{vertical:t.vertical&&!t.horizontal}},[t._t("default")],2)},staticRenderFns$M=[];const Page_vue_vue_type_style_index_0_lang="",__vue2_script$Q={name:"Page",props:{vertical:{type:Boolean,default:!0},horizontal:Boolean}},__cssModules$Q={};var __component__$Q=normalizeComponent(__vue2_script$Q,render$M,staticRenderFns$M,!1,__vue2_injectStyles$Q,null,null,null);function __vue2_injectStyles$Q(t){for(let s in __cssModules$Q)this[s]=__cssModules$Q[s]}const Page=function(){return __component__$Q.exports}();var render$L=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{class:["pageable-table",{"auto-height":t.autoHeight}]},[n("div",{staticClass:"pageable-table-wrapper"},[t._t("toolbar"),n("ElTable",t._g(t._b({ref:"table",class:["flex-item",{"header-bold":t.headerBold}],attrs:{data:t.records,border:t.border},on:{"hook:updated":t.updateTableScrollPosition,"sort-change":t.onSortChange,"row-dblclick":t.rowDbClick,"current-change":t.onCurrentChange},scopedSlots:t._u([{key:"empty",fn:function(){return[t._t("empty",function(){return[t.tableStatus===t.TABLE_STATUS.loading?[n("span",{staticClass:"pageable-table-loading"},[n("i",{staticClass:"table-status-icon el-icon-loading"}),t._v(" 加载中...")])]:t.tableStatus===t.TABLE_STATUS.error?[n("ElButton",{staticClass:"pageable-table-error",attrs:{icon:"table-status-icon fa fa-frown-o"},on:{click:t.refresh}},[t._v(" 加载失败,点击重试! ")])]:[t._v(" 暂无数据 ")]]})]},proxy:!0},{key:"append",fn:function(){return[t._t("append")]},proxy:!0}],null,!0)},"ElTable",t.filterTableProperties(t.mergeAttrs),!1),t.filterTableEvents(t.$listeners)),[t.multiple&&t.selection?n("TableColumn",{key:"multiple",attrs:{type:"selection",width:"45",align:"center"}}):t._e(),!t.multiple&&t.selection?n("TableColumn",{key:"single",attrs:{type:"single-selection","class-name":"single-select-column",width:"45",align:"center"},scopedSlots:t._u([{key:"header",fn:function(){return[n("ElRadio",{attrs:{value:!!t.currentRow,label:!0}},[n("span")])]},proxy:!0},{key:"default",fn:function(r){var a=r.row;return[n("ElRadio",{attrs:{label:!0,value:t.currentRow&&t.currentRow[t.$attrs["row-key"]||"id"]===a[t.$attrs["row-key"]||"id"]}},[n("span")])]}}],null,!1,307797321)}):t._e(),t.index?n("TableColumn",{key:"order",attrs:{type:"index",label:"序号",width:t.indexWidth,align:"center"},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.$index;return[t._v(" "+t._s((t.page.page-1)*t.page.limit+a+1||a+1)+" ")]}}],null,!1,4238275121)}):t._e(),t._t("default",function(){return[t.columns&&t.columns.length?t._l(t.headers,function(r,a){return n("TableColumn",t._b({key:`${r.prop}-${a}`},"TableColumn",r,!1))}):n("TableColumn",{attrs:{label:"点击表格行复制模板"},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.row;return[n("pre",{staticClass:"pointer"},[t._v(t._s(JSON.stringify(a,null," ")))])]}}])})]})],2),n("ElPagination",{staticClass:"flex-not-shrink",attrs:{"current-page":t.page.page,"hide-on-single-page":t.hideOnSinglePage,"page-size":t.page.limit,total:t.page.total,background:"",layout:"total, prev, pager, next, jumper"},on:{"current-change":function(r){t.page.page=r}}})],2)])},staticRenderFns$L=[];const PageableTable_vue_vue_type_style_index_0_lang="",TABLE_STATUS$1={loading:1,error:-1,empty:2,success:0},__vue2_script$P={name:"PageableTable",bus:{reloadTableView(t){t===this.viewId&&this.getPage()}},inheritAttrs:!1,props:{viewId:{type:String},url:{type:String},httpGet:Boolean,hideOnSinglePage:Boolean,api:{type:Function},filters:{type:Object},filter:{type:Object},rules:{type:Array,default:()=>[]},model:{type:Object},ascs:{type:String,default:""},descs:{type:String,default:""},headerBold:Boolean,autoHeight:Boolean,immediate:{type:Boolean,default:!0},index:{type:Boolean,default:!0},multiple:{type:Boolean,default:!0},selection:{type:Boolean,default:!0},border:{type:Boolean,default:!0},reloadOnModelChange:{type:Boolean,default:!1},columns:{type:Array},pageSize:{type:Number,default:25}},data(){let t={rules:[]};this.rules&&this.rules.length>0&&(t.rules=this.rules),this.filters&&(t=this.filters),this.filter&&(t=Object.assign({},t,this.filter));let s={};this.model&&(s=lodash.cloneDeep(this.model));const n=this.pageSize;return{TABLE_STATUS:Object.freeze(TABLE_STATUS$1),tableStatus:TABLE_STATUS$1.empty,records:[],currentRow:null,page:{total:0,page:1,limit:n,ascs:this.ascs,descs:this.descs,model:s,filters:t}}},computed:{guard(){return this.reloadOnModelChange?{asc:this.page.ascs,desc:this.page.descs,page:this.page.page,model:this.page.model,filters:this.page.filters}:{asc:this.page.ascs,desc:this.page.descs,page:this.page.page,filters:this.page.filters}},method(){return this.httpGet?this.httpGet:this.httpPost},indexWidth(){const t=`${(this.page.page-1)*this.page.limit+this.records.length}`;return t.length>3?50+(t.length-3)*10:50},mergeAttrs(){return lodash.merge({},this.$attrs,{height:this.autoHeight?null:"auto"})},headers(){var t;return((t=this.columns)==null?void 0:t.map(filterTableColumnProperties))||[]}},watch:{url:{handler:"reload"},api:{handler:"reload"},"$attrs.data"(){this.getPage()},model:{deep:!0,handler(t){this.setModel(t)}}},created(){this.$watch(()=>this.guard,this.getPage,{deep:!0,immediate:this.immediate})},mounted(){this.$refs.table.bodyWrapper.addEventListener("scroll",this.onTableScroll)},beforeDestroy(){this.$refs.table.bodyWrapper.removeEventListener("scroll",this.onTableScroll)},methods:{rowDbClick(...t){var n;const s=this.$refs.table.$children.find(r=>{var a;return((a=r.$options)==null?void 0:a.name)==="ElTableBody"});s&&((n=s.$refs.tooltip)==null||n.hide()),this.$emit("row-dblclick",...t)},updateTableScrollPosition(){return v(this,null,function*(){this.$refs.table.bodyWrapper&&this.scrollTo(this.tableScrollTop,this.tableScrollLeft)})},filterTableProperties,filterTableEvents,filterTableColumnProperties,onTableScroll(){this.tableScrollTop=this.$refs.table.bodyWrapper.scrollTop,this.tableScrollLeft=this.$refs.table.bodyWrapper.scrollLeft},onSortChange({prop:t,order:s}){this.page.ascs=s==="ascending"?t:"",this.page.descs=s==="descending"?t:""},onCurrentChange(t){this.currentRow=t},addRule(t){this.removeRule(t.field),this.page.filters.rules.push(t)},addRules(t){t.forEach(s=>this.addRule(s))},setModelField(t,s){this.$set(this.page.model,t,s)},setModel(t){this.page.page=1,this.page.model=lodash.cloneDeep(t)},deleteModelField(t){delete this.page.model[t]},removeRule(t){const s=this.page.filters.rules,n=s.findIndex(r=>r.field===t);n>-1&&s.splice(n,1)},addFilter({field:t,op:s,value:n}){this.page.filters=Object.assign({},this.page.filters,{rules:[{field:t,op:s,value:n}],op:"and"})},clearFilters(){this.page.filters={}},clearSelection(){this.$refs.table.clearSelection()},search(){this.setModel(this.model),this.getPage()},getPage(){return v(this,null,function*(){var u;if(core.hasOwn(this.$attrs,"data")){this.records=this.$attrs.data,this.page.page=1,this.page.total=this.records.length,this.page.limit=this.page.total;return}this.records=[];let t;const c=this.page,{filters:s}=c,n=R(c,["filters"]),r=f({},n);if((u=s==null?void 0:s.rules)!=null&&u.length&&(r.filters={rules:s.rules}),this.api||this.url){this.tableStatus=TABLE_STATUS$1.loading;try{this.api&&(t=yield this.api(r)),this.url&&(t=yield this.method(this.url,r))}catch(d){this.tableStatus=TABLE_STATUS$1.error,console.error(d);return}}else{this.$notify.warning({title:"开发提示!",message:"PageableTable 请提供 url(String) 或 api(Function) 属性"});return}const{data:a}=t||{},{total:o,records:l}=a||{};this.page.total=Number(o),this.records=l,!l||!l.length?this.tableStatus=TABLE_STATUS$1.empty:this.tableStatus=TABLE_STATUS$1.success,this.$refs.table.doLayout(),this.$emit("page-loaded",a)})},refresh(){return v(this,null,function*(){yield this.getPage()})},reload(){return v(this,null,function*(){this.page=S(f({},this.$options.data.call(this).page),{total:this.page.total})})},scrollTo(t,s){t&&(this.$refs.table.bodyWrapper.scrollTop=t),s&&(this.$refs.table.bodyWrapper.scrollLeft=s)}}},__cssModules$P={};var __component__$P=normalizeComponent(__vue2_script$P,render$L,staticRenderFns$L,!1,__vue2_injectStyles$P,null,null,null);function __vue2_injectStyles$P(t){for(let s in __cssModules$P)this[s]=__cssModules$P[s]}const PageableTable=function(){return __component__$P.exports}();var render$K=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"work",staticStyle:{height:"100%","background-color":"#fff"}},[n("div",{staticClass:"flex-column list-content",staticStyle:{height:"100%"}},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"flex-item-relative",attrs:{"element-loading-text":"加载中...","element-loading-background":"#fff"}},[n("div",{ref:"scroller",staticClass:"scroll-wrapper"},[n("div",{staticClass:"cards-block"},[t._t("prepend"),t._l(t.records,function(r){return[t._t("default",null,{item:r})]}),t._t("append")],2)])]),n("ElPagination",{staticClass:"flex-not-shrink",staticStyle:{"border-top":"1px solid #ebeef5"},attrs:{"current-page":t.page.page,"hide-on-single-page":t.hideOnSinglePage,"page-size":t.page.limit,total:t.page.total,background:"",layout:"total, prev, pager, next, jumper"},on:{"current-change":function(r){t.page.page=r}}})],1)])},staticRenderFns$K=[];const PageableView_vue_vue_type_style_index_0_lang="";function getTemplate(t){let s="";for(const n in t)s+=`<ElTableColumn prop="${n}" label="${n}"/>
|
|
70
|
+
`;return s}const TABLE_STATUS={loading:1,error:-1,empty:2,success:0},__vue2_script$O={name:"PageableView",bus:{reloadTableView(t){t===this.viewId&&this.getPage()}},inheritAttrs:!1,props:{viewId:{type:String},url:{type:String},httpGet:Boolean,hideOnSinglePage:Boolean,api:{type:Function},filters:{type:Object},filter:{type:Object},rules:{type:Array,default:()=>[]},model:{type:Object},ascs:{type:String,default:""},descs:{type:String,default:""},autoHeight:Boolean,immediate:{type:Boolean,default:!0},reloadOnModelChange:{type:Boolean,default:!1},columns:{type:Array},pageSize:{type:Number,default:25}},data(){let t={rules:[]};this.rules&&this.rules.length>0&&(t.rules=this.rules),this.filters&&(t=this.filters),this.filter&&(t=Object.assign({},t,this.filter));let s={};this.model&&(s=lodash.cloneDeep(this.model));const n=this.pageSize;return{tableStatus:TABLE_STATUS.empty,records:[],loading:!1,currentRow:null,page:{total:0,page:1,limit:n,ascs:this.ascs,descs:this.descs,model:s,filters:t}}},computed:{guard(){return this.reloadOnModelChange?{asc:this.page.ascs,desc:this.page.descs,page:this.page.page,model:this.page.model,filters:this.page.filters}:{asc:this.page.ascs,desc:this.page.descs,page:this.page.page,filters:this.page.filters}},method(){return this.httpGet?this.httpGet:this.httpPost},indexWidth(){const t=`${(this.page.page-1)*this.page.limit+this.records.length}`;return t.length>3?50+(t.length-3)*10:50},mergeAttrs(){return lodash.merge({},this.$attrs,{height:this.autoHeight?null:"auto"})},headers(){var t;return((t=this.columns)==null?void 0:t.map(filterTableColumnProperties))||[]}},watch:{url:{handler:"reload"},api:{handler:"reload"},"$attrs.data"(){this.getPage()},model:{deep:!0,handler(t){this.setModel(t)}}},created(){this.$watch(()=>this.guard,this.getPage,{deep:!0,immediate:this.immediate})},mounted(){this.$refs.scroller.addEventListener("scroll",this.onTableScroll)},beforeDestroy(){var t;(t=this.$refs.scroller)==null||t.removeEventListener("scroll",this.onTableScroll)},methods:{updateTableScrollPosition(){return v(this,null,function*(){this.$refs.scroller&&this.scrollTo(this.tableScrollTop,this.tableScrollLeft)})},filterTableProperties,filterTableEvents,filterTableColumnProperties,onTableScroll(){this.tableScrollTop=this.$refs.scroller.scrollTop,this.tableScrollLeft=this.$refs.scroller.scrollLeft},copy:t=>core.copy(getTemplate(t)),onSortChange({prop:t,order:s}){this.page.ascs=s==="ascending"?t:"",this.page.descs=s==="descending"?t:""},onCurrentChange(t){this.currentRow=t},addRule(t){this.removeRule(t.field),this.page.filters.rules.push(t)},addRules(t){t.forEach(s=>this.addRule(s))},setModelField(t,s){this.$set(this.page.model,t,s)},setModel(t){this.page.page=1,this.page.model=lodash.cloneDeep(t)},deleteModelField(t){delete this.page.model[t]},removeRule(t){const s=this.page.filters.rules,n=s.findIndex(r=>r.field===t);n>-1&&s.splice(n,1)},addFilter({field:t,op:s,value:n}){this.page.filters=Object.assign({},this.page.filters,{rules:[{field:t,op:s,value:n}],op:"and"})},clearFilters(){this.page.filters={}},clearSelection(){this.$refs.table.clearSelection()},search(){this.setModel(this.model),this.getPage()},getPage(){return v(this,null,function*(){var u;if(core.hasOwn(this.$attrs,"data")){this.records=this.$attrs.data,this.page.page=1,this.page.total=this.records.length,this.page.limit=this.page.total;return}this.records=[];let t;const c=this.page,{filters:s}=c,n=R(c,["filters"]),r=f({},n);if((u=s==null?void 0:s.rules)!=null&&u.length&&(r.filters={rules:s.rules}),this.api||this.url){this.tableStatus=TABLE_STATUS.loading;try{this.loading=!0,this.api&&(t=yield this.api(r)),this.url&&(t=yield this.method(this.url,r)),this.loading=!1}catch(d){this.tableStatus=TABLE_STATUS.error,console.error(d),this.loading=!1;return}}else{this.$notify.warning({title:"开发提示!",message:"PageableTable 请提供 url(String) 或 api(Function) 属性"});return}const{data:a}=t||{},{total:o,records:l}=a||{};this.page.total=Number(o),this.records=l,!l||!l.length?this.tableStatus=TABLE_STATUS.empty:this.tableStatus=TABLE_STATUS.success,this.$refs.table&&(this.$refs.scroller.scrollTop=0),this.$emit("page-loaded",a)})},refresh(){return v(this,null,function*(){yield this.getPage()})},reload(){return v(this,null,function*(){this.page=S(f({},this.$options.data.call(this).page),{total:this.page.total})})},scrollTo(t,s){t&&(this.$refs.scroller.scrollTop=t),s&&(this.$refs.scroller.scrollLeft=s)}}},__cssModules$O={};var __component__$O=normalizeComponent(__vue2_script$O,render$K,staticRenderFns$K,!1,__vue2_injectStyles$O,null,null,null);function __vue2_injectStyles$O(t){for(let s in __cssModules$O)this[s]=__cssModules$O[s]}const PageableView=function(){return __component__$O.exports}();var render$J=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"egd-header flex-row egd-page-header"},[t._t("section-title",function(){return[n("span",{staticClass:"section-title"},[t._t("title",function(){return[t._v(t._s(t.title))]},{title:t.title})],2)]},{title:t.title}),n("div",{staticClass:"flex-row flex-item vertical-center"},[n("div",{class:["flex-row","flex-item","vertical-center",{"align-end":t.alignEnd}]},[t._t("default")],2)])],2)},staticRenderFns$J=[];const PageHeader_vue_vue_type_style_index_0_lang="",__vue2_script$N={name:"PageHeader",props:{title:{type:String,default:"标题"},alignEnd:{type:Boolean,default:!0}}},__cssModules$N={};var __component__$N=normalizeComponent(__vue2_script$N,render$J,staticRenderFns$J,!1,__vue2_injectStyles$N,null,null,null);function __vue2_injectStyles$N(t){for(let s in __cssModules$N)this[s]=__cssModules$N[s]}const PageHeader=function(){return __component__$N.exports}();var render$I=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"egd-container"},[t.aside?n("div",{staticClass:"egd-aside",style:{width:t.asideWidth}},[t._t("aside",function(){return[n("div",{staticClass:"egd-main"},[t._t("nav-top"),n("div",{staticClass:"egd-header"},[n("span",{staticClass:"section-title flex-not-shrink"},[t._v(t._s(t.sectionTitle))])]),t._t("menu",function(){return[n("ElTree",{ref:"menuTree",attrs:{data:t.menus,"default-expand-all":"",props:t.defaultProps,"highlight-current":"","empty-text":"请配置菜单!","default-expanded-keys":t.currentTreeKey,"node-key":"key"},on:{"node-click":t.onNodeClick},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.data,o=r.node;return[t._t("tree-node",function(){return[n("span",[n("i",{class:a.icon}),t._v(" "+t._s(a.label))])]},{data:a,node:o})]}}],null,!0)})]})],2)]})],2):t._e(),n("div",{staticClass:"page-index-content",style:{width:t.aside?`calc(100% - ${t.asideWidth})`:"100%"}},[t._t("default",function(){return[n("div",{staticClass:"page-index-content-empty"},[t._v(" "+t._s(t.tips)+" ")])]})],2)])},staticRenderFns$I=[];const PageIndex_vue_vue_type_style_index_0_lang="",__vue2_script$M={name:"PageIndex",props:{menus:{type:Array,default:()=>[]},asideWidth:{type:String,default:"220px"},aside:{type:Boolean,default:!0},tips:{type:String,default:"请添加页面内容!"},sectionTitle:{type:String,default:"功能导航"},schema:{type:String,default:""},currentTreeKey:{type:Array,default:()=>[]},defaultProps:{type:Object,default:()=>({})}},watch:{menus(){this.setCurrentKey(this.$route.path)}},mounted(){this.activeFirstMenu()},activated(){this.setCurrentKey(this.$route.path)},methods:{activeFirstMenu(){return v(this,null,function*(){if(core.treeToArray(this.menus).map(s=>s.path).filter(s=>s).includes(this.$route.path))yield this.setCurrentKey(this.$route.path);else{const s=core.findFirstMatchNode(this.menus,n=>n.path);s&&(yield this.$router.push({path:s.path,query:s.query}),yield this.setCurrentKey(s.path))}})},onNodeClick(t){return v(this,null,function*(){t.path&&t.path.indexOf("/")>-1&&(yield this.$router.push({path:t.path,query:t.query})),yield this.setCurrentKey(t.key)})},setCurrentKey(t){return v(this,null,function*(){yield this.$nextTick(),this.$refs.menuTree&&this.$refs.menuTree.setCurrentKey(t)})},beforeRouteUpdate(t,s,n){return v(this,null,function*(){if(t.path===this.schema){const r=core.findFirstMatchNode(this.menus,a=>a.path);r?(yield n({path:r.path,query:r.query}),yield this.setCurrentKey(r.path)):yield n(!1)}else yield n(),yield this.setCurrentKey(this.$route.path)})}}},__cssModules$M={};var __component__$M=normalizeComponent(__vue2_script$M,render$I,staticRenderFns$I,!1,__vue2_injectStyles$M,null,null,null);function __vue2_injectStyles$M(t){for(let s in __cssModules$M)this[s]=__cssModules$M[s]}const PageIndex=function(){return __component__$M.exports}();var render$H=function(){var t=this,s=t.$createElement,n=t._self._c||s;return t.menus&&t.menus.length?n("PageSkeleton",{scopedSlots:t._u([{key:"header",fn:function(){return[n("PageHeader",{scopedSlots:t._u([{key:"section-title",fn:function(){return[n("ElTabs",{on:{"tab-click":t.tabClick},model:{value:t.activeTab,callback:function(r){t.activeTab=r},expression:"activeTab"}},t._l(t.menus,function(r){return n("ElTabPane",{key:r.path,attrs:{label:r.label,name:`${r.path}`}})}),1)]},proxy:!0}],null,!1,412017982)})]},proxy:!0}],null,!1,2288233724)},[t._t("default",function(){return[n("EmptyView",{attrs:{"empty-tips":t.tips}})]})],2):n("EmptyView",{attrs:{"empty-tips":"暂无权限!"}})},staticRenderFns$H=[];const __vue2_script$L={name:"PageIndexTop",props:{menus:{type:Array,default:()=>[]},tips:{type:String,default:"请添加页面内容!"},schema:{type:String,default:""}},data(){return{activeTab:""}},watch:{menus:"activeFirstMenu"},mounted(){this.activeFirstMenu()},methods:{activeFirstMenu(){return v(this,null,function*(){if(core.treeToArray(this.menus).map(s=>s.path).filter(s=>s).includes(this.$route.path))this.activeTab=this.$route.path;else{const s=core.findFirstMatchNode(this.menus,n=>n.path);s&&(this.activeTab=s.path,yield this.$router.push({path:s.path,query:s.query}))}})},tabClick(t){return v(this,null,function*(){yield this.$router.push(t.name)})},beforeRouteUpdate(t,s,n){return v(this,null,function*(){if(t.path===this.schema){const r=core.findFirstMatchNode(this.menus,a=>a.path);r?(yield n({path:r.path,query:r.query}),this.activeTab=r.path):yield n(!1)}else yield n()})}}},__cssModules$L={};var __component__$L=normalizeComponent(__vue2_script$L,render$H,staticRenderFns$H,!1,__vue2_injectStyles$L,null,null,null);function __vue2_injectStyles$L(t){for(let s in __cssModules$L)this[s]=__cssModules$L[s]}const PageIndexTop=function(){return __component__$L.exports}();var render$G=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("Page",{staticClass:"page-skeleton"},[t.header?t._t("header",function(){return[t.title?n("PageHeader",{attrs:{title:t.title}}):n("NavBar")]}):t._e(),n("div",{class:["page-content",{"flex-column":t.flexColumn,"flex-row":t.flexRow,"content-scroll":t.contentScroll},t.contentClass]},[t._t("default")],2)],2)},staticRenderFns$G=[];const PageSkeleton_vue_vue_type_style_index_0_lang="",__vue2_script$K={name:"PageSkeleton",props:{title:String,flexColumn:Boolean,flexRow:Boolean,header:{type:Boolean,default:!0},contentClass:String,contentScroll:{type:Boolean,default:!0}}},__cssModules$K={};var __component__$K=normalizeComponent(__vue2_script$K,render$G,staticRenderFns$G,!1,__vue2_injectStyles$K,null,null,null);function __vue2_injectStyles$K(t){for(let s in __cssModules$K)this[s]=__cssModules$K[s]}const PageSkeleton=function(){return __component__$K.exports}();var render$F=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("Page",{staticClass:"page-skeleton-new",attrs:{horizontal:""}},[n("div",{staticClass:"page-skeleton-new-left",style:{width:t.sidebarWidth}},[t.header?n("div",{staticClass:"page-skeleton-new-header",staticStyle:{"margin-right":"0"}},[n("span",{staticClass:"section-title"},[t._v(t._s(t.title))])]):t._e(),n("div",{staticClass:"flex-item",staticStyle:{"border-right":"1px solid #eee"}},[t._t("sidebar-content",function(){return[t._v(" 侧栏内容 ")]})],2)]),n("div",{staticClass:"page-skeleton-new-right",style:{width:`calc(100% - ${t.sidebarWidth})`}},[t.header?n("div",{staticClass:"page-skeleton-new-header",staticStyle:{"margin-left":"0","padding-left":"10px"}},[n("div",{staticClass:"flex-item flex-row vertical-center"},[t._t("header-left")],2),n("div",{staticClass:"flex-item flex-row vertical-center"},[n("div",{class:["flex-row","flex-item","vertical-center","align-end"]},[t._t("header-right")],2)])]):t._e(),n("div",{class:["page-skeleton-new-page-content","flex-item",{"flex-column":t.flexColumn,"flex-row":t.flexRow,"content-scroll":t.contentScroll},t.contentClass]},[t._t("default",function(){return[t._v("内容")]})],2)])])},staticRenderFns$F=[];const PageSkeletonNew_vue_vue_type_style_index_0_lang="",__vue2_script$J={name:"PageSkeletonNew",props:{title:{type:String,default:"页面标题"},flexColumn:Boolean,flexRow:Boolean,header:{type:Boolean,default:!0},contentClass:String,contentScroll:{type:Boolean,default:!0},sidebarWidth:{type:String,default:"240px"}}},__cssModules$J={};var __component__$J=normalizeComponent(__vue2_script$J,render$F,staticRenderFns$F,!1,__vue2_injectStyles$J,null,null,null);function __vue2_injectStyles$J(t){for(let s in __cssModules$J)this[s]=__cssModules$J[s]}const PageSkeletonNew=function(){return __component__$J.exports}();function initPhotoSwipe(t){new PhotoSwipe$1(t).init()}function photoswipe(r,a){return v(this,arguments,function*(t,s,n={selector:"chat-image"}){const o=t.target;if(!(!o||o.classList.contains(n.selector)||o.tagName==="IMG"))return;const l=s.querySelectorAll(n.selector==="img"?n.selector:`.${n.selector}`),c=[...l].findIndex(d=>d===o);c>=0&&(n.index=c);const u=yield getDataSource(l);yield initPhotoSwipe({dataSource:u,index:c})})}function getDataSource(t){return v(this,null,function*(){const s=[];for(let n=0,r=t.length;n<r;n++){const a=t[n],o=a.getAttribute("data-src")||a.getAttribute("src"),l={src:o,msrc:o,alt:a.getAttribute("data-title")||a.getAttribute("alt"),element:a},c=a.getAttribute("data-height"),u=a.getAttribute("data-width");let d={width:u,height:c};!c&&!u&&(d=yield getImageSize(a),a.setAttribute("data-height",d.height),a.setAttribute("data-width",d.width)),l.w=d.width,l.width=d.width,l.h=d.height,l.height=d.height,s.push(l)}return s})}function getImageSize(t){const s=t.getAttribute("data-src")||t.getAttribute("src"),n=t.getAttribute("data-height"),r=t.getAttribute("data-width");return n&&r?{width:r,height:n}:t.complete?{width:t.naturalWidth,height:t.naturalHeight}:new Promise(a=>{const o=new Image;o.src=s;const l={};o.complete?(l.width=o.width,l.height=o.height,a(l)):(o.onload=()=>{l.width=o.width,l.height=o.height,a(l)},o.onerror=()=>{l.width=0,l.height=0,a(l)})})}var render$E=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{ref:"wrapper"},[t._t("default",function(){return t._l(t.urls,function(r){return n("img",{key:r.src,staticStyle:{cursor:"pointer"},attrs:{width:"100",src:r.src,alt:""},on:{click:t.preview}})})},{urls:t.urls,preview:t.preview})],2)},staticRenderFns$E=[];const __vue2_script$I={name:"PhotoSwipe",photoswipe,props:{urls:Array,selector:{type:String,default:"img"}},methods:{preview(t){return v(this,null,function*(){yield photoswipe(t,this.$refs.wrapper,{selector:this.selector})})}}},__cssModules$I={};var __component__$I=normalizeComponent(__vue2_script$I,render$E,staticRenderFns$E,!1,__vue2_injectStyles$I,null,null,null);function __vue2_injectStyles$I(t){for(let s in __cssModules$I)this[s]=__cssModules$I[s]}const PhotoSwipe=function(){return __component__$I.exports}();var render$D=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{class:["form-view",t.className]},[n("div",{directives:[{name:"show",rawName:"v-show",value:!t.isFormLoading,expression:"!isFormLoading"}],staticClass:"form-view-toolbar"},[t._t("form-view-toolbar",function(){return[n("Toolbar",t._g(t._b({directives:[{name:"show",rawName:"v-show",value:t.showToolbar,expression:"showToolbar"}],on:{edit:t.onEdit},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.buttons;return[t._t("toolbar-button",null,{buttons:a})]}},t._l(t.getToolbarSlotKeys(),function(r){return{key:r,fn:function(){return[t._t(r)]},proxy:!0}}),{key:"toolbar-right",fn:function(){return[t._t("toolbar-right")]},proxy:!0}],null,!0)},"Toolbar",Object.assign({},t.toolbarProps,{buttons:t.getToolbarButtons(t.toolbarProps.buttons)}),!1),t.toolbarListeners))]})],2),n("div",{directives:[{name:"show",rawName:"v-show",value:!t.isFormLoading,expression:"!isFormLoading"}],staticClass:"form-scroller-wrapper"},[n("div",{ref:"formScroller",class:["form-scroller","absolute-box",t.contentClass],on:{scroll:t.onFormScroll}},[t.notForm?n("div",{staticClass:"not-form",style:{width:t.formWidth}},[t.title?n("div",{staticClass:"form-view-title"},[t._v(t._s(t.title))]):t._e(),t._t("default",function(){return[n("EmptyView",{attrs:{"empty-tips":"请添加表单内容"}})]}),n("Toolbar",t._g(t._b({attrs:{footer:""},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.buttons,o=r.footer;return[t._t("footer-button",null,{buttons:a,footer:o})]}},t._l(t.getFooterSlotKeys(),function(r){return{key:t.getFooterSlotKey(r),fn:function(){return[t._t(r)]},proxy:!0}})],null,!0)},"Toolbar",Object.assign({},t.toolbarProps,{buttons:t.getFooterBarButtons(t.toolbarProps.buttons)}),!1),t.toolbarListeners)),t.$scopedSlots["form-bottom"]?t._t("form-bottom"):t._e()],2):n("div",{class:["form-card",{"un-limit":t.unLimit}],style:{width:`calc(${t.formWidth} + 40px)`}},[n("div",{staticClass:"form-content"},[t.title?n("div",{staticClass:"form-view-title"},[t._v(t._s(t.title))]):t._e(),t._t("default",function(){return[n("EmptyView",{attrs:{"empty-tips":"请添加表单内容"}})]}),t.getFooterBarButtons(t.toolbarProps.buttons).length?n("Toolbar",t._g(t._b({attrs:{footer:""},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.buttons,o=r.footer;return[t._t("footer-button",null,{buttons:a,footer:o})]}},t._l(t.getFooterSlotKeys(),function(r){return{key:t.getFooterSlotKey(r),fn:function(){return[t._t(r)]},proxy:!0}})],null,!0)},"Toolbar",Object.assign({},t.toolbarProps,{buttons:t.getFooterBarButtons(t.toolbarProps.buttons)}),!1),t.toolbarListeners)):t._e()],2)]),t.$scopedSlots["form-bottom"]||t.$parent.$options.flowForm&&t.flowContext.logs.length?n("div",{class:["form-card",{"un-limit":t.unLimit}],staticStyle:{"min-height":"0"},style:{width:`calc(${t.formWidth} + 40px)`}},[n("div",{staticClass:"form-content"},[n("FormItemGroup",{attrs:{"block-title":"流程日志"}},[n("FlowLog",{attrs:{fetch:!1,"show-title":!1,"business-key":t.$parent.bizKey}})],1),t._t("form-bottom")],2)]):t._e()]),n("ResizeObserver",{on:{notify:t.onFormResize}})],1),t.formNav&&!t.isFormLoading&&t.showNav&&t.tabs.length?n("div",{staticClass:"form-nav"},[n("div",{staticClass:"form-nav-header"},[t._v("表单导航")]),n("ul",{staticClass:"form-nav-list"},t._l(t.tabs,function(r,a){return n("li",{key:r.blockTitle,class:["form-nav-item",{active:t.activeIndex===a}],on:{click:function(o){return t.tabClick(r,a)}}},[t._v(" "+t._s(r.blockTitle)+" ")])}),0)]):t._e(),t.isFormLoading?n("LoadingView",{attrs:{"icon-size":"34px","font-size":"16px"}}):t._e()],1)},staticRenderFns$D=[];const PresentView_vue_vue_type_style_index_0_lang="",builtInButtons$1=["back","create","save","withdraw","edit","submit","publish","agree","disagree","reject","finish","cancel","enable","exp","imp","del","disabled","reload","slot"],footerButtons=builtInButtons$1.map(t=>`${t}-down`),topButtons=["back","withdraw","edit"],bottomButtons=["save","submit","","publish","agree","disagree","reject","finish","cancel"],findParent=(t,s)=>{if(t.classList.contains(s))return t;let n=t.parentNode;for(;n&&!n.classList.contains(s);)n=n.parentNode;return n.classList.contains(s)?n:null},__vue2_script$H={name:"PresentView",inject:{flowContext:{default:{}}},props:{notForm:Boolean,loading:Boolean,unLimit:Boolean,formWidth:{type:String,default:"75%"},toolbarAttrs:{type:Object,default:()=>{}},toolbarListeners:Object,contentClass:String,className:String,title:String,showToolbar:{type:Boolean,default:!0},formNav:{type:Boolean,default:!0}},data(){return{tabs:[],activeIndex:-1,tryByClick:!1,showNav:!1}},computed:{isFormLoading(){return this.loading||core.hasOwn(this.$parent,"isFormLoaded")?!this.$parent.isFormLoaded:!1},toolbarProps(){var r;const t={},s=((r=this.toolbarAttrs)==null?void 0:r.buttons)||this.$parent.buttons,n=lodash.merge({},this.toolbarAttrs,t);return n.buttons=s||["back"],n.buttons=core.toStringArray(n.buttons),n}},created(){this.$on("FormView.addTab",t=>{t&&(this.activeIndex===-1&&(this.activeIndex=0),this.tabs.push(t),this.tabs=this.tabs.sort((s,n)=>{const r=findParent(s.$el,"form-card"),a=findParent(n.$el,"form-card");if(r===a){const o=[].indexOf.call(s.$el.parentNode.children,s.$el),l=[].indexOf.call(n.$el.parentNode.children,n.$el);return o-l}else{const o=findParent(r,"form-scroller"),l=[].indexOf.call(o.children,r),c=[].indexOf.call(o.children,a);return l-c}}),t.active&&(this.activeIndex=this.tabs.indexOf(t),this.tabClick(t,this.activeIndex)))}),this.$on("FormView.removeTab",t=>{if(t){const s=this.tabs.indexOf(t);this.tabs.splice(s,1),this.activeIndex>this.tabs.length-1&&(this.activeIndex=0)}}),this.onFormResize({width:window.document.body.clientWidth})},activated(){return v(this,null,function*(){this.$refs.formScroller&&(yield this.$nextTick(),this.scrollTo(this.formScrollTop,this.formScrollLeft))})},methods:{getToolbarSlotKeys(){return Object.keys(this.$scopedSlots).filter(t=>builtInButtons$1.includes(t))},getFooterSlotKeys(){return Object.keys(this.$scopedSlots).filter(t=>footerButtons.includes(t))},getFooterSlotKey(t){return t.replace("-down","")},onFormResize({width:t}){this.showNav=t>1500},onEdit(){!this.toolbarListeners.edit&&core.hasOwn(this.$parent,"disabled")&&(this.$parent.disabled=!1)},tabClick(t,s){return v(this,null,function*(){this.showNav&&(yield this.$nextTick(),t.expand||(t.open(),yield core.delay(200),yield this.$nextTick()),this.tryByClick=!0,this.activeIndex=s,this.$refs.formScroller.scrollTop=t.$el.offsetTop-10)})},tryActive(){return v(this,null,function*(){if(this.showNav){for(let t=0;t<this.tabs.length;t++)if(core.isInContainer(this.tabs[t].$el,this.$refs.formScroller,{bottomOffset:10})){this.activeIndex=t;break}}})},onFormScroll(){this.formScrollTop=this.$refs.formScroller.scrollTop,this.formScrollLeft=this.$refs.formScroller.scrollLeft,!this.tryByClick&&this.tabs.length&&window.requestAnimationFrame(this.tryActive),this.tryByClick=!1},scrollTo(t,s){t&&(this.$refs.formScroller.scrollTop=t),s&&(this.$refs.formScroller.scrollLeft=s)},getToolbarButtons(t){return t.filter(s=>!bottomButtons.includes(s)&&s.indexOf(":down")<0).map(s=>s.replace(":up",""))},getFooterBarButtons(t){let s=t.filter(n=>!topButtons.includes(n)&&(bottomButtons.includes(n)||n.indexOf(":down")>-1)).map(n=>n.replace(":down",""));return s=s||[],this.$parent.isEnabled&&!s.includes("cancel")&&s.push("cancel"),s}}},__cssModules$H={};var __component__$H=normalizeComponent(__vue2_script$H,render$D,staticRenderFns$D,!1,__vue2_injectStyles$H,null,null,null);function __vue2_injectStyles$H(t){for(let s in __cssModules$H)this[s]=__cssModules$H[s]}const PresentView=function(){return __component__$H.exports}(),processDesigner="",DefaultEmptyXML=(t,s,n)=>(n=n||"camunda",`<?xml version="1.0" encoding="UTF-8"?>
|
|
71
71
|
<bpmn2:definitions
|
|
72
72
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
73
73
|
xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL"
|
|
@@ -82,4 +82,28 @@ ${u}}`:`{${d.join(",")}}`,gap=u,l}}function quote(t,s){escapable.lastIndex=0;let
|
|
|
82
82
|
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="${t}">
|
|
83
83
|
</bpmndi:BPMNPlane>
|
|
84
84
|
</bpmndi:BPMNDiagram>
|
|
85
|
-
</bpmn2:definitions>`);function customTranslate(t){return function(s,n){return n=n||{},s=t[s]||s,s.replace(/{([^}]+)}/g,function(r,a){let o=n[a];return t[n[a]]!==null&&t[n[a]]!==void 0&&(o=t[n[a]]),o||`{${a}}`})}}const translationsCN={"Append EndEvent":"追加结束事件","Append Gateway":"追加网关","Append Task":"追加任务","Append Intermediate/Boundary Event":"追加中间抛出事件/边界事件","Activate the global connect tool":"激活全局连接工具","Append {type}":"添加 {type}","Add Lane above":"在上面添加道","Divide into two Lanes":"分割成两个道","Divide into three Lanes":"分割成三个道","Add Lane below":"在下面添加道","Append compensation activity":"追加补偿活动","Change type":"修改类型","Connect using Association":"使用关联连接","Connect using Sequence/MessageFlow or Association":"使用顺序/消息流或者关联连接","Connect using DataInputAssociation":"使用数据输入关联连接",Remove:"移除","Activate the hand tool":"激活抓手工具","Activate the lasso tool":"激活套索工具","Activate the create/remove space tool":"激活创建/删除空间工具","Create expanded SubProcess":"创建扩展子过程","Create IntermediateThrowEvent/BoundaryEvent":"创建中间抛出事件/边界事件","Create Pool/Participant":"创建池/参与者","Parallel Multi Instance":"并行多重事件","Sequential Multi Instance":"时序多重事件",DataObjectReference:"数据对象参考",DataStoreReference:"数据存储参考",Loop:"循环","Ad-hoc":"即席","Create {type}":"创建 {type}",Task:"任务","Send Task":"发送任务","Receive Task":"接收任务","User Task":"用户任务","Manual Task":"手工任务","Business Rule Task":"业务规则任务","Service Task":"服务任务","Script Task":"脚本任务","Call Activity":"调用活动","Sub Process (collapsed)":"子流程(折叠的)","Sub Process (expanded)":"子流程(展开的)","Start Event":"开始事件",StartEvent:"开始事件","Intermediate Throw Event":"中间事件","End Event":"结束事件",EndEvent:"结束事件","Create StartEvent":"创建开始事件","Create EndEvent":"创建结束事件","Create Task":"创建任务","Create User Task":"创建用户任务","Create Gateway":"创建网关","Create DataObjectReference":"创建数据对象","Create DataStoreReference":"创建数据存储","Create Group":"创建分组","Create Intermediate/Boundary Event":"创建中间/边界事件","Message Start Event":"消息开始事件","Timer Start Event":"定时开始事件","Conditional Start Event":"条件开始事件","Signal Start Event":"信号开始事件","Error Start Event":"错误开始事件","Escalation Start Event":"升级开始事件","Compensation Start Event":"补偿开始事件","Message Start Event (non-interrupting)":"消息开始事件(非中断)","Timer Start Event (non-interrupting)":"定时开始事件(非中断)","Conditional Start Event (non-interrupting)":"条件开始事件(非中断)","Signal Start Event (non-interrupting)":"信号开始事件(非中断)","Escalation Start Event (non-interrupting)":"升级开始事件(非中断)","Message Intermediate Catch Event":"消息中间捕获事件","Message Intermediate Throw Event":"消息中间抛出事件","Timer Intermediate Catch Event":"定时中间捕获事件","Escalation Intermediate Throw Event":"升级中间抛出事件","Conditional Intermediate Catch Event":"条件中间捕获事件","Link Intermediate Catch Event":"链接中间捕获事件","Link Intermediate Throw Event":"链接中间抛出事件","Compensation Intermediate Throw Event":"补偿中间抛出事件","Signal Intermediate Catch Event":"信号中间捕获事件","Signal Intermediate Throw Event":"信号中间抛出事件","Message End Event":"消息结束事件","Escalation End Event":"定时结束事件","Error End Event":"错误结束事件","Cancel End Event":"取消结束事件","Compensation End Event":"补偿结束事件","Signal End Event":"信号结束事件","Terminate End Event":"终止结束事件","Message Boundary Event":"消息边界事件","Message Boundary Event (non-interrupting)":"消息边界事件(非中断)","Timer Boundary Event":"定时边界事件","Timer Boundary Event (non-interrupting)":"定时边界事件(非中断)","Escalation Boundary Event":"升级边界事件","Escalation Boundary Event (non-interrupting)":"升级边界事件(非中断)","Conditional Boundary Event":"条件边界事件","Conditional Boundary Event (non-interrupting)":"条件边界事件(非中断)","Error Boundary Event":"错误边界事件","Cancel Boundary Event":"取消边界事件","Signal Boundary Event":"信号边界事件","Signal Boundary Event (non-interrupting)":"信号边界事件(非中断)","Compensation Boundary Event":"补偿边界事件","Exclusive Gateway":"互斥网关","Parallel Gateway":"并行网关","Inclusive Gateway":"相容网关","Complex Gateway":"复杂网关","Event based Gateway":"事件网关",Transaction:"转运","Sub Process":"子流程","Event Sub Process":"事件子流程","Collapsed Pool":"折叠池","Expanded Pool":"展开池","no parent for {element} in {parent}":"在{parent}里,{element}没有父类","no shape type specified":"没有指定的形状类型","flow elements must be children of pools/participants":"流元素必须是池/参与者的子类","out of bounds release":"out of bounds release","more than {count} child lanes":"子道大于{count} ","element required":"元素不能为空","diagram not part of bpmn:Definitions":"流程图不符合bpmn规范","no diagram to display":"没有可展示的流程图","no process or collaboration to display":"没有可展示的流程/协作","element {element} referenced by {referenced}#{property} not yet drawn":"由{referenced}#{property}引用的{element}元素仍未绘制","already rendered {element}":"{element} 已被渲染","failed to import {element}":"导入{element}失败",Id:"编号",Name:"名称",General:"常规",Details:"详情","Message Name":"消息名称",Message:"消息",Initiator:"创建者","Asynchronous Continuations":"持续异步","Asynchronous Before":"异步前","Asynchronous After":"异步后","Job Configuration":"工作配置",Exclusive:"排除","Job Priority":"工作优先级","Retry Time Cycle":"重试时间周期",Documentation:"文档","Element Documentation":"元素文档","History Configuration":"历史配置","History Time To Live":"历史的生存时间",Forms:"表单","Form Key":"表单key","Form Fields":"表单字段","Business Key":"业务key","Form Field":"表单字段",ID:"编号",Type:"类型",Label:"名称","Default Value":"默认值","Default Flow":"默认流转路径","Conditional Flow":"条件流转路径","Sequence Flow":"普通流转路径",Validation:"校验","Add Constraint":"添加约束",Config:"配置",Properties:"属性","Add Property":"添加属性",Value:"值",Listeners:"监听器","Execution Listener":"执行监听","Event Type":"事件类型","Listener Type":"监听器类型","Java Class":"Java类",Expression:"表达式","Must provide a value":"必须提供一个值","Delegate Expression":"代理表达式",Script:"脚本","Script Format":"脚本格式","Script Type":"脚本类型","Inline Script":"内联脚本","External Script":"外部脚本",Resource:"资源","Field Injection":"字段注入",Extensions:"扩展","Input/Output":"输入/输出","Input Parameters":"输入参数","Output Parameters":"输出参数",Parameters:"参数","Output Parameter":"输出参数","Timer Definition Type":"定时器定义类型","Timer Definition":"定时器定义",Date:"日期",Duration:"持续",Cycle:"循环",Signal:"信号","Signal Name":"信号名称",Escalation:"升级",Error:"错误","Link Name":"链接名称",Condition:"条件名称","Variable Name":"变量名称","Variable Event":"变量事件","Specify more than one variable change event as a comma separated list.":"多个变量事件以逗号隔开","Wait for Completion":"等待完成","Activity Ref":"活动参考","Version Tag":"版本标签",Executable:"可执行文件","External Task Configuration":"扩展任务配置","Task Priority":"任务优先级",External:"外部",Connector:"连接器","Must configure Connector":"必须配置连接器","Connector Id":"连接器编号",Implementation:"实现方式","Field Injections":"字段注入",Fields:"字段","Result Variable":"结果变量",Topic:"主题","Configure Connector":"配置连接器","Input Parameter":"输入参数",Assignee:"代理人","Candidate Users":"候选用户","Candidate Groups":"候选组","Due Date":"到期时间","Follow Up Date":"跟踪日期",Priority:"优先级","The follow up date as an EL expression (e.g. ${someDate} or an ISO date (e.g. 2015-06-26T09:54:00)":"跟踪日期必须符合EL表达式,如: ${someDate} ,或者一个ISO标准日期,如:2015-06-26T09:54:00","The due date as an EL expression (e.g. ${someDate} or an ISO date (e.g. 2015-06-26T09:54:00)":"跟踪日期必须符合EL表达式,如: ${someDate} ,或者一个ISO标准日期,如:2015-06-26T09:54:00",Variables:"变量","Candidate Starter Configuration":"候选人起动器配置","Candidate Starter Groups":"候选人起动器组","This maps to the process definition key.":"这映射到流程定义键。","Candidate Starter Users":"候选人起动器的用户","Specify more than one user as a comma separated list.":"指定多个用户作为逗号分隔的列表。","Tasklist Configuration":"Tasklist配置",Startable:"启动","Specify more than one group as a comma separated list.":"指定多个组作为逗号分隔的列表。"},name$2="Camunda",uri$2="http://camunda.org/schema/1.0/bpmn",prefix$2="camunda",xml$2={tagAlias:"lowerCase"},associations$2=[],types$2=[{name:"Definitions",isAbstract:!0,extends:["bpmn:Definitions"],properties:[{name:"diagramRelationId",isAttr:!0,type:"String"}]},{name:"InOutBinding",superClass:["Element"],isAbstract:!0,properties:[{name:"source",isAttr:!0,type:"String"},{name:"sourceExpression",isAttr:!0,type:"String"},{name:"target",isAttr:!0,type:"String"},{name:"businessKey",isAttr:!0,type:"String"},{name:"local",isAttr:!0,type:"Boolean",default:!1},{name:"variables",isAttr:!0,type:"String"}]},{name:"In",superClass:["InOutBinding"],meta:{allowedIn:["bpmn:CallActivity","bpmn:SignalEventDefinition"]}},{name:"Out",superClass:["InOutBinding"],meta:{allowedIn:["bpmn:CallActivity"]}},{name:"AsyncCapable",isAbstract:!0,extends:["bpmn:Activity","bpmn:Gateway","bpmn:Event"],properties:[{name:"async",isAttr:!0,type:"Boolean",default:!1},{name:"asyncBefore",isAttr:!0,type:"Boolean",default:!1},{name:"asyncAfter",isAttr:!0,type:"Boolean",default:!1},{name:"exclusive",isAttr:!0,type:"Boolean",default:!0}]},{name:"JobPriorized",isAbstract:!0,extends:["bpmn:Process","camunda:AsyncCapable"],properties:[{name:"jobPriority",isAttr:!0,type:"String"}]},{name:"SignalEventDefinition",isAbstract:!0,extends:["bpmn:SignalEventDefinition"],properties:[{name:"async",isAttr:!0,type:"Boolean",default:!1}]},{name:"ErrorEventDefinition",isAbstract:!0,extends:["bpmn:ErrorEventDefinition"],properties:[{name:"errorCodeVariable",isAttr:!0,type:"String"},{name:"errorMessageVariable",isAttr:!0,type:"String"}]},{name:"Error",isAbstract:!0,extends:["bpmn:Error"],properties:[{name:"camunda:errorMessage",isAttr:!0,type:"String"}]},{name:"PotentialStarter",superClass:["Element"],properties:[{name:"resourceAssignmentExpression",type:"bpmn:ResourceAssignmentExpression"}]},{name:"FormSupported",isAbstract:!0,extends:["bpmn:StartEvent","bpmn:UserTask"],properties:[{name:"formHandlerClass",isAttr:!0,type:"String"},{name:"formKey",isAttr:!0,type:"String"}]},{name:"TemplateSupported",isAbstract:!0,extends:["bpmn:Process","bpmn:FlowElement"],properties:[{name:"modelerTemplate",isAttr:!0,type:"String"},{name:"modelerTemplateVersion",isAttr:!0,type:"Integer"}]},{name:"Initiator",isAbstract:!0,extends:["bpmn:StartEvent"],properties:[{name:"initiator",isAttr:!0,type:"String"}]},{name:"ScriptTask",isAbstract:!0,extends:["bpmn:ScriptTask"],properties:[{name:"resultVariable",isAttr:!0,type:"String"},{name:"resource",isAttr:!0,type:"String"}]},{name:"Process",isAbstract:!0,extends:["bpmn:Process"],properties:[{name:"candidateStarterGroups",isAttr:!0,type:"String"},{name:"candidateStarterUsers",isAttr:!0,type:"String"},{name:"versionTag",isAttr:!0,type:"String"},{name:"historyTimeToLive",isAttr:!0,type:"String"},{name:"isStartableInTasklist",isAttr:!0,type:"Boolean",default:!0}]},{name:"EscalationEventDefinition",isAbstract:!0,extends:["bpmn:EscalationEventDefinition"],properties:[{name:"escalationCodeVariable",isAttr:!0,type:"String"}]},{name:"FormalExpression",isAbstract:!0,extends:["bpmn:FormalExpression"],properties:[{name:"resource",isAttr:!0,type:"String"}]},{name:"Assignable",extends:["bpmn:UserTask"],properties:[{name:"assignee",isAttr:!0,type:"String"},{name:"candidateUsers",isAttr:!0,type:"String"},{name:"candidateGroups",isAttr:!0,type:"String"},{name:"dueDate",isAttr:!0,type:"String"},{name:"followUpDate",isAttr:!0,type:"String"},{name:"priority",isAttr:!0,type:"String"}]},{name:"CallActivity",extends:["bpmn:CallActivity"],properties:[{name:"calledElementBinding",isAttr:!0,type:"String",default:"latest"},{name:"calledElementVersion",isAttr:!0,type:"String"},{name:"calledElementVersionTag",isAttr:!0,type:"String"},{name:"calledElementTenantId",isAttr:!0,type:"String"},{name:"caseRef",isAttr:!0,type:"String"},{name:"caseBinding",isAttr:!0,type:"String",default:"latest"},{name:"caseVersion",isAttr:!0,type:"String"},{name:"caseTenantId",isAttr:!0,type:"String"},{name:"variableMappingClass",isAttr:!0,type:"String"},{name:"variableMappingDelegateExpression",isAttr:!0,type:"String"}]},{name:"ServiceTaskLike",extends:["bpmn:ServiceTask","bpmn:BusinessRuleTask","bpmn:SendTask","bpmn:MessageEventDefinition"],properties:[{name:"expression",isAttr:!0,type:"String"},{name:"class",isAttr:!0,type:"String"},{name:"delegateExpression",isAttr:!0,type:"String"},{name:"resultVariable",isAttr:!0,type:"String"}]},{name:"DmnCapable",extends:["bpmn:BusinessRuleTask"],properties:[{name:"decisionRef",isAttr:!0,type:"String"},{name:"decisionRefBinding",isAttr:!0,type:"String",default:"latest"},{name:"decisionRefVersion",isAttr:!0,type:"String"},{name:"mapDecisionResult",isAttr:!0,type:"String",default:"resultList"},{name:"decisionRefTenantId",isAttr:!0,type:"String"}]},{name:"ExternalCapable",extends:["camunda:ServiceTaskLike"],properties:[{name:"type",isAttr:!0,type:"String"},{name:"topic",isAttr:!0,type:"String"}]},{name:"TaskPriorized",extends:["bpmn:Process","camunda:ExternalCapable"],properties:[{name:"taskPriority",isAttr:!0,type:"String"}]},{name:"Properties",superClass:["Element"],meta:{allowedIn:["*"]},properties:[{name:"values",type:"Property",isMany:!0}]},{name:"Property",superClass:["Element"],properties:[{name:"id",type:"String",isAttr:!0},{name:"name",type:"String",isAttr:!0},{name:"value",type:"String",isAttr:!0}]},{name:"Connector",superClass:["Element"],meta:{allowedIn:["camunda:ServiceTaskLike"]},properties:[{name:"inputOutput",type:"InputOutput"},{name:"connectorId",type:"String"}]},{name:"InputOutput",superClass:["Element"],meta:{allowedIn:["bpmn:FlowNode","camunda:Connector"]},properties:[{name:"inputOutput",type:"InputOutput"},{name:"connectorId",type:"String"},{name:"inputParameters",isMany:!0,type:"InputParameter"},{name:"outputParameters",isMany:!0,type:"OutputParameter"}]},{name:"InputOutputParameter",properties:[{name:"name",isAttr:!0,type:"String"},{name:"value",isBody:!0,type:"String"},{name:"definition",type:"InputOutputParameterDefinition"}]},{name:"InputOutputParameterDefinition",isAbstract:!0},{name:"List",superClass:["InputOutputParameterDefinition"],properties:[{name:"items",isMany:!0,type:"InputOutputParameterDefinition"}]},{name:"Map",superClass:["InputOutputParameterDefinition"],properties:[{name:"entries",isMany:!0,type:"Entry"}]},{name:"Entry",properties:[{name:"key",isAttr:!0,type:"String"},{name:"value",isBody:!0,type:"String"},{name:"definition",type:"InputOutputParameterDefinition"}]},{name:"Value",superClass:["InputOutputParameterDefinition"],properties:[{name:"id",isAttr:!0,type:"String"},{name:"name",isAttr:!0,type:"String"},{name:"value",isBody:!0,type:"String"}]},{name:"Script",superClass:["InputOutputParameterDefinition"],properties:[{name:"scriptFormat",isAttr:!0,type:"String"},{name:"resource",isAttr:!0,type:"String"},{name:"value",isBody:!0,type:"String"}]},{name:"Field",superClass:["Element"],meta:{allowedIn:["camunda:ServiceTaskLike","camunda:ExecutionListener","camunda:TaskListener"]},properties:[{name:"name",isAttr:!0,type:"String"},{name:"expression",type:"String"},{name:"stringValue",isAttr:!0,type:"String"},{name:"string",type:"String"}]},{name:"InputParameter",superClass:["InputOutputParameter"]},{name:"OutputParameter",superClass:["InputOutputParameter"]},{name:"Collectable",isAbstract:!0,extends:["bpmn:MultiInstanceLoopCharacteristics"],superClass:["camunda:AsyncCapable"],properties:[{name:"collection",isAttr:!0,type:"String"},{name:"elementVariable",isAttr:!0,type:"String"}]},{name:"FailedJobRetryTimeCycle",superClass:["Element"],meta:{allowedIn:["camunda:AsyncCapable","bpmn:MultiInstanceLoopCharacteristics"]},properties:[{name:"body",isBody:!0,type:"String"}]},{name:"ExecutionListener",superClass:["Element"],meta:{allowedIn:["bpmn:Task","bpmn:ServiceTask","bpmn:UserTask","bpmn:BusinessRuleTask","bpmn:ScriptTask","bpmn:ReceiveTask","bpmn:ManualTask","bpmn:ExclusiveGateway","bpmn:SequenceFlow","bpmn:ParallelGateway","bpmn:InclusiveGateway","bpmn:EventBasedGateway","bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:EndEvent","bpmn:BoundaryEvent","bpmn:CallActivity","bpmn:SubProcess","bpmn:Process"]},properties:[{name:"expression",isAttr:!0,type:"String"},{name:"class",isAttr:!0,type:"String"},{name:"delegateExpression",isAttr:!0,type:"String"},{name:"event",isAttr:!0,type:"String"},{name:"script",type:"Script"},{name:"fields",type:"Field",isMany:!0}]},{name:"TaskListener",superClass:["Element"],meta:{allowedIn:["bpmn:UserTask"]},properties:[{name:"expression",isAttr:!0,type:"String"},{name:"class",isAttr:!0,type:"String"},{name:"delegateExpression",isAttr:!0,type:"String"},{name:"event",isAttr:!0,type:"String"},{name:"script",type:"Script"},{name:"fields",type:"Field",isMany:!0},{name:"id",type:"String",isAttr:!0},{name:"eventDefinitions",type:"bpmn:TimerEventDefinition",isMany:!0}]},{name:"FormProperty",superClass:["Element"],meta:{allowedIn:["bpmn:StartEvent","bpmn:UserTask"]},properties:[{name:"id",type:"String",isAttr:!0},{name:"name",type:"String",isAttr:!0},{name:"type",type:"String",isAttr:!0},{name:"required",type:"String",isAttr:!0},{name:"readable",type:"String",isAttr:!0},{name:"writable",type:"String",isAttr:!0},{name:"variable",type:"String",isAttr:!0},{name:"expression",type:"String",isAttr:!0},{name:"datePattern",type:"String",isAttr:!0},{name:"default",type:"String",isAttr:!0},{name:"values",type:"Value",isMany:!0}]},{name:"FormData",superClass:["Element"],meta:{allowedIn:["bpmn:StartEvent","bpmn:UserTask"]},properties:[{name:"fields",type:"FormField",isMany:!0},{name:"businessKey",type:"String",isAttr:!0}]},{name:"FormField",superClass:["Element"],properties:[{name:"id",type:"String",isAttr:!0},{name:"label",type:"String",isAttr:!0},{name:"type",type:"String",isAttr:!0},{name:"datePattern",type:"String",isAttr:!0},{name:"defaultValue",type:"String",isAttr:!0},{name:"properties",type:"Properties"},{name:"validation",type:"Validation"},{name:"values",type:"Value",isMany:!0}]},{name:"Validation",superClass:["Element"],properties:[{name:"constraints",type:"Constraint",isMany:!0}]},{name:"Constraint",superClass:["Element"],properties:[{name:"name",type:"String",isAttr:!0},{name:"config",type:"String",isAttr:!0}]},{name:"ConditionalEventDefinition",isAbstract:!0,extends:["bpmn:ConditionalEventDefinition"],properties:[{name:"variableName",isAttr:!0,type:"String"},{name:"variableEvents",isAttr:!0,type:"String"}]}],emumerations$2=[],CamundaModdleDescriptor={name:name$2,uri:uri$2,prefix:prefix$2,xml:xml$2,associations:associations$2,types:types$2,emumerations:emumerations$2},name$1="Activiti",uri$1="http://activiti.org/bpmn",prefix$1="activiti",xml$1={tagAlias:"lowerCase"},associations$1=[],types$1=[{name:"Definitions",isAbstract:!0,extends:["bpmn:Definitions"],properties:[{name:"diagramRelationId",isAttr:!0,type:"String"}]},{name:"InOutBinding",superClass:["Element"],isAbstract:!0,properties:[{name:"source",isAttr:!0,type:"String"},{name:"sourceExpression",isAttr:!0,type:"String"},{name:"target",isAttr:!0,type:"String"},{name:"businessKey",isAttr:!0,type:"String"},{name:"local",isAttr:!0,type:"Boolean",default:!1},{name:"variables",isAttr:!0,type:"String"}]},{name:"In",superClass:["InOutBinding"],meta:{allowedIn:["bpmn:CallActivity"]}},{name:"Out",superClass:["InOutBinding"],meta:{allowedIn:["bpmn:CallActivity"]}},{name:"AsyncCapable",isAbstract:!0,extends:["bpmn:Activity","bpmn:Gateway","bpmn:Event"],properties:[{name:"async",isAttr:!0,type:"Boolean",default:!1},{name:"asyncBefore",isAttr:!0,type:"Boolean",default:!1},{name:"asyncAfter",isAttr:!0,type:"Boolean",default:!1},{name:"exclusive",isAttr:!0,type:"Boolean",default:!0}]},{name:"JobPriorized",isAbstract:!0,extends:["bpmn:Process","activiti:AsyncCapable"],properties:[{name:"jobPriority",isAttr:!0,type:"String"}]},{name:"SignalEventDefinition",isAbstract:!0,extends:["bpmn:SignalEventDefinition"],properties:[{name:"async",isAttr:!0,type:"Boolean",default:!1}]},{name:"ErrorEventDefinition",isAbstract:!0,extends:["bpmn:ErrorEventDefinition"],properties:[{name:"errorCodeVariable",isAttr:!0,type:"String"},{name:"errorMessageVariable",isAttr:!0,type:"String"}]},{name:"Error",isAbstract:!0,extends:["bpmn:Error"],properties:[{name:"activiti:errorMessage",isAttr:!0,type:"String"}]},{name:"PotentialStarter",superClass:["Element"],properties:[{name:"resourceAssignmentExpression",type:"bpmn:ResourceAssignmentExpression"}]},{name:"FormSupported",isAbstract:!0,extends:["bpmn:StartEvent","bpmn:UserTask"],properties:[{name:"formHandlerClass",isAttr:!0,type:"String"},{name:"formKey",isAttr:!0,type:"String"}]},{name:"TemplateSupported",isAbstract:!0,extends:["bpmn:Process","bpmn:FlowElement"],properties:[{name:"modelerTemplate",isAttr:!0,type:"String"}]},{name:"Initiator",isAbstract:!0,extends:["bpmn:StartEvent"],properties:[{name:"initiator",isAttr:!0,type:"String"}]},{name:"ScriptTask",isAbstract:!0,extends:["bpmn:ScriptTask"],properties:[{name:"resultVariable",isAttr:!0,type:"String"},{name:"resource",isAttr:!0,type:"String"}]},{name:"Process",isAbstract:!0,extends:["bpmn:Process"],properties:[{name:"candidateStarterGroups",isAttr:!0,type:"String"},{name:"candidateStarterUsers",isAttr:!0,type:"String"},{name:"versionTag",isAttr:!0,type:"String"},{name:"historyTimeToLive",isAttr:!0,type:"String"},{name:"isStartableInTasklist",isAttr:!0,type:"Boolean",default:!0},{name:"executionListener",isAbstract:!0,type:"Expression"}]},{name:"EscalationEventDefinition",isAbstract:!0,extends:["bpmn:EscalationEventDefinition"],properties:[{name:"escalationCodeVariable",isAttr:!0,type:"String"}]},{name:"FormalExpression",isAbstract:!0,extends:["bpmn:FormalExpression"],properties:[{name:"resource",isAttr:!0,type:"String"}]},{name:"multiinstance_type",superClass:["Element"]},{name:"multiinstance_condition",superClass:["Element"]},{name:"Assignable",extends:["bpmn:UserTask"],properties:[{name:"assignee",isAttr:!0,type:"String"},{name:"candidateUsers",isAttr:!0,type:"String"},{name:"candidateGroups",isAttr:!0,type:"String"},{name:"dueDate",isAttr:!0,type:"String"},{name:"followUpDate",isAttr:!0,type:"String"},{name:"priority",isAttr:!0,type:"String"},{name:"multiinstance_condition",isAttr:!0,type:"String"}]},{name:"CallActivity",extends:["bpmn:CallActivity"],properties:[{name:"calledElementBinding",isAttr:!0,type:"String",default:"latest"},{name:"calledElementVersion",isAttr:!0,type:"String"},{name:"calledElementVersionTag",isAttr:!0,type:"String"},{name:"calledElementTenantId",isAttr:!0,type:"String"},{name:"caseRef",isAttr:!0,type:"String"},{name:"caseBinding",isAttr:!0,type:"String",default:"latest"},{name:"caseVersion",isAttr:!0,type:"String"},{name:"caseTenantId",isAttr:!0,type:"String"},{name:"variableMappingClass",isAttr:!0,type:"String"},{name:"variableMappingDelegateExpression",isAttr:!0,type:"String"}]},{name:"ServiceTaskLike",extends:["bpmn:ServiceTask","bpmn:BusinessRuleTask","bpmn:SendTask","bpmn:MessageEventDefinition"],properties:[{name:"expression",isAttr:!0,type:"String"},{name:"class",isAttr:!0,type:"String"},{name:"delegateExpression",isAttr:!0,type:"String"},{name:"resultVariable",isAttr:!0,type:"String"}]},{name:"DmnCapable",extends:["bpmn:BusinessRuleTask"],properties:[{name:"decisionRef",isAttr:!0,type:"String"},{name:"decisionRefBinding",isAttr:!0,type:"String",default:"latest"},{name:"decisionRefVersion",isAttr:!0,type:"String"},{name:"mapDecisionResult",isAttr:!0,type:"String",default:"resultList"},{name:"decisionRefTenantId",isAttr:!0,type:"String"}]},{name:"ExternalCapable",extends:["activiti:ServiceTaskLike"],properties:[{name:"type",isAttr:!0,type:"String"},{name:"topic",isAttr:!0,type:"String"}]},{name:"TaskPriorized",extends:["bpmn:Process","activiti:ExternalCapable"],properties:[{name:"taskPriority",isAttr:!0,type:"String"}]},{name:"Properties",superClass:["Element"],meta:{allowedIn:["*"]},properties:[{name:"values",type:"Property",isMany:!0}]},{name:"Property",superClass:["Element"],properties:[{name:"id",type:"String",isAttr:!0},{name:"name",type:"String",isAttr:!0},{name:"value",type:"String",isAttr:!0}]},{name:"Connector",superClass:["Element"],meta:{allowedIn:["activiti:ServiceTaskLike"]},properties:[{name:"inputOutput",type:"InputOutput"},{name:"connectorId",type:"String"}]},{name:"InputOutput",superClass:["Element"],meta:{allowedIn:["bpmn:FlowNode","activiti:Connector"]},properties:[{name:"inputOutput",type:"InputOutput"},{name:"connectorId",type:"String"},{name:"inputParameters",isMany:!0,type:"InputParameter"},{name:"outputParameters",isMany:!0,type:"OutputParameter"}]},{name:"InputOutputParameter",properties:[{name:"name",isAttr:!0,type:"String"},{name:"value",isBody:!0,type:"String"},{name:"definition",type:"InputOutputParameterDefinition"}]},{name:"InputOutputParameterDefinition",isAbstract:!0},{name:"List",superClass:["InputOutputParameterDefinition"],properties:[{name:"items",isMany:!0,type:"InputOutputParameterDefinition"}]},{name:"Map",superClass:["InputOutputParameterDefinition"],properties:[{name:"entries",isMany:!0,type:"Entry"}]},{name:"Entry",properties:[{name:"key",isAttr:!0,type:"String"},{name:"value",isBody:!0,type:"String"},{name:"definition",type:"InputOutputParameterDefinition"}]},{name:"Value",superClass:["InputOutputParameterDefinition"],properties:[{name:"id",isAttr:!0,type:"String"},{name:"name",isAttr:!0,type:"String"},{name:"value",isBody:!0,type:"String"}]},{name:"Script",superClass:["InputOutputParameterDefinition"],properties:[{name:"scriptFormat",isAttr:!0,type:"String"},{name:"resource",isAttr:!0,type:"String"},{name:"value",isBody:!0,type:"String"}]},{name:"Field",superClass:["Element"],meta:{allowedIn:["activiti:ServiceTaskLike","activiti:ExecutionListener","activiti:TaskListener"]},properties:[{name:"name",isAttr:!0,type:"String"},{name:"expression",type:"String"},{name:"stringValue",isAttr:!0,type:"String"},{name:"string",type:"String"}]},{name:"InputParameter",superClass:["InputOutputParameter"]},{name:"OutputParameter",superClass:["InputOutputParameter"]},{name:"Collectable",isAbstract:!0,extends:["bpmn:MultiInstanceLoopCharacteristics"],superClass:["activiti:AsyncCapable"],properties:[{name:"collection",isAttr:!0,type:"String"},{name:"elementVariable",isAttr:!0,type:"String"}]},{name:"FailedJobRetryTimeCycle",superClass:["Element"],meta:{allowedIn:["activiti:AsyncCapable","bpmn:MultiInstanceLoopCharacteristics"]},properties:[{name:"body",isBody:!0,type:"String"}]},{name:"ExecutionListener",superClass:["Element"],meta:{allowedIn:["bpmn:Task","bpmn:ServiceTask","bpmn:UserTask","bpmn:BusinessRuleTask","bpmn:ScriptTask","bpmn:ReceiveTask","bpmn:ManualTask","bpmn:ExclusiveGateway","bpmn:SequenceFlow","bpmn:ParallelGateway","bpmn:InclusiveGateway","bpmn:EventBasedGateway","bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:EndEvent","bpmn:BoundaryEvent","bpmn:CallActivity","bpmn:SubProcess","bpmn:Process"]},properties:[{name:"expression",isAttr:!0,type:"String"},{name:"class",isAttr:!0,type:"String"},{name:"delegateExpression",isAttr:!0,type:"String"},{name:"event",isAttr:!0,type:"String"},{name:"script",type:"Script"},{name:"fields",type:"Field",isMany:!0}]},{name:"TaskListener",superClass:["Element"],meta:{allowedIn:["bpmn:UserTask"]},properties:[{name:"expression",isAttr:!0,type:"String"},{name:"class",isAttr:!0,type:"String"},{name:"delegateExpression",isAttr:!0,type:"String"},{name:"event",isAttr:!0,type:"String"},{name:"script",type:"Script"},{name:"fields",type:"Field",isMany:!0}]},{name:"FormProperty",superClass:["Element"],meta:{allowedIn:["bpmn:StartEvent","bpmn:UserTask"]},properties:[{name:"id",type:"String",isAttr:!0},{name:"name",type:"String",isAttr:!0},{name:"type",type:"String",isAttr:!0},{name:"required",type:"String",isAttr:!0},{name:"readable",type:"String",isAttr:!0},{name:"writable",type:"String",isAttr:!0},{name:"variable",type:"String",isAttr:!0},{name:"expression",type:"String",isAttr:!0},{name:"datePattern",type:"String",isAttr:!0},{name:"default",type:"String",isAttr:!0},{name:"values",type:"Value",isMany:!0}]},{name:"FormProperty",superClass:["Element"],properties:[{name:"id",type:"String",isAttr:!0},{name:"label",type:"String",isAttr:!0},{name:"type",type:"String",isAttr:!0},{name:"datePattern",type:"String",isAttr:!0},{name:"defaultValue",type:"String",isAttr:!0},{name:"properties",type:"Properties"},{name:"validation",type:"Validation"},{name:"values",type:"Value",isMany:!0}]},{name:"Validation",superClass:["Element"],properties:[{name:"constraints",type:"Constraint",isMany:!0}]},{name:"Constraint",superClass:["Element"],properties:[{name:"name",type:"String",isAttr:!0},{name:"config",type:"String",isAttr:!0}]},{name:"ConditionalEventDefinition",isAbstract:!0,extends:["bpmn:ConditionalEventDefinition"],properties:[{name:"variableName",isAttr:!0,type:"String"},{name:"variableEvent",isAttr:!0,type:"String"}]}],emumerations$1=[],ActivitiModdleDescriptor={name:name$1,uri:uri$1,prefix:prefix$1,xml:xml$1,associations:associations$1,types:types$1,emumerations:emumerations$1},name="Flowable",uri="http://flowable.org/bpmn",prefix="flowable",xml={tagAlias:"lowerCase"},associations=[],types=[{name:"InOutBinding",superClass:["Element"],isAbstract:!0,properties:[{name:"source",isAttr:!0,type:"String"},{name:"sourceExpression",isAttr:!0,type:"String"},{name:"target",isAttr:!0,type:"String"},{name:"businessKey",isAttr:!0,type:"String"},{name:"local",isAttr:!0,type:"Boolean",default:!1},{name:"variables",isAttr:!0,type:"String"}]},{name:"In",superClass:["InOutBinding"],meta:{allowedIn:["bpmn:CallActivity"]}},{name:"Out",superClass:["InOutBinding"],meta:{allowedIn:["bpmn:CallActivity"]}},{name:"AsyncCapable",isAbstract:!0,extends:["bpmn:Activity","bpmn:Gateway","bpmn:Event"],properties:[{name:"async",isAttr:!0,type:"Boolean",default:!1},{name:"asyncBefore",isAttr:!0,type:"Boolean",default:!1},{name:"asyncAfter",isAttr:!0,type:"Boolean",default:!1},{name:"exclusive",isAttr:!0,type:"Boolean",default:!0}]},{name:"JobPriorized",isAbstract:!0,extends:["bpmn:Process","flowable:AsyncCapable"],properties:[{name:"jobPriority",isAttr:!0,type:"String"}]},{name:"SignalEventDefinition",isAbstract:!0,extends:["bpmn:SignalEventDefinition"],properties:[{name:"async",isAttr:!0,type:"Boolean",default:!1}]},{name:"ErrorEventDefinition",isAbstract:!0,extends:["bpmn:ErrorEventDefinition"],properties:[{name:"errorCodeVariable",isAttr:!0,type:"String"},{name:"errorMessageVariable",isAttr:!0,type:"String"}]},{name:"Error",isAbstract:!0,extends:["bpmn:Error"],properties:[{name:"flowable:errorMessage",isAttr:!0,type:"String"}]},{name:"PotentialStarter",superClass:["Element"],properties:[{name:"resourceAssignmentExpression",type:"bpmn:ResourceAssignmentExpression"}]},{name:"FormSupported",isAbstract:!0,extends:["bpmn:StartEvent","bpmn:UserTask"],properties:[{name:"formHandlerClass",isAttr:!0,type:"String"},{name:"formKey",isAttr:!0,type:"String"},{name:"formType",isAttr:!0,type:"String"},{name:"formReadOnly",isAttr:!0,type:"Boolean",default:!1},{name:"formInit",isAttr:!0,type:"Boolean",default:!0}]},{name:"TemplateSupported",isAbstract:!0,extends:["bpmn:Process","bpmn:FlowElement"],properties:[{name:"modelerTemplate",isAttr:!0,type:"String"}]},{name:"Initiator",isAbstract:!0,extends:["bpmn:StartEvent"],properties:[{name:"initiator",isAttr:!0,type:"String"}]},{name:"ScriptTask",isAbstract:!0,extends:["bpmn:ScriptTask"],properties:[{name:"resultVariable",isAttr:!0,type:"String"},{name:"resource",isAttr:!0,type:"String"}]},{name:"Process",isAbstract:!0,extends:["bpmn:Process"],properties:[{name:"candidateStarterGroups",isAttr:!0,type:"String"},{name:"candidateStarterUsers",isAttr:!0,type:"String"},{name:"versionTag",isAttr:!0,type:"String"},{name:"historyTimeToLive",isAttr:!0,type:"String"},{name:"isStartableInTasklist",isAttr:!0,type:"Boolean",default:!0}]},{name:"EscalationEventDefinition",isAbstract:!0,extends:["bpmn:EscalationEventDefinition"],properties:[{name:"escalationCodeVariable",isAttr:!0,type:"String"}]},{name:"FormalExpression",isAbstract:!0,extends:["bpmn:FormalExpression"],properties:[{name:"resource",isAttr:!0,type:"String"}]},{name:"Assignable",extends:["bpmn:UserTask"],properties:[{name:"assignee",isAttr:!0,type:"String"},{name:"candidateUsers",isAttr:!0,type:"String"},{name:"candidateGroups",isAttr:!0,type:"String"},{name:"dueDate",isAttr:!0,type:"String"},{name:"followUpDate",isAttr:!0,type:"String"},{name:"priority",isAttr:!0,type:"String"}]},{name:"Assignee",supperClass:"Element",meta:{allowedIn:["*"]},properties:[{name:"label",type:"String",isAttr:!0},{name:"viewId",type:"Number",isAttr:!0}]},{name:"CallActivity",extends:["bpmn:CallActivity"],properties:[{name:"calledElementBinding",isAttr:!0,type:"String",default:"latest"},{name:"calledElementVersion",isAttr:!0,type:"String"},{name:"calledElementVersionTag",isAttr:!0,type:"String"},{name:"calledElementTenantId",isAttr:!0,type:"String"},{name:"caseRef",isAttr:!0,type:"String"},{name:"caseBinding",isAttr:!0,type:"String",default:"latest"},{name:"caseVersion",isAttr:!0,type:"String"},{name:"caseTenantId",isAttr:!0,type:"String"},{name:"variableMappingClass",isAttr:!0,type:"String"},{name:"variableMappingDelegateExpression",isAttr:!0,type:"String"}]},{name:"ServiceTaskLike",extends:["bpmn:ServiceTask","bpmn:BusinessRuleTask","bpmn:SendTask","bpmn:MessageEventDefinition"],properties:[{name:"expression",isAttr:!0,type:"String"},{name:"class",isAttr:!0,type:"String"},{name:"delegateExpression",isAttr:!0,type:"String"},{name:"resultVariable",isAttr:!0,type:"String"}]},{name:"DmnCapable",extends:["bpmn:BusinessRuleTask"],properties:[{name:"decisionRef",isAttr:!0,type:"String"},{name:"decisionRefBinding",isAttr:!0,type:"String",default:"latest"},{name:"decisionRefVersion",isAttr:!0,type:"String"},{name:"mapDecisionResult",isAttr:!0,type:"String",default:"resultList"},{name:"decisionRefTenantId",isAttr:!0,type:"String"}]},{name:"ExternalCapable",extends:["flowable:ServiceTaskLike"],properties:[{name:"type",isAttr:!0,type:"String"},{name:"topic",isAttr:!0,type:"String"}]},{name:"TaskPriorized",extends:["bpmn:Process","flowable:ExternalCapable"],properties:[{name:"taskPriority",isAttr:!0,type:"String"}]},{name:"Properties",superClass:["Element"],meta:{allowedIn:["*"]},properties:[{name:"values",type:"Property",isMany:!0}]},{name:"Property",superClass:["Element"],properties:[{name:"id",type:"String",isAttr:!0},{name:"name",type:"String",isAttr:!0},{name:"value",type:"String",isAttr:!0}]},{name:"Button",superClass:["Element"],meta:{allowedIn:["bpmn:UserTask"]},properties:[{name:"id",type:"String",isAttr:!0},{name:"name",type:"String",isAttr:!0},{name:"code",type:"String",isAttr:!0},{name:"isHide",type:"String",isAttr:!0},{name:"next",type:"String",isAttr:!0},{name:"sort",type:"Integer",isAttr:!0}]},{name:"Assignee",superClass:["Element"],meta:{allowedIn:["bpmn:UserTask"]},properties:[{name:"id",type:"String",isAttr:!0},{name:"type",type:"String",isAttr:!0},{name:"value",type:"String",isAttr:!0},{name:"condition",type:"String",isAttr:!0},{name:"operationType",type:"String",isAttr:!0},{name:"sort",type:"Integer",isAttr:!0}]},{name:"Connector",superClass:["Element"],meta:{allowedIn:["flowable:ServiceTaskLike"]},properties:[{name:"inputOutput",type:"InputOutput"},{name:"connectorId",type:"String"}]},{name:"InputOutput",superClass:["Element"],meta:{allowedIn:["bpmn:FlowNode","flowable:Connector"]},properties:[{name:"inputOutput",type:"InputOutput"},{name:"connectorId",type:"String"},{name:"inputParameters",isMany:!0,type:"InputParameter"},{name:"outputParameters",isMany:!0,type:"OutputParameter"}]},{name:"InputOutputParameter",properties:[{name:"name",isAttr:!0,type:"String"},{name:"value",isBody:!0,type:"String"},{name:"definition",type:"InputOutputParameterDefinition"}]},{name:"InputOutputParameterDefinition",isAbstract:!0},{name:"List",superClass:["InputOutputParameterDefinition"],properties:[{name:"items",isMany:!0,type:"InputOutputParameterDefinition"}]},{name:"Map",superClass:["InputOutputParameterDefinition"],properties:[{name:"entries",isMany:!0,type:"Entry"}]},{name:"Entry",properties:[{name:"key",isAttr:!0,type:"String"},{name:"value",isBody:!0,type:"String"},{name:"definition",type:"InputOutputParameterDefinition"}]},{name:"Value",superClass:["InputOutputParameterDefinition"],properties:[{name:"id",isAttr:!0,type:"String"},{name:"name",isAttr:!0,type:"String"},{name:"value",isBody:!0,type:"String"}]},{name:"Script",superClass:["InputOutputParameterDefinition"],properties:[{name:"scriptFormat",isAttr:!0,type:"String"},{name:"resource",isAttr:!0,type:"String"},{name:"value",isBody:!0,type:"String"}]},{name:"Field",superClass:["Element"],meta:{allowedIn:["flowable:ServiceTaskLike","flowable:ExecutionListener","flowable:TaskListener","bpmn:ServiceTask"]},properties:[{name:"name",isAttr:!0,type:"String"},{name:"expression",type:"String"},{name:"stringValue",isAttr:!0,type:"String"},{name:"string",type:"String"},{name:"htmlVar",type:"Expression"}]},{name:"ChildField",superClass:["Element"],properties:[{name:"id",type:"String",isAttr:!0},{name:"name",type:"String",isAttr:!0},{name:"type",type:"String",isAttr:!0},{name:"required",type:"String",isAttr:!0},{name:"readable",type:"String",isAttr:!0},{name:"writable",type:"String",isAttr:!0},{name:"variable",type:"String",isAttr:!0},{name:"expression",type:"String",isAttr:!0},{name:"datePattern",type:"String",isAttr:!0},{name:"default",type:"String",isAttr:!0},{name:"values",type:"Value",isMany:!0}]},{name:"InputParameter",superClass:["InputOutputParameter"]},{name:"OutputParameter",superClass:["InputOutputParameter"]},{name:"Collectable",isAbstract:!0,extends:["bpmn:MultiInstanceLoopCharacteristics"],superClass:["flowable:AsyncCapable"],properties:[{name:"collection",isAttr:!0,type:"String"},{name:"elementVariable",isAttr:!0,type:"String"}]},{name:"FailedJobRetryTimeCycle",superClass:["Element"],meta:{allowedIn:["flowable:AsyncCapable","bpmn:MultiInstanceLoopCharacteristics"]},properties:[{name:"body",isBody:!0,type:"String"}]},{name:"ExecutionListener",superClass:["Element"],meta:{allowedIn:["bpmn:Task","bpmn:ServiceTask","bpmn:UserTask","bpmn:BusinessRuleTask","bpmn:ScriptTask","bpmn:ReceiveTask","bpmn:ManualTask","bpmn:ExclusiveGateway","bpmn:SequenceFlow","bpmn:ParallelGateway","bpmn:InclusiveGateway","bpmn:EventBasedGateway","bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:EndEvent","bpmn:BoundaryEvent","bpmn:CallActivity","bpmn:SubProcess","bpmn:Process"]},properties:[{name:"expression",isAttr:!0,type:"String"},{name:"class",isAttr:!0,type:"String"},{name:"delegateExpression",isAttr:!0,type:"String"},{name:"event",isAttr:!0,type:"String"},{name:"script",type:"Script"},{name:"fields",type:"Field",isMany:!0}]},{name:"TaskListener",superClass:["Element"],meta:{allowedIn:["bpmn:UserTask"]},properties:[{name:"expression",isAttr:!0,type:"String"},{name:"class",isAttr:!0,type:"String"},{name:"delegateExpression",isAttr:!0,type:"String"},{name:"event",isAttr:!0,type:"String"},{name:"script",type:"Script"},{name:"fields",type:"Field",isMany:!0}]},{name:"FormProperty",superClass:["Element"],meta:{allowedIn:["bpmn:StartEvent","bpmn:UserTask"]},properties:[{name:"id",type:"String",isAttr:!0},{name:"name",type:"String",isAttr:!0},{name:"type",type:"String",isAttr:!0},{name:"required",type:"String",isAttr:!0},{name:"readable",type:"String",isAttr:!0},{name:"writable",type:"String",isAttr:!0},{name:"variable",type:"String",isAttr:!0},{name:"expression",type:"String",isAttr:!0},{name:"datePattern",type:"String",isAttr:!0},{name:"default",type:"String",isAttr:!0},{name:"values",type:"Value",isMany:!0},{name:"children",type:"ChildField",isMany:!0},{name:"extensionElements",type:"bpmn:ExtensionElements",isMany:!0}]},{name:"FormData",superClass:["Element"],meta:{allowedIn:["bpmn:StartEvent","bpmn:UserTask"]},properties:[{name:"fields",type:"FormField",isMany:!0},{name:"businessKey",type:"String",isAttr:!0}]},{name:"FormField",superClass:["Element"],properties:[{name:"id",type:"String",isAttr:!0},{name:"label",type:"String",isAttr:!0},{name:"type",type:"String",isAttr:!0},{name:"datePattern",type:"String",isAttr:!0},{name:"defaultValue",type:"String",isAttr:!0},{name:"properties",type:"Properties"},{name:"validation",type:"Validation"},{name:"values",type:"Value",isMany:!0}]},{name:"Validation",superClass:["Element"],properties:[{name:"constraints",type:"Constraint",isMany:!0}]},{name:"Constraint",superClass:["Element"],properties:[{name:"name",type:"String",isAttr:!0},{name:"config",type:"String",isAttr:!0}]},{name:"ConditionalEventDefinition",isAbstract:!0,extends:["bpmn:ConditionalEventDefinition"],properties:[{name:"variableName",isAttr:!0,type:"String"},{name:"variableEvent",isAttr:!0,type:"String"}]},{name:"Condition",superClass:["Element"],meta:{allowedIn:["bpmn:SequenceFlow"]},properties:[{name:"id",type:"String",isAttr:!0},{name:"field",type:"String",isAttr:!0},{name:"compare",type:"String",isAttr:!0},{name:"value",type:"String",isAttr:!0},{name:"logic",type:"String",isAttr:!0},{name:"sort",type:"Integer",isAttr:!0}]}],emumerations=[],FlowableModdleDescriptor={name,uri,prefix,xml,associations,types,emumerations},WILDCARD="*";function CamundaModdleExtension$1(t){const s=this;t.on("moddleCopy.canCopyProperty",function(n){const r=n.property,a=n.parent;return s.canCopyProperty(r,a)})}CamundaModdleExtension$1.$inject=["eventBus"];CamundaModdleExtension$1.prototype.canCopyProperty=function(t,s){if(minDash.isObject(t)&&!isAllowedInParent(t,s)||is$2(t,"camunda:InputOutput")&&!this.canHostInputOutput(s)||isAny(t,["camunda:Connector","camunda:Field"])&&!this.canHostConnector(s)||is$2(t,"camunda:In")&&!this.canHostIn(s))return!1};CamundaModdleExtension$1.prototype.canHostInputOutput=function(t){if(getParent(t,"camunda:Connector"))return!0;const n=getParent(t,"bpmn:FlowNode");return!(!n||isAny(n,["bpmn:StartEvent","bpmn:Gateway","bpmn:BoundaryEvent"])||is$2(n,"bpmn:SubProcess")&&n.get("triggeredByEvent"))};CamundaModdleExtension$1.prototype.canHostConnector=function(t){const s=getParent(t,"camunda:ServiceTaskLike");return is$2(s,"bpmn:MessageEventDefinition")?getParent(t,"bpmn:IntermediateThrowEvent")||getParent(t,"bpmn:EndEvent"):!0};CamundaModdleExtension$1.prototype.canHostIn=function(t){return getParent(t,"bpmn:CallActivity")?!0:getParent(t,"bpmn:SignalEventDefinition")?getParent(t,"bpmn:IntermediateThrowEvent")||getParent(t,"bpmn:EndEvent"):!0};function is$2(t,s){return t&&minDash.isFunction(t.$instanceOf)&&t.$instanceOf(s)}function isAny(t,s){return minDash.some(s,function(n){return is$2(t,n)})}function getParent(t,s){if(!s)return t.$parent;if(is$2(t,s))return t;if(t.$parent)return getParent(t.$parent,s)}function isAllowedInParent(t,s){const n=t.$type&&t.$model.getTypeDescriptor(t.$type),r=n&&n.meta&&n.meta.allowedIn;return!r||isWildcard(r)?!0:minDash.some(r,function(a){return getParent(s,a)})}function isWildcard(t){return t.indexOf(WILDCARD)!==-1}const CamundaModdleExtension={__init__:["camundaModdleExtension"],camundaModdleExtension:["type",CamundaModdleExtension$1]},ALLOWED_TYPES$1={FailedJobRetryTimeCycle:["bpmn:StartEvent","bpmn:BoundaryEvent","bpmn:IntermediateCatchEvent","bpmn:Activity"],Connector:["bpmn:EndEvent","bpmn:IntermediateThrowEvent"],Field:["bpmn:EndEvent","bpmn:IntermediateThrowEvent"]};function is$1(t,s){return t&&typeof t.$instanceOf=="function"&&t.$instanceOf(s)}function exists$1(t){return t&&t.length}function includesType$1(t,s){return exists$1(t)&&minDash.some(t,function(n){return is$1(n,s)})}function anyType$1(t,s){return minDash.some(s,function(n){return is$1(t,n)})}function isAllowed$1(t,s,n){const r=s.name,a=ALLOWED_TYPES$1[r.replace(/activiti:/,"")];return r===t&&anyType$1(n,a)}function ActivitiModdleExtension$1(t){t.on("property.clone",function(s){const n=s.newElement,r=s.propertyDescriptor;this.canCloneProperty(n,r)},this)}ActivitiModdleExtension$1.$inject=["eventBus"];ActivitiModdleExtension$1.prototype.canCloneProperty=function(t,s){if(isAllowed$1("activiti:FailedJobRetryTimeCycle",s,t))return includesType$1(t.eventDefinitions,"bpmn:TimerEventDefinition")||includesType$1(t.eventDefinitions,"bpmn:SignalEventDefinition")||is$1(t.loopCharacteristics,"bpmn:MultiInstanceLoopCharacteristics");if(isAllowed$1("activiti:Connector",s,t)||isAllowed$1("activiti:Field",s,t))return includesType$1(t.eventDefinitions,"bpmn:MessageEventDefinition")};const ActivitiModdleExtension={__init__:["ActivitiModdleExtension"],ActivitiModdleExtension:["type",ActivitiModdleExtension$1]},ALLOWED_TYPES={FailedJobRetryTimeCycle:["bpmn:StartEvent","bpmn:BoundaryEvent","bpmn:IntermediateCatchEvent","bpmn:Activity"],Connector:["bpmn:EndEvent","bpmn:IntermediateThrowEvent"],Field:["bpmn:EndEvent","bpmn:IntermediateThrowEvent"]};function is(t,s){return t&&typeof t.$instanceOf=="function"&&t.$instanceOf(s)}function exists(t){return t&&t.length}function includesType(t,s){return exists(t)&&minDash.some(t,function(n){return is(n,s)})}function anyType(t,s){return minDash.some(s,function(n){return is(t,n)})}function isAllowed(t,s,n){const r=s.name,a=ALLOWED_TYPES[r.replace(/flowable:/,"")];return r===t&&anyType(n,a)}function FlowableModdleExtension$1(t){t.on("property.clone",function(s){const n=s.newElement,r=s.propertyDescriptor;this.canCloneProperty(n,r)},this)}FlowableModdleExtension$1.$inject=["eventBus"];FlowableModdleExtension$1.prototype.canCloneProperty=function(t,s){if(isAllowed("flowable:FailedJobRetryTimeCycle",s,t))return includesType(t.eventDefinitions,"bpmn:TimerEventDefinition")||includesType(t.eventDefinitions,"bpmn:SignalEventDefinition")||is(t.loopCharacteristics,"bpmn:MultiInstanceLoopCharacteristics");if(isAllowed("flowable:Connector",s,t)||isAllowed("flowable:Field",s,t))return includesType(t.eventDefinitions,"bpmn:MessageEventDefinition")};const FlowableModdleExtension={__init__:["FlowableModdleExtension"],FlowableModdleExtension:["type",FlowableModdleExtension$1]};var render$B=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"my-process-designer"},[n("div",{staticClass:"my-process-designer__header"},[t._t("control-header"),t.$slots["control-header"]?t._e():[n("ElButtonGroup",{key:"file-control"},[t.simulation?n("ElTooltip",{attrs:{effect:"light",content:"保存流程"}},[n("ElButton",{attrs:{size:t.headerButtonSize,type:t.headerButtonType,icon:"el-icon-save"},on:{click:function(r){return t.$refs.refFile.click()}}},[t._v(" 保存 ")])],1):t._e(),t.simulation?n("ElTooltip",{attrs:{effect:"light",content:"导入流程"}},[n("ElButton",{attrs:{size:t.headerButtonSize,type:t.headerButtonType,icon:"el-icon-folder-opened"},on:{click:function(r){return t.$refs.refFile.click()}}},[t._v(" 导入 ")])],1):t._e(),n("ElTooltip",{attrs:{effect:"light"},scopedSlots:t._u([{key:"content",fn:function(){return[n("ElButton",{attrs:{size:t.headerButtonSize,type:"text"},on:{click:function(r){return t.downloadProcessAsXml()}}},[t._v("下载为XML文件")]),n("br"),n("ElButton",{attrs:{size:t.headerButtonSize,type:"text"},on:{click:function(r){return t.downloadProcessAsSvg()}}},[t._v("下载为SVG文件")]),n("br"),n("ElButton",{attrs:{size:t.headerButtonSize,type:"text"},on:{click:function(r){return t.downloadProcessAsBpmn()}}},[t._v("下载为BPMN文件")])]},proxy:!0}],null,!1,1539507321)},[n("ElButton",{attrs:{size:t.headerButtonSize,type:t.headerButtonType,icon:"el-icon-download"}},[t._v("下载")])],1),n("ElTooltip",{attrs:{effect:"light"},scopedSlots:t._u([{key:"content",fn:function(){return[n("ElButton",{attrs:{size:t.headerButtonSize,type:"text"},on:{click:t.previewProcessXML}},[t._v("预览XML")]),n("br"),n("ElButton",{attrs:{size:t.headerButtonSize,type:"text"},on:{click:t.previewProcessJson}},[t._v("预览JSON")])]},proxy:!0}],null,!1,3067180497)},[n("ElButton",{attrs:{size:t.headerButtonSize,type:t.headerButtonType,icon:"el-icon-view"}},[t._v("预览")])],1),t.simulation?n("ElTooltip",{attrs:{effect:"light",content:t.simulationStatus?"退出模拟":"开启模拟"}},[n("ElButton",{attrs:{size:t.headerButtonSize,type:t.headerButtonType,icon:"el-icon-cpu"},on:{click:t.processSimulation}},[t._v(" 模拟 ")])],1):t._e()],1),n("ElButtonGroup",{key:"align-control"},[n("ElTooltip",{attrs:{effect:"light",content:"向左对齐"}},[n("ElButton",{staticClass:"align align-left",attrs:{size:t.headerButtonSize,icon:"el-icon-s-data"},on:{click:function(r){return t.elementsAlign("left")}}})],1),n("ElTooltip",{attrs:{effect:"light",content:"向右对齐"}},[n("ElButton",{staticClass:"align align-right",attrs:{size:t.headerButtonSize,icon:"el-icon-s-data"},on:{click:function(r){return t.elementsAlign("right")}}})],1),n("ElTooltip",{attrs:{effect:"light",content:"向上对齐"}},[n("ElButton",{staticClass:"align align-top",attrs:{size:t.headerButtonSize,icon:"el-icon-s-data"},on:{click:function(r){return t.elementsAlign("top")}}})],1),n("ElTooltip",{attrs:{effect:"light",content:"向下对齐"}},[n("ElButton",{staticClass:"align align-bottom",attrs:{size:t.headerButtonSize,icon:"el-icon-s-data"},on:{click:function(r){return t.elementsAlign("bottom")}}})],1),n("ElTooltip",{attrs:{effect:"light",content:"水平居中"}},[n("ElButton",{staticClass:"align align-center",attrs:{size:t.headerButtonSize,icon:"el-icon-s-data"},on:{click:function(r){return t.elementsAlign("center")}}})],1),n("ElTooltip",{attrs:{effect:"light",content:"垂直居中"}},[n("ElButton",{staticClass:"align align-middle",attrs:{size:t.headerButtonSize,icon:"el-icon-s-data"},on:{click:function(r){return t.elementsAlign("middle")}}})],1)],1),n("ElButtonGroup",{key:"scale-control"},[n("ElTooltip",{attrs:{effect:"light",content:"缩小视图"}},[n("ElButton",{attrs:{size:t.headerButtonSize,disabled:t.defaultZoom<.2,icon:"el-icon-zoom-out"},on:{click:function(r){return t.processZoomOut()}}})],1),n("ElButton",{attrs:{size:t.headerButtonSize}},[t._v(t._s(`${Math.floor(t.defaultZoom*10*10)}%`))]),n("ElTooltip",{attrs:{effect:"light",content:"放大视图"}},[n("ElButton",{attrs:{size:t.headerButtonSize,disabled:t.defaultZoom>4,icon:"el-icon-zoom-in"},on:{click:function(r){return t.processZoomIn()}}})],1),n("ElTooltip",{attrs:{effect:"light",content:"重置视图并居中"}},[n("ElButton",{attrs:{size:t.headerButtonSize,icon:"el-icon-c-scale-to-original"},on:{click:function(r){return t.processReZoom()}}})],1)],1),n("ElButtonGroup",{key:"stack-control"},[n("ElTooltip",{attrs:{effect:"light",content:"撤销"}},[n("ElButton",{attrs:{size:t.headerButtonSize,disabled:!t.revocable,icon:"el-icon-refresh-left"},on:{click:function(r){return t.processUndo()}}})],1),n("ElTooltip",{attrs:{effect:"light",content:"恢复"}},[n("ElButton",{attrs:{size:t.headerButtonSize,disabled:!t.recoverable,icon:"el-icon-refresh-right"},on:{click:function(r){return t.processRedo()}}})],1),n("ElTooltip",{attrs:{effect:"light",content:"重新绘制"}},[n("ElButton",{attrs:{size:t.headerButtonSize,icon:"el-icon-refresh"},on:{click:t.processRestart}})],1)],1)],n("input",{ref:"refFile",staticStyle:{display:"none"},attrs:{id:"files",type:"file",accept:".xml, .bpmn"},on:{change:t.importLocalFile}})],2),n("div",{staticClass:"my-process-designer__container"},[n("div",{ref:"bpmn-canvas",staticClass:"my-process-designer__canvas"})]),n("ElementDialog",{attrs:{title:"预览",width:"60vw",height:"60vh",visible:t.previewModelVisible,"body-padding":!1,"destroy-on-close":""},on:{"update:visible":function(r){t.previewModelVisible=r}}},[n("HighlightJS",{attrs:{language:t.previewType,code:t.previewResult}})],1)],1)},staticRenderFns$B=[];hljs.registerLanguage("xml",xml$3);hljs.registerLanguage("json",json);const __vue2_script$F={name:"ProcessDesigner",componentName:"MyProcessDesigner",props:{value:String,processId:String,processName:String,translations:Object,options:{type:Object,default:()=>({})},additionalModel:[Object,Array],moddleExtension:Object,onlyCustomizeAddi:{type:Boolean,default:!1},onlyCustomizeModdle:{type:Boolean,default:!1},simulation:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},prefix:{type:String,default:"camunda"},events:{type:Array,default:()=>["element.click"]},headerButtonSize:{type:String,default:"small",validator:t=>["default","medium","small","mini"].indexOf(t)!==-1},headerButtonType:{type:String,default:"primary",validator:t=>["default","primary","success","warning","danger","info"].indexOf(t)!==-1}},data(){return{defaultZoom:1,previewModelVisible:!1,simulationStatus:!1,previewResult:"",previewType:"xml",recoverable:!1,revocable:!1}},computed:{additionalModules(){const t=[];if(this.onlyCustomizeAddi)return Object.prototype.toString.call(this.additionalModel)==="[object Array]"?this.additionalModel||[]:[this.additionalModel];Object.prototype.toString.call(this.additionalModel)==="[object Array]"?t.push(...this.additionalModel):this.additionalModel&&t.push(this.additionalModel);const s={translate:["value",customTranslate(this.translations||translationsCN)]};return t.push(s),this.simulation&&t.push(TokenSimulationModule),this.prefix==="camunda"&&t.push(CamundaModdleExtension),this.prefix==="flowable"&&t.push(FlowableModdleExtension),this.prefix==="activiti"&&t.push(ActivitiModdleExtension),t},moddleExtensions(){const t={};if(this.onlyCustomizeModdle)return this.moddleExtension||null;if(this.moddleExtension)for(const s in this.moddleExtension)t[s]=this.moddleExtension[s];return this.prefix==="activiti"&&(t.activiti=ActivitiModdleDescriptor),this.prefix==="flowable"&&(t.flowable=FlowableModdleDescriptor),this.prefix==="camunda"&&(t.camunda=CamundaModdleDescriptor),t}},mounted(){this.initBpmnModeler(),this.createNewDiagram(this.value),this.$once("hook:beforeDestroy",()=>{this.bpmnModeler&&this.bpmnModeler.destroy(),this.$emit("destroy",this.bpmnModeler),this.bpmnModeler=null})},methods:{initBpmnModeler(){this.bpmnModeler||(this.bpmnModeler=new BpmnModeler(f({container:this.$refs["bpmn-canvas"],keyboard:this.keyboard?{bindTo:document}:null,additionalModules:this.additionalModules,moddleExtensions:this.moddleExtensions},this.options)),this.$emit("init-finished",this.bpmnModeler),this.initModelListeners())},initModelListeners(){const t=this.bpmnModeler.get("eventBus"),s=this;this.events.forEach(n=>{t.on(n,function(r){const a=n.replace(/\./g,"-"),o=r?r.element:null;s.$emit(a,o,r)})}),t.on("commandStack.changed",n=>v(this,null,function*(){try{this.recoverable=this.bpmnModeler.get("commandStack").canRedo(),this.revocable=this.bpmnModeler.get("commandStack").canUndo();const{xml:r}=yield this.bpmnModeler.saveXML({format:!0});this.$emit("commandStack-changed",n),this.$emit("input",r),this.$emit("change",r)}catch(r){console.error(`[Process Designer Warn]: ${r.message||r}`)}})),this.bpmnModeler.on("canvas.viewbox.changed",({viewbox:n})=>{this.$emit("canvas-viewbox-changed",{viewbox:n});const{scale:r}=n;this.defaultZoom=Math.floor(r*100)/100})},createNewDiagram(t){return v(this,null,function*(){const s=this.processId||`Process_${new Date().getTime()}`,n=this.processName||`业务流程_${new Date().getTime()}`,r=t||DefaultEmptyXML(s,n,this.prefix);try{const{warnings:a}=yield this.bpmnModeler.importXML(r);a&&a.length&&a.forEach(o=>console.warn(o))}catch(a){console.error(`[Process Designer Warn]: ${(a==null?void 0:a.message)||a}`)}})},downloadProcess(t,s){return v(this,null,function*(){try{const r=this;if(t==="xml"||t==="bpmn"){const{err:a,xml:o}=yield this.bpmnModeler.saveXML();a&&console.error(`[Process Designer Warn ]: ${a.message||a}`);const{href:l,filename:c}=r.setEncoded(t.toUpperCase(),s,o);n(l,c)}else{const{err:a,svg:o}=yield this.bpmnModeler.saveSVG();if(a)return console.error(a);const{href:l,filename:c}=r.setEncoded("SVG",s,o);n(l,c)}}catch(r){console.error(`[Process Designer Warn ]: ${r.message||r}`)}function n(r,a){if(r&&a){const o=document.createElement("a");o.download=a,o.href=r,o.click(),URL.revokeObjectURL(o.href)}}})},setEncoded(t,s="diagram",n){const r=encodeURIComponent(n);return{filename:`${s}.${t}`,href:`data:application/${t==="svg"?"text/xml":"bpmn20-xml"};charset=UTF-8,${r}`,data:n}},importLocalFile(){const t=this,s=this.$refs.refFile.files[0],n=new FileReader;n.readAsText(s),n.onload=function(){const r=this.result;t.createNewDiagram(r)}},downloadProcessAsXml(){this.downloadProcess("xml")},downloadProcessAsBpmn(){this.downloadProcess("bpmn")},downloadProcessAsSvg(){this.downloadProcess("svg")},processSimulation(){this.simulationStatus=!this.simulationStatus,this.simulation&&this.bpmnModeler.get("toggleMode").toggleMode()},processRedo(){this.bpmnModeler.get("commandStack").redo()},processUndo(){this.bpmnModeler.get("commandStack").undo()},processZoomIn(t=.1){const s=Math.floor(this.defaultZoom*100+t*100)/100;if(s>4)throw new Error("[Process Designer Warn ]: The zoom ratio cannot be greater than 4");this.defaultZoom=s,this.bpmnModeler.get("canvas").zoom(this.defaultZoom)},processZoomOut(t=.1){const s=Math.floor(this.defaultZoom*100-t*100)/100;if(s<.2)throw new Error("[Process Designer Warn ]: The zoom ratio cannot be less than 0.2");this.defaultZoom=s,this.bpmnModeler.get("canvas").zoom(this.defaultZoom)},processZoomTo(t=1){if(t<.2)throw new Error("[Process Designer Warn ]: The zoom ratio cannot be less than 0.2");if(t>4)throw new Error("[Process Designer Warn ]: The zoom ratio cannot be greater than 4");this.defaultZoom=t,this.bpmnModeler.get("canvas").zoom(t)},processReZoom(){this.defaultZoom=1,this.bpmnModeler.get("canvas").zoom("fit-viewport","auto")},processRestart(){this.recoverable=!1,this.revocable=!1,this.createNewDiagram(null)},elementsAlign(t){const s=this.bpmnModeler.get("alignElements"),r=this.bpmnModeler.get("selection").get();if(!r||r.length<=1){this.$message.warning("请按住 Shift 键选择多个元素对齐");return}this.$confirm("自动对齐可能造成图形变形,是否继续?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>s.trigger(r,t))},previewProcessXML(){this.bpmnModeler.saveXML({format:!0}).then(({xml:t})=>{this.previewResult=t,this.previewType="xml",this.previewModelVisible=!0})},previewProcessJson(){const t=new X2JS;this.bpmnModeler.saveXML({format:!0}).then(({xml:s})=>{const{definitions:n}=t.xml2js(s);n?this.previewResult=JSON.stringify(n,null,4):this.previewResult="",this.previewType="json",this.previewModelVisible=!0})}}},__cssModules$F={};var __component__$F=normalizeComponent(__vue2_script$F,render$B,staticRenderFns$B,!1,__vue2_injectStyles$F,null,null,null);function __vue2_injectStyles$F(t){for(let s in __cssModules$F)this[s]=__cssModules$F[s]}const ProcessDesigner=function(){return __component__$F.exports}(),processPanel="";var render$A=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"panel-tab__content"},[n("ElForm",{attrs:{size:"mini","label-width":"90px"},nativeOn:{submit:function(r){r.preventDefault()}}},[n("ElFormItem",{attrs:{label:"ID"}},[n("ElInput",{attrs:{disabled:t.idEditDisabled,clearable:""},on:{change:function(r){return t.updateBaseInfo("id")}},model:{value:t.elementBaseInfo.id,callback:function(r){t.$set(t.elementBaseInfo,"id",r)},expression:"elementBaseInfo.id"}})],1),n("ElFormItem",{attrs:{label:"名称"}},[n("ElInput",{attrs:{clearable:""},on:{change:function(r){return t.updateBaseInfo("name")}},model:{value:t.elementBaseInfo.name,callback:function(r){t.$set(t.elementBaseInfo,"name",r)},expression:"elementBaseInfo.name"}})],1),t.elementBaseInfo.$type==="bpmn:Process"?[n("ElFormItem",{attrs:{label:"版本标签"}},[n("ElInput",{attrs:{clearable:""},on:{change:function(r){return t.updateBaseInfo("versionTag")}},model:{value:t.elementBaseInfo.versionTag,callback:function(r){t.$set(t.elementBaseInfo,"versionTag",r)},expression:"elementBaseInfo.versionTag"}})],1),n("ElFormItem",{attrs:{label:"可执行"}},[n("ElSwitch",{attrs:{"active-text":"是","inactive-text":"否"},on:{change:function(r){return t.updateBaseInfo("isExecutable")}},model:{value:t.elementBaseInfo.isExecutable,callback:function(r){t.$set(t.elementBaseInfo,"isExecutable",r)},expression:"elementBaseInfo.isExecutable"}})],1)]:t._e(),t.elementBaseInfo.$type==="bpmn:SubProcess"?n("ElFormItem",{attrs:{label:"状态"}},[n("ElSwitch",{attrs:{"active-text":"展开","inactive-text":"折叠"},on:{change:function(r){return t.updateBaseInfo("isExpanded")}},model:{value:t.elementBaseInfo.isExpanded,callback:function(r){t.$set(t.elementBaseInfo,"isExpanded",r)},expression:"elementBaseInfo.isExpanded"}})],1):t._e()],2)],1)},staticRenderFns$A=[];const __vue2_script$E={name:"ElementBaseInfo",props:{businessObject:Object,idEditDisabled:{type:Boolean,default:!0}},data(){return{elementBaseInfo:{}}},watch:{businessObject:{immediate:!1,handler:function(t){t&&this.$nextTick(()=>this.resetBaseInfo())}}},beforeDestroy(){this.bpmnElement=null},methods:{resetBaseInfo(){var t,s;this.bpmnElement=((t=window==null?void 0:window.bpmnInstances)==null?void 0:t.bpmnElement)||{},this.elementBaseInfo=JSON.parse(JSON.stringify(this.bpmnElement.businessObject)),this.elementBaseInfo&&this.elementBaseInfo.$type==="bpmn:SubProcess"&&this.$set(this.elementBaseInfo,"isExpanded",(s=this.elementBaseInfo.di)==null?void 0:s.isExpanded)},updateBaseInfo(t){var n;if(t==="id"){window.bpmnInstances.modeling.updateProperties(this.bpmnElement,{id:this.elementBaseInfo[t],di:{id:`${this.elementBaseInfo[t]}_di`}});return}if(t==="isExpanded"){(n=window==null?void 0:window.bpmnInstances)==null||n.modeling.toggleCollapse(this.bpmnElement);return}const s=Object.create(null);s[t]=this.elementBaseInfo[t],window.bpmnInstances.modeling.updateProperties(this.bpmnElement,s)}}},__cssModules$E={};var __component__$E=normalizeComponent(__vue2_script$E,render$A,staticRenderFns$A,!1,__vue2_injectStyles$E,null,null,null);function __vue2_injectStyles$E(t){for(let s in __cssModules$E)this[s]=__cssModules$E[s]}const ElementBaseInfo=function(){return __component__$E.exports}();var render$z=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"panel-tab__content"},[n("div",{staticClass:"element-property input-property"},[n("div",{staticClass:"element-property__label"},[t._v("元素文档:")]),n("div",{staticClass:"element-property__value"},[n("ElInput",{attrs:{type:"textarea",size:"mini",resize:"vertical",autosize:{minRows:2,maxRows:4}},on:{input:t.updateDocumentation,blur:t.updateDocumentation},model:{value:t.documentation,callback:function(r){t.documentation=r},expression:"documentation"}})],1)])])},staticRenderFns$z=[];const __vue2_script$D={name:"ElementOtherConfig",props:{id:String},data(){return{documentation:""}},watch:{id:{immediate:!0,handler:function(t){t&&t.length?this.$nextTick(()=>{var n;const s=(n=window.bpmnInstances.bpmnElement.businessObject)==null?void 0:n.documentation;this.documentation=s&&s.length?s[0].text:""}):this.documentation=""}}},beforeDestroy(){this.bpmnElement=null},methods:{updateDocumentation(){this.bpmnElement&&this.bpmnElement.id===this.id||(this.bpmnElement=window.bpmnInstances.elementRegistry.get(this.id));const t=window.bpmnInstances.bpmnFactory.create("bpmn:Documentation",{text:this.documentation});window.bpmnInstances.modeling.updateProperties(this.bpmnElement,{documentation:[t]})}}},__cssModules$D={};var __component__$D=normalizeComponent(__vue2_script$D,render$z,staticRenderFns$z,!1,__vue2_injectStyles$D,null,null,null);function __vue2_injectStyles$D(t){for(let s in __cssModules$D)this[s]=__cssModules$D[s]}const ElementOtherConfig=function(){return __component__$D.exports}();var render$y=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticStyle:{"margin-top":"16px"}},[n("ElFormItem",{attrs:{label:"处理用户"}},[n("ElSelect",{on:{change:function(r){return t.updateElementTask("assignee")}},model:{value:t.userTaskForm.assignee,callback:function(r){t.$set(t.userTaskForm,"assignee",r)},expression:"userTaskForm.assignee"}},t._l(t.mockData,function(r){return n("ElOption",{key:`ass-${r}`,attrs:{label:`用户${r}`,value:`user${r}`}})}),1)],1),n("ElFormItem",{attrs:{label:"候选用户"}},[n("ElSelect",{attrs:{multiple:"","collapse-tags":""},on:{change:function(r){return t.updateElementTask("candidateUsers")}},model:{value:t.userTaskForm.candidateUsers,callback:function(r){t.$set(t.userTaskForm,"candidateUsers",r)},expression:"userTaskForm.candidateUsers"}},t._l(t.mockData,function(r){return n("ElOption",{key:`user-${r}`,attrs:{label:`用户${r}`,value:`user${r}`}})}),1)],1),n("ElFormItem",{attrs:{label:"候选分组"}},[n("ElSelect",{attrs:{multiple:"","collapse-tags":""},on:{change:function(r){return t.updateElementTask("candidateGroups")}},model:{value:t.userTaskForm.candidateGroups,callback:function(r){t.$set(t.userTaskForm,"candidateGroups",r)},expression:"userTaskForm.candidateGroups"}},t._l(t.mockData,function(r){return n("ElOption",{key:`ass-${r}`,attrs:{label:`分组${r}`,value:`group${r}`}})}),1)],1),n("ElFormItem",{attrs:{label:"到期时间"}},[n("ElInput",{attrs:{clearable:""},on:{change:function(r){return t.updateElementTask("dueDate")}},model:{value:t.userTaskForm.dueDate,callback:function(r){t.$set(t.userTaskForm,"dueDate",r)},expression:"userTaskForm.dueDate"}})],1),n("ElFormItem",{attrs:{label:"跟踪时间"}},[n("ElInput",{attrs:{clearable:""},on:{change:function(r){return t.updateElementTask("followUpDate")}},model:{value:t.userTaskForm.followUpDate,callback:function(r){t.$set(t.userTaskForm,"followUpDate",r)},expression:"userTaskForm.followUpDate"}})],1),n("ElFormItem",{attrs:{label:"优先级"}},[n("ElInput",{attrs:{clearable:""},on:{change:function(r){return t.updateElementTask("priority")}},model:{value:t.userTaskForm.priority,callback:function(r){t.$set(t.userTaskForm,"priority",r)},expression:"userTaskForm.priority"}})],1)],1)},staticRenderFns$y=[];const __vue2_script$C={name:"UserTask",props:{id:String},data(){return{defaultTaskForm:{assignee:"",candidateUsers:[],candidateGroups:[],dueDate:"",followUpDate:"",priority:""},userTaskForm:{},mockData:[1,2,3,4,5,6,7,8,9,10]}},watch:{id:{immediate:!0,handler(){this.bpmnElement=window.bpmnInstances.bpmnElement,this.$nextTick(()=>this.resetTaskForm())}}},beforeDestroy(){this.bpmnElement=null},methods:{resetTaskForm(){var t,s;for(const n in this.defaultTaskForm){let r;n==="candidateUsers"||n==="candidateGroups"?r=(t=this.bpmnElement)!=null&&t.businessObject[n]?this.bpmnElement.businessObject[n].split(","):[]:r=((s=this.bpmnElement)==null?void 0:s.businessObject[n])||this.defaultTaskForm[n],this.$set(this.userTaskForm,n,r)}},updateElementTask(t){const s=Object.create(null);t==="candidateUsers"||t==="candidateGroups"?s[t]=this.userTaskForm[t]&&this.userTaskForm[t].length?this.userTaskForm[t].join():null:s[t]=this.userTaskForm[t]||null,window.bpmnInstances.modeling.updateProperties(this.bpmnElement,s)}}},__cssModules$C={};var __component__$C=normalizeComponent(__vue2_script$C,render$y,staticRenderFns$y,!1,__vue2_injectStyles$C,null,null,null);function __vue2_injectStyles$C(t){for(let s in __cssModules$C)this[s]=__cssModules$C[s]}const UserTask=function(){return __component__$C.exports}();var render$x=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticStyle:{"margin-top":"16px"}},[n("ElFormItem",{attrs:{label:"脚本格式"}},[n("ElInput",{attrs:{clearable:""},on:{input:function(r){return t.updateElementTask()},change:function(r){return t.updateElementTask()}},model:{value:t.scriptTaskForm.scriptFormat,callback:function(r){t.$set(t.scriptTaskForm,"scriptFormat",r)},expression:"scriptTaskForm.scriptFormat"}})],1),n("ElFormItem",{attrs:{label:"脚本类型"}},[n("ElSelect",{model:{value:t.scriptTaskForm.scriptType,callback:function(r){t.$set(t.scriptTaskForm,"scriptType",r)},expression:"scriptTaskForm.scriptType"}},[n("ElOption",{attrs:{label:"内联脚本",value:"inline"}}),n("ElOption",{attrs:{label:"外部资源",value:"external"}})],1)],1),n("ElFormItem",{directives:[{name:"show",rawName:"v-show",value:t.scriptTaskForm.scriptType==="inline",expression:"scriptTaskForm.scriptType === 'inline'"}],attrs:{label:"脚本"}},[n("ElInput",{attrs:{type:"textarea",resize:"vertical",autosize:{minRows:2,maxRows:4},clearable:""},on:{input:function(r){return t.updateElementTask()},change:function(r){return t.updateElementTask()}},model:{value:t.scriptTaskForm.script,callback:function(r){t.$set(t.scriptTaskForm,"script",r)},expression:"scriptTaskForm.script"}})],1),n("ElFormItem",{directives:[{name:"show",rawName:"v-show",value:t.scriptTaskForm.scriptType==="external",expression:"scriptTaskForm.scriptType === 'external'"}],attrs:{label:"资源地址"}},[n("ElInput",{attrs:{clearable:""},on:{input:function(r){return t.updateElementTask()},change:function(r){return t.updateElementTask()}},model:{value:t.scriptTaskForm.resource,callback:function(r){t.$set(t.scriptTaskForm,"resource",r)},expression:"scriptTaskForm.resource"}})],1),n("ElFormItem",{attrs:{label:"结果变量"}},[n("ElInput",{attrs:{clearable:""},on:{input:function(r){return t.updateElementTask()},change:function(r){return t.updateElementTask()}},model:{value:t.scriptTaskForm.resultVariable,callback:function(r){t.$set(t.scriptTaskForm,"resultVariable",r)},expression:"scriptTaskForm.resultVariable"}})],1)],1)},staticRenderFns$x=[];const __vue2_script$B={name:"ScriptTask",props:{id:String},data(){return{defaultTaskForm:{scriptFormat:"",script:"",resource:"",resultVariable:""},scriptTaskForm:{}}},watch:{id:{immediate:!0,handler(){this.bpmnElement=window.bpmnInstances.bpmnElement,this.$nextTick(()=>this.resetTaskForm())}}},beforeDestroy(){this.bpmnElement=null},methods:{resetTaskForm(){var t;for(const s in this.defaultTaskForm){const n=((t=this.bpmnElement)==null?void 0:t.businessObject[s])||this.defaultTaskForm[s];this.$set(this.scriptTaskForm,s,n)}this.$set(this.scriptTaskForm,"scriptType",this.scriptTaskForm.script?"inline":"external")},updateElementTask(){const t=Object.create(null);t.scriptFormat=this.scriptTaskForm.scriptFormat||null,t.resultVariable=this.scriptTaskForm.resultVariable||null,this.scriptTaskForm.scriptType==="inline"?(t.script=this.scriptTaskForm.script||null,t.resource=null):(t.resource=this.scriptTaskForm.resource||null,t.script=null),window.bpmnInstances.modeling.updateProperties(this.bpmnElement,t)}}},__cssModules$B={};var __component__$B=normalizeComponent(__vue2_script$B,render$x,staticRenderFns$x,!1,__vue2_injectStyles$B,null,null,null);function __vue2_injectStyles$B(t){for(let s in __cssModules$B)this[s]=__cssModules$B[s]}const ScriptTask=function(){return __component__$B.exports}();var render$w=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticStyle:{"margin-top":"16px"}},[n("ElFormItem",{attrs:{label:"消息实例"}},[n("div",{staticStyle:{display:"flex","flex-wrap":"nowrap","align-items":"center","justify-content":"space-between"}},[n("ElSelect",{on:{change:t.updateTaskMessage},model:{value:t.bindMessageId,callback:function(r){t.bindMessageId=r},expression:"bindMessageId"}},t._l(Object.keys(t.messageMap),function(r){return n("ElOption",{key:r,attrs:{value:r,label:t.messageMap[r]}})}),1),n("ElButton",{staticStyle:{"margin-left":"8px"},attrs:{size:"mini",type:"primary",icon:"el-icon-plus"},on:{click:t.openMessageModel}})],1)]),n("ElementDialog",{attrs:{visible:t.messageModelVisible,"close-on-click-modal":!1,title:"创建新消息",width:"400px","append-to-body":"","destroy-on-close":""},on:{"update:visible":function(r){t.messageModelVisible=r}},scopedSlots:t._u([{key:"footer",fn:function(){return[n("ElButton",{attrs:{size:"mini",type:"primary"},on:{click:t.createNewMessage}},[t._v("确 认")])]},proxy:!0}])},[n("ElForm",{attrs:{model:t.newMessageForm,size:"mini","label-width":"90px"},nativeOn:{submit:function(r){r.preventDefault()}}},[n("ElFormItem",{attrs:{label:"消息ID"}},[n("ElInput",{attrs:{clearable:""},model:{value:t.newMessageForm.id,callback:function(r){t.$set(t.newMessageForm,"id",r)},expression:"newMessageForm.id"}})],1),n("ElFormItem",{attrs:{label:"消息名称"}},[n("ElInput",{attrs:{clearable:""},model:{value:t.newMessageForm.name,callback:function(r){t.$set(t.newMessageForm,"name",r)},expression:"newMessageForm.name"}})],1)],1)],1)],1)},staticRenderFns$w=[];const __vue2_script$A={name:"ReceiveTask",props:{id:String},data(){return{bindMessageId:"",newMessageForm:{},messageMap:{},messageModelVisible:!1}},watch:{id:{immediate:!0,handler(){this.$nextTick(()=>this.getBindMessage())}}},created(){this.bpmnMessageRefsMap=Object.create(null),this.bpmnRootElements=window.bpmnInstances.modeler.getDefinitions().rootElements,this.bpmnRootElements.filter(t=>t.$type==="bpmn:Message").forEach(t=>{this.bpmnMessageRefsMap[t.id]=t,this.$set(this.messageMap,t.id,t.name)}),this.$set(this.messageMap,"-1","无")},beforeDestroy(){this.bpmnElement=null},methods:{getBindMessage(){var t,s;this.bpmnElement=window.bpmnInstances.bpmnElement,this.bindMessageId=((s=(t=this.bpmnElement.businessObject)==null?void 0:t.messageRef)==null?void 0:s.id)||"-1"},openMessageModel(){this.messageModelVisible=!0,this.newMessageForm={}},createNewMessage(){if(this.messageMap[this.newMessageForm.id]){this.$message.error("该消息已存在,请修改id后重新保存");return}const t=window.bpmnInstances.moddle.create("bpmn:Message",this.newMessageForm);this.bpmnRootElements.push(t),this.$set(this.messageMap,this.newMessageForm.id,this.newMessageForm.name),this.bpmnMessageRefsMap[this.newMessageForm.id]=t,this.messageModelVisible=!1},updateTaskMessage(t){t==="-1"?window.bpmnInstances.modeling.updateProperties(this.bpmnElement,{messageRef:null}):window.bpmnInstances.modeling.updateProperties(this.bpmnElement,{messageRef:this.bpmnMessageRefsMap[t]})}}},__cssModules$A={};var __component__$A=normalizeComponent(__vue2_script$A,render$w,staticRenderFns$w,!1,__vue2_injectStyles$A,null,null,null);function __vue2_injectStyles$A(t){for(let s in __cssModules$A)this[s]=__cssModules$A[s]}const ReceiveTask=function(){return __component__$A.exports}();var render$v=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"panel-tab__content"},[n("ElForm",{attrs:{size:"mini","label-width":"90px"},nativeOn:{submit:function(r){r.preventDefault()}}},[n("ElFormItem",{attrs:{label:"异步延续"}},[n("ElCheckbox",{attrs:{label:"异步前"},on:{change:t.changeTaskAsync},model:{value:t.taskConfigForm.asyncBefore,callback:function(r){t.$set(t.taskConfigForm,"asyncBefore",r)},expression:"taskConfigForm.asyncBefore"}}),n("ElCheckbox",{attrs:{label:"异步后"},on:{change:t.changeTaskAsync},model:{value:t.taskConfigForm.asyncAfter,callback:function(r){t.$set(t.taskConfigForm,"asyncAfter",r)},expression:"taskConfigForm.asyncAfter"}}),t.taskConfigForm.asyncAfter||t.taskConfigForm.asyncBefore?n("ElCheckbox",{attrs:{label:"排除"},on:{change:t.changeTaskAsync},model:{value:t.taskConfigForm.exclusive,callback:function(r){t.$set(t.taskConfigForm,"exclusive",r)},expression:"taskConfigForm.exclusive"}}):t._e()],1),n(t.witchTaskComponent,t._b({tag:"Component"},"Component",t.$props,!1))],1)],1)},staticRenderFns$v=[];const __vue2_script$z={name:"ElementTaskConfig",components:{UserTask,ScriptTask,ReceiveTask},props:{id:String,type:String},data(){return{taskConfigForm:{asyncAfter:!1,asyncBefore:!1,exclusive:!1},witchTaskComponent:"",installedComponent:{UserTask:"UserTask",ScriptTask:"ScriptTask",ReceiveTask:"ReceiveTask"}}},watch:{id:{immediate:!0,handler(){var t,s,n,r,a,o;this.bpmnElement=window.bpmnInstances.bpmnElement,this.taskConfigForm.asyncBefore=(s=(t=this.bpmnElement)==null?void 0:t.businessObject)==null?void 0:s.asyncBefore,this.taskConfigForm.asyncAfter=(r=(n=this.bpmnElement)==null?void 0:n.businessObject)==null?void 0:r.asyncAfter,this.taskConfigForm.exclusive=(o=(a=this.bpmnElement)==null?void 0:a.businessObject)==null?void 0:o.exclusive}},type:{immediate:!0,handler(){this.witchTaskComponent=this.installedComponent[this.type]}}},methods:{changeTaskAsync(){!this.taskConfigForm.asyncBefore&&!this.taskConfigForm.asyncAfter&&(this.taskConfigForm.exclusive=!1),window.bpmnInstances.modeling.updateProperties(window.bpmnInstances.bpmnElement,f({},this.taskConfigForm))}}},__cssModules$z={};var __component__$z=normalizeComponent(__vue2_script$z,render$v,staticRenderFns$v,!1,__vue2_injectStyles$z,null,null,null);function __vue2_injectStyles$z(t){for(let s in __cssModules$z)this[s]=__cssModules$z[s]}const ElementTask=function(){return __component__$z.exports}();var render$u=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"panel-tab__content"},[n("ElForm",{attrs:{size:"mini","label-width":"90px"},nativeOn:{submit:function(r){r.preventDefault()}}},[n("ElFormItem",{attrs:{label:"回路特性"}},[n("ElSelect",{on:{change:t.changeLoopCharacteristicsType},model:{value:t.loopCharacteristics,callback:function(r){t.loopCharacteristics=r},expression:"loopCharacteristics"}},[n("ElOption",{attrs:{label:"并行多重事件",value:"ParallelMultiInstance"}}),n("ElOption",{attrs:{label:"时序多重事件",value:"SequentialMultiInstance"}}),n("ElOption",{attrs:{label:"循环事件",value:"StandardLoop"}}),n("ElOption",{attrs:{label:"无",value:"Null"}})],1)],1),t.loopCharacteristics==="ParallelMultiInstance"||t.loopCharacteristics==="SequentialMultiInstance"?[n("ElFormItem",{key:"loopCardinality",attrs:{label:"循环基数"}},[n("ElInput",{attrs:{clearable:""},on:{change:t.updateLoopCardinality},model:{value:t.loopInstanceForm.loopCardinality,callback:function(r){t.$set(t.loopInstanceForm,"loopCardinality",r)},expression:"loopInstanceForm.loopCardinality"}})],1),n("ElFormItem",{key:"collection",attrs:{label:"集合"}},[n("ElInput",{attrs:{clearable:""},on:{change:t.updateLoopBase},model:{value:t.loopInstanceForm.collection,callback:function(r){t.$set(t.loopInstanceForm,"collection",r)},expression:"loopInstanceForm.collection"}})],1),n("ElFormItem",{key:"elementVariable",attrs:{label:"元素变量"}},[n("ElInput",{attrs:{clearable:""},on:{change:t.updateLoopBase},model:{value:t.loopInstanceForm.elementVariable,callback:function(r){t.$set(t.loopInstanceForm,"elementVariable",r)},expression:"loopInstanceForm.elementVariable"}})],1),n("ElFormItem",{key:"completionCondition",attrs:{label:"完成条件"}},[n("ElInput",{attrs:{clearable:""},on:{change:t.updateLoopCondition},model:{value:t.loopInstanceForm.completionCondition,callback:function(r){t.$set(t.loopInstanceForm,"completionCondition",r)},expression:"loopInstanceForm.completionCondition"}})],1),n("ElFormItem",{key:"async",attrs:{label:"异步状态"}},[n("ElCheckbox",{attrs:{label:"异步前"},on:{change:function(r){return t.updateLoopAsync("asyncBefore")}},model:{value:t.loopInstanceForm.asyncBefore,callback:function(r){t.$set(t.loopInstanceForm,"asyncBefore",r)},expression:"loopInstanceForm.asyncBefore"}}),n("ElCheckbox",{attrs:{label:"异步后"},on:{change:function(r){return t.updateLoopAsync("asyncAfter")}},model:{value:t.loopInstanceForm.asyncAfter,callback:function(r){t.$set(t.loopInstanceForm,"asyncAfter",r)},expression:"loopInstanceForm.asyncAfter"}}),t.loopInstanceForm.asyncAfter||t.loopInstanceForm.asyncBefore?n("ElCheckbox",{attrs:{label:"排除"},on:{change:function(r){return t.updateLoopAsync("exclusive")}},model:{value:t.loopInstanceForm.exclusive,callback:function(r){t.$set(t.loopInstanceForm,"exclusive",r)},expression:"loopInstanceForm.exclusive"}}):t._e()],1),t.loopInstanceForm.asyncAfter||t.loopInstanceForm.asyncBefore?n("ElFormItem",{key:"timeCycle",attrs:{label:"重试周期",prop:"timeCycle"}},[n("ElInput",{attrs:{clearable:""},on:{change:t.updateLoopTimeCycle},model:{value:t.loopInstanceForm.timeCycle,callback:function(r){t.$set(t.loopInstanceForm,"timeCycle",r)},expression:"loopInstanceForm.timeCycle"}})],1):t._e()]:t._e()],2)],1)},staticRenderFns$u=[];const __vue2_script$y={name:"ElementMultiInstance",inject:{prefix:"prefix"},props:{businessObject:Object},data(){return{loopCharacteristics:"",defaultLoopInstanceForm:{completionCondition:"",loopCardinality:"",extensionElements:[],asyncAfter:!1,asyncBefore:!1,exclusive:!1},loopInstanceForm:{}}},watch:{businessObject:{immediate:!0,handler(t){this.bpmnElement=window.bpmnInstances.bpmnElement,this.getElementLoop(t)}}},beforeDestroy(){this.multiLoopInstance=null,this.bpmnElement=null},methods:{getElementLoop(t){var s,n,r,a,o,l;if(!t.loopCharacteristics){this.loopCharacteristics="Null",this.loopInstanceForm={};return}if(t.loopCharacteristics.$type==="bpmn:StandardLoopCharacteristics"){this.loopCharacteristics="StandardLoop",this.loopInstanceForm={};return}t.loopCharacteristics.isSequential?this.loopCharacteristics="SequentialMultiInstance":this.loopCharacteristics="ParallelMultiInstance",this.loopInstanceForm=S(f(f({},this.defaultLoopInstanceForm),t.loopCharacteristics),{completionCondition:(r=(n=(s=t.loopCharacteristics)==null?void 0:s.completionCondition)==null?void 0:n.body)!=null?r:"",loopCardinality:(l=(o=(a=t.loopCharacteristics)==null?void 0:a.loopCardinality)==null?void 0:o.body)!=null?l:""}),this.multiLoopInstance=window.bpmnInstances.bpmnElement.businessObject.loopCharacteristics,t.loopCharacteristics.extensionElements&&t.loopCharacteristics.extensionElements.values&&t.loopCharacteristics.extensionElements.values.length&&this.$set(this.loopInstanceForm,"timeCycle",t.loopCharacteristics.extensionElements.values[0].body)},changeLoopCharacteristicsType(t){if(t==="Null"){window.bpmnInstances.modeling.updateProperties(this.bpmnElement,{loopCharacteristics:null});return}if(t==="StandardLoop"){const s=window.bpmnInstances.moddle.create("bpmn:StandardLoopCharacteristics");window.bpmnInstances.modeling.updateProperties(this.bpmnElement,{loopCharacteristics:s}),this.multiLoopInstance=null;return}t==="SequentialMultiInstance"?this.multiLoopInstance=window.bpmnInstances.moddle.create("bpmn:MultiInstanceLoopCharacteristics",{isSequential:!0}):this.multiLoopInstance=window.bpmnInstances.moddle.create("bpmn:MultiInstanceLoopCharacteristics"),window.bpmnInstances.modeling.updateProperties(this.bpmnElement,{loopCharacteristics:this.multiLoopInstance})},updateLoopCardinality(t){let s=null;t&&t.length&&(s=window.bpmnInstances.moddle.create("bpmn:FormalExpression",{body:t})),window.bpmnInstances.modeling.updateModdleProperties(this.bpmnElement,this.multiLoopInstance,{loopCardinality:s})},updateLoopCondition(t){let s=null;t&&t.length&&(s=window.bpmnInstances.moddle.create("bpmn:FormalExpression",{body:t})),window.bpmnInstances.modeling.updateModdleProperties(this.bpmnElement,this.multiLoopInstance,{completionCondition:s})},updateLoopTimeCycle(t){const s=window.bpmnInstances.moddle.create("bpmn:ExtensionElements",{values:[window.bpmnInstances.moddle.create(`${this.prefix}:FailedJobRetryTimeCycle`,{body:t})]});window.bpmnInstances.modeling.updateModdleProperties(this.bpmnElement,this.multiLoopInstance,{extensionElements:s})},updateLoopBase(){window.bpmnInstances.modeling.updateModdleProperties(this.bpmnElement,this.multiLoopInstance,{collection:this.loopInstanceForm.collection||null,elementVariable:this.loopInstanceForm.elementVariable||null})},updateLoopAsync(t){const{asyncBefore:s,asyncAfter:n}=this.loopInstanceForm;let r=Object.create(null);!s&&!n?(this.$set(this.loopInstanceForm,"exclusive",!1),r={asyncBefore:!1,asyncAfter:!1,exclusive:!1,extensionElements:null}):r[t]=this.loopInstanceForm[t],window.bpmnInstances.modeling.updateModdleProperties(this.bpmnElement,this.multiLoopInstance,r)}}},__cssModules$y={};var __component__$y=normalizeComponent(__vue2_script$y,render$u,staticRenderFns$u,!1,__vue2_injectStyles$y,null,null,null);function __vue2_injectStyles$y(t){for(let s in __cssModules$y)this[s]=__cssModules$y[s]}const ElementMultiInstance=function(){return __component__$y.exports}();var render$t=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"panel-tab__content"},[n("ElForm",{attrs:{model:t.flowConditionForm,"label-width":"90px",size:"mini"},nativeOn:{submit:function(r){r.preventDefault()}}},[n("ElFormItem",{attrs:{label:"流转类型"}},[n("ElSelect",{on:{change:t.updateFlowType},model:{value:t.flowConditionForm.type,callback:function(r){t.$set(t.flowConditionForm,"type",r)},expression:"flowConditionForm.type"}},[n("ElOption",{attrs:{label:"普通流转路径",value:"normal"}}),n("ElOption",{attrs:{label:"默认流转路径",value:"default"}}),n("ElOption",{attrs:{label:"条件流转路径",value:"condition"}})],1)],1),t.flowConditionForm.type==="condition"?n("ElFormItem",{key:"condition",attrs:{label:"条件格式"}},[n("ElSelect",{model:{value:t.flowConditionForm.conditionType,callback:function(r){t.$set(t.flowConditionForm,"conditionType",r)},expression:"flowConditionForm.conditionType"}},[n("ElOption",{attrs:{label:"表达式",value:"expression"}}),n("ElOption",{attrs:{label:"脚本",value:"script"}})],1)],1):t._e(),t.flowConditionForm.conditionType&&t.flowConditionForm.conditionType==="expression"?n("ElFormItem",{key:"express",attrs:{label:"表达式"}},[n("ElInput",{attrs:{clearable:""},on:{change:t.updateFlowCondition},model:{value:t.flowConditionForm.body,callback:function(r){t.$set(t.flowConditionForm,"body",r)},expression:"flowConditionForm.body"}})],1):t._e(),t.flowConditionForm.conditionType&&t.flowConditionForm.conditionType==="script"?[n("ElFormItem",{key:"language",attrs:{label:"脚本语言"}},[n("ElInput",{attrs:{clearable:""},on:{change:t.updateFlowCondition},model:{value:t.flowConditionForm.language,callback:function(r){t.$set(t.flowConditionForm,"language",r)},expression:"flowConditionForm.language"}})],1),n("ElFormItem",{key:"scriptType",attrs:{label:"脚本类型"}},[n("ElSelect",{model:{value:t.flowConditionForm.scriptType,callback:function(r){t.$set(t.flowConditionForm,"scriptType",r)},expression:"flowConditionForm.scriptType"}},[n("ElOption",{attrs:{label:"内联脚本",value:"inlineScript"}}),n("ElOption",{attrs:{label:"外部脚本",value:"externalScript"}})],1)],1),t.flowConditionForm.scriptType==="inlineScript"?n("ElFormItem",{key:"body",attrs:{label:"脚本"}},[n("ElInput",{attrs:{type:"textarea",clearable:""},on:{change:t.updateFlowCondition},model:{value:t.flowConditionForm.body,callback:function(r){t.$set(t.flowConditionForm,"body",r)},expression:"flowConditionForm.body"}})],1):t._e(),t.flowConditionForm.scriptType==="externalScript"?n("ElFormItem",{key:"resource",attrs:{label:"资源地址"}},[n("ElInput",{attrs:{clearable:""},on:{change:t.updateFlowCondition},model:{value:t.flowConditionForm.resource,callback:function(r){t.$set(t.flowConditionForm,"resource",r)},expression:"flowConditionForm.resource"}})],1):t._e()]:t._e()],2)],1)},staticRenderFns$t=[];const __vue2_script$x={name:"FlowCondition",props:{businessObject:Object},data(){return{flowConditionForm:{}}},watch:{businessObject:{immediate:!0,handler(){this.$nextTick(()=>this.resetFlowCondition())}}},beforeDestroy(){this.bpmnElement=null,this.bpmnElementSource=null,this.bpmnElementSourceRef=null},methods:{resetFlowCondition(){if(this.bpmnElement=window.bpmnInstances.bpmnElement,this.bpmnElementSource=this.bpmnElement.source,this.bpmnElementSourceRef=this.bpmnElement.businessObject.sourceRef,this.bpmnElementSourceRef&&this.bpmnElementSourceRef.default&&this.bpmnElementSourceRef.default.id===this.bpmnElement.id)this.flowConditionForm={type:"default"};else if(!this.bpmnElement.businessObject.conditionExpression)this.flowConditionForm={type:"normal"};else{const t=this.bpmnElement.businessObject.conditionExpression;if(this.flowConditionForm=S(f({},t),{type:"condition"}),this.flowConditionForm.resource){this.$set(this.flowConditionForm,"conditionType","script"),this.$set(this.flowConditionForm,"scriptType","externalScript");return}if(t.language){this.$set(this.flowConditionForm,"conditionType","script"),this.$set(this.flowConditionForm,"scriptType","inlineScript");return}this.$set(this.flowConditionForm,"conditionType","expression")}},updateFlowType(t){if(t==="condition"){this.flowConditionRef=window.bpmnInstances.moddle.create("bpmn:FormalExpression"),window.bpmnInstances.modeling.updateProperties(this.bpmnElement,{conditionExpression:this.flowConditionRef});return}if(t==="default"){window.bpmnInstances.modeling.updateProperties(this.bpmnElement,{conditionExpression:null}),window.bpmnInstances.modeling.updateProperties(this.bpmnElementSource,{default:this.bpmnElement});return}this.bpmnElementSourceRef.default&&this.bpmnElementSourceRef.default.id===this.bpmnElement.id&&window.bpmnInstances.modeling.updateProperties(this.bpmnElementSource,{default:null}),window.bpmnInstances.modeling.updateProperties(this.bpmnElement,{conditionExpression:null})},updateFlowCondition(){const{conditionType:t,scriptType:s,body:n,resource:r,language:a}=this.flowConditionForm;let o;t==="expression"?o=window.bpmnInstances.moddle.create("bpmn:FormalExpression",{body:n}):s==="inlineScript"?(o=window.bpmnInstances.moddle.create("bpmn:FormalExpression",{body:n,language:a}),this.$set(this.flowConditionForm,"resource","")):(this.$set(this.flowConditionForm,"body",""),o=window.bpmnInstances.moddle.create("bpmn:FormalExpression",{resource:r,language:a})),window.bpmnInstances.modeling.updateProperties(this.bpmnElement,{conditionExpression:o})}}},__cssModules$x={};var __component__$x=normalizeComponent(__vue2_script$x,render$t,staticRenderFns$t,!1,__vue2_injectStyles$x,null,null,null);function __vue2_injectStyles$x(t){for(let s in __cssModules$x)this[s]=__cssModules$x[s]}const FlowCondition=function(){return __component__$x.exports}();var render$s=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"panel-tab__content"},[n("div",{staticClass:"panel-tab__content--title"},[t._m(0),n("ElButton",{attrs:{size:"mini",type:"primary",icon:"el-icon-plus"},on:{click:function(r){return t.openModel("message")}}},[t._v("创建新消息")])],1),n("ElTable",{attrs:{data:t.messageList,size:"mini",border:""}},[n("ElTableColumn",{attrs:{type:"index",label:"序号",width:"60px"}}),n("ElTableColumn",{attrs:{label:"消息ID",prop:"id","max-width":"300px","show-overflow-tooltip":""}}),n("ElTableColumn",{attrs:{label:"消息名称",prop:"name","max-width":"300px","show-overflow-tooltip":""}})],1),n("div",{staticClass:"panel-tab__content--title",staticStyle:{"margin-top":"8px","padding-top":"8px","border-top":"1px solid #eee"}},[t._m(1),n("ElButton",{attrs:{size:"mini",type:"primary",icon:"el-icon-plus"},on:{click:function(r){return t.openModel("signal")}}},[t._v("创建新信号")])],1),n("ElTable",{attrs:{data:t.signalList,size:"mini",border:""}},[n("ElTableColumn",{attrs:{type:"index",label:"序号",width:"60px"}}),n("ElTableColumn",{attrs:{label:"信号ID",prop:"id","max-width":"300px","show-overflow-tooltip":""}}),n("ElTableColumn",{attrs:{label:"信号名称",prop:"name","max-width":"300px","show-overflow-tooltip":""}})],1),n("ElementDialog",{attrs:{visible:t.modelVisible,title:t.modelConfig.title,"close-on-click-modal":!1,width:"400px","append-to-body":"","destroy-on-close":""},on:{"update:visible":function(r){t.modelVisible=r}},scopedSlots:t._u([{key:"footer",fn:function(){return[n("ElButton",{attrs:{size:"mini"},on:{click:function(r){t.modelVisible=!1}}},[t._v("取 消")]),n("ElButton",{attrs:{size:"mini",type:"primary"},on:{click:t.addNewObject}},[t._v("保 存")])]},proxy:!0}])},[n("ElForm",{attrs:{model:t.modelObjectForm,size:"mini","label-width":"90px"},nativeOn:{submit:function(r){r.preventDefault()}}},[n("ElFormItem",{attrs:{label:t.modelConfig.idLabel}},[n("ElInput",{attrs:{clearable:""},model:{value:t.modelObjectForm.id,callback:function(r){t.$set(t.modelObjectForm,"id",r)},expression:"modelObjectForm.id"}})],1),n("ElFormItem",{attrs:{label:t.modelConfig.nameLabel}},[n("ElInput",{attrs:{clearable:""},model:{value:t.modelObjectForm.name,callback:function(r){t.$set(t.modelObjectForm,"name",r)},expression:"modelObjectForm.name"}})],1)],1)],1)],1)},staticRenderFns$s=[function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("span",[n("i",{staticClass:"el-icon-menu",staticStyle:{"margin-right":"8px",color:"#555"}}),t._v("消息列表")])},function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("span",[n("i",{staticClass:"el-icon-menu",staticStyle:{"margin-right":"8px",color:"#555"}}),t._v("信号列表")])}];const __vue2_script$w={name:"SignalAndMessage",data(){return{signalList:[],messageList:[],modelVisible:!1,modelType:"",modelObjectForm:{}}},computed:{modelConfig(){return this.modelType==="message"?{title:"创建消息",idLabel:"消息ID",nameLabel:"消息名称"}:{title:"创建信号",idLabel:"信号ID",nameLabel:"信号名称"}}},mounted(){this.initDataList()},methods:{initDataList(){this.rootElements=window.bpmnInstances.modeler.getDefinitions().rootElements,this.messageIdMap={},this.signalIdMap={},this.messageList=[],this.signalList=[],this.rootElements.forEach(t=>{t.$type==="bpmn:Message"&&(this.messageIdMap[t.id]=!0,this.messageList.push(f({},t))),t.$type==="bpmn:Signal"&&(this.signalIdMap[t.id]=!0,this.signalList.push(f({},t)))})},openModel(t){this.modelType=t,this.modelObjectForm={},this.modelVisible=!0},addNewObject(){if(this.modelType==="message"){if(this.messageIdMap[this.modelObjectForm.id])return this.$message.error("该消息已存在,请修改id后重新保存");const t=window.bpmnInstances.moddle.create("bpmn:Message",this.modelObjectForm);this.rootElements.push(t)}else{if(this.signalIdMap[this.modelObjectForm.id])return this.$message.error("该信号已存在,请修改id后重新保存");const t=window.bpmnInstances.moddle.create("bpmn:Signal",this.modelObjectForm);this.rootElements.push(t)}this.modelVisible=!1,this.initDataList()}}},__cssModules$w={};var __component__$w=normalizeComponent(__vue2_script$w,render$s,staticRenderFns$s,!1,__vue2_injectStyles$w,null,null,null);function __vue2_injectStyles$w(t){for(let s in __cssModules$w)this[s]=__cssModules$w[s]}const SignalAndMassage=function(){return __component__$w.exports}();function createListenerObject(t,s,n){const r=Object.create(null);switch(r.event=t.event,s&&(r.id=t.id),t.listenerType){case"scriptListener":r.script=createScriptObject(t,n);break;case"expressionListener":r.expression=t.expression;break;case"delegateExpressionListener":r.delegateExpression=t.delegateExpression;break;default:r.class=t.class}if(t.fields&&(r.fields=t.fields.map(a=>createFieldObject(a,n))),s&&t.event==="timeout"&&t.eventDefinitionType){const a=window.bpmnInstances.moddle.create("bpmn:FormalExpression",{body:t.eventTimeDefinitions}),o=window.bpmnInstances.moddle.create("bpmn:TimerEventDefinition",{id:`TimerEventDefinition_${uuid(8)}`,[`time${t.eventDefinitionType.replace(/^\S/,l=>l.toUpperCase())}`]:a});r.eventDefinitions=[o]}return window.bpmnInstances.moddle.create(`${n}:${s?"TaskListener":"ExecutionListener"}`,r)}function createFieldObject(t,s){const{name:n,fieldType:r,string:a,expression:o}=t,l=r==="string"?{name:n,string:a}:{name:n,expression:o};return window.bpmnInstances.moddle.create(`${s}:Field`,l)}function createScriptObject(t,s){const{scriptType:n,scriptFormat:r,value:a,resource:o}=t,l=n==="inlineScript"?{scriptFormat:r,value:a}:{scriptFormat:r,resource:o};return window.bpmnInstances.moddle.create(`${s}:Script`,l)}function updateElementExtensions(t,s){const n=window.bpmnInstances.moddle.create("bpmn:ExtensionElements",{values:s});window.bpmnInstances.modeling.updateProperties(t,{extensionElements:n})}function uuid(t=8,s){let n="";const r=s||"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";for(let a=t;a>0;--a)n+=r[Math.floor(Math.random()*r.length)];return n}function initListenerForm(t){let s=f({},t);if(t.script&&(s=S(f(f({},t),t.script),{scriptType:t.script.resource?"externalScript":"inlineScript"})),t.event==="timeout"&&t.eventDefinitions&&t.eventDefinitions.length){let n="";for(const r in t.eventDefinitions[0])console.log(t.eventDefinitions,r),r.indexOf("time")!==-1&&(n=r,s.eventDefinitionType=r.replace("time","").toLowerCase());console.log(n),s.eventTimeDefinitions=t.eventDefinitions[0][n].body}return s}function initListenerType(t){var n;let s;return t.class&&(s="classListener"),t.expression&&(s="expressionListener"),t.delegateExpression&&(s="delegateExpressionListener"),t.script&&(s="scriptListener"),S(f(f({},JSON.parse(JSON.stringify(t))),(n=t.script)!=null?n:{}),{listenerType:s})}const listenerType={classListener:"Java 类",expressionListener:"表达式",delegateExpressionListener:"代理表达式",scriptListener:"脚本"},eventType={create:"创建",assignment:"指派",complete:"完成",delete:"删除",update:"更新",timeout:"超时"},fieldType={string:"字符串",expression:"表达式"};var render$r=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"panel-tab__content"},[n("ElTable",{attrs:{data:t.elementListenersList,size:"mini",border:""}},[n("ElTableColumn",{attrs:{label:"序号",width:"50px",type:"index"}}),n("ElTableColumn",{attrs:{label:"事件类型","min-width":"100px",prop:"event"}}),n("ElTableColumn",{attrs:{label:"监听器类型","min-width":"100px","show-overflow-tooltip":"",formatter:function(r){return t.listenerTypeObject[r.listenerType]}}}),n("ElTableColumn",{attrs:{label:"操作",width:"90px"},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.row,o=r.$index;return[n("ElButton",{attrs:{size:"mini",type:"text"},on:{click:function(l){return t.openListenerForm(a,o)}}},[t._v("编辑")]),n("ElDivider",{attrs:{direction:"vertical"}}),n("ElButton",{staticStyle:{color:"#ff4d4f"},attrs:{size:"mini",type:"text"},on:{click:function(l){return t.removeListener(a,o)}}},[t._v("移除")])]}}])})],1),n("div",{staticClass:"element-drawer__button"},[n("ElButton",{attrs:{size:"mini",type:"primary",icon:"el-icon-plus"},on:{click:function(r){return t.openListenerForm(null)}}},[t._v("添加监听器")])],1),n("ElDrawer",{attrs:{visible:t.listenerFormModelVisible,title:"执行监听器",size:`${t.width}px`,"append-to-body":"","destroy-on-close":""},on:{"update:visible":function(r){t.listenerFormModelVisible=r}}},[n("ElForm",{ref:"listenerFormRef",attrs:{size:"mini",model:t.listenerForm,"label-width":"96px"},nativeOn:{submit:function(r){r.preventDefault()}}},[n("ElFormItem",{attrs:{label:"事件类型",prop:"event",rules:{required:!0,trigger:["blur","change"]}}},[n("ElSelect",{model:{value:t.listenerForm.event,callback:function(r){t.$set(t.listenerForm,"event",r)},expression:"listenerForm.event"}},[n("ElOption",{attrs:{label:"start",value:"start"}}),n("ElOption",{attrs:{label:"end",value:"end"}})],1)],1),n("ElFormItem",{attrs:{label:"监听器类型",prop:"listenerType",rules:{required:!0,trigger:["blur","change"]}}},[n("ElSelect",{model:{value:t.listenerForm.listenerType,callback:function(r){t.$set(t.listenerForm,"listenerType",r)},expression:"listenerForm.listenerType"}},t._l(Object.keys(t.listenerTypeObject),function(r){return n("ElOption",{key:r,attrs:{label:t.listenerTypeObject[r],value:r}})}),1)],1),t.listenerForm.listenerType==="classListener"?n("ElFormItem",{key:"listener-class",attrs:{label:"Java类",prop:"class",rules:{required:!0,trigger:["blur","change"]}}},[n("ElInput",{attrs:{clearable:""},model:{value:t.listenerForm.class,callback:function(r){t.$set(t.listenerForm,"class",r)},expression:"listenerForm.class"}})],1):t._e(),t.listenerForm.listenerType==="expressionListener"?n("ElFormItem",{key:"listener-expression",attrs:{label:"表达式",prop:"expression",rules:{required:!0,trigger:["blur","change"]}}},[n("ElInput",{attrs:{clearable:""},model:{value:t.listenerForm.expression,callback:function(r){t.$set(t.listenerForm,"expression",r)},expression:"listenerForm.expression"}})],1):t._e(),t.listenerForm.listenerType==="delegateExpressionListener"?n("ElFormItem",{key:"listener-delegate",attrs:{label:"代理表达式",prop:"delegateExpression",rules:{required:!0,trigger:["blur","change"]}}},[n("ElInput",{attrs:{clearable:""},model:{value:t.listenerForm.delegateExpression,callback:function(r){t.$set(t.listenerForm,"delegateExpression",r)},expression:"listenerForm.delegateExpression"}})],1):t._e(),t.listenerForm.listenerType==="scriptListener"?[n("ElFormItem",{key:"listener-script-format",attrs:{label:"脚本格式",prop:"scriptFormat",rules:{required:!0,trigger:["blur","change"],message:"请填写脚本格式"}}},[n("ElInput",{attrs:{clearable:""},model:{value:t.listenerForm.scriptFormat,callback:function(r){t.$set(t.listenerForm,"scriptFormat",r)},expression:"listenerForm.scriptFormat"}})],1),n("ElFormItem",{key:"listener-script-type",attrs:{label:"脚本类型",prop:"scriptType",rules:{required:!0,trigger:["blur","change"],message:"请选择脚本类型"}}},[n("ElSelect",{model:{value:t.listenerForm.scriptType,callback:function(r){t.$set(t.listenerForm,"scriptType",r)},expression:"listenerForm.scriptType"}},[n("ElOption",{attrs:{label:"内联脚本",value:"inlineScript"}}),n("ElOption",{attrs:{label:"外部脚本",value:"externalScript"}})],1)],1),t.listenerForm.scriptType==="inlineScript"?n("ElFormItem",{key:"listener-script",attrs:{label:"脚本内容",prop:"value",rules:{required:!0,trigger:["blur","change"],message:"请填写脚本内容"}}},[n("ElInput",{attrs:{clearable:""},model:{value:t.listenerForm.value,callback:function(r){t.$set(t.listenerForm,"value",r)},expression:"listenerForm.value"}})],1):t._e(),t.listenerForm.scriptType==="externalScript"?n("ElFormItem",{key:"listener-resource",attrs:{label:"资源地址",prop:"resource",rules:{required:!0,trigger:["blur","change"],message:"请填写资源地址"}}},[n("ElInput",{attrs:{clearable:""},model:{value:t.listenerForm.resource,callback:function(r){t.$set(t.listenerForm,"resource",r)},expression:"listenerForm.resource"}})],1):t._e()]:t._e()],2),n("ElDivider"),n("p",{staticClass:"listener-filed__title"},[n("span",[n("i",{staticClass:"el-icon-menu"}),t._v("注入字段:")]),n("ElButton",{attrs:{size:"mini",type:"primary"},on:{click:function(r){return t.openListenerFieldForm(null)}}},[t._v("添加字段")])],1),n("ElTable",{staticStyle:{flex:"none"},attrs:{data:t.fieldsListOfListener,size:"mini","max-height":"240",border:"",fit:""}},[n("ElTableColumn",{attrs:{label:"序号",width:"50px",type:"index"}}),n("ElTableColumn",{attrs:{label:"字段名称","min-width":"100px",prop:"name"}}),n("ElTableColumn",{attrs:{label:"字段类型","min-width":"80px","show-overflow-tooltip":"",formatter:function(r){return t.fieldTypeObject[r.fieldType]}}}),n("ElTableColumn",{attrs:{label:"字段值/表达式","min-width":"100px","show-overflow-tooltip":"",formatter:function(r){return r.string||r.expression}}}),n("ElTableColumn",{attrs:{label:"操作",width:"100px"},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.row,o=r.$index;return[n("ElButton",{attrs:{size:"mini",type:"text"},on:{click:function(l){return t.openListenerFieldForm(a,o)}}},[t._v("编辑")]),n("ElDivider",{attrs:{direction:"vertical"}}),n("ElButton",{staticStyle:{color:"#ff4d4f"},attrs:{size:"mini",type:"text"},on:{click:function(l){return t.removeListenerField(a,o)}}},[t._v("移除")])]}}])})],1),n("div",{staticClass:"element-drawer__button"},[n("ElButton",{attrs:{size:"mini"},on:{click:function(r){t.listenerFormModelVisible=!1}}},[t._v("取 消")]),n("ElButton",{attrs:{size:"mini",type:"primary"},on:{click:t.saveListenerConfig}},[t._v("保 存")])],1)],1),n("ElementDialog",{attrs:{title:"字段配置",visible:t.listenerFieldFormModelVisible,width:"600px","append-to-body":"","destroy-on-close":""},on:{"update:visible":function(r){t.listenerFieldFormModelVisible=r}},scopedSlots:t._u([{key:"footer",fn:function(){return[n("ElButton",{attrs:{size:"mini"},on:{click:function(r){t.listenerFieldFormModelVisible=!1}}},[t._v("取 消")]),n("ElButton",{attrs:{size:"mini",type:"primary"},on:{click:t.saveListenerFiled}},[t._v("确 定")])]},proxy:!0}])},[n("ElForm",{ref:"listenerFieldFormRef",staticStyle:{height:"136px"},attrs:{model:t.listenerFieldForm,size:"mini","label-width":"96px"},nativeOn:{submit:function(r){r.preventDefault()}}},[n("ElFormItem",{attrs:{label:"字段名称:",prop:"name",rules:{required:!0,trigger:["blur","change"]}}},[n("ElInput",{attrs:{clearable:""},model:{value:t.listenerFieldForm.name,callback:function(r){t.$set(t.listenerFieldForm,"name",r)},expression:"listenerFieldForm.name"}})],1),n("ElFormItem",{attrs:{label:"字段类型:",prop:"fieldType",rules:{required:!0,trigger:["blur","change"]}}},[n("ElSelect",{model:{value:t.listenerFieldForm.fieldType,callback:function(r){t.$set(t.listenerFieldForm,"fieldType",r)},expression:"listenerFieldForm.fieldType"}},t._l(Object.keys(t.fieldTypeObject),function(r){return n("ElOption",{key:r,attrs:{label:t.fieldTypeObject[r],value:r}})}),1)],1),t.listenerFieldForm.fieldType==="string"?n("ElFormItem",{key:"field-string",attrs:{label:"字段值:",prop:"string",rules:{required:!0,trigger:["blur","change"]}}},[n("ElInput",{attrs:{clearable:""},model:{value:t.listenerFieldForm.string,callback:function(r){t.$set(t.listenerFieldForm,"string",r)},expression:"listenerFieldForm.string"}})],1):t._e(),t.listenerFieldForm.fieldType==="expression"?n("ElFormItem",{key:"field-expression",attrs:{label:"表达式:",prop:"expression",rules:{required:!0,trigger:["blur","change"]}}},[n("ElInput",{attrs:{clearable:""},model:{value:t.listenerFieldForm.expression,callback:function(r){t.$set(t.listenerFieldForm,"expression",r)},expression:"listenerFieldForm.expression"}})],1):t._e()],1)],1)],1)},staticRenderFns$r=[];const __vue2_script$v={name:"ElementListeners",inject:{prefix:"prefix",width:"width"},props:{id:String},data(){return{elementListenersList:[],listenerForm:{},listenerFormModelVisible:!1,fieldsListOfListener:[],listenerFieldForm:{},listenerFieldFormModelVisible:!1,editingListenerIndex:-1,editingListenerFieldIndex:-1,listenerTypeObject:listenerType,fieldTypeObject:fieldType}},watch:{id:{immediate:!0,handler(t){t&&t.length&&this.$nextTick(()=>this.resetListenersList())}}},methods:{resetListenersList(){var t,s,n,r;this.bpmnElement=window.bpmnInstances.bpmnElement,this.otherExtensionList=[],this.bpmnElementListeners=(r=(n=(s=(t=this.bpmnElement.businessObject)==null?void 0:t.extensionElements)==null?void 0:s.values)==null?void 0:n.filter(a=>a.$type===`${this.prefix}:ExecutionListener`))!=null?r:[],this.elementListenersList=this.bpmnElementListeners.map(a=>initListenerType(a))},openListenerForm(t,s){t?(this.listenerForm=initListenerForm(t),this.editingListenerIndex=s):(this.listenerForm={},this.editingListenerIndex=-1),t&&t.fields?this.fieldsListOfListener=t.fields.map(n=>S(f({},n),{fieldType:n.string?"string":"expression"})):(this.fieldsListOfListener=[],this.$set(this.listenerForm,"fields",[])),this.listenerFormModelVisible=!0,this.$nextTick(()=>{this.$refs.listenerFormRef&&this.$refs.listenerFormRef.clearValidate()})},openListenerFieldForm(t,s){this.listenerFieldForm=t?JSON.parse(JSON.stringify(t)):{},this.editingListenerFieldIndex=t?s:-1,this.listenerFieldFormModelVisible=!0,this.$nextTick(()=>{this.$refs.listenerFieldFormRef&&this.$refs.listenerFieldFormRef.clearValidate()})},saveListenerFiled(){return v(this,null,function*(){(yield this.$refs.listenerFieldFormRef.validate())&&(this.editingListenerFieldIndex===-1?(this.fieldsListOfListener.push(this.listenerFieldForm),this.listenerForm.fields.push(this.listenerFieldForm)):(this.fieldsListOfListener.splice(this.editingListenerFieldIndex,1,this.listenerFieldForm),this.listenerForm.fields.splice(this.editingListenerFieldIndex,1,this.listenerFieldForm)),this.listenerFieldFormModelVisible=!1,this.$nextTick(()=>this.listenerFieldForm={}))})},removeListenerField(t,s){this.$confirm("确认移除该字段吗?","提示",{confirmButtonText:"确 认",cancelButtonText:"取 消"}).then(()=>{this.fieldsListOfListener.splice(s,1),this.listenerForm.fields.splice(s,1)}).catch(()=>console.info("操作取消"))},removeListener(t,s){this.$confirm("确认移除该监听器吗?","提示",{confirmButtonText:"确 认",cancelButtonText:"取 消"}).then(()=>{this.bpmnElementListeners.splice(s,1),this.elementListenersList.splice(s,1),updateElementExtensions(this.bpmnElement,this.otherExtensionList.concat(this.bpmnElementListeners))}).catch(()=>console.info("操作取消"))},saveListenerConfig(){return v(this,null,function*(){var n,r,a,o;if(!(yield this.$refs.listenerFormRef.validate()))return;const s=createListenerObject(this.listenerForm,!1,this.prefix);this.editingListenerIndex===-1?(this.bpmnElementListeners.push(s),this.elementListenersList.push(this.listenerForm)):(this.bpmnElementListeners.splice(this.editingListenerIndex,1,s),this.elementListenersList.splice(this.editingListenerIndex,1,this.listenerForm)),this.otherExtensionList=(o=(a=(r=(n=this.bpmnElement.businessObject)==null?void 0:n.extensionElements)==null?void 0:r.values)==null?void 0:a.filter(l=>l.$type!==`${this.prefix}:ExecutionListener`))!=null?o:[],updateElementExtensions(this.bpmnElement,this.otherExtensionList.concat(this.bpmnElementListeners)),this.listenerFormModelVisible=!1,this.listenerForm={}})}}},__cssModules$v={};var __component__$v=normalizeComponent(__vue2_script$v,render$r,staticRenderFns$r,!1,__vue2_injectStyles$v,null,null,null);function __vue2_injectStyles$v(t){for(let s in __cssModules$v)this[s]=__cssModules$v[s]}const ElementListeners=function(){return __component__$v.exports}();var render$q=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"panel-tab__content"},[n("ElTable",{attrs:{data:t.elementPropertyList,size:"mini","max-height":"240",border:"",fit:""}},[n("ElTableColumn",{attrs:{label:"序号",width:"50px",type:"index"}}),n("ElTableColumn",{attrs:{label:"属性名",prop:"name","min-width":"100px","show-overflow-tooltip":""}}),n("ElTableColumn",{attrs:{label:"属性值",prop:"value","min-width":"100px","show-overflow-tooltip":""}}),n("ElTableColumn",{attrs:{label:"操作",width:"90px"},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.row,o=r.$index;return[n("ElButton",{attrs:{size:"mini",type:"text"},on:{click:function(l){return t.openAttributesForm(a,o)}}},[t._v("编辑")]),n("ElDivider",{attrs:{direction:"vertical"}}),n("ElButton",{staticStyle:{color:"#ff4d4f"},attrs:{size:"mini",type:"text"},on:{click:function(l){return t.removeAttributes(a,o)}}},[t._v("移除")])]}}])})],1),n("div",{staticClass:"element-drawer__button"},[n("ElButton",{attrs:{size:"mini",type:"primary",icon:"el-icon-plus"},on:{click:function(r){return t.openAttributesForm(null,-1)}}},[t._v("添加属性")])],1),n("ElementDialog",{attrs:{visible:t.propertyFormModelVisible,title:"属性配置",width:"600px","append-to-body":"","destroy-on-close":""},on:{"update:visible":function(r){t.propertyFormModelVisible=r}},scopedSlots:t._u([{key:"footer",fn:function(){return[n("ElButton",{attrs:{size:"mini"},on:{click:function(r){t.propertyFormModelVisible=!1}}},[t._v("取 消")]),n("ElButton",{attrs:{size:"mini",type:"primary"},on:{click:t.saveAttribute}},[t._v("确 定")])]},proxy:!0}])},[n("ElForm",{ref:"attributeFormRef",attrs:{model:t.propertyForm,"label-width":"80px",size:"mini"},nativeOn:{submit:function(r){r.preventDefault()}}},[n("ElFormItem",{attrs:{label:"属性名:",prop:"name"}},[n("ElInput",{attrs:{clearable:""},model:{value:t.propertyForm.name,callback:function(r){t.$set(t.propertyForm,"name",r)},expression:"propertyForm.name"}})],1),n("ElFormItem",{attrs:{label:"属性值:",prop:"value"}},[n("ElInput",{attrs:{clearable:""},model:{value:t.propertyForm.value,callback:function(r){t.$set(t.propertyForm,"value",r)},expression:"propertyForm.value"}})],1)],1)],1)],1)},staticRenderFns$q=[];const __vue2_script$u={name:"ElementProperties",inject:{prefix:"prefix",width:"width"},props:{id:String},data(){return{elementPropertyList:[],propertyForm:{},editingPropertyIndex:-1,propertyFormModelVisible:!1}},watch:{id:{immediate:!0,handler(t){t&&t.length&&this.resetAttributesList()}}},methods:{resetAttributesList(){var t,s,n,r,a;this.bpmnElement=window.bpmnInstances.bpmnElement,this.otherExtensionList=[],this.bpmnElementProperties=(r=(n=(s=(t=this.bpmnElement.businessObject)==null?void 0:t.extensionElements)==null?void 0:s.values)==null?void 0:n.filter(o=>(o.$type!==`${this.prefix}:Properties`&&this.otherExtensionList.push(o),o.$type===`${this.prefix}:Properties`)))!=null?r:[],this.bpmnElementPropertyList=this.bpmnElementProperties.reduce((o,l)=>o.concat(l.values),[]),this.elementPropertyList=JSON.parse(JSON.stringify((a=this.bpmnElementPropertyList)!=null?a:[]))},openAttributesForm(t,s){this.editingPropertyIndex=s,this.propertyForm=s===-1?{}:JSON.parse(JSON.stringify(t)),this.propertyFormModelVisible=!0,this.$nextTick(()=>{this.$refs.attributeFormRef&&this.$refs.attributeFormRef.clearValidate()})},removeAttributes(t,s){this.$confirm("确认移除该属性吗?","提示",{confirmButtonText:"确 认",cancelButtonText:"取 消"}).then(()=>{this.elementPropertyList.splice(s,1),this.bpmnElementPropertyList.splice(s,1);const n=window.bpmnInstances.moddle.create(`${this.prefix}:Properties`,{values:this.bpmnElementPropertyList});this.updateElementExtensions(n),this.resetAttributesList()}).catch(()=>console.info("操作取消"))},saveAttribute(){const{name:t,value:s}=this.propertyForm;if(console.log(this.bpmnElementPropertyList),this.editingPropertyIndex!==-1)window.bpmnInstances.modeling.updateModdleProperties(this.bpmnElement,this.bpmnElementPropertyList[this.editingPropertyIndex],{name:t,value:s});else{const n=window.bpmnInstances.moddle.create(`${this.prefix}:Property`,{name:t,value:s}),r=window.bpmnInstances.moddle.create(`${this.prefix}:Properties`,{values:this.bpmnElementPropertyList.concat([n])});this.updateElementExtensions(r)}this.propertyFormModelVisible=!1,this.resetAttributesList()},updateElementExtensions(t){const s=window.bpmnInstances.moddle.create("bpmn:ExtensionElements",{values:this.otherExtensionList.concat([t])});window.bpmnInstances.modeling.updateProperties(this.bpmnElement,{extensionElements:s})}}},__cssModules$u={};var __component__$u=normalizeComponent(__vue2_script$u,render$q,staticRenderFns$q,!1,__vue2_injectStyles$u,null,null,null);function __vue2_injectStyles$u(t){for(let s in __cssModules$u)this[s]=__cssModules$u[s]}const ElementProperties=function(){return __component__$u.exports}();var render$p=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"panel-tab__content"},[n("ElForm",{attrs:{size:"mini","label-width":"80px"},nativeOn:{submit:function(r){r.preventDefault()}}},[n("ElFormItem",{attrs:{label:"表单标识"}},[n("ElInput",{attrs:{clearable:""},on:{change:t.updateElementFormKey},model:{value:t.formKey,callback:function(r){t.formKey=r},expression:"formKey"}})],1),n("ElFormItem",{attrs:{label:"业务标识"}},[n("ElSelect",{on:{change:t.updateElementBusinessKey},model:{value:t.businessKey,callback:function(r){t.businessKey=r},expression:"businessKey"}},[t._l(t.fieldList,function(r){return n("ElOption",{key:r.id,attrs:{value:r.id,label:r.label}})}),n("ElOption",{attrs:{label:"无",value:""}})],2)],1)],1),n("div",{staticClass:"element-property list-property"},[n("ElDivider",[n("i",{staticClass:"el-icon-coin"}),t._v(" 表单字段")]),n("ElTable",{attrs:{data:t.fieldList,size:"mini","max-height":"240",border:"",fit:""}},[n("ElTableColumn",{attrs:{label:"序号",type:"index",width:"50px"}}),n("ElTableColumn",{attrs:{label:"字段名称",prop:"label","min-width":"80px","show-overflow-tooltip":""}}),n("ElTableColumn",{attrs:{label:"字段类型",prop:"type","min-width":"80px",formatter:function(r){return t.fieldType[r.type]||r.type},"show-overflow-tooltip":""}}),n("ElTableColumn",{attrs:{label:"默认值",prop:"defaultValue","min-width":"80px","show-overflow-tooltip":""}}),n("ElTableColumn",{attrs:{label:"操作",width:"90px"},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.row,o=r.$index;return[n("ElButton",{attrs:{size:"mini",type:"text"},on:{click:function(l){return t.openFieldForm(a,o)}}},[t._v("编辑")]),n("ElDivider",{attrs:{direction:"vertical"}}),n("ElButton",{staticStyle:{color:"#ff4d4f"},attrs:{size:"mini",type:"text"},on:{click:function(l){return t.removeField(a,o)}}},[t._v("移除")])]}}])})],1)],1),n("div",{staticClass:"element-drawer__button"},[n("ElButton",{attrs:{size:"mini",type:"primary",icon:"el-icon-plus"},on:{click:function(r){return t.openFieldForm(null,-1)}}},[t._v("添加字段")])],1),n("ElDrawer",{attrs:{visible:t.fieldModelVisible,title:"字段配置",size:`${t.width}px`,"append-to-body":"","destroy-on-close":""},on:{"update:visible":function(r){t.fieldModelVisible=r}}},[n("ElForm",{attrs:{model:t.formFieldForm,"label-width":"90px",size:"mini"},nativeOn:{submit:function(r){r.preventDefault()}}},[n("ElFormItem",{attrs:{label:"字段ID"}},[n("ElInput",{attrs:{clearable:""},model:{value:t.formFieldForm.id,callback:function(r){t.$set(t.formFieldForm,"id",r)},expression:"formFieldForm.id"}})],1),n("ElFormItem",{attrs:{label:"类型"}},[n("ElSelect",{attrs:{placeholder:"请选择字段类型",clearable:""},on:{change:t.changeFieldTypeType},model:{value:t.formFieldForm.typeType,callback:function(r){t.$set(t.formFieldForm,"typeType",r)},expression:"formFieldForm.typeType"}},t._l(t.fieldType,function(r,a){return n("ElOption",{key:a,attrs:{label:r,value:a}})}),1)],1),t.formFieldForm.typeType==="custom"?n("ElFormItem",{attrs:{label:"类型名称"}},[n("ElInput",{attrs:{clearable:""},model:{value:t.formFieldForm.type,callback:function(r){t.$set(t.formFieldForm,"type",r)},expression:"formFieldForm.type"}})],1):t._e(),n("ElFormItem",{attrs:{label:"名称"}},[n("ElInput",{attrs:{clearable:""},model:{value:t.formFieldForm.label,callback:function(r){t.$set(t.formFieldForm,"label",r)},expression:"formFieldForm.label"}})],1),t.formFieldForm.typeType==="date"?n("ElFormItem",{attrs:{label:"时间格式"}},[n("ElInput",{attrs:{clearable:""},model:{value:t.formFieldForm.datePattern,callback:function(r){t.$set(t.formFieldForm,"datePattern",r)},expression:"formFieldForm.datePattern"}})],1):t._e(),n("ElFormItem",{attrs:{label:"默认值"}},[n("ElInput",{attrs:{clearable:""},model:{value:t.formFieldForm.defaultValue,callback:function(r){t.$set(t.formFieldForm,"defaultValue",r)},expression:"formFieldForm.defaultValue"}})],1)],1),t.formFieldForm.type==="enum"?[n("ElDivider",{key:"enum-divider"}),n("p",{key:"enum-title",staticClass:"listener-filed__title"},[n("span",[n("i",{staticClass:"el-icon-menu"}),t._v("枚举值列表:")]),n("ElButton",{attrs:{size:"mini",type:"primary"},on:{click:function(r){return t.openFieldOptionForm(null,-1,"enum")}}},[t._v("添加枚举值")])],1),n("ElTable",{key:"enum-table",attrs:{data:t.fieldEnumList,size:"mini","max-height":"240",border:"",fit:""}},[n("ElTableColumn",{attrs:{label:"序号",width:"50px",type:"index"}}),n("ElTableColumn",{attrs:{label:"枚举值编号",prop:"id","min-width":"100px","show-overflow-tooltip":""}}),n("ElTableColumn",{attrs:{label:"枚举值名称",prop:"name","min-width":"100px","show-overflow-tooltip":""}}),n("ElTableColumn",{attrs:{label:"操作",width:"90px"},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.row,o=r.$index;return[n("ElButton",{attrs:{size:"mini",type:"text"},on:{click:function(l){return t.openFieldOptionForm(a,o,"enum")}}},[t._v("编辑")]),n("ElDivider",{attrs:{direction:"vertical"}}),n("ElButton",{staticStyle:{color:"#ff4d4f"},attrs:{size:"mini",type:"text"},on:{click:function(l){return t.removeFieldOptionItem(a,o,"enum")}}},[t._v("移除")])]}}],null,!1,747635382)})],1)]:t._e(),n("ElDivider",{key:"validation-divider"}),n("p",{key:"validation-title",staticClass:"listener-filed__title"},[n("span",[n("i",{staticClass:"el-icon-menu"}),t._v("约束条件列表:")]),n("ElButton",{attrs:{size:"mini",type:"primary"},on:{click:function(r){return t.openFieldOptionForm(null,-1,"constraint")}}},[t._v("添加约束")])],1),n("ElTable",{key:"validation-table",attrs:{data:t.fieldConstraintsList,size:"mini","max-height":"240",border:"",fit:""}},[n("ElTableColumn",{attrs:{label:"序号",width:"50px",type:"index"}}),n("ElTableColumn",{attrs:{label:"约束名称",prop:"name","min-width":"100px","show-overflow-tooltip":""}}),n("ElTableColumn",{attrs:{label:"约束配置",prop:"config","min-width":"100px","show-overflow-tooltip":""}}),n("ElTableColumn",{attrs:{label:"操作",width:"90px"},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.row,o=r.$index;return[n("ElButton",{attrs:{size:"mini",type:"text"},on:{click:function(l){return t.openFieldOptionForm(a,o,"constraint")}}},[t._v("编辑")]),n("ElDivider",{attrs:{direction:"vertical"}}),n("ElButton",{staticStyle:{color:"#ff4d4f"},attrs:{size:"mini",type:"text"},on:{click:function(l){return t.removeFieldOptionItem(a,o,"constraint")}}},[t._v("移除")])]}}])})],1),n("ElDivider",{key:"property-divider"}),n("p",{key:"property-title",staticClass:"listener-filed__title"},[n("span",[n("i",{staticClass:"el-icon-menu"}),t._v("字段属性列表:")]),n("ElButton",{attrs:{size:"mini",type:"primary"},on:{click:function(r){return t.openFieldOptionForm(null,-1,"property")}}},[t._v("添加属性")])],1),n("ElTable",{key:"property-table",attrs:{data:t.fieldPropertiesList,size:"mini","max-height":"240",border:"",fit:""}},[n("ElTableColumn",{attrs:{label:"序号",width:"50px",type:"index"}}),n("ElTableColumn",{attrs:{label:"属性编号",prop:"id","min-width":"100px","show-overflow-tooltip":""}}),n("ElTableColumn",{attrs:{label:"属性值",prop:"value","min-width":"100px","show-overflow-tooltip":""}}),n("ElTableColumn",{attrs:{label:"操作",width:"90px"},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.row,o=r.$index;return[n("ElButton",{attrs:{size:"mini",type:"text"},on:{click:function(l){return t.openFieldOptionForm(a,o,"property")}}},[t._v("编辑")]),n("ElDivider",{attrs:{direction:"vertical"}}),n("ElButton",{staticStyle:{color:"#ff4d4f"},attrs:{size:"mini",type:"text"},on:{click:function(l){return t.removeFieldOptionItem(a,o,"property")}}},[t._v("移除")])]}}])})],1),n("div",{staticClass:"element-drawer__button"},[n("ElButton",{attrs:{size:"mini"}},[t._v("取 消")]),n("ElButton",{attrs:{size:"mini",type:"primary"},on:{click:t.saveField}},[t._v("保 存")])],1)],2),n("ElementDialog",{attrs:{visible:t.fieldOptionModelVisible,title:t.optionModelTitle,width:"600px","append-to-body":"","destroy-on-close":""},on:{"update:visible":function(r){t.fieldOptionModelVisible=r}},scopedSlots:t._u([{key:"footer",fn:function(){return[n("ElButton",{attrs:{size:"mini"},on:{click:function(r){t.fieldOptionModelVisible=!1}}},[t._v("取 消")]),n("ElButton",{attrs:{size:"mini",type:"primary"},on:{click:t.saveFieldOption}},[t._v("确 定")])]},proxy:!0}])},[n("ElForm",{attrs:{model:t.fieldOptionForm,size:"mini","label-width":"96px"},nativeOn:{submit:function(r){r.preventDefault()}}},[t.fieldOptionType!=="constraint"?n("ElFormItem",{key:"option-id",attrs:{label:"编号/ID"}},[n("ElInput",{attrs:{clearable:""},model:{value:t.fieldOptionForm.id,callback:function(r){t.$set(t.fieldOptionForm,"id",r)},expression:"fieldOptionForm.id"}})],1):t._e(),t.fieldOptionType!=="property"?n("ElFormItem",{key:"option-name",attrs:{label:"名称"}},[n("ElInput",{attrs:{clearable:""},model:{value:t.fieldOptionForm.name,callback:function(r){t.$set(t.fieldOptionForm,"name",r)},expression:"fieldOptionForm.name"}})],1):t._e(),t.fieldOptionType==="constraint"?n("ElFormItem",{key:"option-config",attrs:{label:"配置"}},[n("ElInput",{attrs:{clearable:""},model:{value:t.fieldOptionForm.config,callback:function(r){t.$set(t.fieldOptionForm,"config",r)},expression:"fieldOptionForm.config"}})],1):t._e(),t.fieldOptionType==="property"?n("ElFormItem",{key:"option-value",attrs:{label:"值"}},[n("ElInput",{attrs:{clearable:""},model:{value:t.fieldOptionForm.value,callback:function(r){t.$set(t.fieldOptionForm,"value",r)},expression:"fieldOptionForm.value"}})],1):t._e()],1)],1)],1)},staticRenderFns$p=[];const __vue2_script$t={name:"ElementForm",inject:{prefix:"prefix",width:"width"},props:{id:String},data(){return{formKey:"",businessKey:"",optionModelTitle:"",fieldList:[],formFieldForm:{},fieldType:{long:"长整型",string:"字符串",boolean:"布尔类",date:"日期类",enum:"枚举类",custom:"自定义类型"},formFieldIndex:-1,formFieldOptionIndex:-1,fieldModelVisible:!1,fieldOptionModelVisible:!1,fieldOptionForm:{},fieldOptionType:"",fieldEnumList:[],fieldConstraintsList:[],fieldPropertiesList:[]}},watch:{id:{immediate:!0,handler(t){t&&t.length&&this.$nextTick(()=>this.resetFormList())}}},methods:{resetFormList(){var t;this.bpmnElement=window.bpmnInstances.bpmnElement,this.formKey=this.bpmnElement.businessObject.formKey,this.elExtensionElements=this.bpmnElement.businessObject.get("extensionElements")||window.bpmnInstances.moddle.create("bpmn:ExtensionElements",{values:[]}),this.formData=((t=this.elExtensionElements.values.filter(s=>s.$type===`${this.prefix}:FormData`))==null?void 0:t[0])||window.bpmnInstances.moddle.create(`${this.prefix}:FormData`,{fields:[]}),this.businessKey=this.formData.businessKey,this.otherExtensions=this.elExtensionElements.values.filter(s=>s.$type!==`${this.prefix}:FormData`),this.fieldList=JSON.parse(JSON.stringify(this.formData.fields||[])),this.updateElementExtensions()},updateElementFormKey(){window.bpmnInstances.modeling.updateProperties(this.bpmnElement,{formKey:this.formKey})},updateElementBusinessKey(){window.bpmnInstances.modeling.updateModdleProperties(this.bpmnElement,this.formData,{businessKey:this.businessKey})},changeFieldTypeType(t){this.$set(this.formFieldForm,"type",t==="custom"?"":t)},openFieldForm(t,s){var n,r;if(this.formFieldIndex=s,s!==-1){const a=this.formData.fields[s];this.formFieldForm=JSON.parse(JSON.stringify(t)),this.$set(this.formFieldForm,"typeType",this.fieldType[t.type]?t.type:"custom"),t.type==="enum"&&(this.fieldEnumList=JSON.parse(JSON.stringify((a==null?void 0:a.values)||[]))),this.fieldConstraintsList=JSON.parse(JSON.stringify(((n=a==null?void 0:a.validation)==null?void 0:n.constraints)||[])),this.fieldPropertiesList=JSON.parse(JSON.stringify(((r=a==null?void 0:a.properties)==null?void 0:r.values)||[]))}else this.formFieldForm={},this.fieldEnumList=[],this.fieldConstraintsList=[],this.fieldPropertiesList=[];this.fieldModelVisible=!0},openFieldOptionForm(t,s,n){return this.fieldOptionModelVisible=!0,this.fieldOptionType=n,this.formFieldOptionIndex=s,n==="property"?(this.fieldOptionForm=t?JSON.parse(JSON.stringify(t)):{},this.optionModelTitle="属性配置"):n==="enum"?(this.fieldOptionForm=t?JSON.parse(JSON.stringify(t)):{},this.optionModelTitle="枚举值配置"):(this.fieldOptionForm=t?JSON.parse(JSON.stringify(t)):{},this.optionModelTitle="约束条件配置")},saveFieldOption(){this.formFieldOptionIndex===-1?(this.fieldOptionType==="property"&&this.fieldPropertiesList.push(this.fieldOptionForm),this.fieldOptionType==="constraint"&&this.fieldConstraintsList.push(this.fieldOptionForm),this.fieldOptionType==="enum"&&this.fieldEnumList.push(this.fieldOptionForm)):(this.fieldOptionType==="property"&&this.fieldPropertiesList.splice(this.formFieldOptionIndex,1,this.fieldOptionForm),this.fieldOptionType==="constraint"&&this.fieldConstraintsList.splice(this.formFieldOptionIndex,1,this.fieldOptionForm),this.fieldOptionType==="enum"&&this.fieldEnumList.splice(this.formFieldOptionIndex,1,this.fieldOptionForm)),this.fieldOptionModelVisible=!1,this.fieldOptionForm={}},saveField(){const{id:t,type:s,label:n,defaultValue:r,datePattern:a}=this.formFieldForm,o=window.bpmnInstances.moddle.create(`${this.prefix}:FormField`,{id:t,type:s,label:n});if(r&&(o.defaultValue=r),a&&(o.datePattern=a),this.fieldPropertiesList&&this.fieldPropertiesList.length){const l=this.fieldPropertiesList.map(c=>window.bpmnInstances.moddle.create(`${this.prefix}:Property`,{id:c.id,value:c.value}));o.properties=window.bpmnInstances.moddle.create(`${this.prefix}:Properties`,{values:l})}if(this.fieldConstraintsList&&this.fieldConstraintsList.length){const l=this.fieldConstraintsList.map(c=>window.bpmnInstances.moddle.create(`${this.prefix}:Constraint`,{name:c.name,config:c.config}));o.validation=window.bpmnInstances.moddle.create(`${this.prefix}:Validation`,{constraints:l})}this.fieldEnumList&&this.fieldEnumList.length&&(o.values=this.fieldEnumList.map(l=>window.bpmnInstances.moddle.create(`${this.prefix}:Value`,{name:l.name,id:l.id}))),this.formFieldIndex===-1?(this.fieldList.push(this.formFieldForm),this.formData.fields.push(o)):(this.fieldList.splice(this.formFieldIndex,1,this.formFieldForm),this.formData.fields.splice(this.formFieldIndex,1,o)),this.updateElementExtensions(),this.fieldModelVisible=!1},removeFieldOptionItem(t,s,n){if(n==="property"){this.fieldPropertiesList.splice(s,1);return}if(n==="enum"){this.fieldEnumList.splice(s,1);return}this.fieldConstraintsList.splice(s,1)},removeField(t,s){this.fieldList.splice(s,1),this.formData.fields.splice(s,1),this.updateElementExtensions()},updateElementExtensions(){const t=window.bpmnInstances.moddle.create("bpmn:ExtensionElements",{values:this.otherExtensions.concat(this.formData)});window.bpmnInstances.modeling.updateProperties(this.bpmnElement,{extensionElements:t})}}},__cssModules$t={};var __component__$t=normalizeComponent(__vue2_script$t,render$p,staticRenderFns$p,!1,__vue2_injectStyles$t,null,null,null);function __vue2_injectStyles$t(t){for(let s in __cssModules$t)this[s]=__cssModules$t[s]}const ElementForm=function(){return __component__$t.exports}();var render$o=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"panel-tab__content"},[n("ElTable",{attrs:{data:t.elementListenersList,size:"mini",border:""}},[n("ElTableColumn",{attrs:{label:"序号",width:"50px",type:"index"}}),n("ElTableColumn",{attrs:{label:"事件类型","min-width":"80px","show-overflow-tooltip":"",formatter:function(r){return t.listenerEventTypeObject[r.event]}}}),n("ElTableColumn",{attrs:{label:"事件id","min-width":"80px",prop:"id","show-overflow-tooltip":""}}),n("ElTableColumn",{attrs:{label:"监听器类型","min-width":"80px","show-overflow-tooltip":"",formatter:function(r){return t.listenerTypeObject[r.listenerType]}}}),n("ElTableColumn",{attrs:{label:"操作",width:"90px"},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.row,o=r.$index;return[n("ElButton",{attrs:{size:"mini",type:"text"},on:{click:function(l){return t.openListenerForm(a,o)}}},[t._v("编辑")]),n("ElDivider",{attrs:{direction:"vertical"}}),n("ElButton",{staticStyle:{color:"#ff4d4f"},attrs:{size:"mini",type:"text"},on:{click:function(l){return t.removeListener(a,o)}}},[t._v("移除")])]}}])})],1),n("div",{staticClass:"element-drawer__button"},[n("ElButton",{attrs:{size:"mini",type:"primary",icon:"el-icon-plus"},on:{click:function(r){return t.openListenerForm(null)}}},[t._v("添加监听器")])],1),n("ElDrawer",{attrs:{visible:t.listenerFormModelVisible,title:"任务监听器",size:`${t.width}px`,"append-to-body":"","destroy-on-close":""},on:{"update:visible":function(r){t.listenerFormModelVisible=r}}},[n("ElForm",{ref:"listenerFormRef",attrs:{size:"mini",model:t.listenerForm,"label-width":"96px"},nativeOn:{submit:function(r){r.preventDefault()}}},[n("ElFormItem",{attrs:{label:"事件类型",prop:"event",rules:{required:!0,trigger:["blur","change"]}}},[n("ElSelect",{model:{value:t.listenerForm.event,callback:function(r){t.$set(t.listenerForm,"event",r)},expression:"listenerForm.event"}},t._l(Object.keys(t.listenerEventTypeObject),function(r){return n("ElOption",{key:r,attrs:{label:t.listenerEventTypeObject[r],value:r}})}),1)],1),n("ElFormItem",{attrs:{label:"监听器ID",prop:"id",rules:{required:!0,trigger:["blur","change"]}}},[n("ElInput",{attrs:{clearable:""},model:{value:t.listenerForm.id,callback:function(r){t.$set(t.listenerForm,"id",r)},expression:"listenerForm.id"}})],1),n("ElFormItem",{attrs:{label:"监听器类型",prop:"listenerType",rules:{required:!0,trigger:["blur","change"]}}},[n("ElSelect",{model:{value:t.listenerForm.listenerType,callback:function(r){t.$set(t.listenerForm,"listenerType",r)},expression:"listenerForm.listenerType"}},t._l(Object.keys(t.listenerTypeObject),function(r){return n("ElOption",{key:r,attrs:{label:t.listenerTypeObject[r],value:r}})}),1)],1),t.listenerForm.listenerType==="classListener"?n("ElFormItem",{key:"listener-class",attrs:{label:"Java类",prop:"class",rules:{required:!0,trigger:["blur","change"]}}},[n("ElInput",{attrs:{clearable:""},model:{value:t.listenerForm.class,callback:function(r){t.$set(t.listenerForm,"class",r)},expression:"listenerForm.class"}})],1):t._e(),t.listenerForm.listenerType==="expressionListener"?n("ElFormItem",{key:"listener-expression",attrs:{label:"表达式",prop:"expression",rules:{required:!0,trigger:["blur","change"]}}},[n("ElInput",{attrs:{clearable:""},model:{value:t.listenerForm.expression,callback:function(r){t.$set(t.listenerForm,"expression",r)},expression:"listenerForm.expression"}})],1):t._e(),t.listenerForm.listenerType==="delegateExpressionListener"?n("ElFormItem",{key:"listener-delegate",attrs:{label:"代理表达式",prop:"delegateExpression",rules:{required:!0,trigger:["blur","change"]}}},[n("ElInput",{attrs:{clearable:""},model:{value:t.listenerForm.delegateExpression,callback:function(r){t.$set(t.listenerForm,"delegateExpression",r)},expression:"listenerForm.delegateExpression"}})],1):t._e(),t.listenerForm.listenerType==="scriptListener"?[n("ElFormItem",{key:"listener-script-format",attrs:{label:"脚本格式",prop:"scriptFormat",rules:{required:!0,trigger:["blur","change"],message:"请填写脚本格式"}}},[n("ElInput",{attrs:{clearable:""},model:{value:t.listenerForm.scriptFormat,callback:function(r){t.$set(t.listenerForm,"scriptFormat",r)},expression:"listenerForm.scriptFormat"}})],1),n("ElFormItem",{key:"listener-script-type",attrs:{label:"脚本类型",prop:"scriptType",rules:{required:!0,trigger:["blur","change"],message:"请选择脚本类型"}}},[n("ElSelect",{model:{value:t.listenerForm.scriptType,callback:function(r){t.$set(t.listenerForm,"scriptType",r)},expression:"listenerForm.scriptType"}},[n("ElOption",{attrs:{label:"内联脚本",value:"inlineScript"}}),n("ElOption",{attrs:{label:"外部脚本",value:"externalScript"}})],1)],1),t.listenerForm.scriptType==="inlineScript"?n("ElFormItem",{key:"listener-script",attrs:{label:"脚本内容",prop:"value",rules:{required:!0,trigger:["blur","change"],message:"请填写脚本内容"}}},[n("ElInput",{attrs:{clearable:""},model:{value:t.listenerForm.value,callback:function(r){t.$set(t.listenerForm,"value",r)},expression:"listenerForm.value"}})],1):t._e(),t.listenerForm.scriptType==="externalScript"?n("ElFormItem",{key:"listener-resource",attrs:{label:"资源地址",prop:"resource",rules:{required:!0,trigger:["blur","change"],message:"请填写资源地址"}}},[n("ElInput",{attrs:{clearable:""},model:{value:t.listenerForm.resource,callback:function(r){t.$set(t.listenerForm,"resource",r)},expression:"listenerForm.resource"}})],1):t._e()]:t._e(),t.listenerForm.event==="timeout"?[n("ElFormItem",{key:"eventDefinitionType",attrs:{label:"定时器类型",prop:"eventDefinitionType"}},[n("ElSelect",{model:{value:t.listenerForm.eventDefinitionType,callback:function(r){t.$set(t.listenerForm,"eventDefinitionType",r)},expression:"listenerForm.eventDefinitionType"}},[n("ElOption",{attrs:{label:"日期",value:"date"}}),n("ElOption",{attrs:{label:"持续时长",value:"duration"}}),n("ElOption",{attrs:{label:"循环",value:"cycle"}}),n("ElOption",{attrs:{label:"无",value:"null"}})],1)],1),t.listenerForm.eventDefinitionType&&t.listenerForm.eventDefinitionType!=="null"?n("ElFormItem",{key:"eventTimeDefinitions",attrs:{label:"定时器",prop:"eventTimeDefinitions",rules:{required:!0,trigger:["blur","change"],message:"请填写定时器配置"}}},[n("ElInput",{attrs:{clearable:""},model:{value:t.listenerForm.eventTimeDefinitions,callback:function(r){t.$set(t.listenerForm,"eventTimeDefinitions",r)},expression:"listenerForm.eventTimeDefinitions"}})],1):t._e()]:t._e()],2),n("ElDivider"),n("p",{staticClass:"listener-filed__title"},[n("span",[n("i",{staticClass:"el-icon-menu"}),t._v("注入字段:")]),n("ElButton",{attrs:{size:"mini",type:"primary"},on:{click:function(r){return t.openListenerFieldForm(null)}}},[t._v("添加字段")])],1),n("ElTable",{staticStyle:{flex:"none"},attrs:{data:t.fieldsListOfListener,size:"mini","max-height":"240",border:"",fit:""}},[n("ElTableColumn",{attrs:{label:"序号",width:"50px",type:"index"}}),n("ElTableColumn",{attrs:{label:"字段名称","min-width":"100px",prop:"name"}}),n("ElTableColumn",{attrs:{label:"字段类型","min-width":"80px","show-overflow-tooltip":"",formatter:function(r){return t.fieldTypeObject[r.fieldType]}}}),n("ElTableColumn",{attrs:{label:"字段值/表达式","min-width":"100px","show-overflow-tooltip":"",formatter:function(r){return r.string||r.expression}}}),n("ElTableColumn",{attrs:{label:"操作",width:"100px"},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.row,o=r.$index;return[n("ElButton",{attrs:{size:"mini",type:"text"},on:{click:function(l){return t.openListenerFieldForm(a,o)}}},[t._v("编辑")]),n("ElDivider",{attrs:{direction:"vertical"}}),n("ElButton",{staticStyle:{color:"#ff4d4f"},attrs:{size:"mini",type:"text"},on:{click:function(l){return t.removeListenerField(a,o)}}},[t._v("移除")])]}}])})],1),n("div",{staticClass:"element-drawer__button"},[n("ElButton",{attrs:{size:"mini"},on:{click:function(r){t.listenerFormModelVisible=!1}}},[t._v("取 消")]),n("ElButton",{attrs:{size:"mini",type:"primary"},on:{click:t.saveListenerConfig}},[t._v("保 存")])],1)],1),n("ElementDialog",{attrs:{title:"字段配置",visible:t.listenerFieldFormModelVisible,width:"600px","append-to-body":"","destroy-on-close":""},on:{"update:visible":function(r){t.listenerFieldFormModelVisible=r}},scopedSlots:t._u([{key:"footer",fn:function(){return[n("ElButton",{attrs:{size:"mini"},on:{click:function(r){t.listenerFieldFormModelVisible=!1}}},[t._v("取 消")]),n("ElButton",{attrs:{size:"mini",type:"primary"},on:{click:t.saveListenerFiled}},[t._v("确 定")])]},proxy:!0}])},[n("ElForm",{ref:"listenerFieldFormRef",staticStyle:{height:"136px"},attrs:{model:t.listenerFieldForm,size:"mini","label-width":"96px"},nativeOn:{submit:function(r){r.preventDefault()}}},[n("ElFormItem",{attrs:{label:"字段名称:",prop:"name",rules:{required:!0,trigger:["blur","change"]}}},[n("ElInput",{attrs:{clearable:""},model:{value:t.listenerFieldForm.name,callback:function(r){t.$set(t.listenerFieldForm,"name",r)},expression:"listenerFieldForm.name"}})],1),n("ElFormItem",{attrs:{label:"字段类型:",prop:"fieldType",rules:{required:!0,trigger:["blur","change"]}}},[n("ElSelect",{model:{value:t.listenerFieldForm.fieldType,callback:function(r){t.$set(t.listenerFieldForm,"fieldType",r)},expression:"listenerFieldForm.fieldType"}},t._l(Object.keys(t.fieldTypeObject),function(r){return n("ElOption",{key:r,attrs:{label:t.fieldTypeObject[r],value:r}})}),1)],1),t.listenerFieldForm.fieldType==="string"?n("ElFormItem",{key:"field-string",attrs:{label:"字段值:",prop:"string",rules:{required:!0,trigger:["blur","change"]}}},[n("ElInput",{attrs:{clearable:""},model:{value:t.listenerFieldForm.string,callback:function(r){t.$set(t.listenerFieldForm,"string",r)},expression:"listenerFieldForm.string"}})],1):t._e(),t.listenerFieldForm.fieldType==="expression"?n("ElFormItem",{key:"field-expression",attrs:{label:"表达式:",prop:"expression",rules:{required:!0,trigger:["blur","change"]}}},[n("ElInput",{attrs:{clearable:""},model:{value:t.listenerFieldForm.expression,callback:function(r){t.$set(t.listenerFieldForm,"expression",r)},expression:"listenerFieldForm.expression"}})],1):t._e()],1)],1)],1)},staticRenderFns$o=[];const __vue2_script$s={name:"UserTaskListeners",inject:{prefix:"prefix",width:"width"},props:{id:String},data(){return{elementListenersList:[],listenerEventTypeObject:eventType,listenerTypeObject:listenerType,listenerFormModelVisible:!1,listenerForm:{},fieldTypeObject:fieldType,fieldsListOfListener:[],listenerFieldFormModelVisible:!1,editingListenerIndex:-1,editingListenerFieldIndex:-1,listenerFieldForm:{}}},watch:{id:{immediate:!0,handler(t){t&&t.length&&this.$nextTick(()=>this.resetListenersList())}}},methods:{resetListenersList(){var t,s,n,r;this.bpmnElement=window.bpmnInstances.bpmnElement,this.otherExtensionList=[],this.bpmnElementListeners=(r=(n=(s=(t=this.bpmnElement.businessObject)==null?void 0:t.extensionElements)==null?void 0:s.values)==null?void 0:n.filter(a=>a.$type===`${this.prefix}:TaskListener`))!=null?r:[],this.elementListenersList=this.bpmnElementListeners.map(a=>initListenerType(a))},openListenerForm(t,s){t?(this.listenerForm=initListenerForm(t),this.editingListenerIndex=s):(this.listenerForm={},this.editingListenerIndex=-1),t&&t.fields?this.fieldsListOfListener=t.fields.map(n=>S(f({},n),{fieldType:n.string?"string":"expression"})):(this.fieldsListOfListener=[],this.$set(this.listenerForm,"fields",[])),this.listenerFormModelVisible=!0,this.$nextTick(()=>{this.$refs.listenerFormRef&&this.$refs.listenerFormRef.clearValidate()})},removeListener(t,s){this.$confirm("确认移除该监听器吗?","提示",{confirmButtonText:"确 认",cancelButtonText:"取 消"}).then(()=>{this.bpmnElementListeners.splice(s,1),this.elementListenersList.splice(s,1),updateElementExtensions(this.bpmnElement,this.otherExtensionList.concat(this.bpmnElementListeners))}).catch(()=>console.info("操作取消"))},saveListenerConfig(){return v(this,null,function*(){var n,r,a,o;if(!(yield this.$refs.listenerFormRef.validate()))return;const s=createListenerObject(this.listenerForm,!0,this.prefix);this.editingListenerIndex===-1?(this.bpmnElementListeners.push(s),this.elementListenersList.push(this.listenerForm)):(this.bpmnElementListeners.splice(this.editingListenerIndex,1,s),this.elementListenersList.splice(this.editingListenerIndex,1,this.listenerForm)),this.otherExtensionList=(o=(a=(r=(n=this.bpmnElement.businessObject)==null?void 0:n.extensionElements)==null?void 0:r.values)==null?void 0:a.filter(l=>l.$type!==`${this.prefix}:TaskListener`))!=null?o:[],updateElementExtensions(this.bpmnElement,this.otherExtensionList.concat(this.bpmnElementListeners)),this.listenerFormModelVisible=!1,this.listenerForm={}})},openListenerFieldForm(t,s){this.listenerFieldForm=t?JSON.parse(JSON.stringify(t)):{},this.editingListenerFieldIndex=t?s:-1,this.listenerFieldFormModelVisible=!0,this.$nextTick(()=>{this.$refs.listenerFieldFormRef&&this.$refs.listenerFieldFormRef.clearValidate()})},saveListenerFiled(){return v(this,null,function*(){(yield this.$refs.listenerFieldFormRef.validate())&&(this.editingListenerFieldIndex===-1?(this.fieldsListOfListener.push(this.listenerFieldForm),this.listenerForm.fields.push(this.listenerFieldForm)):(this.fieldsListOfListener.splice(this.editingListenerFieldIndex,1,this.listenerFieldForm),this.listenerForm.fields.splice(this.editingListenerFieldIndex,1,this.listenerFieldForm)),this.listenerFieldFormModelVisible=!1,this.$nextTick(()=>this.listenerFieldForm={}))})},removeListenerField(t,s){this.$confirm("确认移除该字段吗?","提示",{confirmButtonText:"确 认",cancelButtonText:"取 消"}).then(()=>{this.fieldsListOfListener.splice(s,1),this.listenerForm.fields.splice(s,1)}).catch(()=>console.info("操作取消"))}}},__cssModules$s={};var __component__$s=normalizeComponent(__vue2_script$s,render$o,staticRenderFns$o,!1,__vue2_injectStyles$s,null,null,null);function __vue2_injectStyles$s(t){for(let s in __cssModules$s)this[s]=__cssModules$s[s]}const UserTaskListeners=function(){return __component__$s.exports}();var render$n=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"process-panel__container",style:{width:`${t.width}px`}},[n("ElCollapse",{model:{value:t.activeTab,callback:function(r){t.activeTab=r},expression:"activeTab"}},[n("ElCollapseItem",{attrs:{name:"base"},scopedSlots:t._u([{key:"title",fn:function(){return[n("div",{staticClass:"panel-tab__title"},[n("i",{staticClass:"el-icon-info"}),t._v("常规")])]},proxy:!0}])},[n("ElementBaseInfo",{attrs:{"id-edit-disabled":t.idEditDisabled,"business-object":t.elementBusinessObject,type:t.elementType}})],1),t.elementType==="Process"?n("ElCollapseItem",{key:"message",attrs:{name:"condition"},scopedSlots:t._u([{key:"title",fn:function(){return[n("div",{staticClass:"panel-tab__title"},[n("i",{staticClass:"el-icon-s-comment"}),t._v("消息与信号")])]},proxy:!0}],null,!1,2715634709)},[n("SignalAndMassage")],1):t._e(),t.conditionFormVisible?n("ElCollapseItem",{key:"condition",attrs:{name:"condition"},scopedSlots:t._u([{key:"title",fn:function(){return[n("div",{staticClass:"panel-tab__title"},[n("i",{staticClass:"el-icon-s-promotion"}),t._v("流转条件")])]},proxy:!0}],null,!1,2203010800)},[n("FlowCondition",{attrs:{"business-object":t.elementBusinessObject,type:t.elementType}})],1):t._e(),t.formVisible?n("ElCollapseItem",{key:"form",attrs:{name:"condition"},scopedSlots:t._u([{key:"title",fn:function(){return[n("div",{staticClass:"panel-tab__title"},[n("i",{staticClass:"el-icon-s-order"}),t._v("表单")])]},proxy:!0}],null,!1,1341048650)},[n("ElementForm",{attrs:{id:t.elementId,type:t.elementType}})],1):t._e(),t.elementType.indexOf("Task")!==-1?n("ElCollapseItem",{key:"task",attrs:{name:"task"},scopedSlots:t._u([{key:"title",fn:function(){return[n("div",{staticClass:"panel-tab__title"},[n("i",{staticClass:"el-icon-s-claim"}),t._v("任务")])]},proxy:!0}],null,!1,2144785833)},[n("ElementTask",{attrs:{id:t.elementId,type:t.elementType}})],1):t._e(),t.elementType.indexOf("Task")!==-1?n("ElCollapseItem",{key:"multiInstance",attrs:{name:"multiInstance"},scopedSlots:t._u([{key:"title",fn:function(){return[n("div",{staticClass:"panel-tab__title"},[n("i",{staticClass:"el-icon-s-help"}),t._v("多实例")])]},proxy:!0}],null,!1,1253501895)},[n("ElementMultiInstance",{attrs:{"business-object":t.elementBusinessObject,type:t.elementType}})],1):t._e(),n("ElCollapseItem",{key:"listeners",attrs:{name:"listeners"},scopedSlots:t._u([{key:"title",fn:function(){return[n("div",{staticClass:"panel-tab__title"},[n("i",{staticClass:"el-icon-message-solid"}),t._v("执行监听器")])]},proxy:!0}])},[n("ElementListeners",{attrs:{id:t.elementId,type:t.elementType}})],1),t.elementType==="UserTask"?n("ElCollapseItem",{key:"taskListeners",attrs:{name:"taskListeners"},scopedSlots:t._u([{key:"title",fn:function(){return[n("div",{staticClass:"panel-tab__title"},[n("i",{staticClass:"el-icon-message-solid"}),t._v("任务监听器")])]},proxy:!0}],null,!1,3617698803)},[n("UserTaskListeners",{attrs:{id:t.elementId,type:t.elementType}})],1):t._e(),n("ElCollapseItem",{key:"extensions",attrs:{name:"extensions"},scopedSlots:t._u([{key:"title",fn:function(){return[n("div",{staticClass:"panel-tab__title"},[n("i",{staticClass:"el-icon-circle-plus"}),t._v("扩展属性")])]},proxy:!0}])},[n("ElementProperties",{attrs:{id:t.elementId,type:t.elementType}})],1),n("ElCollapseItem",{key:"other",attrs:{name:"other"},scopedSlots:t._u([{key:"title",fn:function(){return[n("div",{staticClass:"panel-tab__title"},[n("i",{staticClass:"el-icon-s-promotion"}),t._v("其他")])]},proxy:!0}])},[n("ElementOtherConfig",{attrs:{id:t.elementId}})],1)],1)],1)},staticRenderFns$n=[];const __vue2_script$r={name:"PropertiesPanel",components:{UserTaskListeners,ElementForm,ElementProperties,ElementListeners,SignalAndMassage,FlowCondition,ElementMultiInstance,ElementTask,ElementOtherConfig,ElementBaseInfo},componentName:"MyPropertiesPanel",provide(){return{prefix:this.prefix,width:this.width}},props:{bpmnModeler:Object,prefix:{type:String,default:"camunda"},width:{type:Number,default:480},idEditDisabled:{type:Boolean,default:!1}},data(){return{activeTab:"base",elementId:"",elementType:"",elementBusinessObject:{},conditionFormVisible:!1,formVisible:!1}},watch:{elementId:{handler(){this.activeTab="base"}}},created(){this.initModels()},methods:{initModels(){if(!this.bpmnModeler){this.timer=setTimeout(()=>this.initModels(),10);return}this.timer&&clearTimeout(this.timer),window.bpmnInstances={modeler:this.bpmnModeler,modeling:this.bpmnModeler.get("modeling"),moddle:this.bpmnModeler.get("moddle"),eventBus:this.bpmnModeler.get("eventBus"),bpmnFactory:this.bpmnModeler.get("bpmnFactory"),elementFactory:this.bpmnModeler.get("elementFactory"),elementRegistry:this.bpmnModeler.get("elementRegistry"),replace:this.bpmnModeler.get("replace"),selection:this.bpmnModeler.get("selection")},this.getActiveElement()},getActiveElement(){this.initFormOnChanged(null),this.bpmnModeler.on("import.done",()=>{this.initFormOnChanged(null)}),this.bpmnModeler.on("selection.changed",({newSelection:t})=>{this.initFormOnChanged(t[0]||null)}),this.bpmnModeler.on("element.changed",({element:t})=>{t&&t.id===this.elementId&&this.initFormOnChanged(t)})},initFormOnChanged(t){var n;let s=t;s||(s=(n=window.bpmnInstances.elementRegistry.find(r=>r.type==="bpmn:Process"))!=null?n:window.bpmnInstances.elementRegistry.find(r=>r.type==="bpmn:Collaboration")),s&&(core.debug.call(this,`select element changed: id: ${s.id} , type: ${s.businessObject.$type}`),core.debug.call(this,"businessObject",s.businessObject),window.bpmnInstances.bpmnElement=s,this.bpmnElement=s,this.elementId=s.id,this.elementType=s.type.split(":")[1]||"",this.elementBusinessObject=JSON.parse(JSON.stringify(s.businessObject)),this.conditionFormVisible=!!(this.elementType==="SequenceFlow"&&s.source&&s.source.type.indexOf("StartEvent")===-1),this.formVisible=this.elementType==="UserTask"||this.elementType==="StartEvent")},beforeDestroy(){window.bpmnInstances=null}}},__cssModules$r={};var __component__$r=normalizeComponent(__vue2_script$r,render$n,staticRenderFns$n,!1,__vue2_injectStyles$r,null,null,null);function __vue2_injectStyles$r(t){for(let s in __cssModules$r)this[s]=__cssModules$r[s]}const PropertiesPanel=function(){return __component__$r.exports}();var render$m=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{class:["avue-queue",{"avue-queue--block":t.block}]},[n("div",{ref:"queue",staticClass:"animated",class:t.animate},[t._t("default")],2)])},staticRenderFns$m=[];const __vue2_script$q={name:"Queue",props:{enter:{type:String,default:"fadeInLeft"},leave:{type:String,default:"fadeOutRight"},block:{type:Boolean,default:!1},delay:{type:Number,default:0}},data(){return{isFixed:0,animate:[]}},mounted(){this.$nextTick(()=>{addEventListener("scroll",this.handleAnimate),this.handleAnimate()})},destroyed(){removeEventListener("scroll",this.handleAnimate)},methods:{handleAnimate(){const t=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop,s=document.documentElement.clientHeight,n=this.$refs.queue;t+s>n.offsetTop?setTimeout(()=>{this.animate=[this.enter,"avue-opacity--active"]},this.delay):this.animate=["avue-opacity"]}}},__cssModules$q={};var __component__$q=normalizeComponent(__vue2_script$q,render$m,staticRenderFns$m,!1,__vue2_injectStyles$q,null,null,null);function __vue2_injectStyles$q(t){for(let s in __cssModules$q)this[s]=__cssModules$q[s]}const Queue=function(){return __component__$q.exports}();let RecordVideo$1=class{constructor(s){this.chunks=[],this.video=s,this.mediaRecorder=null,this.chunks=[]}init(){return new Promise((s,n)=>{navigator.mediaDevices.getUserMedia({audio:!0,video:!0}).then(r=>{this.video&&("srcObject"in this.video?this.video.srcObject=r:this.video.src=window.URL.createObjectURL(r),this.video.addEventListener("loadmetadata",()=>{var a;(a=this.video)==null||a.play()}),this.mediaRecorder=new MediaRecorder(r),this.mediaRecorder.addEventListener("dataavailable",a=>{this.chunks.push(a.data)}),s(!0))}).catch(r=>{n(r)})})}startRecord(){var s;((s=this.mediaRecorder)==null?void 0:s.state)==="inactive"&&this.mediaRecorder.start()}stopRecord(){var s;((s=this.mediaRecorder)==null?void 0:s.state)==="recording"&&this.mediaRecorder.stop()}isSupport(){if(navigator.mediaDevices&&navigator.mediaDevices.getUserMedia)return!0}};var render$l=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-video",style:t.styleName},[n("div",{staticClass:"avue-video__border"},[n("span",{style:t.borderStyleName}),n("span",{style:t.borderStyleName}),n("span",{style:t.borderStyleName}),n("span",{style:t.borderStyleName})]),n("img",{staticClass:"avue-video__img",style:t.imgStyleName,attrs:{src:t.background,alt:""}}),n("video",{ref:"main",staticClass:"avue-video__main",attrs:{autoplay:"",muted:""},domProps:{muted:!0}})])},staticRenderFns$l=[];const RecordVideo_vue_vue_type_style_index_0_lang="",__vue2_script$p={name:"RecordVideo",props:{background:{type:String},width:{type:[String,Number],default:500}},data(){return{videoObj:null}},computed:{styleName(){return{width:setPx(this.width)}},imgStyleName(){return{width:setPx(this.width/2)}},borderStyleName(){return{width:setPx(this.width/15),height:setPx(this.width/15),borderWidth:setPx(5)}}},mounted(){this.init()},methods:{init(){this.videoObj=new RecordVideo$1(this.$refs.main),this.videoObj.init().then(()=>{this.videoObj.mediaRecorder.addEventListener("stop",this.getData,!1)})},startRecord(){this.videoObj.startRecord()},stopRecord(){this.videoObj.stopRecord()},getData(){const t=new Blob(this.videoObj.chunks,{type:"video/mp4"}),s=new FileReader;s.readAsDataURL(t),s.addEventListener("loadend",()=>{const n=s.result;this.$emit("data-change",n)})}}},__cssModules$p={};var __component__$p=normalizeComponent(__vue2_script$p,render$l,staticRenderFns$l,!1,__vue2_injectStyles$p,null,null,null);function __vue2_injectStyles$p(t){for(let s in __cssModules$p)this[s]=__cssModules$p[s]}const RecordVideo=function(){return __component__$p.exports}();var render$k=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"resize-observer",attrs:{tabindex:"-1"}})},staticRenderFns$k=[];const ResizeObserver_vue_vue_type_style_index_0_lang="";let isIE;function initCompat(){initCompat.init||(initCompat.init=!0,isIE=getInternetExplorerVersion()!==-1)}const __vue2_script$o={name:"ResizeObserver",mounted(){initCompat(),this.$nextTick(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight});const t=document.createElement("object");this._resizeObject=t,t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",isIE&&this.$el.appendChild(t),t.data="about:blank",isIE||this.$el.appendChild(t)},beforeDestroy(){this.removeResizeHandlers()},methods:{compareAndNotify(){(this._w!==this.$el.offsetWidth||this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.$emit("notify",{width:this._w,height:this._h}))},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!isIE&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},__cssModules$o={};var __component__$o=normalizeComponent(__vue2_script$o,render$k,staticRenderFns$k,!1,__vue2_injectStyles$o,null,null,null);function __vue2_injectStyles$o(t){for(let s in __cssModules$o)this[s]=__cssModules$o[s]}const ResizeObserver=function(){return __component__$o.exports}();var render$j=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("ElRow",{class:["avue-search",{"avue--card":t.isCard}],attrs:{span:24}},t._l(t.columnOption,function(r){return n("ElCol",{key:r.prop,staticClass:"avue-search__item",attrs:{span:r.span||24}},[n("p",{staticClass:"avue-search__title"},[t._v(" "+t._s(r.label)+": ")]),n("div",{staticClass:"avue-search__content"},[t.mainSlot.includes(r.prop)?t._t(r.prop,null,{dic:t.DIC[r.prop]}):t._l(t.DIC[r.prop],function(a){return n("span",{key:t.getKey(a,r.props,t.valueKey),class:["avue-search__tags",{"avue-search__tags--active":t.getActive(a,r)}],on:{click:function(o){return t.handleClick(r,a)}}},[t._v(t._s(t.getKey(a,r.props,t.labelKey)))])})],2)])}),1)},staticRenderFns$j=[];const Search_vue_vue_type_style_index_0_lang="",__vue2_script$n={name:"Search",mixins:[init],props:{value:[String,Object,Number,Boolean,Array]},computed:{form:{get(){return this.value},set(t){this.setVal(t)}},props(){return this.parentOption.props||{}},labelKey(){return DIC_PROPS.label},valueKey(){return DIC_PROPS.value},mainSlot(){const t=[];return this.propOption.forEach(s=>{this.$scopedSlots[s.prop]&&t.push(s.prop)}),t},isCard(){return this.parentOption.card},parentOption(){return this.tableOption},propOption(){return this.columnOption},columnOption(){return this.parentOption.column}},watch:{value:{handler(t){this.setVal(t)},deep:!0}},created(){this.dataFormat()},methods:{setVal(t){this.$emit("input",t),this.$emit("change",t)},getKey(t={},s={},n){return t[s[n]||this.props[n]||n]},dataFormat(){this.propOption.forEach(t=>{const s=t.prop;core.isBlank(this.form[s])&&this.$set(this.form,s,t.multiple===!1?"":[])})},getActive(t,s){const n=this.getKey(t,s.props,this.valueKey);return s.multiple===!1?this.form[s.prop]===n:this.form[s.prop].includes(n)},handleClick(t,s){const n=this.getKey(s,t.props,this.valueKey);if(t.multiple===!1)this.form[t.prop]=n;else{const r=this.form[t.prop].indexOf(n);r===-1?this.form[t.prop].push(n):this.form[t.prop].splice(r,1)}}}},__cssModules$n={};var __component__$n=normalizeComponent(__vue2_script$n,render$j,staticRenderFns$j,!1,__vue2_injectStyles$n,null,null,null);function __vue2_injectStyles$n(t){for(let s in __cssModules$n)this[s]=__cssModules$n[s]}const Search=function(){return __component__$n.exports}();var render$i=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.showPopover,expression:"showPopover"},{name:"click-outside",rawName:"v-click-outside",value:t.hidePopover,expression:"hidePopover"}],staticClass:"search-popover"},[n("div",{staticStyle:{padding:"10px"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.keyword,expression:"keyword"}],ref:"searchInput",staticClass:"search-input",attrs:{placeholder:t.currentItem?t.currentItem.name:"输入关键字搜索 ..."},domProps:{value:t.keyword},on:{input:function(r){r.target.composing||(t.keyword=r.target.value)}}})]),n("ul",{ref:"ul",staticStyle:{flex:"1",overflow:"auto","list-style-type":"none"}},[t.filterList.length?t._l(t.filterList,function(r,a){return n("li",{key:r.name+a,staticClass:"search-li",attrs:{id:`item-${a}`},on:{mousemove:function(o){return t.mouseHoverItem(r,a)}}},[n("a",{class:["search-item",{active:t.currentIndex===a}],attrs:{target:r.url?"_blank":"",rel:"noopener noreferrer",href:r.url?r.url:"javascript:void(0)"},on:{click:function(o){return t.onItemClick(r)}}},[n("div",{staticClass:"search-icon"},[n("i",{class:r.icon||"el-icon-menu"})]),n("div",{staticStyle:{flex:"1","box-sizing":"border-box",padding:"0 10px","overflow-x":"hidden","text-align":"left"}},[n("p",{staticStyle:{"margin-bottom":"4px","font-size":"16px"}},[t._v(t._s(r.name))]),n("p",{staticClass:"url"},[t._v(t._s(r.url||r.path))])]),n("div",{staticClass:"search-icon search-action"},[n("svg",{staticClass:"action",attrs:{width:"20",height:"20",viewBox:"0 0 20 20"}},[n("g",{attrs:{stroke:"currentColor",fill:"none","fill-rule":"evenodd","stroke-linecap":"round","stroke-linejoin":"round"}},[n("path",{attrs:{d:"M18 3v4c0 2-2 4-4 4H2"}}),n("path",{attrs:{d:"M8 17l-6-6 6-6"}})])])])])])}):t.evalResult!==""?n("li",{staticClass:"search-li",on:{click:t.copyEvalResult,mousemove:function(r){return t.mouseHoverItem({},-1)}}},[n("a",{class:["search-item",{active:t.currentIndex===-1}],attrs:{rel:"noopener noreferrer",href:"javascript:void(0)"}},[t._m(0),n("div",{staticStyle:{flex:"1","box-sizing":"border-box",padding:"0 10px","overflow-x":"hidden","text-align":"left"}},[n("p",{staticStyle:{"margin-bottom":"4px","font-size":"16px"}},[t._v("Result: "+t._s(t.evalResult))]),n("p",{staticClass:"url"},[t._v("点击或这按 Enter 键复制")])]),n("div",{staticClass:"search-icon search-action"},[n("svg",{staticClass:"action",attrs:{width:"20",height:"20",viewBox:"0 0 20 20"}},[n("g",{attrs:{stroke:"currentColor",fill:"none","fill-rule":"evenodd","stroke-linecap":"round","stroke-linejoin":"round"}},[n("path",{attrs:{d:"M18 3v4c0 2-2 4-4 4H2"}}),n("path",{attrs:{d:"M8 17l-6-6 6-6"}})])])])])]):n("li",{staticStyle:{display:"flex","align-items":"center","justify-content":"center",height:"100%",color:"#808080"}},[t._v(" Sorry,no result ! ")])],2),n("div",{staticClass:"footer-tips"},[n("span",{staticClass:"keyboard-key"},[n("svg",{attrs:{width:"15",height:"15"}},[n("g",{attrs:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.2"}},[n("path",{attrs:{d:"M12 3.53088v3c0 1-1 2-2 2H4M7 11.53088l-3-3 3-3"}})])])]),n("span",{staticStyle:{"margin-right":"20px","font-size":"12px"}},[t._v("选择")]),n("span",{staticClass:"keyboard-key"},[n("svg",{attrs:{width:"15",height:"15"}},[n("g",{attrs:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.2"}},[n("path",{attrs:{d:"M7.5 3.5v8M10.5 8.5l-3 3-3-3"}})])])]),n("span",{staticClass:"keyboard-key"},[n("svg",{attrs:{width:"15",height:"15"}},[n("g",{attrs:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.2"}},[n("path",{attrs:{d:"M7.5 11.5v-8M10.5 6.5l-3-3-3 3"}})])])]),n("span",{staticStyle:{"margin-right":"20px","font-size":"12px"}},[t._v("切换")]),n("span",{staticClass:"keyboard-key"},[n("svg",{attrs:{width:"15",height:"15"}},[n("g",{attrs:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.2"}},[n("path",{attrs:{d:"M13.6167 8.936c-.1065.3583-.6883.962-1.4875.962-.7993 0-1.653-.9165-1.653-2.1258v-.5678c0-1.2548.7896-2.1016 1.653-2.1016.8634 0 1.3601.4778 1.4875 1.0724M9 6c-.1352-.4735-.7506-.9219-1.46-.8972-.7092.0246-1.344.57-1.344 1.2166s.4198.8812 1.3445.9805C8.465 7.3992 8.968 7.9337 9 8.5c.032.5663-.454 1.398-1.4595 1.398C6.6593 9.898 6 9 5.963 8.4851m-1.4748.5368c-.2635.5941-.8099.876-1.5443.876s-1.7073-.6248-1.7073-2.204v-.4603c0-1.0416.721-2.131 1.7073-2.131.9864 0 1.6425 1.031 1.5443 2.2492h-2.956"}})])])]),n("span",{staticStyle:{"font-size":"12px"}},[t._v("关闭")])])])},staticRenderFns$i=[function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"search-icon"},[n("i",{staticClass:"fa fa-table"})])}];const SearchPopover_vue_vue_type_style_index_0_lang="",__vue2_script$m={name:"SearchPopover",directives:{ClickOutside},props:{services:{type:Array,default:()=>[]}},data(){return{showPopover:!1,keyword:"",currentIndex:0,last:0}},computed:{filterList(){return this.services.filter(t=>t.name.indexOf(this.keyword)>-1)},currentItem(){var t;return(t=this.filterList)==null?void 0:t[this.currentIndex]},evalResult(){try{return eval(this.keyword)}catch(t){return""}}},watch:{keyword(){this.currentIndex=0,!this.currentItem&&this.currentIndex!==-1&&(this.currentIndex=-1)},showPopover(t){t?document.body.style.overflow="hidden":document.body.style.overflow=""}},mounted(){window.addEventListener("keydown",this.keydown)},destroyed(){window.removeEventListener("keydown",this.keydown)},methods:{onItemClick(t){return v(this,null,function*(){t.path&&(this.hidePopover(),yield this.$router.push(t.path))})},copyEvalResult(){return core.copy(this.evalResult)},hidePopover(){this.showPopover=!1},displayPopover(){this.showPopover=!0},mouseHoverItem(t,s){this.currentIndex=s},keydown(t){return v(this,null,function*(){if(t.key==="Shift"){const s=Date.now()-this.last;s>0&&s<500?(this.showPopover=!0,yield this.$nextTick(),this.$refs.searchInput.focus()):this.last=Date.now()}this.showPopover===!0&&(t.key==="Escape"&&this.hidePopover(),t.key==="Enter"&&(this.currentItem?this.currentItem.url?(window.open(this.currentItem.url,"_blank"),this.hidePopover()):this.currentItem.path&&(yield this.onItemClick(this.currentItem)):this.copyEvalResult()),t.key==="ArrowUp"&&(this.currentIndex--,this.currentIndex<0&&(this.currentIndex=this.filterList.length-1),this.scrollIntoView(this.currentIndex)),t.key==="ArrowDown"&&(this.currentIndex++,this.currentIndex>=this.filterList.length&&(this.currentIndex=0),this.scrollIntoView(this.currentIndex)))})},scrollIntoView(t){if(t===0){this.$refs.ul.scrollTop=0;return}if(t===this.filterList.length){this.$refs.ul.scrollTop=this.$refs.ul.scrollHeight;return}const s=this.$refs.ul.querySelector(`#item-${t}`);core.isInContainer(s,this.$refs.ul,{topOffset:-78,bottomOffset:78})||(this.$refs.ul.scrollTop=s.offsetTop-s.clientHeight+20)}}},__cssModules$m={};var __component__$m=normalizeComponent(__vue2_script$m,render$i,staticRenderFns$i,!1,__vue2_injectStyles$m,null,null,null);function __vue2_injectStyles$m(t){for(let s in __cssModules$m)this[s]=__cssModules$m[s]}const SearchPopover=function(){return __component__$m.exports}();var render$h=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-sige"},[n("canvas",{ref:"canvas",staticClass:"avue-sige__canvas",attrs:{width:t.width,height:t.height}})])},staticRenderFns$h=[];const Sign_vue_vue_type_style_index_0_lang="";function create5star(t,s,n,r,a,o){t.save(),t.fillStyle=a,t.translate(s,n),t.rotate(Math.PI+o),t.beginPath();var l=Math.sin(0),c=Math.cos(0);const u=Math.PI/5*4;for(let d=0;d<5;d++){var l=Math.sin(d*u),c=Math.cos(d*u);t.lineTo(l*r,c*r)}t.closePath(),t.stroke(),t.fill(),t.restore()}const __vue2_script$l={name:"Sign",props:{width:{type:Number,default:600},height:{type:Number,default:400}},data(){return{disabled:!1,linex:[],liney:[],linen:[],canvas:{},context:{}}},computed:{styleName(){return{width:setPx(this.width),height:setPx(this.height)}}},mounted(){this.init()},methods:{getStar(t,s,n){const r=this.canvas,a=this.context,o=r.width/2,l=r.height/2;a.lineWidth=7,a.strokeStyle="#f00",a.beginPath(),a.arc(o,l,110,0,Math.PI*2),a.stroke(),create5star(a,o,l,20,"#f00",0),a.font="18px 黑体",a.textBaseline="middle",a.textAlign="center",a.lineWidth=1,a.strokeStyle="#f00",a.strokeText(t,o,l+50),a.font="14px 黑体",a.textBaseline="middle",a.textAlign="center",a.lineWidth=1,a.strokeStyle="#f00",a.strokeText(n,o,l+80),a.translate(o,l),a.font="22px 黑体";const c=s.length,u=4*Math.PI/(3*(c-1)),d=s.split("");let p;for(let h=0;h<c;h++)p=d[h],h==0?a.rotate(5*Math.PI/6):a.rotate(u),a.save(),a.translate(90,0),a.rotate(Math.PI/2),a.strokeText(p,0,0),a.restore(),a.save();this.disabled=!0},submit(t,s){return t||(t=this.width),s||(s=this.height),this.canvas.toDataURL("i/png")},clear(){this.linex=[],this.liney=[],this.linen=[],this.disabled=!1},init(){this.canvas=this.$refs.canvas;const t=this.canvas,s=this;typeof document.ontouchstart!="undefined"?(t.addEventListener("touchmove",c,!1),t.addEventListener("touchstart",u,!1),t.addEventListener("touchend",d,!1)):(t.addEventListener("mousemove",c,!1),t.addEventListener("mousedown",u,!1),t.addEventListener("mouseup",d,!1),t.addEventListener("mouseleave",d,!1)),this.context=t.getContext("2d");const n=this.context;this.linex=[],this.liney=[],this.linen=[];let r=1,a=30,o=0;function l(p,h){const m=p.getBoundingClientRect();let _,x;return h.targetTouches?(_=h.targetTouches[0].clientX,x=h.targetTouches[0].clientY):(_=h.clientX,x=h.clientY),{x:(_-m.left)*(p.width/m.width),y:(x-m.top)*(p.height/m.height)}}function c(p){if(s.disabled)return;const h=l(t,p).x,m=l(t,p).y;if(o===1){s.linex.push(h),s.liney.push(m),s.linen.push(1),n.save(),n.translate(n.canvas.width/2,n.canvas.height/2),n.translate(-n.canvas.width/2,-n.canvas.height/2),n.beginPath(),n.lineWidth=2;for(let _=1;_<s.linex.length;_++)r=s.linex[_],a=s.liney[_],s.linen[_]===0?n.moveTo(r,a):n.lineTo(r,a);n.shadowBlur=10,n.stroke(),n.restore()}p.preventDefault()}function u(p){if(s.disabled)return;const h=l(t,p).x,m=l(t,p).y;o=1,s.linex.push(h),s.liney.push(m),s.linen.push(0)}function d(){s.disabled||(o=0)}}}},__cssModules$l={};var __component__$l=normalizeComponent(__vue2_script$l,render$h,staticRenderFns$h,!1,__vue2_injectStyles$l,null,null,null);function __vue2_injectStyles$l(t){for(let s in __cssModules$l)this[s]=__cssModules$l[s]}const Sign=function(){return __component__$l.exports}();var render$g=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"sign-panel flex-column"},[n("div",{directives:[{name:"show",rawName:"v-show",value:!t.disabled&&t.edit,expression:"!disabled && edit"}],staticClass:"sign-edit"},[n("div",{staticClass:"sign-draw-area",style:{width:`${t.width+2}px`,height:`${t.height+2}px`}},[n("div",{staticClass:"sign-watermark",style:{fontSize:`${t.fontSize}px`}},[t._v(" "+t._s(t.text)+" ")]),n("canvas",{ref:"canvas",staticClass:"sign-canvas",attrs:{width:t.width,height:t.height},on:{touchstart:function(r){return r.stopPropagation(),t.touchstart.apply(null,arguments)},touchmove:function(r){return r.stopPropagation(),t.touchmove.apply(null,arguments)},mousedown:function(r){return r.stopPropagation(),t.down.apply(null,arguments)},touchend:function(r){return r.stopPropagation(),t.touchend.apply(null,arguments)},mouseup:function(r){return r.stopPropagation(),t.up.apply(null,arguments)}}},[t._v("当前浏览器不支持手写签名 ")])]),n("div",{staticClass:"sign-tool-bar"},[n("div",{staticClass:"sign-button flex-item",staticStyle:{color:"red"},on:{click:t.clear}},[n("i",{staticClass:"fa fa-trash"}),t._v(" 清除 ")]),n("div",{staticClass:"sign-button flex-item",staticStyle:{color:"red"},on:{click:t.cancel}},[n("i",{staticClass:"fa fa-close"}),t._v(" 取消 ")]),n("div",{staticClass:"sign-button flex-item",staticStyle:{color:"orange"},on:{click:t.rollback}},[n("i",{staticClass:"fa fa-repeat"}),t._v(" 撤销 ")]),n("div",{staticClass:"sign-button flex-item",staticStyle:{color:"green"},on:{click:t.save}},[n("i",{staticClass:"fa fa-check"}),t._v(" 确定 ")])])]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.disabled||!t.edit,expression:"disabled || !edit"}],staticClass:"sign-view",style:{cursor:t.disabled?"not-allowed":"pointer"},on:{click:t.showSign}},[t.value?n("img",{staticClass:"sign-image",attrs:{src:t.value,alt:"签名"}}):t._e(),t.value?t._e():n("p",{staticClass:"sign-tips",style:{color:!t.value&&t.disabled?"red":""}},[t._v(" "+t._s(t.disabled?"未签名":"点击进行签名")+" ")]),t.disabled?t._e():n("i",{staticClass:"el-icon-edit-outline sign-edit-icon"})])])},staticRenderFns$g=[];const SignPanel_vue_vue_type_style_index_0_lang="",__vue2_script$k={name:"SignPanel",props:{width:{type:Number,default:400},height:{type:Number,default:150},lineWidth:{type:Number,default:1},text:{type:String,default:"签名区"},fontSize:{type:Number,default:20},value:{type:String},disabled:Boolean},data(){return{edit:!1}},mounted(){this.init()},methods:{init(){if(this.stack=[],this.canvas=this.$refs.canvas,!this.canvas.getContext){alert("当前浏览器不支持手写签名");return}this.canvasInit()},rollback(){if(this.stack.length>0){const t=this.stack[this.stack.length-1];this.ctx.putImageData(t,0,0),this.stack.length=this.stack.length-1}},position(){this.restorePoint=this.ctx.getImageData(0,0,this.canvas.width,this.canvas.height);const t=this.canvas.getBoundingClientRect();this.start=t.left,this.end=t.top},canvasInit(){this.ctx=this.canvas.getContext("2d"),this.ctx.lineCap="round",this.ctx.lineWidth=this.lineWidth,this.ctx.clearRect(0,0,this.width,this.height),this.blank=this.canvas.toDataURL("image/png")},drawWaterMark(){this.ctx.font=`${this.fontSize}px bold 黑体`,this.ctx.fillStyle="#eee",this.ctx.textAlign="center",this.ctx.shadowBlur=1,this.ctx.textBaseline="middle",this.ctx.fillText(this.text,this.width/2,this.height/2)},down(t){this.position(),this.startLine(t.clientX,t.clientY,t),this.target=t.target,this.target.addEventListener("mousemove",this.move),window.addEventListener("mouseup",this.up)},move(t){this.moveLine(t.clientX,t.clientY,t)},up(){this.target&&this.target.removeEventListener("mousemove",this.move),window.removeEventListener("mouseup",this.up),this.record()},touchstart(t){this.position(),this.startLine(t.changedTouches[0].clientX,t.changedTouches[0].clientY,t)},touchmove(t){this.moveLine(t.touches[0].clientX,t.touches[0].clientY,t)},startLine(t,s){this.ctx.beginPath(),t-=this.start,s-=this.end,this.ctx.moveTo(t,s)},moveLine(t,s,n){n&&n.preventDefault(),t-=this.start,s-=this.end,this.ctx.lineTo(t,s),this.ctx.stroke()},clear(){this.ctx.clearRect(0,0,this.width,this.height)},cancel(){this.clear(),this.edit=!1},touchend(){this.record()},record(){this.stack.push(this.restorePoint)},save(){const t=this.canvas.toDataURL("image/png");this.blank===t?this.$emit("input",""):this.$emit("input",t),this.edit=!1,this.stack.length=0,this.ctx.clearRect(0,0,this.width,this.height)},showSign(){this.disabled||(this.edit=!0)}}},__cssModules$k={};var __component__$k=normalizeComponent(__vue2_script$k,render$g,staticRenderFns$g,!1,__vue2_injectStyles$k,null,null,null);function __vue2_injectStyles$k(t){for(let s in __cssModules$k)this[s]=__cssModules$k[s]}const SignPanel=function(){return __component__$k.exports}();var render$f=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-skeleton"},[t.loading?t._l(t.number,function(r,a){return n("div",{key:a,staticClass:"avue-skeleton__item"},[n("div",{staticClass:"avue-skeleton__header"},[t.avatar?n("span",{staticClass:"avue-skeleton__vatar'),className]"}):t._e()]),n("div",{staticClass:"avue-skeleton__content"},[n("h3",{class:["avue-skeleton__title",t.className]}),n("div",{staticClass:"avue-skeleton__list"},t._l(t.rows,function(o,l){return n("p",{key:l,class:["avue-skeleton__li",t.className],style:t.styleName})}),0)])])}):n("div",[t._t("default")],2)],2)},staticRenderFns$f=[];const Skeleton_vue_vue_type_style_index_0_lang="",prefixCls="avue-skeleton",__vue2_script$j={name:"Skeleton",props:{loading:{type:Boolean,default:!0},avatar:Boolean,active:{type:Boolean,default:!0},block:Boolean,number:{type:Number,default:1},rows:{type:Number,default:3}},computed:{styleName(){return this.block?{width:"100%"}:{}},className(){const{active:t}=this;return{[`${prefixCls}__loading`]:t}}}},__cssModules$j={};var __component__$j=normalizeComponent(__vue2_script$j,render$f,staticRenderFns$f,!1,__vue2_injectStyles$j,null,null,null);function __vue2_injectStyles$j(t){for(let s in __cssModules$j)this[s]=__cssModules$j[s]}const Skeleton=function(){return __component__$j.exports}();function oneOf(t,s){for(let n=0;n<s.length;n++)if(t===s[n])return!0;return!1}const on=function(){return document.addEventListener?function(t,s,n){t&&s&&n&&t.addEventListener(s,n,!1)}:function(t,s,n){t&&s&&n&&t.attachEvent(`on${s}`,n)}}(),off=function(){return document.removeEventListener?function(t,s,n){t&&s&&t.removeEventListener(s,n,!1)}:function(t,s,n){t&&s&&t.detachEvent(`on${s}`,n)}}();var render$e=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{ref:"outerWrapper",class:t.wrapperClasses},[t.isHorizontal?n("div",{class:`${t.prefix}-horizontal`},[t.hideLeft?n("div",{class:[`${t.prefix}-pane`,"right-pane"],staticStyle:{left:"0"}},[t._t("right")],2):[n("div",{class:[`${t.prefix}-pane`,"left-pane"],style:{right:`${t.anotherOffset}%`}},[t._t("left")],2),n("div",{class:`${t.prefix}-trigger-con`,style:{left:`calc(${t.offset}% + ${t.triggerSize/2}px)`,width:`${t.triggerSize}px`},on:{mousedown:t.handleMousedown}},[t._t("trigger",function(){return[n("Trigger",{attrs:{mode:"vertical"}})]})],2),n("div",{class:[`${t.prefix}-pane`,"right-pane"],style:{left:`calc(${t.offset}% + ${t.triggerSize}px)`}},[t._t("right")],2)]],2):n("div",{class:`${t.prefix}-vertical`},[n("div",{class:[`${t.prefix}-pane`,"top-pane"],style:{bottom:`${t.anotherOffset}%`}},[t._t("top")],2),n("div",{class:`${t.prefix}-trigger-con`,style:{top:`calc(${t.offset}% + ${t.triggerSize/2}px)`,height:`${t.triggerSize}px`},on:{mousedown:t.handleMousedown}},[t._t("trigger",function(){return[n("Trigger",{attrs:{mode:"horizontal"}})]})],2),n("div",{class:[`${t.prefix}-pane`,"bottom-pane"],style:{top:`calc(${t.offset}% + ${t.triggerSize}px)`}},[t._t("bottom")],2)]),n("ResizeObserver",{on:{notify:t.resetOffset}})],1)},staticRenderFns$e=[];const SplitPane_vue_vue_type_style_index_0_lang="",__vue2_script$i={name:"SplitPane",props:{value:{type:[Number,String],default:.5},mode:{validator(t){return oneOf(t,["horizontal","vertical"])},default:"horizontal"},hideLeft:Boolean,triggerSize:{type:Number,default:6},min:{type:[Number,String],default:"40px"},max:{type:[Number,String],default:"40px"}},data(){return{prefix:"egd-split",offset:0,oldOffset:0,isMoving:!1}},computed:{wrapperClasses(){return[`${this.prefix}-wrapper`,this.isMoving?"no-select":""]},isHorizontal(){return this.mode==="horizontal"},anotherOffset(){return 100-this.offset},valueIsPx(){return typeof this.value=="string"},offsetSize(){return this.isHorizontal?"offsetWidth":"offsetHeight"},computedMin(){return this.getComputedThresholdValue("min")},computedMax(){return this.getComputedThresholdValue("max")}},watch:{value:"resetOffset"},mounted(){return v(this,null,function*(){yield this.$nextTick(),this.resetOffset()})},methods:{resetOffset(){this.offset=(this.valueIsPx?this.px2percent(this.value,this.$refs.outerWrapper[this.offsetSize]):this.value)*1e4/100},px2percent(t,s){return parseFloat(t)/parseFloat(s)},getComputedThresholdValue(t){const s=this.$refs.outerWrapper[this.offsetSize];return this.valueIsPx?typeof this[t]=="string"?this[t]:s*this[t]:typeof this[t]=="string"?this.px2percent(this[t],s):this[t]},getMin(t,s){return this.valueIsPx?`${Math.min(parseFloat(t),parseFloat(s))}px`:Math.min(t,s)},getMax(t,s){return this.valueIsPx?`${Math.max(parseFloat(t),parseFloat(s))}px`:Math.max(t,s)},getAnotherOffset(t){let s=0;return this.valueIsPx?s=`${this.$refs.outerWrapper[this.offsetSize]-parseFloat(t)}px`:s=1-t,s},handleMove(t){const n=(this.isHorizontal?t.pageX:t.pageY)-this.initOffset,r=this.$refs.outerWrapper[this.offsetSize];let a=this.valueIsPx?`${parseFloat(this.oldOffset)+n}px`:this.px2percent(r*this.oldOffset+n,r);const o=this.getAnotherOffset(a);parseFloat(a)<=parseFloat(this.computedMin)&&(a=this.getMax(a,this.computedMin)),parseFloat(o)<=parseFloat(this.computedMax)&&(a=this.getAnotherOffset(this.getMax(o,this.computedMax))),t.atMin=this.value===this.computedMin,t.atMax=this.valueIsPx?this.getAnotherOffset(this.value)===this.computedMax:this.getAnotherOffset(this.value).toFixed(5)===this.computedMax.toFixed(5),this.$emit("input",a),this.$emit("on-moving",t)},handleUp(){this.isMoving=!1,off(window,"mousemove",this.handleMove),off(window,"mouseup",this.handleUp),this.$emit("on-move-end")},handleMousedown(t){this.initOffset=this.isHorizontal?t.pageX:t.pageY,this.oldOffset=this.value,this.isMoving=!0,on(window,"mousemove",this.handleMove),on(window,"mouseup",this.handleUp),this.$emit("on-move-start")}}},__cssModules$i={};var __component__$i=normalizeComponent(__vue2_script$i,render$e,staticRenderFns$e,!1,__vue2_injectStyles$i,null,null,null);function __vue2_injectStyles$i(t){for(let s in __cssModules$i)this[s]=__cssModules$i[s]}const SplitPane=function(){return __component__$i.exports}(),Stateful_vue_vue_type_style_index_0_lang="",__vue2_script$h={name:"Stateful",functional:!0,props:{tag:{type:String,default:"div"},draft:{type:[Array,Boolean],default:()=>[]},doing:{type:[Array,Boolean],default:()=>[]},overdue:{type:[Array,Boolean],default:()=>[]},error:{type:[Array,Boolean],default:()=>[]},done:{type:[Array,Boolean],default:()=>[]},closed:{type:[Array,Boolean],default:()=>[]},type:{type:String,validator:t=>["doing","overdue","error","done","closed"].indexOf(t)>-1},status:{type:[String,Number]},size:{type:String}},render(t,{props:s,data:n,children:r}){const{draft:a,doing:o,overdue:l,error:c,done:u,closed:d,status:p,tag:h,size:m,type:_}=s,x={draft:Array.isArray(a)?a.includes(p):a,doing:Array.isArray(o)?o.includes(p):o,overdue:Array.isArray(l)?l.includes(p):l,error:Array.isArray(c)?c.includes(p):c,done:Array.isArray(u)?u.includes(p):u,closed:Array.isArray(d)?d.includes(p):d};return t(h,n,[t("span",{style:{width:m,height:m},class:["stateful",_,x]}),r])}};let __vue2_render$3,__vue2_staticRenderFns$3;const __cssModules$h={};var __component__$h=normalizeComponent(__vue2_script$h,__vue2_render$3,__vue2_staticRenderFns$3,!1,__vue2_injectStyles$h,null,null,null);function __vue2_injectStyles$h(t){for(let s in __cssModules$h)this[s]=__cssModules$h[s]}const Stateful=function(){return __component__$h.exports}();var render$d=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"static-pageable-table"},[n("ElTable",t._g(t._b({attrs:{size:"mini",data:t.records}},"ElTable",t.$attrs,!1),t.$listeners),[t._t("default",function(){return[t._v("请添加表格列")]})],2),n("ElPagination",{attrs:{"current-page":t.page.page,"hide-on-single-page":!0,"page-size":t.page.limit,total:t.page.total,background:"",layout:"total, prev, pager, next"},on:{"current-change":function(r){t.page.page=r}}})],1)},staticRenderFns$d=[];const StaticPageableTable_vue_vue_type_style_index_0_lang="",__vue2_script$g={name:"StaticPageableTable",props:{rows:{type:Array,default:()=>[]}},data(){return{page:{total:0,page:1,limit:25},records:[]}},computed:{observer(){return{page:this.page.page,rows:this.rows}}},watch:{rows(){this.page.page=1},observer:{immediate:!0,handler(){this.page.total=this.rows.length,this.fetchData()}}},methods:{fetchData(){this.records=lodash$1.chunk(this.rows,this.page.limit)[this.page.page-1]}}},__cssModules$g={};var __component__$g=normalizeComponent(__vue2_script$g,render$d,staticRenderFns$d,!1,__vue2_injectStyles$g,null,null,null);function __vue2_injectStyles$g(t){for(let s in __cssModules$g)this[s]=__cssModules$g[s]}const StaticPageableTable=function(){return __component__$g.exports}();var render$c=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"egd-swiper"},[n("ElButton",{staticClass:"el-carousel__arrow el-carousel__arrow--left",attrs:{disabled:t.reachedLeft,icon:"el-icon-arrow-left"},on:{click:t.clickLeft}}),n("div",{ref:"swiperBox",staticClass:"egd-swiper-box",on:{wheel:function(r){return r.stopPropagation(),r.preventDefault(),t.onMouseWheel.apply(null,arguments)}}},[n("div",{ref:"swiperContent",staticClass:"egd-swiper-content",style:t.swiperContentStyle},[t._t("default")],2)]),n("ElButton",{staticClass:"el-carousel__arrow el-carousel__arrow--right",attrs:{disabled:t.reachedRight,icon:"el-icon-arrow-right"},on:{click:t.clickRight}}),n("ResizeObserver",{on:{notify:t.resize}})],1)},staticRenderFns$c=[];const Swiper_vue_vue_type_style_index_0_lang="",__vue2_script$f={name:"Swiper",data(){return{mouseDown:!1,swiperBoxWith:0,swiperContentWidth:0,translateX:0,reachedLeft:!0,reachedRight:!1,childrenWidth:[],swiperContentStyle:{transitionDuration:"0ms",transform:"translate3d(0px, 0px, 0px)"}}},mounted(){return v(this,null,function*(){yield this.layout()})},updated(){this.computeContentWidth()},methods:{layout(){return v(this,null,function*(){yield this.$nextTick(),this.computeContentWidth(),this.resize()})},resize(){console.log(1),this.swiperBoxWith=this.$refs.swiperBox.offsetWidth},computeContentWidth(){let t=0;const s=[],{children:n}=this.$refs.swiperContent;Array.prototype.forEach.call(n,r=>{const a=core.getEleWidth(r);t+=a,s.push(a)}),this.childrenWidth=s,this.swiperContentWidth=t},updateDuration(t){this.swiperContentStyle.transitionDuration=t?"300ms":"0ms"},setTranslateX(t){this.swiperContentWidth<=this.swiperBoxWith||(t>0?(this.translateX=0,this.reachedLeft=!0,this.reachedRight=!1):t-this.swiperBoxWith<-this.swiperContentWidth?(this.translateX=-this.swiperContentWidth+this.swiperBoxWith,this.reachedLeft=!1,this.reachedRight=!0):(this.translateX=t,this.reachedLeft=!1,this.reachedRight=!1),this.swiperContentStyle.transform=`translate3d(${this.translateX}px, 0px, 0px)`)},clickLeft(){this.updateDuration(!0);let t=this.translateX+this.swiperBoxWith,s=t;if(t<0){s=0,t=-t;for(let n=0,r=this.childrenWidth.length;n<r&&(s+=this.childrenWidth[n],!(s>=t));n++);s=-s}this.setTranslateX(s)},clickRight(){this.updateDuration(!0);const t=Math.abs(this.translateX-this.swiperBoxWith);let s=0;for(let n=0,r=this.childrenWidth.length;n<r;n++)if(s+=this.childrenWidth[n],s>=t){s>t&&(s-=this.childrenWidth[n]);break}this.setTranslateX(-s)},onMouseWheel(t){this.updateDuration(!0),t.deltaMode===WheelEvent.DOM_DELTA_LINE?this.setTranslateX(this.translateX-t.deltaY*30):t.deltaMode===WheelEvent.DOM_DELTA_PAGE?t.deltaY>0?this.clickRight():this.clickLeft():this.setTranslateX(this.translateX-t.deltaY)},onMouseDown(t){this.mouseDown=!0,this.startX=t.clientX,this.translateXRaw=this.translateX,window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("mouseup",this.onMouseUp,{passive:!1})},onMouseUp(t){this.mouseDown=!1,this.updateDuration(!0),this.$refs.swiperContent.addEventListener("transitionend",this.transitionend),this.$refs.swiperContent.addEventListener("webkitTransitionEnd",this.transitionend);const s=t.clientX-this.startX;if(s<0){const n=this.translateX+s;this.setTranslateX(n)}if(s>0){const n=this.translateX+s;this.setTranslateX(n)}window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp)},onMouseMove(t){this.mouseDown&&requestAnimationFrame(()=>{const s=t.clientX-this.startX,n=this.translateXRaw+s;this.setTranslateX(n)})},transitionend(){this.updateDuration(!1),this.$refs.swiperContent.removeEventListener("transitionend",this.transitionend),this.$refs.swiperContent.removeEventListener("webkitTransitionEnd",this.transitionend)}}},__cssModules$f={};var __component__$f=normalizeComponent(__vue2_script$f,render$c,staticRenderFns$c,!1,__vue2_injectStyles$f,null,null,null);function __vue2_injectStyles$f(t){for(let s in __cssModules$f)this[s]=__cssModules$f[s]}const Swiper=function(){return __component__$f.exports}(),parentMixin={mounted(){this.value>=0&&(this.currentIndex=this.value),this.updateIndex()},methods:{updateIndex(){if(!this.$children||!this.$children.length)return;this.number=this.$children.length;const t=this.$children;for(let s=0;s<t.length;s++)t[s].currentIndex=s,t[s].currentSelected&&(this.index=s)}},props:{value:Number},watch:{currentIndex(t,s){s>-1&&this.$children[s]&&(this.$children[s].currentSelected=!1),t>-1&&this.$children[t]&&(this.$children[t].currentSelected=!0),this.$emit("input",t),this.$emit("on-index-change",t,s)},index(t){this.currentIndex=t},value(t){this.index=t}},data(){return{index:-1,currentIndex:this.index,number:this.$children.length}}},childMixin={props:{selected:{type:Boolean,default:!1}},mounted(){this.$parent.updateIndex()},beforeDestroy(){const t=this.$parent;this.$nextTick(()=>{t.updateIndex()})},methods:{onItemClick(t){if(this.$parent.preventDefault){this.$parent.$emit("on-before-index-change",this.currentIndex);return}(typeof this.disabled=="undefined"||this.disabled===!1)&&(this.currentSelected=!0,this.$parent.currentIndex=this.currentIndex,this.$nextTick(()=>{this.$emit("on-item-click",this.currentIndex)}))}},watch:{currentSelected(t){t&&(this.$parent.index=this.currentIndex)},selected(t){this.currentSelected=t}},data(){return{currentIndex:-1,currentSelected:this.selected}}};var render$b=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"vux-tab-wrap",class:t.barPosition==="top"?"vux-tab-bar-top":""},[n("div",{staticClass:"vux-tab-container"},[n("div",{ref:"nav",staticClass:"vux-tab",class:[{"vux-tab-no-animate":!t.animate,scrollable:t.scrollable}]},[t._t("default"),t.animate?n("div",{staticClass:"vux-tab-ink-bar",class:t.barClass,style:t.barStyle},[t.customBarWidth?n("span",{staticClass:"vux-tab-bar-inner",style:t.innerBarStyle}):t._e()]):t._e()],2)])])},staticRenderFns$b=[];const Tab_vue_vue_type_style_index_0_lang="",__vue2_script$e={name:"Tab",mixins:[parentMixin],props:{lineWidth:{type:Number,default:3},activeColor:String,barActiveColor:String,animate:{type:Boolean,default:!0},customBarWidth:[Function,String],scrollThreshold:{type:Number,default:4},barPosition:{type:String,default:"bottom",validator(t){return["bottom","top"].indexOf(t)!==-1}}},data(){return{direction:"forward",hasReady:!1}},computed:{barLeft(){if(this.hasReady){const t=this.scrollable?window.innerWidth/this.$children[this.currentIndex||0].$el.getBoundingClientRect().width:this.number;return`${this.currentIndex*(100/t)}%`}return null},barRight(){if(this.hasReady){const t=this.scrollable?window.innerWidth/this.$children[this.currentIndex||0].$el.getBoundingClientRect().width:this.number;return`${(t-this.currentIndex-1)*(100/t)}%`}return null},innerBarStyle(){return{width:typeof this.customBarWidth=="function"?this.customBarWidth(this.currentIndex):this.customBarWidth,backgroundColor:this.barActiveColor||this.activeColor}},barStyle(){const t={left:this.barLeft,right:this.barRight,display:"block",height:`${this.lineWidth}px`,transition:this.hasReady?null:"none"};return this.customBarWidth?t.backgroundColor="transparent":t.backgroundColor=this.barActiveColor||this.activeColor,t},barClass(){return{"vux-tab-ink-bar-transition-forward":this.direction==="forward","vux-tab-ink-bar-transition-backward":this.direction==="backward"}},scrollable(){return this.number>this.scrollThreshold}},watch:{currentIndex(t,s){this.direction=t>s?"forward":"backward",this.$emit("on-index-change",t,s),this.hasReady&&this.scrollToActiveTab()}},mounted(){this.$nextTick(()=>{setTimeout(()=>{this.hasReady=!0},0)})},methods:{scrollToActiveTab(){if(!this.scrollable||!this.$children||!this.$children.length)return;const t=this.$children[this.currentIndex].$el;let s=0;const n=()=>{const a=this.$refs.nav;a.scrollLeft+=(t.offsetLeft-(a.offsetWidth-t.offsetWidth)/2-a.scrollLeft)/15,++s<15&&window.requestAnimationFrame(n)};window.requestAnimationFrame(n)}}},__cssModules$e={};var __component__$e=normalizeComponent(__vue2_script$e,render$b,staticRenderFns$b,!1,__vue2_injectStyles$e,null,null,null);function __vue2_injectStyles$e(t){for(let s in __cssModules$e)this[s]=__cssModules$e[s]}const Tab=function(){return __component__$e.exports}();var render$a=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"vux-tab-item",class:[t.currentSelected?t.activeClass:"",{"vux-tab-selected":t.currentSelected,"vux-tab-disabled":t.disabled}],style:t.style,on:{click:t.onItemClick}},[t._t("default"),typeof t.badgeLabel!="undefined"&&t.badgeLabel!==""?n("span",{staticClass:"vux-tab-item-badge",style:{background:t.badgeBackground,color:t.badgeColor}},[t._v(" "+t._s(t.badgeLabel)+" ")]):t._e()],2)},staticRenderFns$a=[];const __vue2_script$d={name:"TabItem",mixins:[childMixin],props:{activeClass:{type:String},disabled:Boolean,badgeBackground:{type:String,default:"#f74c31"},badgeColor:{type:String,default:"#fff"},badgeLabel:{type:String}},computed:{style(){return{borderWidth:`${this.$parent.lineWidth}px`,borderColor:this.$parent.activeColor,color:this.currentSelected?this.$parent.activeColor:this.disabled?this.$parent.disabledColor:this.$parent.defaultColor,border:this.$parent.animate?"none":"auto"}}}},__cssModules$d={};var __component__$d=normalizeComponent(__vue2_script$d,render$a,staticRenderFns$a,!1,__vue2_injectStyles$d,null,null,null);function __vue2_injectStyles$d(t){for(let s in __cssModules$d)this[s]=__cssModules$d[s]}const TabItem=function(){return __component__$d.exports}(),tableColumnProps={props:{type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{},minWidth:{},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showTooltipWhenOverflow:Boolean,showOverflowTooltip:{type:Boolean,default:!0},fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default(){return["ascending","descending",null]},validator(t){return t.every(s=>["ascending","descending",null].indexOf(s)>-1)}}}},__vue2_script$c={name:"TableColumn",functional:!0,mixins:[tableColumnProps],render(t,{data:s,props:n,children:r}){return t("ElTableColumn",S(f({},s),{props:S(f({},n),{showOverflowTooltip:["selection","single-selection","index","expand"].includes(n.type)?!1:n.showOverflowTooltip})}),r)}};let __vue2_render$2,__vue2_staticRenderFns$2;const __cssModules$c={};var __component__$c=normalizeComponent(__vue2_script$c,__vue2_render$2,__vue2_staticRenderFns$2,!1,__vue2_injectStyles$c,null,null,null);function __vue2_injectStyles$c(t){for(let s in __cssModules$c)this[s]=__cssModules$c[s]}const TableColumn=function(){return __component__$c.exports}();var render$9=function(){var t=this,s=t.$createElement,n=t._self._c||s;return t.pageFlag&&t.optVal(t.crud.tableOption.page,!0)?n("ElCard",{staticClass:"avue-pagination",attrs:{shadow:t.crud.isCard}},[t._t("page"),n("ElPagination",{staticStyle:{"margin-top":"25px"},attrs:{small:t.crud.size==="mini",disabled:t.defaultPage.disabled,"hide-on-single-page":t.defaultPage.single,"pager-count":t.defaultPage.pagerCount,"current-page":t.defaultPage.currentPage,background:t.defaultPage.background,"page-size":t.defaultPage.pageSize,"page-sizes":t.defaultPage.pageSizes,layout:t.defaultPage.layout,total:t.defaultPage.total},on:{"update:currentPage":function(r){return t.$set(t.defaultPage,"currentPage",r)},"update:current-page":function(r){return t.$set(t.defaultPage,"currentPage",r)},"size-change":t.sizeChange,"prev-click":t.prevClick,"next-click":t.nextClick,"current-change":t.currentChange}})],2):t._e()},staticRenderFns$9=[];const __vue2_script$b={name:"TablePage",inject:["crud"],data(){return{config:config$1,defaultPage:{single:!1,total:0,pagerCount:7,currentPage:1,pageSize:10,pageSizes:[10,20,30,40,50,100],layout:"total, sizes, prev, pager, next, jumper",background:!0}}},computed:{pageFlag(){return this.defaultPage.total!=0}},watch:{"crud.page":{handler(){this.pageInit()},deep:!0},pageFlag(){this.crud.getTableHeight()},"defaultPage.total"(){this.defaultPage.total===(this.defaultPage.currentPage-1)*this.defaultPage.pageSize&&this.defaultPage.total!=0&&(this.defaultPage.currentPage=this.defaultPage.currentPage-1,this.currentChange(this.defaultPage.currentPage))}},created(){this.crud.isMobile&&(this.defaultPage.layout="total, sizes, prev, pager, next"),this.pageInit(),this.crud.$emit("on-load",this.defaultPage)},methods:{optVal,pageInit(){this.defaultPage=Object.assign(this.defaultPage,this.crud.page),this.updateValue()},updateValue(){this.crud.$emit("update:page",this.defaultPage)},nextClick(t){this.crud.$emit("next-click",t)},prevClick(t){this.crud.$emit("prev-click",t)},sizeChange(t){this.defaultPage.currentPage=1,this.defaultPage.pageSize=t,this.updateValue(),this.crud.$emit("on-load",this.defaultPage),this.crud.$emit("size-change",t)},currentChange(t){this.updateValue(),this.crud.$emit("on-load",this.defaultPage),this.crud.$emit("current-change",t)}}},__cssModules$b={};var __component__$b=normalizeComponent(__vue2_script$b,render$9,staticRenderFns$9,!1,__vue2_injectStyles$b,null,null,null);function __vue2_injectStyles$b(t){for(let s in __cssModules$b)this[s]=__cssModules$b[s]}const TablePage=function(){return __component__$b.exports}();var render$8=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"table-view"},[n("Toolbar",t._g(t._b({on:{search:t.toggleSearch,del:t.del,create:t.create,reload:t.reloadTable,imp:function(r){t.importDialogVisible=!0}},scopedSlots:t._u([{key:"default",fn:function(){return[t._t("toolbar-button")]},proxy:!0},t._l(t.buttonSlots,function(r){return{key:r,fn:function(){return[t._t(r)]},proxy:!0}})],null,!0)},"Toolbar",t.toolbarProps,!1),t.toolbarListeners)),n("div",{staticClass:"table-view-content-wrapper"},[n("div",{staticClass:"table-view-content"},[t.treeProps.show?n("div",{ref:"treeScroller",staticClass:"table-view-sidebar",on:{scroll:t.onTreeScroll}},[n("div",{staticStyle:{"font-size":"16px"}},[t._v(" 视图导航 ")]),n("EditableTree",t._g(t._b({ref:"tree",attrs:{readonly:""},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.node,o=r.data;return[t._t("tree-node",function(){return[n("span",[n("i",{staticClass:"node-icon",class:a.childNodes.length>0?a.expanded?"el-icon-folder-opened":"el-icon-folder":"el-icon-tickets"}),t._t("tree-label",function(){return[t._v(t._s(a.label))]},{node:a,data:o})],2)]},{node:a,data:o})]}}],null,!0)},"EditableTree",t.treeProps,!1),t.treeListeners))],1):t._e(),n("div",{staticClass:"table-view-table"},[n("PageableTable",t._g(t._b({ref:"table",class:[{"border-top":t.borderTop,"border-bottom":t.borderBottom,"border-left":t.borderLeft||t.treeAttrs&&t.treeAttrs.show,"border-right":t.borderRight}],attrs:{border:t.border},on:{"row-dblclick":t.rowDbClick,"selection-change":t.onSelectionChange}},"PageableTable",t.tableProps,!1),t.tableListeners),[t._t("columns")],2)],1)]),t.toolbarProps.searchable?n("div",{staticClass:"slide-panel",style:{right:`${t.right}px`,width:`${t.searchPanelProps.width}px`}},[t._m(0),n("div",{staticClass:"slide-panel-content"},[n("ElForm",{ref:"form",attrs:{"label-position":"right",model:t.searchModel||t.searchPanelProps.model,size:"mini","label-width":t.labelWidth},nativeOn:{"!submit":function(r){return r.preventDefault(),t.onSearchClick.apply(null,arguments)}}},[n("FormItemConfigProvider",{attrs:{block:"","wrap-col":!1}},[n("ElRow",{attrs:{gutter:0}},[t._t("search-form",function(){return[n("p",[t._v("请添加搜索条件!")])]})],2)],1),n("ElFormItem",{attrs:{"label-width":"0"}},[n("div",{staticClass:"slide-panel-actions"},[n("ElButton",{attrs:{type:"primary","native-type":"submit",size:"mini"}},[t._v(" 开始搜索 ")]),n("ElButton",{attrs:{size:"mini"},on:{click:t.onClearClick}},[t._v(" 清除条件 ")])],1)])],1)],1)]):t._e()]),t._t("default")],2)},staticRenderFns$8=[function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"slide-panel-line"},[n("div",{staticClass:"slide-panel-line-indicator"})])}];const TableView_vue_vue_type_style_index_0_lang="",builtInButtons=["back","create","save","withdraw","edit","submit","publish","agree","disagree","reject","finish","cancel","enable","exp","imp","del","disabled","reload","slot"],__vue2_script$a={name:"TableView",bus:{reloadTableView(t,s){if(this._viewIds)if(core.isString(t)||core.isArray(t)){let n=t;core.isString(n)&&(n=n.split(",")),this._viewIds.some(r=>n.includes(r))&&(s?this.$refs.tree&&(core.trace.call(this.$parent||{},"reloadTree"),this.refreshTree()):(core.trace.call(this.$parent||{},"reloadTable"),this.reloadTable()))}else core.warning.call(this.$parent||{},"`viewId`的类型必须是字符串或数组")}},props:{viewId:{type:String},searchPanelAttrs:{type:Object,default:()=>{}},toolbarAttrs:{type:Object,default:()=>{}},toolbarListeners:{type:Object},treeAttrs:{type:Object,default:()=>{}},treeListeners:{type:Object},tableAttrs:{type:Object},searchModel:{type:Object},tableListeners:{type:Object,default:()=>{}},deleteApi:{type:Function},borderTop:Boolean,borderBottom:Boolean,borderLeft:Boolean,borderRight:Boolean,border:{type:Boolean,default:!0},labelWidth:{type:String,default:"80px"},formPath:{type:[String,Function]}},data(){var t;return{importDialogVisible:!1,right:-(((t=this.searchPanelAttrs)==null?void 0:t.width)||350),selectedRows:[]}},computed:{buttonSlots(){return builtInButtons.filter(t=>this.$scopedSlots[t])},toolbarProps(){var r,a;const t={},s=lodash.merge(this.toolbarAttrs,t);let n=(s==null?void 0:s.buttons)||this.$parent.buttons;return n=n||[],n.includes("reload")||(n=[...n,"reload"]),s.buttons=n,s.buttons=core.toStringArray(s.buttons),s.searchable=!!((a=(r=this.$scopedSlots)["search-form"])!=null&&a.call(r)),s},treeProps(){const t={treeProps:{children:"children",label:"label",isLeaf:s=>core.hasOwn(s,"hasChildren")?!s.hasChildren:core.hasOwn(s,"hasChild")?!s.hasChild:!0},show:!1,lazy:!0,readonly:!0,data:[],"expand-first-node":!1,"default-expand-all":!1};return lodash.merge(this.treeAttrs,t)},tableProps(){const t=this.tableAttrs.api||this.$parent.getPage,s={model:this.searchModel||{},height:"auto","highlight-current-row":!0,api:t};return lodash.merge(this.tableAttrs,s)},searchPanelProps(){const t={width:350,model:this.searchModel||{}};return lodash.merge(this.searchPanelAttrs,t)}},created(){this._viewIds=[],this.viewId&&this._viewIds.push(this.viewId),this._viewIds.includes(this.$parent.$options.name)||this._viewIds.push(this.$parent.$options.name)},activated(){return v(this,null,function*(){this.$refs.treeScroller&&(this.treeScrollTop&&(this.$refs.treeScroller.scrollTop=this.treeScrollTop),this.treeScrollLeft&&(this.$refs.treeScroller.scrollLeft=this.treeScrollLeft))})},methods:{onTreeScroll(){this.treeScrollTop=this.$refs.treeScroller.scrollTop,this.treeScrollLeft=this.$refs.treeScroller.scrollLeft},toggleSearch(){this.right=this.right===0?-this.searchPanelProps.width:0},onSearchClick(){return v(this,null,function*(){this.$refs.table.setModel(this.searchModel||this.searchPanelProps.model),yield this.refreshTable()})},onClearClick(){return v(this,null,function*(){this.$emit("reset"),this.$refs.form.resetFields(),this.$refs.table.setModel(this.searchModel||this.searchPanelProps.model),yield this.refreshTable()})},openFrom(t){this.$router.push(fillPath(this.formPath,t))},rowDbClick(t){var s;!((s=this.tableListeners)!=null&&s["row-dblclick"])&&this.formPath&&this.openFrom(t)},onSelectionChange(t){this.selectedRows=t},create(){var t;!((t=this.toolbarListeners)!=null&&t.create)&&this.formPath&&this.openFrom()},del(){return v(this,null,function*(){var s;const t=this.deleteApi||this.$parent.del;if(!((s=this.toolbarListeners)!=null&&s.del)&&core.isFunction(t)){if(!this.selectedRows.length){this.$message.warning("请选择要删除的记录!");return}yield this.$confirm(`您确定要删除选中的[<span class="break-word" style="color: orange">${this.selectedRows.length}</span>]行记录吗?`,"系统提示",{type:"warning",modal:!0,dangerouslyUseHTMLString:!0,closeOnClickModal:!1,beforeClose:(n,r,a)=>v(this,null,function*(){if(n==="confirm")try{r.confirmButtonLoading=!0,r.confirmButtonText="删除...",yield t.call(this,this.selectedRows.map(o=>o.id).join(",")),this.$message.success("删除成功"),yield this.reloadTable(),yield this.refreshTree()}catch(o){}a()})}).catch(n=>n)}})},reloadTable(){var t;(t=this.$refs.table)==null||t.reload()},refreshTable(){return v(this,null,function*(){var t;yield(t=this.$refs.table)==null?void 0:t.getPage()})},refreshTree(){this.$refs.tree.reloadTree()},getSearchModel(){return this.searchPanelProps.model}}},__cssModules$a={};var __component__$a=normalizeComponent(__vue2_script$a,render$8,staticRenderFns$8,!1,__vue2_injectStyles$a,null,null,null);function __vue2_injectStyles$a(t){for(let s in __cssModules$a)this[s]=__cssModules$a[s]}const TableView=function(){return __component__$a.exports}();var render$7=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"tag-render"},[t.tags&&t.tags.length&&t.tags[0]?t._l(t.internalTags,function(r,a){return n("ElTag",{key:a,attrs:{closable:t.enable,"disable-transitions":""},on:{close:function(o){return t.$emit("close",t.tags[a],a)}}},[t._v(" "+t._s(t.getTagName(r))+" ")])}):t.enable?t._e():[n("span",{staticStyle:{color:"#b5b5b5"}},[t._v("无")])],t.enable?n("ElButton",{staticClass:"el-tag el-tag--medium el-tag--light button-new-tag",attrs:{size:"small"},on:{click:function(r){return t.$emit("add")}}},[t._v(" + 添加 ")]):t._e(),t.count?n("span",{staticClass:"tags-count"},[t._v(t._s(t.tags.length&&t.tags[0]?t.tags.length:""))]):t._e()],2)},staticRenderFns$7=[];const TagRender_vue_vue_type_style_index_0_lang="",__vue2_script$9={name:"TagRender",inject:["elFormItem"],props:{enable:{type:Boolean,default:!0},count:{type:Boolean,default:!0},tags:{type:Array,default:()=>[]},transfer:{type:Function,default:null}},computed:{internalTags(){return this.transfer?this.tags.map(t=>{const s=f({},t);return this.transfer(s)}):this.tags}},watch:{tags(t){this.elFormItem&&t&&t.length>0&&this.elFormItem.clearValidate()}},methods:{getTagName(t){return core.hasOwn(t,"name")?t.name:core.hasOwn(t,"label")?t.label:t}}},__cssModules$9={};var __component__$9=normalizeComponent(__vue2_script$9,render$7,staticRenderFns$7,!1,__vue2_injectStyles$9,null,null,null);function __vue2_injectStyles$9(t){for(let s in __cssModules$9)this[s]=__cssModules$9[s]}const TagRender=function(){return __component__$9.exports}();var render$6=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-text-ellipsis",style:{width:t.setPx(t.width,"100%")}},[t._t("before"),n("ElTooltip",{attrs:{content:t.text,disabled:!(t.useTooltip&&t.isHide),placement:t.placement}},[n("span",[n("span",{key:t.keyIndex,ref:"text",staticClass:"avue-text-ellipsis__text"},[t._v(t._s(t.text))])])]),n("span",{ref:"more",staticClass:"avue-text-ellipsis__more"},[t._t("more")],2),t._t("after")],2)},staticRenderFns$6=[];const TextEllipsis_vue_vue_type_style_index_0_lang="",__vue2_script$8={name:"TextEllipsis",props:{text:String,height:Number,width:Number,isLimitHeight:{type:Boolean,default:!0},useTooltip:{type:Boolean,default:!1},placement:String},data(){return{keyIndex:0,oversize:!1,isHide:!1}},watch:{isLimitHeight(){this.init()},text(){this.init()},height(){this.init()}},mounted(){this.init()},methods:{setPx,init(){this.oversize=!1,this.keyIndex+=1;const t=this.$refs.more;t.style.display="none",this.isLimitHeight&&this.limitShow()},limitShow(){this.$nextTick(()=>{const t=this.$refs.text,s=this.$el,n=this.$refs.more;let r=1e3;if(t)if(s.offsetHeight>this.height){n.style.display="inline-block";let a=this.text;for(;s.offsetHeight>this.height&&r>0;)s.offsetHeight>this.height*3?t.innerText=a=a.substring(0,Math.floor(a.length/2)):t.innerText=a=a.substring(0,a.length-1),r--;this.$emit("hide"),this.isHide=!0}else this.$emit("show"),this.isHide=!1})}}},__cssModules$8={};var __component__$8=normalizeComponent(__vue2_script$8,render$6,staticRenderFns$6,!1,__vue2_injectStyles$8,null,null,null);function __vue2_injectStyles$8(t){for(let s in __cssModules$8)this[s]=__cssModules$8[s]}const TextEllipsis=function(){return __component__$8.exports}();var render$5=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticStyle:{"margin-bottom":"10px"},style:{height:t.height}},[t.lazy?[t.focus&&!t.inputDisabled?n("TinymceWrapper",t._b({ref:"editor",attrs:{"query-params":t.queryParams,disabled:t.inputDisabled,"show-types":t.showTypes,value:t.value},on:{"on-blur":t.onEditorBlur,"dialog-show":function(r){t.hideOnBlur=!1},"dialog-hide":function(r){t.hideOnBlur=!0},input:function(r){return t.$emit("input",r)}}},"TinymceWrapper",t.$attrs,!1)):n("div",{staticClass:"editor-shadow",class:[{"show-placeholder":t.isEmpty}],style:{cursor:t.inputDisabled?"not-allowed":"text"},attrs:{placeholder:t.inputDisabled?"":t.placeholder},domProps:{innerHTML:t._s(t.value)},on:{click:t.onEditorShadowClick}})]:[t.inputDisabled?n("div",{staticClass:"editor-shadow",class:[{"show-placeholder":t.isEmpty}],style:{cursor:t.inputDisabled?"not-allowed":"text"},attrs:{placeholder:t.inputDisabled?"":t.placeholder},domProps:{innerHTML:t._s(t.value)}}):n("TinymceWrapper",t._b({ref:"editor",attrs:{"query-params":t.queryParams,disabled:t.inputDisabled,value:t.value},on:{"on-blur":t.onEditorBlur,"dialog-show":function(r){t.hideOnBlur=!1},"dialog-hide":function(r){t.hideOnBlur=!0},input:function(r){return t.$emit("input",r)}}},"TinymceWrapper",t.$attrs,!1))]],2)},staticRenderFns$5=[];const TinymceEditor_vue_vue_type_style_index_0_lang="",__vue2_script$7={name:"TinymceEditor",inject:{elForm:{default:""},elFormItem:{default:""}},props:{disabled:Boolean,lazy:{type:Boolean,default:!0},showTypes:{type:Boolean,default:!0},height:{type:String,default:"300px"},value:String,placeholder:{type:String,default:"请输入..."},queryParams:Object},data(){return{hideOnBlur:!0,focus:!1}},computed:{inputDisabled(){return this.disabled||(this.elForm||{}).disabled},isEmpty(){return!this.value}},watch:{hideOnBlur(t){t&&this.onEditorShadowClick()}},methods:{onEditorBlur(){this.inputDisabled||this.hideOnBlur&&(this.focus=!1)},getEditor(){return this.$refs.editor.$refs.editor.editor},onEditorShadowClick(){return v(this,null,function*(){if(this.inputDisabled)return;this.focus=!0,yield this.$nextTick();const t=this.getEditor();t.focus();const s=t.getBody();t.selection.setCursorLocation(s,s.childNodes.length)})},insertContent(t){this.getEditor().insertContent(t)}}},__cssModules$7={};var __component__$7=normalizeComponent(__vue2_script$7,render$5,staticRenderFns$5,!1,__vue2_injectStyles$7,null,null,null);function __vue2_injectStyles$7(t){for(let s in __cssModules$7)this[s]=__cssModules$7[s]}const TinymceEditor=function(){return __component__$7.exports}(),zhCN={Redo:"重做",Undo:"撤销",Cut:"剪切",Copy:"复制",Paste:"粘贴","Select all":"全选","New document":"新文件",Ok:"确定",Cancel:"取消","Visual aids":"网格线","Font Family":"字体",Bold:"粗体",Italic:"斜体",Underline:"下划线",Strikethrough:"删除线",Superscript:"上标",Subscript:"下标","Clear formatting":"清除格式","Align left":"左边对齐","Align center":"中间对齐","Align right":"右边对齐",Justify:"两端对齐","Bullet list":"项目符号","Numbered list":"编号列表","Decrease indent":"减少缩进","Increase indent":"增加缩进",Close:"关闭",Formats:"格式","Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.":"你的浏览器不支持打开剪贴板,请使用Ctrl+X/C/V等快捷键。",Headers:"标题","Header 1":"标题1","Header 2":"标题2","Header 3":"标题3","Header 4":"标题4","Header 5":"标题5","Header 6":"标题6",Headings:"标题","Heading 1":"标题1","Heading 2":"标题2","Heading 3":"标题3","Heading 4":"标题4","Heading 5":"标题5","Heading 6":"标题6",Preformatted:"预先格式化的",Div:"Div",Pre:"Pre",Code:"代码",Paragraph:"段落",Blockquote:"引文区块",Inline:"文本",Blocks:"基块","Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.":"当前为纯文本粘贴模式,再次点击可以回到普通粘贴模式。",Fonts:"字体","Font Sizes":"字号",Class:"类型","Browse for an image":"浏览图像",OR:"或","Drop an image here":"拖放一张图像至此",Upload:"上传",Block:"块",Align:"对齐",Default:"默认",Circle:"空心圆",Disc:"实心圆",Square:"方块","Lower Alpha":"小写英文字母","Lower Greek":"小写希腊字母","Lower Roman":"小写罗马字母","Upper Alpha":"大写英文字母","Upper Roman":"大写罗马字母","Anchor...":"锚点...",Name:"名称",Id:"标识符","Id should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores.":"标识符应该以字母开头,后跟字母、数字、破折号、点、冒号或下划线。","You have unsaved changes are you sure you want to navigate away?":"你还有文档尚未保存,确定要离开?","Restore last draft":"恢复上次的草稿","Special characters...":"特殊字符...","Source code":"源代码","Insert/Edit code sample":"插入/编辑代码示例",Language:"语言","Code sample...":"示例代码...","Color Picker":"选色器",R:"R",G:"G",B:"B","Left to right":"从左到右","Right to left":"从右到左","Emoticons...":"表情符号...","Metadata and Document Properties":"元数据和文档属性",Title:"标题",Keywords:"关键词",Description:"描述",Robots:"机器人",Author:"作者",Encoding:"编码",Fullscreen:"全屏",Action:"操作",Shortcut:"快捷键",Help:"帮助",Address:"地址","Focus to menubar":"移动焦点到菜单栏","Focus to toolbar":"移动焦点到工具栏","Focus to element path":"移动焦点到元素路径","Focus to contextual toolbar":"移动焦点到上下文菜单","Insert link (if link plugin activated)":"插入链接 (如果链接插件已激活)","Save (if save plugin activated)":"保存(如果保存插件已激活)","Find (if searchreplace plugin activated)":"查找(如果查找替换插件已激活)","Plugins installed ({0}):":"已安装插件 ({0}):","Premium plugins:":"优秀插件:","Learn more...":"了解更多...","You are using {0}":"你正在使用 {0}",Plugins:"插件","Handy Shortcuts":"快捷键","Horizontal line":"水平分割线","Insert/edit image":"插入/编辑图片","Image description":"图片描述",Source:"地址",Dimensions:"大小","Constrain proportions":"保持纵横比",General:"普通",Advanced:"高级",Style:"样式","Vertical space":"垂直边距","Horizontal space":"水平边距",Border:"边框","Insert image":"插入图片","Image...":"图片...","Image list":"图片列表","Rotate counterclockwise":"逆时针旋转","Rotate clockwise":"顺时针旋转","Flip vertically":"垂直翻转","Flip horizontally":"水平翻转","Edit image":"编辑图片","Image options":"图片选项","Zoom in":"放大","Zoom out":"缩小",Crop:"裁剪",Resize:"调整大小",Orientation:"方向",Brightness:"亮度",Sharpen:"锐化",Contrast:"对比度","Color levels":"颜色层次",Gamma:"伽马值",Invert:"反转",Apply:"应用",Back:"后退","Insert date/time":"插入日期/时间","Date/time":"日期/时间","Insert/Edit Link":"插入/编辑链接","Insert/edit link":"插入/编辑链接","Text to display":"显示文字",Url:"地址","Open link in...":"链接打开位置...","Current window":"当前窗口",None:"无","New window":"在新窗口打开","Remove link":"删除链接",Anchors:"锚点","Link...":"链接...","Paste or type a link":"粘贴或输入链接","The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?":"你所填写的URL地址为邮件地址,需要加上mailto:前缀吗?","The URL you entered seems to be an external link. Do you want to add the required http:// prefix?":"你所填写的URL地址属于外部链接,需要加上http://:前缀吗?","Link list":"链接列表","Insert video":"插入视频","Insert/edit video":"插入/编辑视频","Insert/edit media":"插入/编辑媒体","Alternative source":"镜像","Alternative source URL":"替代来源网址","Media poster (Image URL)":"封面(图片地址)","Paste your embed code below:":"将内嵌代码粘贴在下面:",Embed:"内嵌","Media...":"多媒体...","Nonbreaking space":"不间断空格","Page break":"分页符","Paste as text":"粘贴为文本",Preview:"预览","Print...":"打印...",Save:"保存",Find:"查找","Replace with":"替换为",Replace:"替换","Replace all":"全部替换",Previous:"上一个",Next:"下一个","Find and replace...":"查找并替换...","Could not find the specified string.":"未找到搜索内容.","Match case":"区分大小写","Find whole words only":"全字匹配","Spell check":"拼写检查",Ignore:"忽略","Ignore all":"全部忽略",Finish:"完成","Add to Dictionary":"添加到字典","Insert table":"插入表格","Table properties":"表格属性","Delete table":"删除表格",Cell:"单元格",Row:"行",Column:"列","Cell properties":"单元格属性","Merge cells":"合并单元格","Split cell":"拆分单元格","Insert row before":"在上方插入","Insert row after":"在下方插入","Delete row":"删除行","Row properties":"行属性","Cut row":"剪切行","Copy row":"复制行","Paste row before":"粘贴到上方","Paste row after":"粘贴到下方","Insert column before":"在左侧插入","Insert column after":"在右侧插入","Delete column":"删除列",Cols:"列",Rows:"行",Width:"宽",Height:"高","Cell spacing":"单元格外间距","Cell padding":"单元格内边距","Show caption":"显示标题",Left:"左对齐",Center:"居中",Right:"右对齐","Cell type":"单元格类型",Scope:"范围",Alignment:"对齐方式","H Align":"水平对齐","V Align":"垂直对齐",Top:"顶部对齐",Middle:"垂直居中",Bottom:"底部对齐","Header cell":"表头单元格","Row group":"行组","Column group":"列组","Row type":"行类型",Header:"表头",Body:"表体",Footer:"表尾","Border color":"边框颜色","Insert template...":"插入模板...",Templates:"模板",Template:"模板","Text color":"文字颜色","Background color":"背景色","Custom...":"自定义...","Custom color":"自定义颜色","No color":"无","Remove color":"移除颜色","Table of Contents":"内容列表","Show blocks":"显示区块边框","Show invisible characters":"显示不可见字符","Word count":"字数","Words: {0}":"字数:{0}","{0} words":"{0} 字",File:"文件",Edit:"编辑",Insert:"插入",View:"视图",Format:"格式",Table:"表格",Tools:"工具","Powered by {0}":"由{0}驱动","Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help":"在编辑区按ALT-F9打开菜单,按ALT-F10打开工具栏,按ALT-0查看帮助","Image title":"图片标题","Border width":"边框宽度","Border style":"边框样式",Error:"错误",Warn:"警告",Valid:"有效","To open the popup, press Shift+Enter":"按Shitf+Enter键打开对话框","Rich Text Area. Press ALT-0 for help.":"编辑区。按Alt+0键打开帮助。","System Font":"系统字体","Failed to upload image: {0}":"图片上传失败: {0}","Failed to load plugin: {0} from url {1}":"插件加载失败: {0} 来自链接 {1}","Failed to load plugin url: {0}":"插件加载失败 链接: {0}","Failed to initialize plugin: {0}":"插件初始化失败: {0}",example:"示例",Search:"搜索",All:"全部",Currency:"货币",Text:"文字",Quotations:"引用",Mathematical:"数学","Extended Latin":"拉丁语扩充",Symbols:"符号",Arrows:"箭头","User Defined":"自定义","dollar sign":"美元符号","currency sign":"货币符号","euro-currency sign":"欧元符号","colon sign":"冒号","cruzeiro sign":"克鲁赛罗币符号","french franc sign":"法郎符号","lira sign":"里拉符号","mill sign":"密尔符号","naira sign":"奈拉符号","peseta sign":"比塞塔符号","rupee sign":"卢比符号","won sign":"韩元符号","new sheqel sign":"新谢克尔符号","dong sign":"越南盾符号","kip sign":"老挝基普符号","tugrik sign":"图格里克符号","drachma sign":"德拉克马符号","german penny symbol":"德国便士符号","peso sign":"比索符号","guarani sign":"瓜拉尼符号","austral sign":"澳元符号","hryvnia sign":"格里夫尼亚符号","cedi sign":"塞地符号","livre tournois sign":"里弗弗尔符号","spesmilo sign":"spesmilo符号","tenge sign":"坚戈符号","indian rupee sign":"印度卢比","turkish lira sign":"土耳其里拉","nordic mark sign":"北欧马克","manat sign":"马纳特符号","ruble sign":"卢布符号","yen character":"日元字样","yuan character":"人民币元字样","yuan character, in hong kong and taiwan":"元字样(港台地区)","yen/yuan character variant one":"元字样(大写)","Loading emoticons...":"加载表情符号...","Could not load emoticons":"不能加载表情符号",People:"人类","Animals and Nature":"动物和自然","Food and Drink":"食物和饮品",Activity:"活动","Travel and Places":"旅游和地点",Objects:"物件",Flags:"旗帜",Characters:"字符","Characters (no spaces)":"字符(无空格)","Error: Form submit field collision.":"错误: 表单提交字段冲突。","Error: No form element found.":"错误: 没有表单控件。",Update:"更新","Color swatch":"颜色样本",Turquoise:"青绿色",Green:"绿色",Blue:"蓝色",Purple:"紫色","Navy Blue":"海军蓝","Dark Turquoise":"深蓝绿色","Dark Green":"深绿色","Medium Blue":"中蓝色","Medium Purple":"中紫色","Midnight Blue":"深蓝色",Yellow:"黄色",Orange:"橙色",Red:"红色","Light Gray":"浅灰色",Gray:"灰色","Dark Yellow":"暗黄色","Dark Orange":"深橙色","Dark Red":"深红色","Medium Gray":"中灰色","Dark Gray":"深灰色",Black:"黑色",White:"白色","Switch to or from fullscreen mode":"切换全屏模式","Open help dialog":"打开帮助对话框",history:"历史",styles:"样式",formatting:"格式化",alignment:"对齐",indentation:"缩进","permanent pen":"记号笔",comments:"备注",Anchor:"锚点","Special character":"特殊符号","Code sample":"代码示例",Color:"颜色",Emoticons:"表情","Document properties":"文档属性",Image:"图片","Insert link":"插入链接",Target:"打开方式",Link:"链接",Poster:"封面",Media:"媒体",Print:"打印",Prev:"上一个","Find and replace":"查找和替换","Whole words":"全字匹配",Spellcheck:"拼写检查",Caption:"标题","Insert template":"插入模板"};var render$4=function(){var t=this,s=t.$createElement,n=t._self._c||s;return t.show?n("div",{class:["tinymce-editor",{"none-resize":!t.resize}]},[n("Editor",{ref:"editor",attrs:{disabled:t.inputDisabled,"model-events":"change input undo redo SetContent",init:t.init},model:{value:t.val,callback:function(r){t.val=r},expression:"val"}}),n("ElUpload",{ref:"uploader",staticStyle:{display:"none"},attrs:{action:t.action,headers:t.headers,"before-upload":t.beforeUploadFile,"on-success":t.onFileUploadSuccess,"show-file-list":!1,data:{unid:t.guid(),type:t.fileLabel},"auto-upload":"",accept:".jpg,.jpeg,.png,.gif,.bmp"}},[n("span")])],1):t._e()},staticRenderFns$4=[];const TinymceWrapper_vue_vue_type_style_index_0_lang="";tinymce.addI18n("zh_CN",zhCN);const __vue2_script$6={name:"TinymceWrapper",components:{Editor},inject:{elForm:{default:""},elFormItem:{default:""}},props:{value:{type:String,default:""},resize:Boolean,disabled:{type:Boolean,default:!1},showTypes:{type:Boolean,default:!0},plugins:{type:[String,Array],default:""},toolbar:{type:[String,Array],default:""},buttons:{type:[Array]},dialogTitle:{type:String,default:"编辑"},queryParams:Object,getHeader:Function,getUploadUrl:Function,imageUrl:String},data(){const s=["fullscreen","image","wordcount"].join(","),n=this.buttons||[];let r=this.toolbar||" | ";return r=`bold italic underline | alignleft aligncenter alignright alignjustify | fontselect fontsizeselect | removeformat | | ${r}`,n&&(r+=` ${n.map(o=>o.name).join(" ")}`),r+=" | fullscreen",{val:"",show:!0,init:{setup:o=>{o.settings.dialog_title=this.dialogTitle,o.settings.show_types=this.showTypes,o.on("PreInit",c=>{c.target.dom.doc.body.style.fontFamily="微软雅黑"}),o.on("Blur",c=>{this.$emit("on-blur",c)}),o.on("DialogShow",c=>{this.$emit("dialog-show",c)}),o.on("DialogHide",c=>{this.$emit("dialog-hide",c)}),n.forEach(c=>{c.icon=` ${c.icon}`;const{onclick:u}=c;o.addButton(c.name,S(f({},c),{onclick:()=>u(o)}))});const l={icon:" el-icon-picture",name:"uploadImage",title:"上传图片",onclick:this.upload};o.addButton(l.name,S(f({},l),{onclick:()=>l.onclick(o)}))},toolbar:r,placeholder:"在这里输入文字",content_style:"*{margin:0;padding:0} body{font-family: 微软雅黑, sans-serif;padding:10px; font-size: 18px} .template-tag {font-style: italic;color: #1e90ff;margin: 0 10px;font-weight: bold;cursor: help !important;font-family: 黑体,serif;}",fontname:"宋体",fontFamily:"宋体",branding:!1,query_params:this.queryParams,skin:!1,dialog_title:"",menubar:!1,height:"100%",elementpath:!1,plugins:`${s},${this.plugins}`,font_formats:'微软雅黑="微软雅黑";宋体="宋体";黑体="黑体";仿宋="仿宋";楷体="楷体";隶书="隶书";幼圆="幼圆";Arial="Arial";'}}},computed:{inputDisabled(){return this.disabled||(this.elForm||{}).disabled},fileLabel(){return this.prop?this.prop:this.elFormItem?this.elFormItem.prop:""},action(){var t;return(t=this.getUploadUrl)==null?void 0:t.call(this)},headers(){var t;return(t=this.getHeader)==null?void 0:t.call(this)}},watch:{value:{immediate:!0,handler(t){this.val=t}},dialogTitle(t){this.getEditor()&&(this.getEditor().settings.dialog_title=t)},val(t){this.elForm&&this.elFormItem&&this.elForm.clearValidate([this.elFormItem.prop]),this.$emit("input",t)}},deactivated(){this.show=!1},activated(){this.show=!0},methods:{getEditor(){return this.$refs.editor.editor},guid:core.guid,focus(){this.getEditor().focus()},upload(){this.$refs.uploader.$refs["upload-inner"].handleClick()},beforeUploadFile(){},onFileUploadSuccess(t){this.getEditor().insertContent(`<img alt="图片" src="${t.data.filePath.replace("/var/local/data/merge",this.imageUrl||"")}"/>`)}}},__cssModules$6={};var __component__$6=normalizeComponent(__vue2_script$6,render$4,staticRenderFns$4,!1,__vue2_injectStyles$6,null,null,null);function __vue2_injectStyles$6(t){for(let s in __cssModules$6)this[s]=__cssModules$6[s]}const TinymceWrapper=function(){return __component__$6.exports}(),builtinButtons={back:{label:"返回",type:"primary",icon:"el-icon-d-arrow-left"},cancel:{label:"取消",icon:"fa fa-undo"},create:{label:"新增",type:"primary",icon:"el-icon-plus"},save:{label:"保存",type:"primary",icon:"fa fa-save"},withdraw:{label:"撤回",type:"primary",icon:"fa fa-undo"},edit:{label:"编辑",type:"primary",icon:"el-icon-edit-outline"},submit:{label:"提交审批",type:"primary",icon:"fa fa-check"},publish:{label:"发布",type:"primary",icon:"fa fa-send"},agree:{label:"同意",type:"primary",icon:"fa fa-check-square-o"},disagree:{label:"不同意",type:"primary",icon:"fa fa-mail-reply"},reject:{label:"退回",type:"primary",icon:"fa fa-reply"},finish:{label:"完成",type:"primary",icon:"fa fa-check-square"},enable:{label:"启用",type:"primary",icon:"el-icon-circle-check"},exp:{label:"导出",type:"primary",icon:"el-icon-download"},imp:{label:"导入",type:"primary",icon:"el-icon-upload"},del:{label:"删除",type:"primary",icon:"el-icon-delete"},disabled:{label:"禁用",type:"primary",icon:"el-icon-remove-outline"},reload:{label:"刷新",type:"primary",icon:"el-icon-refresh"},search:{label:"搜索",icon:"el-icon-search",separateLine:!1}},__vue2_script$5={name:"Toolbar",provide(){return{toolbar:this}},props:{searchable:Boolean,buttons:{type:Array,default:()=>["back"]},back:{type:Function},cancel:{type:Function},emitter:{type:String,default:"self"},footer:Boolean,label:{type:Object,default:()=>({})}},methods:{goBack(){const t=this.$route.path;this.$bus("closeTab",t,this)},fire(t,s){this.emitter==="parent"?this.$parent&&this.$parent.$emit(t,s,this):this.$emit(t,s,this)},createButton(t,{label:s,icon:n,type:r,separateLine:a=!0}){var u;const o=this.$createElement;let l;const c=((u=this.label)==null?void 0:u[t])||s;return["back","cancel"].includes(t)?l=this.goBack:l=d=>(this.$listeners[t]||core.NOOP)(d),o("ToolbarButton",{attrs:{"separate-line":a,icon:n,label:c,footer:this.footer,type:r},on:{click:l}})},getLeftButtons(){var n,r;const{createButton:t}=this;return((r=(n=this.$scopedSlots)["toolbar-left"])==null?void 0:r.call(n))||this.buttons.map(a=>{var l,c,u,d,p;const o=builtinButtons[a];return o?((c=(l=this.$scopedSlots)[a])==null?void 0:c.call(l))||t(a,o):a==="slot"&&(p=(d=(u=this.$scopedSlots).default)==null?void 0:d.call(u,{buttons:this.buttons,footer:this.footer}))!=null?p:null})},getRightButtons(){var s,n;return((n=(s=this.$scopedSlots)["toolbar-right"])==null?void 0:n.call(s))||this.getSearchButton()},getSearchButton(){const{createButton:t}=this;return this.searchable?t("search",builtinButtons.search):null}},render(){const t=arguments[0];return this.footer?t("div",{class:"footer-bar"},[this.getLeftButtons()]):t("div",{class:"toolbar"},[t("div",{class:"toolbar-left"},[this.getLeftButtons()]),t("div",{class:"toolbar-right"},[this.getRightButtons()])])}},Toolbar_vue_vue_type_style_index_0_lang="";let __vue2_render$1,__vue2_staticRenderFns$1;const __cssModules$5={};var __component__$5=normalizeComponent(__vue2_script$5,__vue2_render$1,__vue2_staticRenderFns$1,!1,__vue2_injectStyles$5,null,null,null);function __vue2_injectStyles$5(t){for(let s in __cssModules$5)this[s]=__cssModules$5[s]}const Toolbar=function(){return __component__$5.exports}();var render$3=function(){var t=this,s=t.$createElement,n=t._self._c||s;return t.footer||t.toolbar.footer?n("ElButton",{attrs:{disabled:t.disabled||t.loading,type:t.type},on:{click:t.onClick}},[t._v(" "+t._s(t.label)+" ")]):n("span",{staticClass:"form-toolbar-button"},[n("ElButton",{attrs:{icon:t.icon,type:"text",disabled:t.disabled||t.loading,size:"mini"},on:{click:t.onClick}},[t._v(" "+t._s(t.label)+" ")]),t.separateLine?n("span",{staticClass:"separate-line"}):t._e()],1)},staticRenderFns$3=[];const ToolbarButton_vue_vue_type_style_index_0_lang="",__vue2_script$4={name:"ToolbarButton",inject:{toolbar:{default:""}},props:{label:{type:String},icon:{type:String},type:{type:String},disabled:Boolean,separateLine:{type:Boolean,default:!0},footer:Boolean},data(){return{loading:!1}},methods:{onClick(t){return v(this,null,function*(){this.loading=!0;const{click:s}=this.$listeners;if(core.isFunction(s))try{yield s(t)}catch(n){}this.loading=!1})}}},__cssModules$4={};var __component__$4=normalizeComponent(__vue2_script$4,render$3,staticRenderFns$3,!1,__vue2_injectStyles$4,null,null,null);function __vue2_injectStyles$4(t){for(let s in __cssModules$4)this[s]=__cssModules$4[s]}const ToolbarButton=function(){return __component__$4.exports}();var render$2=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{class:t.classes},[t.showIcon?n("div",{class:t.barConClasses},t._m(0),0):t._e()])},staticRenderFns$2=[function(){var t=this,s=t.$createElement,n=t._self._c||s;return t._l(8,function(r){return n("i",{key:`trigger-${r}`,class:`${t.prefix}-bar`})})}];const __vue2_script$3={name:"Trigger",props:{mode:String,showIcon:Boolean,line:{type:Boolean,default:!0}},data(){return{prefix:"egd-split-trigger"}},computed:{isVertical(){return this.mode==="vertical"},classes(){return[this.prefix,this.line?this.isVertical?` ${this.prefix}-vertical-line`:`${this.prefix}-horizontal-line`:"",this.isVertical?`${this.prefix}-vertical`:`${this.prefix}-horizontal`]},barConClasses(){return[`${this.prefix}-bar-con`,this.isVertical?"vertical":"horizontal"]}}},__cssModules$3={};var __component__$3=normalizeComponent(__vue2_script$3,render$2,staticRenderFns$2,!1,__vue2_injectStyles$3,null,null,null);function __vue2_injectStyles$3(t){for(let s in __cssModules$3)this[s]=__cssModules$3[s]}const Trigger=function(){return __component__$3.exports}();var render$1=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-verify"},t._l(t.list,function(r,a){return n("span",{key:a,staticClass:"avue-verify__item",style:t.styleName},[t._v(" "+t._s(r)+" ")])}),0)},staticRenderFns$1=[];const Verify_vue_vue_type_style_index_0_lang="",__vue2_script$2={name:"Verify",props:{size:{type:[Number,String],default:50},value:[Number,String],len:{type:[Number,String],default:6}},computed:{data:{get(){return this.value||""},set(t){const s=`${t}`;this.$emit("input",s),this.$emit("change",s)}},styleName(){return{padding:`${setPx(this.size/7)} ${setPx(this.size/4)}`,fontSize:setPx(this.size)}},list(){return this.data.split("")}},created(){this.random()},methods:{random(){const t=this.len;if(t>21)return null;const s=new RegExp(`(\\d{${t}})(\\.|$)`);this.data=(Array(t-1).join(0)+Math.pow(10,t)*Math.random()).match(s)[1]}}},__cssModules$2={};var __component__$2=normalizeComponent(__vue2_script$2,render$1,staticRenderFns$1,!1,__vue2_injectStyles$2,null,null,null);function __vue2_injectStyles$2(t){for(let s in __cssModules$2)this[s]=__cssModules$2[s]}const Verify=function(){return __component__$2.exports}();var render=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"tags-input-root"},[n("div",{class:`${t.wrapperClass} tags-input`},[t._l(t.tags,function(r,a){return n("span",{key:a,staticClass:"el-tag el-tag--medium el-tag--light"},[n("span",{domProps:{innerHTML:t._s(r.value)}}),n("i",{staticClass:"tags-input-remove ov",attrs:{href:"#"},on:{click:function(o){return o.preventDefault(),t.removeTag(a)}}})])}),n("input",{directives:[{name:"model",rawName:"v-model",value:t.input,expression:"input"}],ref:"taginput",staticStyle:{height:"28px","margin-top":"5px","line-height":"28px"},attrs:{type:"text",placeholder:t.placeholder},domProps:{value:t.input},on:{keydown:[function(r){return!r.type.indexOf("key")&&t._k(r.keyCode,"enter",13,r.key,"Enter")?null:(r.preventDefault(),t.tagFromInput(!1))},function(r){return!r.type.indexOf("key")&&r.keyCode!==8?null:t.removeLastTag.apply(null,arguments)},function(r){return!r.type.indexOf("key")&&t._k(r.keyCode,"down",40,r.key,["Down","ArrowDown"])?null:t.nextSearchResult.apply(null,arguments)},function(r){return!r.type.indexOf("key")&&t._k(r.keyCode,"up",38,r.key,["Up","ArrowUp"])?null:t.prevSearchResult.apply(null,arguments)},t.onKeyDown],keyup:[t.onKeyUp,function(r){return!r.type.indexOf("key")&&t._k(r.keyCode,"esc",27,r.key,["Esc","Escape"])?null:t.clearSearchResults.apply(null,arguments)}],focus:t.onFocus,blur:t.onBlur,value:t.tags,input:function(r){r.target.composing||(t.input=r.target.value)}}}),t.elementId?n("input",{directives:[{name:"model",rawName:"v-model",value:t.hiddenInput,expression:"hiddenInput"}],attrs:{id:t.elementId,type:"hidden",name:t.elementId},domProps:{value:t.hiddenInput},on:{input:function(r){r.target.composing||(t.hiddenInput=r.target.value)}}}):t._e()],2),n("div",{directives:[{name:"show",rawName:"v-show",value:t.searchResults.length,expression:"searchResults.length"}]},[t.typeaheadStyle==="badges"?n("p",{class:`typeahead-${t.typeaheadStyle}`},[t.typeaheadHideDiscard?t._e():n("span",{staticClass:"tags-input-badge typeahead-hide-btn tags-input-typeahead-item-default",domProps:{textContent:t._s(t.discardSearchText)},on:{click:function(r){return r.preventDefault(),t.clearSearchResults.apply(null,arguments)}}}),t._l(t.searchResults,function(r,a){return n("span",{key:a,staticClass:"tags-input-badge",class:{"tags-input-typeahead-item-default":a!=t.searchSelection,"tags-input-typeahead-item-highlighted-default":a==t.searchSelection},domProps:{innerHTML:t._s(r.value)},on:{mouseover:function(o){t.searchSelection=a},mousedown:function(o){return o.preventDefault(),t.tagFromSearchOnClick(r)}}})})],2):t.typeaheadStyle==="dropdown"?n("ul",{class:`typeahead-${t.typeaheadStyle}`},[t.typeaheadHideDiscard?t._e():n("li",{staticClass:"tags-input-typeahead-item-default typeahead-hide-btn",domProps:{textContent:t._s(t.discardSearchText)},on:{mousedown:function(r){return r.preventDefault(),t.clearSearchResults.apply(null,arguments)}}}),t._l(t.searchResults,function(r,a){return n("li",{key:a,class:{"tags-input-typeahead-item-default":a!=t.searchSelection,"tags-input-typeahead-item-highlighted-default":a==t.searchSelection},domProps:{innerHTML:t._s(r.value)},on:{mouseover:function(o){t.searchSelection=a},mousedown:function(o){return o.preventDefault(),t.tagFromSearchOnClick(r)}}})})],2):t._e()])])},staticRenderFns=[];const VueTagsInput_vue_vue_type_style_index_0_lang="",__vue2_script$1={name:"VueTagsInput",props:{elementId:{type:String},existingTags:{type:Array,default:()=>[]},value:{type:Array,default:()=>[]},typeahead:{type:Boolean,default:!1},typeaheadStyle:{type:String,default:"badges"},typeaheadActivationThreshold:{type:Number,default:1},typeaheadMaxResults:{type:Number,default:0},typeaheadAlwaysShow:{type:Boolean,default:!1},typeaheadHideDiscard:{type:Boolean,default:!1},placeholder:{type:String,default:"请输入..."},discardSearchText:{type:String,default:"取消"},limit:{type:Number,default:0},onlyExistingTags:{type:Boolean,default:!1},deleteOnBackspace:{type:Boolean,default:!0},allowDuplicates:{type:Boolean,default:!1},validate:{type:Function,default:()=>!0},addTagsOnComma:{type:Boolean,default:!1},addTagsOnSpace:{type:Boolean,default:!1},addTagsOnBlur:{type:Boolean,default:!1},wrapperClass:{type:String,default:"tags-input-wrapper-default"},sortSearchResults:{type:Boolean,default:!0},caseSensitiveTags:{type:Boolean,default:!1},beforeAddingTag:{type:Function,default:()=>!0},beforeRemovingTag:{type:Function,default:()=>!0}},data(){return{tags:[],input:"",oldInput:"",hiddenInput:"",searchResults:[],searchSelection:0}},watch:{input(t,s){this.$emit("input-changed",t),this.searchTag(!1),t.length&&t!==s&&(this.addTagsOnSpace&&t.endsWith(" ")&&(this.input=t.trim(),this.tagFromInput(!0)),this.addTagsOnComma&&(t=t.trim(),t.endsWith(",")&&(this.input=t.substring(0,t.length-1),this.tagFromInput(!0))),this.$emit("change",t))},tags(){this.hiddenInput=JSON.stringify(this.tags),this.$emit("input",this.tags)},value(){this.tagsFromValue()},typeaheadAlwaysShow(t){t?this.searchTag(!1):this.clearSearchResults()}},created(){this.tagsFromValue(),this.typeaheadAlwaysShow&&this.searchTag(!1),this.$emit("initialized")},methods:{escapeRegExp(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},tagFromInput(t=!1){if(this.searchResults.length&&this.searchSelection>=0&&!t)this.tagFromSearch(this.searchResults[this.searchSelection]),this.input="";else{const s=this.input.trim();if(!this.onlyExistingTags&&s.length&&this.validate(s)){this.input="";let n={key:"",value:s};const r=this.escapeRegExp(this.caseSensitiveTags?n.value:n.value.toLowerCase());for(const a of this.existingTags){const o=this.caseSensitiveTags?a.value:a.value.toLowerCase();if(r===o){n=Object.assign({},a);break}}this.addTag(n)}}},tagFromSearchOnClick(t){this.tagFromSearch(t),this.$refs.taginput.blur()},tagFromSearch(t){this.clearSearchResults(),this.addTag(t),this.$nextTick(()=>{this.input="",this.oldInput=""})},addTag(t){if(!this.beforeAddingTag(t))return!1;if(this.limit>0&&this.tags.length>=this.limit)return this.$emit("limit-reached"),!1;this.tagSelected(t)||(this.tags.push(t),this.$nextTick(()=>{this.$emit("tag-added",t),this.$emit("tags-updated")}))},removeLastTag(){!this.input.length&&this.deleteOnBackspace&&this.tags.length&&this.removeTag(this.tags.length-1)},removeTag(t){const s=this.tags[t];if(!this.beforeRemovingTag(s))return!1;this.tags.splice(t,1),this.$nextTick(()=>{this.$emit("tag-removed",s),this.$emit("tags-updated"),this.typeaheadAlwaysShow&&this.searchTag()})},searchTag(){if(this.typeahead!==!0)return!1;if(this.oldInput!==this.input||!this.searchResults.length&&this.typeaheadActivationThreshold===0||this.typeaheadAlwaysShow){this.searchResults=[],this.searchSelection=0;const t=this.input.trim();if(t.length&&t.length>=this.typeaheadActivationThreshold||this.typeaheadActivationThreshold===0||this.typeaheadAlwaysShow){const s=this.escapeRegExp(this.caseSensitiveTags?t:t.toLowerCase());for(const n of this.existingTags)(this.caseSensitiveTags?n.value:n.value.toLowerCase()).search(s)>-1&&!this.tagSelected(n)&&this.searchResults.push(n);this.sortSearchResults&&this.searchResults.sort((n,r)=>n.value<r.value?-1:n.value>r.value?1:0),this.typeaheadMaxResults>0&&(this.searchResults=this.searchResults.slice(0,this.typeaheadMaxResults))}this.oldInput=this.input}},hideTypeahead(){this.input.length||this.$nextTick(()=>{this.clearSearchResults()})},nextSearchResult(){this.searchSelection+1<=this.searchResults.length-1&&this.searchSelection++},prevSearchResult(){this.searchSelection>0&&this.searchSelection--},clearSearchResults(){this.searchResults=[],this.searchSelection=0,this.typeaheadAlwaysShow&&this.$nextTick(()=>{this.searchTag()})},clearTags(){this.tags.splice(0,this.tags.length)},tagsFromValue(){if(this.value&&this.value.length){if(!Array.isArray(this.value)){console.error("Voerro Tags Input: the v-model value must be an array!");return}const t=this.value;if(this.tags===t)return;this.clearTags();for(const s of t)this.addTag(s)}else{if(this.tags.length===0)return;this.clearTags()}},tagSelected(t){if(this.allowDuplicates||!t)return!1;const s=this.escapeRegExp(this.caseSensitiveTags?t.value:t.value.toLowerCase());for(const n of this.tags){const r=this.caseSensitiveTags?n.value:n.value.toLowerCase();if(n.key===t.key&&r.search(s)>-1)return!0}return!1},clearInput(){this.input=""},onKeyUp(t){this.$emit("keyup",t)},onKeyDown(t){this.$emit("keydown",t)},onFocus(t){this.$emit("focus",t),this.searchTag()},onBlur(t){this.$emit("blur",t),this.addTagsOnBlur&&this.tagFromInput(!0),this.typeaheadAlwaysShow?this.searchTag():this.hideTypeahead()}}},__cssModules$1={};var __component__$1=normalizeComponent(__vue2_script$1,render,staticRenderFns,!1,__vue2_injectStyles$1,null,null,null);function __vue2_injectStyles$1(t){for(let s in __cssModules$1)this[s]=__cssModules$1[s]}const VueTagsInput=function(){return __component__$1.exports}(),Watermark_vue_vue_type_style_index_0_lang="",__vue2_script={name:"Watermark",functional:!0,props:{text:{type:String,default:""},width:{type:Number,default:200},height:{type:Number,default:150},rotate:{type:Number,default:-30},color:{type:String,default:"rgba(0,0,0,0.15)"},backgroundColor:{type:String,default:"rgba(0,0,0,0)"}},render(t,{props:{width:s,height:n,text:r,backgroundColor:a,rotate:o,color:l},data:c}){const u=document.createElement("canvas");u.width=s,u.height=n;const d=u.getContext("2d");return d.font="15px Verdana",d.fillStyle=a,d.fillRect(0,0,s,n),d.translate(s/2,n/2),d.rotate(o*Math.PI/180),d.fillStyle=l,d.textAlign="center",d.textBaseline="middle",d.fillText(r,0,0),t("div",{class:getClass(c.class,`watermark ${c.staticClass||""}`),style:S(f(f({},c.style||{}),c.staticStyle||{}),{background:`url(${u.toDataURL("image/png")}) left top repeat`})})}};let __vue2_render,__vue2_staticRenderFns;const __cssModules={};var __component__=normalizeComponent(__vue2_script,__vue2_render,__vue2_staticRenderFns,!1,__vue2_injectStyles,null,null,null);function __vue2_injectStyles(t){for(let s in __cssModules)this[s]=__cssModules[s]}const Watermark=function(){return __component__.exports}(),version="2.8.0";function index(t){t.component(AddressInput.name,AddressInput),t.component(Affix.name,Affix),t.component(AsideMenu.name,AsideMenu),t.component(Avatar.name,Avatar),t.component(AwesomeButton.name,AwesomeButton),t.component(CapsuleTab.name,CapsuleTab),t.component(Card.name,Card),t.component(Carousel.name,Carousel),t.component(Chat.name,Chat),t.component(ChunkFileUploader.name,ChunkFileUploader),t.component(ChunkFileUploaderButton.name,ChunkFileUploaderButton),t.component(ChunkFileUploaderDrop.name,ChunkFileUploaderDrop),t.component(ChunkFileUploaderFile.name,ChunkFileUploaderFile),t.component(ChunkFileUploaderFiles.name,ChunkFileUploaderFiles),t.component(ChunkFileUploaderList.name,ChunkFileUploaderList),t.component(ChunkFileUploaderUnSupport.name,ChunkFileUploaderUnSupport),t.component(CodeMirrorEditor.name,CodeMirrorEditor),t.component(ColorPicker.name,ColorPicker),t.component(Column.name,Column),t.component(ColumnDefault.name,ColumnDefault),t.component(ColumnDynamic.name,ColumnDynamic),t.component(ColumnMenu.name,ColumnMenu),t.component(ColumnSlot.name,ColumnSlot),t.component(Comment.name,Comment),t.component(Confirmable.name,Confirmable),t.component(ConfirmButton.name,ConfirmButton),t.component(ContextMenu.name,ContextMenu),t.component(CountUp.name,CountUp),t.component(CustomScrollbar.name,CustomScrollbar),t.component(DataBox.name,DataBox),t.component(DataCard.name,DataCard),t.component(DataCardtext.name,DataCardtext),t.component(DataDisplay.name,DataDisplay),t.component(DataIcons.name,DataIcons),t.component(DataImgtext.name,DataImgtext),t.component(DataOperatext.name,DataOperatext),t.component(DataPanel.name,DataPanel),t.component(DataPay.name,DataPay),t.component(DataPrice.name,DataPrice),t.component(DataProgress.name,DataProgress),t.component(DataRotate.name,DataRotate),t.component(DataTablePicker.name,DataTablePicker),t.component(DataTabs.name,DataTabs),t.component(DialogColumn.name,DialogColumn),t.component(DialogExcel.name,DialogExcel),t.component(DialogFilter.name,DialogFilter),t.component(DialogForm$1.name,DialogForm$1),t.component(DynamicTable.name,DynamicTable),t.component(EasyPopup.name,EasyPopup),t.component(ECharts.name,ECharts),t.component(EditableProgress.name,EditableProgress),t.component(EditableTree.name,EditableTree),t.component(EgdCollapse.name,EgdCollapse),t.component(EgdCollapseItem.name,EgdCollapseItem),t.component(ElementDialog.name,ElementDialog),t.component(EmptyView.name,EmptyView),t.component(ErrorView.name,ErrorView),t.component(FlexColumn.name,FlexColumn),t.component(FlexItem.name,FlexItem),t.component(FlexRow.name,FlexRow),t.component(FlexScroller.name,FlexScroller),t.component(Flow.name,Flow),t.component(FlowNode.name,FlowNode),t.component(FlowViewer.name,FlowViewer),t.component(FormButton.name,FormButton),t.component(FormCascader.name,FormCascader),t.component(FormCheckboxGroup.name,FormCheckboxGroup),t.component(FormDatePicker.name,FormDatePicker),t.component(FormGroup.name,FormGroup),t.component(FormHolder.name,FormHolder),t.component(FormInput.name,FormInput),t.component(FormInputEmail.name,FormInputEmail),t.component(FormInputIdCard.name,FormInputIdCard),t.component(FormInputNumber.name,FormInputNumber),t.component(FormInputPhoneNumber.name,FormInputPhoneNumber),t.component(FormInputTime.name,FormInputTime),t.component(FormItem.name,FormItem),t.component(FormItemConfigProvider.name,FormItemConfigProvider),t.component(FormItemGroup.name,FormItemGroup),t.component(FormRadioGroup.name,FormRadioGroup),t.component(FormSelect.name,FormSelect),t.component(FormSwitch.name,FormSwitch),t.component(FormTemp.name,FormTemp),t.component(FormTextarea.name,FormTextarea),t.component(FormView.name,FormView),t.component(FyArray.name,FyArray),t.component(FyArticle.name,FyArticle),t.component(FyCascader.name,FyCascader),t.component(FyCheckbox.name,FyCheckbox),t.component(FyCode.name,FyCode),t.component(FyCurd.name,FyCurd),t.component(FyDate.name,FyDate),t.component(FyDialogForm.name,FyDialogForm),t.component(FyDraggable.name,FyDraggable),t.component(FyDynamic.name,FyDynamic),t.component(FyEmpty.name,FyEmpty),t.component(FyForm.name,FyForm),t.component(FyFormDesign.name,FyFormDesign),t.component(FyFormMenu.name,FyFormMenu),t.component(FyInput.name,FyInput),t.component(FyInputColor.name,FyInputColor),t.component(FyInputIcon.name,FyInputIcon),t.component(FyInputMap.name,FyInputMap),t.component(FyInputNumber.name,FyInputNumber),t.component(FyInputTable.name,FyInputTable),t.component(FyInputTree.name,FyInputTree),t.component(FyProgress.name,FyProgress),t.component(FyRadio.name,FyRadio),t.component(FyRate.name,FyRate),t.component(FySelect.name,FySelect),t.component(FySlider.name,FySlider),t.component(FySwitch.name,FySwitch),t.component(FyTabs.name,FyTabs),t.component(FyTime.name,FyTime),t.component(FyTitle.name,FyTitle),t.component(FyTree.name,FyTree),t.component(FyUEditor.name,FyUEditor),t.component(FyUpload.name,FyUpload),t.component(GuideSteps.name,GuideSteps),t.component(HeaderMenu.name,HeaderMenu),t.component(HeaderSearch.name,HeaderSearch),t.component(HighlightJS.name,HighlightJS),t.component(IconCard.name,IconCard),t.component(IconTemp.name,IconTemp),t.component(IframeWindow.name,IframeWindow),t.component(ImageCropper$1.name,ImageCropper$1),t.component(ImagePreview$1.name,ImagePreview$1),t.component(ImageViewer.name,ImageViewer),t.component(InputNumber.name,InputNumber),t.component(InputNumberRange.name,InputNumberRange),t.component(JSXComponent.name,JSXComponent),t.component(KeepViewAlive.name,KeepViewAlive),t.component(Keyboard.name,Keyboard),t.component(License.name,License),t.component(LoadingView.name,LoadingView),t.component(Login.name,Login),t.component(NameAvatar.name,NameAvatar),t.component(NavBar.name,NavBar),t.component(Notice.name,Notice),t.component(NotImplement.name,NotImplement),t.component(Page.name,Page),t.component(PageableTable.name,PageableTable),t.component(PageableView.name,PageableView),t.component(PageHeader.name,PageHeader),t.component(PageIndex.name,PageIndex),t.component(PageIndexTop.name,PageIndexTop),t.component(PageSkeleton.name,PageSkeleton),t.component(PageSkeletonNew.name,PageSkeletonNew),t.component(PhotoSwipe.name,PhotoSwipe),t.component(ProcessDesigner.name,ProcessDesigner),t.component(PropertiesPanel.name,PropertiesPanel),t.component(Queue.name,Queue),t.component(RecordVideo.name,RecordVideo),t.component(ResizeObserver.name,ResizeObserver),t.component(Search.name,Search),t.component(SearchPopover.name,SearchPopover),t.component(Sign.name,Sign),t.component(SignPanel.name,SignPanel),t.component(Skeleton.name,Skeleton),t.component(SplitPane.name,SplitPane),t.component(Stateful.name,Stateful),t.component(StaticPageableTable.name,StaticPageableTable),t.component(Swiper.name,Swiper),t.component(Tab.name,Tab),t.component(TabItem.name,TabItem),t.component(TableColumn.name,TableColumn),t.component(TablePage.name,TablePage),t.component(TableView.name,TableView),t.component(TagRender.name,TagRender),t.component(TextEllipsis.name,TextEllipsis),t.component(TinymceEditor.name,TinymceEditor),t.component(TinymceWrapper.name,TinymceWrapper),t.component(Toolbar.name,Toolbar),t.component(ToolbarButton.name,ToolbarButton),t.component(Trigger.name,Trigger),t.component(Verify.name,Verify),t.component(VueTagsInput.name,VueTagsInput),t.component(Watermark.name,Watermark)}exports.AddressInput=AddressInput;exports.Affix=Affix;exports.AsideMenu=AsideMenu;exports.Avatar=Avatar;exports.AwesomeButton=AwesomeButton;exports.CapsuleTab=CapsuleTab;exports.Card=Card;exports.Carousel=Carousel;exports.Chat=Chat;exports.ChunkFileUploader=ChunkFileUploader;exports.ChunkFileUploaderButton=ChunkFileUploaderButton;exports.ChunkFileUploaderDrop=ChunkFileUploaderDrop;exports.ChunkFileUploaderFile=ChunkFileUploaderFile;exports.ChunkFileUploaderFiles=ChunkFileUploaderFiles;exports.ChunkFileUploaderList=ChunkFileUploaderList;exports.ChunkFileUploaderUnSupport=ChunkFileUploaderUnSupport;exports.CodeMirrorEditor=CodeMirrorEditor;exports.ColorPicker=ColorPicker;exports.Column=Column;exports.ColumnDefault=ColumnDefault;exports.ColumnDynamic=ColumnDynamic;exports.ColumnMenu=ColumnMenu;exports.ColumnSlot=ColumnSlot;exports.Comment=Comment;exports.ConfirmButton=ConfirmButton;exports.Confirmable=Confirmable;exports.ContextMenu=ContextMenu;exports.CountUp=CountUp;exports.CustomScrollbar=CustomScrollbar;exports.DataBox=DataBox;exports.DataCard=DataCard;exports.DataCardtext=DataCardtext;exports.DataDisplay=DataDisplay;exports.DataIcons=DataIcons;exports.DataImgtext=DataImgtext;exports.DataOperatext=DataOperatext;exports.DataPanel=DataPanel;exports.DataPay=DataPay;exports.DataPrice=DataPrice;exports.DataProgress=DataProgress;exports.DataRotate=DataRotate;exports.DataTablePicker=DataTablePicker;exports.DataTabs=DataTabs;exports.DialogColumn=DialogColumn;exports.DialogExcel=DialogExcel;exports.DialogFilter=DialogFilter;exports.DialogForm=DialogForm$1;exports.DynamicTable=DynamicTable;exports.ECharts=ECharts;exports.EasyPopup=EasyPopup;exports.EditableProgress=EditableProgress;exports.EditableTree=EditableTree;exports.EgdCollapse=EgdCollapse;exports.EgdCollapseItem=EgdCollapseItem;exports.ElementDialog=ElementDialog;exports.EmptyView=EmptyView;exports.ErrorView=ErrorView;exports.FlexColumn=FlexColumn;exports.FlexItem=FlexItem;exports.FlexRow=FlexRow;exports.FlexScroller=FlexScroller;exports.Flow=Flow;exports.FlowNode=FlowNode;exports.FlowViewer=FlowViewer;exports.FormButton=FormButton;exports.FormCascader=FormCascader;exports.FormCheckboxGroup=FormCheckboxGroup;exports.FormDatePicker=FormDatePicker;exports.FormGroup=FormGroup;exports.FormHolder=FormHolder;exports.FormInput=FormInput;exports.FormInputEmail=FormInputEmail;exports.FormInputIdCard=FormInputIdCard;exports.FormInputNumber=FormInputNumber;exports.FormInputPhoneNumber=FormInputPhoneNumber;exports.FormInputTime=FormInputTime;exports.FormItem=FormItem;exports.FormItemConfigProvider=FormItemConfigProvider;exports.FormItemGroup=FormItemGroup;exports.FormRadioGroup=FormRadioGroup;exports.FormSelect=FormSelect;exports.FormSwitch=FormSwitch;exports.FormTemp=FormTemp;exports.FormTextarea=FormTextarea;exports.FormView=FormView;exports.FyArray=FyArray;exports.FyArticle=FyArticle;exports.FyCascader=FyCascader;exports.FyCheckbox=FyCheckbox;exports.FyCode=FyCode;exports.FyCurd=FyCurd;exports.FyDate=FyDate;exports.FyDialogForm=FyDialogForm;exports.FyDraggable=FyDraggable;exports.FyDynamic=FyDynamic;exports.FyEmpty=FyEmpty;exports.FyForm=FyForm;exports.FyFormDesign=FyFormDesign;exports.FyFormMenu=FyFormMenu;exports.FyInput=FyInput;exports.FyInputColor=FyInputColor;exports.FyInputIcon=FyInputIcon;exports.FyInputMap=FyInputMap;exports.FyInputNumber=FyInputNumber;exports.FyInputTable=FyInputTable;exports.FyInputTree=FyInputTree;exports.FyProgress=FyProgress;exports.FyRadio=FyRadio;exports.FyRate=FyRate;exports.FySelect=FySelect;exports.FySlider=FySlider;exports.FySwitch=FySwitch;exports.FyTabs=FyTabs;exports.FyTime=FyTime;exports.FyTitle=FyTitle;exports.FyTree=FyTree;exports.FyUEditor=FyUEditor;exports.FyUpload=FyUpload;exports.GuideSteps=GuideSteps;exports.HeaderMenu=HeaderMenu;exports.HeaderSearch=HeaderSearch;exports.HighlightJS=HighlightJS;exports.IconCard=IconCard;exports.IconTemp=IconTemp;exports.IframeWindow=IframeWindow;exports.ImageCropper=ImageCropper$1;exports.ImagePreview=ImagePreview$1;exports.ImageViewer=ImageViewer;exports.InputNumber=InputNumber;exports.InputNumberRange=InputNumberRange;exports.JSXComponent=JSXComponent;exports.KeepViewAlive=KeepViewAlive;exports.Keyboard=Keyboard;exports.License=License;exports.LoadingView=LoadingView;exports.Login=Login;exports.NameAvatar=NameAvatar;exports.NavBar=NavBar;exports.NotImplement=NotImplement;exports.Notice=Notice;exports.Page=Page;exports.PageHeader=PageHeader;exports.PageIndex=PageIndex;exports.PageIndexTop=PageIndexTop;exports.PageSkeleton=PageSkeleton;exports.PageSkeletonNew=PageSkeletonNew;exports.PageableTable=PageableTable;exports.PageableView=PageableView;exports.PhotoSwipe=PhotoSwipe;exports.ProcessDesigner=ProcessDesigner;exports.PropertiesPanel=PropertiesPanel;exports.Queue=Queue;exports.RecordVideo=RecordVideo;exports.ResizeObserver=ResizeObserver;exports.Search=Search;exports.SearchPopover=SearchPopover;exports.Sign=Sign;exports.SignPanel=SignPanel;exports.Skeleton=Skeleton;exports.SplitPane=SplitPane;exports.Stateful=Stateful;exports.StaticPageableTable=StaticPageableTable;exports.Swiper=Swiper;exports.Tab=Tab;exports.TabItem=TabItem;exports.TableColumn=TableColumn;exports.TablePage=TablePage;exports.TableView=TableView;exports.TagRender=TagRender;exports.TextEllipsis=TextEllipsis;exports.TinymceEditor=TinymceEditor;exports.TinymceWrapper=TinymceWrapper;exports.Toolbar=Toolbar;exports.ToolbarButton=ToolbarButton;exports.Trigger=Trigger;exports.Verify=Verify;exports.VueTagsInput=VueTagsInput;exports.Watermark=Watermark;exports.default=index;exports.version=version;
|
|
85
|
+
</bpmn2:definitions>`);function customTranslate(t){return function(s,n){return n=n||{},s=t[s]||s,s.replace(/{([^}]+)}/g,function(r,a){let o=n[a];return t[n[a]]!==null&&t[n[a]]!==void 0&&(o=t[n[a]]),o||`{${a}}`})}}const translationsCN={"Append EndEvent":"追加结束事件","Append Gateway":"追加网关","Append Task":"追加任务","Append Intermediate/Boundary Event":"追加中间抛出事件/边界事件","Activate the global connect tool":"激活全局连接工具","Append {type}":"添加 {type}","Add Lane above":"在上面添加道","Divide into two Lanes":"分割成两个道","Divide into three Lanes":"分割成三个道","Add Lane below":"在下面添加道","Append compensation activity":"追加补偿活动","Change type":"修改类型","Connect using Association":"使用关联连接","Connect using Sequence/MessageFlow or Association":"使用顺序/消息流或者关联连接","Connect using DataInputAssociation":"使用数据输入关联连接",Remove:"移除","Activate the hand tool":"激活抓手工具","Activate the lasso tool":"激活套索工具","Activate the create/remove space tool":"激活创建/删除空间工具","Create expanded SubProcess":"创建扩展子过程","Create IntermediateThrowEvent/BoundaryEvent":"创建中间抛出事件/边界事件","Create Pool/Participant":"创建池/参与者","Parallel Multi Instance":"并行多重事件","Sequential Multi Instance":"时序多重事件",DataObjectReference:"数据对象参考",DataStoreReference:"数据存储参考",Loop:"循环","Ad-hoc":"即席","Create {type}":"创建 {type}",Task:"任务","Send Task":"发送任务","Receive Task":"接收任务","User Task":"用户任务","Manual Task":"手工任务","Business Rule Task":"业务规则任务","Service Task":"服务任务","Script Task":"脚本任务","Call Activity":"调用活动","Sub Process (collapsed)":"子流程(折叠的)","Sub Process (expanded)":"子流程(展开的)","Start Event":"开始事件",StartEvent:"开始事件","Intermediate Throw Event":"中间事件","End Event":"结束事件",EndEvent:"结束事件","Create StartEvent":"创建开始事件","Create EndEvent":"创建结束事件","Create Task":"创建任务","Create User Task":"创建用户任务","Create Gateway":"创建网关","Create DataObjectReference":"创建数据对象","Create DataStoreReference":"创建数据存储","Create Group":"创建分组","Create Intermediate/Boundary Event":"创建中间/边界事件","Message Start Event":"消息开始事件","Timer Start Event":"定时开始事件","Conditional Start Event":"条件开始事件","Signal Start Event":"信号开始事件","Error Start Event":"错误开始事件","Escalation Start Event":"升级开始事件","Compensation Start Event":"补偿开始事件","Message Start Event (non-interrupting)":"消息开始事件(非中断)","Timer Start Event (non-interrupting)":"定时开始事件(非中断)","Conditional Start Event (non-interrupting)":"条件开始事件(非中断)","Signal Start Event (non-interrupting)":"信号开始事件(非中断)","Escalation Start Event (non-interrupting)":"升级开始事件(非中断)","Message Intermediate Catch Event":"消息中间捕获事件","Message Intermediate Throw Event":"消息中间抛出事件","Timer Intermediate Catch Event":"定时中间捕获事件","Escalation Intermediate Throw Event":"升级中间抛出事件","Conditional Intermediate Catch Event":"条件中间捕获事件","Link Intermediate Catch Event":"链接中间捕获事件","Link Intermediate Throw Event":"链接中间抛出事件","Compensation Intermediate Throw Event":"补偿中间抛出事件","Signal Intermediate Catch Event":"信号中间捕获事件","Signal Intermediate Throw Event":"信号中间抛出事件","Message End Event":"消息结束事件","Escalation End Event":"定时结束事件","Error End Event":"错误结束事件","Cancel End Event":"取消结束事件","Compensation End Event":"补偿结束事件","Signal End Event":"信号结束事件","Terminate End Event":"终止结束事件","Message Boundary Event":"消息边界事件","Message Boundary Event (non-interrupting)":"消息边界事件(非中断)","Timer Boundary Event":"定时边界事件","Timer Boundary Event (non-interrupting)":"定时边界事件(非中断)","Escalation Boundary Event":"升级边界事件","Escalation Boundary Event (non-interrupting)":"升级边界事件(非中断)","Conditional Boundary Event":"条件边界事件","Conditional Boundary Event (non-interrupting)":"条件边界事件(非中断)","Error Boundary Event":"错误边界事件","Cancel Boundary Event":"取消边界事件","Signal Boundary Event":"信号边界事件","Signal Boundary Event (non-interrupting)":"信号边界事件(非中断)","Compensation Boundary Event":"补偿边界事件","Exclusive Gateway":"互斥网关","Parallel Gateway":"并行网关","Inclusive Gateway":"相容网关","Complex Gateway":"复杂网关","Event based Gateway":"事件网关",Transaction:"转运","Sub Process":"子流程","Event Sub Process":"事件子流程","Collapsed Pool":"折叠池","Expanded Pool":"展开池","no parent for {element} in {parent}":"在{parent}里,{element}没有父类","no shape type specified":"没有指定的形状类型","flow elements must be children of pools/participants":"流元素必须是池/参与者的子类","out of bounds release":"out of bounds release","more than {count} child lanes":"子道大于{count} ","element required":"元素不能为空","diagram not part of bpmn:Definitions":"流程图不符合bpmn规范","no diagram to display":"没有可展示的流程图","no process or collaboration to display":"没有可展示的流程/协作","element {element} referenced by {referenced}#{property} not yet drawn":"由{referenced}#{property}引用的{element}元素仍未绘制","already rendered {element}":"{element} 已被渲染","failed to import {element}":"导入{element}失败",Id:"编号",Name:"名称",General:"常规",Details:"详情","Message Name":"消息名称",Message:"消息",Initiator:"创建者","Asynchronous Continuations":"持续异步","Asynchronous Before":"异步前","Asynchronous After":"异步后","Job Configuration":"工作配置",Exclusive:"排除","Job Priority":"工作优先级","Retry Time Cycle":"重试时间周期",Documentation:"文档","Element Documentation":"元素文档","History Configuration":"历史配置","History Time To Live":"历史的生存时间",Forms:"表单","Form Key":"表单key","Form Fields":"表单字段","Business Key":"业务key","Form Field":"表单字段",ID:"编号",Type:"类型",Label:"名称","Default Value":"默认值","Default Flow":"默认流转路径","Conditional Flow":"条件流转路径","Sequence Flow":"普通流转路径",Validation:"校验","Add Constraint":"添加约束",Config:"配置",Properties:"属性","Add Property":"添加属性",Value:"值",Listeners:"监听器","Execution Listener":"执行监听","Event Type":"事件类型","Listener Type":"监听器类型","Java Class":"Java类",Expression:"表达式","Must provide a value":"必须提供一个值","Delegate Expression":"代理表达式",Script:"脚本","Script Format":"脚本格式","Script Type":"脚本类型","Inline Script":"内联脚本","External Script":"外部脚本",Resource:"资源","Field Injection":"字段注入",Extensions:"扩展","Input/Output":"输入/输出","Input Parameters":"输入参数","Output Parameters":"输出参数",Parameters:"参数","Output Parameter":"输出参数","Timer Definition Type":"定时器定义类型","Timer Definition":"定时器定义",Date:"日期",Duration:"持续",Cycle:"循环",Signal:"信号","Signal Name":"信号名称",Escalation:"升级",Error:"错误","Link Name":"链接名称",Condition:"条件名称","Variable Name":"变量名称","Variable Event":"变量事件","Specify more than one variable change event as a comma separated list.":"多个变量事件以逗号隔开","Wait for Completion":"等待完成","Activity Ref":"活动参考","Version Tag":"版本标签",Executable:"可执行文件","External Task Configuration":"扩展任务配置","Task Priority":"任务优先级",External:"外部",Connector:"连接器","Must configure Connector":"必须配置连接器","Connector Id":"连接器编号",Implementation:"实现方式","Field Injections":"字段注入",Fields:"字段","Result Variable":"结果变量",Topic:"主题","Configure Connector":"配置连接器","Input Parameter":"输入参数",Assignee:"代理人","Candidate Users":"候选用户","Candidate Groups":"候选组","Due Date":"到期时间","Follow Up Date":"跟踪日期",Priority:"优先级","The follow up date as an EL expression (e.g. ${someDate} or an ISO date (e.g. 2015-06-26T09:54:00)":"跟踪日期必须符合EL表达式,如: ${someDate} ,或者一个ISO标准日期,如:2015-06-26T09:54:00","The due date as an EL expression (e.g. ${someDate} or an ISO date (e.g. 2015-06-26T09:54:00)":"跟踪日期必须符合EL表达式,如: ${someDate} ,或者一个ISO标准日期,如:2015-06-26T09:54:00",Variables:"变量","Candidate Starter Configuration":"候选人起动器配置","Candidate Starter Groups":"候选人起动器组","This maps to the process definition key.":"这映射到流程定义键。","Candidate Starter Users":"候选人起动器的用户","Specify more than one user as a comma separated list.":"指定多个用户作为逗号分隔的列表。","Tasklist Configuration":"Tasklist配置",Startable:"启动","Specify more than one group as a comma separated list.":"指定多个组作为逗号分隔的列表。"},name$2="Camunda",uri$2="http://camunda.org/schema/1.0/bpmn",prefix$2="camunda",xml$2={tagAlias:"lowerCase"},associations$2=[],types$2=[{name:"Definitions",isAbstract:!0,extends:["bpmn:Definitions"],properties:[{name:"diagramRelationId",isAttr:!0,type:"String"}]},{name:"InOutBinding",superClass:["Element"],isAbstract:!0,properties:[{name:"source",isAttr:!0,type:"String"},{name:"sourceExpression",isAttr:!0,type:"String"},{name:"target",isAttr:!0,type:"String"},{name:"businessKey",isAttr:!0,type:"String"},{name:"local",isAttr:!0,type:"Boolean",default:!1},{name:"variables",isAttr:!0,type:"String"}]},{name:"In",superClass:["InOutBinding"],meta:{allowedIn:["bpmn:CallActivity","bpmn:SignalEventDefinition"]}},{name:"Out",superClass:["InOutBinding"],meta:{allowedIn:["bpmn:CallActivity"]}},{name:"AsyncCapable",isAbstract:!0,extends:["bpmn:Activity","bpmn:Gateway","bpmn:Event"],properties:[{name:"async",isAttr:!0,type:"Boolean",default:!1},{name:"asyncBefore",isAttr:!0,type:"Boolean",default:!1},{name:"asyncAfter",isAttr:!0,type:"Boolean",default:!1},{name:"exclusive",isAttr:!0,type:"Boolean",default:!0}]},{name:"JobPriorized",isAbstract:!0,extends:["bpmn:Process","camunda:AsyncCapable"],properties:[{name:"jobPriority",isAttr:!0,type:"String"}]},{name:"SignalEventDefinition",isAbstract:!0,extends:["bpmn:SignalEventDefinition"],properties:[{name:"async",isAttr:!0,type:"Boolean",default:!1}]},{name:"ErrorEventDefinition",isAbstract:!0,extends:["bpmn:ErrorEventDefinition"],properties:[{name:"errorCodeVariable",isAttr:!0,type:"String"},{name:"errorMessageVariable",isAttr:!0,type:"String"}]},{name:"Error",isAbstract:!0,extends:["bpmn:Error"],properties:[{name:"camunda:errorMessage",isAttr:!0,type:"String"}]},{name:"PotentialStarter",superClass:["Element"],properties:[{name:"resourceAssignmentExpression",type:"bpmn:ResourceAssignmentExpression"}]},{name:"FormSupported",isAbstract:!0,extends:["bpmn:StartEvent","bpmn:UserTask"],properties:[{name:"formHandlerClass",isAttr:!0,type:"String"},{name:"formKey",isAttr:!0,type:"String"}]},{name:"TemplateSupported",isAbstract:!0,extends:["bpmn:Process","bpmn:FlowElement"],properties:[{name:"modelerTemplate",isAttr:!0,type:"String"},{name:"modelerTemplateVersion",isAttr:!0,type:"Integer"}]},{name:"Initiator",isAbstract:!0,extends:["bpmn:StartEvent"],properties:[{name:"initiator",isAttr:!0,type:"String"}]},{name:"ScriptTask",isAbstract:!0,extends:["bpmn:ScriptTask"],properties:[{name:"resultVariable",isAttr:!0,type:"String"},{name:"resource",isAttr:!0,type:"String"}]},{name:"Process",isAbstract:!0,extends:["bpmn:Process"],properties:[{name:"candidateStarterGroups",isAttr:!0,type:"String"},{name:"candidateStarterUsers",isAttr:!0,type:"String"},{name:"versionTag",isAttr:!0,type:"String"},{name:"historyTimeToLive",isAttr:!0,type:"String"},{name:"isStartableInTasklist",isAttr:!0,type:"Boolean",default:!0}]},{name:"EscalationEventDefinition",isAbstract:!0,extends:["bpmn:EscalationEventDefinition"],properties:[{name:"escalationCodeVariable",isAttr:!0,type:"String"}]},{name:"FormalExpression",isAbstract:!0,extends:["bpmn:FormalExpression"],properties:[{name:"resource",isAttr:!0,type:"String"}]},{name:"Assignable",extends:["bpmn:UserTask"],properties:[{name:"assignee",isAttr:!0,type:"String"},{name:"candidateUsers",isAttr:!0,type:"String"},{name:"candidateGroups",isAttr:!0,type:"String"},{name:"dueDate",isAttr:!0,type:"String"},{name:"followUpDate",isAttr:!0,type:"String"},{name:"priority",isAttr:!0,type:"String"}]},{name:"CallActivity",extends:["bpmn:CallActivity"],properties:[{name:"calledElementBinding",isAttr:!0,type:"String",default:"latest"},{name:"calledElementVersion",isAttr:!0,type:"String"},{name:"calledElementVersionTag",isAttr:!0,type:"String"},{name:"calledElementTenantId",isAttr:!0,type:"String"},{name:"caseRef",isAttr:!0,type:"String"},{name:"caseBinding",isAttr:!0,type:"String",default:"latest"},{name:"caseVersion",isAttr:!0,type:"String"},{name:"caseTenantId",isAttr:!0,type:"String"},{name:"variableMappingClass",isAttr:!0,type:"String"},{name:"variableMappingDelegateExpression",isAttr:!0,type:"String"}]},{name:"ServiceTaskLike",extends:["bpmn:ServiceTask","bpmn:BusinessRuleTask","bpmn:SendTask","bpmn:MessageEventDefinition"],properties:[{name:"expression",isAttr:!0,type:"String"},{name:"class",isAttr:!0,type:"String"},{name:"delegateExpression",isAttr:!0,type:"String"},{name:"resultVariable",isAttr:!0,type:"String"}]},{name:"DmnCapable",extends:["bpmn:BusinessRuleTask"],properties:[{name:"decisionRef",isAttr:!0,type:"String"},{name:"decisionRefBinding",isAttr:!0,type:"String",default:"latest"},{name:"decisionRefVersion",isAttr:!0,type:"String"},{name:"mapDecisionResult",isAttr:!0,type:"String",default:"resultList"},{name:"decisionRefTenantId",isAttr:!0,type:"String"}]},{name:"ExternalCapable",extends:["camunda:ServiceTaskLike"],properties:[{name:"type",isAttr:!0,type:"String"},{name:"topic",isAttr:!0,type:"String"}]},{name:"TaskPriorized",extends:["bpmn:Process","camunda:ExternalCapable"],properties:[{name:"taskPriority",isAttr:!0,type:"String"}]},{name:"Properties",superClass:["Element"],meta:{allowedIn:["*"]},properties:[{name:"values",type:"Property",isMany:!0}]},{name:"Property",superClass:["Element"],properties:[{name:"id",type:"String",isAttr:!0},{name:"name",type:"String",isAttr:!0},{name:"value",type:"String",isAttr:!0}]},{name:"Connector",superClass:["Element"],meta:{allowedIn:["camunda:ServiceTaskLike"]},properties:[{name:"inputOutput",type:"InputOutput"},{name:"connectorId",type:"String"}]},{name:"InputOutput",superClass:["Element"],meta:{allowedIn:["bpmn:FlowNode","camunda:Connector"]},properties:[{name:"inputOutput",type:"InputOutput"},{name:"connectorId",type:"String"},{name:"inputParameters",isMany:!0,type:"InputParameter"},{name:"outputParameters",isMany:!0,type:"OutputParameter"}]},{name:"InputOutputParameter",properties:[{name:"name",isAttr:!0,type:"String"},{name:"value",isBody:!0,type:"String"},{name:"definition",type:"InputOutputParameterDefinition"}]},{name:"InputOutputParameterDefinition",isAbstract:!0},{name:"List",superClass:["InputOutputParameterDefinition"],properties:[{name:"items",isMany:!0,type:"InputOutputParameterDefinition"}]},{name:"Map",superClass:["InputOutputParameterDefinition"],properties:[{name:"entries",isMany:!0,type:"Entry"}]},{name:"Entry",properties:[{name:"key",isAttr:!0,type:"String"},{name:"value",isBody:!0,type:"String"},{name:"definition",type:"InputOutputParameterDefinition"}]},{name:"Value",superClass:["InputOutputParameterDefinition"],properties:[{name:"id",isAttr:!0,type:"String"},{name:"name",isAttr:!0,type:"String"},{name:"value",isBody:!0,type:"String"}]},{name:"Script",superClass:["InputOutputParameterDefinition"],properties:[{name:"scriptFormat",isAttr:!0,type:"String"},{name:"resource",isAttr:!0,type:"String"},{name:"value",isBody:!0,type:"String"}]},{name:"Field",superClass:["Element"],meta:{allowedIn:["camunda:ServiceTaskLike","camunda:ExecutionListener","camunda:TaskListener"]},properties:[{name:"name",isAttr:!0,type:"String"},{name:"expression",type:"String"},{name:"stringValue",isAttr:!0,type:"String"},{name:"string",type:"String"}]},{name:"InputParameter",superClass:["InputOutputParameter"]},{name:"OutputParameter",superClass:["InputOutputParameter"]},{name:"Collectable",isAbstract:!0,extends:["bpmn:MultiInstanceLoopCharacteristics"],superClass:["camunda:AsyncCapable"],properties:[{name:"collection",isAttr:!0,type:"String"},{name:"elementVariable",isAttr:!0,type:"String"}]},{name:"FailedJobRetryTimeCycle",superClass:["Element"],meta:{allowedIn:["camunda:AsyncCapable","bpmn:MultiInstanceLoopCharacteristics"]},properties:[{name:"body",isBody:!0,type:"String"}]},{name:"ExecutionListener",superClass:["Element"],meta:{allowedIn:["bpmn:Task","bpmn:ServiceTask","bpmn:UserTask","bpmn:BusinessRuleTask","bpmn:ScriptTask","bpmn:ReceiveTask","bpmn:ManualTask","bpmn:ExclusiveGateway","bpmn:SequenceFlow","bpmn:ParallelGateway","bpmn:InclusiveGateway","bpmn:EventBasedGateway","bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:EndEvent","bpmn:BoundaryEvent","bpmn:CallActivity","bpmn:SubProcess","bpmn:Process"]},properties:[{name:"expression",isAttr:!0,type:"String"},{name:"class",isAttr:!0,type:"String"},{name:"delegateExpression",isAttr:!0,type:"String"},{name:"event",isAttr:!0,type:"String"},{name:"script",type:"Script"},{name:"fields",type:"Field",isMany:!0}]},{name:"TaskListener",superClass:["Element"],meta:{allowedIn:["bpmn:UserTask"]},properties:[{name:"expression",isAttr:!0,type:"String"},{name:"class",isAttr:!0,type:"String"},{name:"delegateExpression",isAttr:!0,type:"String"},{name:"event",isAttr:!0,type:"String"},{name:"script",type:"Script"},{name:"fields",type:"Field",isMany:!0},{name:"id",type:"String",isAttr:!0},{name:"eventDefinitions",type:"bpmn:TimerEventDefinition",isMany:!0}]},{name:"FormProperty",superClass:["Element"],meta:{allowedIn:["bpmn:StartEvent","bpmn:UserTask"]},properties:[{name:"id",type:"String",isAttr:!0},{name:"name",type:"String",isAttr:!0},{name:"type",type:"String",isAttr:!0},{name:"required",type:"String",isAttr:!0},{name:"readable",type:"String",isAttr:!0},{name:"writable",type:"String",isAttr:!0},{name:"variable",type:"String",isAttr:!0},{name:"expression",type:"String",isAttr:!0},{name:"datePattern",type:"String",isAttr:!0},{name:"default",type:"String",isAttr:!0},{name:"values",type:"Value",isMany:!0}]},{name:"FormData",superClass:["Element"],meta:{allowedIn:["bpmn:StartEvent","bpmn:UserTask"]},properties:[{name:"fields",type:"FormField",isMany:!0},{name:"businessKey",type:"String",isAttr:!0}]},{name:"FormField",superClass:["Element"],properties:[{name:"id",type:"String",isAttr:!0},{name:"label",type:"String",isAttr:!0},{name:"type",type:"String",isAttr:!0},{name:"datePattern",type:"String",isAttr:!0},{name:"defaultValue",type:"String",isAttr:!0},{name:"properties",type:"Properties"},{name:"validation",type:"Validation"},{name:"values",type:"Value",isMany:!0}]},{name:"Validation",superClass:["Element"],properties:[{name:"constraints",type:"Constraint",isMany:!0}]},{name:"Constraint",superClass:["Element"],properties:[{name:"name",type:"String",isAttr:!0},{name:"config",type:"String",isAttr:!0}]},{name:"ConditionalEventDefinition",isAbstract:!0,extends:["bpmn:ConditionalEventDefinition"],properties:[{name:"variableName",isAttr:!0,type:"String"},{name:"variableEvents",isAttr:!0,type:"String"}]}],emumerations$2=[],CamundaModdleDescriptor={name:name$2,uri:uri$2,prefix:prefix$2,xml:xml$2,associations:associations$2,types:types$2,emumerations:emumerations$2},name$1="Activiti",uri$1="http://activiti.org/bpmn",prefix$1="activiti",xml$1={tagAlias:"lowerCase"},associations$1=[],types$1=[{name:"Definitions",isAbstract:!0,extends:["bpmn:Definitions"],properties:[{name:"diagramRelationId",isAttr:!0,type:"String"}]},{name:"InOutBinding",superClass:["Element"],isAbstract:!0,properties:[{name:"source",isAttr:!0,type:"String"},{name:"sourceExpression",isAttr:!0,type:"String"},{name:"target",isAttr:!0,type:"String"},{name:"businessKey",isAttr:!0,type:"String"},{name:"local",isAttr:!0,type:"Boolean",default:!1},{name:"variables",isAttr:!0,type:"String"}]},{name:"In",superClass:["InOutBinding"],meta:{allowedIn:["bpmn:CallActivity"]}},{name:"Out",superClass:["InOutBinding"],meta:{allowedIn:["bpmn:CallActivity"]}},{name:"AsyncCapable",isAbstract:!0,extends:["bpmn:Activity","bpmn:Gateway","bpmn:Event"],properties:[{name:"async",isAttr:!0,type:"Boolean",default:!1},{name:"asyncBefore",isAttr:!0,type:"Boolean",default:!1},{name:"asyncAfter",isAttr:!0,type:"Boolean",default:!1},{name:"exclusive",isAttr:!0,type:"Boolean",default:!0}]},{name:"JobPriorized",isAbstract:!0,extends:["bpmn:Process","activiti:AsyncCapable"],properties:[{name:"jobPriority",isAttr:!0,type:"String"}]},{name:"SignalEventDefinition",isAbstract:!0,extends:["bpmn:SignalEventDefinition"],properties:[{name:"async",isAttr:!0,type:"Boolean",default:!1}]},{name:"ErrorEventDefinition",isAbstract:!0,extends:["bpmn:ErrorEventDefinition"],properties:[{name:"errorCodeVariable",isAttr:!0,type:"String"},{name:"errorMessageVariable",isAttr:!0,type:"String"}]},{name:"Error",isAbstract:!0,extends:["bpmn:Error"],properties:[{name:"activiti:errorMessage",isAttr:!0,type:"String"}]},{name:"PotentialStarter",superClass:["Element"],properties:[{name:"resourceAssignmentExpression",type:"bpmn:ResourceAssignmentExpression"}]},{name:"FormSupported",isAbstract:!0,extends:["bpmn:StartEvent","bpmn:UserTask"],properties:[{name:"formHandlerClass",isAttr:!0,type:"String"},{name:"formKey",isAttr:!0,type:"String"}]},{name:"TemplateSupported",isAbstract:!0,extends:["bpmn:Process","bpmn:FlowElement"],properties:[{name:"modelerTemplate",isAttr:!0,type:"String"}]},{name:"Initiator",isAbstract:!0,extends:["bpmn:StartEvent"],properties:[{name:"initiator",isAttr:!0,type:"String"}]},{name:"ScriptTask",isAbstract:!0,extends:["bpmn:ScriptTask"],properties:[{name:"resultVariable",isAttr:!0,type:"String"},{name:"resource",isAttr:!0,type:"String"}]},{name:"Process",isAbstract:!0,extends:["bpmn:Process"],properties:[{name:"candidateStarterGroups",isAttr:!0,type:"String"},{name:"candidateStarterUsers",isAttr:!0,type:"String"},{name:"versionTag",isAttr:!0,type:"String"},{name:"historyTimeToLive",isAttr:!0,type:"String"},{name:"isStartableInTasklist",isAttr:!0,type:"Boolean",default:!0},{name:"executionListener",isAbstract:!0,type:"Expression"}]},{name:"EscalationEventDefinition",isAbstract:!0,extends:["bpmn:EscalationEventDefinition"],properties:[{name:"escalationCodeVariable",isAttr:!0,type:"String"}]},{name:"FormalExpression",isAbstract:!0,extends:["bpmn:FormalExpression"],properties:[{name:"resource",isAttr:!0,type:"String"}]},{name:"multiinstance_type",superClass:["Element"]},{name:"multiinstance_condition",superClass:["Element"]},{name:"Assignable",extends:["bpmn:UserTask"],properties:[{name:"assignee",isAttr:!0,type:"String"},{name:"candidateUsers",isAttr:!0,type:"String"},{name:"candidateGroups",isAttr:!0,type:"String"},{name:"dueDate",isAttr:!0,type:"String"},{name:"followUpDate",isAttr:!0,type:"String"},{name:"priority",isAttr:!0,type:"String"},{name:"multiinstance_condition",isAttr:!0,type:"String"}]},{name:"CallActivity",extends:["bpmn:CallActivity"],properties:[{name:"calledElementBinding",isAttr:!0,type:"String",default:"latest"},{name:"calledElementVersion",isAttr:!0,type:"String"},{name:"calledElementVersionTag",isAttr:!0,type:"String"},{name:"calledElementTenantId",isAttr:!0,type:"String"},{name:"caseRef",isAttr:!0,type:"String"},{name:"caseBinding",isAttr:!0,type:"String",default:"latest"},{name:"caseVersion",isAttr:!0,type:"String"},{name:"caseTenantId",isAttr:!0,type:"String"},{name:"variableMappingClass",isAttr:!0,type:"String"},{name:"variableMappingDelegateExpression",isAttr:!0,type:"String"}]},{name:"ServiceTaskLike",extends:["bpmn:ServiceTask","bpmn:BusinessRuleTask","bpmn:SendTask","bpmn:MessageEventDefinition"],properties:[{name:"expression",isAttr:!0,type:"String"},{name:"class",isAttr:!0,type:"String"},{name:"delegateExpression",isAttr:!0,type:"String"},{name:"resultVariable",isAttr:!0,type:"String"}]},{name:"DmnCapable",extends:["bpmn:BusinessRuleTask"],properties:[{name:"decisionRef",isAttr:!0,type:"String"},{name:"decisionRefBinding",isAttr:!0,type:"String",default:"latest"},{name:"decisionRefVersion",isAttr:!0,type:"String"},{name:"mapDecisionResult",isAttr:!0,type:"String",default:"resultList"},{name:"decisionRefTenantId",isAttr:!0,type:"String"}]},{name:"ExternalCapable",extends:["activiti:ServiceTaskLike"],properties:[{name:"type",isAttr:!0,type:"String"},{name:"topic",isAttr:!0,type:"String"}]},{name:"TaskPriorized",extends:["bpmn:Process","activiti:ExternalCapable"],properties:[{name:"taskPriority",isAttr:!0,type:"String"}]},{name:"Properties",superClass:["Element"],meta:{allowedIn:["*"]},properties:[{name:"values",type:"Property",isMany:!0}]},{name:"Property",superClass:["Element"],properties:[{name:"id",type:"String",isAttr:!0},{name:"name",type:"String",isAttr:!0},{name:"value",type:"String",isAttr:!0}]},{name:"Connector",superClass:["Element"],meta:{allowedIn:["activiti:ServiceTaskLike"]},properties:[{name:"inputOutput",type:"InputOutput"},{name:"connectorId",type:"String"}]},{name:"InputOutput",superClass:["Element"],meta:{allowedIn:["bpmn:FlowNode","activiti:Connector"]},properties:[{name:"inputOutput",type:"InputOutput"},{name:"connectorId",type:"String"},{name:"inputParameters",isMany:!0,type:"InputParameter"},{name:"outputParameters",isMany:!0,type:"OutputParameter"}]},{name:"InputOutputParameter",properties:[{name:"name",isAttr:!0,type:"String"},{name:"value",isBody:!0,type:"String"},{name:"definition",type:"InputOutputParameterDefinition"}]},{name:"InputOutputParameterDefinition",isAbstract:!0},{name:"List",superClass:["InputOutputParameterDefinition"],properties:[{name:"items",isMany:!0,type:"InputOutputParameterDefinition"}]},{name:"Map",superClass:["InputOutputParameterDefinition"],properties:[{name:"entries",isMany:!0,type:"Entry"}]},{name:"Entry",properties:[{name:"key",isAttr:!0,type:"String"},{name:"value",isBody:!0,type:"String"},{name:"definition",type:"InputOutputParameterDefinition"}]},{name:"Value",superClass:["InputOutputParameterDefinition"],properties:[{name:"id",isAttr:!0,type:"String"},{name:"name",isAttr:!0,type:"String"},{name:"value",isBody:!0,type:"String"}]},{name:"Script",superClass:["InputOutputParameterDefinition"],properties:[{name:"scriptFormat",isAttr:!0,type:"String"},{name:"resource",isAttr:!0,type:"String"},{name:"value",isBody:!0,type:"String"}]},{name:"Field",superClass:["Element"],meta:{allowedIn:["activiti:ServiceTaskLike","activiti:ExecutionListener","activiti:TaskListener"]},properties:[{name:"name",isAttr:!0,type:"String"},{name:"expression",type:"String"},{name:"stringValue",isAttr:!0,type:"String"},{name:"string",type:"String"}]},{name:"InputParameter",superClass:["InputOutputParameter"]},{name:"OutputParameter",superClass:["InputOutputParameter"]},{name:"Collectable",isAbstract:!0,extends:["bpmn:MultiInstanceLoopCharacteristics"],superClass:["activiti:AsyncCapable"],properties:[{name:"collection",isAttr:!0,type:"String"},{name:"elementVariable",isAttr:!0,type:"String"}]},{name:"FailedJobRetryTimeCycle",superClass:["Element"],meta:{allowedIn:["activiti:AsyncCapable","bpmn:MultiInstanceLoopCharacteristics"]},properties:[{name:"body",isBody:!0,type:"String"}]},{name:"ExecutionListener",superClass:["Element"],meta:{allowedIn:["bpmn:Task","bpmn:ServiceTask","bpmn:UserTask","bpmn:BusinessRuleTask","bpmn:ScriptTask","bpmn:ReceiveTask","bpmn:ManualTask","bpmn:ExclusiveGateway","bpmn:SequenceFlow","bpmn:ParallelGateway","bpmn:InclusiveGateway","bpmn:EventBasedGateway","bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:EndEvent","bpmn:BoundaryEvent","bpmn:CallActivity","bpmn:SubProcess","bpmn:Process"]},properties:[{name:"expression",isAttr:!0,type:"String"},{name:"class",isAttr:!0,type:"String"},{name:"delegateExpression",isAttr:!0,type:"String"},{name:"event",isAttr:!0,type:"String"},{name:"script",type:"Script"},{name:"fields",type:"Field",isMany:!0}]},{name:"TaskListener",superClass:["Element"],meta:{allowedIn:["bpmn:UserTask"]},properties:[{name:"expression",isAttr:!0,type:"String"},{name:"class",isAttr:!0,type:"String"},{name:"delegateExpression",isAttr:!0,type:"String"},{name:"event",isAttr:!0,type:"String"},{name:"script",type:"Script"},{name:"fields",type:"Field",isMany:!0}]},{name:"FormProperty",superClass:["Element"],meta:{allowedIn:["bpmn:StartEvent","bpmn:UserTask"]},properties:[{name:"id",type:"String",isAttr:!0},{name:"name",type:"String",isAttr:!0},{name:"type",type:"String",isAttr:!0},{name:"required",type:"String",isAttr:!0},{name:"readable",type:"String",isAttr:!0},{name:"writable",type:"String",isAttr:!0},{name:"variable",type:"String",isAttr:!0},{name:"expression",type:"String",isAttr:!0},{name:"datePattern",type:"String",isAttr:!0},{name:"default",type:"String",isAttr:!0},{name:"values",type:"Value",isMany:!0}]},{name:"FormProperty",superClass:["Element"],properties:[{name:"id",type:"String",isAttr:!0},{name:"label",type:"String",isAttr:!0},{name:"type",type:"String",isAttr:!0},{name:"datePattern",type:"String",isAttr:!0},{name:"defaultValue",type:"String",isAttr:!0},{name:"properties",type:"Properties"},{name:"validation",type:"Validation"},{name:"values",type:"Value",isMany:!0}]},{name:"Validation",superClass:["Element"],properties:[{name:"constraints",type:"Constraint",isMany:!0}]},{name:"Constraint",superClass:["Element"],properties:[{name:"name",type:"String",isAttr:!0},{name:"config",type:"String",isAttr:!0}]},{name:"ConditionalEventDefinition",isAbstract:!0,extends:["bpmn:ConditionalEventDefinition"],properties:[{name:"variableName",isAttr:!0,type:"String"},{name:"variableEvent",isAttr:!0,type:"String"}]}],emumerations$1=[],ActivitiModdleDescriptor={name:name$1,uri:uri$1,prefix:prefix$1,xml:xml$1,associations:associations$1,types:types$1,emumerations:emumerations$1},name="Flowable",uri="http://flowable.org/bpmn",prefix="flowable",xml={tagAlias:"lowerCase"},associations=[],types=[{name:"InOutBinding",superClass:["Element"],isAbstract:!0,properties:[{name:"source",isAttr:!0,type:"String"},{name:"sourceExpression",isAttr:!0,type:"String"},{name:"target",isAttr:!0,type:"String"},{name:"businessKey",isAttr:!0,type:"String"},{name:"local",isAttr:!0,type:"Boolean",default:!1},{name:"variables",isAttr:!0,type:"String"}]},{name:"In",superClass:["InOutBinding"],meta:{allowedIn:["bpmn:CallActivity"]}},{name:"Out",superClass:["InOutBinding"],meta:{allowedIn:["bpmn:CallActivity"]}},{name:"AsyncCapable",isAbstract:!0,extends:["bpmn:Activity","bpmn:Gateway","bpmn:Event"],properties:[{name:"async",isAttr:!0,type:"Boolean",default:!1},{name:"asyncBefore",isAttr:!0,type:"Boolean",default:!1},{name:"asyncAfter",isAttr:!0,type:"Boolean",default:!1},{name:"exclusive",isAttr:!0,type:"Boolean",default:!0}]},{name:"JobPriorized",isAbstract:!0,extends:["bpmn:Process","flowable:AsyncCapable"],properties:[{name:"jobPriority",isAttr:!0,type:"String"}]},{name:"SignalEventDefinition",isAbstract:!0,extends:["bpmn:SignalEventDefinition"],properties:[{name:"async",isAttr:!0,type:"Boolean",default:!1}]},{name:"ErrorEventDefinition",isAbstract:!0,extends:["bpmn:ErrorEventDefinition"],properties:[{name:"errorCodeVariable",isAttr:!0,type:"String"},{name:"errorMessageVariable",isAttr:!0,type:"String"}]},{name:"Error",isAbstract:!0,extends:["bpmn:Error"],properties:[{name:"flowable:errorMessage",isAttr:!0,type:"String"}]},{name:"PotentialStarter",superClass:["Element"],properties:[{name:"resourceAssignmentExpression",type:"bpmn:ResourceAssignmentExpression"}]},{name:"FormSupported",isAbstract:!0,extends:["bpmn:StartEvent","bpmn:UserTask"],properties:[{name:"formHandlerClass",isAttr:!0,type:"String"},{name:"formKey",isAttr:!0,type:"String"},{name:"formType",isAttr:!0,type:"String"},{name:"formReadOnly",isAttr:!0,type:"Boolean",default:!1},{name:"formInit",isAttr:!0,type:"Boolean",default:!0}]},{name:"TemplateSupported",isAbstract:!0,extends:["bpmn:Process","bpmn:FlowElement"],properties:[{name:"modelerTemplate",isAttr:!0,type:"String"}]},{name:"Initiator",isAbstract:!0,extends:["bpmn:StartEvent"],properties:[{name:"initiator",isAttr:!0,type:"String"}]},{name:"ScriptTask",isAbstract:!0,extends:["bpmn:ScriptTask"],properties:[{name:"resultVariable",isAttr:!0,type:"String"},{name:"resource",isAttr:!0,type:"String"}]},{name:"Process",isAbstract:!0,extends:["bpmn:Process"],properties:[{name:"candidateStarterGroups",isAttr:!0,type:"String"},{name:"candidateStarterUsers",isAttr:!0,type:"String"},{name:"versionTag",isAttr:!0,type:"String"},{name:"historyTimeToLive",isAttr:!0,type:"String"},{name:"isStartableInTasklist",isAttr:!0,type:"Boolean",default:!0}]},{name:"EscalationEventDefinition",isAbstract:!0,extends:["bpmn:EscalationEventDefinition"],properties:[{name:"escalationCodeVariable",isAttr:!0,type:"String"}]},{name:"FormalExpression",isAbstract:!0,extends:["bpmn:FormalExpression"],properties:[{name:"resource",isAttr:!0,type:"String"}]},{name:"Assignable",extends:["bpmn:UserTask"],properties:[{name:"assignee",isAttr:!0,type:"String"},{name:"candidateUsers",isAttr:!0,type:"String"},{name:"candidateGroups",isAttr:!0,type:"String"},{name:"dueDate",isAttr:!0,type:"String"},{name:"followUpDate",isAttr:!0,type:"String"},{name:"priority",isAttr:!0,type:"String"}]},{name:"Assignee",supperClass:"Element",meta:{allowedIn:["*"]},properties:[{name:"label",type:"String",isAttr:!0},{name:"viewId",type:"Number",isAttr:!0}]},{name:"CallActivity",extends:["bpmn:CallActivity"],properties:[{name:"calledElementBinding",isAttr:!0,type:"String",default:"latest"},{name:"calledElementVersion",isAttr:!0,type:"String"},{name:"calledElementVersionTag",isAttr:!0,type:"String"},{name:"calledElementTenantId",isAttr:!0,type:"String"},{name:"caseRef",isAttr:!0,type:"String"},{name:"caseBinding",isAttr:!0,type:"String",default:"latest"},{name:"caseVersion",isAttr:!0,type:"String"},{name:"caseTenantId",isAttr:!0,type:"String"},{name:"variableMappingClass",isAttr:!0,type:"String"},{name:"variableMappingDelegateExpression",isAttr:!0,type:"String"}]},{name:"ServiceTaskLike",extends:["bpmn:ServiceTask","bpmn:BusinessRuleTask","bpmn:SendTask","bpmn:MessageEventDefinition"],properties:[{name:"expression",isAttr:!0,type:"String"},{name:"class",isAttr:!0,type:"String"},{name:"delegateExpression",isAttr:!0,type:"String"},{name:"resultVariable",isAttr:!0,type:"String"}]},{name:"DmnCapable",extends:["bpmn:BusinessRuleTask"],properties:[{name:"decisionRef",isAttr:!0,type:"String"},{name:"decisionRefBinding",isAttr:!0,type:"String",default:"latest"},{name:"decisionRefVersion",isAttr:!0,type:"String"},{name:"mapDecisionResult",isAttr:!0,type:"String",default:"resultList"},{name:"decisionRefTenantId",isAttr:!0,type:"String"}]},{name:"ExternalCapable",extends:["flowable:ServiceTaskLike"],properties:[{name:"type",isAttr:!0,type:"String"},{name:"topic",isAttr:!0,type:"String"}]},{name:"TaskPriorized",extends:["bpmn:Process","flowable:ExternalCapable"],properties:[{name:"taskPriority",isAttr:!0,type:"String"}]},{name:"Properties",superClass:["Element"],meta:{allowedIn:["*"]},properties:[{name:"values",type:"Property",isMany:!0}]},{name:"Property",superClass:["Element"],properties:[{name:"id",type:"String",isAttr:!0},{name:"name",type:"String",isAttr:!0},{name:"value",type:"String",isAttr:!0}]},{name:"Button",superClass:["Element"],meta:{allowedIn:["bpmn:UserTask"]},properties:[{name:"id",type:"String",isAttr:!0},{name:"name",type:"String",isAttr:!0},{name:"code",type:"String",isAttr:!0},{name:"isHide",type:"String",isAttr:!0},{name:"next",type:"String",isAttr:!0},{name:"sort",type:"Integer",isAttr:!0}]},{name:"Assignee",superClass:["Element"],meta:{allowedIn:["bpmn:UserTask"]},properties:[{name:"id",type:"String",isAttr:!0},{name:"type",type:"String",isAttr:!0},{name:"value",type:"String",isAttr:!0},{name:"condition",type:"String",isAttr:!0},{name:"operationType",type:"String",isAttr:!0},{name:"sort",type:"Integer",isAttr:!0}]},{name:"Connector",superClass:["Element"],meta:{allowedIn:["flowable:ServiceTaskLike"]},properties:[{name:"inputOutput",type:"InputOutput"},{name:"connectorId",type:"String"}]},{name:"InputOutput",superClass:["Element"],meta:{allowedIn:["bpmn:FlowNode","flowable:Connector"]},properties:[{name:"inputOutput",type:"InputOutput"},{name:"connectorId",type:"String"},{name:"inputParameters",isMany:!0,type:"InputParameter"},{name:"outputParameters",isMany:!0,type:"OutputParameter"}]},{name:"InputOutputParameter",properties:[{name:"name",isAttr:!0,type:"String"},{name:"value",isBody:!0,type:"String"},{name:"definition",type:"InputOutputParameterDefinition"}]},{name:"InputOutputParameterDefinition",isAbstract:!0},{name:"List",superClass:["InputOutputParameterDefinition"],properties:[{name:"items",isMany:!0,type:"InputOutputParameterDefinition"}]},{name:"Map",superClass:["InputOutputParameterDefinition"],properties:[{name:"entries",isMany:!0,type:"Entry"}]},{name:"Entry",properties:[{name:"key",isAttr:!0,type:"String"},{name:"value",isBody:!0,type:"String"},{name:"definition",type:"InputOutputParameterDefinition"}]},{name:"Value",superClass:["InputOutputParameterDefinition"],properties:[{name:"id",isAttr:!0,type:"String"},{name:"name",isAttr:!0,type:"String"},{name:"value",isBody:!0,type:"String"}]},{name:"Script",superClass:["InputOutputParameterDefinition"],properties:[{name:"scriptFormat",isAttr:!0,type:"String"},{name:"resource",isAttr:!0,type:"String"},{name:"value",isBody:!0,type:"String"}]},{name:"Field",superClass:["Element"],meta:{allowedIn:["flowable:ServiceTaskLike","flowable:ExecutionListener","flowable:TaskListener","bpmn:ServiceTask"]},properties:[{name:"name",isAttr:!0,type:"String"},{name:"expression",type:"String"},{name:"stringValue",isAttr:!0,type:"String"},{name:"string",type:"String"},{name:"htmlVar",type:"Expression"}]},{name:"ChildField",superClass:["Element"],properties:[{name:"id",type:"String",isAttr:!0},{name:"name",type:"String",isAttr:!0},{name:"type",type:"String",isAttr:!0},{name:"required",type:"String",isAttr:!0},{name:"readable",type:"String",isAttr:!0},{name:"writable",type:"String",isAttr:!0},{name:"variable",type:"String",isAttr:!0},{name:"expression",type:"String",isAttr:!0},{name:"datePattern",type:"String",isAttr:!0},{name:"default",type:"String",isAttr:!0},{name:"values",type:"Value",isMany:!0}]},{name:"InputParameter",superClass:["InputOutputParameter"]},{name:"OutputParameter",superClass:["InputOutputParameter"]},{name:"Collectable",isAbstract:!0,extends:["bpmn:MultiInstanceLoopCharacteristics"],superClass:["flowable:AsyncCapable"],properties:[{name:"collection",isAttr:!0,type:"String"},{name:"elementVariable",isAttr:!0,type:"String"}]},{name:"FailedJobRetryTimeCycle",superClass:["Element"],meta:{allowedIn:["flowable:AsyncCapable","bpmn:MultiInstanceLoopCharacteristics"]},properties:[{name:"body",isBody:!0,type:"String"}]},{name:"ExecutionListener",superClass:["Element"],meta:{allowedIn:["bpmn:Task","bpmn:ServiceTask","bpmn:UserTask","bpmn:BusinessRuleTask","bpmn:ScriptTask","bpmn:ReceiveTask","bpmn:ManualTask","bpmn:ExclusiveGateway","bpmn:SequenceFlow","bpmn:ParallelGateway","bpmn:InclusiveGateway","bpmn:EventBasedGateway","bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:EndEvent","bpmn:BoundaryEvent","bpmn:CallActivity","bpmn:SubProcess","bpmn:Process"]},properties:[{name:"expression",isAttr:!0,type:"String"},{name:"class",isAttr:!0,type:"String"},{name:"delegateExpression",isAttr:!0,type:"String"},{name:"event",isAttr:!0,type:"String"},{name:"script",type:"Script"},{name:"fields",type:"Field",isMany:!0}]},{name:"TaskListener",superClass:["Element"],meta:{allowedIn:["bpmn:UserTask"]},properties:[{name:"expression",isAttr:!0,type:"String"},{name:"class",isAttr:!0,type:"String"},{name:"delegateExpression",isAttr:!0,type:"String"},{name:"event",isAttr:!0,type:"String"},{name:"script",type:"Script"},{name:"fields",type:"Field",isMany:!0}]},{name:"FormProperty",superClass:["Element"],meta:{allowedIn:["bpmn:StartEvent","bpmn:UserTask"]},properties:[{name:"id",type:"String",isAttr:!0},{name:"name",type:"String",isAttr:!0},{name:"type",type:"String",isAttr:!0},{name:"required",type:"String",isAttr:!0},{name:"readable",type:"String",isAttr:!0},{name:"writable",type:"String",isAttr:!0},{name:"variable",type:"String",isAttr:!0},{name:"expression",type:"String",isAttr:!0},{name:"datePattern",type:"String",isAttr:!0},{name:"default",type:"String",isAttr:!0},{name:"values",type:"Value",isMany:!0},{name:"children",type:"ChildField",isMany:!0},{name:"extensionElements",type:"bpmn:ExtensionElements",isMany:!0}]},{name:"FormData",superClass:["Element"],meta:{allowedIn:["bpmn:StartEvent","bpmn:UserTask"]},properties:[{name:"fields",type:"FormField",isMany:!0},{name:"businessKey",type:"String",isAttr:!0}]},{name:"FormField",superClass:["Element"],properties:[{name:"id",type:"String",isAttr:!0},{name:"label",type:"String",isAttr:!0},{name:"type",type:"String",isAttr:!0},{name:"datePattern",type:"String",isAttr:!0},{name:"defaultValue",type:"String",isAttr:!0},{name:"properties",type:"Properties"},{name:"validation",type:"Validation"},{name:"values",type:"Value",isMany:!0}]},{name:"Validation",superClass:["Element"],properties:[{name:"constraints",type:"Constraint",isMany:!0}]},{name:"Constraint",superClass:["Element"],properties:[{name:"name",type:"String",isAttr:!0},{name:"config",type:"String",isAttr:!0}]},{name:"ConditionalEventDefinition",isAbstract:!0,extends:["bpmn:ConditionalEventDefinition"],properties:[{name:"variableName",isAttr:!0,type:"String"},{name:"variableEvent",isAttr:!0,type:"String"}]},{name:"Condition",superClass:["Element"],meta:{allowedIn:["bpmn:SequenceFlow"]},properties:[{name:"id",type:"String",isAttr:!0},{name:"field",type:"String",isAttr:!0},{name:"compare",type:"String",isAttr:!0},{name:"value",type:"String",isAttr:!0},{name:"logic",type:"String",isAttr:!0},{name:"sort",type:"Integer",isAttr:!0}]}],emumerations=[],FlowableModdleDescriptor={name,uri,prefix,xml,associations,types,emumerations},WILDCARD="*";function CamundaModdleExtension$1(t){const s=this;t.on("moddleCopy.canCopyProperty",function(n){const r=n.property,a=n.parent;return s.canCopyProperty(r,a)})}CamundaModdleExtension$1.$inject=["eventBus"];CamundaModdleExtension$1.prototype.canCopyProperty=function(t,s){if(minDash.isObject(t)&&!isAllowedInParent(t,s)||is$2(t,"camunda:InputOutput")&&!this.canHostInputOutput(s)||isAny(t,["camunda:Connector","camunda:Field"])&&!this.canHostConnector(s)||is$2(t,"camunda:In")&&!this.canHostIn(s))return!1};CamundaModdleExtension$1.prototype.canHostInputOutput=function(t){if(getParent(t,"camunda:Connector"))return!0;const n=getParent(t,"bpmn:FlowNode");return!(!n||isAny(n,["bpmn:StartEvent","bpmn:Gateway","bpmn:BoundaryEvent"])||is$2(n,"bpmn:SubProcess")&&n.get("triggeredByEvent"))};CamundaModdleExtension$1.prototype.canHostConnector=function(t){const s=getParent(t,"camunda:ServiceTaskLike");return is$2(s,"bpmn:MessageEventDefinition")?getParent(t,"bpmn:IntermediateThrowEvent")||getParent(t,"bpmn:EndEvent"):!0};CamundaModdleExtension$1.prototype.canHostIn=function(t){return getParent(t,"bpmn:CallActivity")?!0:getParent(t,"bpmn:SignalEventDefinition")?getParent(t,"bpmn:IntermediateThrowEvent")||getParent(t,"bpmn:EndEvent"):!0};function is$2(t,s){return t&&minDash.isFunction(t.$instanceOf)&&t.$instanceOf(s)}function isAny(t,s){return minDash.some(s,function(n){return is$2(t,n)})}function getParent(t,s){if(!s)return t.$parent;if(is$2(t,s))return t;if(t.$parent)return getParent(t.$parent,s)}function isAllowedInParent(t,s){const n=t.$type&&t.$model.getTypeDescriptor(t.$type),r=n&&n.meta&&n.meta.allowedIn;return!r||isWildcard(r)?!0:minDash.some(r,function(a){return getParent(s,a)})}function isWildcard(t){return t.indexOf(WILDCARD)!==-1}const CamundaModdleExtension={__init__:["camundaModdleExtension"],camundaModdleExtension:["type",CamundaModdleExtension$1]},ALLOWED_TYPES$1={FailedJobRetryTimeCycle:["bpmn:StartEvent","bpmn:BoundaryEvent","bpmn:IntermediateCatchEvent","bpmn:Activity"],Connector:["bpmn:EndEvent","bpmn:IntermediateThrowEvent"],Field:["bpmn:EndEvent","bpmn:IntermediateThrowEvent"]};function is$1(t,s){return t&&typeof t.$instanceOf=="function"&&t.$instanceOf(s)}function exists$1(t){return t&&t.length}function includesType$1(t,s){return exists$1(t)&&minDash.some(t,function(n){return is$1(n,s)})}function anyType$1(t,s){return minDash.some(s,function(n){return is$1(t,n)})}function isAllowed$1(t,s,n){const r=s.name,a=ALLOWED_TYPES$1[r.replace(/activiti:/,"")];return r===t&&anyType$1(n,a)}function ActivitiModdleExtension$1(t){t.on("property.clone",function(s){const n=s.newElement,r=s.propertyDescriptor;this.canCloneProperty(n,r)},this)}ActivitiModdleExtension$1.$inject=["eventBus"];ActivitiModdleExtension$1.prototype.canCloneProperty=function(t,s){if(isAllowed$1("activiti:FailedJobRetryTimeCycle",s,t))return includesType$1(t.eventDefinitions,"bpmn:TimerEventDefinition")||includesType$1(t.eventDefinitions,"bpmn:SignalEventDefinition")||is$1(t.loopCharacteristics,"bpmn:MultiInstanceLoopCharacteristics");if(isAllowed$1("activiti:Connector",s,t)||isAllowed$1("activiti:Field",s,t))return includesType$1(t.eventDefinitions,"bpmn:MessageEventDefinition")};const ActivitiModdleExtension={__init__:["ActivitiModdleExtension"],ActivitiModdleExtension:["type",ActivitiModdleExtension$1]},ALLOWED_TYPES={FailedJobRetryTimeCycle:["bpmn:StartEvent","bpmn:BoundaryEvent","bpmn:IntermediateCatchEvent","bpmn:Activity"],Connector:["bpmn:EndEvent","bpmn:IntermediateThrowEvent"],Field:["bpmn:EndEvent","bpmn:IntermediateThrowEvent"]};function is(t,s){return t&&typeof t.$instanceOf=="function"&&t.$instanceOf(s)}function exists(t){return t&&t.length}function includesType(t,s){return exists(t)&&minDash.some(t,function(n){return is(n,s)})}function anyType(t,s){return minDash.some(s,function(n){return is(t,n)})}function isAllowed(t,s,n){const r=s.name,a=ALLOWED_TYPES[r.replace(/flowable:/,"")];return r===t&&anyType(n,a)}function FlowableModdleExtension$1(t){t.on("property.clone",function(s){const n=s.newElement,r=s.propertyDescriptor;this.canCloneProperty(n,r)},this)}FlowableModdleExtension$1.$inject=["eventBus"];FlowableModdleExtension$1.prototype.canCloneProperty=function(t,s){if(isAllowed("flowable:FailedJobRetryTimeCycle",s,t))return includesType(t.eventDefinitions,"bpmn:TimerEventDefinition")||includesType(t.eventDefinitions,"bpmn:SignalEventDefinition")||is(t.loopCharacteristics,"bpmn:MultiInstanceLoopCharacteristics");if(isAllowed("flowable:Connector",s,t)||isAllowed("flowable:Field",s,t))return includesType(t.eventDefinitions,"bpmn:MessageEventDefinition")};const FlowableModdleExtension={__init__:["FlowableModdleExtension"],FlowableModdleExtension:["type",FlowableModdleExtension$1]};var render$C=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"my-process-designer"},[n("div",{staticClass:"my-process-designer__header"},[t._t("control-header"),t.$slots["control-header"]?t._e():[n("ElButtonGroup",{key:"file-control"},[t.simulation?n("ElTooltip",{attrs:{effect:"light",content:"保存流程"}},[n("ElButton",{attrs:{size:t.headerButtonSize,type:t.headerButtonType,icon:"el-icon-save"},on:{click:function(r){return t.$refs.refFile.click()}}},[t._v(" 保存 ")])],1):t._e(),t.simulation?n("ElTooltip",{attrs:{effect:"light",content:"导入流程"}},[n("ElButton",{attrs:{size:t.headerButtonSize,type:t.headerButtonType,icon:"el-icon-folder-opened"},on:{click:function(r){return t.$refs.refFile.click()}}},[t._v(" 导入 ")])],1):t._e(),n("ElTooltip",{attrs:{effect:"light"},scopedSlots:t._u([{key:"content",fn:function(){return[n("ElButton",{attrs:{size:t.headerButtonSize,type:"text"},on:{click:function(r){return t.downloadProcessAsXml()}}},[t._v("下载为XML文件")]),n("br"),n("ElButton",{attrs:{size:t.headerButtonSize,type:"text"},on:{click:function(r){return t.downloadProcessAsSvg()}}},[t._v("下载为SVG文件")]),n("br"),n("ElButton",{attrs:{size:t.headerButtonSize,type:"text"},on:{click:function(r){return t.downloadProcessAsBpmn()}}},[t._v("下载为BPMN文件")])]},proxy:!0}],null,!1,1539507321)},[n("ElButton",{attrs:{size:t.headerButtonSize,type:t.headerButtonType,icon:"el-icon-download"}},[t._v("下载")])],1),n("ElTooltip",{attrs:{effect:"light"},scopedSlots:t._u([{key:"content",fn:function(){return[n("ElButton",{attrs:{size:t.headerButtonSize,type:"text"},on:{click:t.previewProcessXML}},[t._v("预览XML")]),n("br"),n("ElButton",{attrs:{size:t.headerButtonSize,type:"text"},on:{click:t.previewProcessJson}},[t._v("预览JSON")])]},proxy:!0}],null,!1,3067180497)},[n("ElButton",{attrs:{size:t.headerButtonSize,type:t.headerButtonType,icon:"el-icon-view"}},[t._v("预览")])],1),t.simulation?n("ElTooltip",{attrs:{effect:"light",content:t.simulationStatus?"退出模拟":"开启模拟"}},[n("ElButton",{attrs:{size:t.headerButtonSize,type:t.headerButtonType,icon:"el-icon-cpu"},on:{click:t.processSimulation}},[t._v(" 模拟 ")])],1):t._e()],1),n("ElButtonGroup",{key:"align-control"},[n("ElTooltip",{attrs:{effect:"light",content:"向左对齐"}},[n("ElButton",{staticClass:"align align-left",attrs:{size:t.headerButtonSize,icon:"el-icon-s-data"},on:{click:function(r){return t.elementsAlign("left")}}})],1),n("ElTooltip",{attrs:{effect:"light",content:"向右对齐"}},[n("ElButton",{staticClass:"align align-right",attrs:{size:t.headerButtonSize,icon:"el-icon-s-data"},on:{click:function(r){return t.elementsAlign("right")}}})],1),n("ElTooltip",{attrs:{effect:"light",content:"向上对齐"}},[n("ElButton",{staticClass:"align align-top",attrs:{size:t.headerButtonSize,icon:"el-icon-s-data"},on:{click:function(r){return t.elementsAlign("top")}}})],1),n("ElTooltip",{attrs:{effect:"light",content:"向下对齐"}},[n("ElButton",{staticClass:"align align-bottom",attrs:{size:t.headerButtonSize,icon:"el-icon-s-data"},on:{click:function(r){return t.elementsAlign("bottom")}}})],1),n("ElTooltip",{attrs:{effect:"light",content:"水平居中"}},[n("ElButton",{staticClass:"align align-center",attrs:{size:t.headerButtonSize,icon:"el-icon-s-data"},on:{click:function(r){return t.elementsAlign("center")}}})],1),n("ElTooltip",{attrs:{effect:"light",content:"垂直居中"}},[n("ElButton",{staticClass:"align align-middle",attrs:{size:t.headerButtonSize,icon:"el-icon-s-data"},on:{click:function(r){return t.elementsAlign("middle")}}})],1)],1),n("ElButtonGroup",{key:"scale-control"},[n("ElTooltip",{attrs:{effect:"light",content:"缩小视图"}},[n("ElButton",{attrs:{size:t.headerButtonSize,disabled:t.defaultZoom<.2,icon:"el-icon-zoom-out"},on:{click:function(r){return t.processZoomOut()}}})],1),n("ElButton",{attrs:{size:t.headerButtonSize}},[t._v(t._s(`${Math.floor(t.defaultZoom*10*10)}%`))]),n("ElTooltip",{attrs:{effect:"light",content:"放大视图"}},[n("ElButton",{attrs:{size:t.headerButtonSize,disabled:t.defaultZoom>4,icon:"el-icon-zoom-in"},on:{click:function(r){return t.processZoomIn()}}})],1),n("ElTooltip",{attrs:{effect:"light",content:"重置视图并居中"}},[n("ElButton",{attrs:{size:t.headerButtonSize,icon:"el-icon-c-scale-to-original"},on:{click:function(r){return t.processReZoom()}}})],1)],1),n("ElButtonGroup",{key:"stack-control"},[n("ElTooltip",{attrs:{effect:"light",content:"撤销"}},[n("ElButton",{attrs:{size:t.headerButtonSize,disabled:!t.revocable,icon:"el-icon-refresh-left"},on:{click:function(r){return t.processUndo()}}})],1),n("ElTooltip",{attrs:{effect:"light",content:"恢复"}},[n("ElButton",{attrs:{size:t.headerButtonSize,disabled:!t.recoverable,icon:"el-icon-refresh-right"},on:{click:function(r){return t.processRedo()}}})],1),n("ElTooltip",{attrs:{effect:"light",content:"重新绘制"}},[n("ElButton",{attrs:{size:t.headerButtonSize,icon:"el-icon-refresh"},on:{click:t.processRestart}})],1)],1)],n("input",{ref:"refFile",staticStyle:{display:"none"},attrs:{id:"files",type:"file",accept:".xml, .bpmn"},on:{change:t.importLocalFile}})],2),n("div",{staticClass:"my-process-designer__container"},[n("div",{ref:"bpmn-canvas",staticClass:"my-process-designer__canvas"})]),n("ElementDialog",{attrs:{title:"预览",width:"60vw",height:"60vh",visible:t.previewModelVisible,"body-padding":!1,"destroy-on-close":""},on:{"update:visible":function(r){t.previewModelVisible=r}}},[n("HighlightJS",{attrs:{language:t.previewType,code:t.previewResult}})],1)],1)},staticRenderFns$C=[];hljs.registerLanguage("xml",xml$3);hljs.registerLanguage("json",json);const __vue2_script$G={name:"ProcessDesigner",componentName:"MyProcessDesigner",props:{value:String,processId:String,processName:String,translations:Object,options:{type:Object,default:()=>({})},additionalModel:[Object,Array],moddleExtension:Object,onlyCustomizeAddi:{type:Boolean,default:!1},onlyCustomizeModdle:{type:Boolean,default:!1},simulation:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},prefix:{type:String,default:"camunda"},events:{type:Array,default:()=>["element.click"]},headerButtonSize:{type:String,default:"small",validator:t=>["default","medium","small","mini"].indexOf(t)!==-1},headerButtonType:{type:String,default:"primary",validator:t=>["default","primary","success","warning","danger","info"].indexOf(t)!==-1}},data(){return{defaultZoom:1,previewModelVisible:!1,simulationStatus:!1,previewResult:"",previewType:"xml",recoverable:!1,revocable:!1}},computed:{additionalModules(){const t=[];if(this.onlyCustomizeAddi)return Object.prototype.toString.call(this.additionalModel)==="[object Array]"?this.additionalModel||[]:[this.additionalModel];Object.prototype.toString.call(this.additionalModel)==="[object Array]"?t.push(...this.additionalModel):this.additionalModel&&t.push(this.additionalModel);const s={translate:["value",customTranslate(this.translations||translationsCN)]};return t.push(s),this.simulation&&t.push(TokenSimulationModule),this.prefix==="camunda"&&t.push(CamundaModdleExtension),this.prefix==="flowable"&&t.push(FlowableModdleExtension),this.prefix==="activiti"&&t.push(ActivitiModdleExtension),t},moddleExtensions(){const t={};if(this.onlyCustomizeModdle)return this.moddleExtension||null;if(this.moddleExtension)for(const s in this.moddleExtension)t[s]=this.moddleExtension[s];return this.prefix==="activiti"&&(t.activiti=ActivitiModdleDescriptor),this.prefix==="flowable"&&(t.flowable=FlowableModdleDescriptor),this.prefix==="camunda"&&(t.camunda=CamundaModdleDescriptor),t}},mounted(){this.initBpmnModeler(),this.createNewDiagram(this.value),this.$once("hook:beforeDestroy",()=>{this.bpmnModeler&&this.bpmnModeler.destroy(),this.$emit("destroy",this.bpmnModeler),this.bpmnModeler=null})},methods:{initBpmnModeler(){this.bpmnModeler||(this.bpmnModeler=new BpmnModeler(f({container:this.$refs["bpmn-canvas"],keyboard:this.keyboard?{bindTo:document}:null,additionalModules:this.additionalModules,moddleExtensions:this.moddleExtensions},this.options)),this.$emit("init-finished",this.bpmnModeler),this.initModelListeners())},initModelListeners(){const t=this.bpmnModeler.get("eventBus"),s=this;this.events.forEach(n=>{t.on(n,function(r){const a=n.replace(/\./g,"-"),o=r?r.element:null;s.$emit(a,o,r)})}),t.on("commandStack.changed",n=>v(this,null,function*(){try{this.recoverable=this.bpmnModeler.get("commandStack").canRedo(),this.revocable=this.bpmnModeler.get("commandStack").canUndo();const{xml:r}=yield this.bpmnModeler.saveXML({format:!0});this.$emit("commandStack-changed",n),this.$emit("input",r),this.$emit("change",r)}catch(r){console.error(`[Process Designer Warn]: ${r.message||r}`)}})),this.bpmnModeler.on("canvas.viewbox.changed",({viewbox:n})=>{this.$emit("canvas-viewbox-changed",{viewbox:n});const{scale:r}=n;this.defaultZoom=Math.floor(r*100)/100})},createNewDiagram(t){return v(this,null,function*(){const s=this.processId||`Process_${new Date().getTime()}`,n=this.processName||`业务流程_${new Date().getTime()}`,r=t||DefaultEmptyXML(s,n,this.prefix);try{const{warnings:a}=yield this.bpmnModeler.importXML(r);a&&a.length&&a.forEach(o=>console.warn(o))}catch(a){console.error(`[Process Designer Warn]: ${(a==null?void 0:a.message)||a}`)}})},downloadProcess(t,s){return v(this,null,function*(){try{const r=this;if(t==="xml"||t==="bpmn"){const{err:a,xml:o}=yield this.bpmnModeler.saveXML();a&&console.error(`[Process Designer Warn ]: ${a.message||a}`);const{href:l,filename:c}=r.setEncoded(t.toUpperCase(),s,o);n(l,c)}else{const{err:a,svg:o}=yield this.bpmnModeler.saveSVG();if(a)return console.error(a);const{href:l,filename:c}=r.setEncoded("SVG",s,o);n(l,c)}}catch(r){console.error(`[Process Designer Warn ]: ${r.message||r}`)}function n(r,a){if(r&&a){const o=document.createElement("a");o.download=a,o.href=r,o.click(),URL.revokeObjectURL(o.href)}}})},setEncoded(t,s="diagram",n){const r=encodeURIComponent(n);return{filename:`${s}.${t}`,href:`data:application/${t==="svg"?"text/xml":"bpmn20-xml"};charset=UTF-8,${r}`,data:n}},importLocalFile(){const t=this,s=this.$refs.refFile.files[0],n=new FileReader;n.readAsText(s),n.onload=function(){const r=this.result;t.createNewDiagram(r)}},downloadProcessAsXml(){this.downloadProcess("xml")},downloadProcessAsBpmn(){this.downloadProcess("bpmn")},downloadProcessAsSvg(){this.downloadProcess("svg")},processSimulation(){this.simulationStatus=!this.simulationStatus,this.simulation&&this.bpmnModeler.get("toggleMode").toggleMode()},processRedo(){this.bpmnModeler.get("commandStack").redo()},processUndo(){this.bpmnModeler.get("commandStack").undo()},processZoomIn(t=.1){const s=Math.floor(this.defaultZoom*100+t*100)/100;if(s>4)throw new Error("[Process Designer Warn ]: The zoom ratio cannot be greater than 4");this.defaultZoom=s,this.bpmnModeler.get("canvas").zoom(this.defaultZoom)},processZoomOut(t=.1){const s=Math.floor(this.defaultZoom*100-t*100)/100;if(s<.2)throw new Error("[Process Designer Warn ]: The zoom ratio cannot be less than 0.2");this.defaultZoom=s,this.bpmnModeler.get("canvas").zoom(this.defaultZoom)},processZoomTo(t=1){if(t<.2)throw new Error("[Process Designer Warn ]: The zoom ratio cannot be less than 0.2");if(t>4)throw new Error("[Process Designer Warn ]: The zoom ratio cannot be greater than 4");this.defaultZoom=t,this.bpmnModeler.get("canvas").zoom(t)},processReZoom(){this.defaultZoom=1,this.bpmnModeler.get("canvas").zoom("fit-viewport","auto")},processRestart(){this.recoverable=!1,this.revocable=!1,this.createNewDiagram(null)},elementsAlign(t){const s=this.bpmnModeler.get("alignElements"),r=this.bpmnModeler.get("selection").get();if(!r||r.length<=1){this.$message.warning("请按住 Shift 键选择多个元素对齐");return}this.$confirm("自动对齐可能造成图形变形,是否继续?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>s.trigger(r,t))},previewProcessXML(){this.bpmnModeler.saveXML({format:!0}).then(({xml:t})=>{this.previewResult=t,this.previewType="xml",this.previewModelVisible=!0})},previewProcessJson(){const t=new X2JS;this.bpmnModeler.saveXML({format:!0}).then(({xml:s})=>{const{definitions:n}=t.xml2js(s);n?this.previewResult=JSON.stringify(n,null,4):this.previewResult="",this.previewType="json",this.previewModelVisible=!0})}}},__cssModules$G={};var __component__$G=normalizeComponent(__vue2_script$G,render$C,staticRenderFns$C,!1,__vue2_injectStyles$G,null,null,null);function __vue2_injectStyles$G(t){for(let s in __cssModules$G)this[s]=__cssModules$G[s]}const ProcessDesigner=function(){return __component__$G.exports}(),processPanel="";var render$B=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"panel-tab__content"},[n("ElForm",{attrs:{size:"mini","label-width":"90px"},nativeOn:{submit:function(r){r.preventDefault()}}},[n("ElFormItem",{attrs:{label:"ID"}},[n("ElInput",{attrs:{disabled:t.idEditDisabled,clearable:""},on:{change:function(r){return t.updateBaseInfo("id")}},model:{value:t.elementBaseInfo.id,callback:function(r){t.$set(t.elementBaseInfo,"id",r)},expression:"elementBaseInfo.id"}})],1),n("ElFormItem",{attrs:{label:"名称"}},[n("ElInput",{attrs:{clearable:""},on:{change:function(r){return t.updateBaseInfo("name")}},model:{value:t.elementBaseInfo.name,callback:function(r){t.$set(t.elementBaseInfo,"name",r)},expression:"elementBaseInfo.name"}})],1),t.elementBaseInfo.$type==="bpmn:Process"?[n("ElFormItem",{attrs:{label:"版本标签"}},[n("ElInput",{attrs:{clearable:""},on:{change:function(r){return t.updateBaseInfo("versionTag")}},model:{value:t.elementBaseInfo.versionTag,callback:function(r){t.$set(t.elementBaseInfo,"versionTag",r)},expression:"elementBaseInfo.versionTag"}})],1),n("ElFormItem",{attrs:{label:"可执行"}},[n("ElSwitch",{attrs:{"active-text":"是","inactive-text":"否"},on:{change:function(r){return t.updateBaseInfo("isExecutable")}},model:{value:t.elementBaseInfo.isExecutable,callback:function(r){t.$set(t.elementBaseInfo,"isExecutable",r)},expression:"elementBaseInfo.isExecutable"}})],1)]:t._e(),t.elementBaseInfo.$type==="bpmn:SubProcess"?n("ElFormItem",{attrs:{label:"状态"}},[n("ElSwitch",{attrs:{"active-text":"展开","inactive-text":"折叠"},on:{change:function(r){return t.updateBaseInfo("isExpanded")}},model:{value:t.elementBaseInfo.isExpanded,callback:function(r){t.$set(t.elementBaseInfo,"isExpanded",r)},expression:"elementBaseInfo.isExpanded"}})],1):t._e()],2)],1)},staticRenderFns$B=[];const __vue2_script$F={name:"ElementBaseInfo",props:{businessObject:Object,idEditDisabled:{type:Boolean,default:!0}},data(){return{elementBaseInfo:{}}},watch:{businessObject:{immediate:!1,handler:function(t){t&&this.$nextTick(()=>this.resetBaseInfo())}}},beforeDestroy(){this.bpmnElement=null},methods:{resetBaseInfo(){var t,s;this.bpmnElement=((t=window==null?void 0:window.bpmnInstances)==null?void 0:t.bpmnElement)||{},this.elementBaseInfo=JSON.parse(JSON.stringify(this.bpmnElement.businessObject)),this.elementBaseInfo&&this.elementBaseInfo.$type==="bpmn:SubProcess"&&this.$set(this.elementBaseInfo,"isExpanded",(s=this.elementBaseInfo.di)==null?void 0:s.isExpanded)},updateBaseInfo(t){var n;if(t==="id"){window.bpmnInstances.modeling.updateProperties(this.bpmnElement,{id:this.elementBaseInfo[t],di:{id:`${this.elementBaseInfo[t]}_di`}});return}if(t==="isExpanded"){(n=window==null?void 0:window.bpmnInstances)==null||n.modeling.toggleCollapse(this.bpmnElement);return}const s=Object.create(null);s[t]=this.elementBaseInfo[t],window.bpmnInstances.modeling.updateProperties(this.bpmnElement,s)}}},__cssModules$F={};var __component__$F=normalizeComponent(__vue2_script$F,render$B,staticRenderFns$B,!1,__vue2_injectStyles$F,null,null,null);function __vue2_injectStyles$F(t){for(let s in __cssModules$F)this[s]=__cssModules$F[s]}const ElementBaseInfo=function(){return __component__$F.exports}();var render$A=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"panel-tab__content"},[n("div",{staticClass:"element-property input-property"},[n("div",{staticClass:"element-property__label"},[t._v("元素文档:")]),n("div",{staticClass:"element-property__value"},[n("ElInput",{attrs:{type:"textarea",size:"mini",resize:"vertical",autosize:{minRows:2,maxRows:4}},on:{input:t.updateDocumentation,blur:t.updateDocumentation},model:{value:t.documentation,callback:function(r){t.documentation=r},expression:"documentation"}})],1)])])},staticRenderFns$A=[];const __vue2_script$E={name:"ElementOtherConfig",props:{id:String},data(){return{documentation:""}},watch:{id:{immediate:!0,handler:function(t){t&&t.length?this.$nextTick(()=>{var n;const s=(n=window.bpmnInstances.bpmnElement.businessObject)==null?void 0:n.documentation;this.documentation=s&&s.length?s[0].text:""}):this.documentation=""}}},beforeDestroy(){this.bpmnElement=null},methods:{updateDocumentation(){this.bpmnElement&&this.bpmnElement.id===this.id||(this.bpmnElement=window.bpmnInstances.elementRegistry.get(this.id));const t=window.bpmnInstances.bpmnFactory.create("bpmn:Documentation",{text:this.documentation});window.bpmnInstances.modeling.updateProperties(this.bpmnElement,{documentation:[t]})}}},__cssModules$E={};var __component__$E=normalizeComponent(__vue2_script$E,render$A,staticRenderFns$A,!1,__vue2_injectStyles$E,null,null,null);function __vue2_injectStyles$E(t){for(let s in __cssModules$E)this[s]=__cssModules$E[s]}const ElementOtherConfig=function(){return __component__$E.exports}();var render$z=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticStyle:{"margin-top":"16px"}},[n("ElFormItem",{attrs:{label:"处理用户"}},[n("ElSelect",{on:{change:function(r){return t.updateElementTask("assignee")}},model:{value:t.userTaskForm.assignee,callback:function(r){t.$set(t.userTaskForm,"assignee",r)},expression:"userTaskForm.assignee"}},t._l(t.mockData,function(r){return n("ElOption",{key:`ass-${r}`,attrs:{label:`用户${r}`,value:`user${r}`}})}),1)],1),n("ElFormItem",{attrs:{label:"候选用户"}},[n("ElSelect",{attrs:{multiple:"","collapse-tags":""},on:{change:function(r){return t.updateElementTask("candidateUsers")}},model:{value:t.userTaskForm.candidateUsers,callback:function(r){t.$set(t.userTaskForm,"candidateUsers",r)},expression:"userTaskForm.candidateUsers"}},t._l(t.mockData,function(r){return n("ElOption",{key:`user-${r}`,attrs:{label:`用户${r}`,value:`user${r}`}})}),1)],1),n("ElFormItem",{attrs:{label:"候选分组"}},[n("ElSelect",{attrs:{multiple:"","collapse-tags":""},on:{change:function(r){return t.updateElementTask("candidateGroups")}},model:{value:t.userTaskForm.candidateGroups,callback:function(r){t.$set(t.userTaskForm,"candidateGroups",r)},expression:"userTaskForm.candidateGroups"}},t._l(t.mockData,function(r){return n("ElOption",{key:`ass-${r}`,attrs:{label:`分组${r}`,value:`group${r}`}})}),1)],1),n("ElFormItem",{attrs:{label:"到期时间"}},[n("ElInput",{attrs:{clearable:""},on:{change:function(r){return t.updateElementTask("dueDate")}},model:{value:t.userTaskForm.dueDate,callback:function(r){t.$set(t.userTaskForm,"dueDate",r)},expression:"userTaskForm.dueDate"}})],1),n("ElFormItem",{attrs:{label:"跟踪时间"}},[n("ElInput",{attrs:{clearable:""},on:{change:function(r){return t.updateElementTask("followUpDate")}},model:{value:t.userTaskForm.followUpDate,callback:function(r){t.$set(t.userTaskForm,"followUpDate",r)},expression:"userTaskForm.followUpDate"}})],1),n("ElFormItem",{attrs:{label:"优先级"}},[n("ElInput",{attrs:{clearable:""},on:{change:function(r){return t.updateElementTask("priority")}},model:{value:t.userTaskForm.priority,callback:function(r){t.$set(t.userTaskForm,"priority",r)},expression:"userTaskForm.priority"}})],1)],1)},staticRenderFns$z=[];const __vue2_script$D={name:"UserTask",props:{id:String},data(){return{defaultTaskForm:{assignee:"",candidateUsers:[],candidateGroups:[],dueDate:"",followUpDate:"",priority:""},userTaskForm:{},mockData:[1,2,3,4,5,6,7,8,9,10]}},watch:{id:{immediate:!0,handler(){this.bpmnElement=window.bpmnInstances.bpmnElement,this.$nextTick(()=>this.resetTaskForm())}}},beforeDestroy(){this.bpmnElement=null},methods:{resetTaskForm(){var t,s;for(const n in this.defaultTaskForm){let r;n==="candidateUsers"||n==="candidateGroups"?r=(t=this.bpmnElement)!=null&&t.businessObject[n]?this.bpmnElement.businessObject[n].split(","):[]:r=((s=this.bpmnElement)==null?void 0:s.businessObject[n])||this.defaultTaskForm[n],this.$set(this.userTaskForm,n,r)}},updateElementTask(t){const s=Object.create(null);t==="candidateUsers"||t==="candidateGroups"?s[t]=this.userTaskForm[t]&&this.userTaskForm[t].length?this.userTaskForm[t].join():null:s[t]=this.userTaskForm[t]||null,window.bpmnInstances.modeling.updateProperties(this.bpmnElement,s)}}},__cssModules$D={};var __component__$D=normalizeComponent(__vue2_script$D,render$z,staticRenderFns$z,!1,__vue2_injectStyles$D,null,null,null);function __vue2_injectStyles$D(t){for(let s in __cssModules$D)this[s]=__cssModules$D[s]}const UserTask=function(){return __component__$D.exports}();var render$y=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticStyle:{"margin-top":"16px"}},[n("ElFormItem",{attrs:{label:"脚本格式"}},[n("ElInput",{attrs:{clearable:""},on:{input:function(r){return t.updateElementTask()},change:function(r){return t.updateElementTask()}},model:{value:t.scriptTaskForm.scriptFormat,callback:function(r){t.$set(t.scriptTaskForm,"scriptFormat",r)},expression:"scriptTaskForm.scriptFormat"}})],1),n("ElFormItem",{attrs:{label:"脚本类型"}},[n("ElSelect",{model:{value:t.scriptTaskForm.scriptType,callback:function(r){t.$set(t.scriptTaskForm,"scriptType",r)},expression:"scriptTaskForm.scriptType"}},[n("ElOption",{attrs:{label:"内联脚本",value:"inline"}}),n("ElOption",{attrs:{label:"外部资源",value:"external"}})],1)],1),n("ElFormItem",{directives:[{name:"show",rawName:"v-show",value:t.scriptTaskForm.scriptType==="inline",expression:"scriptTaskForm.scriptType === 'inline'"}],attrs:{label:"脚本"}},[n("ElInput",{attrs:{type:"textarea",resize:"vertical",autosize:{minRows:2,maxRows:4},clearable:""},on:{input:function(r){return t.updateElementTask()},change:function(r){return t.updateElementTask()}},model:{value:t.scriptTaskForm.script,callback:function(r){t.$set(t.scriptTaskForm,"script",r)},expression:"scriptTaskForm.script"}})],1),n("ElFormItem",{directives:[{name:"show",rawName:"v-show",value:t.scriptTaskForm.scriptType==="external",expression:"scriptTaskForm.scriptType === 'external'"}],attrs:{label:"资源地址"}},[n("ElInput",{attrs:{clearable:""},on:{input:function(r){return t.updateElementTask()},change:function(r){return t.updateElementTask()}},model:{value:t.scriptTaskForm.resource,callback:function(r){t.$set(t.scriptTaskForm,"resource",r)},expression:"scriptTaskForm.resource"}})],1),n("ElFormItem",{attrs:{label:"结果变量"}},[n("ElInput",{attrs:{clearable:""},on:{input:function(r){return t.updateElementTask()},change:function(r){return t.updateElementTask()}},model:{value:t.scriptTaskForm.resultVariable,callback:function(r){t.$set(t.scriptTaskForm,"resultVariable",r)},expression:"scriptTaskForm.resultVariable"}})],1)],1)},staticRenderFns$y=[];const __vue2_script$C={name:"ScriptTask",props:{id:String},data(){return{defaultTaskForm:{scriptFormat:"",script:"",resource:"",resultVariable:""},scriptTaskForm:{}}},watch:{id:{immediate:!0,handler(){this.bpmnElement=window.bpmnInstances.bpmnElement,this.$nextTick(()=>this.resetTaskForm())}}},beforeDestroy(){this.bpmnElement=null},methods:{resetTaskForm(){var t;for(const s in this.defaultTaskForm){const n=((t=this.bpmnElement)==null?void 0:t.businessObject[s])||this.defaultTaskForm[s];this.$set(this.scriptTaskForm,s,n)}this.$set(this.scriptTaskForm,"scriptType",this.scriptTaskForm.script?"inline":"external")},updateElementTask(){const t=Object.create(null);t.scriptFormat=this.scriptTaskForm.scriptFormat||null,t.resultVariable=this.scriptTaskForm.resultVariable||null,this.scriptTaskForm.scriptType==="inline"?(t.script=this.scriptTaskForm.script||null,t.resource=null):(t.resource=this.scriptTaskForm.resource||null,t.script=null),window.bpmnInstances.modeling.updateProperties(this.bpmnElement,t)}}},__cssModules$C={};var __component__$C=normalizeComponent(__vue2_script$C,render$y,staticRenderFns$y,!1,__vue2_injectStyles$C,null,null,null);function __vue2_injectStyles$C(t){for(let s in __cssModules$C)this[s]=__cssModules$C[s]}const ScriptTask=function(){return __component__$C.exports}();var render$x=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticStyle:{"margin-top":"16px"}},[n("ElFormItem",{attrs:{label:"消息实例"}},[n("div",{staticStyle:{display:"flex","flex-wrap":"nowrap","align-items":"center","justify-content":"space-between"}},[n("ElSelect",{on:{change:t.updateTaskMessage},model:{value:t.bindMessageId,callback:function(r){t.bindMessageId=r},expression:"bindMessageId"}},t._l(Object.keys(t.messageMap),function(r){return n("ElOption",{key:r,attrs:{value:r,label:t.messageMap[r]}})}),1),n("ElButton",{staticStyle:{"margin-left":"8px"},attrs:{size:"mini",type:"primary",icon:"el-icon-plus"},on:{click:t.openMessageModel}})],1)]),n("ElementDialog",{attrs:{visible:t.messageModelVisible,"close-on-click-modal":!1,title:"创建新消息",width:"400px","append-to-body":"","destroy-on-close":""},on:{"update:visible":function(r){t.messageModelVisible=r}},scopedSlots:t._u([{key:"footer",fn:function(){return[n("ElButton",{attrs:{size:"mini",type:"primary"},on:{click:t.createNewMessage}},[t._v("确 认")])]},proxy:!0}])},[n("ElForm",{attrs:{model:t.newMessageForm,size:"mini","label-width":"90px"},nativeOn:{submit:function(r){r.preventDefault()}}},[n("ElFormItem",{attrs:{label:"消息ID"}},[n("ElInput",{attrs:{clearable:""},model:{value:t.newMessageForm.id,callback:function(r){t.$set(t.newMessageForm,"id",r)},expression:"newMessageForm.id"}})],1),n("ElFormItem",{attrs:{label:"消息名称"}},[n("ElInput",{attrs:{clearable:""},model:{value:t.newMessageForm.name,callback:function(r){t.$set(t.newMessageForm,"name",r)},expression:"newMessageForm.name"}})],1)],1)],1)],1)},staticRenderFns$x=[];const __vue2_script$B={name:"ReceiveTask",props:{id:String},data(){return{bindMessageId:"",newMessageForm:{},messageMap:{},messageModelVisible:!1}},watch:{id:{immediate:!0,handler(){this.$nextTick(()=>this.getBindMessage())}}},created(){this.bpmnMessageRefsMap=Object.create(null),this.bpmnRootElements=window.bpmnInstances.modeler.getDefinitions().rootElements,this.bpmnRootElements.filter(t=>t.$type==="bpmn:Message").forEach(t=>{this.bpmnMessageRefsMap[t.id]=t,this.$set(this.messageMap,t.id,t.name)}),this.$set(this.messageMap,"-1","无")},beforeDestroy(){this.bpmnElement=null},methods:{getBindMessage(){var t,s;this.bpmnElement=window.bpmnInstances.bpmnElement,this.bindMessageId=((s=(t=this.bpmnElement.businessObject)==null?void 0:t.messageRef)==null?void 0:s.id)||"-1"},openMessageModel(){this.messageModelVisible=!0,this.newMessageForm={}},createNewMessage(){if(this.messageMap[this.newMessageForm.id]){this.$message.error("该消息已存在,请修改id后重新保存");return}const t=window.bpmnInstances.moddle.create("bpmn:Message",this.newMessageForm);this.bpmnRootElements.push(t),this.$set(this.messageMap,this.newMessageForm.id,this.newMessageForm.name),this.bpmnMessageRefsMap[this.newMessageForm.id]=t,this.messageModelVisible=!1},updateTaskMessage(t){t==="-1"?window.bpmnInstances.modeling.updateProperties(this.bpmnElement,{messageRef:null}):window.bpmnInstances.modeling.updateProperties(this.bpmnElement,{messageRef:this.bpmnMessageRefsMap[t]})}}},__cssModules$B={};var __component__$B=normalizeComponent(__vue2_script$B,render$x,staticRenderFns$x,!1,__vue2_injectStyles$B,null,null,null);function __vue2_injectStyles$B(t){for(let s in __cssModules$B)this[s]=__cssModules$B[s]}const ReceiveTask=function(){return __component__$B.exports}();var render$w=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"panel-tab__content"},[n("ElForm",{attrs:{size:"mini","label-width":"90px"},nativeOn:{submit:function(r){r.preventDefault()}}},[n("ElFormItem",{attrs:{label:"异步延续"}},[n("ElCheckbox",{attrs:{label:"异步前"},on:{change:t.changeTaskAsync},model:{value:t.taskConfigForm.asyncBefore,callback:function(r){t.$set(t.taskConfigForm,"asyncBefore",r)},expression:"taskConfigForm.asyncBefore"}}),n("ElCheckbox",{attrs:{label:"异步后"},on:{change:t.changeTaskAsync},model:{value:t.taskConfigForm.asyncAfter,callback:function(r){t.$set(t.taskConfigForm,"asyncAfter",r)},expression:"taskConfigForm.asyncAfter"}}),t.taskConfigForm.asyncAfter||t.taskConfigForm.asyncBefore?n("ElCheckbox",{attrs:{label:"排除"},on:{change:t.changeTaskAsync},model:{value:t.taskConfigForm.exclusive,callback:function(r){t.$set(t.taskConfigForm,"exclusive",r)},expression:"taskConfigForm.exclusive"}}):t._e()],1),n(t.witchTaskComponent,t._b({tag:"Component"},"Component",t.$props,!1))],1)],1)},staticRenderFns$w=[];const __vue2_script$A={name:"ElementTaskConfig",components:{UserTask,ScriptTask,ReceiveTask},props:{id:String,type:String},data(){return{taskConfigForm:{asyncAfter:!1,asyncBefore:!1,exclusive:!1},witchTaskComponent:"",installedComponent:{UserTask:"UserTask",ScriptTask:"ScriptTask",ReceiveTask:"ReceiveTask"}}},watch:{id:{immediate:!0,handler(){var t,s,n,r,a,o;this.bpmnElement=window.bpmnInstances.bpmnElement,this.taskConfigForm.asyncBefore=(s=(t=this.bpmnElement)==null?void 0:t.businessObject)==null?void 0:s.asyncBefore,this.taskConfigForm.asyncAfter=(r=(n=this.bpmnElement)==null?void 0:n.businessObject)==null?void 0:r.asyncAfter,this.taskConfigForm.exclusive=(o=(a=this.bpmnElement)==null?void 0:a.businessObject)==null?void 0:o.exclusive}},type:{immediate:!0,handler(){this.witchTaskComponent=this.installedComponent[this.type]}}},methods:{changeTaskAsync(){!this.taskConfigForm.asyncBefore&&!this.taskConfigForm.asyncAfter&&(this.taskConfigForm.exclusive=!1),window.bpmnInstances.modeling.updateProperties(window.bpmnInstances.bpmnElement,f({},this.taskConfigForm))}}},__cssModules$A={};var __component__$A=normalizeComponent(__vue2_script$A,render$w,staticRenderFns$w,!1,__vue2_injectStyles$A,null,null,null);function __vue2_injectStyles$A(t){for(let s in __cssModules$A)this[s]=__cssModules$A[s]}const ElementTask=function(){return __component__$A.exports}();var render$v=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"panel-tab__content"},[n("ElForm",{attrs:{size:"mini","label-width":"90px"},nativeOn:{submit:function(r){r.preventDefault()}}},[n("ElFormItem",{attrs:{label:"回路特性"}},[n("ElSelect",{on:{change:t.changeLoopCharacteristicsType},model:{value:t.loopCharacteristics,callback:function(r){t.loopCharacteristics=r},expression:"loopCharacteristics"}},[n("ElOption",{attrs:{label:"并行多重事件",value:"ParallelMultiInstance"}}),n("ElOption",{attrs:{label:"时序多重事件",value:"SequentialMultiInstance"}}),n("ElOption",{attrs:{label:"循环事件",value:"StandardLoop"}}),n("ElOption",{attrs:{label:"无",value:"Null"}})],1)],1),t.loopCharacteristics==="ParallelMultiInstance"||t.loopCharacteristics==="SequentialMultiInstance"?[n("ElFormItem",{key:"loopCardinality",attrs:{label:"循环基数"}},[n("ElInput",{attrs:{clearable:""},on:{change:t.updateLoopCardinality},model:{value:t.loopInstanceForm.loopCardinality,callback:function(r){t.$set(t.loopInstanceForm,"loopCardinality",r)},expression:"loopInstanceForm.loopCardinality"}})],1),n("ElFormItem",{key:"collection",attrs:{label:"集合"}},[n("ElInput",{attrs:{clearable:""},on:{change:t.updateLoopBase},model:{value:t.loopInstanceForm.collection,callback:function(r){t.$set(t.loopInstanceForm,"collection",r)},expression:"loopInstanceForm.collection"}})],1),n("ElFormItem",{key:"elementVariable",attrs:{label:"元素变量"}},[n("ElInput",{attrs:{clearable:""},on:{change:t.updateLoopBase},model:{value:t.loopInstanceForm.elementVariable,callback:function(r){t.$set(t.loopInstanceForm,"elementVariable",r)},expression:"loopInstanceForm.elementVariable"}})],1),n("ElFormItem",{key:"completionCondition",attrs:{label:"完成条件"}},[n("ElInput",{attrs:{clearable:""},on:{change:t.updateLoopCondition},model:{value:t.loopInstanceForm.completionCondition,callback:function(r){t.$set(t.loopInstanceForm,"completionCondition",r)},expression:"loopInstanceForm.completionCondition"}})],1),n("ElFormItem",{key:"async",attrs:{label:"异步状态"}},[n("ElCheckbox",{attrs:{label:"异步前"},on:{change:function(r){return t.updateLoopAsync("asyncBefore")}},model:{value:t.loopInstanceForm.asyncBefore,callback:function(r){t.$set(t.loopInstanceForm,"asyncBefore",r)},expression:"loopInstanceForm.asyncBefore"}}),n("ElCheckbox",{attrs:{label:"异步后"},on:{change:function(r){return t.updateLoopAsync("asyncAfter")}},model:{value:t.loopInstanceForm.asyncAfter,callback:function(r){t.$set(t.loopInstanceForm,"asyncAfter",r)},expression:"loopInstanceForm.asyncAfter"}}),t.loopInstanceForm.asyncAfter||t.loopInstanceForm.asyncBefore?n("ElCheckbox",{attrs:{label:"排除"},on:{change:function(r){return t.updateLoopAsync("exclusive")}},model:{value:t.loopInstanceForm.exclusive,callback:function(r){t.$set(t.loopInstanceForm,"exclusive",r)},expression:"loopInstanceForm.exclusive"}}):t._e()],1),t.loopInstanceForm.asyncAfter||t.loopInstanceForm.asyncBefore?n("ElFormItem",{key:"timeCycle",attrs:{label:"重试周期",prop:"timeCycle"}},[n("ElInput",{attrs:{clearable:""},on:{change:t.updateLoopTimeCycle},model:{value:t.loopInstanceForm.timeCycle,callback:function(r){t.$set(t.loopInstanceForm,"timeCycle",r)},expression:"loopInstanceForm.timeCycle"}})],1):t._e()]:t._e()],2)],1)},staticRenderFns$v=[];const __vue2_script$z={name:"ElementMultiInstance",inject:{prefix:"prefix"},props:{businessObject:Object},data(){return{loopCharacteristics:"",defaultLoopInstanceForm:{completionCondition:"",loopCardinality:"",extensionElements:[],asyncAfter:!1,asyncBefore:!1,exclusive:!1},loopInstanceForm:{}}},watch:{businessObject:{immediate:!0,handler(t){this.bpmnElement=window.bpmnInstances.bpmnElement,this.getElementLoop(t)}}},beforeDestroy(){this.multiLoopInstance=null,this.bpmnElement=null},methods:{getElementLoop(t){var s,n,r,a,o,l;if(!t.loopCharacteristics){this.loopCharacteristics="Null",this.loopInstanceForm={};return}if(t.loopCharacteristics.$type==="bpmn:StandardLoopCharacteristics"){this.loopCharacteristics="StandardLoop",this.loopInstanceForm={};return}t.loopCharacteristics.isSequential?this.loopCharacteristics="SequentialMultiInstance":this.loopCharacteristics="ParallelMultiInstance",this.loopInstanceForm=S(f(f({},this.defaultLoopInstanceForm),t.loopCharacteristics),{completionCondition:(r=(n=(s=t.loopCharacteristics)==null?void 0:s.completionCondition)==null?void 0:n.body)!=null?r:"",loopCardinality:(l=(o=(a=t.loopCharacteristics)==null?void 0:a.loopCardinality)==null?void 0:o.body)!=null?l:""}),this.multiLoopInstance=window.bpmnInstances.bpmnElement.businessObject.loopCharacteristics,t.loopCharacteristics.extensionElements&&t.loopCharacteristics.extensionElements.values&&t.loopCharacteristics.extensionElements.values.length&&this.$set(this.loopInstanceForm,"timeCycle",t.loopCharacteristics.extensionElements.values[0].body)},changeLoopCharacteristicsType(t){if(t==="Null"){window.bpmnInstances.modeling.updateProperties(this.bpmnElement,{loopCharacteristics:null});return}if(t==="StandardLoop"){const s=window.bpmnInstances.moddle.create("bpmn:StandardLoopCharacteristics");window.bpmnInstances.modeling.updateProperties(this.bpmnElement,{loopCharacteristics:s}),this.multiLoopInstance=null;return}t==="SequentialMultiInstance"?this.multiLoopInstance=window.bpmnInstances.moddle.create("bpmn:MultiInstanceLoopCharacteristics",{isSequential:!0}):this.multiLoopInstance=window.bpmnInstances.moddle.create("bpmn:MultiInstanceLoopCharacteristics"),window.bpmnInstances.modeling.updateProperties(this.bpmnElement,{loopCharacteristics:this.multiLoopInstance})},updateLoopCardinality(t){let s=null;t&&t.length&&(s=window.bpmnInstances.moddle.create("bpmn:FormalExpression",{body:t})),window.bpmnInstances.modeling.updateModdleProperties(this.bpmnElement,this.multiLoopInstance,{loopCardinality:s})},updateLoopCondition(t){let s=null;t&&t.length&&(s=window.bpmnInstances.moddle.create("bpmn:FormalExpression",{body:t})),window.bpmnInstances.modeling.updateModdleProperties(this.bpmnElement,this.multiLoopInstance,{completionCondition:s})},updateLoopTimeCycle(t){const s=window.bpmnInstances.moddle.create("bpmn:ExtensionElements",{values:[window.bpmnInstances.moddle.create(`${this.prefix}:FailedJobRetryTimeCycle`,{body:t})]});window.bpmnInstances.modeling.updateModdleProperties(this.bpmnElement,this.multiLoopInstance,{extensionElements:s})},updateLoopBase(){window.bpmnInstances.modeling.updateModdleProperties(this.bpmnElement,this.multiLoopInstance,{collection:this.loopInstanceForm.collection||null,elementVariable:this.loopInstanceForm.elementVariable||null})},updateLoopAsync(t){const{asyncBefore:s,asyncAfter:n}=this.loopInstanceForm;let r=Object.create(null);!s&&!n?(this.$set(this.loopInstanceForm,"exclusive",!1),r={asyncBefore:!1,asyncAfter:!1,exclusive:!1,extensionElements:null}):r[t]=this.loopInstanceForm[t],window.bpmnInstances.modeling.updateModdleProperties(this.bpmnElement,this.multiLoopInstance,r)}}},__cssModules$z={};var __component__$z=normalizeComponent(__vue2_script$z,render$v,staticRenderFns$v,!1,__vue2_injectStyles$z,null,null,null);function __vue2_injectStyles$z(t){for(let s in __cssModules$z)this[s]=__cssModules$z[s]}const ElementMultiInstance=function(){return __component__$z.exports}();var render$u=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"panel-tab__content"},[n("ElForm",{attrs:{model:t.flowConditionForm,"label-width":"90px",size:"mini"},nativeOn:{submit:function(r){r.preventDefault()}}},[n("ElFormItem",{attrs:{label:"流转类型"}},[n("ElSelect",{on:{change:t.updateFlowType},model:{value:t.flowConditionForm.type,callback:function(r){t.$set(t.flowConditionForm,"type",r)},expression:"flowConditionForm.type"}},[n("ElOption",{attrs:{label:"普通流转路径",value:"normal"}}),n("ElOption",{attrs:{label:"默认流转路径",value:"default"}}),n("ElOption",{attrs:{label:"条件流转路径",value:"condition"}})],1)],1),t.flowConditionForm.type==="condition"?n("ElFormItem",{key:"condition",attrs:{label:"条件格式"}},[n("ElSelect",{model:{value:t.flowConditionForm.conditionType,callback:function(r){t.$set(t.flowConditionForm,"conditionType",r)},expression:"flowConditionForm.conditionType"}},[n("ElOption",{attrs:{label:"表达式",value:"expression"}}),n("ElOption",{attrs:{label:"脚本",value:"script"}})],1)],1):t._e(),t.flowConditionForm.conditionType&&t.flowConditionForm.conditionType==="expression"?n("ElFormItem",{key:"express",attrs:{label:"表达式"}},[n("ElInput",{attrs:{clearable:""},on:{change:t.updateFlowCondition},model:{value:t.flowConditionForm.body,callback:function(r){t.$set(t.flowConditionForm,"body",r)},expression:"flowConditionForm.body"}})],1):t._e(),t.flowConditionForm.conditionType&&t.flowConditionForm.conditionType==="script"?[n("ElFormItem",{key:"language",attrs:{label:"脚本语言"}},[n("ElInput",{attrs:{clearable:""},on:{change:t.updateFlowCondition},model:{value:t.flowConditionForm.language,callback:function(r){t.$set(t.flowConditionForm,"language",r)},expression:"flowConditionForm.language"}})],1),n("ElFormItem",{key:"scriptType",attrs:{label:"脚本类型"}},[n("ElSelect",{model:{value:t.flowConditionForm.scriptType,callback:function(r){t.$set(t.flowConditionForm,"scriptType",r)},expression:"flowConditionForm.scriptType"}},[n("ElOption",{attrs:{label:"内联脚本",value:"inlineScript"}}),n("ElOption",{attrs:{label:"外部脚本",value:"externalScript"}})],1)],1),t.flowConditionForm.scriptType==="inlineScript"?n("ElFormItem",{key:"body",attrs:{label:"脚本"}},[n("ElInput",{attrs:{type:"textarea",clearable:""},on:{change:t.updateFlowCondition},model:{value:t.flowConditionForm.body,callback:function(r){t.$set(t.flowConditionForm,"body",r)},expression:"flowConditionForm.body"}})],1):t._e(),t.flowConditionForm.scriptType==="externalScript"?n("ElFormItem",{key:"resource",attrs:{label:"资源地址"}},[n("ElInput",{attrs:{clearable:""},on:{change:t.updateFlowCondition},model:{value:t.flowConditionForm.resource,callback:function(r){t.$set(t.flowConditionForm,"resource",r)},expression:"flowConditionForm.resource"}})],1):t._e()]:t._e()],2)],1)},staticRenderFns$u=[];const __vue2_script$y={name:"FlowCondition",props:{businessObject:Object},data(){return{flowConditionForm:{}}},watch:{businessObject:{immediate:!0,handler(){this.$nextTick(()=>this.resetFlowCondition())}}},beforeDestroy(){this.bpmnElement=null,this.bpmnElementSource=null,this.bpmnElementSourceRef=null},methods:{resetFlowCondition(){if(this.bpmnElement=window.bpmnInstances.bpmnElement,this.bpmnElementSource=this.bpmnElement.source,this.bpmnElementSourceRef=this.bpmnElement.businessObject.sourceRef,this.bpmnElementSourceRef&&this.bpmnElementSourceRef.default&&this.bpmnElementSourceRef.default.id===this.bpmnElement.id)this.flowConditionForm={type:"default"};else if(!this.bpmnElement.businessObject.conditionExpression)this.flowConditionForm={type:"normal"};else{const t=this.bpmnElement.businessObject.conditionExpression;if(this.flowConditionForm=S(f({},t),{type:"condition"}),this.flowConditionForm.resource){this.$set(this.flowConditionForm,"conditionType","script"),this.$set(this.flowConditionForm,"scriptType","externalScript");return}if(t.language){this.$set(this.flowConditionForm,"conditionType","script"),this.$set(this.flowConditionForm,"scriptType","inlineScript");return}this.$set(this.flowConditionForm,"conditionType","expression")}},updateFlowType(t){if(t==="condition"){this.flowConditionRef=window.bpmnInstances.moddle.create("bpmn:FormalExpression"),window.bpmnInstances.modeling.updateProperties(this.bpmnElement,{conditionExpression:this.flowConditionRef});return}if(t==="default"){window.bpmnInstances.modeling.updateProperties(this.bpmnElement,{conditionExpression:null}),window.bpmnInstances.modeling.updateProperties(this.bpmnElementSource,{default:this.bpmnElement});return}this.bpmnElementSourceRef.default&&this.bpmnElementSourceRef.default.id===this.bpmnElement.id&&window.bpmnInstances.modeling.updateProperties(this.bpmnElementSource,{default:null}),window.bpmnInstances.modeling.updateProperties(this.bpmnElement,{conditionExpression:null})},updateFlowCondition(){const{conditionType:t,scriptType:s,body:n,resource:r,language:a}=this.flowConditionForm;let o;t==="expression"?o=window.bpmnInstances.moddle.create("bpmn:FormalExpression",{body:n}):s==="inlineScript"?(o=window.bpmnInstances.moddle.create("bpmn:FormalExpression",{body:n,language:a}),this.$set(this.flowConditionForm,"resource","")):(this.$set(this.flowConditionForm,"body",""),o=window.bpmnInstances.moddle.create("bpmn:FormalExpression",{resource:r,language:a})),window.bpmnInstances.modeling.updateProperties(this.bpmnElement,{conditionExpression:o})}}},__cssModules$y={};var __component__$y=normalizeComponent(__vue2_script$y,render$u,staticRenderFns$u,!1,__vue2_injectStyles$y,null,null,null);function __vue2_injectStyles$y(t){for(let s in __cssModules$y)this[s]=__cssModules$y[s]}const FlowCondition=function(){return __component__$y.exports}();var render$t=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"panel-tab__content"},[n("div",{staticClass:"panel-tab__content--title"},[t._m(0),n("ElButton",{attrs:{size:"mini",type:"primary",icon:"el-icon-plus"},on:{click:function(r){return t.openModel("message")}}},[t._v("创建新消息")])],1),n("ElTable",{attrs:{data:t.messageList,size:"mini",border:""}},[n("ElTableColumn",{attrs:{type:"index",label:"序号",width:"60px"}}),n("ElTableColumn",{attrs:{label:"消息ID",prop:"id","max-width":"300px","show-overflow-tooltip":""}}),n("ElTableColumn",{attrs:{label:"消息名称",prop:"name","max-width":"300px","show-overflow-tooltip":""}})],1),n("div",{staticClass:"panel-tab__content--title",staticStyle:{"margin-top":"8px","padding-top":"8px","border-top":"1px solid #eee"}},[t._m(1),n("ElButton",{attrs:{size:"mini",type:"primary",icon:"el-icon-plus"},on:{click:function(r){return t.openModel("signal")}}},[t._v("创建新信号")])],1),n("ElTable",{attrs:{data:t.signalList,size:"mini",border:""}},[n("ElTableColumn",{attrs:{type:"index",label:"序号",width:"60px"}}),n("ElTableColumn",{attrs:{label:"信号ID",prop:"id","max-width":"300px","show-overflow-tooltip":""}}),n("ElTableColumn",{attrs:{label:"信号名称",prop:"name","max-width":"300px","show-overflow-tooltip":""}})],1),n("ElementDialog",{attrs:{visible:t.modelVisible,title:t.modelConfig.title,"close-on-click-modal":!1,width:"400px","append-to-body":"","destroy-on-close":""},on:{"update:visible":function(r){t.modelVisible=r}},scopedSlots:t._u([{key:"footer",fn:function(){return[n("ElButton",{attrs:{size:"mini"},on:{click:function(r){t.modelVisible=!1}}},[t._v("取 消")]),n("ElButton",{attrs:{size:"mini",type:"primary"},on:{click:t.addNewObject}},[t._v("保 存")])]},proxy:!0}])},[n("ElForm",{attrs:{model:t.modelObjectForm,size:"mini","label-width":"90px"},nativeOn:{submit:function(r){r.preventDefault()}}},[n("ElFormItem",{attrs:{label:t.modelConfig.idLabel}},[n("ElInput",{attrs:{clearable:""},model:{value:t.modelObjectForm.id,callback:function(r){t.$set(t.modelObjectForm,"id",r)},expression:"modelObjectForm.id"}})],1),n("ElFormItem",{attrs:{label:t.modelConfig.nameLabel}},[n("ElInput",{attrs:{clearable:""},model:{value:t.modelObjectForm.name,callback:function(r){t.$set(t.modelObjectForm,"name",r)},expression:"modelObjectForm.name"}})],1)],1)],1)],1)},staticRenderFns$t=[function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("span",[n("i",{staticClass:"el-icon-menu",staticStyle:{"margin-right":"8px",color:"#555"}}),t._v("消息列表")])},function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("span",[n("i",{staticClass:"el-icon-menu",staticStyle:{"margin-right":"8px",color:"#555"}}),t._v("信号列表")])}];const __vue2_script$x={name:"SignalAndMessage",data(){return{signalList:[],messageList:[],modelVisible:!1,modelType:"",modelObjectForm:{}}},computed:{modelConfig(){return this.modelType==="message"?{title:"创建消息",idLabel:"消息ID",nameLabel:"消息名称"}:{title:"创建信号",idLabel:"信号ID",nameLabel:"信号名称"}}},mounted(){this.initDataList()},methods:{initDataList(){this.rootElements=window.bpmnInstances.modeler.getDefinitions().rootElements,this.messageIdMap={},this.signalIdMap={},this.messageList=[],this.signalList=[],this.rootElements.forEach(t=>{t.$type==="bpmn:Message"&&(this.messageIdMap[t.id]=!0,this.messageList.push(f({},t))),t.$type==="bpmn:Signal"&&(this.signalIdMap[t.id]=!0,this.signalList.push(f({},t)))})},openModel(t){this.modelType=t,this.modelObjectForm={},this.modelVisible=!0},addNewObject(){if(this.modelType==="message"){if(this.messageIdMap[this.modelObjectForm.id])return this.$message.error("该消息已存在,请修改id后重新保存");const t=window.bpmnInstances.moddle.create("bpmn:Message",this.modelObjectForm);this.rootElements.push(t)}else{if(this.signalIdMap[this.modelObjectForm.id])return this.$message.error("该信号已存在,请修改id后重新保存");const t=window.bpmnInstances.moddle.create("bpmn:Signal",this.modelObjectForm);this.rootElements.push(t)}this.modelVisible=!1,this.initDataList()}}},__cssModules$x={};var __component__$x=normalizeComponent(__vue2_script$x,render$t,staticRenderFns$t,!1,__vue2_injectStyles$x,null,null,null);function __vue2_injectStyles$x(t){for(let s in __cssModules$x)this[s]=__cssModules$x[s]}const SignalAndMassage=function(){return __component__$x.exports}();function createListenerObject(t,s,n){const r=Object.create(null);switch(r.event=t.event,s&&(r.id=t.id),t.listenerType){case"scriptListener":r.script=createScriptObject(t,n);break;case"expressionListener":r.expression=t.expression;break;case"delegateExpressionListener":r.delegateExpression=t.delegateExpression;break;default:r.class=t.class}if(t.fields&&(r.fields=t.fields.map(a=>createFieldObject(a,n))),s&&t.event==="timeout"&&t.eventDefinitionType){const a=window.bpmnInstances.moddle.create("bpmn:FormalExpression",{body:t.eventTimeDefinitions}),o=window.bpmnInstances.moddle.create("bpmn:TimerEventDefinition",{id:`TimerEventDefinition_${uuid(8)}`,[`time${t.eventDefinitionType.replace(/^\S/,l=>l.toUpperCase())}`]:a});r.eventDefinitions=[o]}return window.bpmnInstances.moddle.create(`${n}:${s?"TaskListener":"ExecutionListener"}`,r)}function createFieldObject(t,s){const{name:n,fieldType:r,string:a,expression:o}=t,l=r==="string"?{name:n,string:a}:{name:n,expression:o};return window.bpmnInstances.moddle.create(`${s}:Field`,l)}function createScriptObject(t,s){const{scriptType:n,scriptFormat:r,value:a,resource:o}=t,l=n==="inlineScript"?{scriptFormat:r,value:a}:{scriptFormat:r,resource:o};return window.bpmnInstances.moddle.create(`${s}:Script`,l)}function updateElementExtensions(t,s){const n=window.bpmnInstances.moddle.create("bpmn:ExtensionElements",{values:s});window.bpmnInstances.modeling.updateProperties(t,{extensionElements:n})}function uuid(t=8,s){let n="";const r=s||"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";for(let a=t;a>0;--a)n+=r[Math.floor(Math.random()*r.length)];return n}function initListenerForm(t){let s=f({},t);if(t.script&&(s=S(f(f({},t),t.script),{scriptType:t.script.resource?"externalScript":"inlineScript"})),t.event==="timeout"&&t.eventDefinitions&&t.eventDefinitions.length){let n="";for(const r in t.eventDefinitions[0])console.log(t.eventDefinitions,r),r.indexOf("time")!==-1&&(n=r,s.eventDefinitionType=r.replace("time","").toLowerCase());console.log(n),s.eventTimeDefinitions=t.eventDefinitions[0][n].body}return s}function initListenerType(t){var n;let s;return t.class&&(s="classListener"),t.expression&&(s="expressionListener"),t.delegateExpression&&(s="delegateExpressionListener"),t.script&&(s="scriptListener"),S(f(f({},JSON.parse(JSON.stringify(t))),(n=t.script)!=null?n:{}),{listenerType:s})}const listenerType={classListener:"Java 类",expressionListener:"表达式",delegateExpressionListener:"代理表达式",scriptListener:"脚本"},eventType={create:"创建",assignment:"指派",complete:"完成",delete:"删除",update:"更新",timeout:"超时"},fieldType={string:"字符串",expression:"表达式"};var render$s=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"panel-tab__content"},[n("ElTable",{attrs:{data:t.elementListenersList,size:"mini",border:""}},[n("ElTableColumn",{attrs:{label:"序号",width:"50px",type:"index"}}),n("ElTableColumn",{attrs:{label:"事件类型","min-width":"100px",prop:"event"}}),n("ElTableColumn",{attrs:{label:"监听器类型","min-width":"100px","show-overflow-tooltip":"",formatter:function(r){return t.listenerTypeObject[r.listenerType]}}}),n("ElTableColumn",{attrs:{label:"操作",width:"90px"},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.row,o=r.$index;return[n("ElButton",{attrs:{size:"mini",type:"text"},on:{click:function(l){return t.openListenerForm(a,o)}}},[t._v("编辑")]),n("ElDivider",{attrs:{direction:"vertical"}}),n("ElButton",{staticStyle:{color:"#ff4d4f"},attrs:{size:"mini",type:"text"},on:{click:function(l){return t.removeListener(a,o)}}},[t._v("移除")])]}}])})],1),n("div",{staticClass:"element-drawer__button"},[n("ElButton",{attrs:{size:"mini",type:"primary",icon:"el-icon-plus"},on:{click:function(r){return t.openListenerForm(null)}}},[t._v("添加监听器")])],1),n("ElDrawer",{attrs:{visible:t.listenerFormModelVisible,title:"执行监听器",size:`${t.width}px`,"append-to-body":"","destroy-on-close":""},on:{"update:visible":function(r){t.listenerFormModelVisible=r}}},[n("ElForm",{ref:"listenerFormRef",attrs:{size:"mini",model:t.listenerForm,"label-width":"96px"},nativeOn:{submit:function(r){r.preventDefault()}}},[n("ElFormItem",{attrs:{label:"事件类型",prop:"event",rules:{required:!0,trigger:["blur","change"]}}},[n("ElSelect",{model:{value:t.listenerForm.event,callback:function(r){t.$set(t.listenerForm,"event",r)},expression:"listenerForm.event"}},[n("ElOption",{attrs:{label:"start",value:"start"}}),n("ElOption",{attrs:{label:"end",value:"end"}})],1)],1),n("ElFormItem",{attrs:{label:"监听器类型",prop:"listenerType",rules:{required:!0,trigger:["blur","change"]}}},[n("ElSelect",{model:{value:t.listenerForm.listenerType,callback:function(r){t.$set(t.listenerForm,"listenerType",r)},expression:"listenerForm.listenerType"}},t._l(Object.keys(t.listenerTypeObject),function(r){return n("ElOption",{key:r,attrs:{label:t.listenerTypeObject[r],value:r}})}),1)],1),t.listenerForm.listenerType==="classListener"?n("ElFormItem",{key:"listener-class",attrs:{label:"Java类",prop:"class",rules:{required:!0,trigger:["blur","change"]}}},[n("ElInput",{attrs:{clearable:""},model:{value:t.listenerForm.class,callback:function(r){t.$set(t.listenerForm,"class",r)},expression:"listenerForm.class"}})],1):t._e(),t.listenerForm.listenerType==="expressionListener"?n("ElFormItem",{key:"listener-expression",attrs:{label:"表达式",prop:"expression",rules:{required:!0,trigger:["blur","change"]}}},[n("ElInput",{attrs:{clearable:""},model:{value:t.listenerForm.expression,callback:function(r){t.$set(t.listenerForm,"expression",r)},expression:"listenerForm.expression"}})],1):t._e(),t.listenerForm.listenerType==="delegateExpressionListener"?n("ElFormItem",{key:"listener-delegate",attrs:{label:"代理表达式",prop:"delegateExpression",rules:{required:!0,trigger:["blur","change"]}}},[n("ElInput",{attrs:{clearable:""},model:{value:t.listenerForm.delegateExpression,callback:function(r){t.$set(t.listenerForm,"delegateExpression",r)},expression:"listenerForm.delegateExpression"}})],1):t._e(),t.listenerForm.listenerType==="scriptListener"?[n("ElFormItem",{key:"listener-script-format",attrs:{label:"脚本格式",prop:"scriptFormat",rules:{required:!0,trigger:["blur","change"],message:"请填写脚本格式"}}},[n("ElInput",{attrs:{clearable:""},model:{value:t.listenerForm.scriptFormat,callback:function(r){t.$set(t.listenerForm,"scriptFormat",r)},expression:"listenerForm.scriptFormat"}})],1),n("ElFormItem",{key:"listener-script-type",attrs:{label:"脚本类型",prop:"scriptType",rules:{required:!0,trigger:["blur","change"],message:"请选择脚本类型"}}},[n("ElSelect",{model:{value:t.listenerForm.scriptType,callback:function(r){t.$set(t.listenerForm,"scriptType",r)},expression:"listenerForm.scriptType"}},[n("ElOption",{attrs:{label:"内联脚本",value:"inlineScript"}}),n("ElOption",{attrs:{label:"外部脚本",value:"externalScript"}})],1)],1),t.listenerForm.scriptType==="inlineScript"?n("ElFormItem",{key:"listener-script",attrs:{label:"脚本内容",prop:"value",rules:{required:!0,trigger:["blur","change"],message:"请填写脚本内容"}}},[n("ElInput",{attrs:{clearable:""},model:{value:t.listenerForm.value,callback:function(r){t.$set(t.listenerForm,"value",r)},expression:"listenerForm.value"}})],1):t._e(),t.listenerForm.scriptType==="externalScript"?n("ElFormItem",{key:"listener-resource",attrs:{label:"资源地址",prop:"resource",rules:{required:!0,trigger:["blur","change"],message:"请填写资源地址"}}},[n("ElInput",{attrs:{clearable:""},model:{value:t.listenerForm.resource,callback:function(r){t.$set(t.listenerForm,"resource",r)},expression:"listenerForm.resource"}})],1):t._e()]:t._e()],2),n("ElDivider"),n("p",{staticClass:"listener-filed__title"},[n("span",[n("i",{staticClass:"el-icon-menu"}),t._v("注入字段:")]),n("ElButton",{attrs:{size:"mini",type:"primary"},on:{click:function(r){return t.openListenerFieldForm(null)}}},[t._v("添加字段")])],1),n("ElTable",{staticStyle:{flex:"none"},attrs:{data:t.fieldsListOfListener,size:"mini","max-height":"240",border:"",fit:""}},[n("ElTableColumn",{attrs:{label:"序号",width:"50px",type:"index"}}),n("ElTableColumn",{attrs:{label:"字段名称","min-width":"100px",prop:"name"}}),n("ElTableColumn",{attrs:{label:"字段类型","min-width":"80px","show-overflow-tooltip":"",formatter:function(r){return t.fieldTypeObject[r.fieldType]}}}),n("ElTableColumn",{attrs:{label:"字段值/表达式","min-width":"100px","show-overflow-tooltip":"",formatter:function(r){return r.string||r.expression}}}),n("ElTableColumn",{attrs:{label:"操作",width:"100px"},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.row,o=r.$index;return[n("ElButton",{attrs:{size:"mini",type:"text"},on:{click:function(l){return t.openListenerFieldForm(a,o)}}},[t._v("编辑")]),n("ElDivider",{attrs:{direction:"vertical"}}),n("ElButton",{staticStyle:{color:"#ff4d4f"},attrs:{size:"mini",type:"text"},on:{click:function(l){return t.removeListenerField(a,o)}}},[t._v("移除")])]}}])})],1),n("div",{staticClass:"element-drawer__button"},[n("ElButton",{attrs:{size:"mini"},on:{click:function(r){t.listenerFormModelVisible=!1}}},[t._v("取 消")]),n("ElButton",{attrs:{size:"mini",type:"primary"},on:{click:t.saveListenerConfig}},[t._v("保 存")])],1)],1),n("ElementDialog",{attrs:{title:"字段配置",visible:t.listenerFieldFormModelVisible,width:"600px","append-to-body":"","destroy-on-close":""},on:{"update:visible":function(r){t.listenerFieldFormModelVisible=r}},scopedSlots:t._u([{key:"footer",fn:function(){return[n("ElButton",{attrs:{size:"mini"},on:{click:function(r){t.listenerFieldFormModelVisible=!1}}},[t._v("取 消")]),n("ElButton",{attrs:{size:"mini",type:"primary"},on:{click:t.saveListenerFiled}},[t._v("确 定")])]},proxy:!0}])},[n("ElForm",{ref:"listenerFieldFormRef",staticStyle:{height:"136px"},attrs:{model:t.listenerFieldForm,size:"mini","label-width":"96px"},nativeOn:{submit:function(r){r.preventDefault()}}},[n("ElFormItem",{attrs:{label:"字段名称:",prop:"name",rules:{required:!0,trigger:["blur","change"]}}},[n("ElInput",{attrs:{clearable:""},model:{value:t.listenerFieldForm.name,callback:function(r){t.$set(t.listenerFieldForm,"name",r)},expression:"listenerFieldForm.name"}})],1),n("ElFormItem",{attrs:{label:"字段类型:",prop:"fieldType",rules:{required:!0,trigger:["blur","change"]}}},[n("ElSelect",{model:{value:t.listenerFieldForm.fieldType,callback:function(r){t.$set(t.listenerFieldForm,"fieldType",r)},expression:"listenerFieldForm.fieldType"}},t._l(Object.keys(t.fieldTypeObject),function(r){return n("ElOption",{key:r,attrs:{label:t.fieldTypeObject[r],value:r}})}),1)],1),t.listenerFieldForm.fieldType==="string"?n("ElFormItem",{key:"field-string",attrs:{label:"字段值:",prop:"string",rules:{required:!0,trigger:["blur","change"]}}},[n("ElInput",{attrs:{clearable:""},model:{value:t.listenerFieldForm.string,callback:function(r){t.$set(t.listenerFieldForm,"string",r)},expression:"listenerFieldForm.string"}})],1):t._e(),t.listenerFieldForm.fieldType==="expression"?n("ElFormItem",{key:"field-expression",attrs:{label:"表达式:",prop:"expression",rules:{required:!0,trigger:["blur","change"]}}},[n("ElInput",{attrs:{clearable:""},model:{value:t.listenerFieldForm.expression,callback:function(r){t.$set(t.listenerFieldForm,"expression",r)},expression:"listenerFieldForm.expression"}})],1):t._e()],1)],1)],1)},staticRenderFns$s=[];const __vue2_script$w={name:"ElementListeners",inject:{prefix:"prefix",width:"width"},props:{id:String},data(){return{elementListenersList:[],listenerForm:{},listenerFormModelVisible:!1,fieldsListOfListener:[],listenerFieldForm:{},listenerFieldFormModelVisible:!1,editingListenerIndex:-1,editingListenerFieldIndex:-1,listenerTypeObject:listenerType,fieldTypeObject:fieldType}},watch:{id:{immediate:!0,handler(t){t&&t.length&&this.$nextTick(()=>this.resetListenersList())}}},methods:{resetListenersList(){var t,s,n,r;this.bpmnElement=window.bpmnInstances.bpmnElement,this.otherExtensionList=[],this.bpmnElementListeners=(r=(n=(s=(t=this.bpmnElement.businessObject)==null?void 0:t.extensionElements)==null?void 0:s.values)==null?void 0:n.filter(a=>a.$type===`${this.prefix}:ExecutionListener`))!=null?r:[],this.elementListenersList=this.bpmnElementListeners.map(a=>initListenerType(a))},openListenerForm(t,s){t?(this.listenerForm=initListenerForm(t),this.editingListenerIndex=s):(this.listenerForm={},this.editingListenerIndex=-1),t&&t.fields?this.fieldsListOfListener=t.fields.map(n=>S(f({},n),{fieldType:n.string?"string":"expression"})):(this.fieldsListOfListener=[],this.$set(this.listenerForm,"fields",[])),this.listenerFormModelVisible=!0,this.$nextTick(()=>{this.$refs.listenerFormRef&&this.$refs.listenerFormRef.clearValidate()})},openListenerFieldForm(t,s){this.listenerFieldForm=t?JSON.parse(JSON.stringify(t)):{},this.editingListenerFieldIndex=t?s:-1,this.listenerFieldFormModelVisible=!0,this.$nextTick(()=>{this.$refs.listenerFieldFormRef&&this.$refs.listenerFieldFormRef.clearValidate()})},saveListenerFiled(){return v(this,null,function*(){(yield this.$refs.listenerFieldFormRef.validate())&&(this.editingListenerFieldIndex===-1?(this.fieldsListOfListener.push(this.listenerFieldForm),this.listenerForm.fields.push(this.listenerFieldForm)):(this.fieldsListOfListener.splice(this.editingListenerFieldIndex,1,this.listenerFieldForm),this.listenerForm.fields.splice(this.editingListenerFieldIndex,1,this.listenerFieldForm)),this.listenerFieldFormModelVisible=!1,this.$nextTick(()=>this.listenerFieldForm={}))})},removeListenerField(t,s){this.$confirm("确认移除该字段吗?","提示",{confirmButtonText:"确 认",cancelButtonText:"取 消"}).then(()=>{this.fieldsListOfListener.splice(s,1),this.listenerForm.fields.splice(s,1)}).catch(()=>console.info("操作取消"))},removeListener(t,s){this.$confirm("确认移除该监听器吗?","提示",{confirmButtonText:"确 认",cancelButtonText:"取 消"}).then(()=>{this.bpmnElementListeners.splice(s,1),this.elementListenersList.splice(s,1),updateElementExtensions(this.bpmnElement,this.otherExtensionList.concat(this.bpmnElementListeners))}).catch(()=>console.info("操作取消"))},saveListenerConfig(){return v(this,null,function*(){var n,r,a,o;if(!(yield this.$refs.listenerFormRef.validate()))return;const s=createListenerObject(this.listenerForm,!1,this.prefix);this.editingListenerIndex===-1?(this.bpmnElementListeners.push(s),this.elementListenersList.push(this.listenerForm)):(this.bpmnElementListeners.splice(this.editingListenerIndex,1,s),this.elementListenersList.splice(this.editingListenerIndex,1,this.listenerForm)),this.otherExtensionList=(o=(a=(r=(n=this.bpmnElement.businessObject)==null?void 0:n.extensionElements)==null?void 0:r.values)==null?void 0:a.filter(l=>l.$type!==`${this.prefix}:ExecutionListener`))!=null?o:[],updateElementExtensions(this.bpmnElement,this.otherExtensionList.concat(this.bpmnElementListeners)),this.listenerFormModelVisible=!1,this.listenerForm={}})}}},__cssModules$w={};var __component__$w=normalizeComponent(__vue2_script$w,render$s,staticRenderFns$s,!1,__vue2_injectStyles$w,null,null,null);function __vue2_injectStyles$w(t){for(let s in __cssModules$w)this[s]=__cssModules$w[s]}const ElementListeners=function(){return __component__$w.exports}();var render$r=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"panel-tab__content"},[n("ElTable",{attrs:{data:t.elementPropertyList,size:"mini","max-height":"240",border:"",fit:""}},[n("ElTableColumn",{attrs:{label:"序号",width:"50px",type:"index"}}),n("ElTableColumn",{attrs:{label:"属性名",prop:"name","min-width":"100px","show-overflow-tooltip":""}}),n("ElTableColumn",{attrs:{label:"属性值",prop:"value","min-width":"100px","show-overflow-tooltip":""}}),n("ElTableColumn",{attrs:{label:"操作",width:"90px"},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.row,o=r.$index;return[n("ElButton",{attrs:{size:"mini",type:"text"},on:{click:function(l){return t.openAttributesForm(a,o)}}},[t._v("编辑")]),n("ElDivider",{attrs:{direction:"vertical"}}),n("ElButton",{staticStyle:{color:"#ff4d4f"},attrs:{size:"mini",type:"text"},on:{click:function(l){return t.removeAttributes(a,o)}}},[t._v("移除")])]}}])})],1),n("div",{staticClass:"element-drawer__button"},[n("ElButton",{attrs:{size:"mini",type:"primary",icon:"el-icon-plus"},on:{click:function(r){return t.openAttributesForm(null,-1)}}},[t._v("添加属性")])],1),n("ElementDialog",{attrs:{visible:t.propertyFormModelVisible,title:"属性配置",width:"600px","append-to-body":"","destroy-on-close":""},on:{"update:visible":function(r){t.propertyFormModelVisible=r}},scopedSlots:t._u([{key:"footer",fn:function(){return[n("ElButton",{attrs:{size:"mini"},on:{click:function(r){t.propertyFormModelVisible=!1}}},[t._v("取 消")]),n("ElButton",{attrs:{size:"mini",type:"primary"},on:{click:t.saveAttribute}},[t._v("确 定")])]},proxy:!0}])},[n("ElForm",{ref:"attributeFormRef",attrs:{model:t.propertyForm,"label-width":"80px",size:"mini"},nativeOn:{submit:function(r){r.preventDefault()}}},[n("ElFormItem",{attrs:{label:"属性名:",prop:"name"}},[n("ElInput",{attrs:{clearable:""},model:{value:t.propertyForm.name,callback:function(r){t.$set(t.propertyForm,"name",r)},expression:"propertyForm.name"}})],1),n("ElFormItem",{attrs:{label:"属性值:",prop:"value"}},[n("ElInput",{attrs:{clearable:""},model:{value:t.propertyForm.value,callback:function(r){t.$set(t.propertyForm,"value",r)},expression:"propertyForm.value"}})],1)],1)],1)],1)},staticRenderFns$r=[];const __vue2_script$v={name:"ElementProperties",inject:{prefix:"prefix",width:"width"},props:{id:String},data(){return{elementPropertyList:[],propertyForm:{},editingPropertyIndex:-1,propertyFormModelVisible:!1}},watch:{id:{immediate:!0,handler(t){t&&t.length&&this.resetAttributesList()}}},methods:{resetAttributesList(){var t,s,n,r,a;this.bpmnElement=window.bpmnInstances.bpmnElement,this.otherExtensionList=[],this.bpmnElementProperties=(r=(n=(s=(t=this.bpmnElement.businessObject)==null?void 0:t.extensionElements)==null?void 0:s.values)==null?void 0:n.filter(o=>(o.$type!==`${this.prefix}:Properties`&&this.otherExtensionList.push(o),o.$type===`${this.prefix}:Properties`)))!=null?r:[],this.bpmnElementPropertyList=this.bpmnElementProperties.reduce((o,l)=>o.concat(l.values),[]),this.elementPropertyList=JSON.parse(JSON.stringify((a=this.bpmnElementPropertyList)!=null?a:[]))},openAttributesForm(t,s){this.editingPropertyIndex=s,this.propertyForm=s===-1?{}:JSON.parse(JSON.stringify(t)),this.propertyFormModelVisible=!0,this.$nextTick(()=>{this.$refs.attributeFormRef&&this.$refs.attributeFormRef.clearValidate()})},removeAttributes(t,s){this.$confirm("确认移除该属性吗?","提示",{confirmButtonText:"确 认",cancelButtonText:"取 消"}).then(()=>{this.elementPropertyList.splice(s,1),this.bpmnElementPropertyList.splice(s,1);const n=window.bpmnInstances.moddle.create(`${this.prefix}:Properties`,{values:this.bpmnElementPropertyList});this.updateElementExtensions(n),this.resetAttributesList()}).catch(()=>console.info("操作取消"))},saveAttribute(){const{name:t,value:s}=this.propertyForm;if(console.log(this.bpmnElementPropertyList),this.editingPropertyIndex!==-1)window.bpmnInstances.modeling.updateModdleProperties(this.bpmnElement,this.bpmnElementPropertyList[this.editingPropertyIndex],{name:t,value:s});else{const n=window.bpmnInstances.moddle.create(`${this.prefix}:Property`,{name:t,value:s}),r=window.bpmnInstances.moddle.create(`${this.prefix}:Properties`,{values:this.bpmnElementPropertyList.concat([n])});this.updateElementExtensions(r)}this.propertyFormModelVisible=!1,this.resetAttributesList()},updateElementExtensions(t){const s=window.bpmnInstances.moddle.create("bpmn:ExtensionElements",{values:this.otherExtensionList.concat([t])});window.bpmnInstances.modeling.updateProperties(this.bpmnElement,{extensionElements:s})}}},__cssModules$v={};var __component__$v=normalizeComponent(__vue2_script$v,render$r,staticRenderFns$r,!1,__vue2_injectStyles$v,null,null,null);function __vue2_injectStyles$v(t){for(let s in __cssModules$v)this[s]=__cssModules$v[s]}const ElementProperties=function(){return __component__$v.exports}();var render$q=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"panel-tab__content"},[n("ElForm",{attrs:{size:"mini","label-width":"80px"},nativeOn:{submit:function(r){r.preventDefault()}}},[n("ElFormItem",{attrs:{label:"表单标识"}},[n("ElInput",{attrs:{clearable:""},on:{change:t.updateElementFormKey},model:{value:t.formKey,callback:function(r){t.formKey=r},expression:"formKey"}})],1),n("ElFormItem",{attrs:{label:"业务标识"}},[n("ElSelect",{on:{change:t.updateElementBusinessKey},model:{value:t.businessKey,callback:function(r){t.businessKey=r},expression:"businessKey"}},[t._l(t.fieldList,function(r){return n("ElOption",{key:r.id,attrs:{value:r.id,label:r.label}})}),n("ElOption",{attrs:{label:"无",value:""}})],2)],1)],1),n("div",{staticClass:"element-property list-property"},[n("ElDivider",[n("i",{staticClass:"el-icon-coin"}),t._v(" 表单字段")]),n("ElTable",{attrs:{data:t.fieldList,size:"mini","max-height":"240",border:"",fit:""}},[n("ElTableColumn",{attrs:{label:"序号",type:"index",width:"50px"}}),n("ElTableColumn",{attrs:{label:"字段名称",prop:"label","min-width":"80px","show-overflow-tooltip":""}}),n("ElTableColumn",{attrs:{label:"字段类型",prop:"type","min-width":"80px",formatter:function(r){return t.fieldType[r.type]||r.type},"show-overflow-tooltip":""}}),n("ElTableColumn",{attrs:{label:"默认值",prop:"defaultValue","min-width":"80px","show-overflow-tooltip":""}}),n("ElTableColumn",{attrs:{label:"操作",width:"90px"},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.row,o=r.$index;return[n("ElButton",{attrs:{size:"mini",type:"text"},on:{click:function(l){return t.openFieldForm(a,o)}}},[t._v("编辑")]),n("ElDivider",{attrs:{direction:"vertical"}}),n("ElButton",{staticStyle:{color:"#ff4d4f"},attrs:{size:"mini",type:"text"},on:{click:function(l){return t.removeField(a,o)}}},[t._v("移除")])]}}])})],1)],1),n("div",{staticClass:"element-drawer__button"},[n("ElButton",{attrs:{size:"mini",type:"primary",icon:"el-icon-plus"},on:{click:function(r){return t.openFieldForm(null,-1)}}},[t._v("添加字段")])],1),n("ElDrawer",{attrs:{visible:t.fieldModelVisible,title:"字段配置",size:`${t.width}px`,"append-to-body":"","destroy-on-close":""},on:{"update:visible":function(r){t.fieldModelVisible=r}}},[n("ElForm",{attrs:{model:t.formFieldForm,"label-width":"90px",size:"mini"},nativeOn:{submit:function(r){r.preventDefault()}}},[n("ElFormItem",{attrs:{label:"字段ID"}},[n("ElInput",{attrs:{clearable:""},model:{value:t.formFieldForm.id,callback:function(r){t.$set(t.formFieldForm,"id",r)},expression:"formFieldForm.id"}})],1),n("ElFormItem",{attrs:{label:"类型"}},[n("ElSelect",{attrs:{placeholder:"请选择字段类型",clearable:""},on:{change:t.changeFieldTypeType},model:{value:t.formFieldForm.typeType,callback:function(r){t.$set(t.formFieldForm,"typeType",r)},expression:"formFieldForm.typeType"}},t._l(t.fieldType,function(r,a){return n("ElOption",{key:a,attrs:{label:r,value:a}})}),1)],1),t.formFieldForm.typeType==="custom"?n("ElFormItem",{attrs:{label:"类型名称"}},[n("ElInput",{attrs:{clearable:""},model:{value:t.formFieldForm.type,callback:function(r){t.$set(t.formFieldForm,"type",r)},expression:"formFieldForm.type"}})],1):t._e(),n("ElFormItem",{attrs:{label:"名称"}},[n("ElInput",{attrs:{clearable:""},model:{value:t.formFieldForm.label,callback:function(r){t.$set(t.formFieldForm,"label",r)},expression:"formFieldForm.label"}})],1),t.formFieldForm.typeType==="date"?n("ElFormItem",{attrs:{label:"时间格式"}},[n("ElInput",{attrs:{clearable:""},model:{value:t.formFieldForm.datePattern,callback:function(r){t.$set(t.formFieldForm,"datePattern",r)},expression:"formFieldForm.datePattern"}})],1):t._e(),n("ElFormItem",{attrs:{label:"默认值"}},[n("ElInput",{attrs:{clearable:""},model:{value:t.formFieldForm.defaultValue,callback:function(r){t.$set(t.formFieldForm,"defaultValue",r)},expression:"formFieldForm.defaultValue"}})],1)],1),t.formFieldForm.type==="enum"?[n("ElDivider",{key:"enum-divider"}),n("p",{key:"enum-title",staticClass:"listener-filed__title"},[n("span",[n("i",{staticClass:"el-icon-menu"}),t._v("枚举值列表:")]),n("ElButton",{attrs:{size:"mini",type:"primary"},on:{click:function(r){return t.openFieldOptionForm(null,-1,"enum")}}},[t._v("添加枚举值")])],1),n("ElTable",{key:"enum-table",attrs:{data:t.fieldEnumList,size:"mini","max-height":"240",border:"",fit:""}},[n("ElTableColumn",{attrs:{label:"序号",width:"50px",type:"index"}}),n("ElTableColumn",{attrs:{label:"枚举值编号",prop:"id","min-width":"100px","show-overflow-tooltip":""}}),n("ElTableColumn",{attrs:{label:"枚举值名称",prop:"name","min-width":"100px","show-overflow-tooltip":""}}),n("ElTableColumn",{attrs:{label:"操作",width:"90px"},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.row,o=r.$index;return[n("ElButton",{attrs:{size:"mini",type:"text"},on:{click:function(l){return t.openFieldOptionForm(a,o,"enum")}}},[t._v("编辑")]),n("ElDivider",{attrs:{direction:"vertical"}}),n("ElButton",{staticStyle:{color:"#ff4d4f"},attrs:{size:"mini",type:"text"},on:{click:function(l){return t.removeFieldOptionItem(a,o,"enum")}}},[t._v("移除")])]}}],null,!1,747635382)})],1)]:t._e(),n("ElDivider",{key:"validation-divider"}),n("p",{key:"validation-title",staticClass:"listener-filed__title"},[n("span",[n("i",{staticClass:"el-icon-menu"}),t._v("约束条件列表:")]),n("ElButton",{attrs:{size:"mini",type:"primary"},on:{click:function(r){return t.openFieldOptionForm(null,-1,"constraint")}}},[t._v("添加约束")])],1),n("ElTable",{key:"validation-table",attrs:{data:t.fieldConstraintsList,size:"mini","max-height":"240",border:"",fit:""}},[n("ElTableColumn",{attrs:{label:"序号",width:"50px",type:"index"}}),n("ElTableColumn",{attrs:{label:"约束名称",prop:"name","min-width":"100px","show-overflow-tooltip":""}}),n("ElTableColumn",{attrs:{label:"约束配置",prop:"config","min-width":"100px","show-overflow-tooltip":""}}),n("ElTableColumn",{attrs:{label:"操作",width:"90px"},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.row,o=r.$index;return[n("ElButton",{attrs:{size:"mini",type:"text"},on:{click:function(l){return t.openFieldOptionForm(a,o,"constraint")}}},[t._v("编辑")]),n("ElDivider",{attrs:{direction:"vertical"}}),n("ElButton",{staticStyle:{color:"#ff4d4f"},attrs:{size:"mini",type:"text"},on:{click:function(l){return t.removeFieldOptionItem(a,o,"constraint")}}},[t._v("移除")])]}}])})],1),n("ElDivider",{key:"property-divider"}),n("p",{key:"property-title",staticClass:"listener-filed__title"},[n("span",[n("i",{staticClass:"el-icon-menu"}),t._v("字段属性列表:")]),n("ElButton",{attrs:{size:"mini",type:"primary"},on:{click:function(r){return t.openFieldOptionForm(null,-1,"property")}}},[t._v("添加属性")])],1),n("ElTable",{key:"property-table",attrs:{data:t.fieldPropertiesList,size:"mini","max-height":"240",border:"",fit:""}},[n("ElTableColumn",{attrs:{label:"序号",width:"50px",type:"index"}}),n("ElTableColumn",{attrs:{label:"属性编号",prop:"id","min-width":"100px","show-overflow-tooltip":""}}),n("ElTableColumn",{attrs:{label:"属性值",prop:"value","min-width":"100px","show-overflow-tooltip":""}}),n("ElTableColumn",{attrs:{label:"操作",width:"90px"},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.row,o=r.$index;return[n("ElButton",{attrs:{size:"mini",type:"text"},on:{click:function(l){return t.openFieldOptionForm(a,o,"property")}}},[t._v("编辑")]),n("ElDivider",{attrs:{direction:"vertical"}}),n("ElButton",{staticStyle:{color:"#ff4d4f"},attrs:{size:"mini",type:"text"},on:{click:function(l){return t.removeFieldOptionItem(a,o,"property")}}},[t._v("移除")])]}}])})],1),n("div",{staticClass:"element-drawer__button"},[n("ElButton",{attrs:{size:"mini"}},[t._v("取 消")]),n("ElButton",{attrs:{size:"mini",type:"primary"},on:{click:t.saveField}},[t._v("保 存")])],1)],2),n("ElementDialog",{attrs:{visible:t.fieldOptionModelVisible,title:t.optionModelTitle,width:"600px","append-to-body":"","destroy-on-close":""},on:{"update:visible":function(r){t.fieldOptionModelVisible=r}},scopedSlots:t._u([{key:"footer",fn:function(){return[n("ElButton",{attrs:{size:"mini"},on:{click:function(r){t.fieldOptionModelVisible=!1}}},[t._v("取 消")]),n("ElButton",{attrs:{size:"mini",type:"primary"},on:{click:t.saveFieldOption}},[t._v("确 定")])]},proxy:!0}])},[n("ElForm",{attrs:{model:t.fieldOptionForm,size:"mini","label-width":"96px"},nativeOn:{submit:function(r){r.preventDefault()}}},[t.fieldOptionType!=="constraint"?n("ElFormItem",{key:"option-id",attrs:{label:"编号/ID"}},[n("ElInput",{attrs:{clearable:""},model:{value:t.fieldOptionForm.id,callback:function(r){t.$set(t.fieldOptionForm,"id",r)},expression:"fieldOptionForm.id"}})],1):t._e(),t.fieldOptionType!=="property"?n("ElFormItem",{key:"option-name",attrs:{label:"名称"}},[n("ElInput",{attrs:{clearable:""},model:{value:t.fieldOptionForm.name,callback:function(r){t.$set(t.fieldOptionForm,"name",r)},expression:"fieldOptionForm.name"}})],1):t._e(),t.fieldOptionType==="constraint"?n("ElFormItem",{key:"option-config",attrs:{label:"配置"}},[n("ElInput",{attrs:{clearable:""},model:{value:t.fieldOptionForm.config,callback:function(r){t.$set(t.fieldOptionForm,"config",r)},expression:"fieldOptionForm.config"}})],1):t._e(),t.fieldOptionType==="property"?n("ElFormItem",{key:"option-value",attrs:{label:"值"}},[n("ElInput",{attrs:{clearable:""},model:{value:t.fieldOptionForm.value,callback:function(r){t.$set(t.fieldOptionForm,"value",r)},expression:"fieldOptionForm.value"}})],1):t._e()],1)],1)],1)},staticRenderFns$q=[];const __vue2_script$u={name:"ElementForm",inject:{prefix:"prefix",width:"width"},props:{id:String},data(){return{formKey:"",businessKey:"",optionModelTitle:"",fieldList:[],formFieldForm:{},fieldType:{long:"长整型",string:"字符串",boolean:"布尔类",date:"日期类",enum:"枚举类",custom:"自定义类型"},formFieldIndex:-1,formFieldOptionIndex:-1,fieldModelVisible:!1,fieldOptionModelVisible:!1,fieldOptionForm:{},fieldOptionType:"",fieldEnumList:[],fieldConstraintsList:[],fieldPropertiesList:[]}},watch:{id:{immediate:!0,handler(t){t&&t.length&&this.$nextTick(()=>this.resetFormList())}}},methods:{resetFormList(){var t;this.bpmnElement=window.bpmnInstances.bpmnElement,this.formKey=this.bpmnElement.businessObject.formKey,this.elExtensionElements=this.bpmnElement.businessObject.get("extensionElements")||window.bpmnInstances.moddle.create("bpmn:ExtensionElements",{values:[]}),this.formData=((t=this.elExtensionElements.values.filter(s=>s.$type===`${this.prefix}:FormData`))==null?void 0:t[0])||window.bpmnInstances.moddle.create(`${this.prefix}:FormData`,{fields:[]}),this.businessKey=this.formData.businessKey,this.otherExtensions=this.elExtensionElements.values.filter(s=>s.$type!==`${this.prefix}:FormData`),this.fieldList=JSON.parse(JSON.stringify(this.formData.fields||[])),this.updateElementExtensions()},updateElementFormKey(){window.bpmnInstances.modeling.updateProperties(this.bpmnElement,{formKey:this.formKey})},updateElementBusinessKey(){window.bpmnInstances.modeling.updateModdleProperties(this.bpmnElement,this.formData,{businessKey:this.businessKey})},changeFieldTypeType(t){this.$set(this.formFieldForm,"type",t==="custom"?"":t)},openFieldForm(t,s){var n,r;if(this.formFieldIndex=s,s!==-1){const a=this.formData.fields[s];this.formFieldForm=JSON.parse(JSON.stringify(t)),this.$set(this.formFieldForm,"typeType",this.fieldType[t.type]?t.type:"custom"),t.type==="enum"&&(this.fieldEnumList=JSON.parse(JSON.stringify((a==null?void 0:a.values)||[]))),this.fieldConstraintsList=JSON.parse(JSON.stringify(((n=a==null?void 0:a.validation)==null?void 0:n.constraints)||[])),this.fieldPropertiesList=JSON.parse(JSON.stringify(((r=a==null?void 0:a.properties)==null?void 0:r.values)||[]))}else this.formFieldForm={},this.fieldEnumList=[],this.fieldConstraintsList=[],this.fieldPropertiesList=[];this.fieldModelVisible=!0},openFieldOptionForm(t,s,n){return this.fieldOptionModelVisible=!0,this.fieldOptionType=n,this.formFieldOptionIndex=s,n==="property"?(this.fieldOptionForm=t?JSON.parse(JSON.stringify(t)):{},this.optionModelTitle="属性配置"):n==="enum"?(this.fieldOptionForm=t?JSON.parse(JSON.stringify(t)):{},this.optionModelTitle="枚举值配置"):(this.fieldOptionForm=t?JSON.parse(JSON.stringify(t)):{},this.optionModelTitle="约束条件配置")},saveFieldOption(){this.formFieldOptionIndex===-1?(this.fieldOptionType==="property"&&this.fieldPropertiesList.push(this.fieldOptionForm),this.fieldOptionType==="constraint"&&this.fieldConstraintsList.push(this.fieldOptionForm),this.fieldOptionType==="enum"&&this.fieldEnumList.push(this.fieldOptionForm)):(this.fieldOptionType==="property"&&this.fieldPropertiesList.splice(this.formFieldOptionIndex,1,this.fieldOptionForm),this.fieldOptionType==="constraint"&&this.fieldConstraintsList.splice(this.formFieldOptionIndex,1,this.fieldOptionForm),this.fieldOptionType==="enum"&&this.fieldEnumList.splice(this.formFieldOptionIndex,1,this.fieldOptionForm)),this.fieldOptionModelVisible=!1,this.fieldOptionForm={}},saveField(){const{id:t,type:s,label:n,defaultValue:r,datePattern:a}=this.formFieldForm,o=window.bpmnInstances.moddle.create(`${this.prefix}:FormField`,{id:t,type:s,label:n});if(r&&(o.defaultValue=r),a&&(o.datePattern=a),this.fieldPropertiesList&&this.fieldPropertiesList.length){const l=this.fieldPropertiesList.map(c=>window.bpmnInstances.moddle.create(`${this.prefix}:Property`,{id:c.id,value:c.value}));o.properties=window.bpmnInstances.moddle.create(`${this.prefix}:Properties`,{values:l})}if(this.fieldConstraintsList&&this.fieldConstraintsList.length){const l=this.fieldConstraintsList.map(c=>window.bpmnInstances.moddle.create(`${this.prefix}:Constraint`,{name:c.name,config:c.config}));o.validation=window.bpmnInstances.moddle.create(`${this.prefix}:Validation`,{constraints:l})}this.fieldEnumList&&this.fieldEnumList.length&&(o.values=this.fieldEnumList.map(l=>window.bpmnInstances.moddle.create(`${this.prefix}:Value`,{name:l.name,id:l.id}))),this.formFieldIndex===-1?(this.fieldList.push(this.formFieldForm),this.formData.fields.push(o)):(this.fieldList.splice(this.formFieldIndex,1,this.formFieldForm),this.formData.fields.splice(this.formFieldIndex,1,o)),this.updateElementExtensions(),this.fieldModelVisible=!1},removeFieldOptionItem(t,s,n){if(n==="property"){this.fieldPropertiesList.splice(s,1);return}if(n==="enum"){this.fieldEnumList.splice(s,1);return}this.fieldConstraintsList.splice(s,1)},removeField(t,s){this.fieldList.splice(s,1),this.formData.fields.splice(s,1),this.updateElementExtensions()},updateElementExtensions(){const t=window.bpmnInstances.moddle.create("bpmn:ExtensionElements",{values:this.otherExtensions.concat(this.formData)});window.bpmnInstances.modeling.updateProperties(this.bpmnElement,{extensionElements:t})}}},__cssModules$u={};var __component__$u=normalizeComponent(__vue2_script$u,render$q,staticRenderFns$q,!1,__vue2_injectStyles$u,null,null,null);function __vue2_injectStyles$u(t){for(let s in __cssModules$u)this[s]=__cssModules$u[s]}const ElementForm=function(){return __component__$u.exports}();var render$p=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"panel-tab__content"},[n("ElTable",{attrs:{data:t.elementListenersList,size:"mini",border:""}},[n("ElTableColumn",{attrs:{label:"序号",width:"50px",type:"index"}}),n("ElTableColumn",{attrs:{label:"事件类型","min-width":"80px","show-overflow-tooltip":"",formatter:function(r){return t.listenerEventTypeObject[r.event]}}}),n("ElTableColumn",{attrs:{label:"事件id","min-width":"80px",prop:"id","show-overflow-tooltip":""}}),n("ElTableColumn",{attrs:{label:"监听器类型","min-width":"80px","show-overflow-tooltip":"",formatter:function(r){return t.listenerTypeObject[r.listenerType]}}}),n("ElTableColumn",{attrs:{label:"操作",width:"90px"},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.row,o=r.$index;return[n("ElButton",{attrs:{size:"mini",type:"text"},on:{click:function(l){return t.openListenerForm(a,o)}}},[t._v("编辑")]),n("ElDivider",{attrs:{direction:"vertical"}}),n("ElButton",{staticStyle:{color:"#ff4d4f"},attrs:{size:"mini",type:"text"},on:{click:function(l){return t.removeListener(a,o)}}},[t._v("移除")])]}}])})],1),n("div",{staticClass:"element-drawer__button"},[n("ElButton",{attrs:{size:"mini",type:"primary",icon:"el-icon-plus"},on:{click:function(r){return t.openListenerForm(null)}}},[t._v("添加监听器")])],1),n("ElDrawer",{attrs:{visible:t.listenerFormModelVisible,title:"任务监听器",size:`${t.width}px`,"append-to-body":"","destroy-on-close":""},on:{"update:visible":function(r){t.listenerFormModelVisible=r}}},[n("ElForm",{ref:"listenerFormRef",attrs:{size:"mini",model:t.listenerForm,"label-width":"96px"},nativeOn:{submit:function(r){r.preventDefault()}}},[n("ElFormItem",{attrs:{label:"事件类型",prop:"event",rules:{required:!0,trigger:["blur","change"]}}},[n("ElSelect",{model:{value:t.listenerForm.event,callback:function(r){t.$set(t.listenerForm,"event",r)},expression:"listenerForm.event"}},t._l(Object.keys(t.listenerEventTypeObject),function(r){return n("ElOption",{key:r,attrs:{label:t.listenerEventTypeObject[r],value:r}})}),1)],1),n("ElFormItem",{attrs:{label:"监听器ID",prop:"id",rules:{required:!0,trigger:["blur","change"]}}},[n("ElInput",{attrs:{clearable:""},model:{value:t.listenerForm.id,callback:function(r){t.$set(t.listenerForm,"id",r)},expression:"listenerForm.id"}})],1),n("ElFormItem",{attrs:{label:"监听器类型",prop:"listenerType",rules:{required:!0,trigger:["blur","change"]}}},[n("ElSelect",{model:{value:t.listenerForm.listenerType,callback:function(r){t.$set(t.listenerForm,"listenerType",r)},expression:"listenerForm.listenerType"}},t._l(Object.keys(t.listenerTypeObject),function(r){return n("ElOption",{key:r,attrs:{label:t.listenerTypeObject[r],value:r}})}),1)],1),t.listenerForm.listenerType==="classListener"?n("ElFormItem",{key:"listener-class",attrs:{label:"Java类",prop:"class",rules:{required:!0,trigger:["blur","change"]}}},[n("ElInput",{attrs:{clearable:""},model:{value:t.listenerForm.class,callback:function(r){t.$set(t.listenerForm,"class",r)},expression:"listenerForm.class"}})],1):t._e(),t.listenerForm.listenerType==="expressionListener"?n("ElFormItem",{key:"listener-expression",attrs:{label:"表达式",prop:"expression",rules:{required:!0,trigger:["blur","change"]}}},[n("ElInput",{attrs:{clearable:""},model:{value:t.listenerForm.expression,callback:function(r){t.$set(t.listenerForm,"expression",r)},expression:"listenerForm.expression"}})],1):t._e(),t.listenerForm.listenerType==="delegateExpressionListener"?n("ElFormItem",{key:"listener-delegate",attrs:{label:"代理表达式",prop:"delegateExpression",rules:{required:!0,trigger:["blur","change"]}}},[n("ElInput",{attrs:{clearable:""},model:{value:t.listenerForm.delegateExpression,callback:function(r){t.$set(t.listenerForm,"delegateExpression",r)},expression:"listenerForm.delegateExpression"}})],1):t._e(),t.listenerForm.listenerType==="scriptListener"?[n("ElFormItem",{key:"listener-script-format",attrs:{label:"脚本格式",prop:"scriptFormat",rules:{required:!0,trigger:["blur","change"],message:"请填写脚本格式"}}},[n("ElInput",{attrs:{clearable:""},model:{value:t.listenerForm.scriptFormat,callback:function(r){t.$set(t.listenerForm,"scriptFormat",r)},expression:"listenerForm.scriptFormat"}})],1),n("ElFormItem",{key:"listener-script-type",attrs:{label:"脚本类型",prop:"scriptType",rules:{required:!0,trigger:["blur","change"],message:"请选择脚本类型"}}},[n("ElSelect",{model:{value:t.listenerForm.scriptType,callback:function(r){t.$set(t.listenerForm,"scriptType",r)},expression:"listenerForm.scriptType"}},[n("ElOption",{attrs:{label:"内联脚本",value:"inlineScript"}}),n("ElOption",{attrs:{label:"外部脚本",value:"externalScript"}})],1)],1),t.listenerForm.scriptType==="inlineScript"?n("ElFormItem",{key:"listener-script",attrs:{label:"脚本内容",prop:"value",rules:{required:!0,trigger:["blur","change"],message:"请填写脚本内容"}}},[n("ElInput",{attrs:{clearable:""},model:{value:t.listenerForm.value,callback:function(r){t.$set(t.listenerForm,"value",r)},expression:"listenerForm.value"}})],1):t._e(),t.listenerForm.scriptType==="externalScript"?n("ElFormItem",{key:"listener-resource",attrs:{label:"资源地址",prop:"resource",rules:{required:!0,trigger:["blur","change"],message:"请填写资源地址"}}},[n("ElInput",{attrs:{clearable:""},model:{value:t.listenerForm.resource,callback:function(r){t.$set(t.listenerForm,"resource",r)},expression:"listenerForm.resource"}})],1):t._e()]:t._e(),t.listenerForm.event==="timeout"?[n("ElFormItem",{key:"eventDefinitionType",attrs:{label:"定时器类型",prop:"eventDefinitionType"}},[n("ElSelect",{model:{value:t.listenerForm.eventDefinitionType,callback:function(r){t.$set(t.listenerForm,"eventDefinitionType",r)},expression:"listenerForm.eventDefinitionType"}},[n("ElOption",{attrs:{label:"日期",value:"date"}}),n("ElOption",{attrs:{label:"持续时长",value:"duration"}}),n("ElOption",{attrs:{label:"循环",value:"cycle"}}),n("ElOption",{attrs:{label:"无",value:"null"}})],1)],1),t.listenerForm.eventDefinitionType&&t.listenerForm.eventDefinitionType!=="null"?n("ElFormItem",{key:"eventTimeDefinitions",attrs:{label:"定时器",prop:"eventTimeDefinitions",rules:{required:!0,trigger:["blur","change"],message:"请填写定时器配置"}}},[n("ElInput",{attrs:{clearable:""},model:{value:t.listenerForm.eventTimeDefinitions,callback:function(r){t.$set(t.listenerForm,"eventTimeDefinitions",r)},expression:"listenerForm.eventTimeDefinitions"}})],1):t._e()]:t._e()],2),n("ElDivider"),n("p",{staticClass:"listener-filed__title"},[n("span",[n("i",{staticClass:"el-icon-menu"}),t._v("注入字段:")]),n("ElButton",{attrs:{size:"mini",type:"primary"},on:{click:function(r){return t.openListenerFieldForm(null)}}},[t._v("添加字段")])],1),n("ElTable",{staticStyle:{flex:"none"},attrs:{data:t.fieldsListOfListener,size:"mini","max-height":"240",border:"",fit:""}},[n("ElTableColumn",{attrs:{label:"序号",width:"50px",type:"index"}}),n("ElTableColumn",{attrs:{label:"字段名称","min-width":"100px",prop:"name"}}),n("ElTableColumn",{attrs:{label:"字段类型","min-width":"80px","show-overflow-tooltip":"",formatter:function(r){return t.fieldTypeObject[r.fieldType]}}}),n("ElTableColumn",{attrs:{label:"字段值/表达式","min-width":"100px","show-overflow-tooltip":"",formatter:function(r){return r.string||r.expression}}}),n("ElTableColumn",{attrs:{label:"操作",width:"100px"},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.row,o=r.$index;return[n("ElButton",{attrs:{size:"mini",type:"text"},on:{click:function(l){return t.openListenerFieldForm(a,o)}}},[t._v("编辑")]),n("ElDivider",{attrs:{direction:"vertical"}}),n("ElButton",{staticStyle:{color:"#ff4d4f"},attrs:{size:"mini",type:"text"},on:{click:function(l){return t.removeListenerField(a,o)}}},[t._v("移除")])]}}])})],1),n("div",{staticClass:"element-drawer__button"},[n("ElButton",{attrs:{size:"mini"},on:{click:function(r){t.listenerFormModelVisible=!1}}},[t._v("取 消")]),n("ElButton",{attrs:{size:"mini",type:"primary"},on:{click:t.saveListenerConfig}},[t._v("保 存")])],1)],1),n("ElementDialog",{attrs:{title:"字段配置",visible:t.listenerFieldFormModelVisible,width:"600px","append-to-body":"","destroy-on-close":""},on:{"update:visible":function(r){t.listenerFieldFormModelVisible=r}},scopedSlots:t._u([{key:"footer",fn:function(){return[n("ElButton",{attrs:{size:"mini"},on:{click:function(r){t.listenerFieldFormModelVisible=!1}}},[t._v("取 消")]),n("ElButton",{attrs:{size:"mini",type:"primary"},on:{click:t.saveListenerFiled}},[t._v("确 定")])]},proxy:!0}])},[n("ElForm",{ref:"listenerFieldFormRef",staticStyle:{height:"136px"},attrs:{model:t.listenerFieldForm,size:"mini","label-width":"96px"},nativeOn:{submit:function(r){r.preventDefault()}}},[n("ElFormItem",{attrs:{label:"字段名称:",prop:"name",rules:{required:!0,trigger:["blur","change"]}}},[n("ElInput",{attrs:{clearable:""},model:{value:t.listenerFieldForm.name,callback:function(r){t.$set(t.listenerFieldForm,"name",r)},expression:"listenerFieldForm.name"}})],1),n("ElFormItem",{attrs:{label:"字段类型:",prop:"fieldType",rules:{required:!0,trigger:["blur","change"]}}},[n("ElSelect",{model:{value:t.listenerFieldForm.fieldType,callback:function(r){t.$set(t.listenerFieldForm,"fieldType",r)},expression:"listenerFieldForm.fieldType"}},t._l(Object.keys(t.fieldTypeObject),function(r){return n("ElOption",{key:r,attrs:{label:t.fieldTypeObject[r],value:r}})}),1)],1),t.listenerFieldForm.fieldType==="string"?n("ElFormItem",{key:"field-string",attrs:{label:"字段值:",prop:"string",rules:{required:!0,trigger:["blur","change"]}}},[n("ElInput",{attrs:{clearable:""},model:{value:t.listenerFieldForm.string,callback:function(r){t.$set(t.listenerFieldForm,"string",r)},expression:"listenerFieldForm.string"}})],1):t._e(),t.listenerFieldForm.fieldType==="expression"?n("ElFormItem",{key:"field-expression",attrs:{label:"表达式:",prop:"expression",rules:{required:!0,trigger:["blur","change"]}}},[n("ElInput",{attrs:{clearable:""},model:{value:t.listenerFieldForm.expression,callback:function(r){t.$set(t.listenerFieldForm,"expression",r)},expression:"listenerFieldForm.expression"}})],1):t._e()],1)],1)],1)},staticRenderFns$p=[];const __vue2_script$t={name:"UserTaskListeners",inject:{prefix:"prefix",width:"width"},props:{id:String},data(){return{elementListenersList:[],listenerEventTypeObject:eventType,listenerTypeObject:listenerType,listenerFormModelVisible:!1,listenerForm:{},fieldTypeObject:fieldType,fieldsListOfListener:[],listenerFieldFormModelVisible:!1,editingListenerIndex:-1,editingListenerFieldIndex:-1,listenerFieldForm:{}}},watch:{id:{immediate:!0,handler(t){t&&t.length&&this.$nextTick(()=>this.resetListenersList())}}},methods:{resetListenersList(){var t,s,n,r;this.bpmnElement=window.bpmnInstances.bpmnElement,this.otherExtensionList=[],this.bpmnElementListeners=(r=(n=(s=(t=this.bpmnElement.businessObject)==null?void 0:t.extensionElements)==null?void 0:s.values)==null?void 0:n.filter(a=>a.$type===`${this.prefix}:TaskListener`))!=null?r:[],this.elementListenersList=this.bpmnElementListeners.map(a=>initListenerType(a))},openListenerForm(t,s){t?(this.listenerForm=initListenerForm(t),this.editingListenerIndex=s):(this.listenerForm={},this.editingListenerIndex=-1),t&&t.fields?this.fieldsListOfListener=t.fields.map(n=>S(f({},n),{fieldType:n.string?"string":"expression"})):(this.fieldsListOfListener=[],this.$set(this.listenerForm,"fields",[])),this.listenerFormModelVisible=!0,this.$nextTick(()=>{this.$refs.listenerFormRef&&this.$refs.listenerFormRef.clearValidate()})},removeListener(t,s){this.$confirm("确认移除该监听器吗?","提示",{confirmButtonText:"确 认",cancelButtonText:"取 消"}).then(()=>{this.bpmnElementListeners.splice(s,1),this.elementListenersList.splice(s,1),updateElementExtensions(this.bpmnElement,this.otherExtensionList.concat(this.bpmnElementListeners))}).catch(()=>console.info("操作取消"))},saveListenerConfig(){return v(this,null,function*(){var n,r,a,o;if(!(yield this.$refs.listenerFormRef.validate()))return;const s=createListenerObject(this.listenerForm,!0,this.prefix);this.editingListenerIndex===-1?(this.bpmnElementListeners.push(s),this.elementListenersList.push(this.listenerForm)):(this.bpmnElementListeners.splice(this.editingListenerIndex,1,s),this.elementListenersList.splice(this.editingListenerIndex,1,this.listenerForm)),this.otherExtensionList=(o=(a=(r=(n=this.bpmnElement.businessObject)==null?void 0:n.extensionElements)==null?void 0:r.values)==null?void 0:a.filter(l=>l.$type!==`${this.prefix}:TaskListener`))!=null?o:[],updateElementExtensions(this.bpmnElement,this.otherExtensionList.concat(this.bpmnElementListeners)),this.listenerFormModelVisible=!1,this.listenerForm={}})},openListenerFieldForm(t,s){this.listenerFieldForm=t?JSON.parse(JSON.stringify(t)):{},this.editingListenerFieldIndex=t?s:-1,this.listenerFieldFormModelVisible=!0,this.$nextTick(()=>{this.$refs.listenerFieldFormRef&&this.$refs.listenerFieldFormRef.clearValidate()})},saveListenerFiled(){return v(this,null,function*(){(yield this.$refs.listenerFieldFormRef.validate())&&(this.editingListenerFieldIndex===-1?(this.fieldsListOfListener.push(this.listenerFieldForm),this.listenerForm.fields.push(this.listenerFieldForm)):(this.fieldsListOfListener.splice(this.editingListenerFieldIndex,1,this.listenerFieldForm),this.listenerForm.fields.splice(this.editingListenerFieldIndex,1,this.listenerFieldForm)),this.listenerFieldFormModelVisible=!1,this.$nextTick(()=>this.listenerFieldForm={}))})},removeListenerField(t,s){this.$confirm("确认移除该字段吗?","提示",{confirmButtonText:"确 认",cancelButtonText:"取 消"}).then(()=>{this.fieldsListOfListener.splice(s,1),this.listenerForm.fields.splice(s,1)}).catch(()=>console.info("操作取消"))}}},__cssModules$t={};var __component__$t=normalizeComponent(__vue2_script$t,render$p,staticRenderFns$p,!1,__vue2_injectStyles$t,null,null,null);function __vue2_injectStyles$t(t){for(let s in __cssModules$t)this[s]=__cssModules$t[s]}const UserTaskListeners=function(){return __component__$t.exports}();var render$o=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"process-panel__container",style:{width:`${t.width}px`}},[n("ElCollapse",{model:{value:t.activeTab,callback:function(r){t.activeTab=r},expression:"activeTab"}},[n("ElCollapseItem",{attrs:{name:"base"},scopedSlots:t._u([{key:"title",fn:function(){return[n("div",{staticClass:"panel-tab__title"},[n("i",{staticClass:"el-icon-info"}),t._v("常规")])]},proxy:!0}])},[n("ElementBaseInfo",{attrs:{"id-edit-disabled":t.idEditDisabled,"business-object":t.elementBusinessObject,type:t.elementType}})],1),t.elementType==="Process"?n("ElCollapseItem",{key:"message",attrs:{name:"condition"},scopedSlots:t._u([{key:"title",fn:function(){return[n("div",{staticClass:"panel-tab__title"},[n("i",{staticClass:"el-icon-s-comment"}),t._v("消息与信号")])]},proxy:!0}],null,!1,2715634709)},[n("SignalAndMassage")],1):t._e(),t.conditionFormVisible?n("ElCollapseItem",{key:"condition",attrs:{name:"condition"},scopedSlots:t._u([{key:"title",fn:function(){return[n("div",{staticClass:"panel-tab__title"},[n("i",{staticClass:"el-icon-s-promotion"}),t._v("流转条件")])]},proxy:!0}],null,!1,2203010800)},[n("FlowCondition",{attrs:{"business-object":t.elementBusinessObject,type:t.elementType}})],1):t._e(),t.formVisible?n("ElCollapseItem",{key:"form",attrs:{name:"condition"},scopedSlots:t._u([{key:"title",fn:function(){return[n("div",{staticClass:"panel-tab__title"},[n("i",{staticClass:"el-icon-s-order"}),t._v("表单")])]},proxy:!0}],null,!1,1341048650)},[n("ElementForm",{attrs:{id:t.elementId,type:t.elementType}})],1):t._e(),t.elementType.indexOf("Task")!==-1?n("ElCollapseItem",{key:"task",attrs:{name:"task"},scopedSlots:t._u([{key:"title",fn:function(){return[n("div",{staticClass:"panel-tab__title"},[n("i",{staticClass:"el-icon-s-claim"}),t._v("任务")])]},proxy:!0}],null,!1,2144785833)},[n("ElementTask",{attrs:{id:t.elementId,type:t.elementType}})],1):t._e(),t.elementType.indexOf("Task")!==-1?n("ElCollapseItem",{key:"multiInstance",attrs:{name:"multiInstance"},scopedSlots:t._u([{key:"title",fn:function(){return[n("div",{staticClass:"panel-tab__title"},[n("i",{staticClass:"el-icon-s-help"}),t._v("多实例")])]},proxy:!0}],null,!1,1253501895)},[n("ElementMultiInstance",{attrs:{"business-object":t.elementBusinessObject,type:t.elementType}})],1):t._e(),n("ElCollapseItem",{key:"listeners",attrs:{name:"listeners"},scopedSlots:t._u([{key:"title",fn:function(){return[n("div",{staticClass:"panel-tab__title"},[n("i",{staticClass:"el-icon-message-solid"}),t._v("执行监听器")])]},proxy:!0}])},[n("ElementListeners",{attrs:{id:t.elementId,type:t.elementType}})],1),t.elementType==="UserTask"?n("ElCollapseItem",{key:"taskListeners",attrs:{name:"taskListeners"},scopedSlots:t._u([{key:"title",fn:function(){return[n("div",{staticClass:"panel-tab__title"},[n("i",{staticClass:"el-icon-message-solid"}),t._v("任务监听器")])]},proxy:!0}],null,!1,3617698803)},[n("UserTaskListeners",{attrs:{id:t.elementId,type:t.elementType}})],1):t._e(),n("ElCollapseItem",{key:"extensions",attrs:{name:"extensions"},scopedSlots:t._u([{key:"title",fn:function(){return[n("div",{staticClass:"panel-tab__title"},[n("i",{staticClass:"el-icon-circle-plus"}),t._v("扩展属性")])]},proxy:!0}])},[n("ElementProperties",{attrs:{id:t.elementId,type:t.elementType}})],1),n("ElCollapseItem",{key:"other",attrs:{name:"other"},scopedSlots:t._u([{key:"title",fn:function(){return[n("div",{staticClass:"panel-tab__title"},[n("i",{staticClass:"el-icon-s-promotion"}),t._v("其他")])]},proxy:!0}])},[n("ElementOtherConfig",{attrs:{id:t.elementId}})],1)],1)],1)},staticRenderFns$o=[];const __vue2_script$s={name:"PropertiesPanel",components:{UserTaskListeners,ElementForm,ElementProperties,ElementListeners,SignalAndMassage,FlowCondition,ElementMultiInstance,ElementTask,ElementOtherConfig,ElementBaseInfo},componentName:"MyPropertiesPanel",provide(){return{prefix:this.prefix,width:this.width}},props:{bpmnModeler:Object,prefix:{type:String,default:"camunda"},width:{type:Number,default:480},idEditDisabled:{type:Boolean,default:!1}},data(){return{activeTab:"base",elementId:"",elementType:"",elementBusinessObject:{},conditionFormVisible:!1,formVisible:!1}},watch:{elementId:{handler(){this.activeTab="base"}}},created(){this.initModels()},methods:{initModels(){if(!this.bpmnModeler){this.timer=setTimeout(()=>this.initModels(),10);return}this.timer&&clearTimeout(this.timer),window.bpmnInstances={modeler:this.bpmnModeler,modeling:this.bpmnModeler.get("modeling"),moddle:this.bpmnModeler.get("moddle"),eventBus:this.bpmnModeler.get("eventBus"),bpmnFactory:this.bpmnModeler.get("bpmnFactory"),elementFactory:this.bpmnModeler.get("elementFactory"),elementRegistry:this.bpmnModeler.get("elementRegistry"),replace:this.bpmnModeler.get("replace"),selection:this.bpmnModeler.get("selection")},this.getActiveElement()},getActiveElement(){this.initFormOnChanged(null),this.bpmnModeler.on("import.done",()=>{this.initFormOnChanged(null)}),this.bpmnModeler.on("selection.changed",({newSelection:t})=>{this.initFormOnChanged(t[0]||null)}),this.bpmnModeler.on("element.changed",({element:t})=>{t&&t.id===this.elementId&&this.initFormOnChanged(t)})},initFormOnChanged(t){var n;let s=t;s||(s=(n=window.bpmnInstances.elementRegistry.find(r=>r.type==="bpmn:Process"))!=null?n:window.bpmnInstances.elementRegistry.find(r=>r.type==="bpmn:Collaboration")),s&&(core.debug.call(this,`select element changed: id: ${s.id} , type: ${s.businessObject.$type}`),core.debug.call(this,"businessObject",s.businessObject),window.bpmnInstances.bpmnElement=s,this.bpmnElement=s,this.elementId=s.id,this.elementType=s.type.split(":")[1]||"",this.elementBusinessObject=JSON.parse(JSON.stringify(s.businessObject)),this.conditionFormVisible=!!(this.elementType==="SequenceFlow"&&s.source&&s.source.type.indexOf("StartEvent")===-1),this.formVisible=this.elementType==="UserTask"||this.elementType==="StartEvent")},beforeDestroy(){window.bpmnInstances=null}}},__cssModules$s={};var __component__$s=normalizeComponent(__vue2_script$s,render$o,staticRenderFns$o,!1,__vue2_injectStyles$s,null,null,null);function __vue2_injectStyles$s(t){for(let s in __cssModules$s)this[s]=__cssModules$s[s]}const PropertiesPanel=function(){return __component__$s.exports}();var render$n=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{class:["avue-queue",{"avue-queue--block":t.block}]},[n("div",{ref:"queue",staticClass:"animated",class:t.animate},[t._t("default")],2)])},staticRenderFns$n=[];const __vue2_script$r={name:"Queue",props:{enter:{type:String,default:"fadeInLeft"},leave:{type:String,default:"fadeOutRight"},block:{type:Boolean,default:!1},delay:{type:Number,default:0}},data(){return{isFixed:0,animate:[]}},mounted(){this.$nextTick(()=>{addEventListener("scroll",this.handleAnimate),this.handleAnimate()})},destroyed(){removeEventListener("scroll",this.handleAnimate)},methods:{handleAnimate(){const t=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop,s=document.documentElement.clientHeight,n=this.$refs.queue;t+s>n.offsetTop?setTimeout(()=>{this.animate=[this.enter,"avue-opacity--active"]},this.delay):this.animate=["avue-opacity"]}}},__cssModules$r={};var __component__$r=normalizeComponent(__vue2_script$r,render$n,staticRenderFns$n,!1,__vue2_injectStyles$r,null,null,null);function __vue2_injectStyles$r(t){for(let s in __cssModules$r)this[s]=__cssModules$r[s]}const Queue=function(){return __component__$r.exports}();let RecordVideo$1=class{constructor(s){this.chunks=[],this.video=s,this.mediaRecorder=null,this.chunks=[]}init(){return new Promise((s,n)=>{navigator.mediaDevices.getUserMedia({audio:!0,video:!0}).then(r=>{this.video&&("srcObject"in this.video?this.video.srcObject=r:this.video.src=window.URL.createObjectURL(r),this.video.addEventListener("loadmetadata",()=>{var a;(a=this.video)==null||a.play()}),this.mediaRecorder=new MediaRecorder(r),this.mediaRecorder.addEventListener("dataavailable",a=>{this.chunks.push(a.data)}),s(!0))}).catch(r=>{n(r)})})}startRecord(){var s;((s=this.mediaRecorder)==null?void 0:s.state)==="inactive"&&this.mediaRecorder.start()}stopRecord(){var s;((s=this.mediaRecorder)==null?void 0:s.state)==="recording"&&this.mediaRecorder.stop()}isSupport(){if(navigator.mediaDevices&&navigator.mediaDevices.getUserMedia)return!0}};var render$m=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-video",style:t.styleName},[n("div",{staticClass:"avue-video__border"},[n("span",{style:t.borderStyleName}),n("span",{style:t.borderStyleName}),n("span",{style:t.borderStyleName}),n("span",{style:t.borderStyleName})]),n("img",{staticClass:"avue-video__img",style:t.imgStyleName,attrs:{src:t.background,alt:""}}),n("video",{ref:"main",staticClass:"avue-video__main",attrs:{autoplay:"",muted:""},domProps:{muted:!0}})])},staticRenderFns$m=[];const RecordVideo_vue_vue_type_style_index_0_lang="",__vue2_script$q={name:"RecordVideo",props:{background:{type:String},width:{type:[String,Number],default:500}},data(){return{videoObj:null}},computed:{styleName(){return{width:setPx(this.width)}},imgStyleName(){return{width:setPx(this.width/2)}},borderStyleName(){return{width:setPx(this.width/15),height:setPx(this.width/15),borderWidth:setPx(5)}}},mounted(){this.init()},methods:{init(){this.videoObj=new RecordVideo$1(this.$refs.main),this.videoObj.init().then(()=>{this.videoObj.mediaRecorder.addEventListener("stop",this.getData,!1)})},startRecord(){this.videoObj.startRecord()},stopRecord(){this.videoObj.stopRecord()},getData(){const t=new Blob(this.videoObj.chunks,{type:"video/mp4"}),s=new FileReader;s.readAsDataURL(t),s.addEventListener("loadend",()=>{const n=s.result;this.$emit("data-change",n)})}}},__cssModules$q={};var __component__$q=normalizeComponent(__vue2_script$q,render$m,staticRenderFns$m,!1,__vue2_injectStyles$q,null,null,null);function __vue2_injectStyles$q(t){for(let s in __cssModules$q)this[s]=__cssModules$q[s]}const RecordVideo=function(){return __component__$q.exports}();var render$l=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"resize-observer",attrs:{tabindex:"-1"}})},staticRenderFns$l=[];const ResizeObserver_vue_vue_type_style_index_0_lang="";let isIE;function initCompat(){initCompat.init||(initCompat.init=!0,isIE=getInternetExplorerVersion()!==-1)}const __vue2_script$p={name:"ResizeObserver",mounted(){initCompat(),this.$nextTick(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight});const t=document.createElement("object");this._resizeObject=t,t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",isIE&&this.$el.appendChild(t),t.data="about:blank",isIE||this.$el.appendChild(t)},beforeDestroy(){this.removeResizeHandlers()},methods:{compareAndNotify(){(this._w!==this.$el.offsetWidth||this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.$emit("notify",{width:this._w,height:this._h}))},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!isIE&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},__cssModules$p={};var __component__$p=normalizeComponent(__vue2_script$p,render$l,staticRenderFns$l,!1,__vue2_injectStyles$p,null,null,null);function __vue2_injectStyles$p(t){for(let s in __cssModules$p)this[s]=__cssModules$p[s]}const ResizeObserver=function(){return __component__$p.exports}();var render$k=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("ElRow",{class:["avue-search",{"avue--card":t.isCard}],attrs:{span:24}},t._l(t.columnOption,function(r){return n("ElCol",{key:r.prop,staticClass:"avue-search__item",attrs:{span:r.span||24}},[n("p",{staticClass:"avue-search__title"},[t._v(" "+t._s(r.label)+": ")]),n("div",{staticClass:"avue-search__content"},[t.mainSlot.includes(r.prop)?t._t(r.prop,null,{dic:t.DIC[r.prop]}):t._l(t.DIC[r.prop],function(a){return n("span",{key:t.getKey(a,r.props,t.valueKey),class:["avue-search__tags",{"avue-search__tags--active":t.getActive(a,r)}],on:{click:function(o){return t.handleClick(r,a)}}},[t._v(t._s(t.getKey(a,r.props,t.labelKey)))])})],2)])}),1)},staticRenderFns$k=[];const Search_vue_vue_type_style_index_0_lang="",__vue2_script$o={name:"Search",mixins:[init],props:{value:[String,Object,Number,Boolean,Array]},computed:{form:{get(){return this.value},set(t){this.setVal(t)}},props(){return this.parentOption.props||{}},labelKey(){return DIC_PROPS.label},valueKey(){return DIC_PROPS.value},mainSlot(){const t=[];return this.propOption.forEach(s=>{this.$scopedSlots[s.prop]&&t.push(s.prop)}),t},isCard(){return this.parentOption.card},parentOption(){return this.tableOption},propOption(){return this.columnOption},columnOption(){return this.parentOption.column}},watch:{value:{handler(t){this.setVal(t)},deep:!0}},created(){this.dataFormat()},methods:{setVal(t){this.$emit("input",t),this.$emit("change",t)},getKey(t={},s={},n){return t[s[n]||this.props[n]||n]},dataFormat(){this.propOption.forEach(t=>{const s=t.prop;core.isBlank(this.form[s])&&this.$set(this.form,s,t.multiple===!1?"":[])})},getActive(t,s){const n=this.getKey(t,s.props,this.valueKey);return s.multiple===!1?this.form[s.prop]===n:this.form[s.prop].includes(n)},handleClick(t,s){const n=this.getKey(s,t.props,this.valueKey);if(t.multiple===!1)this.form[t.prop]=n;else{const r=this.form[t.prop].indexOf(n);r===-1?this.form[t.prop].push(n):this.form[t.prop].splice(r,1)}}}},__cssModules$o={};var __component__$o=normalizeComponent(__vue2_script$o,render$k,staticRenderFns$k,!1,__vue2_injectStyles$o,null,null,null);function __vue2_injectStyles$o(t){for(let s in __cssModules$o)this[s]=__cssModules$o[s]}const Search=function(){return __component__$o.exports}();var render$j=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.showPopover,expression:"showPopover"},{name:"click-outside",rawName:"v-click-outside",value:t.hidePopover,expression:"hidePopover"}],staticClass:"search-popover"},[n("div",{staticStyle:{padding:"10px"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.keyword,expression:"keyword"}],ref:"searchInput",staticClass:"search-input",attrs:{placeholder:t.currentItem?t.currentItem.name:"输入关键字搜索 ..."},domProps:{value:t.keyword},on:{input:function(r){r.target.composing||(t.keyword=r.target.value)}}})]),n("ul",{ref:"ul",staticStyle:{flex:"1",overflow:"auto","list-style-type":"none"}},[t.filterList.length?t._l(t.filterList,function(r,a){return n("li",{key:r.name+a,staticClass:"search-li",attrs:{id:`item-${a}`},on:{mousemove:function(o){return t.mouseHoverItem(r,a)}}},[n("a",{class:["search-item",{active:t.currentIndex===a}],attrs:{target:r.url?"_blank":"",rel:"noopener noreferrer",href:r.url?r.url:"javascript:void(0)"},on:{click:function(o){return t.onItemClick(r)}}},[n("div",{staticClass:"search-icon"},[n("i",{class:r.icon||"el-icon-menu"})]),n("div",{staticStyle:{flex:"1","box-sizing":"border-box",padding:"0 10px","overflow-x":"hidden","text-align":"left"}},[n("p",{staticStyle:{"margin-bottom":"4px","font-size":"16px"}},[t._v(t._s(r.name))]),n("p",{staticClass:"url"},[t._v(t._s(r.url||r.path))])]),n("div",{staticClass:"search-icon search-action"},[n("svg",{staticClass:"action",attrs:{width:"20",height:"20",viewBox:"0 0 20 20"}},[n("g",{attrs:{stroke:"currentColor",fill:"none","fill-rule":"evenodd","stroke-linecap":"round","stroke-linejoin":"round"}},[n("path",{attrs:{d:"M18 3v4c0 2-2 4-4 4H2"}}),n("path",{attrs:{d:"M8 17l-6-6 6-6"}})])])])])])}):t.evalResult!==""?n("li",{staticClass:"search-li",on:{click:t.copyEvalResult,mousemove:function(r){return t.mouseHoverItem({},-1)}}},[n("a",{class:["search-item",{active:t.currentIndex===-1}],attrs:{rel:"noopener noreferrer",href:"javascript:void(0)"}},[t._m(0),n("div",{staticStyle:{flex:"1","box-sizing":"border-box",padding:"0 10px","overflow-x":"hidden","text-align":"left"}},[n("p",{staticStyle:{"margin-bottom":"4px","font-size":"16px"}},[t._v("Result: "+t._s(t.evalResult))]),n("p",{staticClass:"url"},[t._v("点击或这按 Enter 键复制")])]),n("div",{staticClass:"search-icon search-action"},[n("svg",{staticClass:"action",attrs:{width:"20",height:"20",viewBox:"0 0 20 20"}},[n("g",{attrs:{stroke:"currentColor",fill:"none","fill-rule":"evenodd","stroke-linecap":"round","stroke-linejoin":"round"}},[n("path",{attrs:{d:"M18 3v4c0 2-2 4-4 4H2"}}),n("path",{attrs:{d:"M8 17l-6-6 6-6"}})])])])])]):n("li",{staticStyle:{display:"flex","align-items":"center","justify-content":"center",height:"100%",color:"#808080"}},[t._v(" Sorry,no result ! ")])],2),n("div",{staticClass:"footer-tips"},[n("span",{staticClass:"keyboard-key"},[n("svg",{attrs:{width:"15",height:"15"}},[n("g",{attrs:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.2"}},[n("path",{attrs:{d:"M12 3.53088v3c0 1-1 2-2 2H4M7 11.53088l-3-3 3-3"}})])])]),n("span",{staticStyle:{"margin-right":"20px","font-size":"12px"}},[t._v("选择")]),n("span",{staticClass:"keyboard-key"},[n("svg",{attrs:{width:"15",height:"15"}},[n("g",{attrs:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.2"}},[n("path",{attrs:{d:"M7.5 3.5v8M10.5 8.5l-3 3-3-3"}})])])]),n("span",{staticClass:"keyboard-key"},[n("svg",{attrs:{width:"15",height:"15"}},[n("g",{attrs:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.2"}},[n("path",{attrs:{d:"M7.5 11.5v-8M10.5 6.5l-3-3-3 3"}})])])]),n("span",{staticStyle:{"margin-right":"20px","font-size":"12px"}},[t._v("切换")]),n("span",{staticClass:"keyboard-key"},[n("svg",{attrs:{width:"15",height:"15"}},[n("g",{attrs:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.2"}},[n("path",{attrs:{d:"M13.6167 8.936c-.1065.3583-.6883.962-1.4875.962-.7993 0-1.653-.9165-1.653-2.1258v-.5678c0-1.2548.7896-2.1016 1.653-2.1016.8634 0 1.3601.4778 1.4875 1.0724M9 6c-.1352-.4735-.7506-.9219-1.46-.8972-.7092.0246-1.344.57-1.344 1.2166s.4198.8812 1.3445.9805C8.465 7.3992 8.968 7.9337 9 8.5c.032.5663-.454 1.398-1.4595 1.398C6.6593 9.898 6 9 5.963 8.4851m-1.4748.5368c-.2635.5941-.8099.876-1.5443.876s-1.7073-.6248-1.7073-2.204v-.4603c0-1.0416.721-2.131 1.7073-2.131.9864 0 1.6425 1.031 1.5443 2.2492h-2.956"}})])])]),n("span",{staticStyle:{"font-size":"12px"}},[t._v("关闭")])])])},staticRenderFns$j=[function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"search-icon"},[n("i",{staticClass:"fa fa-table"})])}];const SearchPopover_vue_vue_type_style_index_0_lang="",__vue2_script$n={name:"SearchPopover",directives:{ClickOutside},props:{services:{type:Array,default:()=>[]}},data(){return{showPopover:!1,keyword:"",currentIndex:0,last:0}},computed:{filterList(){return this.services.filter(t=>t.name.indexOf(this.keyword)>-1)},currentItem(){var t;return(t=this.filterList)==null?void 0:t[this.currentIndex]},evalResult(){try{return eval(this.keyword)}catch(t){return""}}},watch:{keyword(){this.currentIndex=0,!this.currentItem&&this.currentIndex!==-1&&(this.currentIndex=-1)},showPopover(t){t?document.body.style.overflow="hidden":document.body.style.overflow=""}},mounted(){window.addEventListener("keydown",this.keydown)},destroyed(){window.removeEventListener("keydown",this.keydown)},methods:{onItemClick(t){return v(this,null,function*(){t.path&&(this.hidePopover(),yield this.$router.push(t.path))})},copyEvalResult(){return core.copy(this.evalResult)},hidePopover(){this.showPopover=!1},displayPopover(){this.showPopover=!0},mouseHoverItem(t,s){this.currentIndex=s},keydown(t){return v(this,null,function*(){if(t.key==="Shift"){const s=Date.now()-this.last;s>0&&s<500?(this.showPopover=!0,yield this.$nextTick(),this.$refs.searchInput.focus()):this.last=Date.now()}this.showPopover===!0&&(t.key==="Escape"&&this.hidePopover(),t.key==="Enter"&&(this.currentItem?this.currentItem.url?(window.open(this.currentItem.url,"_blank"),this.hidePopover()):this.currentItem.path&&(yield this.onItemClick(this.currentItem)):this.copyEvalResult()),t.key==="ArrowUp"&&(this.currentIndex--,this.currentIndex<0&&(this.currentIndex=this.filterList.length-1),this.scrollIntoView(this.currentIndex)),t.key==="ArrowDown"&&(this.currentIndex++,this.currentIndex>=this.filterList.length&&(this.currentIndex=0),this.scrollIntoView(this.currentIndex)))})},scrollIntoView(t){if(t===0){this.$refs.ul.scrollTop=0;return}if(t===this.filterList.length){this.$refs.ul.scrollTop=this.$refs.ul.scrollHeight;return}const s=this.$refs.ul.querySelector(`#item-${t}`);core.isInContainer(s,this.$refs.ul,{topOffset:-78,bottomOffset:78})||(this.$refs.ul.scrollTop=s.offsetTop-s.clientHeight+20)}}},__cssModules$n={};var __component__$n=normalizeComponent(__vue2_script$n,render$j,staticRenderFns$j,!1,__vue2_injectStyles$n,null,null,null);function __vue2_injectStyles$n(t){for(let s in __cssModules$n)this[s]=__cssModules$n[s]}const SearchPopover=function(){return __component__$n.exports}();var render$i=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-sige"},[n("canvas",{ref:"canvas",staticClass:"avue-sige__canvas",attrs:{width:t.width,height:t.height}})])},staticRenderFns$i=[];const Sign_vue_vue_type_style_index_0_lang="";function create5star(t,s,n,r,a,o){t.save(),t.fillStyle=a,t.translate(s,n),t.rotate(Math.PI+o),t.beginPath();var l=Math.sin(0),c=Math.cos(0);const u=Math.PI/5*4;for(let d=0;d<5;d++){var l=Math.sin(d*u),c=Math.cos(d*u);t.lineTo(l*r,c*r)}t.closePath(),t.stroke(),t.fill(),t.restore()}const __vue2_script$m={name:"Sign",props:{width:{type:Number,default:600},height:{type:Number,default:400}},data(){return{disabled:!1,linex:[],liney:[],linen:[],canvas:{},context:{}}},computed:{styleName(){return{width:setPx(this.width),height:setPx(this.height)}}},mounted(){this.init()},methods:{getStar(t,s,n){const r=this.canvas,a=this.context,o=r.width/2,l=r.height/2;a.lineWidth=7,a.strokeStyle="#f00",a.beginPath(),a.arc(o,l,110,0,Math.PI*2),a.stroke(),create5star(a,o,l,20,"#f00",0),a.font="18px 黑体",a.textBaseline="middle",a.textAlign="center",a.lineWidth=1,a.strokeStyle="#f00",a.strokeText(t,o,l+50),a.font="14px 黑体",a.textBaseline="middle",a.textAlign="center",a.lineWidth=1,a.strokeStyle="#f00",a.strokeText(n,o,l+80),a.translate(o,l),a.font="22px 黑体";const c=s.length,u=4*Math.PI/(3*(c-1)),d=s.split("");let p;for(let h=0;h<c;h++)p=d[h],h==0?a.rotate(5*Math.PI/6):a.rotate(u),a.save(),a.translate(90,0),a.rotate(Math.PI/2),a.strokeText(p,0,0),a.restore(),a.save();this.disabled=!0},submit(t,s){return t||(t=this.width),s||(s=this.height),this.canvas.toDataURL("i/png")},clear(){this.linex=[],this.liney=[],this.linen=[],this.disabled=!1},init(){this.canvas=this.$refs.canvas;const t=this.canvas,s=this;typeof document.ontouchstart!="undefined"?(t.addEventListener("touchmove",c,!1),t.addEventListener("touchstart",u,!1),t.addEventListener("touchend",d,!1)):(t.addEventListener("mousemove",c,!1),t.addEventListener("mousedown",u,!1),t.addEventListener("mouseup",d,!1),t.addEventListener("mouseleave",d,!1)),this.context=t.getContext("2d");const n=this.context;this.linex=[],this.liney=[],this.linen=[];let r=1,a=30,o=0;function l(p,h){const m=p.getBoundingClientRect();let _,x;return h.targetTouches?(_=h.targetTouches[0].clientX,x=h.targetTouches[0].clientY):(_=h.clientX,x=h.clientY),{x:(_-m.left)*(p.width/m.width),y:(x-m.top)*(p.height/m.height)}}function c(p){if(s.disabled)return;const h=l(t,p).x,m=l(t,p).y;if(o===1){s.linex.push(h),s.liney.push(m),s.linen.push(1),n.save(),n.translate(n.canvas.width/2,n.canvas.height/2),n.translate(-n.canvas.width/2,-n.canvas.height/2),n.beginPath(),n.lineWidth=2;for(let _=1;_<s.linex.length;_++)r=s.linex[_],a=s.liney[_],s.linen[_]===0?n.moveTo(r,a):n.lineTo(r,a);n.shadowBlur=10,n.stroke(),n.restore()}p.preventDefault()}function u(p){if(s.disabled)return;const h=l(t,p).x,m=l(t,p).y;o=1,s.linex.push(h),s.liney.push(m),s.linen.push(0)}function d(){s.disabled||(o=0)}}}},__cssModules$m={};var __component__$m=normalizeComponent(__vue2_script$m,render$i,staticRenderFns$i,!1,__vue2_injectStyles$m,null,null,null);function __vue2_injectStyles$m(t){for(let s in __cssModules$m)this[s]=__cssModules$m[s]}const Sign=function(){return __component__$m.exports}();var render$h=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"sign-panel flex-column"},[n("div",{directives:[{name:"show",rawName:"v-show",value:!t.disabled&&t.edit,expression:"!disabled && edit"}],staticClass:"sign-edit"},[n("div",{staticClass:"sign-draw-area",style:{width:`${t.width+2}px`,height:`${t.height+2}px`}},[n("div",{staticClass:"sign-watermark",style:{fontSize:`${t.fontSize}px`}},[t._v(" "+t._s(t.text)+" ")]),n("canvas",{ref:"canvas",staticClass:"sign-canvas",attrs:{width:t.width,height:t.height},on:{touchstart:function(r){return r.stopPropagation(),t.touchstart.apply(null,arguments)},touchmove:function(r){return r.stopPropagation(),t.touchmove.apply(null,arguments)},mousedown:function(r){return r.stopPropagation(),t.down.apply(null,arguments)},touchend:function(r){return r.stopPropagation(),t.touchend.apply(null,arguments)},mouseup:function(r){return r.stopPropagation(),t.up.apply(null,arguments)}}},[t._v("当前浏览器不支持手写签名 ")])]),n("div",{staticClass:"sign-tool-bar"},[n("div",{staticClass:"sign-button flex-item",staticStyle:{color:"red"},on:{click:t.clear}},[n("i",{staticClass:"fa fa-trash"}),t._v(" 清除 ")]),n("div",{staticClass:"sign-button flex-item",staticStyle:{color:"red"},on:{click:t.cancel}},[n("i",{staticClass:"fa fa-close"}),t._v(" 取消 ")]),n("div",{staticClass:"sign-button flex-item",staticStyle:{color:"orange"},on:{click:t.rollback}},[n("i",{staticClass:"fa fa-repeat"}),t._v(" 撤销 ")]),n("div",{staticClass:"sign-button flex-item",staticStyle:{color:"green"},on:{click:t.save}},[n("i",{staticClass:"fa fa-check"}),t._v(" 确定 ")])])]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.disabled||!t.edit,expression:"disabled || !edit"}],staticClass:"sign-view",style:{cursor:t.disabled?"not-allowed":"pointer"},on:{click:t.showSign}},[t.value?n("img",{staticClass:"sign-image",attrs:{src:t.value,alt:"签名"}}):t._e(),t.value?t._e():n("p",{staticClass:"sign-tips",style:{color:!t.value&&t.disabled?"red":""}},[t._v(" "+t._s(t.disabled?"未签名":"点击进行签名")+" ")]),t.disabled?t._e():n("i",{staticClass:"el-icon-edit-outline sign-edit-icon"})])])},staticRenderFns$h=[];const SignPanel_vue_vue_type_style_index_0_lang="",__vue2_script$l={name:"SignPanel",props:{width:{type:Number,default:400},height:{type:Number,default:150},lineWidth:{type:Number,default:1},text:{type:String,default:"签名区"},fontSize:{type:Number,default:20},value:{type:String},disabled:Boolean},data(){return{edit:!1}},mounted(){this.init()},methods:{init(){if(this.stack=[],this.canvas=this.$refs.canvas,!this.canvas.getContext){alert("当前浏览器不支持手写签名");return}this.canvasInit()},rollback(){if(this.stack.length>0){const t=this.stack[this.stack.length-1];this.ctx.putImageData(t,0,0),this.stack.length=this.stack.length-1}},position(){this.restorePoint=this.ctx.getImageData(0,0,this.canvas.width,this.canvas.height);const t=this.canvas.getBoundingClientRect();this.start=t.left,this.end=t.top},canvasInit(){this.ctx=this.canvas.getContext("2d"),this.ctx.lineCap="round",this.ctx.lineWidth=this.lineWidth,this.ctx.clearRect(0,0,this.width,this.height),this.blank=this.canvas.toDataURL("image/png")},drawWaterMark(){this.ctx.font=`${this.fontSize}px bold 黑体`,this.ctx.fillStyle="#eee",this.ctx.textAlign="center",this.ctx.shadowBlur=1,this.ctx.textBaseline="middle",this.ctx.fillText(this.text,this.width/2,this.height/2)},down(t){this.position(),this.startLine(t.clientX,t.clientY,t),this.target=t.target,this.target.addEventListener("mousemove",this.move),window.addEventListener("mouseup",this.up)},move(t){this.moveLine(t.clientX,t.clientY,t)},up(){this.target&&this.target.removeEventListener("mousemove",this.move),window.removeEventListener("mouseup",this.up),this.record()},touchstart(t){this.position(),this.startLine(t.changedTouches[0].clientX,t.changedTouches[0].clientY,t)},touchmove(t){this.moveLine(t.touches[0].clientX,t.touches[0].clientY,t)},startLine(t,s){this.ctx.beginPath(),t-=this.start,s-=this.end,this.ctx.moveTo(t,s)},moveLine(t,s,n){n&&n.preventDefault(),t-=this.start,s-=this.end,this.ctx.lineTo(t,s),this.ctx.stroke()},clear(){this.ctx.clearRect(0,0,this.width,this.height)},cancel(){this.clear(),this.edit=!1},touchend(){this.record()},record(){this.stack.push(this.restorePoint)},save(){const t=this.canvas.toDataURL("image/png");this.blank===t?this.$emit("input",""):this.$emit("input",t),this.edit=!1,this.stack.length=0,this.ctx.clearRect(0,0,this.width,this.height)},showSign(){this.disabled||(this.edit=!0)}}},__cssModules$l={};var __component__$l=normalizeComponent(__vue2_script$l,render$h,staticRenderFns$h,!1,__vue2_injectStyles$l,null,null,null);function __vue2_injectStyles$l(t){for(let s in __cssModules$l)this[s]=__cssModules$l[s]}const SignPanel=function(){return __component__$l.exports}();var render$g=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-skeleton"},[t.loading?t._l(t.number,function(r,a){return n("div",{key:a,staticClass:"avue-skeleton__item"},[n("div",{staticClass:"avue-skeleton__header"},[t.avatar?n("span",{staticClass:"avue-skeleton__vatar'),className]"}):t._e()]),n("div",{staticClass:"avue-skeleton__content"},[n("h3",{class:["avue-skeleton__title",t.className]}),n("div",{staticClass:"avue-skeleton__list"},t._l(t.rows,function(o,l){return n("p",{key:l,class:["avue-skeleton__li",t.className],style:t.styleName})}),0)])])}):n("div",[t._t("default")],2)],2)},staticRenderFns$g=[];const Skeleton_vue_vue_type_style_index_0_lang="",prefixCls="avue-skeleton",__vue2_script$k={name:"Skeleton",props:{loading:{type:Boolean,default:!0},avatar:Boolean,active:{type:Boolean,default:!0},block:Boolean,number:{type:Number,default:1},rows:{type:Number,default:3}},computed:{styleName(){return this.block?{width:"100%"}:{}},className(){const{active:t}=this;return{[`${prefixCls}__loading`]:t}}}},__cssModules$k={};var __component__$k=normalizeComponent(__vue2_script$k,render$g,staticRenderFns$g,!1,__vue2_injectStyles$k,null,null,null);function __vue2_injectStyles$k(t){for(let s in __cssModules$k)this[s]=__cssModules$k[s]}const Skeleton=function(){return __component__$k.exports}();function oneOf(t,s){for(let n=0;n<s.length;n++)if(t===s[n])return!0;return!1}const on=function(){return document.addEventListener?function(t,s,n){t&&s&&n&&t.addEventListener(s,n,!1)}:function(t,s,n){t&&s&&n&&t.attachEvent(`on${s}`,n)}}(),off=function(){return document.removeEventListener?function(t,s,n){t&&s&&t.removeEventListener(s,n,!1)}:function(t,s,n){t&&s&&t.detachEvent(`on${s}`,n)}}();var render$f=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{ref:"outerWrapper",class:t.wrapperClasses},[t.isHorizontal?n("div",{class:`${t.prefix}-horizontal`},[t.hideLeft?n("div",{class:[`${t.prefix}-pane`,"right-pane"],staticStyle:{left:"0"}},[t._t("right")],2):[n("div",{class:[`${t.prefix}-pane`,"left-pane"],style:{right:`${t.anotherOffset}%`}},[t._t("left")],2),n("div",{class:`${t.prefix}-trigger-con`,style:{left:`calc(${t.offset}% + ${t.triggerSize/2}px)`,width:`${t.triggerSize}px`},on:{mousedown:t.handleMousedown}},[t._t("trigger",function(){return[n("Trigger",{attrs:{mode:"vertical"}})]})],2),n("div",{class:[`${t.prefix}-pane`,"right-pane"],style:{left:`calc(${t.offset}% + ${t.triggerSize}px)`}},[t._t("right")],2)]],2):n("div",{class:`${t.prefix}-vertical`},[n("div",{class:[`${t.prefix}-pane`,"top-pane"],style:{bottom:`${t.anotherOffset}%`}},[t._t("top")],2),n("div",{class:`${t.prefix}-trigger-con`,style:{top:`calc(${t.offset}% + ${t.triggerSize/2}px)`,height:`${t.triggerSize}px`},on:{mousedown:t.handleMousedown}},[t._t("trigger",function(){return[n("Trigger",{attrs:{mode:"horizontal"}})]})],2),n("div",{class:[`${t.prefix}-pane`,"bottom-pane"],style:{top:`calc(${t.offset}% + ${t.triggerSize}px)`}},[t._t("bottom")],2)]),n("ResizeObserver",{on:{notify:t.resetOffset}})],1)},staticRenderFns$f=[];const SplitPane_vue_vue_type_style_index_0_lang="",__vue2_script$j={name:"SplitPane",props:{value:{type:[Number,String],default:.5},mode:{validator(t){return oneOf(t,["horizontal","vertical"])},default:"horizontal"},hideLeft:Boolean,triggerSize:{type:Number,default:6},min:{type:[Number,String],default:"40px"},max:{type:[Number,String],default:"40px"}},data(){return{prefix:"egd-split",offset:0,oldOffset:0,isMoving:!1}},computed:{wrapperClasses(){return[`${this.prefix}-wrapper`,this.isMoving?"no-select":""]},isHorizontal(){return this.mode==="horizontal"},anotherOffset(){return 100-this.offset},valueIsPx(){return typeof this.value=="string"},offsetSize(){return this.isHorizontal?"offsetWidth":"offsetHeight"},computedMin(){return this.getComputedThresholdValue("min")},computedMax(){return this.getComputedThresholdValue("max")}},watch:{value:"resetOffset"},mounted(){return v(this,null,function*(){yield this.$nextTick(),this.resetOffset()})},methods:{resetOffset(){this.offset=(this.valueIsPx?this.px2percent(this.value,this.$refs.outerWrapper[this.offsetSize]):this.value)*1e4/100},px2percent(t,s){return parseFloat(t)/parseFloat(s)},getComputedThresholdValue(t){const s=this.$refs.outerWrapper[this.offsetSize];return this.valueIsPx?typeof this[t]=="string"?this[t]:s*this[t]:typeof this[t]=="string"?this.px2percent(this[t],s):this[t]},getMin(t,s){return this.valueIsPx?`${Math.min(parseFloat(t),parseFloat(s))}px`:Math.min(t,s)},getMax(t,s){return this.valueIsPx?`${Math.max(parseFloat(t),parseFloat(s))}px`:Math.max(t,s)},getAnotherOffset(t){let s=0;return this.valueIsPx?s=`${this.$refs.outerWrapper[this.offsetSize]-parseFloat(t)}px`:s=1-t,s},handleMove(t){const n=(this.isHorizontal?t.pageX:t.pageY)-this.initOffset,r=this.$refs.outerWrapper[this.offsetSize];let a=this.valueIsPx?`${parseFloat(this.oldOffset)+n}px`:this.px2percent(r*this.oldOffset+n,r);const o=this.getAnotherOffset(a);parseFloat(a)<=parseFloat(this.computedMin)&&(a=this.getMax(a,this.computedMin)),parseFloat(o)<=parseFloat(this.computedMax)&&(a=this.getAnotherOffset(this.getMax(o,this.computedMax))),t.atMin=this.value===this.computedMin,t.atMax=this.valueIsPx?this.getAnotherOffset(this.value)===this.computedMax:this.getAnotherOffset(this.value).toFixed(5)===this.computedMax.toFixed(5),this.$emit("input",a),this.$emit("on-moving",t)},handleUp(){this.isMoving=!1,off(window,"mousemove",this.handleMove),off(window,"mouseup",this.handleUp),this.$emit("on-move-end")},handleMousedown(t){this.initOffset=this.isHorizontal?t.pageX:t.pageY,this.oldOffset=this.value,this.isMoving=!0,on(window,"mousemove",this.handleMove),on(window,"mouseup",this.handleUp),this.$emit("on-move-start")}}},__cssModules$j={};var __component__$j=normalizeComponent(__vue2_script$j,render$f,staticRenderFns$f,!1,__vue2_injectStyles$j,null,null,null);function __vue2_injectStyles$j(t){for(let s in __cssModules$j)this[s]=__cssModules$j[s]}const SplitPane=function(){return __component__$j.exports}(),Stateful_vue_vue_type_style_index_0_lang="",__vue2_script$i={name:"Stateful",functional:!0,props:{tag:{type:String,default:"div"},draft:{type:[Array,Boolean],default:()=>[]},doing:{type:[Array,Boolean],default:()=>[]},overdue:{type:[Array,Boolean],default:()=>[]},error:{type:[Array,Boolean],default:()=>[]},done:{type:[Array,Boolean],default:()=>[]},closed:{type:[Array,Boolean],default:()=>[]},type:{type:String,validator:t=>["doing","overdue","error","done","closed"].indexOf(t)>-1},status:{type:[String,Number]},size:{type:String}},render(t,{props:s,data:n,children:r}){const{draft:a,doing:o,overdue:l,error:c,done:u,closed:d,status:p,tag:h,size:m,type:_}=s,x={draft:Array.isArray(a)?a.includes(p):a,doing:Array.isArray(o)?o.includes(p):o,overdue:Array.isArray(l)?l.includes(p):l,error:Array.isArray(c)?c.includes(p):c,done:Array.isArray(u)?u.includes(p):u,closed:Array.isArray(d)?d.includes(p):d};return t(h,n,[t("span",{style:{width:m,height:m},class:["stateful",_,x]}),r])}};let __vue2_render$3,__vue2_staticRenderFns$3;const __cssModules$i={};var __component__$i=normalizeComponent(__vue2_script$i,__vue2_render$3,__vue2_staticRenderFns$3,!1,__vue2_injectStyles$i,null,null,null);function __vue2_injectStyles$i(t){for(let s in __cssModules$i)this[s]=__cssModules$i[s]}const Stateful=function(){return __component__$i.exports}();var render$e=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"static-pageable-table"},[n("ElTable",t._g(t._b({attrs:{size:"mini",data:t.records}},"ElTable",t.$attrs,!1),t.$listeners),[t._t("default",function(){return[t._v("请添加表格列")]})],2),n("ElPagination",{attrs:{"current-page":t.page.page,"hide-on-single-page":!0,"page-size":t.page.limit,total:t.page.total,background:"",layout:"total, prev, pager, next"},on:{"current-change":function(r){t.page.page=r}}})],1)},staticRenderFns$e=[];const StaticPageableTable_vue_vue_type_style_index_0_lang="",__vue2_script$h={name:"StaticPageableTable",props:{rows:{type:Array,default:()=>[]}},data(){return{page:{total:0,page:1,limit:25},records:[]}},computed:{observer(){return{page:this.page.page,rows:this.rows}}},watch:{rows(){this.page.page=1},observer:{immediate:!0,handler(){this.page.total=this.rows.length,this.fetchData()}}},methods:{fetchData(){this.records=lodash$1.chunk(this.rows,this.page.limit)[this.page.page-1]}}},__cssModules$h={};var __component__$h=normalizeComponent(__vue2_script$h,render$e,staticRenderFns$e,!1,__vue2_injectStyles$h,null,null,null);function __vue2_injectStyles$h(t){for(let s in __cssModules$h)this[s]=__cssModules$h[s]}const StaticPageableTable=function(){return __component__$h.exports}();var render$d=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"egd-swiper"},[n("ElButton",{staticClass:"el-carousel__arrow el-carousel__arrow--left",attrs:{disabled:t.reachedLeft,icon:"el-icon-arrow-left"},on:{click:t.clickLeft}}),n("div",{ref:"swiperBox",staticClass:"egd-swiper-box",on:{wheel:function(r){return r.stopPropagation(),r.preventDefault(),t.onMouseWheel.apply(null,arguments)}}},[n("div",{ref:"swiperContent",staticClass:"egd-swiper-content",style:t.swiperContentStyle},[t._t("default")],2)]),n("ElButton",{staticClass:"el-carousel__arrow el-carousel__arrow--right",attrs:{disabled:t.reachedRight,icon:"el-icon-arrow-right"},on:{click:t.clickRight}}),n("ResizeObserver",{on:{notify:t.resize}})],1)},staticRenderFns$d=[];const Swiper_vue_vue_type_style_index_0_lang="",__vue2_script$g={name:"Swiper",data(){return{mouseDown:!1,swiperBoxWith:0,swiperContentWidth:0,translateX:0,reachedLeft:!0,reachedRight:!1,childrenWidth:[],swiperContentStyle:{transitionDuration:"0ms",transform:"translate3d(0px, 0px, 0px)"}}},mounted(){return v(this,null,function*(){yield this.layout()})},updated(){this.computeContentWidth()},methods:{layout(){return v(this,null,function*(){yield this.$nextTick(),this.computeContentWidth(),this.resize()})},resize(){this.swiperBoxWith=this.$refs.swiperBox.offsetWidth},computeContentWidth(){let t=0;const s=[],{children:n}=this.$refs.swiperContent;Array.prototype.forEach.call(n,r=>{const a=core.getEleWidth(r);t+=a,s.push(a)}),this.childrenWidth=s,this.swiperContentWidth=t},updateDuration(t){this.swiperContentStyle.transitionDuration=t?"300ms":"0ms"},setTranslateX(t){this.swiperContentWidth<=this.swiperBoxWith||(t>0?(this.translateX=0,this.reachedLeft=!0,this.reachedRight=!1):t-this.swiperBoxWith<-this.swiperContentWidth?(this.translateX=-this.swiperContentWidth+this.swiperBoxWith,this.reachedLeft=!1,this.reachedRight=!0):(this.translateX=t,this.reachedLeft=!1,this.reachedRight=!1),this.swiperContentStyle.transform=`translate3d(${this.translateX}px, 0px, 0px)`)},clickLeft(){this.updateDuration(!0);let t=this.translateX+this.swiperBoxWith,s=t;if(t<0){s=0,t=-t;for(let n=0,r=this.childrenWidth.length;n<r&&(s+=this.childrenWidth[n],!(s>=t));n++);s=-s}this.setTranslateX(s)},clickRight(){this.updateDuration(!0);const t=Math.abs(this.translateX-this.swiperBoxWith);let s=0;for(let n=0,r=this.childrenWidth.length;n<r;n++)if(s+=this.childrenWidth[n],s>=t){s>t&&(s-=this.childrenWidth[n]);break}this.setTranslateX(-s)},onMouseWheel(t){this.updateDuration(!0),t.deltaMode===WheelEvent.DOM_DELTA_LINE?this.setTranslateX(this.translateX-t.deltaY*30):t.deltaMode===WheelEvent.DOM_DELTA_PAGE?t.deltaY>0?this.clickRight():this.clickLeft():this.setTranslateX(this.translateX-t.deltaY)},onMouseDown(t){this.mouseDown=!0,this.startX=t.clientX,this.translateXRaw=this.translateX,window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("mouseup",this.onMouseUp,{passive:!1})},onMouseUp(t){this.mouseDown=!1,this.updateDuration(!0),this.$refs.swiperContent.addEventListener("transitionend",this.transitionend),this.$refs.swiperContent.addEventListener("webkitTransitionEnd",this.transitionend);const s=t.clientX-this.startX;if(s<0){const n=this.translateX+s;this.setTranslateX(n)}if(s>0){const n=this.translateX+s;this.setTranslateX(n)}window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp)},onMouseMove(t){this.mouseDown&&requestAnimationFrame(()=>{const s=t.clientX-this.startX,n=this.translateXRaw+s;this.setTranslateX(n)})},transitionend(){this.updateDuration(!1),this.$refs.swiperContent.removeEventListener("transitionend",this.transitionend),this.$refs.swiperContent.removeEventListener("webkitTransitionEnd",this.transitionend)}}},__cssModules$g={};var __component__$g=normalizeComponent(__vue2_script$g,render$d,staticRenderFns$d,!1,__vue2_injectStyles$g,null,null,null);function __vue2_injectStyles$g(t){for(let s in __cssModules$g)this[s]=__cssModules$g[s]}const Swiper=function(){return __component__$g.exports}(),parentMixin={mounted(){this.value>=0&&(this.currentIndex=this.value),this.updateIndex()},methods:{updateIndex(){if(!this.$children||!this.$children.length)return;this.number=this.$children.length;const t=this.$children;for(let s=0;s<t.length;s++)t[s].currentIndex=s,t[s].currentSelected&&(this.index=s)}},props:{value:Number},watch:{currentIndex(t,s){s>-1&&this.$children[s]&&(this.$children[s].currentSelected=!1),t>-1&&this.$children[t]&&(this.$children[t].currentSelected=!0),this.$emit("input",t),this.$emit("on-index-change",t,s)},index(t){this.currentIndex=t},value(t){this.index=t}},data(){return{index:-1,currentIndex:this.index,number:this.$children.length}}},childMixin={props:{selected:{type:Boolean,default:!1}},mounted(){this.$parent.updateIndex()},beforeDestroy(){const t=this.$parent;this.$nextTick(()=>{t.updateIndex()})},methods:{onItemClick(t){if(this.$parent.preventDefault){this.$parent.$emit("on-before-index-change",this.currentIndex);return}(typeof this.disabled=="undefined"||this.disabled===!1)&&(this.currentSelected=!0,this.$parent.currentIndex=this.currentIndex,this.$nextTick(()=>{this.$emit("on-item-click",this.currentIndex)}))}},watch:{currentSelected(t){t&&(this.$parent.index=this.currentIndex)},selected(t){this.currentSelected=t}},data(){return{currentIndex:-1,currentSelected:this.selected}}};var render$c=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"vux-tab-wrap",class:t.barPosition==="top"?"vux-tab-bar-top":""},[n("div",{staticClass:"vux-tab-container"},[n("div",{ref:"nav",staticClass:"vux-tab",class:[{"vux-tab-no-animate":!t.animate,scrollable:t.scrollable}]},[t._t("default"),t.animate?n("div",{staticClass:"vux-tab-ink-bar",class:t.barClass,style:t.barStyle},[t.customBarWidth?n("span",{staticClass:"vux-tab-bar-inner",style:t.innerBarStyle}):t._e()]):t._e()],2)])])},staticRenderFns$c=[];const Tab_vue_vue_type_style_index_0_lang="",__vue2_script$f={name:"Tab",mixins:[parentMixin],props:{lineWidth:{type:Number,default:3},activeColor:String,barActiveColor:String,animate:{type:Boolean,default:!0},customBarWidth:[Function,String],scrollThreshold:{type:Number,default:4},barPosition:{type:String,default:"bottom",validator(t){return["bottom","top"].indexOf(t)!==-1}}},data(){return{direction:"forward",hasReady:!1}},computed:{barLeft(){if(this.hasReady){const t=this.scrollable?window.innerWidth/this.$children[this.currentIndex||0].$el.getBoundingClientRect().width:this.number;return`${this.currentIndex*(100/t)}%`}return null},barRight(){if(this.hasReady){const t=this.scrollable?window.innerWidth/this.$children[this.currentIndex||0].$el.getBoundingClientRect().width:this.number;return`${(t-this.currentIndex-1)*(100/t)}%`}return null},innerBarStyle(){return{width:typeof this.customBarWidth=="function"?this.customBarWidth(this.currentIndex):this.customBarWidth,backgroundColor:this.barActiveColor||this.activeColor}},barStyle(){const t={left:this.barLeft,right:this.barRight,display:"block",height:`${this.lineWidth}px`,transition:this.hasReady?null:"none"};return this.customBarWidth?t.backgroundColor="transparent":t.backgroundColor=this.barActiveColor||this.activeColor,t},barClass(){return{"vux-tab-ink-bar-transition-forward":this.direction==="forward","vux-tab-ink-bar-transition-backward":this.direction==="backward"}},scrollable(){return this.number>this.scrollThreshold}},watch:{currentIndex(t,s){this.direction=t>s?"forward":"backward",this.$emit("on-index-change",t,s),this.hasReady&&this.scrollToActiveTab()}},mounted(){this.$nextTick(()=>{setTimeout(()=>{this.hasReady=!0},0)})},methods:{scrollToActiveTab(){if(!this.scrollable||!this.$children||!this.$children.length)return;const t=this.$children[this.currentIndex].$el;let s=0;const n=()=>{const a=this.$refs.nav;a.scrollLeft+=(t.offsetLeft-(a.offsetWidth-t.offsetWidth)/2-a.scrollLeft)/15,++s<15&&window.requestAnimationFrame(n)};window.requestAnimationFrame(n)}}},__cssModules$f={};var __component__$f=normalizeComponent(__vue2_script$f,render$c,staticRenderFns$c,!1,__vue2_injectStyles$f,null,null,null);function __vue2_injectStyles$f(t){for(let s in __cssModules$f)this[s]=__cssModules$f[s]}const Tab=function(){return __component__$f.exports}();var render$b=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"vux-tab-item",class:[t.currentSelected?t.activeClass:"",{"vux-tab-selected":t.currentSelected,"vux-tab-disabled":t.disabled}],style:t.style,on:{click:t.onItemClick}},[t._t("default"),typeof t.badgeLabel!="undefined"&&t.badgeLabel!==""?n("span",{staticClass:"vux-tab-item-badge",style:{background:t.badgeBackground,color:t.badgeColor}},[t._v(" "+t._s(t.badgeLabel)+" ")]):t._e()],2)},staticRenderFns$b=[];const __vue2_script$e={name:"TabItem",mixins:[childMixin],props:{activeClass:{type:String},disabled:Boolean,badgeBackground:{type:String,default:"#f74c31"},badgeColor:{type:String,default:"#fff"},badgeLabel:{type:String}},computed:{style(){return{borderWidth:`${this.$parent.lineWidth}px`,borderColor:this.$parent.activeColor,color:this.currentSelected?this.$parent.activeColor:this.disabled?this.$parent.disabledColor:this.$parent.defaultColor,border:this.$parent.animate?"none":"auto"}}}},__cssModules$e={};var __component__$e=normalizeComponent(__vue2_script$e,render$b,staticRenderFns$b,!1,__vue2_injectStyles$e,null,null,null);function __vue2_injectStyles$e(t){for(let s in __cssModules$e)this[s]=__cssModules$e[s]}const TabItem=function(){return __component__$e.exports}(),tableColumnProps={props:{type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{},minWidth:{},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showTooltipWhenOverflow:Boolean,showOverflowTooltip:{type:Boolean,default:!0},fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default(){return["ascending","descending",null]},validator(t){return t.every(s=>["ascending","descending",null].indexOf(s)>-1)}}}},__vue2_script$d={name:"TableColumn",functional:!0,mixins:[tableColumnProps],render(t,{data:s,props:n,children:r}){return t("ElTableColumn",S(f({},s),{props:S(f({},n),{showOverflowTooltip:["selection","single-selection","index","expand"].includes(n.type)?!1:n.showOverflowTooltip})}),r)}};let __vue2_render$2,__vue2_staticRenderFns$2;const __cssModules$d={};var __component__$d=normalizeComponent(__vue2_script$d,__vue2_render$2,__vue2_staticRenderFns$2,!1,__vue2_injectStyles$d,null,null,null);function __vue2_injectStyles$d(t){for(let s in __cssModules$d)this[s]=__cssModules$d[s]}const TableColumn=function(){return __component__$d.exports}();var render$a=function(){var t=this,s=t.$createElement,n=t._self._c||s;return t.pageFlag&&t.optVal(t.crud.tableOption.page,!0)?n("ElCard",{staticClass:"avue-pagination",attrs:{shadow:t.crud.isCard}},[t._t("page"),n("ElPagination",{staticStyle:{"margin-top":"25px"},attrs:{small:t.crud.size==="mini",disabled:t.defaultPage.disabled,"hide-on-single-page":t.defaultPage.single,"pager-count":t.defaultPage.pagerCount,"current-page":t.defaultPage.currentPage,background:t.defaultPage.background,"page-size":t.defaultPage.pageSize,"page-sizes":t.defaultPage.pageSizes,layout:t.defaultPage.layout,total:t.defaultPage.total},on:{"update:currentPage":function(r){return t.$set(t.defaultPage,"currentPage",r)},"update:current-page":function(r){return t.$set(t.defaultPage,"currentPage",r)},"size-change":t.sizeChange,"prev-click":t.prevClick,"next-click":t.nextClick,"current-change":t.currentChange}})],2):t._e()},staticRenderFns$a=[];const __vue2_script$c={name:"TablePage",inject:["crud"],data(){return{config:config$1,defaultPage:{single:!1,total:0,pagerCount:7,currentPage:1,pageSize:10,pageSizes:[10,20,30,40,50,100],layout:"total, sizes, prev, pager, next, jumper",background:!0}}},computed:{pageFlag(){return this.defaultPage.total!=0}},watch:{"crud.page":{handler(){this.pageInit()},deep:!0},pageFlag(){this.crud.getTableHeight()},"defaultPage.total"(){this.defaultPage.total===(this.defaultPage.currentPage-1)*this.defaultPage.pageSize&&this.defaultPage.total!=0&&(this.defaultPage.currentPage=this.defaultPage.currentPage-1,this.currentChange(this.defaultPage.currentPage))}},created(){this.crud.isMobile&&(this.defaultPage.layout="total, sizes, prev, pager, next"),this.pageInit(),this.crud.$emit("on-load",this.defaultPage)},methods:{optVal,pageInit(){this.defaultPage=Object.assign(this.defaultPage,this.crud.page),this.updateValue()},updateValue(){this.crud.$emit("update:page",this.defaultPage)},nextClick(t){this.crud.$emit("next-click",t)},prevClick(t){this.crud.$emit("prev-click",t)},sizeChange(t){this.defaultPage.currentPage=1,this.defaultPage.pageSize=t,this.updateValue(),this.crud.$emit("on-load",this.defaultPage),this.crud.$emit("size-change",t)},currentChange(t){this.updateValue(),this.crud.$emit("on-load",this.defaultPage),this.crud.$emit("current-change",t)}}},__cssModules$c={};var __component__$c=normalizeComponent(__vue2_script$c,render$a,staticRenderFns$a,!1,__vue2_injectStyles$c,null,null,null);function __vue2_injectStyles$c(t){for(let s in __cssModules$c)this[s]=__cssModules$c[s]}const TablePage=function(){return __component__$c.exports}();var render$9=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"table-view"},[n("Toolbar",t._g(t._b({on:{search:t.toggleSearch,del:t.del,create:t.create,reload:t.reloadTable,imp:function(r){t.importDialogVisible=!0}},scopedSlots:t._u([{key:"default",fn:function(){return[t._t("toolbar-button")]},proxy:!0},t._l(t.buttonSlots,function(r){return{key:r,fn:function(){return[t._t(r)]},proxy:!0}})],null,!0)},"Toolbar",t.toolbarProps,!1),t.toolbarListeners)),n("div",{staticClass:"table-view-content-wrapper"},[n("div",{staticClass:"table-view-content"},[t.treeProps.show?n("div",{ref:"treeScroller",staticClass:"table-view-sidebar",on:{scroll:t.onTreeScroll}},[n("div",{staticStyle:{"font-size":"16px"}},[t._v(" 视图导航 ")]),n("EditableTree",t._g(t._b({ref:"tree",attrs:{readonly:""},scopedSlots:t._u([{key:"default",fn:function(r){var a=r.node,o=r.data;return[t._t("tree-node",function(){return[n("span",[n("i",{staticClass:"node-icon",class:a.childNodes.length>0?a.expanded?"el-icon-folder-opened":"el-icon-folder":"el-icon-tickets"}),t._t("tree-label",function(){return[t._v(t._s(a.label))]},{node:a,data:o})],2)]},{node:a,data:o})]}}],null,!0)},"EditableTree",t.treeProps,!1),t.treeListeners))],1):t._e(),n("div",{staticClass:"table-view-table"},[n("PageableTable",t._g(t._b({ref:"table",class:[{"border-top":t.borderTop,"border-bottom":t.borderBottom,"border-left":t.borderLeft||t.treeAttrs&&t.treeAttrs.show,"border-right":t.borderRight}],attrs:{border:t.border},on:{"row-dblclick":t.rowDbClick,"selection-change":t.onSelectionChange}},"PageableTable",t.tableProps,!1),t.tableListeners),[t._t("columns")],2)],1)]),t.toolbarProps.searchable?n("div",{staticClass:"slide-panel",style:{right:`${t.right}px`,width:`${t.searchPanelProps.width}px`}},[t._m(0),n("div",{staticClass:"slide-panel-content"},[n("ElForm",{ref:"form",attrs:{"label-position":"right",model:t.searchModel||t.searchPanelProps.model,size:"mini","label-width":t.labelWidth},nativeOn:{"!submit":function(r){return r.preventDefault(),t.onSearchClick.apply(null,arguments)}}},[n("FormItemConfigProvider",{attrs:{block:"","wrap-col":!1}},[n("ElRow",{attrs:{gutter:0}},[t._t("search-form",function(){return[n("p",[t._v("请添加搜索条件!")])]})],2)],1),n("ElFormItem",{attrs:{"label-width":"0"}},[n("div",{staticClass:"slide-panel-actions"},[n("ElButton",{attrs:{type:"primary","native-type":"submit",size:"mini"}},[t._v(" 开始搜索 ")]),n("ElButton",{attrs:{size:"mini"},on:{click:t.onClearClick}},[t._v(" 清除条件 ")])],1)])],1)],1)]):t._e()]),t._t("default")],2)},staticRenderFns$9=[function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"slide-panel-line"},[n("div",{staticClass:"slide-panel-line-indicator"})])}];const TableView_vue_vue_type_style_index_0_lang="",builtInButtons=["back","create","save","withdraw","edit","submit","publish","agree","disagree","reject","finish","cancel","enable","exp","imp","del","disabled","reload","slot"],__vue2_script$b={name:"TableView",bus:{reloadTableView(t,s){if(this._viewIds)if(core.isString(t)||core.isArray(t)){let n=t;core.isString(n)&&(n=n.split(",")),this._viewIds.some(r=>n.includes(r))&&(s?this.$refs.tree&&(core.trace.call(this.$parent||{},"reloadTree"),this.refreshTree()):(core.trace.call(this.$parent||{},"reloadTable"),this.reloadTable()))}else core.warning.call(this.$parent||{},"`viewId`的类型必须是字符串或数组")}},props:{viewId:{type:String},searchPanelAttrs:{type:Object,default:()=>{}},toolbarAttrs:{type:Object,default:()=>{}},toolbarListeners:{type:Object},treeAttrs:{type:Object,default:()=>{}},treeListeners:{type:Object},tableAttrs:{type:Object},searchModel:{type:Object},tableListeners:{type:Object,default:()=>{}},deleteApi:{type:Function},borderTop:Boolean,borderBottom:Boolean,borderLeft:Boolean,borderRight:Boolean,border:{type:Boolean,default:!0},labelWidth:{type:String,default:"80px"},formPath:{type:[String,Function]}},data(){var t;return{importDialogVisible:!1,right:-(((t=this.searchPanelAttrs)==null?void 0:t.width)||350),selectedRows:[]}},computed:{buttonSlots(){return builtInButtons.filter(t=>this.$scopedSlots[t])},toolbarProps(){var r,a;const t={},s=lodash.merge(this.toolbarAttrs,t);let n=(s==null?void 0:s.buttons)||this.$parent.buttons;return n=n||[],n.includes("reload")||(n=[...n,"reload"]),s.buttons=n,s.buttons=core.toStringArray(s.buttons),s.searchable=!!((a=(r=this.$scopedSlots)["search-form"])!=null&&a.call(r)),s},treeProps(){const t={treeProps:{children:"children",label:"label",isLeaf:s=>core.hasOwn(s,"hasChildren")?!s.hasChildren:core.hasOwn(s,"hasChild")?!s.hasChild:!0},show:!1,lazy:!0,readonly:!0,data:[],"expand-first-node":!1,"default-expand-all":!1};return lodash.merge(this.treeAttrs,t)},tableProps(){const t=this.tableAttrs.api||this.$parent.getPage,s={model:this.searchModel||{},height:"auto","highlight-current-row":!0,api:t};return lodash.merge(this.tableAttrs,s)},searchPanelProps(){const t={width:350,model:this.searchModel||{}};return lodash.merge(this.searchPanelAttrs,t)}},created(){this._viewIds=[],this.viewId&&this._viewIds.push(this.viewId),this._viewIds.includes(this.$parent.$options.name)||this._viewIds.push(this.$parent.$options.name)},activated(){return v(this,null,function*(){this.$refs.treeScroller&&(this.treeScrollTop&&(this.$refs.treeScroller.scrollTop=this.treeScrollTop),this.treeScrollLeft&&(this.$refs.treeScroller.scrollLeft=this.treeScrollLeft))})},methods:{onTreeScroll(){this.treeScrollTop=this.$refs.treeScroller.scrollTop,this.treeScrollLeft=this.$refs.treeScroller.scrollLeft},toggleSearch(){this.right=this.right===0?-this.searchPanelProps.width:0},onSearchClick(){return v(this,null,function*(){this.$refs.table.setModel(this.searchModel||this.searchPanelProps.model),yield this.refreshTable()})},onClearClick(){return v(this,null,function*(){this.$emit("reset"),this.$refs.form.resetFields(),this.$refs.table.setModel(this.searchModel||this.searchPanelProps.model),yield this.refreshTable()})},openFrom(t){this.$router.push(fillPath(this.formPath,t))},rowDbClick(t){var s;!((s=this.tableListeners)!=null&&s["row-dblclick"])&&this.formPath&&this.openFrom(t)},onSelectionChange(t){this.selectedRows=t},create(){var t;!((t=this.toolbarListeners)!=null&&t.create)&&this.formPath&&this.openFrom()},del(){return v(this,null,function*(){var s;const t=this.deleteApi||this.$parent.del;if(!((s=this.toolbarListeners)!=null&&s.del)&&core.isFunction(t)){if(!this.selectedRows.length){this.$message.warning("请选择要删除的记录!");return}yield this.$confirm(`您确定要删除选中的[<span class="break-word" style="color: orange">${this.selectedRows.length}</span>]行记录吗?`,"系统提示",{type:"warning",modal:!0,dangerouslyUseHTMLString:!0,closeOnClickModal:!1,beforeClose:(n,r,a)=>v(this,null,function*(){if(n==="confirm")try{r.confirmButtonLoading=!0,r.confirmButtonText="删除...",yield t.call(this,this.selectedRows.map(o=>o.id).join(",")),this.$message.success("删除成功"),yield this.reloadTable(),yield this.refreshTree()}catch(o){}a()})}).catch(n=>n)}})},reloadTable(){var t;(t=this.$refs.table)==null||t.reload()},refreshTable(){return v(this,null,function*(){var t;yield(t=this.$refs.table)==null?void 0:t.getPage()})},refreshTree(){this.$refs.tree.reloadTree()},getSearchModel(){return this.searchPanelProps.model}}},__cssModules$b={};var __component__$b=normalizeComponent(__vue2_script$b,render$9,staticRenderFns$9,!1,__vue2_injectStyles$b,null,null,null);function __vue2_injectStyles$b(t){for(let s in __cssModules$b)this[s]=__cssModules$b[s]}const TableView=function(){return __component__$b.exports}();var render$8=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"tag-render"},[t.tags&&t.tags.length&&t.tags[0]?t._l(t.internalTags,function(r,a){return n("ElTag",{key:a,attrs:{closable:t.enable,"disable-transitions":""},on:{close:function(o){return t.$emit("close",t.tags[a],a)}}},[t._v(" "+t._s(t.getTagName(r))+" ")])}):t.enable?t._e():[n("span",{staticStyle:{color:"#b5b5b5"}},[t._v("无")])],t.enable?n("ElButton",{staticClass:"el-tag el-tag--medium el-tag--light button-new-tag",attrs:{size:"small"},on:{click:function(r){return t.$emit("add")}}},[t._v(" + 添加 ")]):t._e(),t.count?n("span",{staticClass:"tags-count"},[t._v(t._s(t.tags.length&&t.tags[0]?t.tags.length:""))]):t._e()],2)},staticRenderFns$8=[];const TagRender_vue_vue_type_style_index_0_lang="",__vue2_script$a={name:"TagRender",inject:["elFormItem"],props:{enable:{type:Boolean,default:!0},count:{type:Boolean,default:!0},tags:{type:Array,default:()=>[]},transfer:{type:Function,default:null}},computed:{internalTags(){return this.transfer?this.tags.map(t=>{const s=f({},t);return this.transfer(s)}):this.tags}},watch:{tags(t){this.elFormItem&&t&&t.length>0&&this.elFormItem.clearValidate()}},methods:{getTagName(t){return core.hasOwn(t,"name")?t.name:core.hasOwn(t,"label")?t.label:t}}},__cssModules$a={};var __component__$a=normalizeComponent(__vue2_script$a,render$8,staticRenderFns$8,!1,__vue2_injectStyles$a,null,null,null);function __vue2_injectStyles$a(t){for(let s in __cssModules$a)this[s]=__cssModules$a[s]}const TagRender=function(){return __component__$a.exports}();var render$7=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-text-ellipsis",style:{width:t.setPx(t.width,"100%")}},[t._t("before"),n("ElTooltip",{attrs:{content:t.text,disabled:!(t.useTooltip&&t.isHide),placement:t.placement}},[n("span",[n("span",{key:t.keyIndex,ref:"text",staticClass:"avue-text-ellipsis__text"},[t._v(t._s(t.text))])])]),n("span",{ref:"more",staticClass:"avue-text-ellipsis__more"},[t._t("more")],2),t._t("after")],2)},staticRenderFns$7=[];const TextEllipsis_vue_vue_type_style_index_0_lang="",__vue2_script$9={name:"TextEllipsis",props:{text:String,height:Number,width:Number,isLimitHeight:{type:Boolean,default:!0},useTooltip:{type:Boolean,default:!1},placement:String},data(){return{keyIndex:0,oversize:!1,isHide:!1}},watch:{isLimitHeight(){this.init()},text(){this.init()},height(){this.init()}},mounted(){this.init()},methods:{setPx,init(){this.oversize=!1,this.keyIndex+=1;const t=this.$refs.more;t.style.display="none",this.isLimitHeight&&this.limitShow()},limitShow(){this.$nextTick(()=>{const t=this.$refs.text,s=this.$el,n=this.$refs.more;let r=1e3;if(t)if(s.offsetHeight>this.height){n.style.display="inline-block";let a=this.text;for(;s.offsetHeight>this.height&&r>0;)s.offsetHeight>this.height*3?t.innerText=a=a.substring(0,Math.floor(a.length/2)):t.innerText=a=a.substring(0,a.length-1),r--;this.$emit("hide"),this.isHide=!0}else this.$emit("show"),this.isHide=!1})}}},__cssModules$9={};var __component__$9=normalizeComponent(__vue2_script$9,render$7,staticRenderFns$7,!1,__vue2_injectStyles$9,null,null,null);function __vue2_injectStyles$9(t){for(let s in __cssModules$9)this[s]=__cssModules$9[s]}const TextEllipsis=function(){return __component__$9.exports}();var render$6=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticStyle:{"margin-bottom":"10px"},style:{height:t.height}},[t.lazy?[t.focus&&!t.inputDisabled?n("TinymceWrapper",t._b({ref:"editor",attrs:{"query-params":t.queryParams,disabled:t.inputDisabled,"show-types":t.showTypes,value:t.value},on:{"on-blur":t.onEditorBlur,"dialog-show":function(r){t.hideOnBlur=!1},"dialog-hide":function(r){t.hideOnBlur=!0},input:function(r){return t.$emit("input",r)}}},"TinymceWrapper",t.$attrs,!1)):n("div",{staticClass:"editor-shadow",class:[{"show-placeholder":t.isEmpty}],style:{cursor:t.inputDisabled?"not-allowed":"text"},attrs:{placeholder:t.inputDisabled?"":t.placeholder},domProps:{innerHTML:t._s(t.value)},on:{click:t.onEditorShadowClick}})]:[t.inputDisabled?n("div",{staticClass:"editor-shadow",class:[{"show-placeholder":t.isEmpty}],style:{cursor:t.inputDisabled?"not-allowed":"text"},attrs:{placeholder:t.inputDisabled?"":t.placeholder},domProps:{innerHTML:t._s(t.value)}}):n("TinymceWrapper",t._b({ref:"editor",attrs:{"query-params":t.queryParams,disabled:t.inputDisabled,value:t.value},on:{"on-blur":t.onEditorBlur,"dialog-show":function(r){t.hideOnBlur=!1},"dialog-hide":function(r){t.hideOnBlur=!0},input:function(r){return t.$emit("input",r)}}},"TinymceWrapper",t.$attrs,!1))]],2)},staticRenderFns$6=[];const TinymceEditor_vue_vue_type_style_index_0_lang="",__vue2_script$8={name:"TinymceEditor",inject:{elForm:{default:""},elFormItem:{default:""}},props:{disabled:Boolean,lazy:{type:Boolean,default:!0},showTypes:{type:Boolean,default:!0},height:{type:String,default:"300px"},value:String,placeholder:{type:String,default:"请输入..."},queryParams:Object},data(){return{hideOnBlur:!0,focus:!1}},computed:{inputDisabled(){return this.disabled||(this.elForm||{}).disabled},isEmpty(){return!this.value}},watch:{hideOnBlur(t){t&&this.onEditorShadowClick()}},methods:{onEditorBlur(){this.inputDisabled||this.hideOnBlur&&(this.focus=!1)},getEditor(){return this.$refs.editor.$refs.editor.editor},onEditorShadowClick(){return v(this,null,function*(){if(this.inputDisabled)return;this.focus=!0,yield this.$nextTick();const t=this.getEditor();t.focus();const s=t.getBody();t.selection.setCursorLocation(s,s.childNodes.length)})},insertContent(t){this.getEditor().insertContent(t)}}},__cssModules$8={};var __component__$8=normalizeComponent(__vue2_script$8,render$6,staticRenderFns$6,!1,__vue2_injectStyles$8,null,null,null);function __vue2_injectStyles$8(t){for(let s in __cssModules$8)this[s]=__cssModules$8[s]}const TinymceEditor=function(){return __component__$8.exports}(),zhCN={Redo:"重做",Undo:"撤销",Cut:"剪切",Copy:"复制",Paste:"粘贴","Select all":"全选","New document":"新文件",Ok:"确定",Cancel:"取消","Visual aids":"网格线","Font Family":"字体",Bold:"粗体",Italic:"斜体",Underline:"下划线",Strikethrough:"删除线",Superscript:"上标",Subscript:"下标","Clear formatting":"清除格式","Align left":"左边对齐","Align center":"中间对齐","Align right":"右边对齐",Justify:"两端对齐","Bullet list":"项目符号","Numbered list":"编号列表","Decrease indent":"减少缩进","Increase indent":"增加缩进",Close:"关闭",Formats:"格式","Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.":"你的浏览器不支持打开剪贴板,请使用Ctrl+X/C/V等快捷键。",Headers:"标题","Header 1":"标题1","Header 2":"标题2","Header 3":"标题3","Header 4":"标题4","Header 5":"标题5","Header 6":"标题6",Headings:"标题","Heading 1":"标题1","Heading 2":"标题2","Heading 3":"标题3","Heading 4":"标题4","Heading 5":"标题5","Heading 6":"标题6",Preformatted:"预先格式化的",Div:"Div",Pre:"Pre",Code:"代码",Paragraph:"段落",Blockquote:"引文区块",Inline:"文本",Blocks:"基块","Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.":"当前为纯文本粘贴模式,再次点击可以回到普通粘贴模式。",Fonts:"字体","Font Sizes":"字号",Class:"类型","Browse for an image":"浏览图像",OR:"或","Drop an image here":"拖放一张图像至此",Upload:"上传",Block:"块",Align:"对齐",Default:"默认",Circle:"空心圆",Disc:"实心圆",Square:"方块","Lower Alpha":"小写英文字母","Lower Greek":"小写希腊字母","Lower Roman":"小写罗马字母","Upper Alpha":"大写英文字母","Upper Roman":"大写罗马字母","Anchor...":"锚点...",Name:"名称",Id:"标识符","Id should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores.":"标识符应该以字母开头,后跟字母、数字、破折号、点、冒号或下划线。","You have unsaved changes are you sure you want to navigate away?":"你还有文档尚未保存,确定要离开?","Restore last draft":"恢复上次的草稿","Special characters...":"特殊字符...","Source code":"源代码","Insert/Edit code sample":"插入/编辑代码示例",Language:"语言","Code sample...":"示例代码...","Color Picker":"选色器",R:"R",G:"G",B:"B","Left to right":"从左到右","Right to left":"从右到左","Emoticons...":"表情符号...","Metadata and Document Properties":"元数据和文档属性",Title:"标题",Keywords:"关键词",Description:"描述",Robots:"机器人",Author:"作者",Encoding:"编码",Fullscreen:"全屏",Action:"操作",Shortcut:"快捷键",Help:"帮助",Address:"地址","Focus to menubar":"移动焦点到菜单栏","Focus to toolbar":"移动焦点到工具栏","Focus to element path":"移动焦点到元素路径","Focus to contextual toolbar":"移动焦点到上下文菜单","Insert link (if link plugin activated)":"插入链接 (如果链接插件已激活)","Save (if save plugin activated)":"保存(如果保存插件已激活)","Find (if searchreplace plugin activated)":"查找(如果查找替换插件已激活)","Plugins installed ({0}):":"已安装插件 ({0}):","Premium plugins:":"优秀插件:","Learn more...":"了解更多...","You are using {0}":"你正在使用 {0}",Plugins:"插件","Handy Shortcuts":"快捷键","Horizontal line":"水平分割线","Insert/edit image":"插入/编辑图片","Image description":"图片描述",Source:"地址",Dimensions:"大小","Constrain proportions":"保持纵横比",General:"普通",Advanced:"高级",Style:"样式","Vertical space":"垂直边距","Horizontal space":"水平边距",Border:"边框","Insert image":"插入图片","Image...":"图片...","Image list":"图片列表","Rotate counterclockwise":"逆时针旋转","Rotate clockwise":"顺时针旋转","Flip vertically":"垂直翻转","Flip horizontally":"水平翻转","Edit image":"编辑图片","Image options":"图片选项","Zoom in":"放大","Zoom out":"缩小",Crop:"裁剪",Resize:"调整大小",Orientation:"方向",Brightness:"亮度",Sharpen:"锐化",Contrast:"对比度","Color levels":"颜色层次",Gamma:"伽马值",Invert:"反转",Apply:"应用",Back:"后退","Insert date/time":"插入日期/时间","Date/time":"日期/时间","Insert/Edit Link":"插入/编辑链接","Insert/edit link":"插入/编辑链接","Text to display":"显示文字",Url:"地址","Open link in...":"链接打开位置...","Current window":"当前窗口",None:"无","New window":"在新窗口打开","Remove link":"删除链接",Anchors:"锚点","Link...":"链接...","Paste or type a link":"粘贴或输入链接","The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?":"你所填写的URL地址为邮件地址,需要加上mailto:前缀吗?","The URL you entered seems to be an external link. Do you want to add the required http:// prefix?":"你所填写的URL地址属于外部链接,需要加上http://:前缀吗?","Link list":"链接列表","Insert video":"插入视频","Insert/edit video":"插入/编辑视频","Insert/edit media":"插入/编辑媒体","Alternative source":"镜像","Alternative source URL":"替代来源网址","Media poster (Image URL)":"封面(图片地址)","Paste your embed code below:":"将内嵌代码粘贴在下面:",Embed:"内嵌","Media...":"多媒体...","Nonbreaking space":"不间断空格","Page break":"分页符","Paste as text":"粘贴为文本",Preview:"预览","Print...":"打印...",Save:"保存",Find:"查找","Replace with":"替换为",Replace:"替换","Replace all":"全部替换",Previous:"上一个",Next:"下一个","Find and replace...":"查找并替换...","Could not find the specified string.":"未找到搜索内容.","Match case":"区分大小写","Find whole words only":"全字匹配","Spell check":"拼写检查",Ignore:"忽略","Ignore all":"全部忽略",Finish:"完成","Add to Dictionary":"添加到字典","Insert table":"插入表格","Table properties":"表格属性","Delete table":"删除表格",Cell:"单元格",Row:"行",Column:"列","Cell properties":"单元格属性","Merge cells":"合并单元格","Split cell":"拆分单元格","Insert row before":"在上方插入","Insert row after":"在下方插入","Delete row":"删除行","Row properties":"行属性","Cut row":"剪切行","Copy row":"复制行","Paste row before":"粘贴到上方","Paste row after":"粘贴到下方","Insert column before":"在左侧插入","Insert column after":"在右侧插入","Delete column":"删除列",Cols:"列",Rows:"行",Width:"宽",Height:"高","Cell spacing":"单元格外间距","Cell padding":"单元格内边距","Show caption":"显示标题",Left:"左对齐",Center:"居中",Right:"右对齐","Cell type":"单元格类型",Scope:"范围",Alignment:"对齐方式","H Align":"水平对齐","V Align":"垂直对齐",Top:"顶部对齐",Middle:"垂直居中",Bottom:"底部对齐","Header cell":"表头单元格","Row group":"行组","Column group":"列组","Row type":"行类型",Header:"表头",Body:"表体",Footer:"表尾","Border color":"边框颜色","Insert template...":"插入模板...",Templates:"模板",Template:"模板","Text color":"文字颜色","Background color":"背景色","Custom...":"自定义...","Custom color":"自定义颜色","No color":"无","Remove color":"移除颜色","Table of Contents":"内容列表","Show blocks":"显示区块边框","Show invisible characters":"显示不可见字符","Word count":"字数","Words: {0}":"字数:{0}","{0} words":"{0} 字",File:"文件",Edit:"编辑",Insert:"插入",View:"视图",Format:"格式",Table:"表格",Tools:"工具","Powered by {0}":"由{0}驱动","Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help":"在编辑区按ALT-F9打开菜单,按ALT-F10打开工具栏,按ALT-0查看帮助","Image title":"图片标题","Border width":"边框宽度","Border style":"边框样式",Error:"错误",Warn:"警告",Valid:"有效","To open the popup, press Shift+Enter":"按Shitf+Enter键打开对话框","Rich Text Area. Press ALT-0 for help.":"编辑区。按Alt+0键打开帮助。","System Font":"系统字体","Failed to upload image: {0}":"图片上传失败: {0}","Failed to load plugin: {0} from url {1}":"插件加载失败: {0} 来自链接 {1}","Failed to load plugin url: {0}":"插件加载失败 链接: {0}","Failed to initialize plugin: {0}":"插件初始化失败: {0}",example:"示例",Search:"搜索",All:"全部",Currency:"货币",Text:"文字",Quotations:"引用",Mathematical:"数学","Extended Latin":"拉丁语扩充",Symbols:"符号",Arrows:"箭头","User Defined":"自定义","dollar sign":"美元符号","currency sign":"货币符号","euro-currency sign":"欧元符号","colon sign":"冒号","cruzeiro sign":"克鲁赛罗币符号","french franc sign":"法郎符号","lira sign":"里拉符号","mill sign":"密尔符号","naira sign":"奈拉符号","peseta sign":"比塞塔符号","rupee sign":"卢比符号","won sign":"韩元符号","new sheqel sign":"新谢克尔符号","dong sign":"越南盾符号","kip sign":"老挝基普符号","tugrik sign":"图格里克符号","drachma sign":"德拉克马符号","german penny symbol":"德国便士符号","peso sign":"比索符号","guarani sign":"瓜拉尼符号","austral sign":"澳元符号","hryvnia sign":"格里夫尼亚符号","cedi sign":"塞地符号","livre tournois sign":"里弗弗尔符号","spesmilo sign":"spesmilo符号","tenge sign":"坚戈符号","indian rupee sign":"印度卢比","turkish lira sign":"土耳其里拉","nordic mark sign":"北欧马克","manat sign":"马纳特符号","ruble sign":"卢布符号","yen character":"日元字样","yuan character":"人民币元字样","yuan character, in hong kong and taiwan":"元字样(港台地区)","yen/yuan character variant one":"元字样(大写)","Loading emoticons...":"加载表情符号...","Could not load emoticons":"不能加载表情符号",People:"人类","Animals and Nature":"动物和自然","Food and Drink":"食物和饮品",Activity:"活动","Travel and Places":"旅游和地点",Objects:"物件",Flags:"旗帜",Characters:"字符","Characters (no spaces)":"字符(无空格)","Error: Form submit field collision.":"错误: 表单提交字段冲突。","Error: No form element found.":"错误: 没有表单控件。",Update:"更新","Color swatch":"颜色样本",Turquoise:"青绿色",Green:"绿色",Blue:"蓝色",Purple:"紫色","Navy Blue":"海军蓝","Dark Turquoise":"深蓝绿色","Dark Green":"深绿色","Medium Blue":"中蓝色","Medium Purple":"中紫色","Midnight Blue":"深蓝色",Yellow:"黄色",Orange:"橙色",Red:"红色","Light Gray":"浅灰色",Gray:"灰色","Dark Yellow":"暗黄色","Dark Orange":"深橙色","Dark Red":"深红色","Medium Gray":"中灰色","Dark Gray":"深灰色",Black:"黑色",White:"白色","Switch to or from fullscreen mode":"切换全屏模式","Open help dialog":"打开帮助对话框",history:"历史",styles:"样式",formatting:"格式化",alignment:"对齐",indentation:"缩进","permanent pen":"记号笔",comments:"备注",Anchor:"锚点","Special character":"特殊符号","Code sample":"代码示例",Color:"颜色",Emoticons:"表情","Document properties":"文档属性",Image:"图片","Insert link":"插入链接",Target:"打开方式",Link:"链接",Poster:"封面",Media:"媒体",Print:"打印",Prev:"上一个","Find and replace":"查找和替换","Whole words":"全字匹配",Spellcheck:"拼写检查",Caption:"标题","Insert template":"插入模板"},fontFormats='方正小标宋="方正小标宋";仿宋GB2312="仿宋GB2312";微软雅黑="微软雅黑";宋体="宋体";黑体="黑体";仿宋="仿宋";楷体="楷体";隶书="隶书";幼圆="幼圆";Arial="Arial";',contentStyle=`
|
|
86
|
+
* {
|
|
87
|
+
margin: 0;
|
|
88
|
+
padding: 0
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
body {
|
|
92
|
+
font-family: 微软雅黑, sans-serif;
|
|
93
|
+
padding: 10px;
|
|
94
|
+
font-size: 18px
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.template-tag {
|
|
98
|
+
font-style: italic;
|
|
99
|
+
color: #1e90ff;
|
|
100
|
+
margin: 0 10px;
|
|
101
|
+
font-weight: bold;
|
|
102
|
+
cursor: help !important;
|
|
103
|
+
font-family: 黑体, serif;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.mce-content-body img {
|
|
107
|
+
max-width: 100%;
|
|
108
|
+
}
|
|
109
|
+
`;function detectVerticalSquash(t){let s;const n=t.naturalHeight,r=document.createElement("canvas");r.width=1,r.height=n;const a=r.getContext("2d");a.drawImage(t,0,0);try{s=a.getImageData(0,0,1,n).data}catch(d){return console.log("Cannot check verticalSquash: CORS?"),1}let o=0,l=n,c=n;for(;c>o;)s[(c-1)*4+3]===0?l=c:o=c,c=l+o>>1;const u=c/n;return u===0?1:u}function dataURItoBuffer(t){const s=atob(t.split(",")[1]),n=new ArrayBuffer(s.length),r=new Uint8Array(n);for(let a=0;a<s.length;a++)r[a]=s.charCodeAt(a);return n}function dataURItoBlob(t){const s=t.split(",")[0].split(":")[1].split(";")[0],n=dataURItoBuffer(t);return new Blob([n],{type:s})}function getOrientation(t){const s=new DataView(t);if(s.getUint16(0,!1)!==65496)return-2;const n=s.byteLength;let r=2;for(;r<n;){const a=s.getUint16(r,!1);if(r+=2,a===65505){if(s.getUint32(r+=2,!1)!==1165519206)return-1;const o=s.getUint16(r+=6,!1)===18761;r+=s.getUint32(r+4,o);const l=s.getUint16(r,o);r+=2;for(let c=0;c<l;c++)if(s.getUint16(r+c*12,o)===274)return s.getUint16(r+c*12+8,o)}else{if((a&65280)!==65280)break;r+=s.getUint16(r,!1)}}return-1}function orientationHelper(t,s,n){const r=t.width,a=t.height;switch(n>4&&(t.width=a,t.height=r),n){case 2:s.translate(r,0),s.scale(-1,1);break;case 3:s.translate(r,a),s.rotate(Math.PI);break;case 4:s.translate(0,a),s.scale(1,-1);break;case 5:s.rotate(.5*Math.PI),s.scale(1,-1);break;case 6:s.rotate(.5*Math.PI),s.translate(0,-a);break;case 7:s.rotate(.5*Math.PI),s.translate(r,-a),s.scale(-1,1);break;case 8:s.rotate(-.5*Math.PI),s.translate(-r,0);break}}function getMimeType(t){return t.split(",")[0].split(":")[1].split(";")[0]}function getFormat(t){return`.${getMimeType(t).replace("image/","")}`}function compressImageBase64(t,s){return v(this,null,function*(){return new Promise((n,r)=>{const a=new Image;a.onload=function(){const o=detectVerticalSquash(a),l=getOrientation(dataURItoBuffer(a.src)),c=document.createElement("canvas"),u=c.getContext("2d"),d=s.compress.width,p=s.compress.height;let h=a.width,m=a.height;h<m&&m>p?(h=parseInt(`${p*a.width/a.height}`),m=p):h>=m&&h>d&&(m=parseInt(`${d*a.height/a.width}`),h=d),c.width=h,c.height=m,l>0&&orientationHelper(c,u,l),u.drawImage(a,0,0,h,m/o);const _=c.toDataURL("image/jpeg",s.compress.quality);/;base64,null/.test(_)||/;base64,$/.test(_)?(s.onError(new Error(`Compress fail, dataURL is ${_}.`)),r(Error("图片压缩失败"))):n(base64toFile(_,`${core.getFilePrefix(s.fileName)}.jpg`))},a.src=t})})}function compressImageFile(t,s){return v(this,null,function*(){const n=yield fileToBase64(t);return compressImageBase64(n,f({fileName:t.name},s))})}function fileToBase64(t){return new Promise((s,n)=>{const r=new FileReader;r.onload=function(a){s(a.target.result)},r.onerror=function(a){n(a)},r.readAsDataURL(t)})}function base64toFile(t="",s){const n=dataURItoBlob(t);return n.name=s||`image${getFormat(t)}`,n}var render$5=function(){var t=this,s=t.$createElement,n=t._self._c||s;return t.show?n("div",{class:["tinymce-editor",{"none-resize":!t.resize}]},[n("Editor",{ref:"editor",attrs:{disabled:t.inputDisabled,"model-events":"change input undo redo SetContent",init:t.init},model:{value:t.val,callback:function(r){t.val=r},expression:"val"}}),n("ElUpload",{ref:"uploader",staticStyle:{display:"none"},attrs:{action:t.action,"http-request":t.uploadImageFile,"show-file-list":!1,"auto-upload":"",accept:".jpg,.jpeg,.png,.gif,.bmp"}},[n("span")])],1):t._e()},staticRenderFns$5=[];const TinymceWrapper_vue_vue_type_style_index_0_lang="";tinymce.addI18n("zh_CN",zhCN);const __vue2_script$7={name:"TinymceWrapper",components:{Editor},inject:{elForm:{default:""},elFormItem:{default:""}},props:{value:{type:String,default:""},resize:Boolean,api:Function,getHeader:Function,getUploadUrl:Function,disabled:{type:Boolean,default:!1},showTypes:{type:Boolean,default:!0},plugins:{type:[String,Array],default:""},toolbar:{type:[String,Array],default:""},buttons:{type:[Array]},dialogTitle:{type:String,default:"编辑"},queryParams:Object},data(){const s=["fullscreen","image","wordcount","paste"].join(","),n=this.buttons||[];let r=this.toolbar||" | ";return r=`undo redo | bold italic underline | alignleft aligncenter alignright alignjustify | fontselect fontsizeselect | removeformat | | ${r}`,n&&(r+=` ${n.map(o=>o.name).join(" ")}`),r+=" | fullscreen",{val:"",show:!0,init:{setup:o=>{o.settings.dialog_title=this.dialogTitle,o.settings.show_types=this.showTypes,o.on("paste",c=>{const u=c.clipboardData||c.dataTransfer;return!(this.processItems(c,u.items)||this.processItems(c,u.files))}),o.on("PreInit",c=>{c.target.dom.doc.body.style.fontFamily="微软雅黑"}),o.on("Blur",c=>{this.$emit("on-blur",c)}),o.on("DialogShow",c=>{this.$emit("dialog-show",c)}),o.on("DialogHide",c=>{this.$emit("dialog-hide",c)}),n.forEach(c=>{c.icon=` ${c.icon}`;const{onclick:u}=c;o.addButton(c.name,S(f({},c),{onclick:()=>u(o)}))});const l={icon:" el-icon-picture",name:"uploadImage",title:"上传图片",onclick:this.upload};o.addButton(l.name,S(f({},l),{onclick:()=>l.onclick(o)}))},toolbar:r,placeholder:"在这里输入文字",content_style:contentStyle,fontname:"宋体",fontFamily:"宋体",branding:!1,query_params:this.queryParams,skin:!1,dialog_title:"",menubar:!1,height:"100%",elementpath:!1,plugins:`${s},${this.plugins}`,font_formats:fontFormats,fontsize_formats:"8pt 10pt 12pt 14pt 18pt 24pt 36pt"}}},computed:{inputDisabled(){return this.disabled||(this.elForm||{}).disabled},fileLabel(){return this.prop?this.prop:this.elFormItem?this.elFormItem.prop:""},action(){var t;return(t=this.getUploadUrl)==null?void 0:t.call(this)},headers(){var t;return(t=this.getHeader)==null?void 0:t.call(this)}},watch:{value:{immediate:!0,handler(t){this.val=t}},dialogTitle(t){this.getEditor()&&(this.getEditor().settings.dialog_title=t)},val(t){this.elForm&&this.elFormItem&&this.elForm.clearValidate([this.elFormItem.prop]),this.$emit("input",t)}},deactivated(){this.show=!1},activated(){this.show=!0},methods:{uploadImageFile(a){return v(this,arguments,function*({file:t,onError:s,onProgress:n,onSuccess:r}){var o,l;try{this.loading=this.$loading({text:"压缩中...",background:"rgba(0,0,0,0.2)"});const c=yield compressImageFile(t,{compress:{width:1920,height:1600,quality:.8}});this.loading.text="上传中...";const u=yield this.api((o=this.getUploadUrl)==null?void 0:o.call(this),c,{data:{unid:core.guid(),type:this.fileLabel},onprogress(d){n==null||n(d)}});this.insertImage(u.data.filePath),r==null||r(u,t),this.$refs.uploader.clearFiles()}catch(c){s==null||s(c)}(l=this.loading)==null||l.close()})},processItems(t,s){let n=!1;for(let r=0;r<s.length;r++){const a=s[r];if(/^image\/(jpeg|png|gif|bmp)$/.test(a.type)){const o=a.getAsFile?a.getAsFile():a;this.uploadImageFile({file:o}),t.preventDefault(),n=!0}}return n},getEditor(){return this.$refs.editor.editor},focus(){this.getEditor().focus()},upload(){this.$refs.uploader.$refs["upload-inner"].handleClick()},insertImage(t){this.getEditor().insertContent(`<img alt="图片" src="${this.replaceImageUrl(t)}"/>`)},replaceImageUrl(t){return t.replace("/var/local/data/merge","")}}},__cssModules$7={};var __component__$7=normalizeComponent(__vue2_script$7,render$5,staticRenderFns$5,!1,__vue2_injectStyles$7,null,null,null);function __vue2_injectStyles$7(t){for(let s in __cssModules$7)this[s]=__cssModules$7[s]}const TinymceWrapper=function(){return __component__$7.exports}(),builtinButtons={back:{label:"返回",type:"primary",icon:"el-icon-d-arrow-left"},cancel:{label:"取消",icon:"fa fa-undo"},create:{label:"新增",type:"primary",icon:"el-icon-plus"},save:{label:"保存",type:"primary",icon:"fa fa-save"},withdraw:{label:"撤回",type:"primary",icon:"fa fa-undo"},edit:{label:"编辑",type:"primary",icon:"el-icon-edit-outline"},submit:{label:"提交审批",type:"primary",icon:"fa fa-check"},publish:{label:"发布",type:"primary",icon:"fa fa-send"},agree:{label:"同意",type:"primary",icon:"fa fa-check-square-o"},disagree:{label:"不同意",type:"primary",icon:"fa fa-mail-reply"},reject:{label:"退回",type:"primary",icon:"fa fa-reply"},finish:{label:"完成",type:"primary",icon:"fa fa-check-square"},enable:{label:"启用",type:"primary",icon:"el-icon-circle-check"},exp:{label:"导出",type:"primary",icon:"el-icon-download"},imp:{label:"导入",type:"primary",icon:"el-icon-upload"},del:{label:"删除",type:"primary",icon:"el-icon-delete"},disabled:{label:"禁用",type:"primary",icon:"el-icon-remove-outline"},reload:{label:"刷新",type:"primary",icon:"el-icon-refresh"},search:{label:"搜索",icon:"el-icon-search",separateLine:!1}},__vue2_script$6={name:"Toolbar",provide(){return{toolbar:this}},props:{searchable:Boolean,buttons:{type:Array,default:()=>["back"]},back:{type:Function},cancel:{type:Function},emitter:{type:String,default:"self"},footer:Boolean,label:{type:Object,default:()=>({})}},methods:{goBack(){const t=this.$route.path;this.$bus("closeTab",t,this)},fire(t,s){this.emitter==="parent"?this.$parent&&this.$parent.$emit(t,s,this):this.$emit(t,s,this)},createButton(t,{label:s,icon:n,type:r,separateLine:a=!0}){var u;const o=this.$createElement;let l;const c=((u=this.label)==null?void 0:u[t])||s;return["back","cancel"].includes(t)?l=this.goBack:l=d=>(this.$listeners[t]||core.NOOP)(d),o("ToolbarButton",{attrs:{"separate-line":a,icon:n,label:c,footer:this.footer,type:r},on:{click:l}})},getLeftButtons(){var n,r;const{createButton:t}=this;return((r=(n=this.$scopedSlots)["toolbar-left"])==null?void 0:r.call(n))||this.buttons.map(a=>{var l,c,u,d,p;const o=builtinButtons[a];return o?((c=(l=this.$scopedSlots)[a])==null?void 0:c.call(l))||t(a,o):a==="slot"&&(p=(d=(u=this.$scopedSlots).default)==null?void 0:d.call(u,{buttons:this.buttons,footer:this.footer}))!=null?p:null})},getRightButtons(){var s,n;return((n=(s=this.$scopedSlots)["toolbar-right"])==null?void 0:n.call(s))||this.getSearchButton()},getSearchButton(){const{createButton:t}=this;return this.searchable?t("search",builtinButtons.search):null}},render(){const t=arguments[0];return this.footer?t("div",{class:"footer-bar"},[this.getLeftButtons()]):t("div",{class:"toolbar"},[t("div",{class:"toolbar-left"},[this.getLeftButtons()]),t("div",{class:"toolbar-right"},[this.getRightButtons()])])}},Toolbar_vue_vue_type_style_index_0_lang="";let __vue2_render$1,__vue2_staticRenderFns$1;const __cssModules$6={};var __component__$6=normalizeComponent(__vue2_script$6,__vue2_render$1,__vue2_staticRenderFns$1,!1,__vue2_injectStyles$6,null,null,null);function __vue2_injectStyles$6(t){for(let s in __cssModules$6)this[s]=__cssModules$6[s]}const Toolbar=function(){return __component__$6.exports}();var render$4=function(){var t=this,s=t.$createElement,n=t._self._c||s;return t.footer||t.toolbar.footer?n("ElButton",{attrs:{disabled:t.disabled||t.loading,type:t.type},on:{click:t.onClick}},[t._v(" "+t._s(t.label)+" ")]):n("span",{staticClass:"form-toolbar-button"},[n("ElButton",{attrs:{icon:t.icon,type:"text",disabled:t.disabled||t.loading,size:"mini"},on:{click:t.onClick}},[t._v(" "+t._s(t.label)+" ")]),t.separateLine?n("span",{staticClass:"separate-line"}):t._e()],1)},staticRenderFns$4=[];const ToolbarButton_vue_vue_type_style_index_0_lang="",__vue2_script$5={name:"ToolbarButton",inject:{toolbar:{default:""}},props:{label:{type:String},icon:{type:String},type:{type:String},disabled:Boolean,separateLine:{type:Boolean,default:!0},footer:Boolean},data(){return{loading:!1}},methods:{onClick(t){return v(this,null,function*(){this.loading=!0;const{click:s}=this.$listeners;if(core.isFunction(s))try{yield s(t)}catch(n){}this.loading=!1})}}},__cssModules$5={};var __component__$5=normalizeComponent(__vue2_script$5,render$4,staticRenderFns$4,!1,__vue2_injectStyles$5,null,null,null);function __vue2_injectStyles$5(t){for(let s in __cssModules$5)this[s]=__cssModules$5[s]}const ToolbarButton=function(){return __component__$5.exports}();var render$3=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{class:t.classes},[t.showIcon?n("div",{class:t.barConClasses},t._m(0),0):t._e()])},staticRenderFns$3=[function(){var t=this,s=t.$createElement,n=t._self._c||s;return t._l(8,function(r){return n("i",{key:`trigger-${r}`,class:`${t.prefix}-bar`})})}];const __vue2_script$4={name:"Trigger",props:{mode:String,showIcon:Boolean,line:{type:Boolean,default:!0}},data(){return{prefix:"egd-split-trigger"}},computed:{isVertical(){return this.mode==="vertical"},classes(){return[this.prefix,this.line?this.isVertical?` ${this.prefix}-vertical-line`:`${this.prefix}-horizontal-line`:"",this.isVertical?`${this.prefix}-vertical`:`${this.prefix}-horizontal`]},barConClasses(){return[`${this.prefix}-bar-con`,this.isVertical?"vertical":"horizontal"]}}},__cssModules$4={};var __component__$4=normalizeComponent(__vue2_script$4,render$3,staticRenderFns$3,!1,__vue2_injectStyles$4,null,null,null);function __vue2_injectStyles$4(t){for(let s in __cssModules$4)this[s]=__cssModules$4[s]}const Trigger=function(){return __component__$4.exports}();var render$2=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"avue-verify"},t._l(t.list,function(r,a){return n("span",{key:a,staticClass:"avue-verify__item",style:t.styleName},[t._v(" "+t._s(r)+" ")])}),0)},staticRenderFns$2=[];const Verify_vue_vue_type_style_index_0_lang="",__vue2_script$3={name:"Verify",props:{size:{type:[Number,String],default:50},value:[Number,String],len:{type:[Number,String],default:6}},computed:{data:{get(){return this.value||""},set(t){const s=`${t}`;this.$emit("input",s),this.$emit("change",s)}},styleName(){return{padding:`${setPx(this.size/7)} ${setPx(this.size/4)}`,fontSize:setPx(this.size)}},list(){return this.data.split("")}},created(){this.random()},methods:{random(){const t=this.len;if(t>21)return null;const s=new RegExp(`(\\d{${t}})(\\.|$)`);this.data=(Array(t-1).join(0)+Math.pow(10,t)*Math.random()).match(s)[1]}}},__cssModules$3={};var __component__$3=normalizeComponent(__vue2_script$3,render$2,staticRenderFns$2,!1,__vue2_injectStyles$3,null,null,null);function __vue2_injectStyles$3(t){for(let s in __cssModules$3)this[s]=__cssModules$3[s]}const Verify=function(){return __component__$3.exports}();var render$1=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"tags-input-root"},[n("div",{class:`${t.wrapperClass} tags-input`},[t._l(t.tags,function(r,a){return n("span",{key:a,staticClass:"el-tag el-tag--medium el-tag--light"},[n("span",{domProps:{innerHTML:t._s(r.value)}}),n("i",{staticClass:"tags-input-remove ov",attrs:{href:"#"},on:{click:function(o){return o.preventDefault(),t.removeTag(a)}}})])}),n("input",{directives:[{name:"model",rawName:"v-model",value:t.input,expression:"input"}],ref:"taginput",staticStyle:{height:"28px","margin-top":"5px","line-height":"28px"},attrs:{type:"text",placeholder:t.placeholder},domProps:{value:t.input},on:{keydown:[function(r){return!r.type.indexOf("key")&&t._k(r.keyCode,"enter",13,r.key,"Enter")?null:(r.preventDefault(),t.tagFromInput(!1))},function(r){return!r.type.indexOf("key")&&r.keyCode!==8?null:t.removeLastTag.apply(null,arguments)},function(r){return!r.type.indexOf("key")&&t._k(r.keyCode,"down",40,r.key,["Down","ArrowDown"])?null:t.nextSearchResult.apply(null,arguments)},function(r){return!r.type.indexOf("key")&&t._k(r.keyCode,"up",38,r.key,["Up","ArrowUp"])?null:t.prevSearchResult.apply(null,arguments)},t.onKeyDown],keyup:[t.onKeyUp,function(r){return!r.type.indexOf("key")&&t._k(r.keyCode,"esc",27,r.key,["Esc","Escape"])?null:t.clearSearchResults.apply(null,arguments)}],focus:t.onFocus,blur:t.onBlur,value:t.tags,input:function(r){r.target.composing||(t.input=r.target.value)}}}),t.elementId?n("input",{directives:[{name:"model",rawName:"v-model",value:t.hiddenInput,expression:"hiddenInput"}],attrs:{id:t.elementId,type:"hidden",name:t.elementId},domProps:{value:t.hiddenInput},on:{input:function(r){r.target.composing||(t.hiddenInput=r.target.value)}}}):t._e()],2),n("div",{directives:[{name:"show",rawName:"v-show",value:t.searchResults.length,expression:"searchResults.length"}]},[t.typeaheadStyle==="badges"?n("p",{class:`typeahead-${t.typeaheadStyle}`},[t.typeaheadHideDiscard?t._e():n("span",{staticClass:"tags-input-badge typeahead-hide-btn tags-input-typeahead-item-default",domProps:{textContent:t._s(t.discardSearchText)},on:{click:function(r){return r.preventDefault(),t.clearSearchResults.apply(null,arguments)}}}),t._l(t.searchResults,function(r,a){return n("span",{key:a,staticClass:"tags-input-badge",class:{"tags-input-typeahead-item-default":a!=t.searchSelection,"tags-input-typeahead-item-highlighted-default":a==t.searchSelection},domProps:{innerHTML:t._s(r.value)},on:{mouseover:function(o){t.searchSelection=a},mousedown:function(o){return o.preventDefault(),t.tagFromSearchOnClick(r)}}})})],2):t.typeaheadStyle==="dropdown"?n("ul",{class:`typeahead-${t.typeaheadStyle}`},[t.typeaheadHideDiscard?t._e():n("li",{staticClass:"tags-input-typeahead-item-default typeahead-hide-btn",domProps:{textContent:t._s(t.discardSearchText)},on:{mousedown:function(r){return r.preventDefault(),t.clearSearchResults.apply(null,arguments)}}}),t._l(t.searchResults,function(r,a){return n("li",{key:a,class:{"tags-input-typeahead-item-default":a!=t.searchSelection,"tags-input-typeahead-item-highlighted-default":a==t.searchSelection},domProps:{innerHTML:t._s(r.value)},on:{mouseover:function(o){t.searchSelection=a},mousedown:function(o){return o.preventDefault(),t.tagFromSearchOnClick(r)}}})})],2):t._e()])])},staticRenderFns$1=[];const VueTagsInput_vue_vue_type_style_index_0_lang="",__vue2_script$2={name:"VueTagsInput",props:{elementId:{type:String},existingTags:{type:Array,default:()=>[]},value:{type:Array,default:()=>[]},typeahead:{type:Boolean,default:!1},typeaheadStyle:{type:String,default:"badges"},typeaheadActivationThreshold:{type:Number,default:1},typeaheadMaxResults:{type:Number,default:0},typeaheadAlwaysShow:{type:Boolean,default:!1},typeaheadHideDiscard:{type:Boolean,default:!1},placeholder:{type:String,default:"请输入..."},discardSearchText:{type:String,default:"取消"},limit:{type:Number,default:0},onlyExistingTags:{type:Boolean,default:!1},deleteOnBackspace:{type:Boolean,default:!0},allowDuplicates:{type:Boolean,default:!1},validate:{type:Function,default:()=>!0},addTagsOnComma:{type:Boolean,default:!1},addTagsOnSpace:{type:Boolean,default:!1},addTagsOnBlur:{type:Boolean,default:!1},wrapperClass:{type:String,default:"tags-input-wrapper-default"},sortSearchResults:{type:Boolean,default:!0},caseSensitiveTags:{type:Boolean,default:!1},beforeAddingTag:{type:Function,default:()=>!0},beforeRemovingTag:{type:Function,default:()=>!0}},data(){return{tags:[],input:"",oldInput:"",hiddenInput:"",searchResults:[],searchSelection:0}},watch:{input(t,s){this.$emit("input-changed",t),this.searchTag(!1),t.length&&t!==s&&(this.addTagsOnSpace&&t.endsWith(" ")&&(this.input=t.trim(),this.tagFromInput(!0)),this.addTagsOnComma&&(t=t.trim(),t.endsWith(",")&&(this.input=t.substring(0,t.length-1),this.tagFromInput(!0))),this.$emit("change",t))},tags(){this.hiddenInput=JSON.stringify(this.tags),this.$emit("input",this.tags)},value(){this.tagsFromValue()},typeaheadAlwaysShow(t){t?this.searchTag(!1):this.clearSearchResults()}},created(){this.tagsFromValue(),this.typeaheadAlwaysShow&&this.searchTag(!1),this.$emit("initialized")},methods:{escapeRegExp(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},tagFromInput(t=!1){if(this.searchResults.length&&this.searchSelection>=0&&!t)this.tagFromSearch(this.searchResults[this.searchSelection]),this.input="";else{const s=this.input.trim();if(!this.onlyExistingTags&&s.length&&this.validate(s)){this.input="";let n={key:"",value:s};const r=this.escapeRegExp(this.caseSensitiveTags?n.value:n.value.toLowerCase());for(const a of this.existingTags){const o=this.caseSensitiveTags?a.value:a.value.toLowerCase();if(r===o){n=Object.assign({},a);break}}this.addTag(n)}}},tagFromSearchOnClick(t){this.tagFromSearch(t),this.$refs.taginput.blur()},tagFromSearch(t){this.clearSearchResults(),this.addTag(t),this.$nextTick(()=>{this.input="",this.oldInput=""})},addTag(t){if(!this.beforeAddingTag(t))return!1;if(this.limit>0&&this.tags.length>=this.limit)return this.$emit("limit-reached"),!1;this.tagSelected(t)||(this.tags.push(t),this.$nextTick(()=>{this.$emit("tag-added",t),this.$emit("tags-updated")}))},removeLastTag(){!this.input.length&&this.deleteOnBackspace&&this.tags.length&&this.removeTag(this.tags.length-1)},removeTag(t){const s=this.tags[t];if(!this.beforeRemovingTag(s))return!1;this.tags.splice(t,1),this.$nextTick(()=>{this.$emit("tag-removed",s),this.$emit("tags-updated"),this.typeaheadAlwaysShow&&this.searchTag()})},searchTag(){if(this.typeahead!==!0)return!1;if(this.oldInput!==this.input||!this.searchResults.length&&this.typeaheadActivationThreshold===0||this.typeaheadAlwaysShow){this.searchResults=[],this.searchSelection=0;const t=this.input.trim();if(t.length&&t.length>=this.typeaheadActivationThreshold||this.typeaheadActivationThreshold===0||this.typeaheadAlwaysShow){const s=this.escapeRegExp(this.caseSensitiveTags?t:t.toLowerCase());for(const n of this.existingTags)(this.caseSensitiveTags?n.value:n.value.toLowerCase()).search(s)>-1&&!this.tagSelected(n)&&this.searchResults.push(n);this.sortSearchResults&&this.searchResults.sort((n,r)=>n.value<r.value?-1:n.value>r.value?1:0),this.typeaheadMaxResults>0&&(this.searchResults=this.searchResults.slice(0,this.typeaheadMaxResults))}this.oldInput=this.input}},hideTypeahead(){this.input.length||this.$nextTick(()=>{this.clearSearchResults()})},nextSearchResult(){this.searchSelection+1<=this.searchResults.length-1&&this.searchSelection++},prevSearchResult(){this.searchSelection>0&&this.searchSelection--},clearSearchResults(){this.searchResults=[],this.searchSelection=0,this.typeaheadAlwaysShow&&this.$nextTick(()=>{this.searchTag()})},clearTags(){this.tags.splice(0,this.tags.length)},tagsFromValue(){if(this.value&&this.value.length){if(!Array.isArray(this.value)){console.error("Voerro Tags Input: the v-model value must be an array!");return}const t=this.value;if(this.tags===t)return;this.clearTags();for(const s of t)this.addTag(s)}else{if(this.tags.length===0)return;this.clearTags()}},tagSelected(t){if(this.allowDuplicates||!t)return!1;const s=this.escapeRegExp(this.caseSensitiveTags?t.value:t.value.toLowerCase());for(const n of this.tags){const r=this.caseSensitiveTags?n.value:n.value.toLowerCase();if(n.key===t.key&&r.search(s)>-1)return!0}return!1},clearInput(){this.input=""},onKeyUp(t){this.$emit("keyup",t)},onKeyDown(t){this.$emit("keydown",t)},onFocus(t){this.$emit("focus",t),this.searchTag()},onBlur(t){this.$emit("blur",t),this.addTagsOnBlur&&this.tagFromInput(!0),this.typeaheadAlwaysShow?this.searchTag():this.hideTypeahead()}}},__cssModules$2={};var __component__$2=normalizeComponent(__vue2_script$2,render$1,staticRenderFns$1,!1,__vue2_injectStyles$2,null,null,null);function __vue2_injectStyles$2(t){for(let s in __cssModules$2)this[s]=__cssModules$2[s]}const VueTagsInput=function(){return __component__$2.exports}(),Watermark_vue_vue_type_style_index_0_lang="",__vue2_script$1={name:"Watermark",functional:!0,props:{text:{type:String,default:""},width:{type:Number,default:200},height:{type:Number,default:150},rotate:{type:Number,default:-30},color:{type:String,default:"rgba(0,0,0,0.15)"},backgroundColor:{type:String,default:"rgba(0,0,0,0)"}},render(t,{props:{width:s,height:n,text:r,backgroundColor:a,rotate:o,color:l},data:c}){const u=document.createElement("canvas");u.width=s,u.height=n;const d=u.getContext("2d");return d.font="15px Verdana",d.fillStyle=a,d.fillRect(0,0,s,n),d.translate(s/2,n/2),d.rotate(o*Math.PI/180),d.fillStyle=l,d.textAlign="center",d.textBaseline="middle",d.fillText(r,0,0),t("div",{class:getClass(c.class,`watermark ${c.staticClass||""}`),style:S(f(f({},c.style||{}),c.staticStyle||{}),{background:`url(${u.toDataURL("image/png")}) left top repeat`})})}};let __vue2_render,__vue2_staticRenderFns;const __cssModules$1={};var __component__$1=normalizeComponent(__vue2_script$1,__vue2_render,__vue2_staticRenderFns,!1,__vue2_injectStyles$1,null,null,null);function __vue2_injectStyles$1(t){for(let s in __cssModules$1)this[s]=__cssModules$1[s]}const Watermark=function(){return __component__$1.exports}();var render=function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"fy-input-tag"},[t._l(t.tags,function(r,a){return n("ElTag",{key:r.id,attrs:{closable:!t.inputDisabled,"disable-transitions":!t.arrayMode},on:{close:function(o){return t.handleClose(r,a)}}},[t._v(" "+t._s(r.tagName)+" ")])}),!t.inputDisabled&&t.inputVisible?n("ElInput",{ref:"saveTagInput",staticClass:"input-new-tag",attrs:{size:"small"},on:{blur:t.handleInputConfirm},nativeOn:{keyup:function(r){return!r.type.indexOf("key")&&t._k(r.keyCode,"enter",13,r.key,"Enter")?null:t.handleInputConfirm.apply(null,arguments)}},model:{value:t.inputValue,callback:function(r){t.inputValue=r},expression:"inputValue"}}):t._e(),!t.inputDisabled&&!t.inputVisible?n("ElButton",{directives:[{name:"show",rawName:"v-show",value:t.tags.length<t.maxTag,expression:"tags.length < maxTag"}],staticClass:"button-new-tag",attrs:{size:"small"},on:{click:t.showInput}},[t._v(" + 添加 ")]):t._e()],2)},staticRenderFns=[];const XInputTag_vue_vue_type_style_index_0_lang="",__vue2_script={name:"XInputTag",inject:{elForm:{default:""},elFormItem:{default:""}},props:{value:{type:[Array,String],default:()=>[]},disabled:Boolean,separator:{type:String,default:","},arrayMode:{type:Boolean,default:!0}},data(){return{inputVisible:!1,inputValue:"",maxTag:20}},computed:{inputDisabled(){return this.disabled||(this.elForm||{}).disabled},tags:{get(){var t,s;if(this.arrayMode)return(t=this.value)!=null&&t.length?this.value.map(n=>n.id>0?n:S(f({},n),{id:Math.random()})):[];{const n=((s=this.value)==null?void 0:s.split(this.separator))||[];return n.length&&n[0]?n.map(r=>({tagName:r,id:Math.random()})):[]}}}},methods:{showInput(){return v(this,null,function*(){this.inputVisible=!0,yield this.$nextTick(),this.$refs.saveTagInput.$refs.input.focus()})},handleClose(t){const s=this.tags.filter(n=>n!==t);this.$emit("input",this.arrayMode?s:s.map(n=>n.tagName).join(this.separator))},handleInputConfirm(){return v(this,null,function*(){var s;if(this.tags.length>=this.maxTag){this.$message.warning({message:"标签已达上限,请删除一些标签再添加!",showClose:!0}),this.inputVisible=!1,this.inputValue="";return}const t=this.inputValue;if(t){if(this.tags.some(r=>r.tagName===t)){this.inputVisible=!1,this.inputValue="",this.$message.warning({message:"标签已存在!",showClose:!0});return}const n=[...this.tags];n.push({id:Date.now(),tagName:this.inputValue}),this.$emit("input",this.arrayMode?n:n.map(r=>r.tagName).join(this.separator)),yield this.$nextTick(),(s=this.elFormItem)==null||s.clearValidate()}this.inputVisible=!1,this.inputValue=""})}}},__cssModules={};var __component__=normalizeComponent(__vue2_script,render,staticRenderFns,!1,__vue2_injectStyles,null,null,null);function __vue2_injectStyles(t){for(let s in __cssModules)this[s]=__cssModules[s]}const XInputTag=function(){return __component__.exports}(),version="2.8.1";function index(t){t.component(AddressInput.name,AddressInput),t.component(Affix.name,Affix),t.component(AsideMenu.name,AsideMenu),t.component(Avatar.name,Avatar),t.component(AwesomeButton.name,AwesomeButton),t.component(CapsuleTab.name,CapsuleTab),t.component(Card.name,Card),t.component(Carousel.name,Carousel),t.component(Chat.name,Chat),t.component(ChunkFileUploader.name,ChunkFileUploader),t.component(ChunkFileUploaderButton.name,ChunkFileUploaderButton),t.component(ChunkFileUploaderDrop.name,ChunkFileUploaderDrop),t.component(ChunkFileUploaderFile.name,ChunkFileUploaderFile),t.component(ChunkFileUploaderFiles.name,ChunkFileUploaderFiles),t.component(ChunkFileUploaderList.name,ChunkFileUploaderList),t.component(ChunkFileUploaderUnSupport.name,ChunkFileUploaderUnSupport),t.component(CodeMirrorEditor.name,CodeMirrorEditor),t.component(ColorPicker.name,ColorPicker),t.component(Column.name,Column),t.component(ColumnDefault.name,ColumnDefault),t.component(ColumnDynamic.name,ColumnDynamic),t.component(ColumnMenu.name,ColumnMenu),t.component(ColumnSlot.name,ColumnSlot),t.component(Comment.name,Comment),t.component(Confirmable.name,Confirmable),t.component(ConfirmButton.name,ConfirmButton),t.component(ContextMenu.name,ContextMenu),t.component(CountUp.name,CountUp),t.component(CustomScrollbar.name,CustomScrollbar),t.component(DataBox.name,DataBox),t.component(DataCard.name,DataCard),t.component(DataCardtext.name,DataCardtext),t.component(DataDisplay.name,DataDisplay),t.component(DataIcons.name,DataIcons),t.component(DataImgtext.name,DataImgtext),t.component(DataOperatext.name,DataOperatext),t.component(DataPanel.name,DataPanel),t.component(DataPay.name,DataPay),t.component(DataPrice.name,DataPrice),t.component(DataProgress.name,DataProgress),t.component(DataRotate.name,DataRotate),t.component(DataTablePicker.name,DataTablePicker),t.component(DataTabs.name,DataTabs),t.component(DialogColumn.name,DialogColumn),t.component(DialogExcel.name,DialogExcel),t.component(DialogFilter.name,DialogFilter),t.component(DialogForm$1.name,DialogForm$1),t.component(DynamicTable.name,DynamicTable),t.component(EasyPopup.name,EasyPopup),t.component(ECharts.name,ECharts),t.component(EditableProgress.name,EditableProgress),t.component(EditableTree.name,EditableTree),t.component(EgdCollapse.name,EgdCollapse),t.component(EgdCollapseItem.name,EgdCollapseItem),t.component(ElementDialog.name,ElementDialog),t.component(EmptyView.name,EmptyView),t.component(ErrorView.name,ErrorView),t.component(FlexColumn.name,FlexColumn),t.component(FlexItem.name,FlexItem),t.component(FlexRow.name,FlexRow),t.component(FlexScroller.name,FlexScroller),t.component(Flow.name,Flow),t.component(FlowNode.name,FlowNode),t.component(FlowViewer.name,FlowViewer),t.component(FormBlock.name,FormBlock),t.component(FormButton.name,FormButton),t.component(FormCascader.name,FormCascader),t.component(FormCheckboxGroup.name,FormCheckboxGroup),t.component(FormDatePicker.name,FormDatePicker),t.component(FormGroup.name,FormGroup),t.component(FormHolder.name,FormHolder),t.component(FormInput.name,FormInput),t.component(FormInputEmail.name,FormInputEmail),t.component(FormInputIdCard.name,FormInputIdCard),t.component(FormInputNumber.name,FormInputNumber),t.component(FormInputPhoneNumber.name,FormInputPhoneNumber),t.component(FormInputTag.name,FormInputTag),t.component(FormInputTime.name,FormInputTime),t.component(FormItem.name,FormItem),t.component(FormItemConfigProvider.name,FormItemConfigProvider),t.component(FormItemGroup.name,FormItemGroup),t.component(FormRadioGroup.name,FormRadioGroup),t.component(FormSelect.name,FormSelect),t.component(FormSwitch.name,FormSwitch),t.component(FormTemp.name,FormTemp),t.component(FormTextarea.name,FormTextarea),t.component(FormView.name,FormView),t.component(FyArray.name,FyArray),t.component(FyArticle.name,FyArticle),t.component(FyCascader.name,FyCascader),t.component(FyCheckbox.name,FyCheckbox),t.component(FyCode.name,FyCode),t.component(FyCurd.name,FyCurd),t.component(FyDate.name,FyDate),t.component(FyDialogForm.name,FyDialogForm),t.component(FyDraggable.name,FyDraggable),t.component(FyDynamic.name,FyDynamic),t.component(FyEmpty.name,FyEmpty),t.component(FyForm.name,FyForm),t.component(FyFormDesign.name,FyFormDesign),t.component(FyFormMenu.name,FyFormMenu),t.component(FyInput.name,FyInput),t.component(FyInputColor.name,FyInputColor),t.component(FyInputIcon.name,FyInputIcon),t.component(FyInputMap.name,FyInputMap),t.component(FyInputNumber.name,FyInputNumber),t.component(FyInputTable.name,FyInputTable),t.component(FyInputTree.name,FyInputTree),t.component(FyProgress.name,FyProgress),t.component(FyRadio.name,FyRadio),t.component(FyRate.name,FyRate),t.component(FySelect.name,FySelect),t.component(FySlider.name,FySlider),t.component(FySwitch.name,FySwitch),t.component(FyTabs.name,FyTabs),t.component(FyTime.name,FyTime),t.component(FyTitle.name,FyTitle),t.component(FyTree.name,FyTree),t.component(FyUEditor.name,FyUEditor),t.component(FyUpload.name,FyUpload),t.component(GuideSteps.name,GuideSteps),t.component(HeaderMenu.name,HeaderMenu),t.component(HeaderSearch.name,HeaderSearch),t.component(HighlightJS.name,HighlightJS),t.component(IconCard.name,IconCard),t.component(IconTemp.name,IconTemp),t.component(IframeWindow.name,IframeWindow),t.component(ImageCropper$1.name,ImageCropper$1),t.component(ImagePreview$1.name,ImagePreview$1),t.component(ImageViewer.name,ImageViewer),t.component(InputNumber.name,InputNumber),t.component(InputNumberRange.name,InputNumberRange),t.component(JSXComponent.name,JSXComponent),t.component(KeepViewAlive.name,KeepViewAlive),t.component(Keyboard.name,Keyboard),t.component(License.name,License),t.component(LoadingView.name,LoadingView),t.component(Login.name,Login),t.component(MonacoEditor.name,MonacoEditor),t.component(NameAvatar.name,NameAvatar),t.component(NavBar.name,NavBar),t.component(Notice.name,Notice),t.component(NotImplement.name,NotImplement),t.component(Page.name,Page),t.component(PageableTable.name,PageableTable),t.component(PageableView.name,PageableView),t.component(PageHeader.name,PageHeader),t.component(PageIndex.name,PageIndex),t.component(PageIndexTop.name,PageIndexTop),t.component(PageSkeleton.name,PageSkeleton),t.component(PageSkeletonNew.name,PageSkeletonNew),t.component(PhotoSwipe.name,PhotoSwipe),t.component(PresentView.name,PresentView),t.component(ProcessDesigner.name,ProcessDesigner),t.component(PropertiesPanel.name,PropertiesPanel),t.component(Queue.name,Queue),t.component(RecordVideo.name,RecordVideo),t.component(ResizeObserver.name,ResizeObserver),t.component(Search.name,Search),t.component(SearchPopover.name,SearchPopover),t.component(Sign.name,Sign),t.component(SignPanel.name,SignPanel),t.component(Skeleton.name,Skeleton),t.component(SplitPane.name,SplitPane),t.component(Stateful.name,Stateful),t.component(StaticPageableTable.name,StaticPageableTable),t.component(Swiper.name,Swiper),t.component(Tab.name,Tab),t.component(TabItem.name,TabItem),t.component(TableColumn.name,TableColumn),t.component(TablePage.name,TablePage),t.component(TableView.name,TableView),t.component(TagRender.name,TagRender),t.component(TextEllipsis.name,TextEllipsis),t.component(TinymceEditor.name,TinymceEditor),t.component(TinymceWrapper.name,TinymceWrapper),t.component(Toolbar.name,Toolbar),t.component(ToolbarButton.name,ToolbarButton),t.component(Trigger.name,Trigger),t.component(Verify.name,Verify),t.component(VueTagsInput.name,VueTagsInput),t.component(Watermark.name,Watermark),t.component(XInputTag.name,XInputTag)}exports.AddressInput=AddressInput;exports.Affix=Affix;exports.AsideMenu=AsideMenu;exports.Avatar=Avatar;exports.AwesomeButton=AwesomeButton;exports.CapsuleTab=CapsuleTab;exports.Card=Card;exports.Carousel=Carousel;exports.Chat=Chat;exports.ChunkFileUploader=ChunkFileUploader;exports.ChunkFileUploaderButton=ChunkFileUploaderButton;exports.ChunkFileUploaderDrop=ChunkFileUploaderDrop;exports.ChunkFileUploaderFile=ChunkFileUploaderFile;exports.ChunkFileUploaderFiles=ChunkFileUploaderFiles;exports.ChunkFileUploaderList=ChunkFileUploaderList;exports.ChunkFileUploaderUnSupport=ChunkFileUploaderUnSupport;exports.CodeMirrorEditor=CodeMirrorEditor;exports.ColorPicker=ColorPicker;exports.Column=Column;exports.ColumnDefault=ColumnDefault;exports.ColumnDynamic=ColumnDynamic;exports.ColumnMenu=ColumnMenu;exports.ColumnSlot=ColumnSlot;exports.Comment=Comment;exports.ConfirmButton=ConfirmButton;exports.Confirmable=Confirmable;exports.ContextMenu=ContextMenu;exports.CountUp=CountUp;exports.CustomScrollbar=CustomScrollbar;exports.DataBox=DataBox;exports.DataCard=DataCard;exports.DataCardtext=DataCardtext;exports.DataDisplay=DataDisplay;exports.DataIcons=DataIcons;exports.DataImgtext=DataImgtext;exports.DataOperatext=DataOperatext;exports.DataPanel=DataPanel;exports.DataPay=DataPay;exports.DataPrice=DataPrice;exports.DataProgress=DataProgress;exports.DataRotate=DataRotate;exports.DataTablePicker=DataTablePicker;exports.DataTabs=DataTabs;exports.DialogColumn=DialogColumn;exports.DialogExcel=DialogExcel;exports.DialogFilter=DialogFilter;exports.DialogForm=DialogForm$1;exports.DynamicTable=DynamicTable;exports.ECharts=ECharts;exports.EasyPopup=EasyPopup;exports.EditableProgress=EditableProgress;exports.EditableTree=EditableTree;exports.EgdCollapse=EgdCollapse;exports.EgdCollapseItem=EgdCollapseItem;exports.ElementDialog=ElementDialog;exports.EmptyView=EmptyView;exports.ErrorView=ErrorView;exports.FlexColumn=FlexColumn;exports.FlexItem=FlexItem;exports.FlexRow=FlexRow;exports.FlexScroller=FlexScroller;exports.Flow=Flow;exports.FlowNode=FlowNode;exports.FlowViewer=FlowViewer;exports.FormBlock=FormBlock;exports.FormButton=FormButton;exports.FormCascader=FormCascader;exports.FormCheckboxGroup=FormCheckboxGroup;exports.FormDatePicker=FormDatePicker;exports.FormGroup=FormGroup;exports.FormHolder=FormHolder;exports.FormInput=FormInput;exports.FormInputEmail=FormInputEmail;exports.FormInputIdCard=FormInputIdCard;exports.FormInputNumber=FormInputNumber;exports.FormInputPhoneNumber=FormInputPhoneNumber;exports.FormInputTag=FormInputTag;exports.FormInputTime=FormInputTime;exports.FormItem=FormItem;exports.FormItemConfigProvider=FormItemConfigProvider;exports.FormItemGroup=FormItemGroup;exports.FormRadioGroup=FormRadioGroup;exports.FormSelect=FormSelect;exports.FormSwitch=FormSwitch;exports.FormTemp=FormTemp;exports.FormTextarea=FormTextarea;exports.FormView=FormView;exports.FyArray=FyArray;exports.FyArticle=FyArticle;exports.FyCascader=FyCascader;exports.FyCheckbox=FyCheckbox;exports.FyCode=FyCode;exports.FyCurd=FyCurd;exports.FyDate=FyDate;exports.FyDialogForm=FyDialogForm;exports.FyDraggable=FyDraggable;exports.FyDynamic=FyDynamic;exports.FyEmpty=FyEmpty;exports.FyForm=FyForm;exports.FyFormDesign=FyFormDesign;exports.FyFormMenu=FyFormMenu;exports.FyInput=FyInput;exports.FyInputColor=FyInputColor;exports.FyInputIcon=FyInputIcon;exports.FyInputMap=FyInputMap;exports.FyInputNumber=FyInputNumber;exports.FyInputTable=FyInputTable;exports.FyInputTree=FyInputTree;exports.FyProgress=FyProgress;exports.FyRadio=FyRadio;exports.FyRate=FyRate;exports.FySelect=FySelect;exports.FySlider=FySlider;exports.FySwitch=FySwitch;exports.FyTabs=FyTabs;exports.FyTime=FyTime;exports.FyTitle=FyTitle;exports.FyTree=FyTree;exports.FyUEditor=FyUEditor;exports.FyUpload=FyUpload;exports.GuideSteps=GuideSteps;exports.HeaderMenu=HeaderMenu;exports.HeaderSearch=HeaderSearch;exports.HighlightJS=HighlightJS;exports.IconCard=IconCard;exports.IconTemp=IconTemp;exports.IframeWindow=IframeWindow;exports.ImageCropper=ImageCropper$1;exports.ImagePreview=ImagePreview$1;exports.ImageViewer=ImageViewer;exports.InputNumber=InputNumber;exports.InputNumberRange=InputNumberRange;exports.JSXComponent=JSXComponent;exports.KeepViewAlive=KeepViewAlive;exports.Keyboard=Keyboard;exports.License=License;exports.LoadingView=LoadingView;exports.Login=Login;exports.MonacoEditor=MonacoEditor;exports.NameAvatar=NameAvatar;exports.NavBar=NavBar;exports.NotImplement=NotImplement;exports.Notice=Notice;exports.Page=Page;exports.PageHeader=PageHeader;exports.PageIndex=PageIndex;exports.PageIndexTop=PageIndexTop;exports.PageSkeleton=PageSkeleton;exports.PageSkeletonNew=PageSkeletonNew;exports.PageableTable=PageableTable;exports.PageableView=PageableView;exports.PhotoSwipe=PhotoSwipe;exports.PresentView=PresentView;exports.ProcessDesigner=ProcessDesigner;exports.PropertiesPanel=PropertiesPanel;exports.Queue=Queue;exports.RecordVideo=RecordVideo;exports.ResizeObserver=ResizeObserver;exports.Search=Search;exports.SearchPopover=SearchPopover;exports.Sign=Sign;exports.SignPanel=SignPanel;exports.Skeleton=Skeleton;exports.SplitPane=SplitPane;exports.Stateful=Stateful;exports.StaticPageableTable=StaticPageableTable;exports.Swiper=Swiper;exports.Tab=Tab;exports.TabItem=TabItem;exports.TableColumn=TableColumn;exports.TablePage=TablePage;exports.TableView=TableView;exports.TagRender=TagRender;exports.TextEllipsis=TextEllipsis;exports.TinymceEditor=TinymceEditor;exports.TinymceWrapper=TinymceWrapper;exports.Toolbar=Toolbar;exports.ToolbarButton=ToolbarButton;exports.Trigger=Trigger;exports.Verify=Verify;exports.VueTagsInput=VueTagsInput;exports.Watermark=Watermark;exports.XInputTag=XInputTag;exports.default=index;exports.version=version;
|