@web-utils/component 2.8.1 → 2.8.4
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/base.css +1 -1
- package/card/index.mjs +33 -37
- package/chat/index.mjs +132 -123
- package/chunks/{dataformat.25e22176.mjs → dataformat.ab62230f.mjs} +1 -1
- package/chunks/{detail.6e53ede8.mjs → detail.6e46de33.mjs} +1 -1
- package/chunks/dic.7f13b573.mjs +130 -0
- package/chunks/{event.a018cb06.mjs → event.1ac32f1d.mjs} +2 -2
- package/chunks/{init.f04c7036.mjs → init.47ce5ed9.mjs} +2 -2
- package/chunks/util.505913d9.mjs +266 -0
- package/column/index.mjs +2 -2
- package/column-default/index.mjs +1 -1
- package/column-dynamic/index.mjs +1 -1
- package/column-menu/index.mjs +81 -79
- package/column-slot/index.mjs +8 -7
- package/comment/index.mjs +6 -10
- package/data-pay/index.mjs +16 -13
- package/data-table-picker/index.mjs +22 -22
- package/dialog-excel/index.mjs +8 -8
- package/dialog-filter/index.mjs +4 -2
- package/dialog-form/index.mjs +6 -6
- package/editable-tree/index.mjs +5 -5
- package/flow/index.mjs +11 -11
- package/flow/style.css +1 -1
- package/flow-node/index.mjs +2 -2
- package/form-button/index.mjs +16 -38
- package/form-group/index.mjs +28 -33
- package/form-input-tag/index.mjs +1 -1
- package/form-temp/index.mjs +15 -27
- package/fy-array/index.mjs +44 -42
- package/fy-cascader/index.mjs +1 -1
- package/fy-checkbox/index.mjs +2 -1
- package/fy-code/index.mjs +1 -1
- package/fy-curd/index.mjs +29 -31
- package/fy-date/index.mjs +1 -1
- package/fy-dialog-form/index.mjs +5 -11
- package/{dialog-form → fy-dialog-form}/style.css +0 -0
- package/fy-draggable/index.mjs +3 -3
- package/fy-dynamic/index.mjs +3 -3
- package/fy-empty/index.mjs +1 -1
- package/fy-form/index.mjs +133 -122
- package/fy-form-design/index.mjs +2595 -2610
- package/fy-form-design/style.css +1 -1
- package/fy-input/index.mjs +10 -15
- package/fy-input-color/index.mjs +1 -1
- package/fy-input-icon/index.mjs +21 -16
- package/fy-input-map/index.mjs +22 -19
- package/fy-input-number/index.mjs +1 -1
- package/fy-input-table/index.mjs +1 -1
- package/fy-input-tree/index.mjs +5 -6
- package/fy-radio/index.mjs +3 -1
- package/fy-rate/index.mjs +2 -1
- package/fy-select/index.mjs +29 -28
- package/fy-slider/index.mjs +2 -2
- package/fy-switch/index.mjs +2 -1
- package/fy-tabs/index.mjs +19 -17
- package/fy-time/index.mjs +1 -1
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +8 -6
- package/fy-u-editor/index.mjs +10 -14
- package/fy-upload/index.mjs +85 -84
- package/header-menu/index.mjs +1 -1
- package/header-search/index.mjs +7 -5
- package/image-cropper/index.mjs +1 -1
- package/image-preview/index.mjs +1 -1
- package/index.cjs +39 -39
- package/index.css +1 -1
- package/index.mjs +16577 -16591
- package/license/index.mjs +1 -1
- package/login/index.mjs +1 -1
- package/monaco-editor/index.mjs +3 -3
- package/package.json +5 -5
- package/process-designer/index.mjs +10 -2
- package/queue/index.mjs +3 -8
- package/queue/style.css +1 -0
- package/record-video/index.mjs +1 -1
- package/search/index.mjs +2 -2
- package/search-popover/index.mjs +25 -24
- package/sign/index.mjs +17 -18
- package/sign/style.css +1 -1
- package/table-page/index.mjs +21 -23
- package/text-ellipsis/index.mjs +1 -1
- package/verify/index.mjs +1 -1
- package/web-types.json +52 -166
- package/chunks/dic.e8280157.mjs +0 -130
- package/chunks/util.17330567.mjs +0 -266
package/index.cjs
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
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(
|
|
1
|
+
"use strict";var lu=Object.defineProperty,ou=Object.defineProperties;var cu=Object.getOwnPropertyDescriptors;var Fe=Object.getOwnPropertySymbols;var ea=Object.prototype.hasOwnProperty,ta=Object.prototype.propertyIsEnumerable;var Zs=(e,n,t)=>n in e?lu(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,f=(e,n)=>{for(var t in n||(n={}))ea.call(n,t)&&Zs(e,t,n[t]);if(Fe)for(var t of Fe(n))ta.call(n,t)&&Zs(e,t,n[t]);return e},E=(e,n)=>ou(e,cu(n));var Ie=(e,n)=>{var t={};for(var i in e)ea.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&Fe)for(var i of Fe(e))n.indexOf(i)<0&&ta.call(e,i)&&(t[i]=e[i]);return t};var _=(e,n,t)=>new Promise((i,s)=>{var a=o=>{try{l(t.next(o))}catch(c){s(c)}},r=o=>{try{l(t.throw(o))}catch(c){s(c)}},l=o=>o.done?i(o.value):Promise.resolve(o.value).then(a,r);l((t=t.apply(e,n)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("@web-utils/core"),ae=require("@web-utils/integrations/dayjs"),Bc=require("simple-uploader.js"),uu=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 du=require("element-ui/packages/color-picker/src/color"),pu=require("element-ui/src/utils/clickoutside"),hu=require("element-ui/lib/loading"),mu=require("element-ui/lib/message-box"),fu=require("countup.js"),Ze=require("overlayscrollbars");require("overlayscrollbars/css/OverlayScrollbars.css");const Ue=require("vue"),vu=require("echarts/core"),O=require("@web-utils/integrations/lodash"),na=require("resize-detector"),Te=require("@web-utils/integrations/resize"),_u=require("element-ui/src/mixins/emitter"),gu=require("element-ui/src/utils/util"),ia=require("element-ui/lib/dialog"),yu=require("@web-utils/vue/directives/dialog-drag"),bu=require("bpmn-js/lib/NavigatedViewer"),Ns=require("diagram-js/lib/navigation/zoomscroll/ZoomScroll"),xu=require("element-ui/lib/col"),$u=require("element-ui/lib/form-item"),wu=require("element-ui/lib/cascader"),Cu=require("element-ui/lib/checkbox-group"),we=require("element-ui/lib/input"),Su=require("element-ui/lib/time-picker"),ku=require("element-ui/lib/radio-group"),Eu=require("element-ui/lib/select"),Fu=require("element-ui/lib/switch"),Iu=require("element-ui/lib/scrollbar"),pe=require("vuedraggable"),Tu=require("monaco-editor/esm/vs/editor/editor.api");require("monaco-editor/esm/vs/basic-languages/javascript/javascript.contribution");require("@wangeditor/editor/dist/css/style.css");const sa=require("@wangeditor/editor"),ye=require("highlight.js/lib/core");require("highlight.js/styles/atom-one-dark-reasonable.css");const Bu=require("vue-cropper"),Au=require("viewerjs");require("viewerjs/dist/viewer.css");const Ou=require("element-ui/src/mixins/focus"),Mu=require("element-ui/src/directives/repeat-click"),Pu=require("photoswipe");require("photoswipe/dist/photoswipe.css");const Du=require("bpmn-js/lib/Modeler"),Lu=require("bpmn-js-token-simulation"),ie=require("min-dash"),Ru=require("x2js"),Nu=require("highlight.js/lib/languages/xml"),ju=require("highlight.js/lib/languages/json"),zu=require("element-ui/lib/utils/clickoutside"),Ku=require("lodash");require("tinymce/skins/lightgray/skin.min.css");const Wu=require("tinymce"),Vu=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 Ac(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,i.get?i:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const se=Ac(vu),Q=Ac(Tu);var Uu=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"address-input-wrapper flex-row"},[t("div",{staticClass:"address-input-item-wrapper"},[t("ElCascader",{attrs:{options:e.options,disabled:e.inputDisabled,props:{label:"name",value:e.labelAsValue?"name":"id"}},model:{value:e.internalVal.address,callback:function(i){e.$set(e.internalVal,"address",i)},expression:"internalVal.address"}})],1),t("div",{staticClass:"address-input-item-wrapper flex-item"},[t("ElInput",{attrs:{placeholder:"请输入详细地址!",disabled:e.inputDisabled},model:{value:e.internalVal.detailAddress,callback:function(i){e.$set(e.internalVal,"detailAddress",i)},expression:"internalVal.detailAddress"}})],1)])},Hu=[];function u(e,n,t,i,s,a,r,l){var o=typeof e=="function"?e.options:e;n&&(o.render=n,o.staticRenderFns=t,o._compiled=!0),i&&(o.functional=!0),a&&(o._scopeId="data-v-"+a);var c;if(r?(c=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__),s&&s.call(this,m),m&&m._registeredComponents&&m._registeredComponents.add(r)},o._ssrRegister=c):s&&(c=l?function(){s.call(this,(o.functional?this.parent:this).$root.$options.shadowRoot)}:s),c)if(o.functional){o._injectStyles=c;var p=o.render;o.render=function(v,C){return c.call(C),p(v,C)}}else{var h=o.beforeCreate;o.beforeCreate=h?[].concat(h,c):[c]}return{exports:e,options:o}}const qu={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(e){e&&(this.internalVal.address=e.address,this.internalVal.detailAddress=e.detailAddress)}},internalVal:{immediate:!0,deep:!0,handler(e){!e.address&&!e.detailAddress?this.$emit("input",void 0):this.$emit("input",e)}}}},aa={};var Gu=u(qu,Uu,Hu,!1,Ju,null,null,null);function Ju(e){for(let n in aa)this[n]=aa[n]}const mt=function(){return Gu.exports}();var Qu=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("div",{ref:"point",class:{affix:e.affix},style:e.styles},[e._t("default")],2),t("div",{directives:[{name:"show",rawName:"v-show",value:e.slot,expression:"slot"}],style:e.slotStyle})])},Yu=[];const Xu={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 e="top";return this.offsetBottom>=0&&(e="bottom"),e}},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(e,n){const t=n?"pageYOffset":"pageXOffset",i=n?"scrollTop":"scrollLeft";let s=e[t];return typeof s!="number"&&(s=document.documentElement[i]),s},getOffset(e){const n=e.getBoundingClientRect(),t=this.getScroll(this.container,!0),i=this.getScroll(this.container),s=document.body,a=s.clientTop||0,r=s.clientLeft||0;return{top:n.top+t-a,left:n.left+i-r}},handleScroll(){const e=this.affix,n=this.getScroll(this.container,!0),t=this.getOffset(this.$el),i=this.container.innerHeight,s=this.$el.getElementsByTagName("div")[0].offsetHeight;t.top-this.offsetTop<n&&this.offsetType==="top"&&!e?(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:`${t.left}px`,width:`${this.$el.offsetWidth}px`},this.$emit("on-change",!0)):t.top-this.offsetTop>n&&this.offsetType==="top"&&e&&(this.slot=!1,this.slotStyle={},this.affix=!1,this.styles=null,this.$emit("on-change",!1)),t.top+this.offsetBottom+s>n+i&&this.offsetType==="bottom"&&!e?(this.affix=!0,this.styles={bottom:`${this.offsetBottom}px`,left:`${t.left}px`,width:`${this.$el.offsetWidth}px`},this.$emit("on-change",!0)):t.top+this.offsetBottom+s<n+i&&this.offsetType==="bottom"&&e&&(this.affix=!1,this.styles=null,this.$emit("on-change",!1))}}},ra={};var Zu=u(Xu,Qu,Yu,!1,ed,null,null,null);function ed(e){for(let n in ra)this[n]=ra[n]}const ft=function(){return Zu.exports}();var td=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticStyle:{"padding-top":"4px"}},e._l(e.menu,function(i){return t("div",{key:i.key,staticClass:"aside-menu-item hover-active",class:{active:e.$route.path===i.path},on:{click:function(s){return e.$router.push(i.path)}}},[e._t("default",function(){return[t("i",{staticClass:"egd-icon-common",class:i.icon}),e._v(" "+e._s(i.label)+" ")]},{item:i})],2)}),0)},nd=[];const id={name:"AsideMenu",props:{menu:{type:Array,default:()=>[]}}},la={};var sd=u(id,td,nd,!1,ad,null,null,null);function ad(e){for(let n in la)this[n]=la[n]}const vt=function(){return sd.exports}();var rd=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("span",{class:["avue-avatar",e.sizeCls,"avue-avatar__icon"],style:e.sizeStyle},[e.src?t("img",{staticClass:"avue-avatar__images",attrs:{src:e.src,alt:""}}):e.icon?t("i",{class:e.icon}):t("span",{ref:"avatarChildren",staticClass:"avue-avatar__string",style:e.sizeChildrenStyle},[e._t("default")],2)])},ld=[];const et="avue-avatar",od={name:"Avatar",props:{src:String,shape:{validator:e=>["circle","square"].includes(e),type:String,default:"circle"},size:{validator:e=>typeof e=="number"||["small","large","default"].includes(e),default:"default"},icon:String},data(){return{scale:1}},computed:{sizeChildrenStyle(){let e={};const n=`scale(${this.scale}) translateX(-50%)`;return e={msTransform:n,WebkitTransform:n,transform:n},typeof size=="number"&&(e.lineHeight=`${this.size}px`),e},sizeCls(){return{[`${et}--${this.shape}`]:this.shape,[`${et}--lg`]:this.size==="large",[`${et}--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 e=this.$refs.avatarChildren;if(e){const n=e.offsetWidth,t=this.$el.getBoundingClientRect().width;t-8<n?this.scale=(t-8)/n:this.scale=1}}}},oa={};var cd=u(od,rd,ld,!1,ud,null,null,null);function ud(e){for(let n in oa)this[n]=oa[n]}const _t=function(){return cd.exports}(),dd={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}},pd={name:"AwesomeButton",mixins:[dd],props:{text:{type:String,default:""}},data(){return{isLoading:!1}},methods:{onClick(e){return _(this,null,function*(){this.isLoading=!0;const{click:n}=this.$listeners;if(d.isFunction(n))try{yield n(e)}catch(t){d.error.call(this,t)}this.isLoading=!1})}},render(e){var t,i;const n=(i=(t=this.$scopedSlots).default)==null?void 0:i.call(t);return e("ElButton",{on:{click:this.onClick},props:E(f({},this.$props),{disabled:this.isLoading})},n&&(n[0].tag||n[0].text)?n:this.text)}};let hd,md;const ca={};var fd=u(pd,hd,md,!1,vd,null,null,null);function vd(e){for(let n in ca)this[n]=ca[n]}const gt=function(){return fd.exports}();var _d=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("ul",{staticClass:"capsule-tab"},e._l(e.tabs,function(i){return t("li",{key:i.value,class:["tab-item",{active:e.value===i.value,single:e.tabs.length===1}],on:{click:function(s){return e.$emit("input",i.value)}}},[e._v(" "+e._s(i.label)+" ")])}),0)},gd=[];const yd={name:"CapsuleTab",props:{tabs:{type:Array,default:()=>[]},value:{type:String}}},ua={};var bd=u(yd,_d,gd,!1,xd,null,null,null);function xd(e){for(let n in ua)this[n]=ua[n]}const yt=function(){return bd.exports}();var $d=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"avue-card"},[t("ElRow",{attrs:{span:24,gutter:e.gutter}},[e.option.addBtn?t("ElCol",{attrs:{span:e.span}},[t("div",{staticClass:"avue-card__item avue-card__item--add",on:{click:function(i){return e.rowAdd()}}},[t("i",{staticClass:"el-icon-plus"}),t("span",[e._v("添加")])])]):e._e(),e._l(e.data,function(i,s){return t("ElCol",{key:s,attrs:{span:e.span}},[t("div",{staticClass:"avue-card__item",on:{click:function(a){return e.rowClick(i,s)}}},[t("div",{staticClass:"avue-card__body"},[t("div",{staticClass:"avue-card__avatar"},[t("img",{attrs:{src:i[e.imgKey],alt:""}})]),t("div",{staticClass:"avue-card__detail"},[t("div",{staticClass:"avue-card__title"},[e._v(" "+e._s(i[e.titleKey])+" ")]),t("div",{staticClass:"avue-card__info"},[e._v(" "+e._s(i[e.infoKey])+" ")])])]),t("div",{staticClass:"avue-card__menu"},[e._t("menu",null,{index:s,row:i})],2)])])})],2)],1)},wd=[];const Cd={img:"img",title:"title",info:"info"},Sd={name:"Card",props:{option:{type:Object,default:()=>({})},data:{type:Array,default:()=>[]}},data(){return{propsDefault:Cd}},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(e,n){this.$emit("row-click",e,n)}}},da={};var kd=u(Sd,$d,wd,!1,Ed,null,null,null);function Ed(e){for(let n in da)this[n]=da[n]}const bt=function(){return kd.exports}();var Fd=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{class:["avue-carousel",{"avue-carousel--fullscreen":e.option.fullscreen}]},[t("ElCarousel",{attrs:{type:e.option.type,height:`${e.option.height}px`,autoplay:e.option.autoplay,interval:e.option.interval,"indicator-position":"outside"}},e._l(e.data,function(i,s){return t("ElCarouselItem",{key:s},[t("div",{staticClass:"avue-carousel__item"},[t("a",{attrs:{href:i.href?i.href:"javascript:void(0);",target:i.target}},[t("div",{staticClass:"avue-carousel__img",style:{backgroundImage:`url(${i.src})`}}),i.title?t("div",{staticClass:"avue-carousel__title"},[e._v(e._s(i.title))]):e._e()])])])}),1)],1)},Id=[];const Td={name:"Carousel",props:{option:{type:Object,default:()=>{}}},computed:{data(){return this.option.data||[]}}},pa={};var Bd=u(Td,Fd,Id,!1,Ad,null,null,null);function Ad(e){for(let n in pa)this[n]=pa[n]}const xt=function(){return Bd.exports}(),Od="fy-",I={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"},ha={name:"name",url:"url",fileName:"file",res:""},He=["dates","date","datetime","datetimerange","daterange","time","timerange","week","month","monthrange","year"],Md=["tree","number","icon","color","table","map"],qe=["img","array","url"],js=["cascader","tree","select"],Oc=["slider"],zs=qe.concat(["upload","dynamic","map","checkbox","cascader","dynamic","timerange","monthrange","daterange","datetimerange","dates"]),Pd=He.concat(["select","checkbox","radio","cascader","tree","color","icon","table","map"]),ze=" | ",be=",",tt={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)/},xe=(e,n)=>{if(!d.isBlank(e))return tt.audio.test(e)||n==="audio"?"audio":tt.video.test(e)||n==="video"?"video":tt.img.test(e)||n==="img"?"img":!1};function L(e=0,n=2){return Number(e.toFixed(n))}function Ge(e,n=""){let t=$(e);return d.isBlank(n)||n.split(".").forEach(i=>{t=d.isBlank(t[i])?"":t[i]}),t}const V=e=>new Function(`return ${e}`)();function Dd(e,n="",t){let i;const s=d.getObjType(t);return d.isBlank(t)?s==="array"?i=`obj.${n}=[]`:s==="object"?i=`obj.${n}={}`:["number","boolean"].includes(s)?i=`obj.${n}=undefined`:i=`obj.${n}=''`:s==="string"?i=`obj.${n}='${t}'`:i=`obj.${n}=${t}`,V(i),e}function Ld(e,n){typeof e=="object"&&e instanceof Blob&&(e=URL.createObjectURL(e));const t=document.createElement("a");t.href=e,t.download=n||"";let i;window.MouseEvent?i=new MouseEvent("click"):(i=document.createEvent("MouseEvents"),i.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null)),t.dispatchEvent(i)}function Rd(e){return e.forEach((n,t)=>{e[t]=Number(n)}),e}function Mc(...e){let n=e[0]||{},t=!1;const i=Array.prototype.slice.call(e);let s=1,a,r,l,o,c=!1;for(typeof n=="boolean"&&(t=n,s++,n=e[1]);s<i.length;s++)if((a=i[s])!=null)for(l in a)o=a[l],r=n[l],t&&(toString.call(o)==="[object Object]"||(c=toString.call(o)==="[object Array]"))?(c?r=toString.call(r)==="[object Array]"?r:[]:r=toString.call(r)==="[object Object]"?r:{},n[l]=Mc(t,r,o)):o!==void 0&&o!==r&&(n[l]=o);return n}function Nd(e,n){const t=n.split("."),i=t.splice(0,1)[0],s={};if(s[i]={},t.length>=2){const a="{",r="}";let l="";t.forEach(o=>{l=`${l}${a}"${o}":`}),l=`${l}""`;for(let o=0;o<t.length;o++)l=`${l}${r}`;l=JSON.parse(l),s[i]=l}return e=Mc(!0,e,s),e}function Pc(e,n){const t=e.split(","),i=t[0].match(/:(.*?);/)[1],s=atob(t[1]);let a=s.length;const r=new Uint8Array(a);for(;a--;)r[a]=s.charCodeAt(a);return new File([r],n,{type:i})}function jd(e,n,t="prop"){let i=-1;const s=(()=>{let a;return e.forEach(r=>{r.column?a="group":r.children&&(a="tree")}),a})();return s==="group"?e.forEach(a=>{const r=ma(a.column,n,t,!0);r!==-1&&(i=r)}):s==="tree"?i=Dc(e,n,{value:t},!0):i=ma(e,n,t,!0),i}function zd(){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",n=e.length;let t="";for(let i=0;i<16;i++)t+=e.charAt(Math.floor(Math.random()*n));return t}const $=e=>{const n=d.getObjType(e);let t;if(n==="array")t=[];else if(n==="object")t={};else return e;if(n==="array"){e=e;let i=0;const s=e.length;for(;i<s;i++)e[i]&&delete e[i].$parent,t.push($(e[i]))}else if(n==="object")for(const i in e){const s=e[i];s&&delete s.$parent,t[i]=$(e[i])}return t},w=(e,n="")=>(e||(e=n),e?(e=`${e}`,e.indexOf("%")===-1&&e.indexOf("px")===-1&&(e=`${e}px`),e):""),$t=(e,n)=>d.isBlank(e)?e:n==="number"?Number(e):n==="string"?`${e}`:e,Ks=(e=[],n={},t)=>{const i=n.value||I.value,s=n.children||I.children;return e.forEach(a=>{a[i]=$t(a[i],t),a[s]&&Ks(a[s],n,t)}),e},Kd=(e,n,t)=>{if(d.isBlank(e))return n;const i=n instanceof Array,s=i?n:[n];t=t||I;const a=[];for(let r=0;r<s.length;r++)a.push(Dc(e,s[r],t)||s[r]);return i?a.join(ze):a.join()},oe=(e,n=["","$"],t=!0)=>{const i=t?$(e):e;for(const s in i)n.includes("")&&d.isBlank(i[s])&&delete i[s],n.includes("$")&&s.indexOf("$")!==-1&&delete i[s];return i},Wd=(e=[],n={})=>{let t=$(e);const i=n[I.groups]||I.groups;return e.forEach(s=>{s[i]&&(t=t.concat(s[i]))}),t},Dc=(e,n,t,i=null)=>{let s;i||(e=Wd(e,t));const a=r=>{const l=t.label||I.label,o=t.value||I.value,c=t.children||I.children;for(let p=0;p<r.length;p++){const h=r[p],m=h[c]||[];h[o]===n?s=i?h:h[l]:a(m)}};return a(e),s},Vd=e=>(Array.isArray(e)?e:e.data)||[],Ud=(e,n="",t=null)=>{const i=n.split(".");let s=e;return i[0]===""&&t!=="object"?Vd(e):(i[0]!==""&&i.forEach(a=>{s=s[a]}),s)},ma=(e,n,t,i)=>{t=t||I.value;for(let s=0;s<e.length;s++)if(e[s][t]===n)return i?e[s]:s;return-1},Hd=(e="",n)=>{const t=e.toString().length;e="";for(let i=0;i<t;i++)e=e+n;return e},qd=(e=[],n,t)=>e.filter(i=>!d.isBlank(i[n])).sort((i,s)=>t(i,s)).concat(e.filter(i=>d.isBlank(i[n]))),Gd=(e,n)=>e?(n.forEach(t=>{if(t.includes("$"))delete e[t];else if(!d.isBlank(e[t])){const i=d.getObjType(e[t]);i==="array"?e[t]=[]:i==="object"?e[t]={}:["number","boolean"].includes(i)?e[t]=void 0:e[t]=""}}),e):{},M=(e,n)=>typeof e=="boolean"?e:d.isBlank(e)?n:e;function Je(e={},n){n=n||this;const t=["uploadPreview","uploadBefore","uploadAfter","uploadDelete","uploadError","uploadExceed"],i={};return e.type==="upload"?t.forEach(s=>{e[s]||(i[s]=n[s])}):t.forEach(s=>{i[s]=n[s]}),i}var Jd=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"avue-chat",style:e.heightStyleName,on:{keyup:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.handleSend.apply(null,arguments)}}},[t("audio",{ref:"chatAudio"},[t("source",{attrs:{src:e.audio[0],type:"audio/ogg"}}),t("source",{attrs:{src:e.audio[1],type:"audio/mpeg"}}),t("source",{attrs:{src:e.audio[2],type:"audio/wav"}})]),t("div",{staticClass:"web__logo"},[t("img",{staticClass:"web__logo-img",attrs:{src:e.config.img,alt:""}}),t("div",{staticClass:"web__logo-info"},[t("p",{staticClass:"web__logo-name"},[e._v(" "+e._s(e.config.name)+" ")]),t("p",{staticClass:"web__logo-dept"},[e._v(" "+e._s(e.config.dept)+" ")])]),e._t("header")],2),t("div",{staticClass:"web__content"},[t("div",{style:e.widthStyleName},[t("div",{ref:"main",staticClass:"web__main"},e._l(e.list,function(i,s){return t("div",{key:s,staticClass:"web__main-item",class:{"web__main-item--mine":i.mine}},[t("div",{staticClass:"web__main-user"},[t("img",{attrs:{src:i.img,alt:""}}),t("cite",[e._v(" "+e._s(i.name)+" "),t("i",[e._v(e._s(i.date))])])]),t("div",{staticClass:"web__main-text"},[t("div",{staticClass:"web__main-arrow"}),t("span",{ref:"content",refInFor:!0,domProps:{innerHTML:e._s(e.handleDetail(i.text.text))}}),i.text.list?e._e():t("ul",{staticClass:" web__main-list"},e._l(i.text.list,function(a,r){return t("li",{key:r,on:{click:function(l){return e.handleItemMsg(a)}}},[e._v(" "+e._s(a.text)+" ")])}),0)])])}),0),t("div",{staticClass:"web__footer",style:e.widthStyleName},[t("div",{staticClass:"web__tools"},[e.tools.img?t("i",{staticClass:"el-icon-picture-outline",on:{click:function(i){return e.handleUpload("img")}}}):e._e(),e.tools.video?t("i",{staticClass:"el-icon-video-camera",on:{click:function(i){return e.handleUpload("video")}}}):e._e(),e.tools.file?t("i",{staticClass:"el-icon-folder-opened",on:{click:function(i){return e.handleUpload("file")}}}):e._e()]),t("div",{staticClass:"web__msg"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.msg,expression:"msg"}],staticClass:"web__msg-input",attrs:{rows:"2",placeholder:e.placeholder},domProps:{value:e.msg},on:{input:function(i){i.target.composing||(e.msg=i.target.value)}}}),t("div",{staticClass:"web__msg-menu"},[t("ElDropdown",{staticClass:"web__msg-submit",attrs:{"split-button":"",type:"primary",size:"mini",trigger:"click"},on:{click:e.handleSend},scopedSlots:e._u([{key:"dropdown",fn:function(){return[t("ElDropdownMenu",[t("ElDropdownItem",[t("ElPopover",{attrs:{placement:"top",width:"160"},scopedSlots:e._u([{key:"reference",fn:function(){return[t("ElButton",{attrs:{type:"text",icon:"el-icon-plus"}})]},proxy:!0}]),model:{value:e.visible,callback:function(i){e.visible=i},expression:"visible"}},[t("ElInput",{staticStyle:{"margin-bottom":"10px"},attrs:{size:"mini",rows:3,"show-word-limit":"",maxlength:"100",placeholder:"请输入快捷回复语",type:"textarea"},model:{value:e.keys,callback:function(i){e.keys=i},expression:"keys"}}),t("div",{staticStyle:{margin:"0","text-align":"right"}},[t("ElButton",{attrs:{size:"mini",type:"text"},on:{click:function(i){e.visible=!1}}},[e._v(" 取消 ")]),t("ElButton",{attrs:{type:"primary",size:"mini"},on:{click:e.addKey}},[e._v(" 确定 ")])],1)],1)],1),t("ElScrollbar",{staticStyle:{height:"100px"}},e._l(e.keylist,function(i,s){return t("ElDropdownItem",{key:s,nativeOn:{click:function(a){return e.sendKey(i)}}},[t("ElTooltip",{attrs:{effect:"dark",content:i,placement:"top"}},[t("span",[e._v(" "+e._s(i.substr(0,10))+e._s(i.length>10?"...":""))])])],1)}),1)],1)]},proxy:!0}])},[e._v(" 发送 ")])],1)])])]),e._t("default")],2),e.upload.box?t("div",[t("ElementDialog",{attrs:{title:e.upload.title,"body-padding":!1,visible:e.upload.box,width:"30%"},on:{"update:visible":function(i){return e.$set(e.upload,"box",i)}},scopedSlots:e._u([{key:"footer",fn:function(){return[t("ElButton",{attrs:{size:"small"},on:{click:function(i){e.upload.box=!1}}},[e._v("取 消")]),t("ElButton",{attrs:{type:"primary",size:"small"},on:{click:e.uploadSubmit}},[e._v("确 定")])]},proxy:!0}],null,!1,99567638)},[t("ElForm",{ref:"form",attrs:{model:e.upload}},[t("ElFormItem",{attrs:{prop:"src",rules:[{required:!0,message:"地址不能为空"}]}},[t("ElInput",{staticStyle:{"margin-bottom":"10px"},attrs:{size:"mini",rows:4,"show-word-limit":"",maxlength:"100",placeholder:"请输入地址",type:"textarea"},model:{value:e.upload.src,callback:function(i){e.$set(e.upload,"src",i)},expression:"upload.src"}})],1)],1)],1)],1):e._e(),e.show?t("div",[t("ElementDialog",{staticClass:"web__dialog",attrs:{visible:e.show,"body-padding":!1,title:"预览",width:"40%","before-close":e.handleClose},on:{"update:visible":function(i){e.show=i}}},[e.imgSrc?t("img",{staticStyle:{width:"100%","object-fit":"cover"},attrs:{src:e.imgSrc}}):e._e(),e.videoSrc?t("video",{staticStyle:{width:"100%","object-fit":"cover"},attrs:{src:e.videoSrc,controls:"controls"}}):e._e(),e.audioSrc?t("audio",{staticStyle:{width:"100%","object-fit":"cover"},attrs:{src:e.audioSrc,controls:"controls"}}):e._e()])],1):e._e()])},Qd=[];const Yd={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(e){this.$emit("input",e),this.$emit("change",e)}},heightStyleName(){return{height:w(this.height)}},widthStyleName(){return{width:w(this.width)}},msgActive(){return this.msg.replace(/[\r\n]/g,"")}},methods:{uploadSubmit(){this.$refs.form.validate(e=>{e&&(this.upload.box=!1,this.$emit("submit",this.getDetail(this.upload)))})},handleUpload(e){this.upload.type=e,this.upload.src="",e==="img"?this.upload.title="图片上传":e==="video"?this.upload.title="视频上传":e==="file"&&(this.upload.title="文件上传"),this.upload.box=!0},handleClose(e){this.imgSrc=void 0,this.videoSrc=void 0,this.audioSrc=void 0,e()},addKey(){this.keys!==""&&(this.$emit("keyadd",this.keys),this.keys=""),this.visible=!1},sendKey(e){this.$emit("keysend",e)},getAudio(){this.$refs.chatAudio.play()},getNotification(e){const n=this,t=Notification||window.Notification;if(t){let s=function(){t.requestPermission(function(r){r==="granted"?a():console.log("用户无情残忍的拒绝了你!!!")})},a=function(){const r=new Notification(n.config.name,{body:e,icon:n.config.img});r.onshow=function(){n.getAudio(),setTimeout(()=>{r.close()},2500)},r.onclick=function(){r.close()}};const i=t.permission;i==="granted"?a():i==="denied"?console.log("用户拒绝了你!!!"):s()}},pushMsg(e={}){const n=e.mine===!0,t=e.text||{},s={date:e.date||ae.formatDate(Date.now(),"YYYY-MM-DD HH:mm:ss"),text:(()=>typeof t!="object"?{text:t}:t)(),mine:n,img:n?this.config.myImg:this.config.img,name:n?this.config.myName:this.config.name};this.list.push(s),setTimeout(()=>{this.setScroll()},50)},setScroll(e){this.$nextTick(()=>{this.$refs.main.scrollTop=e||this.$refs.main.scrollHeight})},handleSend(){this.msgActive&&this.$emit("submit")},handleItemMsg(e){this.$emit("submit",e.ask)},handleDetail(e=""){const n=e;return setTimeout(()=>{(this.$refs.content||[]).forEach(i=>{for(let s=0;s<i.children.length;s++){const a=i.children[s];a.getAttribute("data-flag")!=="0"&&(a.setAttribute("data-flag",0),a.onclick=()=>{this.handleEvent(a.dataset)},a.tagName==="IMG"?(a.className="web__msg--img",a.src=a.getAttribute("data-src")):a.tagName==="VIDEO"?(a.className="web__msg--video",a.src=a.getAttribute("data-src")):a.tagName==="AUDIO"?(a.className="web__msg--audio",a.controls="controls",a.src=a.getAttribute("data-src")):a.tagName==="FILE"?(a.className="web__msg--file",a.innerHTML=`<h2>File</h2><span>${a.getAttribute("data-name")}</span>`):a.tagName==="MAP"&&(a.className="web__msg--file web__msg--map",a.innerHTML=`<h2>Map</h2><span>${a.getAttribute("data-longitude")} , ${a.getAttribute("data-latitude")}<br />${a.getAttribute("data-address")}</span>`),this.setScroll())}})},0),n},getDetail(e={}){const{type:n,src:t,name:i,longitude:s,latitude:a,address:r}=e;if(n==="img")return`<img data-type="IMG" data-src="${t}" alt=""/>`;if(n==="video")return`<video data-type="VIDEO" data-src="${t}"></video>`;if(n==="audio")return`<audio data-type="AUDIO" data-src="${t}"></audio>`;if(n==="file")return`<file data-type="FILE" data-name="${i}" data-src="${t}"></file>`;if(n==="map")return`<map data-type="MAP" data-src="${t}" data-address="${r} " data-latitude="${a}" data-longitude="${s}"></map>`},handleEvent(e){const n=()=>{e.type==="IMG"?(this.imgSrc=e.src,this.show=!0):e.type==="VIDEO"?(this.videoSrc=e.src,this.show=!0):e.type==="AUDIO"?(this.audioSrc=e.src,this.show=!0):e.type==="FILE"&&window.open(e.src)};typeof this.beforeOpen=="function"?this.beforeOpen(e,n):n()},rootSendMsg(e){this.pushMsg({text:e}),this.notice&&this.getNotification(e.text||e)}}},fa={};var Xd=u(Yd,Jd,Qd,!1,Zd,null,null,null);function Zd(e){for(let n in fa)this[n]=fa[n]}const wt=function(){return Xd.exports}();function ep(e){const n=Math.floor(e/31536e3);if(n)return`${n} 年${r(n)}`;const t=Math.floor((e%=31536e3)/86400);if(t)return`${t} 天${r(t)}`;const i=Math.floor((e%=86400)/3600);if(i)return`${i} 时${r(i)}`;const s=Math.floor((e%=3600)/60);if(s)return`${s} 分${r(s)}`;const a=e%60;return`${a} 秒${r(a)}`;function r(l){return l>1,""}}function nt(e){return e.replace(/[A-Z]/g,n=>`-${n.toLowerCase()}`)}var tp=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"uploader"},[e._t("default",function(){return[t("ChunkFileUploaderUnSupport"),t("ChunkFileUploaderDrop",[t("p",[e._v("Drop files here to upload or")]),t("ChunkFileUploaderButton",[e._v("select files")]),t("ChunkFileUploaderButton",{attrs:{directory:!0}},[e._v(" select folder ")])],1),t("ChunkFileUploaderList")]},{files:e.files,fileList:e.fileList,started:e.started})],2)},np=[];const Be="fileAdded",Ae="filesAdded",ip="uploadStart",sp={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 e=new Bc(this.options);this.uploader=e,this.uploader.fileStatusText=this.fileStatusText,e.on("catchAll",this.allEvent),e.on(Be,this.fileAdded),e.on(Ae,this.filesAdded),e.on("fileRemoved",this.fileRemoved),e.on("filesSubmitted",this.filesSubmitted)},destroyed(){const e=this.uploader;e.off("catchAll",this.allEvent),e.off(Be,this.fileAdded),e.off(Ae,this.filesAdded),e.off("fileRemoved",this.fileRemoved),e.off("filesSubmitted",this.filesSubmitted),this.uploader=null},methods:{uploadStart(){this.started=!0},fileAdded(e){if(this.$emit(nt(Be),e),e.ignored)return!1},filesAdded(e,n){if(this.$emit(nt(Ae),e,n),e.ignored||n.ignored)return!1},fileRemoved(e){this.$emit("file-removed",e),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(...e){const n=e[0],i={[Be]:!0,[Ae]:!0,[ip]:"uploadStart"}[n];if(i){if(i===!0)return;this[i].apply(this,e.slice(1))}e[0]=nt(n),this.$emit.apply(this,e)}}},va={};var ap=u(sp,tp,np,!1,rp,null,null,null);function rp(e){for(let n in va)this[n]=va[n]}const Ct=function(){return ap.exports}(),Ce={inject:["uploader"]},Ws={data(){return{support:!0}},mounted(){this.support=this.uploader.uploader.support}};var lp=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("label",{directives:[{name:"show",rawName:"v-show",value:e.support,expression:"support"}],ref:"btn",staticClass:"uploader-btn"},[e._t("default")],2)},op=[];const cp={name:"ChunkFileUploaderButton",mixins:[Ce,Ws],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)})}},_a={};var up=u(cp,lp,op,!1,dp,null,null,null);function dp(e){for(let n in _a)this[n]=_a[n]}const St=function(){return up.exports}();var pp=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{directives:[{name:"show",rawName:"v-show",value:e.support,expression:"support"}],ref:"drop",staticClass:"uploader-drop",class:e.dropClass},[e._t("default")],2)},hp=[];const mp={name:"ChunkFileUploaderDrop",mixins:[Ce,Ws],data(){return{dropClass:""}},mounted(){return _(this,null,function*(){yield this.$nextTick();const e=this.$refs.drop,n=this.uploader.uploader;n.assignDrop(e),n.on("dragenter",this.onDragEnter),n.on("dragleave",this.onDragLeave),n.on("drop",this.onDrop)})},beforeDestroy(){const e=this.$refs.drop,n=this.uploader.uploader;n.off("dragenter",this.onDragEnter),n.off("dragleave",this.onDragLeave),n.off("drop",this.onDrop),n.unAssignDrop(e)},methods:{onDragEnter(){this.dropClass="uploader-dragover"},onDragLeave(){this.dropClass=""},onDrop(){this.dropClass="uploader-droped"}}},ga={};var fp=u(mp,pp,hp,!1,vp,null,null,null);function vp(e){for(let n in ga)this[n]=ga[n]}const kt=function(){return fp.exports}(),ya=["fileProgress","fileSuccess","fileComplete","fileError"];var _p=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"chunk-file-uploader-file",attrs:{status:e.status}},[e._t("default",function(){return[t("div",{staticClass:"chunk-file-uploader-file-info"},[t("div",{staticClass:"chunk-file-uploader-file-name",attrs:{title:e.file.name}},[t("i",{staticClass:"chunk-file-uploader-file-icon",attrs:{icon:e.fileCategory}}),e._v(e._s(e.file.name)+" ")]),t("div",{staticClass:"chunk-file-uploader-file-size"},[e._v(" "+e._s(e.formatedSize)+" ")]),t("div",{staticClass:"chunk-file-uploader-file-status"},[t("span",{directives:[{name:"show",rawName:"v-show",value:!["uploading","md5"].includes(e.status),expression:"!['uploading', 'md5'].includes(status)"}]},[e._v(e._s(e.statusText))]),t("span",{directives:[{name:"show",rawName:"v-show",value:e.status==="md5",expression:"status === 'md5'"}]},[e._v(e._s(e.file.md5Progress))]),t("span",{directives:[{name:"show",rawName:"v-show",value:e.status==="uploading",expression:"status === 'uploading'"}],staticStyle:{"padding-left":"4px"}},[t("span",[e._v(e._s(e.progressStyle.progress))]),e._v(" | "),t("em",[e._v(e._s(e.formatedAverageSpeed))]),e._v(" | "),t("i",[e._v(e._s(e.formatedTimeRemaining))])])]),t("div",{staticClass:"chunk-file-uploader-file-actions"},[t("span",{staticClass:"chunk-file-uploader-file-pause",on:{click:e.pause}}),t("span",{staticClass:"chunk-file-uploader-file-resume",on:{click:e.resume}},[e._v("️")]),t("span",{staticClass:"chunk-file-uploader-file-retry",on:{click:e.retry}}),t("span",{staticClass:"chunk-file-uploader-file-remove",on:{click:e.remove}})])])]},{file:e.file,list:e.list,status:e.status,paused:e.paused,error:e.error,response:e.response,averageSpeed:e.averageSpeed,formatedAverageSpeed:e.formatedAverageSpeed,currentSpeed:e.currentSpeed,isComplete:e.isComplete,isUploading:e.isUploading,size:e.size,formatedSize:e.formatedSize,uploadedSize:e.uploadedSize,progress:e.progress,progressStyle:e.progressStyle,progressingClass:e.progressingClass,timeRemaining:e.timeRemaining,formatedTimeRemaining:e.formatedTimeRemaining,type:e.type,extension:e.extension,fileCategory:e.fileCategory})],2)},gp=[];const yp={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 e=this.extension;let t=this.file.isFolder?"folder":"unknown";const s=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(s).forEach(a=>{s[a].indexOf(e)>-1&&(t=a)}),t},progressStyle(){const e=Math.floor(this.progress*100),n=`translateX(${Math.floor(e-100)}%)`;return{progress:`${e}%`,webkitTransform:n,mozTransform:n,msTransform:n,transform:n}},formatedAverageSpeed(){return`${Bc.utils.formatSize(this.averageSpeed)} / s`},status(){const{isUploading:e,isComplete:n,isError:t,paused:i}=this,{md5Computing:s}=this.file;return s?"md5":n?"success":t?"error":e?"uploading":i?"paused":"waiting"},statusText(){const e=this.status,n=this.file.uploader.fileStatusText;let t=e;return typeof n=="function"?t=n(e,this.response):t=n[e],t||""},formatedTimeRemaining(){const e=this.timeRemaining,n=this.file;if(e===Number.POSITIVE_INFINITY||e===0)return"";let t=ep(e);const i=n.uploader.opts.parseTimeRemaining;return i&&(t=i(e,t)),t}},watch:{status(e,n){n&&e==="uploading"&&n!=="uploading"?this.tid=setTimeout(()=>{this.progressingClass="uploader-file-progressing"},200):(clearTimeout(this.tid),this.progressingClass="")}},mounted(){const e=["paused","error","averageSpeed","currentSpeed"],n=["isComplete","isUploading",{key:"size",fn:"getSize"},{key:"formatedSize",fn:"getFormatSize"},{key:"uploadedSize",fn:"sizeUploaded"},"progress","timeRemaining",{key:"type",fn:"getType"},{key:"extension",fn:"getExtension"}];e.forEach(s=>{this[s]=this.file[s]}),n.forEach(s=>{typeof s=="string"?this[s]=this.file[s]():this[s.key]=this.file[s.fn]()});const t=this._handlers={},i=s=>(t[s]=(...a)=>{this.fileEventsHandler(s,a)},t[s]);ya.forEach(s=>{this.file.uploader.on(s,i(s))})},destroyed(){ya.forEach(e=>{this.file.uploader.off(e,this._handlers[e])}),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(e){let n=e;try{n=JSON.parse(e)}catch(t){}this.response=n},fileEventsHandler(e,n){const t=n[0],i=n[1],s=this.list?t:i;if(this.file===s){if(this.list&&e==="fileSuccess"){this.processResponse(n[2]);return}this[`_${e}`].apply(this,n)}},_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(e,n,t){e&&this.processResponse(t),this._fileProgress(),this.error=!1,this.isComplete=!0,this.isUploading=!1},_fileComplete(){this._fileSuccess()},_fileError(e,n,t){this._fileProgress(),this.processResponse(t),this.error=!0,this.isComplete=!1,this.isUploading=!1}}},ba={};var bp=u(yp,_p,gp,!1,xp,null,null,null);function xp(e){for(let n in ba)this[n]=ba[n]}const Et=function(){return bp.exports}();var $p=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"uploader-files"},[e._t("default",function(){return[t("ul",e._l(e.files,function(i){return t("li",{key:i.id},[t("ChunkFileUploaderFile",{attrs:{file:i}})],1)}),0)]},{files:e.files})],2)},wp=[];const Cp={name:"ChunkFileUploaderFiles",mixins:[Ce],computed:{files(){return this.uploader.files}}},xa={};var Sp=u(Cp,$p,wp,!1,kp,null,null,null);function kp(e){for(let n in xa)this[n]=xa[n]}const Ft=function(){return Sp.exports}();var Ep=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"uploader-list"},[e._t("default",function(){return[t("ul",e._l(e.fileList,function(i){return t("li",{key:i.id},[t("ChunkFileUploaderFile",{attrs:{file:i,list:!0}})],1)}),0)]},{fileList:e.fileList})],2)},Fp=[];const Ip={name:"ChunkFileUploaderList",mixins:[Ce],computed:{fileList(){return this.uploader.fileList}}},$a={};var Tp=u(Ip,Ep,Fp,!1,Bp,null,null,null);function Bp(e){for(let n in $a)this[n]=$a[n]}const It=function(){return Tp.exports}();var Ap=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{directives:[{name:"show",rawName:"v-show",value:!e.support,expression:"!support"}],staticClass:"uploader-unsupport"},[e._t("default",function(){return[e._m(0)]})],2)},Op=[function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("p",[e._v(" Your browser, unfortunately, is not supported by Uploader.js. The library requires support for "),t("a",{attrs:{href:"http://www.w3.org/TR/FileAPI/"}},[e._v("the HTML5 File API")]),e._v(" along with "),t("a",{attrs:{href:"http://www.w3.org/TR/FileAPI/#normalization-of-params"}},[e._v("file slicing")]),e._v(". ")])}];const Mp={name:"ChunkFileUploaderUnSupport",mixins:[Ce,Ws]},wa={};var Pp=u(Mp,Ap,Op,!1,Dp,null,null,null);function Dp(e){for(let n in wa)this[n]=wa[n]}const Tt=function(){return Pp.exports}();var Lp=function(){var e={},n=function(){var t={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(s,a,r,l,o,c,p){var h=c.length-1;switch(o){case 1:this.$=s.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(s);break;case 3:this.$=null;break;case 4:this.$=!0;break;case 5:this.$=!1;break;case 6:return this.$=c[h-1];case 13:this.$={};break;case 14:this.$=c[h-1];break;case 15:this.$=[c[h-2],c[h]];break;case 16:this.$={},this.$[c[h][0]]=c[h][1];break;case 17:this.$=c[h-2],c[h-2][c[h][0]]=c[h][1];break;case 18:this.$=[];break;case 19:this.$=c[h-1];break;case 20:this.$=[c[h]];break;case 21:this.$=c[h-2],c[h-2].push(c[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(s,a){throw new Error(s)},parse:function(s){function a(G){o.length=o.length-2*G,c.length=c.length-G,p.length=p.length-G}function r(){var G;return G=l.lexer.lex()||1,typeof G!="number"&&(G=l.symbols_[G]||G),G}var l=this,o=[0],c=[null],p=[],h=this.table,m="",v=0,C=0,x=0,g=2,y=1;this.lexer.setInput(s),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,typeof this.lexer.yylloc=="undefined"&&(this.lexer.yylloc={});var S=this.lexer.yylloc;p.push(S),typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);for(var b,k,T,A,q,K={},U,N,ke,Ee;;){if(T=o[o.length-1],this.defaultActions[T]?A=this.defaultActions[T]:(b==null&&(b=r()),A=h[T]&&h[T][b]),typeof A=="undefined"||!A.length||!A[0]){if(!x){Ee=[];for(U in h[T])this.terminals_[U]&&U>2&&Ee.push("'"+this.terminals_[U]+"'");var fe="";this.lexer.showPosition?fe="Parse error on line "+(v+1)+`:
|
|
3
3
|
`+this.lexer.showPosition()+`
|
|
4
|
-
Expecting `+
|
|
5
|
-
`+
|
|
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
|
-
`),
|
|
8
|
-
`)],2),
|
|
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
|
-
`);let
|
|
11
|
-
`)}function
|
|
12
|
-
${
|
|
13
|
-
${
|
|
14
|
-
${
|
|
15
|
-
${
|
|
16
|
-
${
|
|
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
|
|
4
|
+
Expecting `+Ee.join(", ")+", got '"+this.terminals_[b]+"'":fe="Parse error on line "+(v+1)+": Unexpected "+(b==1?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(fe,{text:this.lexer.match,token:this.terminals_[b]||b,line:this.lexer.yylineno,loc:S,expected:Ee})}if(x==3){if(b==y)throw new Error(fe||"Parsing halted.");C=this.lexer.yyleng,m=this.lexer.yytext,v=this.lexer.yylineno,S=this.lexer.yylloc,b=r()}for(;!(g.toString()in h[T]);){if(T==0)throw new Error(fe||"Parsing halted.");a(1),T=o[o.length-1]}k=b,b=g,T=o[o.length-1],A=h[T]&&h[T][g],x=3}if(A[0]instanceof Array&&A.length>1)throw new Error("Parse Error: multiple actions possible at state: "+T+", token: "+b);switch(A[0]){case 1:o.push(b),c.push(this.lexer.yytext),p.push(this.lexer.yylloc),o.push(A[1]),b=null,k?(b=k,k=null):(C=this.lexer.yyleng,m=this.lexer.yytext,v=this.lexer.yylineno,S=this.lexer.yylloc,x>0&&x--);break;case 2:if(N=this.productions_[A[1]][1],K.$=c[c.length-N],K._$={first_line:p[p.length-(N||1)].first_line,last_line:p[p.length-1].last_line,first_column:p[p.length-(N||1)].first_column,last_column:p[p.length-1].last_column},q=this.performAction.call(K,m,C,v,this.yy,A[1],c,p),typeof q!="undefined")return q;N&&(o=o.slice(0,-1*N*2),c=c.slice(0,-1*N),p=p.slice(0,-1*N)),o.push(this.productions_[A[1]][0]),c.push(K.$),p.push(K._$),ke=h[o[o.length-2]][o[o.length-1]],o.push(ke);break;case 3:return!0}}return!0}},i=function(){var s={EOF:1,parseError:function(a,r){if(!this.yy.parseError)throw new Error(a);this.yy.parseError(a,r)},setInput:function(a){return this._input=a,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 a=this._input[0];this.yytext+=a,this.yyleng++,this.match+=a,this.matched+=a;var r=a.match(/\n/);return r&&this.yylineno++,this._input=this._input.slice(1),a},unput:function(a){return this._input=a+this._input,this},more:function(){return this._more=!0,this},less:function(a){this._input=this.match.slice(a)+this._input},pastInput:function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var a=this.pastInput(),r=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
|
|
5
|
+
`+r+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var a,r,l,o,c;this._more||(this.yytext="",this.match="");for(var p=this._currentRules(),h=0;h<p.length&&(l=this._input.match(this.rules[p[h]]),!(l&&(!r||l[0].length>r[0].length)&&(r=l,o=h,!this.options.flex)));h++);if(r)return c=r[0].match(/\n.*/g),c&&(this.yylineno+=c.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:c?c[c.length-1].length-1:this.yylloc.last_column+r[0].length},this.yytext+=r[0],this.match+=r[0],this.yyleng=this.yytext.length,this._more=!1,this._input=this._input.slice(r[0].length),this.matched+=r[0],a=this.performAction.call(this,this.yy,this,p[o],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a||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 a=this.next();return typeof a!="undefined"?a:this.lex()},begin:function(a){this.conditionStack.push(a)},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(a){this.begin(a)}};return s.options={},s.performAction=function(a,r,l,o){switch(l){case 0:break;case 1:return 6;case 2:return r.yytext=r.yytext.substr(1,r.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"}},s.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)/,/^(?:$)/,/^(?:.)/],s.conditions={INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}},s}();return t.lexer=i,t}();return e.parser=n,e.parse=function(){return n.parse.apply(n,arguments)},e}(),Rp=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"code-mirror-editor"},[t("textarea",{ref:"editor"})])},Np=[];window.jsonlint=Lp;const it=e=>{if(e)try{return JSON.stringify(JSON.parse(e),null,1)}catch(n){}return e},jp=e=>{if(e)try{return JSON.stringify(JSON.parse(e))}catch(n){}return e},zp={name:"CodeMirrorEditor",inject:{elForm:{default:""},elFormItem:{default:""}},props:{value:{type:String,default:""}},watch:{value(e){var n;(n=this.editor)==null||n.setValue(it(e))}},mounted(){this.editor=uu.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(it(this.value)),this.editor.on("blur",this.change),this.editor.on("focus",this.focus),this.editor.setOption("extraKeys",{"Ctrl-Alt-L"(e){e.setValue(it(e.getValue()),null,1)}})},beforeDestroy(){var e,n;(e=this.editor)==null||e.off("blur",this.change),(n=this.editor)==null||n.toTextArea()},methods:{focus(){var e,n;(n=(e=this.elFormItem).clearValidate)==null||n.call(e)},change(){var e;this.$emit("input",jp((e=this.editor)==null?void 0:e.getValue()))}}},Ca={};var Kp=u(zp,Rp,Np,!1,Wp,null,null,null);function Wp(e){for(let n in Ca)this[n]=Ca[n]}const Bt=function(){return Kp.exports}();var Vp=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("ElColorPickerDropdown",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.onClickOutside,expression:"onClickOutside"}],ref:"dropdown",class:["el-color-picker__panel",e.popperClass||""],attrs:{offset:e.offset,"append-to-body":e.appendToBody,color:e.color,predefine:e.predefine},on:{pick:e.confirmValue,clear:e.clearValue},model:{value:e.showPicker,callback:function(i){e.showPicker=i},expression:"showPicker"}})},Up=[];const Hp={name:"ColorPicker",directives:{Clickoutside:pu},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 du({enableAlpha:!1}),showPicker:!1}},watch:{value:{immediate:!0,handler(e){e&&e!==this.color.value&&this.color.fromString(e)}},visible:{immediate:!0,handler(e){return _(this,null,function*(){e?(yield this.$nextTick(),this.$refs.dropdown.referenceElm=this.anchor):this.$refs.dropdown&&this.$refs.dropdown.doDestroy(!0),this.showPicker=e})}}},methods:{confirmValue(){this.emitInput(this.color),this.$emit("pick",this.color.value),this.hide()},clearValue(){this.$emit("clear"),this.hide()},emitInput(e){this.$emit("input",e.value)},onClickOutside(){this.hideOnClickOutside&&this.hide()},hide(){this.$emit("update:visible",!1)}}},Sa={};var qp=u(Hp,Vp,Up,!1,Gp,null,null,null);function Gp(e){for(let n in Sa)this[n]=Sa[n]}const At=function(){return qp.exports}();var Jp=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[e._t("header"),e._l(e.list,function(i){return[i.children&&i.children.length>0?t("ColumnDynamic",{key:i.pop,attrs:{"column-option":i},scopedSlots:e._u([e._l(e.crud.mainSlot,function(s){return{key:s,fn:function(a){return[e._t(s,null,null,a)]}}})],null,!0)}):t("ColumnSlot",{key:i.prop,attrs:{column:i,"column-option":e.columnOption},scopedSlots:e._u([e._l(e.crud.mainSlot,function(s){return{key:s,fn:function(a){return[e._t(s,null,null,a)]}}})],null,!0)})]}),e._t("footer")],2)},Qp=[];const Yp={name:"Column",inject:["crud"],provide(){return{crud:this.crud,dynamic:this}},props:{columnOption:Array},computed:{list(){let e=[...this.columnOption];return e=qd(e,"index",(n,t)=>{var i,s;return((i=this.crud.objectOption[n.prop])==null?void 0:i.index)-((s=this.crud.objectOption[t.prop])==null?void 0:s.index)}),e}},methods:{handleFilterMethod(e,n,t){const i=this.columnOption.filter(s=>s.prop===t.property)[0];return typeof i.filterMethod=="function"?i.filterMethod(e,n,i):n[i.prop]===e},handleFilters(e,n){if(n!==!0)return;const t=this.crud.DIC[e.prop]||[],i=[];return d.isBlank(t)?this.crud.cellForm.list.forEach(s=>{i.map(a=>a.text).includes(s[e.prop])||i.push({text:s[e.prop],value:s[e.prop]})}):t.forEach(s=>{const a=e.props||this.crud.tableOption.props||{};i.push({text:s[a.label||I.label],value:s[a.value||I.value]})}),i},getColumnProp(e,n){const t=this.crud.objectOption[e.prop]||{};if(n==="filterMethod")return t==null?void 0:t.filters;if(this.crud.isMobile&&["fixed"].includes(n))return!1;const i=t==null?void 0:t[n];if(!(n==="width"&&i===0))return n==="filters"?this.handleFilters(e,i):n==="hide"?(t==null?void 0:t.hide)!==!0:i}}},ka={};var Xp=u(Yp,Jp,Qp,!1,Zp,null,null,null);function Zp(e){for(let n in ka)this[n]=ka[n]}const Ot=function(){return Xp.exports}(),R={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 eh=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("ElTableColumn",{attrs:{width:"1px"}}),e.crud.tableOption.expand?t("ElTableColumn",{key:"expand",attrs:{type:"expand",width:e.crud.tableOption.expandWidth||e.config.expandWidth,fixed:e.optVal(e.crud.tableOption.expandFixed,e.config.expandFixed),align:"center"},scopedSlots:e._u([{key:"default",fn:function(i){var s=i.row;return[e._t("expand",null,{row:s,index:s.$index})]}}],null,!0)}):e._e(),e.crud.tableOption.selection?t("ElTableColumn",{key:"selection",attrs:{fixed:e.optVal(e.crud.tableOption.selectionFixed,e.config.selectionFixed),type:"selection",selectable:e.crud.tableOption.selectable,"reserve-selection":e.optVal(e.crud.tableOption.reserveSelection),width:e.crud.tableOption.selectionWidth||e.config.selectionWidth,align:"center"}}):e._e(),e.optVal(e.crud.tableOption.index)?t("ElTableColumn",{key:"index",attrs:{fixed:e.optVal(e.crud.tableOption.indexFixed,e.config.indexFixed),label:e.crud.tableOption.indexLabel||e.config.indexLabel,type:"index",width:e.crud.tableOption.indexWidth||e.config.indexWidth,index:e.indexMethod,align:"center"}}):e._e()],1)},th=[];const nh={name:"ColumnDefault",inject:["crud"],data(){return{config:R}},mounted(){this.setSort()},methods:{optVal:M,indexMethod(e){return e+1+((this.crud.page.currentPage||1)-1)*(this.crud.page.pageSize||10)},setSort(){this.rowDrop(),this.columnDrop()},rowDrop(){const e=this.crud.$refs.table.$el.querySelectorAll(this.config.dropRowClass)[0];this.crud.tableDrop("row",e,n=>{const t=n.oldIndex,i=n.newIndex,s=this.crud.list.splice(t,1)[0];this.crud.list.splice(i,0,s),this.crud.$emit("sortable-change",t,i),this.crud.refreshTable(()=>this.rowDrop())})},columnDrop(){const e=this.crud.$refs.table.$el.querySelector(this.config.dropColClass);let n=0;["selection","index","expand"].forEach(t=>{this.crud.tableOption[t]&&(n+=1)}),this.crud.tableDrop("column",e,t=>{this.crud.headerSort(t.oldIndex-n,t.newIndex-n),this.columnDrop()})}}},Ea={};var ih=u(nh,eh,th,!1,sh,null,null,null);function sh(e){for(let n in Ea)this[n]=Ea[n]}const Mt=function(){return ih.exports}();var ah=function(){var e=this,n=e.$createElement,t=e._self._c||n;return e.getColumnProp(e.columnOption,"hide")?t("ElTableColumn",{key:e.columnOption.prop,attrs:{prop:e.columnOption.prop,label:e.columnOption.label,"filter-placement":"bottom-end",filters:e.getColumnProp(e.columnOption,"filters"),"filter-method":e.getColumnProp(e.columnOption,"filterMethod")?e.handleFilterMethod:void 0,"filter-multiple":e.optVal(e.columnOption.filterMultiple,!0),"show-overflow-tooltip":e.columnOption.overHidden,"min-width":e.columnOption.minWidth,sortable:e.getColumnProp(e.columnOption,"sortable"),"render-header":e.columnOption.renderHeader,align:e.columnOption.align||e.crud.tableOption.align,"header-align":e.columnOption.headerAlign||e.crud.tableOption.headerAlign,width:e.getColumnProp(e.columnOption,"width"),fixed:e.getColumnProp(e.columnOption,"fixed")}},[e._l(e.columnOption.children,function(i){return[i.children&&i.children.length>0?t("ColumnDynamic",{key:i.prop,attrs:{"column-option":i},scopedSlots:e._u([e._l(e.crud.mainSlot,function(s){return{key:s,fn:function(a){return[e._t(s,null,null,a)]}}})],null,!0)}):t("ColumnSlot",{key:i.prop,attrs:{column:i,"column-option":e.columnOption.children},scopedSlots:e._u([e._l(e.crud.mainSlot,function(s){return{key:s,fn:function(a){return[e._t(s,null,null,a)]}}})],null,!0)})]})],2):e._e()},rh=[];const lh={name:"ColumnDynamic",inject:["dynamic","crud"],props:{columnOption:Object},created(){const e=["getColumnProp","handleFilterMethod","handleFilters"];Object.keys(this.dynamic).forEach(n=>{e.includes(n)&&(this[n]=this.dynamic[n])})},methods:{optVal:M}},Fa={};var oh=u(lh,ah,rh,!1,ch,null,null,null);function ch(e){for(let n in Fa)this[n]=Fa[n]}const Pt=function(){return oh.exports}(),Qe=(()=>{function e(n,t){t.value===!1?n.style.display="none":n.style.display=""}return{bind(n,t){e(n,t)},update(n,t){e(n,t)}}})();var uh=function(){var e=this,n=e.$createElement,t=e._self._c||n;return e.optVal(e.crud.tableOption.menu,e.config.menu)&&e.crud.getPermission("menu")?t("ElTableColumn",{key:"menu",staticClass:"avue-crud__btn",attrs:{prop:"menu",fixed:e.optVal(e.crud.tableOption.menuFixed,e.config.menuFixed),label:e.crud.tableOption.menuTitle||"操作",align:e.crud.tableOption.menuAlign||e.config.menuAlign,"header-align":e.crud.tableOption.menuHeaderAlign||e.config.menuHeaderAlign,width:e.crud.isMobile?e.crud.tableOption.menuXsWidth||e.config.menuXsWidth:e.crud.tableOption.menuWidth||e.config.menuWidth},scopedSlots:e._u([{key:"default",fn:function(i){var s=i.row,a=i.$index;return[e.isMenu?t("ElDropdown",{attrs:{size:e.crud.isMediumSize},scopedSlots:e._u([{key:"dropdown",fn:function(){return[t("ElDropdownMenu",[e.optVal(e.crud.tableOption.viewBtn,e.config.viewBtn)?t("ElDropdownItem",{directives:[{name:"permission",rawName:"v-permission",value:e.crud.getPermission("viewBtn",s,a),expression:"crud.getPermission('viewBtn', row, $index)"}],attrs:{icon:e.crud.getBtnIcon("viewBtn")},nativeOn:{click:function(r){return e.crud.rowView(s,a)}}},[e._v(" "+e._s(e.crud.menuIcon("viewBtn"))+" ")]):e._e(),e.optVal(e.crud.tableOption.editBtn,e.config.editBtn)?t("ElDropdownItem",{directives:[{name:"permission",rawName:"v-permission",value:e.crud.getPermission("editBtn",s,a),expression:"crud.getPermission('editBtn', row, $index)"}],attrs:{icon:e.crud.getBtnIcon("editBtn")},nativeOn:{click:function(r){return e.crud.rowEdit(s,a)}}},[e._v(" "+e._s(e.crud.menuIcon("editBtn"))+" ")]):e._e(),e.optVal(e.crud.tableOption.copyBtn,e.config.copyBtn)?t("ElDropdownItem",{directives:[{name:"permission",rawName:"v-permission",value:e.crud.getPermission("copyBtn",s,a),expression:"crud.getPermission('copyBtn', row, $index)"}],attrs:{icon:e.crud.getBtnIcon("copyBtn")},nativeOn:{click:function(r){return e.crud.rowCopy(s)}}},[e._v(" "+e._s(e.crud.menuIcon("copyBtn"))+" ")]):e._e(),e.optVal(e.crud.tableOption.delBtn,e.config.delBtn)?t("ElDropdownItem",{directives:[{name:"permission",rawName:"v-permission",value:e.crud.getPermission("delBtn",s,a),expression:"crud.getPermission('delBtn', row, $index)"}],attrs:{icon:e.crud.getBtnIcon("delBtn")},nativeOn:{click:function(r){return e.crud.rowDel(s,a)}}},[e._v(" "+e._s(e.crud.menuIcon("delBtn"))+" ")]):e._e(),e._t("menuBtn",null,{row:s,type:e.menuText("primary"),disabled:e.crud.btnDisabled,size:e.crud.isMediumSize,index:a})],2)]},proxy:!0}],null,!0)},[t("ElButton",{attrs:{type:"text",size:e.crud.isMediumSize}},[e._v(" "+e._s(e.crud.tableOption.menuBtnTitle||"按钮")+" "),t("i",{staticClass:"el-icon-arrow-down el-icon--right"})])],1):["button","text","icon"].includes(e.menuType)?[e.optVal(e.crud.tableOption.cellBtn,e.config.cellBtn)?[e.optVal(e.crud.tableOption.editBtn,e.config.editBtn)&&!s.$cellEdit?t("ElButton",{directives:[{name:"permission",rawName:"v-permission",value:e.crud.getPermission("editBtn",s,a),expression:"crud.getPermission('editBtn', row, $index)"}],attrs:{type:e.menuText("primary"),icon:e.crud.getBtnIcon("editBtn"),size:e.crud.isMediumSize,disabled:e.crud.btnDisabledList[a]},on:{click:function(r){return r.stopPropagation(),e.crud.rowCell(s,a)}}},[e.isIconMenu?e._e():[e._v(" "+e._s(e.crud.menuIcon("editBtn"))+" ")]],2):e.optVal(e.crud.tableOption.saveBtn,e.config.saveBtn)&&s.$cellEdit?t("ElButton",{directives:[{name:"permission",rawName:"v-permission",value:e.crud.getPermission("saveBtn",s,a),expression:"crud.getPermission('saveBtn', row, $index)"}],attrs:{type:e.menuText("primary"),icon:e.crud.getBtnIcon("saveBtn"),size:e.crud.isMediumSize,disabled:e.crud.btnDisabledList[a]},on:{click:function(r){return r.stopPropagation(),e.crud.rowCell(s,a)}}},[e.isIconMenu?e._e():[e._v(" "+e._s(e.crud.menuIcon("saveBtn"))+" ")]],2):e._e(),s.$cellEdit?t("ElButton",{attrs:{type:e.menuText("danger"),icon:e.crud.getBtnIcon("cancelBtn"),size:e.crud.isMediumSize,disabled:e.crud.btnDisabledList[a]},on:{click:function(r){return r.stopPropagation(),e.crud.rowCancel(s,a)}}},[e.isIconMenu?e._e():[e._v(" "+e._s(e.crud.menuIcon("cancelBtn"))+" ")]],2):e._e()]:e._e(),e.optVal(e.crud.tableOption.viewBtn,e.config.viewBtn)?t("ElButton",{directives:[{name:"permission",rawName:"v-permission",value:e.crud.getPermission("viewBtn",s,a),expression:"crud.getPermission('viewBtn', row, $index)"}],attrs:{type:e.menuText("success"),icon:e.crud.getBtnIcon("viewBtn"),size:e.crud.isMediumSize,disabled:e.btnDisabled},on:{click:function(r){return r.stopPropagation(),e.crud.rowView(s,a)}}},[e.isIconMenu?e._e():[e._v(" "+e._s(e.crud.menuIcon("viewBtn"))+" ")]],2):e._e(),e.optVal(e.crud.tableOption.editBtn,e.config.editBtn)&&!e.crud.tableOption.cellBtn?t("ElButton",{directives:[{name:"permission",rawName:"v-permission",value:e.crud.getPermission("editBtn",s,a),expression:"crud.getPermission('editBtn', row, $index)"}],attrs:{type:e.menuText("primary"),icon:e.crud.getBtnIcon("editBtn"),size:e.crud.isMediumSize,disabled:e.btnDisabled},on:{click:function(r){return r.stopPropagation(),e.crud.rowEdit(s,a)}}},[e.isIconMenu?e._e():[e._v(" "+e._s(e.crud.menuIcon("editBtn"))+" ")]],2):e._e(),e.optVal(e.crud.tableOption.copyBtn,e.config.copyBtn)?t("ElButton",{directives:[{name:"permission",rawName:"v-permission",value:e.crud.getPermission("copyBtn",s,a),expression:"crud.getPermission('copyBtn', row, $index)"}],attrs:{type:e.menuText("primary"),icon:e.crud.getBtnIcon("copyBtn"),size:e.crud.isMediumSize,disabled:e.btnDisabled},on:{click:function(r){return r.stopPropagation(),e.crud.rowCopy(s)}}},[e.isIconMenu?e._e():[e._v(" "+e._s(e.crud.menuIcon("copyBtn"))+" ")]],2):e._e(),e.optVal(e.crud.tableOption.delBtn,e.config.delBtn)&&!s.$cellEdit?t("ElButton",{directives:[{name:"permission",rawName:"v-permission",value:e.crud.getPermission("delBtn",s,a),expression:"crud.getPermission('delBtn', row, $index)"}],attrs:{type:e.menuText("danger"),icon:e.crud.getBtnIcon("delBtn"),size:e.crud.isMediumSize,disabled:e.btnDisabled},on:{click:function(r){return r.stopPropagation(),e.crud.rowDel(s,a)}}},[e.isIconMenu?e._e():[e._v(" "+e._s(e.crud.menuIcon("delBtn"))+" ")]],2):e._e()]:e._e(),e._t("menu",null,{row:s,type:e.menuText("primary"),disabled:e.crud.btnDisabled,size:e.crud.isMediumSize,index:a})]}}],null,!0)}):e._e()},dh=[];const ph={name:"ColumnMenu",directives:{permission:Qe},inject:["crud"],data(){return{config:R}},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:M,menuText(e){return["text","menu"].includes(this.menuType)?"text":e}}},Ia={};var hh=u(ph,uh,dh,!1,mh,null,null,null);function mh(e){for(let n in Ia)this[n]=Ia[n]}const Dt=function(){return hh.exports}(),Vs=(e={},n={},t={},i=[])=>{let s=e[n.prop];const a=n.type,r=n.separator;if(n.bind&&(s=Ge(e,n.bind)),d.isBlank(s))s="";else{const l=js.includes(n.type)&&n.multiple,o=zs.includes(n.type);if((["string","number"].includes(n.dataType)||l||o)&&!Array.isArray(s)&&(s=`${s}`.split(r||be),n.dataType==="number"&&(s=Rd(s))),qe.includes(a))Array.isArray(s)?s=s.join(r||ze):s=s.split(r||be).join(r||ze);else if(a==="password")s=Hd(s,"*");else if(He.includes(a)&&n.format){const c=n.format.replace("dd","DD").replace("yyyy","YYYY"),p=ae.formatDate(Date.now(),"YYYY-MM-DD");if(a.indexOf("range")!==-1){let h=s[0]||"",m=s[1]||"";a==="timerange"&&h.length<=8&&m.length<8&&(h=`${p} ${h}`,m=`${p} ${m}`),s=[ae.formatDate(h,c),ae.formatDate(m,c)].join(n.separator||"~")}else a==="time"&&s.length<=8&&(s=`${p} ${s}`),s=ae.formatDate(s,c)}s=Kd(i,s,n.props||t.props)}return n.formatter&&typeof n.formatter=="function"&&(s=n.formatter(e,e[n.prop],s,n)),s},fh=(e,n=[])=>new Promise(t=>{const i=[],s=[],a={};e.forEach(r=>{r.parentProp&&i.push(r)}),n.forEach((r,l)=>{i.forEach(o=>{o.hide!==!0&&o.dicFlag!==!1&&s.push(new Promise(c=>{d.isBlank(r[o.parentProp])?c({prop:o.prop,data:[],index:l}):o.dicUrl&&he({url:`${o.dicUrl.replace("{{key}}",r[o.parentProp])}`,props:o.props,method:o.dicMethod,headers:o.dicHeaders,formatter:o.dicFormatter,query:o.dicQuery,form:r}).then(p=>{c({prop:o.prop,data:p,index:l})})}))})}),Promise.all(s).then(r=>{r.forEach(l=>{d.isBlank(a[l.index])&&(a[l.index]={}),a[l.index][l.prop]=l.data}),t(a)})}),vh=e=>{let n=[];return new Promise((t,i)=>{n=gh(e).ajaxdic,yh(n).then(a=>{t(a)}).catch(a=>{i(a)})})},_h=e=>{const n={},t=e.dicData||{};return e.column.forEach(i=>{i.dicData&&(n[i.prop]=Ks(i.dicData,i.props,i.dataType))}),Object.assign(t,n)};function gh(e){const n=e.column||[],t=[],i={};let s=[];return n.forEach(a=>{const r=a.dicData,l=a.dicUrl,o=a.prop,c=a.parentProp;s=s.concat(a.cascader||[]),Array.isArray(r)&&(i[o]=r),!(a.dicFlag===!1||a.lazy===!0||s.includes(o))&&l&&!c&&t.push({url:l,name:o,method:a.dicMethod,headers:n.dicHeaders,formatter:a.dicFormatter,props:a.props,dataType:a.dataType,resKey:(a.props||{}).res,query:a.dicQuery||{}})}),{ajaxdic:t,locationdic:i}}function yh(e){const n={},t=[];return new Promise(i=>{e.forEach(s=>{t.push(new Promise(a=>{he(Object.assign(s,{url:`${s.url.replace("{{key}}","")}`})).then(r=>{r=Ks(r,s.props,s.dataType),a(r)}).catch(()=>{a([])})}))}),Promise.all(t).then(s=>{e.forEach((a,r)=>{n[a.name]=s[r]}),i(n)})})}const he=e=>{let{url:n,query:t,method:i,resKey:s,props:a,formatter:r,headers:l={},value:o="",column:c,form:p={}}=e;c&&(n=c.dicUrl,i=c.dicMethod,l=c.headers||{},t=c.dicQuery||{},r=c.dicFormatter,a=c.props);const h="key";n=n||"";let m;const v={};return m=n.match(/[^{}]+(?=})/g)||[],m.forEach(C=>{const x=`{{${C}}}`,g=p[C];C===h?n=n.replace(x,o):n=n.replace(x,g)}),i==="post"&&(m=Object.keys(t),m.forEach(C=>{const x=t[C];typeof x=="string"&&x.match(/\{{|}}/g)?v[C]=p[x.replace(/\{{|}}/g,"")]:v[C]=x})),a&&(s=(a||{}).res||s),new Promise(C=>{const x=g=>{let y=[];typeof r=="function"?y=r(g.data):y=Ud(g.data,s),C(y)};i==="post"?window.axios.post(n,v,{headers:l}).then(function(g){x(g)}).catch(()=>[C([])]):window.axios.get(n,{params:t,headers:l}).then(function(g){x(g)}).catch(()=>[C([])])})};var bh=function(){var e=this,n=e.$createElement,t=e._self._c||n;return e.getColumnProp(e.column,"hide")?t("ElTableColumn",{key:e.column.prop,attrs:{prop:e.column.prop,label:e.column.label,"column-key":e.column.prop,"filter-placement":"bottom-end",filters:e.getColumnProp(e.column,"filters"),"filter-method":e.getColumnProp(e.column,"filterMethod")?e.handleFilterMethod:void 0,"filter-multiple":e.optVal(e.column.filterMultiple,!0),"show-overflow-tooltip":e.column.overHidden,"min-width":e.column.minWidth,sortable:e.getColumnProp(e.column,"sortable"),"sort-method":e.column.sortMethod,"sort-orders":e.column.sortOrders,"sort-by":e.column.sortBy,resizable:e.column.resizable,"render-header":e.column.renderHeader,align:e.column.align||e.crud.tableOption.align,"header-align":e.column.headerAlign||e.crud.tableOption.headerAlign,width:e.getColumnProp(e.column,"width"),fixed:e.getColumnProp(e.column,"fixed")},scopedSlots:e._u([{key:"header",fn:function(i){var s=i.$index;return[e.crud.getSlotName(e.column,"H",e.crud.$scopedSlots)?e._t(e.crud.getSlotName(e.column,"H"),null,null,{column:e.column,$index:s}):t("span",[e._v(e._s(e.column.label))])]}},{key:"default",fn:function(i){var s=i.row,a=i.$index;return[s.$cellEdit&&e.column.cell?t("ElFormItem",{attrs:{prop:e.crud.isTree?"":`list.${a}.${e.column.prop}`,label:e.vaildLabel(e.column,s," "),"label-width":e.vaildLabel(e.column,s,"1px"),rules:e.column.rules}},[t("ElTooltip",{attrs:{content:(e.crud.listError[`list.${a}.${e.column.prop}`]||{}).msg,disabled:!(e.crud.listError[`list.${a}.${e.column.prop}`]||{}).valid,placement:"top"}},[e.crud.getSlotName(e.column,"F",e.crud.$scopedSlots)?e._t(e.crud.getSlotName(e.column,"F"),null,null,{row:s,dic:e.crud.DIC[e.column.prop],size:e.crud.isMediumSize,index:a,disabled:e.crud.btnDisabledList[a],label:e.handleDetail(s,e.column),$cell:s.$cellEdit}):t("FormTemp",e._b({attrs:{column:e.column,size:e.crud.isMediumSize,"table-data":{index:a,row:s,label:e.handleDetail(s,e.column)},dic:(e.crud.cascaderDIC[a]||{})[e.column.prop]||e.crud.DIC[e.column.prop],props:e.column.props||e.crud.tableOption.props,readonly:e.column.readonly,disabled:e.crud.disabled||e.crud.tableOption.disabled||e.column.disabled||e.crud.btnDisabledList[a],clearable:e.optVal(e.column.clearable,!1),"column-slot":e.crud.mainSlot},on:{change:function(r){return e.columnChange(s,e.column,a)}},scopedSlots:e._u([e._l(e.crud.mainSlot,function(r){return{key:r,fn:function(l){return[e._t(r,null,null,l)]}}})],null,!0),model:{value:s[e.column.prop],callback:function(r){e.$set(s,e.column.prop,r)},expression:"row[column.prop]"}},"FormTemp",e.uploadFun(e.column,e.crud),!1))],2)],1):e.crud.$scopedSlots[e.column.prop]?e._t(e.column.prop,null,{row:s,index:a,dic:e.crud.DIC[e.column.prop],size:e.crud.isMediumSize,label:e.handleDetail(s,e.column)}):[["img","upload"].includes(e.column.type)?t("span",{staticClass:"avue-crud__img "},[e._l(e.getImgList(s,e.column),function(r,l){return[e.isMediaType(r,e.column.fileType)?t(e.isMediaType(r,e.column.fileType),{key:l,tag:"Component",attrs:{src:r},on:{click:function(o){return o.stopPropagation(),e.openImg(s,e.column,l)}}}):t("i",{key:l,staticClass:"el-icon-document",attrs:{src:r},on:{click:function(o){return o.stopPropagation(),e.openImg(s,e.column,l)}}})]})],2):e.column.type==="url"?t("span",e._l(e.corArray(s,e.column),function(r,l){return t("ElLink",{key:l,attrs:{type:"primary",href:r,target:e.column.target||"_blank"}},[e._v(e._s(r))])}),1):e.column.type==="rate"?t("span",[t("FyRate",{attrs:{disabled:""},model:{value:s[e.column.prop],callback:function(r){e.$set(s,e.column.prop,r)},expression:"row[column.prop]"}})],1):e.column.type==="color"?t("i",{staticClass:"avue-crud__color",style:{backgroundColor:s[e.column.prop]}}):e.column.type==="icon"?t("IconTemp",{attrs:{text:s[e.column.prop]}}):e.column.html?t("span",{domProps:{innerHTML:e._s(e.handleDetail(s,e.column))}}):t("span",{domProps:{textContent:e._s(e.handleDetail(s,e.column))}})]]}}],null,!0)}):e._e()},xh=[];const st={},$h={name:"ColumnSlot",inject:["dynamic","crud"],props:{column:Object,columnOption:Array},created(){const e=["getColumnProp","handleFilterMethod","handleFilters"];Object.keys(this.dynamic).forEach(n=>{e.includes(n)&&(this[n]=this.dynamic[n])})},methods:{isBlank:d.isBlank,optVal:M,uploadFun:Je,isMediaType(e,n){return xe(e,n)},vaildLabel(e,n,t){if(e.rules&&n.$cellEdit)return t},columnChange(e,n,t){const i=`${t}-${n.prop}`;st[i]||(this.handleChange(n,e),typeof n.change=="function"&&n.cell===!0&&n.change({row:e,column:n,index:t,value:e[n.prop]})),st[i]=!0,this.$nextTick(()=>{st[i]=!1})},handleChange(e,n){e.cascader&&this.$nextTick(()=>{const t=e.cascader;t.forEach(i=>{const s=i,a=n[e.prop],r=n.$index,l=this.findObject(this.columnOption,s);d.isBlank(l)||(d.isBlank(this.crud.cascaderDIC[r])&&this.$set(this.crud.cascaderDIC,r,{}),this.crud.cascaderIndexList.includes(r)&&t.forEach(o=>{this.$set(this.crud.cascaderDIC[r],o.prop,[]),t.forEach(c=>n[c]="")}),!(d.isBlank(t)||d.isBlank(a)||d.isBlank(l))&&he({column:l,value:a,form:n}).then(o=>{const c=o||[];this.crud.cascaderIndexList.includes(r)||this.crud.cascaderIndexList.push(r),this.crud.cascaderDicList[r]||this.$set(this.crud.cascaderDicList,r,{}),this.crud.cascaderDicList[r][s]||this.$set(this.crud.cascaderDicList[r],s,c),this.$set(this.crud.cascaderDIC[r],s,c),!d.isBlank(c[l.cascaderIndex])&&!d.isBlank(c)&&!d.isBlank(l.cascaderIndex)&&(n[s]=c[l.cascaderIndex][(l.props||{}).value||I.value])}))})})},handleDetail(e,n){const t=n.parentProp?(this.crud.cascaderDIC[e.$index]||{})[n.prop]:this.crud.DIC[n.prop],i=Vs(e,n,this.crud.tableOption,t);return!d.isBlank(t)&&this.crud.tableOption.filterDic!==!0&&(e[`$${n.prop}`]=i),i},corArray(e,n){let t=this.handleDetail(e,n);return Array.isArray(t)||(t=d.isBlank(t)?[]:t.split(ze)),$(t)},openImg(e,n,t){let i=this.getImgList(e,n);i=i.map(s=>({thumbUrl:s,url:s,type:n.fileType})),this.$ImagePreview(i,t)},getImgList(e,n){var a,r;const t=((a=n.propsHttp)==null?void 0:a.home)||"",i=((r=n.props)==null?void 0:r.value)||I.value,s=this.corArray(e,n);return s.forEach((l,o)=>{s[o]=t+(l[i]?l[i]:l)}),s}}},Ta={};var wh=u($h,bh,xh,!1,Ch,null,null,null);function Ch(e){for(let n in Ta)this[n]=Ta[n]}const Lt=function(){return wh.exports}();var Sh=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{class:["avue-comment",{"avue-comment--reverse":e.reverse}]},[t("img",{staticClass:"avue-comment__avatar",attrs:{src:e.avatar,alt:""}}),t("div",{staticClass:"avue-comment__main"},[t("div",{staticClass:"avue-comment__header"},[e.author?t("div",{staticClass:"avue-comment__author",domProps:{textContent:e._s(e.author)}}):e._e(),e._t("default")],2),e.body?t("div",{staticClass:"avue-comment__body",domProps:{innerHTML:e._s(e.body)}}):e._e()])])},kh=[];const Oe={avatar:"avatar",author:"author",body:"body"},Eh={name:"Comment",props:{reverse:{type:Boolean,default:!1},data:{type:Object,default:()=>({})},props:{type:Object,default:()=>Oe}},computed:{avatarKey(){return this.props.avatar||Oe.avatar},authorKey(){return this.props.author||Oe.author},bodyKey(){return this.props.body||Oe.body},avatar(){return this.data[this.avatarKey]},author(){return this.data[this.authorKey]},body(){return this.data[this.bodyKey]}}},Ba={};var Fh=u(Eh,Sh,kh,!1,Ih,null,null,null);function Ih(e){for(let n in Ba)this[n]=Ba[n]}const Rt=function(){return Fh.exports}();function Th(e,n,t){return _(this,null,function*(){const{stop:i,prevent:s,message:a,loadable:r,loadingText:l,confirmable:o,confirmType:c,confirmText:p}=n;i&&e.stopPropagation(),s&&e.preventDefault();const{before:h,click:m,cancel:v,after:C}=t;if(d.isFunction(m))try{let x=!0;if(d.isFunction(h)&&(x=yield h(e)),x===!1)return;o&&(yield mu.confirm(a||p,{type:c}));let g;r&&(g=hu.service({background:"rgba(0,0,0,0.3)",text:l}));try{yield m(e)}catch(y){}r&&g.close(),d.isFunction(C)&&(yield C(e))}catch(x){d.isFunction(v)&&(yield v(x))}})}const Lc={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(e,{props:n,data:t,children:i,listeners:s}){return e(n.tag,E(f({},t),{on:{click:a=>Th(a,n,s)},props:n}),i||n.text)}},Bh={name:"Confirmable",mixins:[Lc]};let Ah,Oh;const Aa={};var Mh=u(Bh,Ah,Oh,!1,Ph,null,null,null);function Ph(e){for(let n in Aa)this[n]=Aa[n]}const Ke=function(){return Mh.exports}(),Dh={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"}}},Lh={name:"ConfirmButton",mixins:[Lc,Dh]};let Rh,Nh;const Oa={};var jh=u(Lh,Rh,Nh,!1,zh,null,null,null);function zh(e){for(let n in Oa)this[n]=Oa[n]}const Nt=function(){return jh.exports}();var Kh=function(){var e=this,n=e.$createElement,t=e._self._c||n;return e.rendered?t("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"cm-container",style:e.axisComputed},[t("svg",{staticStyle:{position:"absolute",width:"0",height:"0",overflow:"hidden"},attrs:{"aria-hidden":"true"}},[t("symbol",{attrs:{id:"icon-arrow",viewBox:"0 0 1024 1024"}},[t("path",{attrs:{d:"M288.791335 65.582671l446.41733 446.417329-446.41733 446.417329z"}})])]),t("ul",{staticClass:"cm-ul cm-ul-1 easy-cm-ul",class:e.underline?"cm-underline":""},e._l(e.list,function(i,s){return t("li",{key:s,style:e.liStyle},[t("div",{class:e.firstLeft?"cm-left":"",on:{click:function(a){return e.onItemClick(i,[s])}}},[t("i",{staticClass:"cm-item-icon",class:i.icon}),t("span",{staticClass:"cm-item-label"},[e._v(e._s(i.text))]),e.arrow&&i.children&&i.children.length>0?t("svg",{staticClass:"icon",attrs:{"aria-hidden":"true"}},[t("use",{attrs:{"xlink:href":"#icon-arrow"}})]):e._e()]),i.children&&i.children.length>0?t("ul",{staticClass:"cm-ul cm-ul-2 easy-cm-ul",class:e.underline?"cm-underline":"",style:e.secondBorderCheck(s)},e._l(i.children,function(a,r){return t("li",{key:r,style:e.liStyle},[t("div",{class:e.secondLeft?"cm-left":"",on:{click:function(l){return e.onItemClick(a,[s,r])}}},[t("i",{staticClass:"cm-item-icon",class:a.icon}),t("span",{staticClass:"cm-item-label"},[e._v(e._s(a.text))]),e.arrow&&a.children&&a.children.length>0?t("svg",{staticClass:"icon",attrs:{"aria-hidden":"true"}},[t("use",{attrs:{"xlink:href":"#icon-arrow"}})]):e._e()]),a.children&&a.children.length>0?t("ul",{staticClass:"cm-ul cm-ul-3 easy-cm-ul",class:e.underline?"cm-underline":"",style:e.thirdBorderCheck(s,r)},e._l(a.children,function(l,o){return t("li",{key:o,style:e.liStyle},[t("div",{on:{click:function(c){return e.onItemClick(l,[s,r,o])}}},[t("i",{staticClass:"cm-item-icon",class:l.icon}),t("span",{staticClass:"cm-item-label"},[e._v(e._s(l.text))])])])}),0):e._e()])}),0):e._e()])}),0)]):e._e()},Wh=[];const Vh={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 e=document.body.offsetWidth;return this.axis.x+this.itemWidth*2>=e},secondLeft(){const e=document.body.offsetWidth;return this.axis.x+this.itemWidth*3>=e}},watch:{axis(){if(this.border){const e=document.body.offsetWidth,n=document.body.offsetHeight;this.axis.x+this.offset.x+this.itemWidth>=e&&(this.axis.x=e-this.itemWidth-this.borderWidth-this.offset.x),this.axis.y+this.offset.y+this.itemHeight*this.list.length>=n&&(this.axis.y=n-this.itemHeight*this.list.length-this.borderWidth-this.offset.y)}}},methods:{secondBorderCheck(e){const n=document.body.offsetWidth,t=document.body.offsetHeight,i=this.axis.y+(e+this.list[e].children.length)*this.itemHeight;return{left:this.axis.x+this.itemWidth*2>=n?"-100%":"100%",top:t>=i?0:`${-(this.list[e].children.length-1)*this.itemHeight}px`}},thirdBorderCheck(e,n){const t=document.body.offsetWidth,i=document.body.offsetHeight,s=this.axis.y+this.list[e].children[n].children.length*this.itemHeight+(e+n)*this.itemHeight+parseInt(this.secondBorderCheck(e).top);return{left:this.axis.x+this.itemWidth*3>=t?"-100%":"100%",top:s>i?`${-(this.list[e].children[n].children.length-1)*this.itemHeight}px`:0}},show(e){document.addEventListener("click",this.hide,!0),this.axis={x:e.clientX,y:e.clientY},this.rendered=!0,this.visible=!0},hide(){this.visible=!1,document.removeEventListener("click",this.hide)},onItemClick(e,n){this.$emit("on-item-click",e,n)}}},Ma={};var Uh=u(Vh,Kh,Wh,!1,Hh,null,null,null);function Hh(e){for(let n in Ma)this[n]=Ma[n]}const jt=function(){return Uh.exports}();var qh=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("span",[e._v(e._s(e.end))])},Gh=[];const Jh={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 e;(e=this.c)==null||e.update(this.end)},end(e){var n;(n=this.c)==null||n.update(e)}},mounted(){this.animation&&this.init()},beforeDestroy(){this.destroy()},methods:{init(){this.c||(this.c=new fu.CountUp(this.$el,this.end,E(f({},this.options),{decimal:this.decimals,duration:this.duration,startVal:this.start})),this.c.start(()=>{this.callback(this.c)}))},destroy(){this.c=null}},start(e){var n;(n=this.c)==null||n.start(()=>{e&&e(this.c)})},pauseResume(){var e;(e=this.c)==null||e.pauseResume()},reset(){var e;(e=this.c)==null||e.reset()},update(e){var n;(n=this.c)==null||n.update(e)}},Pa={};var Qh=u(Jh,qh,Gh,!1,Yh,null,null,null);function Yh(e){for(let n in Pa)this[n]=Pa[n]}const zt=function(){return Qh.exports}();var Xh=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"os-host"},[t("div",{staticClass:"os-resize-observer-host"}),t("div",{staticClass:"os-padding"},[t("div",{ref:"viewport",staticClass:"os-viewport"},[t("div",{ref:"content",staticClass:"os-content"},[e._t("default")],2)])]),e._m(0),e._m(1),t("div",{staticClass:"os-scrollbar-corner"})])},Zh=[function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"os-scrollbar os-scrollbar-horizontal "},[t("div",{staticClass:"os-scrollbar-track"},[t("div",{staticClass:"os-scrollbar-handle"})])])},function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"os-scrollbar os-scrollbar-vertical"},[t("div",{staticClass:"os-scrollbar-track"},[t("div",{staticClass:"os-scrollbar-handle"})])])}];const em={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 e=this.options||{};return E(f({},e),{className:this.theme||"os-theme-dark",scrollbars:{autoHide:"l",autoHideDelay:100},callbacks:{onScroll:this.internalScroll}})}},watch:{innerOptions(e){const n=this.scroller;Ze.valid(n)&&n.options(e)}},mounted(){this.viewport=this.$refs.viewport,this.scroller=Ze(this.getContentWrapper(),this.options||{className:this.theme||"os-theme-dark",scrollbars:{autoHide:"l",autoHideDelay:100},callbacks:{onScroll:this.internalScroll}},this.extensions)},activated(){var e;this.$refs.viewport.scrollTop=(e=this.scrollOffset)!=null?e:0},deactivated(){this.scrollOffset=this.$refs.viewport.scrollTop},beforeDestroy(){const e=this.scroller;Ze.valid(e)&&(e.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(e){this.$refs.viewport.scrollTop=e},getContentWrapper(){return this.textarea?this.$refs.content.querySelector("textarea"):this.$el},internalScroll(e){this.onScroll&&this.onScroll(e);const n=e.target;if(!this.reverse&&Math.ceil(n.clientHeight+n.scrollTop)>=n.scrollHeight){this.onLoadMore&&this.onLoadMore();return}this.reverse&&n.scrollTop===0&&this.onLoadMore&&this.onLoadMore()}}},Da={};var tm=u(em,Xh,Zh,!1,nm,null,null,null);function nm(e){for(let n in Da)this[n]=Da[n]}const Kt=function(){return tm.exports}();var im=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"data-box"},[t("ElRow",{attrs:{span:24}},e._l(e.data,function(i,s){return t("ElCol",{key:s,attrs:{md:e.span,xs:24,sm:12}},[t("div",{staticClass:"item"},[t("a",{attrs:{href:i.href,target:i.target},on:{click:function(a){i.click&&i.click(i)}}},[t("div",{staticClass:"item-icon",style:{backgroundColor:i.color}},[t("i",{class:i.icon})]),t("div",{staticClass:"item-info"},[t("CountUp",{staticClass:"title",style:{color:i.color},attrs:{animation:i.animation||e.animation,decimals:i.decimals||e.decimals,end:i.count}}),t("div",{staticClass:"info"},[e._v(e._s(i.title))])],1)])])])}),1)],1)},sm=[];const am={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||[]}}},La={};var rm=u(am,im,sm,!1,lm,null,null,null);function lm(e){for(let n in La)this[n]=La[n]}const Wt=function(){return rm.exports}();var om=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"data-card"},[t("ElRow",{attrs:{span:24}},e._l(e.data,function(i,s){return t("ElCol",{key:s,attrs:{md:e.span,xs:24,sm:12}},[t("div",{staticClass:"item"},[t("a",{attrs:{href:i.href,target:i.target},on:{click:function(a){i.click&&i.click(i)}}},[t("img",{staticClass:"item-img",attrs:{src:i.src,alt:""}}),t("div",{staticClass:"item-text",style:{backgroundColor:e.bgText}},[t("h3",{style:{color:e.colorText}},[e._v(e._s(i.name))]),t("p",{style:{color:e.colorText}},[e._v(e._s(i.text))])])])])])}),1)],1)},cm=[];const um={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"}}},Ra={};var dm=u(um,om,cm,!1,pm,null,null,null);function pm(e){for(let n in Ra)this[n]=Ra[n]}const Vt=function(){return dm.exports}();var hm=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"avue-data-cardText"},[t("ElRow",{attrs:{span:24}},e._l(e.data,function(i,s){return t("ElCol",{key:s,attrs:{md:e.span,xs:24,sm:12}},[t("div",{staticClass:"item"},[t("a",{attrs:{href:i.href,target:i.target},on:{click:function(a){i.click&&i.click(i)}}},[t("div",{staticClass:"item-header"},[e._v(" "+e._s(i.title)+" ")]),t("div",{staticClass:"item-content"},[e._v(e._s(i.content))]),t("div",{staticClass:"item-footer"},[t("span",[e._v(e._s(i.name))]),t("span",[e._v(e._s(i.date))])])])])])}),1)],1)},mm=[];const fm={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||[]}}},Na={};var vm=u(fm,hm,mm,!1,_m,null,null,null);function _m(e){for(let n in Na)this[n]=Na[n]}const Ut=function(){return vm.exports}();var gm=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"avue-data-display"},[t("ElRow",{attrs:{span:24}},e._l(e.data,function(i,s){return t("ElCol",{key:s,attrs:{md:e.span,xs:12,sm:12}},[t("div",{staticClass:"item",style:{color:e.color}},[t("a",{attrs:{href:i.href,target:i.target},on:{click:function(a){i.click&&i.click(i)}}},[t("CountUp",{staticClass:"count",attrs:{animation:i.animation||e.animation,decimals:i.decimals||e.decimals,end:i.count}}),t("span",{staticClass:"splitLine"}),t("div",{staticClass:"title"},[e._v(e._s(i.title))])],1)])])}),1)],1)},ym=[];const bm={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)"}}},ja={};var xm=u(bm,gm,ym,!1,$m,null,null,null);function $m(e){for(let n in ja)this[n]=ja[n]}const Ht=function(){return xm.exports}();var wm=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"data-icons"},[t("ElRow",{attrs:{span:24}},[e._l(e.data,function(i,s){return[t("ElCol",{key:s,attrs:{xs:12,sm:6,md:e.span}},[t("div",{staticClass:"item",class:[{"item--easy":e.discount}]},[t("a",{attrs:{href:i.href,target:i.target},on:{click:function(a){i.click&&i.click(i)}}},[t("div",{staticClass:"item-icon",style:{color:e.color}},[t("i",{class:i.icon})]),t("div",{staticClass:"item-info"},[t("span",[e._v(e._s(i.title))]),t("CountUp",{staticClass:"count",style:{color:e.color},attrs:{animation:i.animation||e.animation,decimals:i.decimals||e.decimals,end:i.count}})],1)])])])]})],2)],1)},Cm=[];const Sm={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}}},za={};var km=u(Sm,wm,Cm,!1,Em,null,null,null);function Em(e){for(let n in za)this[n]=za[n]}const qt=function(){return km.exports}();var Fm=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"avue-data-imgtext"},[t("ElRow",{attrs:{span:24}},e._l(e.data,function(i,s){return t("ElCol",{key:s,attrs:{md:e.span,xs:24,sm:12}},[t("div",{staticClass:"item",style:{color:e.color}},[t("a",{attrs:{href:i.href,target:i.target},on:{click:function(a){i.click&&i.click(i)}}},[t("div",{staticClass:"item-header"},[t("img",{attrs:{src:i.imgsrc,alt:""}})]),t("div",{staticClass:"item-content"},[t("span",[e._v(e._s(i.title))]),t("p",[e._v(e._s(i.content))])]),t("div",{staticClass:"item-footer"},[t("div",{staticClass:"time"},[t("span",[e._v(e._s(i.time))])]),t("div",{staticClass:"imgs"},[t("ul",e._l(i.headimg,function(a,r){return t("li",{key:r},[t("ElTooltip",{attrs:{effect:"dark",content:a.name,placement:"top-start"}},[t("img",{attrs:{src:a.src,alt:""}})])],1)}),0)])])])])])}),1)],1)},Im=[];const Tm={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)"}}},Ka={};var Bm=u(Tm,Fm,Im,!1,Am,null,null,null);function Am(e){for(let n in Ka)this[n]=Ka[n]}const Gt=function(){return Bm.exports}();var Om=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"avue-data-operatext"},[t("ElRow",{attrs:{span:24}},e._l(e.data,function(i,s){return t("ElCol",{key:s,attrs:{md:e.span,xs:24,sm:12}},[t("div",{staticClass:"item"},[t("a",{attrs:{href:i.href},on:{click:function(a){i.click&&i.click(i)}}},[t("div",{staticClass:"item-header",style:{backgroundColor:i.color,backgroundImage:`url(${i.colorImg})`}},[t("span",{staticClass:"item-title"},[e._v(e._s(i.title))]),t("span",{staticClass:"item-subtitle"},[e._v(e._s(i.subtitle))])]),t("div",{staticClass:"item-content"},[t("div",{staticClass:"item-img"},[t("img",{attrs:{src:i.img,alt:""}})]),t("div",{staticClass:"item-list"},e._l(i.list,function(a,r){return t("div",{key:r,staticClass:"item-row"},[t("span",{staticClass:"item-label"},[e._v(e._s(a.label))]),t("span",{staticClass:"item-value"},[e._v(e._s(a.value))])])}),0)])])])])}),1)],1)},Mm=[];const Pm={name:"DataOperatext",props:{option:{type:Object,default:()=>{}}},computed:{span(){return this.option.span||6},data(){return this.option.data||[]}}},Wa={};var Dm=u(Pm,Om,Mm,!1,Lm,null,null,null);function Lm(e){for(let n in Wa)this[n]=Wa[n]}const Jt=function(){return Dm.exports}();var Rm=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"avue-data-panel"},[t("ElRow",{attrs:{span:24}},e._l(e.data,function(i,s){return t("ElCol",{key:s,attrs:{md:e.span,xs:24,sm:12}},[t("a",{attrs:{href:i.href},on:{click:function(a){i.click&&i.click(i)}}},[t("div",{staticClass:"item"},[t("div",{staticClass:"item-icon"},[t("i",{class:i.icon,style:{color:i.color}})]),t("div",{staticClass:"item-info"},[t("div",{staticClass:"item-title"},[e._v(e._s(i.title))]),t("CountUp",{staticClass:"item-count",attrs:{animation:i.animation||e.animation,decimals:i.decimals||e.decimals,end:i.count}})],1)])])])}),1)],1)},Nm=[];const jm={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||[]}}},Va={};var zm=u(jm,Rm,Nm,!1,Km,null,null,null);function Km(e){for(let n in Va)this[n]=Va[n]}const Qt=function(){return zm.exports}();var Wm=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"avue-data-pay"},[t("ElRow",{attrs:{span:24}},e._l(e.data,function(i,s){return t("ElCol",{key:s,attrs:{md:e.span,xs:24,sm:12}},[t("div",{staticClass:"item"},[t("div",{staticClass:"top",style:{backgroundColor:i.color}}),t("div",{staticClass:"header"},[t("p",{staticClass:"title"},[e._v(" "+e._s(i.title)+" ")]),t("img",{staticClass:"img",attrs:{src:i.src,alt:""}}),i.subtitle?[t("p",{staticClass:"subtitle",style:{color:i.color}},[e._v(" "+e._s(i.subtitle)+" ")])]:e._e(),i.money||i.dismoney?[t("p",{staticClass:"money",style:{color:i.color}},[t("span",[e._v("¥")]),t("CountUp",{staticClass:"b",attrs:{decimals:i.decimals||e.decimals,animation:i.animation||e.animation,end:i.dismoney}}),t("s",[e._v(e._s(i.money))]),t("em",[e._v(e._s(i.tip))])],1)]:e._e(),t("div",{staticClass:"line"}),t("a",{staticClass:"btn",style:{backgroundColor:i.color},attrs:{href:i.href},on:{click:function(a){i.click&&i.click(i)}}},[e._v(e._s(i.subtext))])],2),t("div",{staticClass:"list"},e._l(i.list,function(a,r){return t("div",{key:r,staticClass:"list-item"},[a.check?t("i",{staticClass:"list-item-icon list-item--check",style:{color:i.color}},[e._v("√")]):t("i",{staticClass:"list-item-icon list-item--no"},[e._v("x")]),t("a",{attrs:{href:a.href?a.href:"javascript:void(0);"}},[t("ElTooltip",{attrs:{effect:"dark",disabled:!a.tip,placement:"top"},scopedSlots:e._u([{key:"content",fn:function(){return[t("div",{domProps:{innerHTML:e._s(a.tip)}})]},proxy:!0}],null,!0)},[t("span",{class:{"list-item--link":a.href}},[e._v(e._s(a.title))])])],1)])}),0)])])}),1)],1)},Vm=[];const Um={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||[]}}},Ua={};var Hm=u(Um,Wm,Vm,!1,qm,null,null,null);function qm(e){for(let n in Ua)this[n]=Ua[n]}const Yt=function(){return Hm.exports}();var Gm=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"data-price"},[t("ElRow",{attrs:{span:24}},[e._l(e.data,function(i,s){return[t("ElCol",{key:s,attrs:{xs:12,sm:6,md:e.span}},[t("div",{staticClass:"item item--active"},[t("a",{attrs:{href:i.href,target:i.target},on:{click:function(a){i.click&&i.click(i)}}},[t("div",{staticClass:"title"},[e._v(" "+e._s(i.title)+" ")]),t("div",{staticClass:"body"},[t("span",{staticClass:"price"},[e._v(e._s(i.price))]),t("span",{staticClass:"append"},[e._v(e._s(i.append))])]),t("div",{staticClass:"list"},e._l(i.list,function(a,r){return t("p",{key:r},[e._v(" "+e._s(a)+" ")])}),0)])])])]})],2)],1)},Jm=[];const Qm={name:"DataPrice",props:{option:{type:Object,default:()=>{}}},computed:{span(){return this.option.span||6},data(){return this.option.data}}},Ha={};var Ym=u(Qm,Gm,Jm,!1,Xm,null,null,null);function Xm(e){for(let n in Ha)this[n]=Ha[n]}const Xt=function(){return Ym.exports}();var Zm=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"data-progress"},[t("ElRow",{attrs:{span:24}},e._l(e.data,function(i,s){return t("ElCol",{key:s,attrs:{md:e.span,xs:24,sm:12}},[t("div",{staticClass:"item"},[t("a",{attrs:{href:i.href,target:i.target},on:{click:function(a){i.click&&i.click(i)}}},[t("div",{staticClass:"item-header"},[t("CountUp",{staticClass:"item-count",attrs:{animation:i.animation||e.animation,decimals:i.decimals||e.decimals,end:i.count}}),t("div",{staticClass:"item-title",domProps:{textContent:e._s(i.title)}})],1),t("ElProgress",{attrs:{"stroke-width":15,percentage:i.count,color:i.color,"show-text":!1}})],1)])])}),1)],1)},ef=[];const tf={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||[]}}},qa={};var nf=u(tf,Zm,ef,!1,sf,null,null,null);function sf(e){for(let n in qa)this[n]=qa[n]}const Zt=function(){return nf.exports}();var af=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"avue-data-rotate"},[t("ElRow",{attrs:{span:24}},e._l(e.data,function(i,s){return t("ElCol",{key:s,attrs:{md:e.span,xs:24,sm:12}},[t("div",{staticClass:"item",style:{backgroundColor:i.color}},[t("div",{staticClass:"item-box"},[t("CountUp",{staticClass:"item-count",attrs:{decimals:i.decimals||e.decimals,animation:i.animation||e.animation,end:i.count}}),t("span",{staticClass:"item-title"},[e._v(e._s(i.title))]),t("i",{staticClass:"item-icon",class:i.icon})],1),t("a",{attrs:{href:i.href},on:{click:function(a){i.click&&i.click(i)}}},[t("p",{staticClass:"item-more"},[e._v("更多"),t("i",{staticClass:"el-icon-arrow-right"})])])])])}),1)],1)},rf=[];const lf={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||[]}}},Ga={};var of=u(lf,af,rf,!1,cf,null,null,null);function cf(e){for(let n in Ga)this[n]=Ga[n]}const en=function(){return of.exports}();const Ye=(e,n)=>d.isPlainObject(e)||d.isString(e)?[n,e]:d.isArray(e)?[n,...e]:[n];function uf(){const e=window.navigator.userAgent,n=e.indexOf("MSIE ");if(n>0)return parseInt(e.substring(n+5,e.indexOf(".",n)),10);if(e.indexOf("Trident/")>0){const s=e.indexOf("rv:");return parseInt(e.substring(s+3,e.indexOf(".",s)),10)}const i=e.indexOf("Edge/");return i>0?parseInt(e.substring(i+5,e.indexOf(".",i)),10):-1}function at(e,n){for(const t in n)Ue.set(e,t,n[t]);return e}const df=(e,n)=>{if(!e||!n)return null;let t=e;for(;t&&n(t);)t=t.$parent;return t},pf=["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"],hf=["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"],mf=["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"],ff=["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"],vf=["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"],B=(e,n,t=!0)=>{if(d.isObject(e)){let i=n;d.isString(n)&&(i=i.split(","));const s={};return i.forEach(a=>{d.hasOwn(e,a)&&(t?s[a]=e[a]:i.includes(a)||(s[a]=e[a]))}),s}return e},j=e=>{const n={};for(const t in e)n[d.camelize(t)]=e[t];return n},Rc=e=>B(e,pf),$e=e=>B(e,mf),Nc=e=>B(e,hf),_f=e=>B(e,ff),gf=e=>B(e,vf),Ja=(e="",n)=>{const t=n||{};return(e||"").replace(/{(.*?)}/g,(s,a)=>{if(a.indexOf(":")){const[r,l]=a.split(":");return t[r]?t[r]:l}else return t[a]||""})},yf=(e,n)=>d.isFunction(e)?Ja(e(n),n):d.isString(e)?Ja(e,n):null;var bf=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("ElementDialog",{ref:"dialog",attrs:{visible:e.visible,title:e.title,width:e.width,height:e.height,embed:"","flex-column":""},on:{close:e.close},scopedSlots:e._u([{key:"default",fn:function(){return[e._t("search-form"),t("PageableTable",{ref:"pageableTable",staticStyle:{height:"60vh"},attrs:{"highlight-current-row":"","hide-on-single-page":"",model:e.model,columns:e.columns,api:e.api,"row-class-name":"pointer",multiple:e.multiple},on:{"selection-change":e.selectionChange,"row-click":e.toggleRowSelection,"current-change":e.currentChange}},[e._t("default")],2)]},proxy:!0},{key:"footer",fn:function(){return[t("ElButton",{attrs:{size:"mini",type:"primary"},on:{click:e.confirm}},[e._v(" 确 定 ")]),t("ElButton",{attrs:{size:"mini"},on:{click:e.close}},[e._v(" 关 闭 ")])]},proxy:!0}],null,!0)})},xf=[];const $f={name:"DataTablePicker",props:{visible:Boolean,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:$e,selectionChange(e){this.selectedRows=e},currentChange(e){this.currentRow=e},toggleRowSelection(e){this.$refs.pageableTable.$refs.table.toggleRowSelection(e)},close(){this.$refs.dialog.hide()},confirm(){var e;this.multiple?(e=this.selectedRows)!=null&&e.length?(this.$emit("confirm",this.selectedRows),this.close()):this.$message.warning("请选择"):this.currentRow?(this.$emit("confirm",this.currentRow),this.close()):this.$message.warning("请选择")}}},Qa={};var wf=u($f,bf,xf,!1,Cf,null,null,null);function Cf(e){for(let n in Qa)this[n]=Qa[n]}const tn=function(){return wf.exports}();var Sf=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"avue-data-tabs"},[t("ElRow",{attrs:{span:24}},e._l(e.data,function(i,s){return t("ElCol",{key:s,attrs:{md:e.span,xs:24,sm:12}},[t("div",{staticClass:"item",style:{background:i.color}},[t("a",{attrs:{href:i.href,target:i.target},on:{click:function(a){i.click&&i.click(i)}}},[t("div",{staticClass:"item-header"},[t("p",[e._v(e._s(i.title))]),t("span",[e._v(e._s(i.subtitle))])]),t("div",{staticClass:"item-body"},[t("CountUp",{staticClass:"h2",attrs:{decimals:i.decimals||e.decimals,animation:i.animation||e.animation,end:i.count}})],1),t("div",{staticClass:"item-footer"},[t("span",[e._v(e._s(i.allcount))]),t("p",[e._v(e._s(i.text))])]),t("p",{staticClass:"item-tip"},[e._v(e._s(i.key))])])])])}),1)],1)},kf=[];const Ef={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||[]}}},Ya={};var Ff=u(Ef,Sf,kf,!1,If,null,null,null);function If(e){for(let n in Ya)this[n]=Ya[n]}const nn=function(){return Ff.exports}();var Tf=function(){var e=this,n=e.$createElement,t=e._self._c||n;return e.columnBox?t("div",[t("ElDrawer",{staticClass:"avue-crud__dialog avue-crud__column avue-dialog",attrs:{"lock-scroll":"","append-to-body":"",title:"列显隐",size:e.crud.isMobile?"100%":"40%",visible:e.columnBox},on:{"update:visible":function(i){e.columnBox=i}}},[t("ElTable",{ref:"table",attrs:{data:e.data,height:"100%",size:"small",border:""}},[t("ElTableColumn",{key:"label",attrs:{align:"center",width:"100","header-align":"center",prop:"label",label:"列名"}}),e._l(e.defaultColumn,function(i,s){return[i.hide!==!0?t("ElTableColumn",{key:s,attrs:{label:i.label,prop:i.prop,align:"center","header-align":"center"},scopedSlots:e._u([{key:"default",fn:function(a){var r=a.row;return[t("ElCheckbox",{on:{change:function(l){return e.handleChange(i.prop)}},model:{value:e.crud.objectOption[r.prop][i.prop],callback:function(l){e.$set(e.crud.objectOption[r.prop],i.prop,l)},expression:"crud.objectOption[row.prop][item.prop]"}})]}}],null,!0)}):e._e()]})],2)],1)],1):e._e()},Bf=[];const Af={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(e=>{e.showColumn!==!1&&this.data.push(e)}),this.columnBox=!0,this.$nextTick(()=>this.rowDrop())},handleChange(e){["hide","filters"].includes(e)&&this.crud.refreshTable()},rowDrop(){const e=this.$refs.table.$el.querySelectorAll(R.dropRowClass)[0];this.crud.tableDrop("column",e,n=>{const t=n.oldIndex,i=n.newIndex;this.crud.headerSort(t,i),this.crud.refreshTable(()=>this.rowDrop())})}}},Xa={};var Of=u(Af,Tf,Bf,!1,Mf,null,null,null);function Mf(e){for(let n in Xa)this[n]=Xa[n]}const sn=function(){return Of.exports}();var Pf=function(){var e=this,n=e.$createElement,t=e._self._c||n;return e.box?t("div",[t("ElementDialog",{staticClass:"avue-dialog",attrs:{title:"导出","lock-scroll":"",visible:e.box,width:e.crud.isMobile?"100%":"30%"},on:{"update:visible":function(i){e.box=i}},scopedSlots:e._u([{key:"footer",fn:function(){return[t("span",{staticClass:"dialog-footer"},[t("ElButton",{attrs:{type:"primary",size:e.crud.isMediumSize},on:{click:e.handleSubmit}},[e._v("确定")]),t("ElButton",{attrs:{size:e.crud.isMediumSize},on:{click:function(i){e.box=!1}}},[e._v("取消")])],1)]},proxy:!0}],null,!1,2375905330)},[t("FyForm",{attrs:{option:e.option},model:{value:e.form,callback:function(i){e.form=i},expression:"form"}})],1)],1):e._e()},Df=[];const Lf={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 e=this.crud.tableOption,n=this.crud.propOption,t=this.form.type?this.crud.list:this.crud.tableSelect,i=[];return this.form.params.includes("data")&&t.forEach(s=>{const a=$(s);n.forEach(r=>{const l=r.parentProp?(this.crud.cascaderDIC[r.$index]||{})[r.prop]:this.crud.DIC[r.prop];a[r.prop]=Vs(a,r,e,l)}),i.push(a)}),this.form.params.includes("sum")&&e.showSummary&&i.push(this.crud.sumsList),i},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 e=[];return this.crud.isHeader&&e.push("headers"),this.crud.isShowSummary&&e.push("sum"),e})()),dicData:[{label:"表头",disabled:!0,value:"header"},{label:"数据源",value:"data"}].concat((()=>{const e=[];return e.push({label:"复杂表头",value:"headers",disabled:!this.crud.isHeader}),e.push({label:"合计统计",value:"sum",disabled:!this.crud.isShowSummary}),e})())}]},this.form.type=this.crud.selectLen===0},getColumnOption(){const e=$(this.crud.columnOption),n=[],t=(i=[])=>{i.forEach((s,a)=>{const r=s.children;r&&!Array.isArray(r)?delete s.children:s.showColumn===!1?i.splice(a,1):(n.push(s.prop),s.children&&t(r))})};t(e),this.columnOption=e,this.form.prop=n},getColumn(){const e=$(this.columnOption),n=this.$refs.form.getPropRef("prop").$refs.temp.getHalfList();if(!this.form.params)return[];if(this.form.params.includes("headers")){const t=(i=[])=>{i.forEach((s,a)=>{n.includes(s.prop)?s.children&&t(s.children):i.splice(a,1)})};return t(e),e}else{const t=[],i=(s=[])=>{s.forEach(a=>{a.children?i(a.children):n.includes(a.prop)&&t.push(a)})};return i(e),t}}}},Za={};var Rf=u(Lf,Pf,Df,!1,Nf,null,null,null);function Nf(e){for(let n in Za)this[n]=Za[n]}const an=function(){return Rf.exports}();var jf=function(){var e=this,n=e.$createElement,t=e._self._c||n;return e.box?t("div",[t("ElDrawer",{staticClass:"avue-dialog",class:["avue-crud__dialog","avue-crud__filter"],attrs:{"lock-scroll":"","append-to-body":"",title:"过滤条件",size:e.crud.isMobile?"100%":"60%",visible:e.box},on:{"update:visible":function(i){e.box=i}}},[t("ElRow",{attrs:{span:24}},[t("div",{staticClass:"avue-crud__filter-menu"},[t("ElButtonGroup",[t("ElButton",{attrs:{type:"primary",size:e.crud.isMediumSize},on:{click:e.handleAdd}},[e._v(" 新增条件 ")]),t("ElButton",{attrs:{type:"primary",size:e.crud.isMediumSize},on:{click:e.handleClear}},[e._v(" 清空条件 ")]),t("ElButton",{attrs:{type:"primary",size:e.crud.isMediumSize},on:{click:e.handleValueClear}},[e._v(" 清空数据 ")])],1)],1),e._l(e.list,function(i,s){return t("ElCol",{key:s,staticClass:"avue-crud__filter-item",attrs:{md:12,xs:24,sm:12}},[t("FySelect",{staticClass:"avue-crud__filter-label",attrs:{dic:e.columnOption,clearable:!1,size:e.crud.isMediumSize},on:{change:function(a){return e.handleChange(s)}},model:{value:i.text,callback:function(a){e.$set(i,"text",a)},expression:"column.text"}}),t("FySelect",{staticClass:"avue-crud__filter-symbol",attrs:{dic:e.symbolDic,clearable:!1,size:e.crud.isMediumSize},model:{value:i.symbol,callback:function(a){e.$set(i,"symbol",a)},expression:"column.symbol"}}),t("FyInput",{staticClass:"avue-crud__filter-value",attrs:{size:e.crud.isMediumSize},model:{value:i.value,callback:function(a){e.$set(i,"value",a)},expression:"column.value"}}),t("ElButton",{staticClass:"avue-crud__filter-icon",attrs:{type:"danger",size:"mini",circle:"",icon:"el-icon-minus"},on:{click:function(a){return e.handleDelete(s)}}})],1)}),t("ElCol",{staticClass:"avue-form__menu avue-form__menu--right",attrs:{span:24}},[t("ElButton",{attrs:{type:"primary",size:e.crud.isMediumSize},on:{click:e.handleSubmit}},[e._v(" 确 定 ")]),t("ElButton",{attrs:{size:e.crud.isMediumSize},on:{click:function(i){e.box=!1}}},[e._v(" 取 消 ")])],1)],2)],1)],1):e._e()},zf=[];const Kf={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 e=[];$(this.crud.propOption).forEach(t=>{t.showColumn!==!1&&e.push(Object.assign(t,{value:t.prop}))}),this.columnOption=e,this.columnObj=this.columnOption[0]},handleDelete(e){this.list.splice(e,1)},handleClear(){this.list=[]},handleValueClear(){this.list.forEach(e=>{e.value=""})},handleSubmit(){const e=[];this.list.forEach(n=>{e.push([n.text,n.symbol,n.value])}),this.crud.$emit("filter",e),this.box=!1},handleChange(e){this.list[e].value=""},handleAdd(){const e=this.columnObj.prop;this.list.push({text:e,value:"",symbol:this.symbolDic[0].value})}}},er={};var Wf=u(Kf,jf,zf,!1,Vf,null,null,null);function Vf(e){for(let n in er)this[n]=er[n]}const rn=function(){return Wf.exports}();var Uf=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t(e.dialogType,e._b({tag:"Component",staticClass:"dialog-form",attrs:{visible:e.visible,"destroy-on-close":"","before-close":e.beforeClose},on:{"update:visible":function(i){e.visible=i}}},"Component",e.dialog,!1),[t("FyForm",{ref:"form",attrs:{option:Object.assign({},e.deepClone(e.option),{menuBtn:!1}),status:e.disabled},on:{"update:status":function(i){e.disabled=i},submit:e.handleSubmit,"reset-change":e.close},model:{value:e.data,callback:function(i){e.data=i},expression:"data"}}),e.isEmpty(e.option.menuBtn,!0)?t("span",{staticClass:"avue-dialog__footer",class:`avue-dialog__footer--${e.menuPosition}`},[e.isEmpty(e.option.submitBtn,!0)?t("ElButton",{attrs:{size:e.$AVUE.size,icon:e.option.submitIcon,loading:e.disabled,type:"primary"},on:{click:e.submit}},[e._v(e._s(e.option.submitText))]):e._e(),e.isEmpty(e.option.emptyBtn,!0)?t("ElButton",{attrs:{disabled:e.disabled,size:e.$AVUE.size,icon:e.option.emptyIcon},on:{click:e.reset}},[e._v(e._s(e.option.emptyText))]):e._e()],1):e._e()],1)},Hf=[];const ln={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:d.isEmpty,deepClone:$,submit(){this.$refs.form.submit()},reset(){this.$refs.form.resetForm()},beforeClose(e){e(),this.close()},show(e){this.opt=e,this.callback=e.callback;const n=this.deepClone(e);["callback","option","data"].forEach(t=>delete n[t]),this.dialog=Object.assign(this.dialog,n),this.dialog.size=this.dialog.width,this.isDrawer=this.dialog.type==="drawer",this.option=Object.assign(this.option,e.option),this.data=e.data,this.visible=!0},close(){const e=()=>{this.visible=!1,this.$destroy(),this.$el.remove()};typeof this.dialog.beforeClose=="function"?this.dialog.beforeClose(e):e()},handleSubmit(e,n){this.callback&&this.callback({data:e,close:this.close,done:n})}}};ln.showForm=e=>{const n=Ue.extend(ln),t=new n().$mount();return document.body.appendChild(t.$el),t.show(e),t};const qf=ln,tr={};var Gf=u(qf,Uf,Hf,!1,Jf,null,null,null);function Jf(e){for(let n in tr)this[n]=tr[n]}const on=function(){return Gf.exports}();var Qf=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"dynamic-table"},[t("ElTable",{key:e.key,staticStyle:{width:"100%"},attrs:{data:e.value}},[e._l(e.columns,function(i){return t("TableColumn",{key:i.prop,attrs:{prop:i.prop,label:i.label,"min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(s){var a=s.row,r=s.$index;return[t("ElFormItem",{style:{marginBottom:e.inputDisabled?"0px":"16px"},attrs:{prop:`${e.prop}.${r}.${i.prop}`,size:"mini",rules:e.getRules(i)}},[t("ElInput",{attrs:{"prefix-icon":e.getIcon(i),disabled:e.inputDisabled,placeholder:e.inputDisabled?"":`请输入${i.label}!`},model:{value:a[i.prop],callback:function(l){e.$set(a,i.prop,l)},expression:"row[column.prop]"}})],1)]}}],null,!0)})}),e.inputDisabled?e._e():t("TableColumn",{attrs:{label:"操作",width:"60",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(i){var s=i.row,a=i.column,r=i.$index;return[t("i",{staticClass:"el-icon-minus dynamic-table-action-icon",staticStyle:{position:"relative",top:"-8px",color:"#f00"},attrs:{title:"删除"},on:{click:function(l){return l.stopPropagation(),e.removeRow(s,r,a)}}})]}}],null,!1,410881950)})],2),e.inputDisabled?e._e():t("ElButton",{staticStyle:{color:"#08c108"},attrs:{type:"text",icon:"el-icon-plus"},on:{click:e.addRow}},[e._v(" 添加 ")])],1)},Yf=[];const nr={number:"fa fa-superscript",email:"el-icon-lx-mail",phone:"fa fa-phone",idCard:"el-icon-lx-news"},Xf={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(e){this.$emit("input",e)}},columns:{deep:!0,handler(){this.key++}}},methods:{getIcon(e){return nr[e.type]?nr[e.type]:""},addRow(){const e=this.value;e.push(this.newRow()),this.$emit("input",e)},removeRow(e,n){const t=this.value;t.splice(n,1),this.$emit("input",t)},newRow(){const e={};return this.columns.forEach(n=>{e[n.prop]=void 0}),e},getRules(e){const n=e.rules;if(["email","idCard","phone","number"].includes(e.type)){const t=d.fastClone(n||[]);return e.type==="number"&&t.push({validator:d.validateNumber,message:"请输入数字!"}),e.type==="email"&&t.push({type:"email",message:"请输入正确的邮箱地址!"}),e.type==="idCard"&&t.push({validator:d.validateIdCard,message:"请输入正确的身份证号码!"}),e.type==="phone"&&t.push({validator:d.validatePhoneNum,message:"请输入正确的手机号码!"}),t}else return n}}},ir={};var Zf=u(Xf,Qf,Yf,!1,ev,null,null,null);function ev(e){for(let n in ir)this[n]=ir[n]}const cn=function(){return Zf.exports}();var tv=function(){var e=this,n=e.$createElement,t=e._self._c||n;return e.rendered?t("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"easy-popup",style:e.axisComputed},[e._t("default")],2):e._e()},nv=[];const iv={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 e=document.body.offsetWidth,n=document.body.offsetHeight;this.axis.x+this.offset.x>=e&&(this.axis.x=e-this.borderWidth-this.offset.x),this.axis.y+this.offset.y>=n&&(this.axis.y=n-this.borderWidth-this.offset.y)}}},methods:{show(e){document.addEventListener("click",this.hide,!0),this.axis={x:e.clientX,y:e.clientY},this.rendered=!0,this.visible=!0},hide(){this.visible=!1,document.removeEventListener("click",this.hide)}}},sr={};var sv=u(iv,tv,nv,!1,av,null,null,null);function av(e){for(let n in sr)this[n]=sr[n]}const un=function(){return sv.exports}();var rv=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"echarts",style:{width:e.width,height:e.height}})},lv=[];const ov=["theme","initOptions","autoResize"],cv=["manualUpdate","watchShallow"],uv={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(e){this.chart.group=e}},created(){this.initOptionsWatcher(),ov.forEach(e=>{this.$watch(e,()=>{this.refresh()},{deep:!0})}),cv.forEach(e=>{this.$watch(e,()=>{this.initOptionsWatcher(),this.refresh()})})},mounted(){this.options&&this.init()},activated(){this.autoResize&&this.chart&&this.chart.resize()},destroyed(){this.chart&&this.destroy()},methods:{mergeOptions(e,n,t){this.manualUpdate&&(this.manualOptions=e),this.chart?this.delegateMethod("setOption",e,n,t):this.init(e)},appendData(e){this.delegateMethod("appendData",e)},resize(e){this.delegateMethod("resize",e)},dispatchAction(e){this.delegateMethod("dispatchAction",e)},convertToPixel(e,n){return this.delegateMethod("convertToPixel",e,n)},convertFromPixel(e,n){return this.delegateMethod("convertFromPixel",e,n)},containPixel(e,n){return this.delegateMethod("containPixel",e,n)},showLoading(e,n){this.delegateMethod("showLoading",e,n)},hideLoading(){this.delegateMethod("hideLoading")},getDataURL(e){return this.delegateMethod("getDataURL",e)},getConnectedDataURL(e){return this.delegateMethod("getConnectedDataURL",e)},clear(){this.delegateMethod("clear")},dispose(){this.delegateMethod("dispose")},delegateMethod(e,...n){return this.chart||this.init(),this.chart[e](...n)},delegateGet(e){return this.chart||this.init(),this.chart[e]()},getArea(){return this.$el.offsetWidth*this.$el.offsetHeight},init(e){if(this.chart)return;const n=se.init(this.$el,this.theme,this.initOptions);this.group&&(n.group=this.group),n.setOption(e||this.manualOptions||this.options||{},!0),Object.keys(this.$listeners).forEach(t=>{const i=this.$listeners[t];t.indexOf("zr:")===0?n.getZr().on(t.slice(3),i):n.on(t,i)}),this.autoResize&&(this.lastArea=this.getArea(),this.__resizeHandler=O.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}),na.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=n},initOptionsWatcher(){this.__unwatchOptions&&(this.__unwatchOptions(),this.__unwatchOptions=null),this.manualUpdate||(this.__unwatchOptions=this.$watch("options",(e,n)=>{!this.chart&&e?this.init():this.chart.setOption(e,e!==n)},{deep:!this.watchShallow}))},destroy(){this.autoResize&&na.removeListener(this.$el,this.__resizeHandler),this.dispose(),this.chart=null},refresh(){this.chart&&(this.destroy(),this.init())}},connect(e){d.isString(e)||(e=e.map(n=>n.chart)),se.connect(e)},disconnect(e){se.disConnect(e)},getMap(e){return se.getMap(e)},registerMap(e,n,t){se.registerMap(e,n,t)},registerTheme(e,n){se.registerTheme(e,n)},graphic:se.graphic},ar={};var dv=u(uv,rv,lv,!1,pv,null,null,null);function pv(e){for(let n in ar)this[n]=ar[n]}const dn=function(){return dv.exports}();var hv=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"editable-progress",on:{mouseover:e.onMouseOver,mousedown:e.onMouseDown,mouseleave:e.onMouseLeave,click:e.wrapperClick}},[t("ElProgress",{directives:[{name:"show",rawName:"v-show",value:!e.slider,expression:"!slider"}],class:e.percent===100?"progress__success":"",attrs:{"stroke-width":e.strokeWidth,"text-inside":"",percentage:e.percent}}),e.disabled?e._e():t("ElSlider",{directives:[{name:"show",rawName:"v-show",value:e.slider,expression:"slider"}],ref:"slider",style:{width:`${e.max===100?100:e.max-1}%`},attrs:{"tooltip-class":e.tooltipClass,max:e.max,"format-tooltip":e.formatTooltip,disabled:e.disabled,step:e.step},on:{input:e.onInput,change:e.onChange},model:{value:e.percent,callback:function(i){e.percent=i},expression:"percent"}})],1)},mv=[];const fv={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(e){this.percent!==e&&(this.percent=e)}},methods:{formatTooltip(e){return`${e}%`},onInput(e){this.value!==e&&this.$emit("input",e)},onChange(e){this.slider=!1,this.tooltipClass="hide-tooltip",this.$emit("change",e)},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)}}},rr={};var vv=u(fv,hv,mv,!1,_v,null,null,null);function _v(e){for(let n in rr)this[n]=rr[n]}const pn=function(){return vv.exports}();var gv=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"editable-tree"},[!e.readonly&&e.addRootNodeButtonStyle==="top-right"?t("ElButton",{staticStyle:{position:"absolute",top:"4px","z-index":"1"},style:{right:`${e.right}px`},attrs:{type:"primary",size:"mini",icon:"el-icon-plus",circle:"",plain:""},on:{click:function(i){return i.stopPropagation(),e.$emit("add-root-node")}}}):e._e(),t("div",{ref:"treeWrapper",staticClass:"et-tree-wrapper"},[!e.readonly&&e.addRootNodeButtonStyle==="top"?t("div",{staticStyle:{"padding-left":"24px"}},[t("ElButton",{attrs:{disabled:e.loading,size:"mini",type:"text"},on:{click:e.appendRootNode}},[t("i",{staticClass:"el-icon-lx-add"}),e._v(" "+e._s(e.addRootNodeLabel?e.addRootNodeLabel:`添加${e.label}`)+" ")])],1):e._e(),t("ElTree",e._g(e._b({key:e.treeKey,ref:"tree",staticClass:"flex-item",attrs:{"default-expanded-keys":e.expandedKeys,"expand-on-click-node":!1,"highlight-current":"",load:e.loadNode,data:e.innerTreeData,props:e.treeProps,lazy:e.lazy,"node-key":e.nodeKey},on:{"node-click":e.nodeClick,"node-contextmenu":e.showContextMenu,"node-expand":e.addExpandKey,"node-collapse":e.removeExpandKey},scopedSlots:e._u([{key:"default",fn:function(i){var s=i.node,a=i.data;return[e._t("default",function(){return[a.edit?[t("span",{staticClass:"custom-tree-node flex-row flex-item oh",attrs:{"data-id":a.id}},[e.icon?t("i",{staticClass:"node-icon shrink-0",class:a.loading?"el-icon-loading":"el-icon-edit-outline"}):e._e(),t("ElInput",{ref:"labelTxt",staticClass:"node-input flex-item",attrs:{size:"mini",placeholder:e.defaultOptions.inputPlaceholder},on:{blur:function(r){return e.inputBlur(r,s,a)}},nativeOn:{keyup:function(r){return function(l){return e.inputKeyup(l,s,a)}.apply(null,arguments)},click:function(r){r.stopPropagation()}},model:{value:e.text,callback:function(r){e.text=r},expression:"text"}}),e.confirmButton?[t("ElButton",{directives:[{name:"show",rawName:"v-show",value:!a.loading,expression:"!data.loading"}],staticClass:"shrink-0",attrs:{size:"mini",type:"text"},on:{click:function(r){return r.stopPropagation(),e.onConfirm(s,a)}}},[e._v("确定")]),t("ElButton",{directives:[{name:"show",rawName:"v-show",value:!a.loading,expression:"!data.loading"}],staticClass:"shrink-0",attrs:{size:"mini",type:"text"},on:{click:function(r){return r.stopPropagation(),e.onCancel(s,a)}}},[e._v("取消")])]:e._e()],2)]:[t("span",{staticClass:"custom-tree-node",attrs:{"data-id":a.id}},[t("span",{staticClass:"node-label flex-row flex-item oh ellipsis-1"},[e.icon?t("i",{staticClass:"node-icon",class:a.loading?"el-icon-loading":e.icon(a,s)}):e._e(),t("span",{staticClass:"flex-item-relative",staticStyle:{height:"21px"}},[t("span",{staticClass:"ellipsis-1 absolute-box et-tree-label",attrs:{title:s.label}},[e._t("label",function(){return[e._v(e._s(s.label))]},{data:a,node:s})],2)]),e._t("label-suffix",null,{node:s,data:a})],2),!e.contextMenu&&!e.readonly?t("span",{directives:[{name:"show",rawName:"v-show",value:!a.loading&&!e.loading,expression:"!data.loading && !loading"}],staticClass:"handle-actions"},[t("ElButton",{attrs:{size:"mini",type:"text"},on:{click:function(r){return r.stopPropagation(),e.appendChildNode(s,a)}}},[e._v("添加")]),t("ElButton",{attrs:{size:"mini",type:"text"},on:{click:function(r){return r.stopPropagation(),e.editNode(s,a)}}},[e._v("修改")]),t("ElPopconfirm",{staticClass:"pop-confirm",attrs:{"icon-color":"red",title:"你确定要删除吗?"},on:{confirm:function(r){return e.removeNode(s,a)}},scopedSlots:e._u([{key:"reference",fn:function(){return[t("ElButton",{directives:[{name:"show",rawName:"v-show",value:s.isLeaf,expression:"node.isLeaf"}],staticStyle:{"margin-left":"4px"},attrs:{size:"mini",type:"text"},on:{click:function(r){r.stopPropagation()}}},[e._v("删除")])]},proxy:!0}],null,!0)})],1):e._e(),e.contextMenuIcon&&e.contextMenu&&!e.readonly?t("span",{directives:[{name:"show",rawName:"v-show",value:!a.loading&&!e.loading,expression:"!data.loading && !loading"}],staticClass:"handle-actions",staticStyle:{display:"inline-block"}},[t("ElButton",{staticStyle:{padding:"6px 10px 0"},attrs:{size:"mini",type:"text"},on:{click:function(r){return r.stopPropagation(),e.showContextMenu(r,a,s)}}},[e._v(". . .")])],1):e._e()])]]},{node:s,data:a})]}}],null,!0)},"ElTree",e.filterTreeProperties(e.$attrs),!1),e.filterTreeEvents(e.$listeners))),e.contextMenu&&!e.readonly?t("div",{directives:[{name:"show",rawName:"v-show",value:e.showMenu,expression:"showMenu"}],ref:"contextMenu",staticClass:"menu",style:e.position},[t("ul",{staticClass:"menu-list"},[e._t("context-menu",function(){return[t("li",{directives:[{name:"show",rawName:"v-show",value:e.curData.id>-1,expression:"curData.id > -1"}],staticClass:"menu-item",on:{click:function(i){return e.appendPeerNode(e.curNode,e.curData)}}},[t("i",{staticClass:"menu-item-icon el-icon-lx-add",staticStyle:{color:"#228b22"}}),e._v(e._s(e.menuLabel.appendPeer)+" ")]),t("li",{staticClass:"menu-item",on:{click:function(i){return e.appendChildNode(e.curNode,e.curData)}}},[t("i",{staticClass:"menu-item-icon el-icon-lx-add",staticStyle:{color:"#228b22"}}),e._v(e._s(e.menuLabel.appendChild)+" ")]),t("li",{directives:[{name:"show",rawName:"v-show",value:e.curData.id>-1,expression:"curData.id > -1"}],staticClass:"menu-item",on:{click:function(i){return e.editNode(e.curNode,e.curData)}}},[t("i",{staticClass:"menu-item-icon el-icon-edit-outline",staticStyle:{color:"#ffa500"}}),e._v(e._s(e.menuLabel.editNode)+" ")]),t("li",{directives:[{name:"show",rawName:"v-show",value:e.curNode.isLeaf,expression:"curNode.isLeaf"}],staticClass:"menu-item",on:{click:function(i){return e.removeNodeModal(e.curNode,e.curData)}}},[t("i",{staticClass:"menu-item-icon el-icon-delete",staticStyle:{color:"#f00"}}),e._v(e._s(e.menuLabel.removeNode)+" ")])]},{curNode:e.curNode,curData:e.curData})],2)]):e._e()],1)],1)},yv=[];const bv={name:"EditableTree",props:{label:{type:String,default:"书签"},addRootNodeLabel:{type:String},defaultExpandedKeys:{type:Array,default:()=>[]},newNodeBuilder:{type:Function,default:(e,n)=>({name:e,parentId:n.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:e=>d.hasOwn(e,"hasChildren")?!e.hasChildren:d.hasOwn(e,"hasChild")?!e.hasChild:d.hasOwn(e,"children")&&e.children?e.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:e=>e!=null&&e.trim().length>0}},innerTreeData(){var e;return(e=this.$attrs.data)!=null&&e.length?this.$attrs.data:this.treeData}},watch:{defaultExpandedKeys:{immediate:!0,handler(e){this.expandedKeys=[...e]}}},created(){this.tryFetch()},mounted(){Te.addResizeListener(this.$refs.tree.$el,this.resize),Te.addResizeListener(this.$refs.treeWrapper,this.resize)},beforeDestroy(){Te.removeResizeListener(this.$refs.tree.$el,this.resize),Te.removeResizeListener(this.$refs.treeWrapper,this.resize)},methods:{filterTreeProperties:_f,filterTreeEvents:gf,addExpandKey(e){this.reserveExpandKey&&this.expandedKeys.push(e[this.nodeKey])},removeExpandKey(e){this.reserveExpandKey&&(this.expandedKeys=this.expandedKeys.filter(n=>n!==e[this.nodeKey]))},resize(){d.isVerticalScrollbarVisible(this.$refs.treeWrapper)?this.right=4+d.scrollbarWidth:this.right=4},showContextMenu(e,n,t){return _(this,null,function*(){n.contextmenu===!1||n.id===-1||n.id===0||n.edit===!0||this.contextMenu&&(this.curNode=t,this.curData=n,this.showMenu=!0,this.$refs.tree.setCurrentKey(n.id),yield this.$nextTick(),this.position=d.computePosition(e,this.$refs.contextMenu),window.addEventListener("click",this.hideContextMenu))})},hideContextMenu(){this.showMenu=!1,window.removeEventListener("click",this.hideContextMenu)},tryFetch(){return _(this,null,function*(){var e,n;if(this.lazy===!1&&this.fetchApi){const t=yield this.fetchApi((n=(e=this.rootNode)==null?void 0:e.id)!=null?n:-1,{});if(d.isPlainObject(t.data)&&(t.data=[t.data]),t.data=t.data||[],this.empty=t.data.length===0,d.isPlainObject(this.customRootNode)){const i=O.cloneDeep(this.customRootNode);i[this.treeProps.children||"children"]=t.data,this.treeData=[i]}else if(d.isFunction(this.customRootNode)){const i=this.customRootNode(t.data);i[this.treeProps.children||"children"]=t.data,this.treeData=d.isPlainObject(i)?[i]:i}else this.treeData=t.data}})},loadNode(e,n){return _(this,null,function*(){var t,i,s,a;if(e.level===0){const r=yield this.fetchApi((i=(t=this.rootNode)==null?void 0:t.id)!=null?i:-1,e);if(this.empty=r.data.length===0,d.isPlainObject(this.customRootNode)){const l=O.cloneDeep(this.customRootNode);l[this.treeProps.children||"children"]=r.data,n([l])}else if(d.isFunction(this.customRootNode)){const l=this.customRootNode(r.data);l[this.treeProps.children||"children"]=r.data,this.treeData=d.isPlainObject(l)?[l]:l}else n(r.data);yield this.$nextTick(),this.$emit("root-node-loaded",r.data),this.defaultExpandedKeys?this.expandedKeys=[(s=r==null?void 0:r.data[0])==null?void 0:s.id,...this.defaultExpandedKeys]:this.expandFirstNode&&(this.expandedKeys=[(a=r==null?void 0:r.data[0])==null?void 0:a.id])}else{if(e.leaf||e.data.isTempNode)return n([]);const r=yield this.fetchApi(e.data.id,e);n(r.data),yield this.$nextTick(),this.$emit("node-loaded",r.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&&(d.isUndefined(this.editData.edit)?this.$set(this.editData,"edit",!0):this.editData.edit=!1)},editNode(e,n){return _(this,null,function*(){!this.contextMenu||this.contextMenuIcon||this.contextMenuInline?(this.clear(),this.editData=n,this.text=n[this.treeProps.label],d.isUndefined(n.edit)?this.$set(n,"edit",!0):n.edit=!0,yield this.$nextTick(),this.$refs.labelTxt.focus()):yield this.$prompt(`请输入新的${this.label}名:`,E(f({},this.defaultOptions),{inputValue:n[this.treeProps.label],beforeClose:(t,i,s)=>_(this,null,function*(){if(t==="confirm"){try{i.confirmButtonLoading=!0,i.confirmButtonText="处理中...",this.text=i.inputValue,yield this.onConfirm(this.curNode,this.curData),s()}catch(a){i.confirmButtonText="确定"}i.confirmButtonLoading=!1}else s()})})).catch(t=>t)})},appendRootNode(){return _(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}名:`,E(f({},this.defaultOptions),{beforeClose:(e,n,t)=>_(this,null,function*(){if(e==="confirm"){try{this.createNewChild(-1),n.confirmButtonLoading=!0,n.confirmButtonText="处理中...";const i=yield this.saveApi(this.newNodeBuilder(n.inputValue,{id:-1}));this.newChild[this.treeProps.label]=n.inputValue,this.newChild.edit=!1,at(this.newChild,i.data),this.$refs.tree.root.insertChild({data:this.newChild},void 0,!0),yield this.locateView(),t()}catch(i){n.confirmButtonText="确定"}n.confirmButtonLoading=!1}else t()})})).catch(e=>e)})},appendChildNode(e){this.text="";const n=e.expanded;e.expand(()=>_(this,null,function*(){!this.contextMenu||this.contextMenuIcon||this.contextMenuInline?(this.clear(),this.createNewChild(e.data.id),this.$refs.tree.append(this.newChild,e),yield this.scrollIntoView(n)):yield this.$prompt(`请输入${this.label}名:`,E(f({},this.defaultOptions),{beforeClose:(t,i,s)=>_(this,null,function*(){if(t==="confirm"){try{this.createNewChild(e.data.id),i.confirmButtonLoading=!0,i.confirmButtonText="处理中...";const a=yield this.saveApi(this.newNodeBuilder(i.inputValue,e.data));this.newChild[this.treeProps.label]=i.inputValue,this.newChild.edit=!1,at(this.newChild,a.data),this.$refs.tree.append(this.newChild,e),yield this.locateView(),s()}catch(a){i.confirmButtonText="确定"}i.confirmButtonLoading=!1}else s()})})).catch(t=>t)}))},appendChildNodeWithData(e,n,t){this.text="";const i=e.expanded;e.expand(()=>_(this,null,function*(){this.clear(),this.newChild={id:-1,parentId:n,[this.treeProps.label]:t,edit:!1,isTempNode:!0,hasChildren:!1},this.$refs.tree.append(this.newChild,e),yield this.scrollIntoView(i)}))},appendPeerNode(e){e.parent&&e.parent.level!==0?this.appendChildNode(e.parent):this.appendRootNode()},addRootNode(e){return _(this,null,function*(){this.$refs.tree.remove(e),yield this.$nextTick(),this.$refs.tree.root.insertChild({data:e},void 0,!0)})},addChildNode(e){return _(this,null,function*(){this.curNode&&this.curNode.level!==0?this.curNode.expand(()=>_(this,null,function*(){this.$refs.tree.remove(e),yield this.$nextTick(),this.$refs.tree.append(e,this.curNode)})):yield this.addRootNode(e)})},addPeerNode(e){return _(this,null,function*(){this.curNode&&this.curNode.parent&&this.curNode.parent.level!==0?this.curNode.parent.expand(()=>_(this,null,function*(){this.$refs.tree.remove(e),yield this.$nextTick(),this.$refs.tree.append(e,this.curNode.parent)})):yield this.addRootNode(e)})},updateNode(e){const n=this.$refs.tree.getNode(e);n&&(n.data=e)},setCurrentKey(e){this.$refs.tree&&this.$refs.tree.setCurrentKey(e)},createNewChild(e){this.newChild={id:-1,parentId:e,[this.treeProps.label]:"",edit:!0,isTempNode:!0,hasChildren:!1},this.$emit("create-new-node",this.newChild)},removeNodeModal(e){return _(this,null,function*(){yield this.$confirm(`你确定要删除${this.label}[<span class="break-word" style="color: orange">${e.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:(n,t,i)=>_(this,null,function*(){if(n==="confirm"){try{t.confirmButtonLoading=!0,t.confirmButtonText="删除...";const s=e.parent,a=yield this.deleteApi(e.data.id);a.code===0?(this.$message.success("删除成功!"),this.$refs.tree.remove(e),this.$emit("node-deleted",s,e.data),i()):this.$message.error(a.message)}catch(s){}t.confirmButtonText="确定",t.confirmButtonLoading=!1}else i()})}).catch(n=>n)})},removeNode(e){return _(this,null,function*(){try{const n=e.parent;if(this.deleteApi){const t=yield this.deleteApi(e.data.id);t.code===0?(this.$message.success("删除成功!"),this.$refs.tree.remove(e),this.$emit("node-deleted",n,e.data)):this.$message.error(t.message)}else this.$refs.tree.remove(e)}catch(n){}})},onConfirm(e,n){return _(this,null,function*(){if(n[this.treeProps.label]===this.text||!d.isNotEmpty(this.text)){this.clear();return}d.isUndefined(n.loading)?this.$set(n,"loading",!0):n.loading=!0;try{if(this.loading=!0,n.id===-1){const t=yield this.saveApi(this.newNodeBuilder(this.text,e.parent.data||{id:-1})),i=d.fastClone(n);at(n,E(f({},t.data),{isTempNode:!1})),this.$emit("node-added",n,i,e),this.registerNode(e)}else yield this.updateApi(E(f({},n),{[this.treeProps.label]:this.text}));n[this.treeProps.label]=this.text,n.edit=!1,this.$emit("node-updated",n,e),this.text=""}catch(t){}n.loading=!1,this.loading=!1})},onCancel(e,n){n.id===-1?this.$refs.tree.remove(e):n.edit=!1,this.text=""},nodeClick(e,n,t){this.hideContextMenu(),(d.isUndefined(e.loading)||!e.loading)&&(this.curNode=n,this.curData=e,this.$emit("on-node-click",e,n,t))},getCurrentNode(){return this.$refs.tree.getCurrentNode()},locateView(){return _(this,null,function*(){yield this.$nextTick();const e=this.$el.querySelector(`[data-id="${this.newChild.id}"]`);e&&e.scrollIntoView()})},scrollIntoView(e){return _(this,null,function*(){var n,t;yield this.$nextTick(),e||(yield d.delay(300)),(t=(n=this.$refs)==null?void 0:n.labelTxt)==null||t.focus()})},inputKeyup(e,n,t){e.keyCode===13&&this.onConfirm(n,t),e.keyCode===27&&this.clear()},inputBlur(e,n,t){this.confirmButton||this.onConfirm(n,t)},getCheckedKeys(){return this.$refs.tree.getCheckedKeys()},setCheckedKeys(e){this.$refs.tree.setCheckedKeys(e)},getCheckedNodes(){return this.$refs.tree.getCheckedNodes()},setCheckedNodes(e){this.$refs.tree.setCheckedNodes(e)},getNode(e){return this.$refs.tree.getNode(e)},getRootNode(){return this.$refs.tree.root},findTreeNode(e){return d.findTreeChildren(this.$refs.tree.root.childNodes,n=>n.data===e||n.data.id===e,"childNodes")},registerNode(e){e.store.registerNode(e),delete e.store.nodesMap[-1]},reloadTree(){return _(this,null,function*(){this.lazy?this.treeKey=Date.now():yield this.tryFetch()})}}},lr={};var xv=u(bv,gv,yv,!1,$v,null,null,null);function $v(e){for(let n in lr)this[n]=lr[n]}const hn=function(){return xv.exports}();var wv=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"el-collapse",attrs:{role:"tablist","aria-multiselectable":"true"}},[e._t("default")],2)},Cv=[];const Sv={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(e){this.activeNames=[].concat(e)}},created(){this.$on("item-click",this.handleItemClick)},methods:{setActiveNames(e){e=[].concat(e);const n=this.accordion?e[0]:e;this.activeNames=e,this.$emit("input",n),this.$emit("change",n)},handleItemClick(e){if(this.accordion)this.setActiveNames((this.activeNames[0]||this.activeNames[0]===0)&&this.activeNames[0]===e.name?"":e.name);else{const n=this.activeNames.slice(0),t=n.indexOf(e.name);t>-1?n.splice(t,1):n.push(e.name),this.setActiveNames(n)}}}},or={};var kv=u(Sv,wv,Cv,!1,Ev,null,null,null);function Ev(e){for(let n in or)this[n]=or[n]}const mn=function(){return kv.exports}();var Fv=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"el-collapse-item",class:{"is-active":e.isActive,"is-disabled":e.disabled}},[t("div",{attrs:{role:"tab","aria-expanded":e.isActive,"aria-controls":`el-collapse-content-${e.id}`,"aria-describedby":`el-collapse-content-${e.id}`}},[t("div",{staticClass:"el-collapse-item__header",class:{focusing:e.focusing,"is-active":e.isActive},attrs:{id:`el-collapse-head-${e.id}`,role:"button",tabindex:e.disabled?void 0:0},on:{click:e.handleHeaderClick,keyup:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"space",32,i.key,[" ","Spacebar"])&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:(i.stopPropagation(),e.handleEnterClick.apply(null,arguments))},focus:e.handleFocus,blur:function(i){e.focusing=!1}}},[t("i",{staticClass:"el-collapse-item__arrow el-icon-arrow-right",class:{"is-active":e.isActive},staticStyle:{margin:"0 4px 0 0"}}),e._t("title",function(){return[e._v(" "+e._s(e.title)+" ")]},{title:e.title})],2)]),t("ElCollapseTransition",[t("div",{directives:[{name:"show",rawName:"v-show",value:e.isActive,expression:"isActive"}],staticClass:"el-collapse-item__wrap",attrs:{id:`el-collapse-content-${e.id}`,role:"tabpanel","aria-hidden":!e.isActive,"aria-labelledby":`el-collapse-head-${e.id}`}},[t("div",{staticClass:"el-collapse-item__content"},[e._t("default")],2)])])],1)},Iv=[];const Tv={name:"EgdCollapseItem",componentName:"EgdCollapseItem",mixins:[_u],inject:["collapse"],props:{title:{type:String},name:{type:[String,Number],default(){return this._uid}},disabled:Boolean},data(){return{focusing:!1,isClick:!1,id:gu.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)}}},cr={};var Bv=u(Tv,Fv,Iv,!1,Av,null,null,null);function Av(e){for(let n in cr)this[n]=cr[n]}const fn=function(){return Bv.exports}();var Ov=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("Transition",{attrs:{name:"dialog-fade"},on:{"after-enter":e.afterEnter,"after-leave":e.afterLeave}},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"},{name:"dialog-drag",rawName:"v-dialog-drag:[fullScreen]",value:{onMove:e.updatePopper},expression:"{ onMove: updatePopper }",arg:e.fullScreen}],staticClass:"el-dialog__wrapper",on:{click:function(i){return i.target!==i.currentTarget?null:e.handleWrapperClick.apply(null,arguments)}}},[t("div",{ref:"dialog",class:["el-dialog","element-dialog","el-dialog-resizeable","normalize",{"is-fullscreen":e.fullScreen,"el-dialog__body-padding":e.bodyPadding,"el-dialog--center":e.center,"el-dialog--flex-row":e.flexRow,"el-dialog--flex-column":e.flexColumn},e.customClass],style:e.style,attrs:{role:"dialog","aria-modal":"true","aria-label":e.title||"dialog"}},[t("div",{staticClass:"el-dialog__header"},[e._t("title",function(){return[t("span",{staticClass:"el-dialog__title"},[e._v(e._s(e.title))])]}),t("div",{staticClass:"header-button-wrapper"},[e._t("header-button"),e.showFullScreen?t("ElButton",{staticClass:"header-button",attrs:{type:"text",icon:e.fullScreen?"el-icon-copy-document":"el-icon-full-screen",size:"medium",title:e.fullScreen?"还原":"最大化"},on:{click:e.toggleFullScreen}}):e._e(),e.showClose?t("ElButton",{staticClass:"header-button header-dialog-close",attrs:{"aria-label":"Close",type:"text",title:"关闭",icon:"el-icon-close",size:"medium"},on:{click:e.handleClose}}):e._e()],2)],2),e.rendered?t("div",{staticClass:"el-dialog__body",style:{height:e.fullScreen?"100%":e.height}},[e.destroyOnClose?[e.visible?e._t("default"):e._e()]:e._t("default")],2):e._e(),e.shouldShowFooter()?t("div",{staticClass:"el-dialog__footer"},[e._t("footer",null,{handleClose:e.handleClose})],2):e._e()])])])},Mv=[];const Pv={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"}}},Dv={name:"ElementDialog",directives:{dialogDrag:yu.dialogDrag},mixins:[...ia.mixins||ia.default.mixins,Pv],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 e={maxHeight:"100%"};return this.fullScreen||(e.marginTop=this.top,this.width&&(e.width=this.width),e.maxHeight=this.maxHeight),e}},watch:{visible(e){e?(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 e,n;return!!((n=(e=this.$scopedSlots).footer)!=null&&n.call(e))},handleWrapperClick(){this.closeOnClickModal&&this.handleClose()},handleClose(){typeof this.beforeClose=="function"?this.beforeClose(this.hide):this.hide()},hide(e){e!==!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")}}},ur={};var Lv=u(Dv,Ov,Mv,!1,Rv,null,null,null);function Rv(e){for(let n in ur)this[n]=ur[n]}const vn=function(){return Lv.exports}();var Nv=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"empty-view",style:{fontSize:e.fontSize,height:e.height}},[e._t("default",function(){return[t("div",{staticClass:"flex-column horizon-center"},[e.showIcon?t("i",{class:e.icon,style:{fontSize:e.iconSize}}):e._e(),t("p",[e._v(e._s(e.emptyTips))])])]})],2)},jv=[];const zv={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%"}}},dr={};var Kv=u(zv,Nv,jv,!1,Wv,null,null,null);function Wv(e){for(let n in dr)this[n]=dr[n]}const _n=function(){return Kv.exports}();var Vv=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"error-view",style:{fontSize:e.fontSize,height:e.height}},[e._t("default",function(){return[t("div",{staticClass:"flex-column horizon-center"},[t("i",{staticClass:"fa fa-frown-o",style:{fontSize:e.iconSize}}),t("p",[e._v(e._s(e.errorTips))])])]})],2)},Uv=[];const Hv={name:"ErrorView",props:{errorTips:{type:String,default:"加载失败,请重试"},fontSize:{type:String,default:"20px"},iconSize:{type:String,default:"20px"},height:{type:String,default:"100%"}}},pr={};var qv=u(Hv,Vv,Uv,!1,Gv,null,null,null);function Gv(e){for(let n in pr)this[n]=pr[n]}const gn=function(){return qv.exports}(),Jv={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(e,{data:n,children:t,props:i}){const s=Ye(n.class,"flex-column");return i.center||i.horizonCenter&&i.verticalCenter?(s.push("horizon-center"),s.push("vertical-center")):(i.horizonCenter&&s.push("horizon-center"),i.verticalCenter&&s.push("vertical-center")),i.textCenter&&s.push("text-center"),e("div",E(f({},n),{class:s}),t)}};let Qv,Yv;const hr={};var Xv=u(Jv,Qv,Yv,!1,Zv,null,null,null);function Zv(e){for(let n in hr)this[n]=hr[n]}const yn=function(){return Xv.exports}(),e_={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(e,{children:n,data:t,props:i}){const s=Ye(t.class,i.relative?"flex-item-relative":"flex-item");return i.absolute&&!i.relative&&s.push("flex-item-relative"),i.center||i.horizonCenter&&i.verticalCenter?(s.push("horizon-center"),s.push("vertical-center")):(i.horizonCenter&&s.push("horizon-center"),i.verticalCenter&&s.push("vertical-center")),i.textCenter&&s.push("text-center"),i.flexColumn&&s.push("flex-column"),i.flexRow&&s.push("flex-row"),i.absolute?e("div",E(f({},t),{class:s}),[e("div",{class:"absolute",style:"overflow:auto"},n)]):e("div",E(f({},t),{class:s}),n)}};let t_,n_;const mr={};var i_=u(e_,t_,n_,!1,s_,null,null,null);function s_(e){for(let n in mr)this[n]=mr[n]}const bn=function(){return i_.exports}(),a_={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(e,{data:n,children:t,props:i}){const s=Ye(n.class,"flex-row");return i.center||i.horizonCenter&&i.verticalCenter?(s.push("horizon-center"),s.push("vertical-center")):(i.horizonCenter&&s.push("horizon-center"),i.verticalCenter&&s.push("vertical-center")),i.textCenter&&s.push("text-center"),e("div",E(f({},n),{class:s}),t)}};let r_,l_;const fr={};var o_=u(a_,r_,l_,!1,c_,null,null,null);function c_(e){for(let n in fr)this[n]=fr[n]}const xn=function(){return o_.exports}();var u_=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"flex-scroller-wrapper"},[t("div",{class:["flex-scroller",{"flex-column":e.flexColumn,"flex-row":e.flexRow,"content-scroll":e.contentScroll},e.contentClass]},[e._t("default")],2)])},d_=[];const p_={name:"FlexScroller",props:{flexColumn:Boolean,flexRow:Boolean,contentClass:{type:String},contentScroll:{type:Boolean,default:!0}}},vr={};var h_=u(p_,u_,d_,!1,m_,null,null,null);function m_(e){for(let n in vr)this[n]=vr[n]}const $n=function(){return h_.exports}();var f_=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"avue-flow",style:e.styleName},[t("div",{style:e.styleName,attrs:{id:e.id}},[t("div",{staticClass:"avue-grid"}),e._l(e.option.nodeList,function(i,s){return[i.display?e._e():t("FlowNode",{key:s,attrs:{id:i.id,node:i,index:s,active:e.active},on:{changeNodeSite:e.changeNodeSite},nativeOn:{click:function(a){return e.handleClick(i)}},scopedSlots:e._u([{key:"header",fn:function(a){var r=a.node;return[e._t("header",null,{node:r})]}}],null,!0)},[e._t("default",null,{node:i})],2)]})],2)])},v_=[];const __={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(e){this.$emit("input",e),this.$emit("change",e)}},styleName(){return{position:"relative",width:w(this.width),height:w(this.height)}}},created(){this.id=zd(),this.jsplumbSetting.Container=this.id},mounted(){this.init()},methods:{init(){this.jsPlumb=window.jsPlumb.getInstance(),this.$nextTick(()=>{this.jsPlumbInit()})},handleClick(e){this.$emit("click",e)},hasLine(e,n){for(let t=0;t<this.data.lineList.length;t++){const i=this.data.lineList[t];if(i.from===e&&i.to===n)return!0}return!1},hashOppositeLine(e,n){return this.hasLine(n,e)},deleteLine(e,n){this.option.lineList=this.option.lineList.filter(function(t){return t.from!==e&&t.to!==n})},changeLine(e,n){this.deleteLine(e,n)},changeNodeSite({index:e,left:n,top:t}){for(let i=0;i<this.option.nodeList.length;i++)i===e&&(this.$set(this.option.nodeList[i],"left",n),this.$set(this.option.nodeList[i],"top",t))},deleteNode(e){return this.$confirm(`确定要删除节点${e}?`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",closeOnClickModal:!1}).then(()=>{this.option.nodeList.forEach(n=>{n.id===e&&(n.display=!0)}),this.$nextTick(function(){this.jsPlumb.removeAllEndpoints(e)})}).catch(()=>{}),!0},addNode(e){const n=this.option.nodeList.length,t=`node${n}`;this.option.nodeList.push({id:`node${n}`,name:e,left:0,top:0}),this.$nextTick(function(){this.jsPlumb.makeSource(t,this.jsplumbSourceOptions),this.jsPlumb.makeTarget(t,this.jsplumbTargetOptions),this.jsPlumb.draggable(t,{containment:"parent"})})},loadEasyFlow(){for(let e=0;e<this.option.nodeList.length;e++){const n=this.option.nodeList[e];this.jsPlumb.makeSource(n.id,this.jsplumbSourceOptions),this.jsPlumb.makeTarget(n.id,this.jsplumbTargetOptions),this.jsPlumb.draggable(n.id)}for(let e=0;e<this.option.lineList.length;e++){const n=this.option.lineList[e];this.jsPlumb.connect({source:n.from,target:n.to},this.jsplumbConnectOptions)}this.$nextTick(function(){this.loadEasyFlowFinish=!0})},jsPlumbInit(){const e=this;this.jsPlumb.ready(function(){e.jsPlumb.importDefaults(e.jsplumbSetting),e.jsPlumb.setSuspendDrawing(!1,!0),e.loadEasyFlow(),e.jsPlumb.bind("click",function(n){console.log("click",n),e.$confirm("确定删除所点击的线吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{e.jsPlumb.deleteConnection(n)}).catch(()=>{})}),e.jsPlumb.bind("connection",function(n){console.log("connection",n);const t=n.source.id,i=n.target.id;e.loadEasyFlowFinish&&e.option.lineList.push({from:t,to:i})}),e.jsPlumb.bind("connectionDetached",function(n){console.log("connectionDetached",n),e.deleteLine(n.sourceId,n.targetId)}),e.jsPlumb.bind("connectionMoved",function(n){console.log("connectionMoved",n),e.changeLine(n.originalSourceId,n.originalTargetId)}),e.jsPlumb.bind("contextmenu",function(n){console.log("contextmenu",n)}),e.jsPlumb.bind("beforeDrop",function(n){console.log("beforeDrop",n);const t=n.sourceId,i=n.targetId;return t===i?(e.$message.error("不能连接自己"),!1):e.hasLine(t,i)?(e.$message.error("不能重复连线"),!1):e.hashOppositeLine(t,i)?(e.$message.error("不能回环哦"),!1):!0}),e.jsPlumb.bind("beforeDetach",function(n){console.log("beforeDetach",n)})})}}},_r={};var g_=u(__,f_,v_,!1,y_,null,null,null);function y_(e){for(let n in _r)this[n]=_r[n]}const wn=function(){return g_.exports}();var b_=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{ref:"node",style:e.flowNodeContainer,attrs:{left:e.node.left,top:e.node.top,disabled:"",mask:!1},on:{mouseenter:e.showDelete,mouseleave:e.hideDelete,mouseup:e.changeNodeSite}},[t("div",{class:["avue-flow__node",{active:e.active===e.node.id}]},[t("div",{staticClass:"avue-flow__node-header"},[t("i",{staticClass:"el-icon-rank",class:e.b("node-drag")}),e._t("header",null,{node:e.node})],2),t("div",{staticClass:"avue-flow__node-body"},[e._t("default",null,{node:e.node})],2)])])},x_=[];const $_={name:"FlowNode",props:{active:[String,Number],index:[String,Number],node:Object},data(){return{mouseEnter:!1}},computed:{flowNodeContainer:{get(){return{position:"absolute",width:"200px",top:w(this.node.top),left:w(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",""))})}}},gr={};var w_=u($_,b_,x_,!1,C_,null,null,null);function C_(e){for(let n in gr)this[n]=gr[n]}const Cn=function(){return w_.exports}();var S_=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{ref:"container",staticClass:"flow-viewer"},[t("EasyPopup",{ref:"popup"},[e._t("default",function(){return[e._v(" "+e._s(e.element)+" ")]},{element:e.element})],2)],1)},k_=[];const E_=Ns.prototype._handleWheel;Ns.prototype._handleWheel=function(e){const{target:n,deltaMode:t,clientX:i,clientY:s,deltaX:a,deltaY:r}=e;E_.call(this,{target:n,deltaMode:t,clientX:i,clientY:s,deltaX:a,deltaY:r,preventDefault(){e.preventDefault()},ctrlKey:!0})};const F_={__init__:["zoomScroll"],zoomScroll:["type",Ns]},I_={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(e){var n;(n=this.bpmnViewer)==null||n.importXML(e)},activities:"highlightActivity",flows:"highlightFlow"},mounted(){var n;const e=this.$refs.container;this.bpmnViewer=new bu(E(f({},this.options),{container:e,additionalModules:[F_]})),this.bpmnViewer.on("import.done",t=>{const i=t.error,s=t.warnings;i?this.$emit("error",i):this.$emit("shown",s),this.bpmnViewer.get("canvas").zoom("fit-viewport","center");const a=this.bpmnViewer.get("eventBus");this.canvas=this.bpmnViewer.get("canvas"),a.on("element.mousemove",r=>_(this,null,function*(){r.element.type==="bpmn:UserTask"&&(this.element=r.element,yield this.$nextTick(),this.$refs.popup.show(r.originalEvent))})),a.on("element.out",()=>{this.$refs.popup.hide(),this.element={}}),this.highlightFlow(this.flows),this.highlightActivity(this.activities)}),(n=this.bpmnViewer)==null||n.importXML(this.xml)},beforeDestroy(){var e;(e=this.bpmnViewer)==null||e.destroy()},methods:{getElementById(e){return this.canvas.getRootElement().children.find(n=>n.id===e)},highlightFlow(e){this.canvas.getRootElement().children.filter(n=>n.type==="bpmn:SequenceFlow"&&this.canvas.hasMarker(n,"highlight-line")).forEach(n=>{var t;return(t=this.canvas)==null?void 0:t.removeMarker(n,"highlight-line")}),e.length>0&&e.forEach(n=>{var i;const t=this.getElementById(n);t&&((i=this.canvas)==null||i.addMarker(t,"highlight-line"))})},highlightActivity(e){this.canvas.getRootElement().children.filter(n=>n.type==="bpmn:UserTask"&&this.canvas.hasMarker(n,"highlight")).forEach(n=>{var t;return(t=this.canvas)==null?void 0:t.removeMarker(n,"highlight")}),e.length>0&&e.forEach(n=>{var i;const t=this.getElementById(n);t&&((i=this.canvas)==null||i.addMarker(t,"highlight"))})}}},yr={};var T_=u(I_,S_,k_,!1,B_,null,null,null);function B_(e){for(let n in yr)this[n]=yr[n]}const Sn=function(){return T_.exports}(),rt=["disabled","size","statusIcon","inlineMessage","autoLabelWidth","hideRequiredAsterisk","$emit","validate","clearValidate"],A_=["$emit","validate","clearValidate"],O_={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 e={};return rt.forEach(n=>{e[n]=null}),{expand:!0,formConfig:e}},computed:{formCfg(){const e={enabled:this.enabled,forbidden:this.disabled};return rt.forEach(n=>{e[n]=this.elForm[n]}),e}},watch:{collapse:{immediate:!0,handler(e){this.expand=!e}},formCfg:{immediate:!0,handler(){this.formConfig.disabled=this.available(),rt.forEach(e=>{var n;e!=="disabled"&&(A_.includes(e)?this.formConfig[e]=(n=this.elForm[e])==null?void 0:n.bind(this.elForm):this.formConfig[e]=this.elForm[e])})}}},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(e,n,t){let i=this.$parent||this.$root,s=i.$options.name;for(;i&&(!s||s!==e);)i=i.$parent,i&&(s=i.$options.name);i&&i.$emit.apply(i,[n].concat(t))},renderDefault(){const e=this.$createElement,{wrapRow:n,gutter:t,formConfig:i,$scopedSlots:s}=this;return n?e("ElRow",{attrs:{gutter:t}},[s.default({disabled:i.disabled})]):s.default({disabled:i.disabled})},toggle(){this.expand=!this.expand},open(){this.expand=!0}},render(){const e=arguments[0],{renderDefault:n,blockTitle:t,active:i,expand:s,toggle:a}=this;return e("div",{class:["form-block",{"default-active":i}]},[e("div",{class:"form-block-title",on:{click:a}},[e("span",{class:"flex-item"},[t])," ",e("i",{class:s?"el-icon-arrow-down":"el-icon-arrow-right"})]),e("ElCollapseTransition",[e("div",{directives:[{name:"show",value:s}]},[n()])])])}};let M_,P_;const br={};var D_=u(O_,M_,P_,!1,L_,null,null,null);function L_(e){for(let n in br)this[n]=br[n]}const kn=function(){return D_.exports}(),R_={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"}}},N_={name:"FormButton",mixins:[Ke,R_]};let j_,z_;const xr={};var K_=u(N_,j_,z_,!1,W_,null,null,null);function W_(e){for(let n in xr)this[n]=xr[n]}const En=function(){return K_.exports}(),V_=["span"],jc=[...Object.keys(xu.props)],U_=jc.filter(e=>!V_.includes(e)),H_=["label","prop","rules","labelWidth","required"],zc=[...Object.keys($u.props)],q_=zc.filter(e=>!H_.includes(e)),G_=["wrapCol","wrapFormItem","unwrap","prefixConfig","block","placeholder","prefixPick","half",...jc,...zc],Kc={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 e;return`${this.prefix}${((e=this.label)==null?void 0:e.replace(":",""))||""}`},computeRules(){const e=[...this.rules||[]];if(this.required){const n=e.find(t=>t.required);n?n.ref?n.label=n.label||this.label:n.message=e.message||this.message:e.unshift(this.getRequireRule())}return e.concat(this.getRules())},computeSpan(){return this.block?24:this.span},formItemProps(){return B(f(f({},this.$props),this.$attrs),G_)},elFormItemProps(){return B(f(f({},this.$props),this.$attrs),q_)},elColProps(){return B(f(f({},this.$props),this.$attrs),U_)}},watch:{computeRules(){var e,n;(n=(e=this.elForm)==null?void 0:e.clearValidate)==null||n.call(e,this.prop)}},methods:{getRules(){return[]},getRequireRule(){return{required:!0,message:this.message}}}},z={mixins:[Kc],props:{value:[Boolean,String,Array,Number,Object,Date],readonly:Boolean,disabled:Boolean},computed:{computePlaceholder(){return this.placeholder===!0?this.message:this.placeholder},listeners(){return B(this.$listeners,"input",!1)},inputDisabled(){return this.disabled}}},Se={props:{prefixPick:{type:Boolean,default:!0}}};var J_=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("FormItem",e._b({attrs:{rules:e.computeRules,disabled:e.inputDisabled},scopedSlots:e._u([{key:"default",fn:function(){return[e._t("default",function(){return[t("ElCascader",e._g(e._b({class:{"is-readonly":e.readonly},staticStyle:{width:"100%"},attrs:{value:e.inputVal,"show-all-levels":e.showAllLevels,separator:e.separator,readonly:e.readonly,options:e.innerOptions,props:{checkStrictly:e.checkStrictly,label:e.labelKey,value:e.valueKey},disabled:e.inputDisabled,placeholder:e.computePlaceholder},on:{input:e.emitInput}},"ElCascader",e.inputProps,!1),e.listeners))]})]},proxy:!0},{key:"error",fn:function(i){var s=i.error;return[e._t("error",null,{error:s})]}},{key:"label",fn:function(){return[e._t("label")]},proxy:!0}],null,!0)},"FormItem",e.formItemProps,!1))},Q_=[];const Y_=Object.keys(wu.props).filter(e=>!["value","placeholder","disabled","options","showAllLevels","show-all-levels","separator"].includes(e)),X_={name:"FormCascader",mixins:[z,Se],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 B(f(f({},j(this.$attrs)),this.$props),Y_)},inputVal(){let[e]=d.findTreeChildren(this.innerOptions,t=>t[this.valueKey]===this.value);const n=[];for(;e;)n.push(e[this.valueKey]),e=e.parent;return n.reverse()}},watch:{options:{immediate:!0,handler(e){if(e){const n=O.cloneDeep(e);d.setParent(n),this.innerOptions=n}else this.innerOptions=[]}}},methods:{emitInput(e){const n=this.last?e[e.length-1]:e;this.$emit("input",n)}}},$r={};var Z_=u(X_,J_,Q_,!1,eg,null,null,null);function eg(e){for(let n in $r)this[n]=$r[n]}const Fn=function(){return Z_.exports}();var tg=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("FormItem",e._b({class:["form-checkbox-group",{"form-checkbox-group-row":e.fillRow},e.ellipsis?"form-checkbox-group-row-ellipsis":e.fillRow?"form-checkbox-group-row-break-word":""],attrs:{rules:e.computeRules,disabled:e.inputDisabled},scopedSlots:e._u([{key:"default",fn:function(){return[t("ElCheckboxGroup",e._g(e._b({attrs:{disabled:e.inputDisabled,value:e.computeVal,placeholder:e.computePlaceholder},on:{input:e.emitInput}},"ElCheckboxGroup",e.inputProps,!1),e.listeners),e._l(e.innerOptions,function(i){return t("ElCheckbox",{key:i[e.valueKey],attrs:{label:i[e.valueKey]}},[e._v(" "+e._s(i[e.labelKey])+" ")])}),1),e.computeVal.includes(e.otherVal)?t("FormInput",{staticClass:"form-checkbox-group-other",style:e.otherLabel?{width:e.otherWidth}:{marginBottom:0,width:e.otherWidth},attrs:{"wrap-col":!1,"label-width":"0",prop:e.otherProp,required:!!e.otherProp,placeholder:e.otherPlaceholder,label:e.otherLabel,"show-message":!!e.otherLabel,value:e.other},on:{input:function(i){return e.$emit("update:other",i)}}}):e._e()]},proxy:!0},{key:"error",fn:function(i){var s=i.error;return[e._t("error",null,{error:s})]}},{key:"label",fn:function(){return[e._t("label")]},proxy:!0},{key:"below",fn:function(){return[e._t("below")]},proxy:!0}],null,!0)},"FormItem",e.formItemProps,!1))},ng=[];const ig=Object.keys(Cu.props).filter(e=>!["value","placeholder","disabled"].includes(e)),sg={name:"FormCheckboxGroup",mixins:[z,Se],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 B(f(f({},j(this.$attrs)),this.$props),ig)},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(e){this.split?this.$emit("input",e.join(",")):this.$emit("input",e)}}},wr={};var ag=u(sg,tg,ng,!1,rg,null,null,null);function rg(e){for(let n in wr)this[n]=wr[n]}const In=function(){return ag.exports}();var lg=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("FormItem",e._b({attrs:{rules:e.computeRules,disabled:e.inputDisabled},scopedSlots:e._u([{key:"default",fn:function(){return[t("ElDatePicker",e._g(e._b({staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOption,value:e.innerVal,size:"mini",placeholder:e.computePlaceholder,type:e.type,disabled:e.inputDisabled},on:{input:e.emitInput}},"ElDatePicker",e.inputProps,!1),e.listeners)),e.$slots.warn?t("div",{staticClass:"el-form-item__warn"},[e._t("warn")],2):e._e()]},proxy:!0},{key:"error",fn:function(i){var s=i.error;return[e.$scopedSlots.error&&e.$scopedSlots.error(s)?t("div",{staticClass:"el-form-item__error"},[e._t("error",function(){return[e._v(" "+e._s(s)+" ")]},{error:s})],2):e._e()]}},{key:"label",fn:function(){return[e._t("label")]},proxy:!0}],null,!0)},"FormItem",e.formItemProps,!1))},og=[];const cg=["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(e=>!["value","placeholder","disabled","type","pickerOptions"].includes(e)),ug={name:"FormDatePicker",mixins:[z,Se],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 e=ae.toDate(this.miniDate);return e.setDate(e.getDate()-1),e}else return null},max(){return this.maxDate?ae.toDate(this.maxDate):null},pickerOption(){return f({disabledDate:e=>{if(!this.mini&&!this.max)return!1;const n=e.getTime();return this.mini&&!this.max?n<=this.mini.getTime():!this.mini&&this.max?n>=this.max.getTime():this.mini&&this.max?n<=this.mini.getTime()&&n>=this.max.getTime():!1}},this.pickerOptions)},innerVal(){if(this.range&&this.split){const e=[];return e.push(this.start||""),e.push(this.end||""),e}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 B(E(f(f({},j(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||"结束日期"}),cg)},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(e){this.range&&this.split?e?(this.$emit("update:start",e[0]),this.$emit("update:end",e[1])):(this.$emit("update:start",null),this.$emit("update:end",null)):this.$emit("input",e)}}},Cr={};var dg=u(ug,lg,og,!1,pg,null,null,null);function pg(e){for(let n in Cr)this[n]=Cr[n]}const Tn=function(){return dg.exports}();var hg=function(){var e=this,n=e.$createElement,t=e._self._c||n;return e.display?t("div",{class:["avue-group",{"avue-group--header":!e.isHeader,"avue-group__arrow":!e.arrow}]},[e._t("tabs"),t("ElCollapse",{attrs:{value:e.text},on:{change:e.handleChange},model:{value:e.activeName,callback:function(i){e.activeName=i},expression:"activeName"}},[t("ElCollapseItem",{attrs:{name:1,disabled:!e.arrow},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"avue-group__header"},[e._t("header",function(){return[e.icon?t("i",{class:[e.icon,"avue-group__icon"]}):e._e(),e.label?t("h1",{staticClass:"avue-group__title"},[e._v(" "+e._s(e.label)+" ")]):e._e()]})],2)]},proxy:!0}],null,!0)},[e._t("default")],2)],1)],2):e._e()},mg=[];const fg={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},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(e){this.activeName=[e]}},created(){this.activeName=[this.text]},methods:{handleChange(e){this.$emit("change",e)}}},Sr={};var vg=u(fg,hg,mg,!1,_g,null,null,null);function _g(e){for(let n in Sr)this[n]=Sr[n]}const Bn=function(){return vg.exports}();var gg=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("ElForm",e._g(e._b({ref:"form",staticClass:"clear-fix",attrs:{model:e.model,size:e.size,disabled:e.disabled,"label-width":e.labelWidth,"label-position":e.labelPosition}},"ElForm",e.$attrs,!1),e.$listeners),[e._t("default")],2)},yg=[];const bg={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||d.warning.call(df(this,e=>["FormView","FormHolder"].includes(e.$options.name)),"一般情况下不建议设置 required=false,因为 required 设置为 false 后必填字段要自行维护,在处理表格时会比较复杂,请自行权衡利弊")},methods:{clearValidate(e){var n;(n=this.$refs.form)==null||n.clearValidate(e)},validate(){return _(this,null,function*(){return this.$refs.form.validate()})},resetFields(){return this.$refs.form.resetFields()}}},kr={};var xg=u(bg,gg,yg,!1,$g,null,null,null);function $g(e){for(let n in kr)this[n]=kr[n]}const An=function(){return xg.exports}();var wg=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("FormItem",e._b({attrs:{rules:e.computeRules,disabled:e.inputDisabled},scopedSlots:e._u([{key:"default",fn:function(){return[e._t("default",function(){return[t("ElInput",e._g(e._b({class:{"is-readonly":e.readonly},attrs:{value:e.value,readonly:e.readonly,maxlength:e.maxLength,disabled:e.inputDisabled,placeholder:e.computePlaceholder},on:{input:e.emitInput},scopedSlots:e._u([{key:"append",fn:function(){return[e._t("append")]},proxy:!0}],null,!0)},"ElInput",e.inputProps,!1),e.listeners)),e.$slots.warn?t("div",{staticClass:"el-form-item__warn"},[e._t("warn")],2):e._e()]})]},proxy:!0},{key:"error",fn:function(i){var s=i.error;return[e.$scopedSlots.error&&e.$scopedSlots.error(s)?t("div",{staticClass:"el-form-item__error"},[e._t("error",function(){return[e._v(" "+e._s(s)+" ")]},{error:s})],2):e._e()]}},{key:"label",fn:function(){return[e._t("label")]},proxy:!0}],null,!0)},"FormItem",e.formItemProps,!1))},Cg=[];const Sg=Object.keys(we.props).filter(e=>!["value","placeholder","disabled"].includes(e)),kg={name:"FormInput",mixins:[z],props:{value:{type:[String,Number]},maxLength:{type:String,default:"200"}},computed:{inputProps(){return B(f(f({},j(this.$attrs)),this.$props),Sg)}},methods:{emitInput(e){this.$emit("input",e)}}},Er={};var Eg=u(kg,wg,Cg,!1,Fg,null,null,null);function Fg(e){for(let n in Er)this[n]=Er[n]}const On=function(){return Eg.exports}(),Ig=(e,n,t)=>n&&!/^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(n)?t(new Error("invalid")):t();var Tg=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("FormItem",e._b({attrs:{rules:e.computeRules,disabled:e.inputDisabled},scopedSlots:e._u([{key:"default",fn:function(){return[t("ElInput",e._g(e._b({class:{"is-readonly":e.readonly},attrs:{value:e.value,readonly:e.readonly,maxlength:e.maxLength,disabled:e.inputDisabled,placeholder:e.computePlaceholder},on:{input:function(i){return e.$emit("input",i)}}},"ElInput",e.inputProps,!1),e.listeners))]},proxy:!0},{key:"error",fn:function(i){var s=i.error;return[e._t("error",null,{error:s})]}},{key:"label",fn:function(){return[e._t("label")]},proxy:!0}],null,!0)},"FormItem",e.formItemProps,!1))},Bg=[];const Ag=Object.keys(we.props).filter(e=>!["value","placeholder","disabled"].includes(e)),Og={name:"FormInputEmail",mixins:[z],props:{value:{type:String},maxLength:{type:String,default:"200"}},computed:{inputProps(){return B(f(f({},j(this.$attrs)),this.$props),Ag)}},methods:{getRules(){return[{validator:Ig,message:"请输入正确的邮箱!"}]}}},Fr={};var Mg=u(Og,Tg,Bg,!1,Pg,null,null,null);function Pg(e){for(let n in Fr)this[n]=Fr[n]}const Mn=function(){return Mg.exports}();var Dg=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("FormItem",e._b({attrs:{rules:e.computeRules,disabled:e.inputDisabled},scopedSlots:e._u([{key:"default",fn:function(){return[t("ElInput",e._g(e._b({class:{"is-readonly":e.readonly},attrs:{value:e.value,readonly:e.readonly,maxlength:e.maxLength,disabled:e.inputDisabled,placeholder:e.computePlaceholder},on:{input:function(i){return e.$emit("input",i)}}},"ElInput",e.inputProps,!1),e.listeners)),e.$slots.warn?t("div",{staticClass:"el-form-item__error"},[e._t("warn")],2):e._e()]},proxy:!0},{key:"error",fn:function(i){var s=i.error;return[e.$scopedSlots.error&&e.$scopedSlots.error(s)?t("div",{staticClass:"el-form-item__error"},[e._t("error",function(){return[e._v(" "+e._s(s)+" ")]},{error:s})],2):e._e()]}},{key:"label",fn:function(){return[e._t("label")]},proxy:!0}],null,!0)},"FormItem",e.formItemProps,!1))},Lg=[];const Rg=Object.keys(we.props).filter(e=>!["value","placeholder","disabled"].includes(e)),Ng={name:"FormInputIdCard",mixins:[z],props:{value:{type:String},maxLength:{type:String,default:"200"}},computed:{inputProps(){return B(f(f({},j(this.$attrs)),this.$props),Rg)}},methods:{validateIdCard:d.validateIdCard,getRules(){return[{validator:d.validateIdCard,message:"请输入正确的身份证号码!"}]}}},Ir={};var jg=u(Ng,Dg,Lg,!1,zg,null,null,null);function zg(e){for(let n in Ir)this[n]=Ir[n]}const Pn=function(){return jg.exports}(),Wc={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(e){return e>=0&&e===parseInt(e,10)}}}};var Kg=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("FormItem",e._b({attrs:{rules:e.computeRules,disabled:e.inputDisabled},scopedSlots:e._u([{key:"default",fn:function(){return[t("InputNumber",e._g(e._b({staticClass:"form-input-number",attrs:{value:e.value,controls:!1,precision:e.precision,max:e.max,min:e.min,placeholder:e.computePlaceholder,disabled:e.inputDisabled},on:{input:function(i){return e.$emit("input",i)}},scopedSlots:e._u([{key:"append",fn:function(){return[e._t("append")]},proxy:!0},{key:"prefix",fn:function(){return[e._t("prefix")]},proxy:!0},{key:"prepend",fn:function(){return[e._t("prepend")]},proxy:!0},{key:"suffix",fn:function(){return[e._t("suffix")]},proxy:!0}],null,!0)},"InputNumber",e.inputProps,!1),e.listeners))]},proxy:!0},{key:"error",fn:function(i){var s=i.error;return[e._t("error",null,{error:s})]}},{key:"label",fn:function(){return[e._t("label")]},proxy:!0}],null,!0)},"FormItem",e.formItemProps,!1))},Wg=[];const Vg=Object.keys(Wc.props).filter(e=>!["value","placeholder","disabled","precision","max","min"].includes(e)),Ug={name:"FormInputNumber",mixins:[z],props:{value:{type:[String,Number]},max:{type:Number,default:1/0},min:{type:Number,default:-1/0},precision:{type:Number,validator(e){return e>=0&&e===parseInt(e,10)}}},computed:{inputProps(){return B(f(f({},j(this.$attrs)),this.$props),Vg)}}},Tr={};var Hg=u(Ug,Kg,Wg,!1,qg,null,null,null);function qg(e){for(let n in Tr)this[n]=Tr[n]}const Dn=function(){return Hg.exports}();var Gg=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("FormItem",e._b({attrs:{rules:e.computeRules,disabled:e.inputDisabled},scopedSlots:e._u([{key:"default",fn:function(){return[t("ElInput",e._g(e._b({class:{"is-readonly":e.readonly},attrs:{value:e.value,readonly:e.readonly,maxlength:e.maxLength,disabled:e.inputDisabled,placeholder:e.computePlaceholder},on:{input:e.emitInput}},"ElInput",e.inputProps,!1),e.listeners))]},proxy:!0},{key:"error",fn:function(i){var s=i.error;return[e._t("error",null,{error:s})]}},{key:"label",fn:function(){return[e._t("label")]},proxy:!0}],null,!0)},"FormItem",e.formItemProps,!1))},Jg=[];const Qg=Object.keys(we.props).filter(e=>!["value","placeholder","disabled"].includes(e)),Yg={name:"FormInputPhoneNumber",mixins:[z],props:{value:{type:String},maxLength:{type:String,default:"200"}},computed:{inputProps(){return B(f(f({},j(this.$attrs)),this.$props),Qg)}},methods:{getRules(){return[{validator:d.validatePhoneNum,message:"请输入正确的手机号码!"}]},emitInput(e){this.$emit("input",e)}}},Br={};var Xg=u(Yg,Gg,Jg,!1,Zg,null,null,null);function Zg(e){for(let n in Br)this[n]=Br[n]}const Ln=function(){return Xg.exports}();var ey=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"fy-input-tag"},[e._l(e.tags,function(i,s){return t("ElTag",{key:i.id,attrs:{closable:!e.inputDisabled,"disable-transitions":!e.arrayMode},on:{close:function(a){return e.handleClose(i,s)}}},[e._v(" "+e._s(i.tagName)+" ")])}),!e.inputDisabled&&e.inputVisible?t("ElInput",{ref:"saveTagInput",staticClass:"input-new-tag",attrs:{size:"small"},on:{blur:e.handleInputConfirm},nativeOn:{keyup:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.handleInputConfirm.apply(null,arguments)}},model:{value:e.inputValue,callback:function(i){e.inputValue=i},expression:"inputValue"}}):e._e(),!e.inputDisabled&&!e.inputVisible?t("ElButton",{directives:[{name:"show",rawName:"v-show",value:e.tags.length<e.maxTag,expression:"tags.length < maxTag"}],staticClass:"button-new-tag",attrs:{size:"small"},on:{click:e.showInput}},[e._v(" + 添加 ")]):e._e()],2)},ty=[];const ny={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 e,n;if(this.arrayMode)return(e=this.value)!=null&&e.length?this.value.map(t=>t.id>0?t:E(f({},t),{id:Math.random()})):[];{const t=((n=this.value)==null?void 0:n.split(this.separator))||[];return t.length&&t[0]?t.map(i=>({tagName:i,id:Math.random()})):[]}}}},methods:{showInput(){return _(this,null,function*(){this.inputVisible=!0,yield this.$nextTick(),this.$refs.saveTagInput.$refs.input.focus()})},handleClose(e){const n=this.tags.filter(t=>t!==e);this.$emit("input",this.arrayMode?n:n.map(t=>t.tagName).join(this.separator))},handleInputConfirm(){return _(this,null,function*(){var n;if(this.tags.length>=this.maxTag){this.$message.warning({message:"标签已达上限,请删除一些标签再添加!",showClose:!0}),this.inputVisible=!1,this.inputValue="";return}const e=this.inputValue;if(e){if(this.tags.some(i=>i.tagName===e)){this.inputVisible=!1,this.inputValue="",this.$message.warning({message:"标签已存在!",showClose:!0});return}const t=[...this.tags];t.push({id:Date.now(),tagName:this.inputValue}),this.$emit("input",this.arrayMode?t:t.map(i=>i.tagName).join(this.separator)),yield this.$nextTick(),(n=this.elFormItem)==null||n.clearValidate()}this.inputVisible=!1,this.inputValue=""})}}},Ar={};var iy=u(ny,ey,ty,!1,sy,null,null,null);function sy(e){for(let n in Ar)this[n]=Ar[n]}const We=function(){return iy.exports}();var ay=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("FormItem",e._b({attrs:{block:e.block,rules:e.computeRules,disabled:e.inputDisabled},scopedSlots:e._u([{key:"default",fn:function(){return[t("XInputTag",e._g(e._b({attrs:{value:e.value,readonly:e.readonly,disabled:e.inputDisabled,placeholder:e.computePlaceholder,"array-mode":e.arrayMode},on:{input:function(i){return e.$emit("input",i)}}},"XInputTag",e.inputProps,!1),e.listeners))]},proxy:!0},{key:"error",fn:function(i){var s=i.error;return[e._t("error",null,{error:s})]}},{key:"label",fn:function(){return[e._t("label")]},proxy:!0}],null,!0)},"FormItem",e.formItemProps,!1))},ry=[];const ly=Object.keys(We.props).filter(e=>!["value","placeholder","disabled"].includes(e)),oy={name:"FormInputTag",mixins:[z],props:{value:[Array,String],block:{type:Boolean,default:!0},arrayMode:{type:Boolean,default:!0}},computed:{inputProps(){return B(f(f({},j(this.$attrs)),this.$props),ly)}}},Or={};var cy=u(oy,ay,ry,!1,uy,null,null,null);function uy(e){for(let n in Or)this[n]=Or[n]}const Rn=function(){return cy.exports}();var dy=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("FormItem",e._b({attrs:{rules:e.computeRules,disabled:e.inputDisabled},scopedSlots:e._u([{key:"default",fn:function(){return[t("ElTimePicker",e._g(e._b({attrs:{"is-range":e.range,value:e.value,disabled:e.inputDisabled,format:e.format,"value-format":e.valueFormat||e.format,clearable:"","picker-options":{start:e.start,end:e.end,step:e.step,minTime:e.minTime,maxTime:e.maxTime,selectableRange:e.selectableRange},"start-placeholder":"开始时间","end-placeholder":"结束时间",placeholder:e.computePlaceholder},on:{input:function(i){return e.$emit("input",i)}}},"ElTimePicker",e.inputProps,!1),e.listeners))]},proxy:!0},{key:"error",fn:function(i){var s=i.error;return[e._t("error",null,{error:s})]}},{key:"label",fn:function(){return[e._t("label")]},proxy:!0}],null,!0)},"FormItem",e.formItemProps,!1))},py=[];const hy=Object.keys(Su.props).filter(e=>!["value","placeholder","disabled"].includes(e)),my={name:"FormInputTime",mixins:[z],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 B(f(f({},j(this.$attrs)),this.$props),hy)}}},Mr={};var fy=u(my,dy,py,!1,vy,null,null,null);function vy(e){for(let n in Mr)this[n]=Mr[n]}const Nn=function(){return fy.exports}(),_y={name:"FormItem",mixins:[Kc],inject:{formHolder:{default:""},formItemConfig:{default:null}},computed:{gutter(){var n;let e=this.$parent;for(;e&&e.$options.componentName!=="ElRow";)e=e.$parent;return(n=e==null?void 0:e.gutter)!=null?n:0}},methods:{renderFormItem(){var K,U,N;const e=this.$createElement,{label:n,labelWidth:t,prop:i,rules:s,$scopedSlots:a,elFormItemProps:r,elForm:l,formHolder:o,formItemClass:c,required:p,block:h,half:m,wrapCol:v,wrapFormItem:C,disabled:x,formItemConfig:g,getRequireRule:y}=this;let S=s,b=p,k=p,T=h,A=v;g&&(d.hasOwn(g,"block")&&(T=g.block),d.hasOwn(g,"wrapCol")&&(A=g.wrapCol));const q=T&&m&&A?`calc( 50% - ${this.gutter/2}px)`:"";return x||l!=null&&l.disabled?(S=[],o&&!o.required&&!((K=o.requiredFields)!=null&&K.includes(i))&&(k=!1)):(o&&!o.required&&!((U=o.requiredFields)!=null&&U.includes(i))&&(b=!1),b&&!(S!=null&&S.length)&&i?S=[y()]:b||(k=!1,S&&(S=S.filter(ke=>!ke.required)))),C?e("ElFormItem",{style:{width:q},key:`${i}-${b}`,class:k?`form-item required ${c||""}`:`${c||""}`,scopedSlots:a,props:f({},r),attrs:{label:n,"label-width":t,prop:i,rules:S},ref:"formItem"}):e("div",[(N=a.default)==null?void 0:N.call(a)])},clearValidate(){return _(this,null,function*(){var e,n;yield this.$nextTick(),(n=(e=this.$refs.formItem).clearValidate)==null||n.call(e)})},validate(){return _(this,null,function*(){var e,n;yield this.$nextTick(),(n=(e=this.$refs.formItem).validate)==null||n.call(e)})}},render(){var c,p;const e=arguments[0],{computeSpan:n,wrapCol:t,formItemConfig:i,renderFormItem:s,elColProps:a,$scopedSlots:r,unwrap:l}=this;let o=t;return i&&d.hasOwn(i,"wrapCol")&&(o=i.wrapCol),l?e("div",[(c=r.default)==null?void 0:c.call(r)]):o?e("ElCol",{props:f({},a),attrs:{span:n}},[s(),(p=r==null?void 0:r.below)==null?void 0:p.call(r)]):s()}};let gy,yy;const Pr={};var by=u(_y,gy,yy,!1,xy,null,null,null);function xy(e){for(let n in Pr)this[n]=Pr[n]}const jn=function(){return by.exports}(),$y={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(e){this.config.block=e}},wrapCol:{immediate:!0,handler(e){this.config.wrapCol=e}}},render(){return this.$scopedSlots.default()}};let wy,Cy;const Dr={};var Sy=u($y,wy,Cy,!1,ky,null,null,null);function ky(e){for(let n in Dr)this[n]=Dr[n]}const zn=function(){return Sy.exports}(),lt=["disabled","size","statusIcon","inlineMessage","autoLabelWidth","hideRequiredAsterisk","$emit","validate","clearValidate"],Ey=["$emit","validate","clearValidate"],Fy={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 e={};return lt.forEach(n=>{e[n]=null}),{expand:!0,formConfig:e}},computed:{formCfg(){const e={enabled:this.enabled,forbidden:this.disabled};return lt.forEach(n=>{e[n]=this.elForm[n]}),e}},watch:{collapse:{immediate:!0,handler(e){this.expand=!e}},formCfg:{immediate:!0,handler(){this.formConfig.disabled=this.isDisabled(),lt.forEach(e=>{var n;e!=="disabled"&&(Ey.includes(e)?this.formConfig[e]=(n=this.elForm[e])==null?void 0:n.bind(this.elForm):this.formConfig[e]=this.elForm[e])})}}},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(e,n,t){let i=this.$parent||this.$root,s=i.$options.name;for(;i&&(!s||s!==e);)i=i.$parent,i&&(s=i.$options.name);i&&i.$emit.apply(i,[n].concat(t))},renderDefault(){const e=this.$createElement,{wrapRow:n,gutter:t,formConfig:i,$scopedSlots:s}=this;return d.isFunction(s.default)?n?e("ElRow",{attrs:{gutter:t},class:"form-item-group-row"},[s.default({disabled:i.disabled})]):s.default({disabled:i.disabled}):e("EmptyView",{attrs:{"font-size":"14px","empty-tips":"暂无信息"}})},toggle(){this.expand=!this.expand},open(){this.expand=!0}},render(){const e=arguments[0],{renderDefault:n,blockTitle:t,active:i,expand:s,toggle:a,$scopedSlots:r,isDisabled:l}=this;return e("div",{class:["form-item-group",{"default-active":i,"is-disabled":l()}]},[e("div",{class:"form-item-group-title",on:{click:a}},[e("span",{class:"flex-item"},[t,r["title-right"]?r["title-right"]():null])," ",e("i",{class:s?"el-icon-arrow-down":"el-icon-arrow-right"})]),e("ElCollapseTransition",[e("div",{directives:[{name:"show",value:s}]},[n()])])])}};let Iy,Ty;const Lr={};var By=u(Fy,Iy,Ty,!1,Ay,null,null,null);function Ay(e){for(let n in Lr)this[n]=Lr[n]}const Kn=function(){return By.exports}();var Oy=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("FormItem",e._b({class:["form-radio-group",{"form-radio-group-row":e.fillRow,inline:e.inline},e.ellipsis?"form-radio-group-row-ellipsis":"form-radio-group-row-break-word"],attrs:{rules:e.computeRules,disabled:e.inputDisabled},scopedSlots:e._u([{key:"default",fn:function(){return[t("ElRadioGroup",e._g(e._b({class:{"over-flow":e.overFlow},attrs:{value:e.value,disabled:e.inputDisabled,placeholder:e.computePlaceholder},on:{input:function(i){return e.$emit("input",i)}}},"ElRadioGroup",e.inputProps,!1),e.listeners),[e.allowCancel?e._l(e.innerOptions,function(i){return t("ElRadio",{key:i[e.valueKey],attrs:{label:i[e.valueKey]},nativeOn:{click:function(s){return s.preventDefault(),s.stopPropagation(),e.toggle(i)}}},[e._v(" "+e._s(i[e.labelKey])+" ")])}):e._l(e.innerOptions,function(i){return t("ElRadio",{key:i[e.valueKey],attrs:{label:i[e.valueKey]}},[e._v(" "+e._s(i[e.labelKey])+" ")])})],2),e._t("append")]},proxy:!0},{key:"error",fn:function(i){var s=i.error;return[e._t("error",null,{error:s})]}},{key:"label",fn:function(){return[e._t("label")]},proxy:!0},{key:"below",fn:function(){return[e._t("below")]},proxy:!0}],null,!0)},"FormItem",e.formItemProps,!1))},My=[];const Py=Object.keys(ku.props).filter(e=>!["value","placeholder","disabled"].includes(e)),Dy={name:"FormRadioGroup",mixins:[z,Se],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 B(f(f({},j(this.$attrs)),this.$props),Py)},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(e){this.$emit("input",e)},toggle(e){this.value===e[this.valueKey]?this.emitInput(null):this.emitInput(e[this.valueKey])}}},Rr={};var Ly=u(Dy,Oy,My,!1,Ry,null,null,null);function Ry(e){for(let n in Rr)this[n]=Rr[n]}const Wn=function(){return Ly.exports}();var Ny=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("FormItem",e._b({attrs:{rules:e.computeRules,disabled:e.inputDisabled},scopedSlots:e._u([{key:"default",fn:function(){return[t("ElSelect",e._g(e._b({attrs:{value:e.value,filterable:e.filterable,placeholder:e.inputDisabled?"--":e.computePlaceholder,disabled:e.inputDisabled},on:{input:e.emitInput}},"ElSelect",e.inputProps,!1),e.listeners),e._l(e.innerOptions,function(i){return t("ElOption",{key:i[e.valueKey],attrs:{value:i[e.valueKey],label:i[e.labelKey]}})}),1),e.$slots.warn?t("div",{staticClass:"el-form-item__warn"},[e._t("warn")],2):e._e()]},proxy:!0},{key:"error",fn:function(i){var s=i.error;return[e.$scopedSlots.error&&e.$scopedSlots.error(s)?t("div",{staticClass:"el-form-item__error"},[e._t("error",function(){return[e._v(" "+e._s(s)+" ")]},{error:s})],2):e._e()]}},{key:"label",fn:function(){return[e._t("label")]},proxy:!0},{key:"below",fn:function(){return[e._t("below")]},proxy:!0}],null,!0)},"FormItem",e.formItemProps,!1))},jy=[];const zy=Object.keys(Eu.props).filter(e=>!["value","placeholder","disabled"].includes(e)),Ky={name:"FormSelect",mixins:[z,Se],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 B(f(f({},j(this.$attrs)),this.$props),zy)},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(e){this.$emit("input",e)}}},Nr={};var Wy=u(Ky,Ny,jy,!1,Vy,null,null,null);function Vy(e){for(let n in Nr)this[n]=Nr[n]}const Vn=function(){return Wy.exports}();var Uy=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("FormItem",e._b({attrs:{rules:e.computeRules,disabled:e.inputDisabled},scopedSlots:e._u([{key:"default",fn:function(){return[e._t("default",function(){return[t("ElSwitch",e._g(e._b({class:{"is-readonly":e.readonly},attrs:{"active-value":"Y","inactive-value":"N",value:e.value,readonly:e.readonly,disabled:e.inputDisabled,placeholder:e.computePlaceholder},on:{input:e.emitInput},scopedSlots:e._u([{key:"append",fn:function(){return[e._t("append")]},proxy:!0}],null,!0)},"ElSwitch",e.inputProps,!1),e.listeners))]})]},proxy:!0},{key:"error",fn:function(i){var s=i.error;return[e._t("error",null,{error:s})]}},{key:"label",fn:function(){return[e._t("label")]},proxy:!0}],null,!0)},"FormItem",e.formItemProps,!1))},Hy=[];const qy=Object.keys(Fu.props).filter(e=>!["value","placeholder","disabled"].includes(e)),Gy={name:"FormSwitch",mixins:[z],props:{value:{type:[String,Number,Boolean]}},computed:{inputProps(){return B(f(f({},j(this.$attrs)),this.$props),qy)}},methods:{emitInput(e){this.$emit("input",e)}}},jr={};var Jy=u(Gy,Uy,Hy,!1,Qy,null,null,null);function Qy(e){for(let n in jr)this[n]=jr[n]}const Un=function(){return Jy.exports}(),Yy={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:"删 除"}},Xy=(e,n)=>{n=n||"";const t=n.split(".");let i=e,s=null;for(let a=0,r=t.length;a<r;a++){const l=t[a];if(!i)break;if(a===r-1){s=i[l];break}i=i[l]}return s},Hn=e=>Xy(Yy,e),Vc=(e=[])=>(e.forEach(n=>{const t=n.cascader;if(!d.isBlank(t)){const i=n.prop;t.forEach(s=>{const a=jd(e,s);a!==-1&&(a.parentProp=i)})}}),e);let J=0;const Zy=(e,n=12,t=!1)=>{t&&(J=0);const i=24;return J=J+(e.span||n)+(e.offset||0),J===i?J=0:J>i?J=(e.span||n)+(e.offset||0):e.row&&J!==i&&(e.count=i-J,J=0),e},eb=(e,n)=>{const{type:t,multiple:i,dataType:s,separator:a=be,alone:r,emitPath:l,range:o}=n;let c=e;return js.includes(t)&&i===!0||zs.includes(t)&&l!==!1||Oc.includes(t)&&o===!0?(Array.isArray(c)||(d.isBlank(c)?c=[]:c=`${c}`.split(a)||[]),c.forEach((p,h)=>{c[h]=$t(p,s)}),qe.includes(t)&&d.isBlank(c)&&r&&(c=[""])):c=$t(c,s),c},tb=e=>{const n=e.type,t=e.searchRange;let i=n;if(e.searchType)return e.searchType;if(["radio","checkbox","switch"].includes(n))i="select";else if(He.includes(n)){const s="range";t?n.includes(s)?i=n:i=n+s:i=n.replace(s,"")}else["textarea"].includes(n)&&(i="input");return i},Uc=(e,n)=>{let t=e||"input";if(d.isBlank(n))qe.includes(e)?t="array":["time","timerange"].includes(e)?t="time":He.includes(e)?t="date":["password","textarea","search"].includes(e)?t="input":Md.includes(e)&&(t=`input-${e}`);else return n;return Od+t},Hc=(e=[])=>{let n={};return e.forEach(t=>{zs.includes(t.type)&&t.emitPath!==!1||js.includes(t.type)&&t.multiple||t.dataType==="array"?n[t.prop]=[]:Oc.includes(t.type)&&t.range===!0?n[t.prop]=[0,0]:["rate","slider","number"].includes(t.type)||t.dataType==="number"?n[t.prop]=void 0:n[t.prop]="",t.bind&&(n=Nd(n,t.bind)),d.isBlank(t.value)||(n[t.prop]=t.value)}),{tableForm:n}},qc=function(e){const n=e.placeholder,t=e.label;return d.isBlank(n)?Pd.includes(e.type)?`${Hn("tip.select")} ${t}`:`${Hn("tip.input")} ${t}`:n},Xe={methods:{getSlotName(e={},n="D",t){const i={F:"Form",H:"Header",E:"Error",L:"Label",S:"Search",T:"Type",D:""},s=e.prop+i[n];return t?t[s]:s},getSlotList(e=[],n,t){return t=t.map(i=>i.prop),Object.keys(n).filter(i=>{let s=!1;return t.includes(i)||e.forEach(a=>{i.includes(a)&&(s=!0)}),s})}}};var nb=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t(e.getComponent(e.column.type,e.column.component),e._g(e._b({ref:"temp",tag:"Component",attrs:{column:Object.assign(e.column,e.params),dic:e.dic,disabled:e.column.disabled||e.disabled,readonly:e.column.readonly||e.readonly,placeholder:e.getPlaceholder(e.column),props:e.column.props||e.props,"props-http":e.column.propsHttp||e.propsHttp,size:e.column.size||e.size,"table-data":e.tableData,type:e.type||e.column.type,"column-slot":e.columnSlot},nativeOn:{keyup:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.enterChange.apply(null,arguments)}},scopedSlots:e._u([e._l(e.columnSlot,function(i){return{key:i,fn:function(s){return[e._t(i,null,null,s)]}}})],null,!0),model:{value:e.text,callback:function(i){e.text=i},expression:"text"}},"Component",Object.assign(e.column,e.uploadFun(e.column)),!1),e.event),[e.params.html?t("span",{domProps:{innerHTML:e._s(e.params.html)}}):e._e()])},ib=[];const sb={name:"FormTemp",mixins:[Xe],props:{value:[String,Object,Number,Boolean,Array],columnSlot:{type:Array,default:()=>[]},tableData:{type:Object,default:()=>({})},enter:{type:Boolean,default:!1},type:{type:String},propsHttp:{type:Object,default:()=>({})},props:{type:Object},dic:{type:Array},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(e){this.$emit("input",e),this.$emit("change",e)}}},methods:{uploadFun:Je,getComponent:Uc,getPlaceholder:qc,enterChange(){typeof this.column.enter=="function"?this.column.enter({value:this.text,column:this.column}):this.enter&&this.$emit("enter")}}},zr={};var ab=u(sb,nb,ib,!1,rb,null,null,null);function rb(e){for(let n in zr)this[n]=zr[n]}const qn=function(){return ab.exports}();var lb=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("FormItem",e._b({attrs:{block:e.block,rules:e.computeRules,disabled:e.inputDisabled},scopedSlots:e._u([{key:"default",fn:function(){return[t("ElInput",e._g(e._b({attrs:{value:e.value,type:"textarea",rows:e.rows,resize:e.resize?null:"none","show-word-limit":e.showWordLimit,disabled:e.inputDisabled,maxlength:e.maxLength,placeholder:e.computePlaceholder},on:{input:function(i){return e.$emit("input",i)}}},"ElInput",e.inputProps,!1),e.listeners))]},proxy:!0},{key:"error",fn:function(i){var s=i.error;return[e._t("error",null,{error:s})]}},{key:"label",fn:function(){return[e._t("label")]},proxy:!0}],null,!0)},"FormItem",e.formItemProps,!1))},ob=[];const cb=Object.keys(we.props).filter(e=>!["value","placeholder","type","rows","resize","showWordLimit","maxLength","maxlength"].includes(e)),ub={name:"FormTextarea",mixins:[z],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 B(f(f({},j(this.$attrs)),this.$props),cb)}}},Kr={};var db=u(ub,lb,ob,!1,pb,null,null,null);function pb(e){for(let n in Kr)this[n]=Kr[n]}const Gn=function(){return db.exports}();var hb=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{class:["form-view",e.className]},[e.showToolbar?t("div",{directives:[{name:"show",rawName:"v-show",value:!e.isFormLoading,expression:"!isFormLoading"}],staticClass:"form-view-toolbar"},[e._t("form-view-toolbar",function(){return[t("Toolbar",e._g(e._b({on:{edit:e.onEdit},scopedSlots:e._u([{key:"default",fn:function(i){var s=i.buttons;return[e._t("toolbar-button",null,{buttons:s})]}},e._l(e.getToolbarSlotKeys(),function(i){return{key:i,fn:function(){return[e._t(i)]},proxy:!0}}),{key:"toolbar-right",fn:function(){return[e._t("toolbar-right")]},proxy:!0}],null,!0)},"Toolbar",Object.assign({},e.toolbarProps,{buttons:e.toolbarButtons}),!1),e.toolbarListeners))]})],2):e._e(),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.isFormLoading,expression:"!isFormLoading"}],staticClass:"form-scroller-wrapper"},[t("div",{ref:"formScroller",class:["form-scroller","absolute-box",e.contentClass],on:{scroll:e.onFormScroll}},[e.notForm?t("div",{staticClass:"not-form",style:{width:e.formWidth}},[e.title?t("div",{staticClass:"form-view-title"},[e._v(" "+e._s(e.title)+" ")]):e._e(),e._t("default",function(){return[t("EmptyView",{attrs:{"empty-tips":"请添加表单内容"}})]}),e.footerBarButtons.length?t("Toolbar",e._g(e._b({attrs:{footer:""},scopedSlots:e._u([{key:"default",fn:function(i){var s=i.buttons,a=i.footer;return[e._t("footer-button",null,{buttons:s,footer:a})]}},e._l(e.getFooterSlotKeys(),function(i){return{key:e.getFooterSlotKey(i),fn:function(){return[e._t(i)]},proxy:!0}})],null,!0)},"Toolbar",Object.assign({},e.toolbarProps,{buttons:e.footerBarButtons}),!1),e.toolbarListeners)):e._e(),e.$scopedSlots["form-bottom"]?e._t("form-bottom"):e._e()],2):t("div",{class:["form-card",{"un-limit":e.unLimit}],style:{width:`calc(${e.formWidth} + 40px)`}},[t("div",{staticClass:"form-content"},[e.title?t("div",{staticClass:"form-view-title"},[e._v(" "+e._s(e.title)+" ")]):e._e(),e._t("default",function(){return[t("EmptyView",{attrs:{"empty-tips":"请添加表单内容"}})]}),e.footerBarButtons.length?t("Toolbar",e._g(e._b({attrs:{footer:""},scopedSlots:e._u([{key:"default",fn:function(i){var s=i.buttons,a=i.footer;return[e._t("footer-button",null,{buttons:s,footer:a})]}},e._l(e.getFooterSlotKeys(),function(i){return{key:e.getFooterSlotKey(i),fn:function(){return[e._t(i)]},proxy:!0}})],null,!0)},"Toolbar",Object.assign({},e.toolbarProps,{buttons:e.footerBarButtons}),!1),e.toolbarListeners)):e._e()],2)]),e.$scopedSlots["form-bottom"]||e.$parent.$options.flowForm&&e.flowContext.logs.length?t("div",{class:["form-card",{"un-limit":e.unLimit}],staticStyle:{"min-height":"0"},style:{width:`calc(${e.formWidth} + 40px)`}},[t("div",{staticClass:"form-content"},[e.$parent.$options.flowForm&&e.flowContext.logs.length?t("FormItemGroup",{attrs:{"block-title":"流程日志"}},[t("FlowLog",{staticClass:"flow-log",attrs:{fetch:!1,"show-title":!1,"business-key":e.$parent.bizKey}})],1):e._e(),e._t("form-bottom")],2)]):e._e()]),t("ResizeObserver",{on:{notify:e.onFormResize}})],1),e.formNav&&!e.isFormLoading&&e.showNav&&e.groups.length?t("div",{staticClass:"form-nav"},[t("div",{staticClass:"form-nav-header"},[e._v(" 表单导航 ")]),t("ul",{staticClass:"form-nav-list"},e._l(e.groups,function(i,s){return t("li",{key:i.blockTitle,class:["form-nav-item",{active:e.activeIndex===s}],on:{click:function(a){return e.navItemClick(i,s)}}},[e._v(" "+e._s(i.blockTitle)+" ")])}),0)]):e._e(),e.isFormLoading?t("LoadingView",{attrs:{"icon-size":"34px","font-size":"16px"}}):e._e()],1)},mb=[];const Gc=["back","create","save","withdraw","edit","submit","publish","agree","disagree","reject","finish","cancel","enable","exp","imp","del","disabled","reload","slot"],fb=Gc.map(e=>`${e}-down`),vb=["back","withdraw","edit"],Wr=["save","submit","","publish","agree","disagree","reject","finish","cancel"],ot=(e,n)=>{if(e.classList.contains(n))return e;let t=e.parentNode;for(;t&&!t.classList.contains(n);)t=t.parentNode;return t.classList.contains(n)?t:null},_b={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||d.hasOwn(this.$parent,"isFormLoaded")?!this.$parent.isFormLoaded:!1},toolbarProps(){var i;const e={},n=((i=this.toolbarAttrs)==null?void 0:i.buttons)||this.$parent.buttons,t=O.merge({},this.toolbarAttrs,e);return t.buttons=n||["back"],t.buttons=d.toStringArray(t.buttons),t},toolbarButtons(){return this.toolbarProps.buttons.filter(e=>!Wr.includes(e)&&e.indexOf(":down")<0).map(e=>e.replace(":up",""))},footerBarButtons(){let e=this.toolbarProps.buttons.filter(n=>!vb.includes(n)&&(Wr.includes(n)||n.indexOf(":down")>-1)).map(n=>n.replace(":down",""));return e=e||[],this.$parent.isEnabled&&!e.includes("cancel")&&e.push("cancel"),e}},created(){this.$on("FormView.addGroup",e=>{e&&(this.activeIndex===-1&&(this.activeIndex=0),this.groups.push(e),this.groups=this.groups.sort((n,t)=>{const i=ot(n.$el,"form-card"),s=ot(t.$el,"form-card");if(i===s){const a=[].indexOf.call(n.$el.parentNode.children,n.$el),r=[].indexOf.call(t.$el.parentNode.children,t.$el);return a-r}else{const a=ot(i,"form-scroller"),r=[].indexOf.call(a.children,i),l=[].indexOf.call(a.children,s);return r-l}}),e.active&&(this.activeIndex=this.groups.indexOf(e),this.navItemClick(e,this.activeIndex)))}),this.$on("FormView.removeGroup",e=>{if(e){const n=this.groups.indexOf(e);this.groups.splice(n,1),this.activeIndex>this.groups.length-1&&(this.activeIndex=0)}}),this.onFormResize({width:window.document.body.clientWidth})},activated(){return _(this,null,function*(){this.$refs.formScroller&&(yield this.$nextTick(),this.scrollTo(this.formScrollTop,this.formScrollLeft))})},methods:{getToolbarSlotKeys(){return Object.keys(this.$scopedSlots).filter(e=>Gc.includes(e))},getFooterSlotKeys(){return Object.keys(this.$scopedSlots).filter(e=>fb.includes(e))},getFooterSlotKey(e){return e.replace("-down","")},onFormResize({width:e}){this.showNav=e>1500},onEdit(){!this.toolbarListeners.edit&&d.hasOwn(this.$parent,"disabled")&&(this.$parent.disabled=!1)},navItemClick(e,n){return _(this,null,function*(){this.showNav&&(yield this.$nextTick(),this.activeFormItemGroup(e,n),e.expand||e.open())})},activeFormItemGroup(e,n){this.$refs.formScroller.scrollTop=e.$el.offsetTop-10,d.animate(e.$el,"breathe-indicator-animation"),this.tryByClick=!0,this.activeIndex=n},tryActive(){return _(this,null,function*(){if(this.showNav){for(let e=0;e<this.groups.length;e++)if(d.isInContainer(this.groups[e].$el,this.$refs.formScroller,{bottomOffset:10})){this.activeIndex=e;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(e,n){e&&(this.$refs.formScroller.scrollTop=e),n&&(this.$refs.formScroller.scrollLeft=n)}}},Vr={};var gb=u(_b,hb,mb,!1,yb,null,null,null);function yb(e){for(let n in Vr)this[n]=Vr[n]}const Jn=function(){return gb.exports}(),P={mixins:[Xe],data(){return{stringMode:!1,name:"",text:void 0,propsHttpDefault:ha,propsDefault:I}},props:{blur:Function,focus:Function,change:Function,click:Function,typeformat:Function,control:Function,separator:{type:String,default:be},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:()=>ha},props:{type:Object,default:()=>I}},watch:{text:{handler(e){this.handleChange(e)}},value:{handler(){this.initVal()}}},computed:{clearableVal(){return this.disabled?!1:this.clearable},componentName(){return`el-${this.name}${this.button?"-button":""}`},required(){return!d.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()}},D={methods:{bindEvent(e,n){n=Object.assign(n,{column:this.column},this.tableData),typeof this[e]=="function"&&(e==="change"?this.column.cell!==!0&&this[e](n):this[e](n)),this.$emit(e,n)},initVal(){this.stringMode=typeof this.value=="string",this.text=eb(this.value,this)},getLabelText(e){return d.isBlank(e)?"":typeof this.typeformat=="function"?this.typeformat(e,this.labelKey,this.valueKey):e[this.labelKey]},handleFocus(e){this.bindEvent("focus",{value:this.value,event:e})},handleBlur(e){this.bindEvent("blur",{value:this.value,event:e})},handleClick(e){this.bindEvent("click",{value:this.value,event:e})},handleChange(e){let n=e;(this.isString||this.isNumber||this.stringMode||this.listType==="picture-img")&&Array.isArray(e)&&(n=e.join(this.separator)),this.bindEvent("change",{value:n}),this.$emit("input",n)}}};var bb=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"avue-array"},[e.text?t("ElButton",{attrs:{type:"primary",icon:"el-icon-plus",circle:"",size:e.size,disabled:e.disabled},on:{click:function(i){return e.add()}}}):e._e(),e._l(e.text,function(i,s){return t("div",{key:s,staticClass:"avue-array__item"},[t("div",{staticClass:"avue-array__input"},[t("ElTooltip",{attrs:{placement:"bottom",disabled:!e.isImg&&!e.isUrl||!!i},scopedSlots:e._u([{key:"content",fn:function(){return[t("div",[e.isImg?t(e.isMediaType(i),{tag:"Component",staticStyle:{width:"200px"},attrs:{src:i,controls:"controls"},on:{click:function(a){return e.openImg(s)}}}):e.isUrl?t("ElLink",{attrs:{type:"primary",href:i,target:e.target}},[e._v(" "+e._s(i)+" ")]):e._e()],1)]},proxy:!0}],null,!0)},[t("ElInput",{attrs:{size:e.size,placeholder:e.placeholder,disabled:e.disabled},model:{value:e.text[s],callback:function(a){e.$set(e.text,s,a)},expression:"text[index]"}})],1),e.disabled||e.readonly||e.alone?e._e():[e.isLimit?e._e():t("ElButton",{attrs:{type:"primary",icon:"el-icon-plus",circle:"",size:e.size,disabled:e.disabled},on:{click:function(a){return e.add(s)}}}),t("ElButton",{attrs:{type:"danger",icon:"el-icon-minus",circle:"",size:e.size,disabled:e.disabled},on:{click:function(a){return e.remove(s)}}})]],2)])})],2)},xb=[];const $b={name:"FyArray",mixins:[P,D],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(e){return xe(e,this.fileType)},add(e){this.text.splice(e+1,0,"")},remove(e){this.text.splice(e,1)},openImg(){this.text.map(e=>({thumbUrl:e,url:e,type:this.fileType}))}}},Ur={};var wb=u($b,bb,xb,!1,Cb,null,null,null);function Cb(e){for(let n in Ur)this[n]=Ur[n]}const Qn=function(){return wb.exports}();var Sb=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"avue-article"},[t("div",{staticClass:"avue-article__header"},[e.title?t("div",{staticClass:"avue-article__title",domProps:{textContent:e._s(e.title)}}):e._e(),e.meta?t("small",{staticClass:"avue-article__meta",domProps:{textContent:e._s(e.meta)}}):e._e()]),e.lead?t("div",{staticClass:"avue-article__lead",domProps:{textContent:e._s(e.lead)}}):e._e(),e.body?t("div",{staticClass:"avue-article__body",domProps:{innerHTML:e._s(e.body)}}):e._e()])},kb=[];const ve={title:"title",meta:"meta",lead:"lead",body:"body"},Eb={name:"FyArticle",props:{data:{type:Object,default:()=>({})},props:{type:Object,default:()=>ve}},computed:{titleKey(){return this.props.title||ve.title},metaKey(){return this.props.meta||ve.meta},leadKey(){return this.props.lead||ve.lead},bodyKey(){return this.props.body||ve.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]}}},Hr={};var Fb=u(Eb,Sb,kb,!1,Ib,null,null,null);function Ib(e){for(let n in Hr)this[n]=Hr[n]}const Yn=function(){return Fb.exports}();var Tb=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("ElCascader",{attrs:{options:e.dic,placeholder:e.placeholder,props:e.allProps,size:e.size,clearable:e.clearableVal,"show-all-levels":e.showAllLevels,filterable:e.filterable,"popper-class":e.popperClass,separator:e.separator,disabled:e.disabled,"collapse-tags":e.tags},on:{focus:e.handleFocus,blur:e.handleBlur},nativeOn:{click:function(i){return e.handleClick.apply(null,arguments)}},scopedSlots:e._u([{key:"default",fn:function(i){var s=i.data,a=i.node;return[e.$scopedSlots.default?e._t("default",null,{data:s,node:a}):t("span",[e._v(e._s(s[e.labelKey]))])]}}],null,!0),model:{value:e.text,callback:function(i){e.text=i},expression:"text"}})},Bb=[];const Ab={name:"FyCascader",mixins:[P,D],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:(e,n)=>{const t=i=>{const s=(a,r,l)=>{a.forEach(o=>{o[this.valueKey]===r?o[this.childrenKey]=l:o[this.childrenKey]&&s(o[this.childrenKey])})};s(this.dic,e[this.valueKey],i),n(i)};this.lazyLoad&&this.lazyLoad(e,t)},expandTrigger:this.expandTrigger}}}},qr={};var Ob=u(Ab,Tb,Bb,!1,Mb,null,null,null);function Mb(e){for(let n in qr)this[n]=qr[n]}const Xn=function(){return Ob.exports}();var Pb=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"avue-checkbox"},[e.all?t("ElCheckbox",{attrs:{disabled:e.disabled,indeterminate:e.isIndeterminate},on:{change:e.handleCheckAll},model:{value:e.checkAll,callback:function(i){e.checkAll=i},expression:"checkAll"}},[e._v(" 全选 ")]):e._e(),t("ElCheckboxGroup",{attrs:{disabled:e.disabled,size:e.size,min:e.min,max:e.max},on:{change:e.handleCheckChange},nativeOn:{click:function(i){return e.handleClick.apply(null,arguments)}},model:{value:e.text,callback:function(i){e.text=i},expression:"text"}},e._l(e.dic,function(i,s){return t(e.componentName,{key:s,tag:"Component",attrs:{label:i[e.valueKey],border:e.border,size:e.size,readonly:e.readonly,disabled:i[e.disabledKey]}},[e._v(" "+e._s(i[e.labelKey])+" ")])}),1)],1)},Db=[];const Lb={name:"FyCheckbox",mixins:[P,D],props:{all:{type:Boolean,default:!1}},data(){return{checkAll:!1,isIndeterminate:!1,name:"checkbox"}},watch:{dic(){this.handleCheckChange()},text:{handler(){this.handleCheckChange()}}},methods:{handleCheckAll(e){this.all&&(this.text=e?this.dic.map(n=>n[this.valueKey]):[],this.isIndeterminate=!1)},handleCheckChange(){const e=this.text;if(!this.all)return;const n=e.length,t=this.dic.length;this.checkAll=n===t,this.isIndeterminate=n>0&&n<t}}},Gr={};var Rb=u(Lb,Pb,Db,!1,Nb,null,null,null);function Nb(e){for(let n in Gr)this[n]=Gr[n]}const Zn=function(){return Rb.exports}();var jb=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"avue-code"},[t("ElScrollbar",{style:e.styleName},[t("pre",[e._v(" "),t("code",{ref:"container",class:e.syntax},[e._v(`
|
|
7
|
+
`),e._t("default"),e._v(`
|
|
8
|
+
`)],2),e._v(`
|
|
9
|
+
`)])])],1)},zb=[];const Kb={name:"FyCode",components:{ElScrollbar:Iu},props:{height:{type:Number,default:200},syntax:{type:String,default:"javascript"}},computed:{styleName(){return{height:w(this.height)}}},mounted(){window.hljs&&window.hljs&&typeof window.hljs.highlightBlock=="function"&&window.hljs.highlightBlock(this.$refs.container)},methods:{setPx:w}},Jr={};var Wb=u(Kb,jb,zb,!1,Vb,null,null,null);function Vb(e){for(let n in Jr)this[n]=Jr[n]}const ei=function(){return Wb.exports}(),Ub={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"}},ce=(()=>({logs:function(e){const n=Ub[e],t=d.createLogger(e);t.warning(n.title),t.warning(`CDN:${n.url||"-"}`),t.warning(`GITHUB:${n.github||"-"}`)}}))(),Us={mixins:[Xe],props:{defaults:{type:Object,default(){return{}}},option:{type:Object,required:!0,default:()=>({})}},watch:{defaults:{handler(e){this.objectOption=e},deep:!0},objectOption:{handler(e){this.$emit("update:defaults",e)},deep:!0},propOption:{handler(e){const n={};e.forEach(t=>{n[t.prop]=t}),this.$set(this,"objectOption",n)},deep:!0},option:{handler(){this.init(!1)},deep:!0}},data(){return{DIC:{},cascaderDIC:{},tableOption:{},isMobile:"",objectOption:{}}},created(){this.init()},computed:{resultOption(){return Object.assign($(this.tableOption),{column:this.propOption})},rowKey(){return this.tableOption.rowKey||I.rowKey},formRules(){const e={};return this.propOption.forEach(n=>{n.rules&&n.display!==!1&&(e[n.prop]=n.rules)}),e},isMediumSize(){return this.controlSize},controlSize(){return this.tableOption.size||this.$AVUE.size}},methods:{init(e){this.tableOption=this.option,this.getIsMobile(),this.handleLocalDic(),e!==!1&&this.handleLoadDic()},dicInit(e){e==="cascader"?this.handleLoadCascaderDic():this.handleLoadDic()},getIsMobile(){this.isMobile=document.body.clientWidth<=768},updateDic(e,n){const t=this.findObject(this.propOption,e);d.isBlank(n)&&d.isBlank(e)?this.handleLoadDic():d.isBlank(n)&&!d.isBlank(t.dicUrl)?he({column:t}).then(i=>{this.$set(this.DIC,e,i)}):this.$set(this.DIC,e,n)},handleSetDic(e,n={}){Object.keys(n).forEach(t=>{this.$set(e,t,n[t])})},handleLocalDic(){this.handleSetDic(this.DIC,_h(this.resultOption))},handleLoadDic(){vh(this.resultOption).then(e=>this.handleSetDic(this.DIC,e))},handleLoadCascaderDic(){fh(this.propOption,this.data).then(e=>this.handleSetDic(this.cascaderDIC,e))}}};var Hb=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"avue-crud avue-crud--card"},[e.tableOption.title?t(e.tableOption.titleSize||"h2",{tag:"Component",style:e.tableOption.titleStyle},[e._v(" "+e._s(e.tableOption.title)+" ")]):e._e(),t("HeaderSearch",{ref:"headerSearch",scopedSlots:e._u([{key:"search",fn:function(i){return[e._t("search",null,null,i)]}},{key:"searchMenu",fn:function(i){return[e._t("searchMenu",null,null,i)]}},e._l(e.searchSlot,function(i){return{key:i,fn:function(s){return[e._t(i,null,null,s)]}}})],null,!0)}),e.optVal(e.tableOption.header,!0)?t("HeaderMenu",{ref:"headerMenu",scopedSlots:e._u([{key:"menuLeft",fn:function(i){return[e._t("menuLeft",null,null,i)]}},{key:"menuRight",fn:function(i){return[e._t("menuRight",null,null,i)]}}],null,!0)}):e._e(),e.optVal(e.tableOption.tip,e.config.tip)&&e.tableOption.selection?t("ElTag",{staticClass:"avue-crud__tip"},[t("span",{staticClass:"avue-crud__tip-name"},[e._v(" 当前表格已选择 "),t("span",{staticClass:"avue-crud__tip-count"},[e._v(e._s(e.selectLen))]),e._v(" 项 ")]),e.optVal(e.tableOption.selectClearBtn,e.config.selectClearBtn)&&e.tableOption.selection?t("ElButton",{directives:[{name:"permission",rawName:"v-permission",value:e.getPermission("selectClearBtn"),expression:"getPermission('selectClearBtn')"}],attrs:{type:"text",size:"small"},on:{click:e.selectClear}},[e._v(" 清 空 ")]):e._e(),e._t("tip")],2):e._e(),e._t("header"),t("ElForm",{ref:"cellForm",attrs:{model:e.cellForm,"show-message":!1},on:{validate:e.handleValidate}},[t("ElTable",{directives:[{name:"loading",rawName:"v-loading",value:e.tableLoading,expression:"tableLoading"}],key:e.reload,ref:"table",class:{"avue-crud--indeterminate":e.optVal(e.tableOption.indeterminate,!1)},attrs:{data:e.cellForm.list,"row-key":e.rowKey,size:e.$AVUE.tableSize||e.controlSize,lazy:e.optVal(e.tableOption.lazy,!1),load:e.treeLoad,"tree-props":e.treeProps,"expand-row-keys":e.tableOption.expandRowKeys,"default-expand-all":e.tableOption.defaultExpandAll,"highlight-current-row":e.tableOption.highlightCurrentRow,"show-summary":e.tableOption.showSummary,"summary-method":e.tableSummaryMethod,"span-method":e.tableSpanMethod,stripe:e.tableOption.stripe,"show-header":e.tableOption.showHeader,"default-sort":e.tableOption.defaultSort,"row-class-name":e.rowClassName,"cell-class-name":e.cellClassName,"row-style":e.rowStyle,"cell-style":e.cellStyle,fit:e.tableOption.fit,"header-cell-class-name":e.headerCellClassName,"max-height":e.isAutoHeight?e.tableHeight:e.tableOption.maxHeight,height:e.tableHeight,width:e.setPx(e.tableOption.width,e.config.width),border:e.tableOption.border},on:{"current-change":e.currentRowChange,"expand-change":e.expandChange,"header-dragend":e.headerDragend,"row-click":e.rowClick,"row-dblclick":e.rowDblclick,"cell-mouse-enter":e.cellMouseEnter,"cell-mouse-leave":e.cellMouseLeave,"cell-click":e.cellClick,"header-click":e.headerClick,"row-contextmenu":e.rowContextmenu,"header-contextmenu":e.headerContextmenu,"cell-dblclick":e.cellDblclick,"filter-change":e.filterChange,"selection-change":e.selectionChange,select:e.select,"select-all":e.selectAll,"sort-change":e.sortChange},scopedSlots:e._u([{key:"empty",fn:function(){return[e.$slots.empty?e._t("empty"):t("ElEmpty",{staticClass:"avue-crud__empty",attrs:{"image-size":100,description:e.tableOption.emptyText}})]},proxy:!0}],null,!0)},[t("Column",{attrs:{"column-option":e.columnOption},scopedSlots:e._u([{key:"header",fn:function(){return[t("ColumnDefault",{ref:"columnDefault",scopedSlots:e._u([{key:"expand",fn:function(i){var s=i.row,a=i.index;return[e._t("expand",null,{row:s,index:a})]}}],null,!0)})]},proxy:!0},e._l(e.mainSlot,function(i){return{key:i,fn:function(s){return[e._t(i,null,null,s)]}}}),{key:"footer",fn:function(){return[t("ColumnMenu",{scopedSlots:e._u([{key:"menu",fn:function(i){return[e._t("menu",null,null,i)]}},{key:"menuBtn",fn:function(i){return[e._t("menuBtn",null,null,i)]}}],null,!0)})]},proxy:!0}],null,!0)})],1)],1),e._t("footer"),t("TablePage",{ref:"tablePage"}),t("FyDialogForm",{ref:"dialogForm",scopedSlots:e._u([e._l(e.formSlot,function(i){return{key:i,fn:function(s){return[e._t(i,null,null,s)]}}}),{key:"menuForm",fn:function(i){return[e._t("menuForm",null,null,i)]}}],null,!0)}),t("DialogColumn",{ref:"dialogColumn"}),t("DialogExcel",{ref:"dialogExcel"}),t("DialogFilter",{ref:"dialogFilter"})],2)},qb=[];const Gb={name:"FyCurd",directives:{permission:Qe},mixins:[Us],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:R,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||I.rowParentKey},childrenKey(){return this.treeProps.children||I.children},hasChildrenKey(){return this.treeProps.hasChildren||I.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 e=[];return this.propOption.forEach(n=>{this.$scopedSlots[n.prop]&&e.push(n.prop)}),this.getSlotList(["Header","Form"],this.$scopedSlots,this.propOption).concat(e)},calcHeight(){return(this.tableOption.calcHeight||0)+this.$AVUE.calcHeight},propOption(){let e=[];function n(t=[]){Array.isArray(t)&&t.forEach(i=>{Array.isArray(i.children)?n(i.children):e.push(i)})}return n(this.columnOption),e=Vc(e),e},isShowSummary(){return this.option.showSummary},isHeader(){let e=!1;return this.columnOption.forEach(n=>{n.children&&(e=!0)}),e},isTree(){let e=!1;return this.data.forEach(n=>{n.children&&(e=!0)}),e},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:w,optVal:M,handleValidate(e,n,t){this.listError[e]||this.$set(this.listError,e,{valid:!1,msg:""}),this.listError[e].valid=!n,this.listError[e].msg=t},getPermission(e,n,t){return typeof this.permission=="function"?this.permission(e,n,t):d.isBlank(this.permission[e])?!0:this.permission[e]},getTableHeight(){this.isAutoHeight?this.$nextTick(()=>{const e=this.$refs.table,n=this.$refs.tablePage;if(!e)return;const t=e.$el,i=n.$el.offsetHeight||20;this.tableHeight=document.documentElement.clientHeight-t.offsetTop-i-this.calcHeight}):this.tableHeight=this.tableOption.height},doLayout(){this.$refs.table.doLayout()},refreshTable(e){this.reload=Math.random(),this.$nextTick(()=>{e&&e()})},treeLoad(e,n,t){this.$emit("tree-load",e,n,i=>{e.children=i,t(i)})},menuIcon(e){return M(this.tableOption[`${e}Text`],Hn(`crud.${e}`))},getBtnIcon(e){const n=`${e}Icon`;return this.tableOption[n]||R[n]},validateField(e){return this.$refs.dialogForm.$refs.tableForm.validateField(e)},selectClear(){this.$emit("selection-clear",$(this.tableSelect)),this.$refs.table.clearSelection()},toggleRowSelection(e,n){this.$refs.table.toggleRowSelection(e,n)},toggleRowExpansion(e,n){this.$refs.table.toggleRowExpansion(e,n)},setCurrentRow(e){this.$refs.table.setCurrentRow(e)},dataInit(){this.list=this.data,this.list.forEach((e,n)=>{e.$cellEdit&&!this.cascaderFormList[n]&&(this.cascaderFormList[n]=$(e)),this.$set(e,"$cellEdit",e.$cellEdit||!1),this.$set(e,"$index",n)})},headerDragend(e,n,t,i){this.objectOption[t.property]&&this.$set(this.objectOption[t.property],"width",e),this.$emit("header-dragend",e,n,t,i)},headerSort(e,n){const t=this.columnOption,i=t.splice(e,1)[0];t.splice(n,0,i),this.refreshTable()},clearFilter(e){this.$refs.table.clearFilter(e)},expandChange(e,n){this.$emit("expand-change",e,n)},currentRowChange(e,n){this.$emit("current-row-change",e,n)},refreshChange(){this.$emit("refresh-change")},toggleSelection(e){e?e.forEach(n=>{this.$refs.table.toggleRowSelection(n)}):this.$refs.table.clearSelection()},selectionChange(e){this.tableSelect=e,this.$emit("selection-change",this.tableSelect)},select(e,n){this.$emit("select",e,n)},selectAll(e){this.$emit("select-all",e)},filterChange(e){this.$emit("filter-change",e)},sortChange(e){this.$emit("sort-change",e)},rowDblclick(e,n){this.$emit("row-dblclick",e,n)},rowClick(e,n,t){this.$emit("row-click",e,n,t)},clearSort(){this.$refs.table.clearSort()},cellMouseEnter(e,n,t,i){this.$emit("cell-mouse-enter",e,n,t,i)},cellMouseLeave(e,n,t,i){this.$emit("cell-mouse-leave",e,n,t,i)},cellClick(e,n,t,i){this.$emit("cell-click",e,n,t,i)},headerClick(e,n){this.$emit("header-click",e,n)},rowContextmenu(e,n,t){this.$emit("row-contextmenu",e,n,t)},headerContextmenu(e,n){this.$emit("header-contextmenu",e,n)},cellDblclick(e,n,t,i){this.$emit("cell-dblclick",e,n,t,i)},rowCellAdd(e={}){const n=this.list.length,t=Hc(this.propOption).tableForm;e=$(Object.assign({$cellEdit:!0,$index:n},t,e)),this.list.push(e)},rowCancel(e,n){d.isBlank(e[this.rowKey])?(this.list.splice(n,1),delete this.cascaderDIC[n]):(this.cascaderFormList[n].$cellEdit=!1,this.$set(this.cascaderDIC,n,this.cascaderDicList[n]),this.$set(this.list,n,this.cascaderFormList[n])),delete this.cascaderDicList[n],delete this.cascaderFormList[n],this.cascaderIndexList.splice(this.cascaderIndexList.indexOf(n),1)},rowCell(e,n){e.$cellEdit?this.rowCellUpdate(e,n):this.rowCellEdit(e,n)},rowCellUpdate(e,n){e=$(e);const t=this.validateCellField(n),i=()=>{this.btnDisabledList[n]=!1,this.btnDisabled=!1,this.list[n].$cellEdit=!1,this.cascaderIndexList.splice(this.cascaderIndexList.indexOf(n),1),delete this.cascaderFormList[n]},s=()=>{this.btnDisabledList[n]=!1,this.btnDisabled=!1};t&&(this.btnDisabledList[n]=!0,this.btnDisabled=!0,d.isBlank(e[this.rowKey])?this.$emit("row-save",e,i,s):this.$emit("row-update",e,n,i,s))},rowCellEdit(e,n){e.$cellEdit=!0,this.cascaderFormList[n]=$(e),this.cascaderDicList[n]=$(this.cascaderDIC[n])},validateCellForm(){return new Promise(e=>{this.$refs.cellForm.validate((n,t)=>{e(t)})})},validateCellField(e){let n=!0;for(const t of this.$refs.cellForm.fields)if(t.prop.split(".")[1]===`${e}`&&this.$refs.cellForm.validateField(t.prop,i=>{i&&(n=!1)}),!n)break;return n},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(e){return this.$refs.dialogForm.$refs.tableForm.getPropRef(e)},setVal(){this.$emit("input",this.tableForm),this.$emit("change",this.tableForm)},rowEdit(e,n){this.tableForm=$(e),this.tableIndex=n,this.setVal(),this.$refs.dialogForm.show("edit")},rowCopy(e){this.tableForm=$(e),delete this.tableForm[this.rowKey],this.tableIndex=-1,this.setVal(),this.$refs.dialogForm.show("add")},rowView(e,n){this.tableForm=$(e),this.tableIndex=n,this.setVal(),this.$refs.dialogForm.show("view")},rowDel(e,n){this.$emit("row-del",e,n,()=>{const{parentList:t,index:i}=this.findData(e[this.rowKey]);t&&t.splice(i,1)})},tableSpanMethod(e){if(typeof this.spanMethod=="function")return this.spanMethod(e)},tableSummaryMethod(e){const n={};if(typeof this.summaryMethod=="function")return this.summaryMethod(e);const{columns:t,data:i}=e,s=[];return t.length>0&&t.forEach((a,r)=>{const l=this.sumColumnList.find(o=>o.name===a.property);if(l){const o=l.decimals||2,c=l.label||"";let p=1;switch(l.type){case"count":s[r]=c+i.length;break;case"avg":s[r]=i.map(h=>Number(h[a.property])).reduce((h,m)=>{const v=Number(m);return isNaN(v)?h:(h*(p-1)+m)/p++},0),s[r]=c+s[r].toFixed(o);break;case"sum":s[r]=i.map(h=>Number(h[a.property])).reduce((h,m)=>{const v=Number(m);return isNaN(v)?h:h+m},0),s[r]=c+s[r].toFixed(o);break}n[a.property]=s[r]}else s[r]=""}),this.sumsList=n,s},tableDrop(e,n,t){if(this.isSortable!==!0){if(e==="row"&&!this.isRowSort)return;if(e==="column"&&!this.isColumnSort)return}if(!window.Sortable){ce.logs("Sortable");return}window.Sortable.create(n,{ghostClass:R.ghostClass,chosenClass:R.ghostClass,animation:500,delay:0,onEnd:i=>t(i)})},findData(e){let n={};const t=(i,s)=>{i.forEach((a,r)=>{a[this.rowKey]===e&&(n={item:a,index:r,parentList:i,parent:s}),a[this.childrenKey]&&t(a[this.childrenKey],a)})};return t(this.list),n}}},Qr={};var Jb=u(Gb,Hb,qb,!1,Qb,null,null,null);function Qb(e){for(let n in Qr)this[n]=Qr[n]}const ti=function(){return Jb.exports}();var Yb=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"avue-date"},[t("ElDatePicker",{attrs:{type:e.type,"popper-class":e.popperClass,size:e.size,editable:e.editable,"unlink-panels":e.unlinkPanels,readonly:e.readonly,"default-value":e.defaultValue,"default-time":e.defaultTime,"range-separator":e.rangeSeparator,"start-placeholder":e.startPlaceholder||"开始","end-placeholder":e.endPlaceholder||"结束",format:e.format,clearable:e.clearableVal,"picker-options":e.pickerOptions,"value-format":e.valueFormat,placeholder:e.placeholder,disabled:e.disabled},on:{blur:e.handleBlur,focus:e.handleFocus},nativeOn:{click:function(i){return e.handleClick.apply(null,arguments)}},model:{value:e.text,callback:function(i){e.text=i},expression:"text"}})],1)},Xb=[];const Zb={name:"FyDate",mixins:[P,D],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}},Yr={};var ex=u(Zb,Yb,Xb,!1,tx,null,null,null);function tx(e){for(let n in Yr)this[n]=Yr[n]}const ni=function(){return ex.exports}();var nx=function(){var e=this,n=e.$createElement,t=e._self._c||n;return e.boxVisible?t(e.dialogType,e._b({tag:"Component",class:{"dialog-form":!e.isView},attrs:{"lock-scroll":"","show-full-screen":"","destroy-on-close":e.crud.tableOption.dialogDestroy,"wrapper-closable":e.crud.tableOption.dialogClickModal,direction:e.direction,"custom-class":e.crud.tableOption.dialogCustomClass,"modal-append-to-body":"","append-to-body":"",top:e.dialogTop,title:e.dialogTitle,"close-on-press-escape":e.crud.tableOption.dialogEscape,"close-on-click-modal":e.optVal(e.crud.tableOption.dialogClickModal,!1),modal:e.crud.tableOption.dialogModal,"show-close":e.crud.tableOption.dialogCloseBtn,visible:e.boxVisible,"before-close":e.hide},on:{"update:visible":function(i){e.boxVisible=i}}},"Component",e.params,!1),[t("FyForm",e._b({ref:"tableForm",attrs:{status:e.disabled,option:e.option},on:{"update:status":function(i){e.disabled=i},change:e.handleChange,submit:e.handleSubmit,"reset-change":e.hide,"tab-click":e.handleTabClick,error:e.handleError},scopedSlots:e._u([e._l(e.crud.formSlot,function(i){return{key:e.getSlotName(i),fn:function(s){return[e._t(i,null,null,Object.assign(s,{type:e.boxType}))]}}})],null,!0),model:{value:e.crud.tableForm,callback:function(i){e.$set(e.crud,"tableForm",i)},expression:"crud.tableForm"}},"FyForm",e.uploadFun({},e.crud),!1)),t("span",{staticClass:"avue-dialog__footer",class:`avue-dialog__footer--${e.dialogMenuPosition}`},[e.optVal(e.option.submitBtn,!0)&&!e.isView?t("ElButton",{attrs:{loading:e.disabled,size:e.crud.controlSize,icon:e.option.submitIcon,type:"primary"},on:{click:e.submit}},[e._v(e._s(e.option.submitText))]):e._e(),e.optVal(e.option.emptyBtn,!0)&&!e.isView?t("ElButton",{attrs:{disabled:e.disabled,size:e.crud.controlSize,icon:e.option.emptyIcon},on:{click:e.reset}},[e._v(e._s(e.option.emptyText))]):e._e(),e._t("menuForm",null,{disabled:e.disabled,size:e.crud.controlSize,type:e.boxType})],2)],1):e._e()},ix=[];const sx={name:"FyDialogForm",inject:["crud"],data(){return{disabled:!1,boxType:"",fullscreen:!1,size:null,boxVisible:!1}},computed:{option(){const e=$(this.crud.tableOption);return e.boxType=this.boxType,e.column=$(this.crud.propOption),e.menuBtn=!1,this.isAdd?(e.submitBtn=e.saveBtn,e.submitText=this.crud.menuIcon("saveBtn"),e.submitIcon=this.crud.getBtnIcon("saveBtn")):this.isEdit?(e.submitBtn=e.updateBtn,e.submitText=this.crud.menuIcon("updateBtn"),e.submitIcon=this.crud.getBtnIcon("updateBtn")):this.isView&&(e.detail=!0),e.emptyBtn=e.cancelBtn,e.emptyText=this.crud.menuIcon("cancelBtn"),e.emptyIcon=this.crud.getBtnIcon("cancelBtn"),this.crud.isGroup||(e.dicFlag=!1,e.dicData=this.crud.DIC),d.isBlank(e.dicFlag)||e.column.forEach(n=>{n.boxType=this.boxType,n.dicFlag=n.dicFlag||e.dicFlag}),e},isView(){return this.boxType==="view"},isAdd(){return this.boxType==="add"},isEdit(){return this.boxType==="edit"},direction(){return this.crud.tableOption.dialogDirection},width(){return M(`${this.crud.tableOption.dialogWidth}`,this.crud.isMobile?"100%":`${R.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 e=`${this.boxType}`;if(!d.isBlank(this.boxType)){const n={tipStartTitle:"当前表格已选择",tipEndTitle:"项",editTitle:"编 辑",copyTitle:"复 制",addTitle:"新 增",viewTitle:"查 看",filterTitle:"过滤条件",showTitle:"列显隐"};return this.crud.tableOption[`${e}Title`]||n[`${e}Title`]}return""},dialogMenuPosition(){return this.crud.option.dialogMenuPosition||"right"}},methods:{optVal:M,uploadFun:Je,submit(){this.$refs.tableForm.submit()},reset(){this.$refs.tableForm.resetForm(!1)},getSlotName(e){return e.replace("Form","")},initFun(){["clearValidate","validate","resetForm","validateField"].forEach(e=>{this.crud[e]=this.$refs.tableForm[e]})},handleChange(){this.crud.setVal()},handleTabClick(e,n){this.crud.$emit("tab-click",e,n)},handleFullScreen(){this.isDrawer&&(d.isBlank(this.size)?this.size="100%":this.size=""),this.fullscreen=!this.fullscreen},handleError(e){this.crud.$emit("error",e)},handleSubmit(e,n){this.isAdd?this.rowSave(n):this.isEdit&&this.rowUpdate(n)},rowSave(e){this.crud.$emit("row-save",oe(this.crud.tableForm,["$"]),this.closeDialog,e)},rowUpdate(e){this.crud.$emit("row-update",oe(this.crud.tableForm,["$"]),this.crud.tableIndex,this.closeDialog,e)},closeDialog(e){e=$(e),e&&(()=>{if(this.isEdit){const{parentList:t,index:i}=this.crud.findData(e[this.crud.rowKey]);if(t){const s=t.splice(i,1)[0];e[this.crud.childrenKey]=s[this.crud.childrenKey],t.splice(i,0,e)}}else if(this.isAdd){const{item:t}=this.crud.findData(e[this.crud.rowParentKey]);t?(t[this.crud.childrenKey]||this.$set(t,this.crud.childrenKey,[]),this.crud.tableOption.lazy&&this.$set(t,this.crud.hasChildrenKey,!0),t[this.crud.childrenKey].push(e)):this.crud.list.push(e)}})(),this.hide()},hide(e){const n=()=>{e&&e(),this.crud.tableIndex=-1,this.crud.tableForm={},this.crud.setVal(),this.boxVisible=!1};typeof this.crud.beforeClose=="function"?this.crud.beforeClose(n,this.boxType):n()},show(e){this.boxType=e;const n=()=>{this.fullscreen=this.crud.tableOption.dialogFullscreen,this.boxVisible=!0,this.$nextTick(()=>{this.initFun()})};typeof this.crud.beforeOpen=="function"?this.crud.beforeOpen(n,this.boxType):n()}}},Xr={};var ax=u(sx,nx,ix,!1,rx,null,null,null);function rx(e){for(let n in Xr)this[n]=Xr[n]}const ii=function(){return ax.exports}();var lx=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{class:{"avue-draggable__active":(e.active||e.overActive)&&!e.readonly,"avue-draggable__move":e.moveActive,"avue-draggable__click":e.disabled},style:e.styleName,on:{mousedown:function(i){return i.stopPropagation(),e.handleMove.apply(null,arguments)},mouseover:function(i){return i.stopPropagation(),e.handleOver.apply(null,arguments)},mouseout:function(i){return i.stopPropagation(),e.handleOut.apply(null,arguments)}}},[t("ElInput",{ref:"input",staticClass:"avue-draggable__focus",model:{value:e.value,callback:function(i){e.value=i},expression:"value"}}),t("div",{ref:"wrapper",staticClass:"avue-draggable__wrapper"},[(e.active||e.overActive||e.moveActive)&&!e.readonly?[t("div",{staticClass:"avue-draggable__line['left'])",style:e.styleLineName}),t("div",{staticClass:"avue-draggable__line['top'])",style:e.styleLineName}),t("div",{staticClass:"avue-draggable__line['label'])",style:e.styleLabelName},[e._v(" "+e._s(e.baseLeft)+","+e._s(e.baseTop)+" ")])]:e._e(),e.readonly?e._e():[e._l(e.rangeList,function(i,s){return[e.active?t("div",{key:s,staticClass:"avue-draggable__range[item.classname])",style:[e.styleRangeName,e.getRangeStyle(i.classname)],on:{mousedown:function(a){return a.stopPropagation(),e.rangeMove(a,i.classname)}}}):e._e()]})],t("div",{directives:[{name:"show",rawName:"v-show",value:e.active||e.overActive,expression:"active || overActive"}],staticClass:"avue-draggable__menu",style:e.styleMenuName},[e._t("menu",null,{zIndex:e.zIndex,index:e.index})],2),t("div",{ref:"item",staticClass:"avue-draggable__item"},[e._t("default")],2),!e.disabled&&e.mask?t("div",{staticClass:"avue-draggable__mask"}):e._e()],2)],1)},ox=[];const cx={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:w(this.scaleVal)}},styleRangeName(){const e=10*this.scaleVal;return{width:w(e),height:w(e)}},styleLabelName(){return{fontSize:w(18*this.scaleVal)}},styleName(){return Object.assign((()=>this.active?Object.assign({zIndex:9999},this.styleLineName):{zIndex:this.zIndex})(),{top:w(this.baseTop),left:w(this.baseLeft),width:w(this.baseWidth),height:w(this.baseHeight)})}},watch:{active(e){e?this.handleKeydown():document.onkeydown=this.keyDown},width(e){this.baseWidth=L(e)||this.children.offsetWidth},height(e){this.baseHeight=L(e)||this.children.offsetHeight},left(e){this.baseLeft=L(e)},top(e){this.baseTop=L(e)},baseWidth(e){this.$refs.wrapper.style.width=w(e),this.resize&&this.children.style&&(this.children.style.width=w(e))},baseHeight(e){this.$refs.wrapper.style.height=w(e),this.resize&&this.children.style&&(this.children.style.height=w(e))},baseLeft(e,n){this.first||this.setMove(e-n,0)},baseTop(e,n){this.first||this.setMove(0,e-n)}},mounted(){this.init()},methods:{init(){this.children=this.$refs.item.firstChild,this.baseWidth=L(this.width)||this.children.offsetWidth,this.baseHeight=L(this.height)||this.children.offsetHeight,this.baseLeft=L(this.left),this.baseTop=L(this.top),this.keyDown=document.onkeydown,this.$nextTick(()=>{this.first=!1})},setMove(e,n){this.$emit("move",{index:this.index,left:e,top:n})},setLeft(e){this.baseLeft=e},setTop(e){this.baseTop=e},getRangeStyle(e){const n=10*this.scaleVal/2,t={};return e.split("-").forEach(s=>{t[s]=w(-n)}),t},setOverActive(e){this.overActive=e},setActive(e){this.active=e},rangeMove(e,n){if(this.disabled||this.lock)return;let t,i,s,a,r,l;this.rangeActive=!0,this.handleMouseDown();let o=e.clientX,c=e.clientY;document.onmousemove=p=>{this.moveActive=!0,n==="right"?(t=!0,i=!1):n==="left"?(t=!0,s=!0,r=!0,i=!1):n==="top"?(t=!1,i=!0,a=!0,l=!0):n==="bottom"?(t=!1,i=!0):n==="bottom-right"?(t=!0,i=!0):n==="bottom-left"?(t=!0,i=!0,s=!0,r=!0):n==="top-right"?(t=!0,i=!0,a=!0,l=!0):n==="top-left"&&(t=!0,i=!0,s=!0,r=!0,a=!0,l=!0);const h=p.clientX-o,m=p.clientY-c;if(o=p.clientX,c=p.clientY,t){let v=h*this.step;r&&(v=-v),s&&(this.baseLeft=L(this.baseLeft-v)),this.baseWidth=L(this.baseWidth+v)}if(i){let v=m*this.step;l&&(v=-v),a&&(this.baseTop=L(this.baseTop-v)),this.baseHeight=L(this.baseHeight+v)}},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(e){if(this.disabled||this.lock)return;setTimeout(()=>{this.$refs.input.focus()}),this.active=!0,this.handleMouseDown();let n=e.clientX,t=e.clientY;document.onmousemove=i=>{const s=i.clientX-n,a=i.clientY-t;n=i.clientX,t=i.clientY,this.baseLeft=L(this.baseLeft+s*this.step),this.baseTop=L(this.baseTop+a*this.step)},this.handleClear()},handleClear(){document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null,this.handleMouseUp()}},handleKeydown(){document.onkeydown=e=>{const n=e||window.event,t=this.step;this.$refs.input.focused&&(n&&n.keyCode===38?this.baseTop=L(this.baseTop-t):n&&n.keyCode===37?this.baseLeft=L(this.baseLeft-t):n&&n.keyCode===40?this.baseTop=L(this.baseTop+t):n&&n.keyCode===39&&(this.baseLeft=L(this.baseLeft+t)),e.stopPropagation(),e.preventDefault(),this.$emit("blur",{index:this.index,width:this.baseWidth,height:this.baseHeight,left:this.baseLeft,top:this.baseTop}),this.keyDown&&this.keyDown(e))}},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})}}},Zr={};var ux=u(cx,lx,ox,!1,dx,null,null,null);function dx(e){for(let n in Zr)this[n]=Zr[n]}const si=function(){return ux.exports}();function px(e){if(e==null)throw new TypeError("Cannot destructure undefined")}var hx=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{key:e.reload,staticClass:"avue-dynamic"},[e.isForm?[t("div",{staticClass:"avue-dynamic__header"},[!e.readonly&&!e.disabled&&!e.addBtn?t("ElButton",{attrs:{size:"mini",circle:"",disabled:e.disabled,type:"primary",icon:"el-icon-plus"},on:{click:e.addRow}}):e._e()],1),t("div",e._l(e.text,function(i,s){return t("div",{key:s,staticClass:"avue-dynamic__row",on:{mouseenter:function(a){return e.cellMouseenter({$index:s})},mouseleave:function(a){return e.cellMouseLeave({$index:s})}}},[!e.readonly&&!e.disabled&&!e.delBtn&&e.hoverList[s]?t("ElButton",{staticClass:"avue-dynamic__menu",attrs:{type:"danger",size:"mini",disabled:e.disabled,icon:"el-icon-delete",circle:""},on:{click:function(a){return e.delRow(i.$index)}}}):e._e(),t("FyForm",{key:s,ref:"main",refInFor:!0,attrs:{option:e.deepClone(e.option)},scopedSlots:e._u([{key:"_index",fn:function(a){return px(a),[t("div",[t("span",[e._v(e._s(i.$index+1))])])]}},e._l(e.columnSlot,function(a){return{key:a,fn:function(r){return[e._t(a,null,null,Object.assign(r,{row:e.text[s]}))]}}})],null,!0),model:{value:e.text[s],callback:function(a){e.$set(e.text,s,a)},expression:"text[index]"}})],1)}),0)]:e.isCrud?t("FyCurd",{ref:"main",attrs:{option:e.option,disabled:e.disabled,data:e.text},on:{"cell-mouse-enter":e.cellMouseenter,"cell-mouse-leave":e.cellMouseLeave,"selection-change":e.handleSelectionChange,"sortable-change":e.handleSortableChange},scopedSlots:e._u([{key:"_indexHeader",fn:function(){return[!(e.addBtn||e.readonly)&&e.maxFlag?t("ElButton",{attrs:{type:"primary",size:"mini",disabled:e.disabled,icon:"el-icon-plus",circle:""},on:{click:function(i){return e.addRow()}}}):e._e()]},proxy:!0},{key:"_index",fn:function(i){return[!e.readonly&&!e.disabled&&!e.delBtn&&e.hoverList[i.row.$index]?t("ElButton",{attrs:{type:"danger",size:"mini",disabled:e.disabled,icon:"el-icon-delete",circle:""},on:{click:function(s){return e.delRow(i.row.$index)}}}):t("div",[e._v(" "+e._s(i.row.$index+1)+" ")])]}},e._l(e.columnSlot,function(i){return{key:e.getSlotName({prop:i},"F"),fn:function(s){return[e._t(i,null,null,s)]}}})],null,!0)}):e._e()],2)},mx=[];const fx={name:"FyDynamic",mixins:[P,D],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 M(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 e={};return this.columnOption.forEach(n=>{n.value&&(e[n.prop]=n.value)}),e},rulesOption(){const e={};return this.columnOption.forEach(n=>{n.rules&&(e[n.prop]=n.rules)}),e},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 e=$(this.children);return delete e.column,e})(),(()=>{const e=[{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(n=>{e.push(Object.assign(n,{cell:M(n.cell,this.isCrud)}))}),{column:e}})())}},watch:{text(){this.initData()}},mounted(){this.initData()},methods:{deepClone:$,handleSelectionChange(e){this.selectionChange&&this.selectionChange(e)},handleSortableChange(e,n,t,i){this.sortableChange&&this.sortableChange(e,n,t,i)},cellMouseenter(e){const n=e.$index;this.mouseoverRow(n)},cellMouseLeave(e){const n=e.$index;this.mouseoutRow(n)},initData(){this.text.forEach((e,n)=>{e=Object.assign(e,{$cellEdit:!0,$index:n})})},mouseoverRow(e){this.delBtn||(this.flagList(),this.$set(this.hoverList,e,!0))},mouseoutRow(e){this.delBtn||(this.flagList(),this.$set(this.hoverList,e,!1))},flagList(){this.hoverList.forEach((e,n)=>{this.hoverList[n]=!1})},delRow(e){const n=()=>{const t=$(this.text);t.splice(e,1),this.text=t,this.reload=Math.random()};typeof this.rowDel=="function"?this.rowDel(this.text[e],n):n()},addRow(){const e=(n={})=>{n=Object.assign(this.valueOption,n,{$index:this.textLen}),this.isCrud?this.$refs.main.rowCellAdd(n):this.isForm&&this.text.push(n)};typeof this.rowAdd=="function"?this.rowAdd(e):e()}}},el={};var vx=u(fx,hx,mx,!1,_x,null,null,null);function _x(e){for(let n in el)this[n]=el[n]}const ai=function(){return vx.exports}();var gx=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"avue-empty"},[t("div",{staticClass:"avue-empty__image",style:{height:e.setPx(e.size)}},[t("img",{attrs:{src:e.image,alt:""}})]),t("p",{staticClass:"avue-empty__desc"},[e._v(" "+e._s(e.desc)+" ")]),e._t("default")],2)},yx=[];const bx={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:w}},tl={};var xx=u(bx,gx,yx,!1,$x,null,null,null);function $x(e){for(let n in tl)this[n]=tl[n]}const ri=function(){return xx.exports}(),wx=(e,n,t,i)=>{if(!i)return;if(!window.Mock){ce.logs("mock");return}const a=(window.Mock||{}).Random,r={};function l({en:x}){return x?a.name(!0):a.cname()}function o({max:x,min:g,precision:y}){if(y){const S=`${a.float(g,x,y)}`,b=S.indexOf(".")+1;return Number(S.substring(0,b+y))}else return a.integer(g,x)}function c({header:x}){let g=a.url();const y=g.indexOf("://");return x===!1?g=g.substring(y+3):g=`http://${g.substring(y+3)}`,g}function p({format:x,now:g}){return g?a.now(x):a.datetime(x)}function h({min:x,max:g}){return a.csentence(x,g)}function m(){return a.county(!0)}function v({dic:x,props:g,columnType:y,multiple:S}){const b=g.value||"value",k=x.length;if(["checkbox"].includes(y)||S){const T=o({min:1,max:k}),A=[];for(let q=0;q<T;q++){let K=!0;for(;K;){const U=o({min:0,max:k-1}),N=x[U][b];A.includes(N)||(A.push(N),K=!1)}}return A}else{const T=o({min:0,max:k-1});return x[T][b]}}function C(){Object.keys(e).forEach(x=>{const g=e[x];if(g.mock&&typeof g.mock=="object"){const y=g.mock;switch(y.dic=typeof g.dicData=="string"?n[g.dicData]:g.dicData||[],y.props=g.props||{},y.columnType=g.type,y.multiple=g.multiple,y.type){case"name":r[g.prop]=l(y);break;case"number":r[g.prop]=o(y);break;case"datetime":r[g.prop]=p(y);break;case"word":r[g.prop]=h(y);break;case"url":r[g.prop]=c(y);break;case"county":r[g.prop]=m();break;case"dic":r[g.prop]=v(y);break}}else g.mock instanceof Function&&(r[g.prop]=g.mock(t))})}return C(),r};var Cx=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{class:["avue-form",{"avue--detail":e.isDetail}],style:{width:e.setPx(e.parentOption.formWidth,"100%")}},[t("ElForm",{ref:"form",attrs:{"status-icon":e.parentOption.statusIcon,model:e.form,"label-suffix":e.labelSuffix,size:e.$AVUE.formSize||e.controlSize,"label-position":e.parentOption.labelPosition,"label-width":e.setPx(e.parentOption.labelWidth,e.labelWidth)},nativeOn:{submit:function(i){i.preventDefault()}}},[t("ElRow",{class:{"avue-form__tabs":e.isTabs},attrs:{span:24}},[e._l(e.columnOption,function(i,s){return t("FormGroup",{key:i.prop,attrs:{tabs:e.isTabs,arrow:i.arrow,collapse:i.collapse,display:e.vaildDisplay(i),icon:i.icon,index:s,header:!e.isTabs,active:e.activeName,label:i.label},on:{change:e.handleGroupClick},scopedSlots:e._u([{key:"tabs",fn:function(){return[e.isTabs&&s===1?t("ElTabs",{staticClass:"avue-form__tabs",attrs:{type:e.tabsType},on:{"tab-click":e.handleTabClick},model:{value:e.activeName,callback:function(a){e.activeName=a},expression:"activeName"}},[e._l(e.columnOption,function(a,r){return[e.vaildDisplay(a)&&r!==0?t("ElTabPane",{key:r,attrs:{name:`${r}`},scopedSlots:e._u([{key:"label",fn:function(){return[t("span",[e.getSlotName(a,"H",e.$scopedSlots)?e._t(e.getSlotName(a,"H"),null,{column:e.column}):[t("i",{class:a.icon},[e._v(" ")]),e._v(" "+e._s(a.label)+" ")]],2)]},proxy:!0}],null,!0)}):e._e()]})],2):e._e()]},proxy:!0},e.getSlotName(i,"H",e.$scopedSlots)?{key:"header",fn:function(){return[e._t(e.getSlotName(i,"H"),null,{column:i})]},proxy:!0}:null],null,!0)},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.isGroupShow(i,s),expression:"isGroupShow(item, index)"}],class:["avue-form__group",{"avue-form__group--flex":i.flex===!1}]},[e._l(i.column,function(a,r){return[e.vaildDisplay(a)?t("ElCol",{key:r,class:["avue-form__row",{"avue--detail avue--detail__column":e.vaildDetail(a)},a.className],style:{paddingLeft:e.gutter,paddingRight:e.gutter},attrs:{span:e.getSpan(a),md:e.getSpan(a),sm:a.smSpan||i.smSpan||12,xs:a.xsSpan||i.xmSpan||24,offset:a.offset||i.offset,push:a.push||i.push,pull:a.pull||i.pull}},[t("ElFormItem",{class:`avue-form__item--${a.labelPosition||i.labelPosition||""}`,attrs:{prop:a.prop,label:a.label,rules:a.rules,"label-position":a.labelPosition||i.labelPosition||e.parentOption.labelPosition,"label-width":e.getLabelWidth(a,i)},scopedSlots:e._u([e.getSlotName(a,"L",e.$scopedSlots)?{key:"label",fn:function(){return[e._t(e.getSlotName(a,"L"),null,{column:a,value:e.form[a.prop],readonly:a.readonly||e.readonly,disabled:e.getDisabled(a),size:a.size||e.controlSize,dic:e.DIC[a.prop]})]},proxy:!0}:a.labelTip?{key:"label",fn:function(){return[t("ElTooltip",{staticClass:"item",attrs:{effect:"dark",placement:a.labelTipPlacement||"top-start"},scopedSlots:e._u([{key:"content",fn:function(){return[t("div",{domProps:{innerHTML:e._s(a.labelTip)}})]},proxy:!0}],null,!0)},[t("i",{staticClass:"el-icon-info"})]),t("span",[e._v(" "+e._s(a.label)+e._s(e.labelSuffix))])]},proxy:!0}:null,e.getSlotName(a,"E",e.$scopedSlots)?{key:"error",fn:function(l){return[e._t(e.getSlotName(a,"E"),null,null,Object.assign(l,{column:a,value:e.form[a.prop],readonly:e.readonly||a.readonly,disabled:e.getDisabled(a),size:a.size||e.controlSize,dic:e.DIC[a.prop]}))]}}:null],null,!0)},[t(e.validTip(a)?"div":"elTooltip",{tag:"Component",attrs:{disabled:e.validTip(a),content:a.tip||e.getPlaceholder(a),placement:a.tipPlacement}},[e.$scopedSlots[a.prop]?e._t(a.prop,null,{value:e.form[a.prop],column:a,label:e.form[`$${a.prop}`],size:a.size||e.controlSize,readonly:e.readonly||a.readonly,disabled:e.getDisabled(a),dic:e.DIC[a.prop]}):t("FormTemp",e._b({ref:a.prop,refInFor:!0,attrs:{column:a,dic:e.DIC[a.prop],props:e.parentOption.props,"props-http":e.parentOption.propsHttp,disabled:e.getDisabled(a),readonly:a.readonly||e.readonly,enter:e.parentOption.enter,size:a.size||e.controlSize,"column-slot":e.columnSlot},on:{enter:e.submit,change:function(l){return e.propChange(i.column,a)}},scopedSlots:e._u([e._l(e.getSlotName(a,"T",e.$scopedSlots)?[a]:[],function(l){return{key:e.getSlotName(a,"T"),fn:function(o){return[e._t(e.getSlotName(l,"T"),null,null,o)]}}}),e._l(e.columnSlot,function(l){return{key:l,fn:function(o){return[e._t(l,null,null,o)]}}})],null,!0),model:{value:e.form[a.prop],callback:function(l){e.$set(e.form,a.prop,l)},expression:"form[column.prop]"}},"FormTemp",e.uploadFun(a),!1))],2)],1)],1):e._e(),e.vaildDisplay(a)&&a.row&&a.span!==24&&a.count?t("div",{key:`line${r}`,staticClass:"avue-form__line",style:{width:`${a.count/24*100}%`}}):e._e()]}),!e.isDetail&&!e.isMenu?t("FyFormMenu",{scopedSlots:e._u([{key:"menuForm",fn:function(a){return[e._t("menuForm",null,null,a)]}}],null,!0)}):e._e()],2)])}),!e.isDetail&&e.isMenu?t("FyFormMenu",{scopedSlots:e._u([{key:"menuForm",fn:function(i){return[e._t("menuForm",null,null,i)]}}],null,!0)}):e._e()],2)],1)],1)},Sx=[];const kx={name:"FyForm",mixins:[Us],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(e=>!this.propOption.map(n=>n.prop).includes(e))},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 w((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 e=[];return this.propOption.forEach(n=>{n.type==="dynamic"&&this.vaildDisplay(n)&&e.push(n)}),e},propOption(){const e=[];return this.columnOption.forEach(n=>{n.display!==!1&&n.column.forEach(t=>{e.push(t)})}),e},parentOption(){return this.tableOption||{}},columnOption(){const e=this.tableOption.column||[],n=$(this.tableOption.group)||[],t=this.tableOption.footer||[];return n.unshift({header:!1,column:e}),t.length!==0&&n.push({header:!1,column:t}),n.forEach(i=>{i.column=i.column||[],i.column.forEach((s,a)=>{s.display!==!1&&!this.isMobile&&(s=Zy(s,this.itemSpanDefault,a===0))}),i.column=Vc(i.column),i.column=i.column.sort((s,a)=>(a.order||0)-(s.order||0))}),n},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(e){this.$emit("update:status",e)},deep:!0,immediate:!0}},mounted(){setTimeout(()=>{this.dataFormat()})},beforeDestroy(){Object.keys(this.formBind).forEach(e=>{this.formBind[e].forEach(n=>{n()})})},methods:{setPx:w,deepClone:$,getComponent:Uc,getPlaceholder:qc,uploadFun:Je,getDisabled(e){return this.vaildDetail(e)||this.isDetail||this.vaildDisabled(e)||this.allDisabled},getSpan(e){return e.span||this.parentOption.span||this.itemSpanDefault},isGroupShow(e,n){return this.isTabs?`${n}`===this.activeName||n===0:!0},dataFormat(){const e=Hc(this.propOption).tableForm,n=this.value,t={};Object.entries(Object.assign(e,n)).forEach(i=>{const s=i[0],a=i[1];d.isBlank(n[s])?t[s]=a:t[s]=n[s]}),this.$set(this,"form",t),this.setLabel(),this.setControl(),this.setVal(),setTimeout(()=>{this.formCreate=!0,this.clearValidate()})},setControl(){this.propOption.forEach(e=>{const n=e.prop,t=e.bind,i=e.control;if(!this.formBind[n]){const s=[];if(t){const a=this.$watch(`form.${n}`,(l,o)=>{l!==o&&Dd(this.form,t,l)}),r=this.$watch(`form.${t}`,(l,o)=>{l!==o&&this.$set(this.form,n,l)});s.push(a),s.push(r),this.$set(this.form,n,Ge(this.form,t))}if(i){const a=()=>{const l=i(this.form[e.prop],this.form)||{};Object.keys(l).forEach(o=>{const c=Object.assign(this.objectOption[o]||{},l[o]);this.$set(this.objectOption,o,c),l[o].dicData&&(this.DIC[o]=l[o].dicData)})},r=this.$watch(`form.${n}`,()=>{a()});s.push(r),a()}this.formBind[n]=s}})},setForm(){Object.keys(this.value).forEach(e=>{this.$set(this.form,e,this.value[e])})},setVal(){this.$emit("input",this.form),this.$emit("change",this.form)},setLabel(){this.tableOption.filterNull===!0&&(this.form=oe(this.form,[""],!1)),this.tableOption.filterDic===!0?this.form=oe(this.form,["$"],!1):this.propOption.forEach(e=>{const n=this.DIC[e.prop];if(d.isBlank(n))return;const t=Vs(this.form,e,this.tableOption,n);t?this.$set(this.form,`$${e.prop}`,t):this.$delete(this.form,`$${e.prop}`)})},handleGroupClick(e){this.$emit("tab-click",e)},handleTabClick(e,n){this.$emit("tab-click",e,n)},getLabelWidth(e,n){let t;return d.isBlank(e.labelWidth)?d.isBlank(n.labelWidth)?t=this.parentOption.labelWidth:t=n.labelWidth:t=e.labelWidth,w(t,this.labelWidth)},validateField(e){return this.$refs.form.validateField(e)},validTip(e){return!e.tip||e.type==="upload"},getPropRef(e){return this.$refs[e][0]},handleChange(e,n){this.$nextTick(()=>{const t=n.cascader,i=t.join(",");t.forEach(s=>{const a=s,r=this.form[n.prop],l=this.findObject(e,a);d.isBlank(l)||(this.formList.includes(i)&&t.forEach(o=>{this.form[o]="",this.$set(this.DIC,o,[])}),!(d.isBlank(t)||d.isBlank(r)||d.isBlank(l))&&he({column:l,value:r,form:this.form}).then(o=>{this.formList.includes(i)||this.formList.push(i);const c=o||[];this.$set(this.DIC,a,c),!d.isBlank(c)&&!d.isBlank(c)&&!d.isBlank(l.cascaderIndex)&&d.isBlank(this.form[a])&&(this.form[a]=c[l.cascaderIndex][(l.props||{}).value||I.value])}))})})},handlePrint(){this.$Print(this.$el)},propChange(e,n){n.cascader&&this.handleChange(e,n)},handleMock(){this.isMock&&(this.columnOption.forEach(e=>{const n=wx(e.column,this.DIC,this.form,this.isMock);d.isBlank(n)||Object.keys(n).forEach(t=>{this.form[t]=n[t]})}),this.$nextTick(()=>{this.clearValidate(),this.$emit("mock-change",this.form)}))},vaildDetail(e){let n;if(this.detail)return!1;if(!d.isBlank(e.detail))n="detail";else if(this.isAdd)n="addDetail";else if(this.isEdit)n="editDetail";else if(this.isView)return!1;return n?e[n]===!0:!1},vaildDisabled(e){let n;if(this.disabled)return!0;if(!d.isBlank(e.disabled))n="disabled";else if(this.isAdd)n="addDisabled";else if(this.isEdit)n="editDisabled";else if(this.isView)return!0;return n?e[n]===!0:!1},vaildDisplay(e){let n;return d.isBlank(e.display)?this.isAdd?n="addDisplay":this.isEdit?n="editDisplay":this.isView&&(n="viewDisplay"):n="display",n?M(e[n],!0):!0},clearValidate(e){return _(this,null,function*(){var n;(n=this.$refs.form)==null||n.clearValidate(e)})},validateCellForm(){return new Promise(e=>{this.$refs.form.validate((n,t)=>{e(t)})})},validate(e){this.$refs.form.validate((n,t)=>{const i=[],s=[],a={};this.dynamicOption.forEach(r=>{const l=r.children.type==="form";s.push(r.prop),l?d.isBlank(this.$refs[r.prop][0].$refs.temp.$refs.main)||this.$refs[r.prop][0].$refs.temp.$refs.main.forEach(o=>{i.push(o.validateCellForm())}):i.push(this.$refs[r.prop][0].$refs.temp.$refs.main.validateCellForm())}),Promise.all(i).then(r=>{r.forEach((o,c)=>{d.isBlank(o)||(a[s[c]]=o)});const l=Object.assign(a,t);d.isBlank(l)?(this.show(),e(!0,this.hide)):e(!1,this.hide,l)})})},resetForm(e=!0){if(e){const n=this.propOption.map(t=>t.prop);this.form=Gd(this.form,n,(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((e,n)=>{e?this.$emit("submit",oe(this.form,["$"]),this.hide):this.$emit("error",n)})}}},nl={};var Ex=u(kx,Cx,Sx,!1,Fx,null,null,null);function Fx(e){for(let n in nl)this[n]=nl[n]}const li=function(){return Ex.exports}(),oi=[{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:e=>e.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}]}],ct=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,Ix=/^[a-zA-Z_$][0-9a-zA-Z_$]*$/;let W,Le;const Tx={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"'":"\\'","\\":"\\\\"};let te;function ue(e,n={}){const t=n.space||2,i=n.dropQuotesOnKeys!==!1,s=n.dropQuotesOnNumbers||!1,a=n.inlineShortArrays||!1,r=n.inlineShortArraysDepth||1,l=n.quoteType||"single",o=n.minify||!1;s&&Jc(e);let c=Bx(e,null,o?void 0:t,i,l);if(a&&!o){let p=sl(c);if(r>1)for(let h=1;h<r&&(c=p,p=sl(c),p!==c);h++);c=p}return c}function Jc(e){if(!il(e))return;const n=Object.keys(e);n&&n.forEach(function(t){const i=e[t];if(typeof i=="string"){const s=i-0;e[t]=isNaN(s)?i:s}else(il(i)||Array.isArray(i))&&Jc(i)})}function il(e){return e&&typeof e=="object"}function sl(e,n){if(n||(n=80),typeof n!="number"||n<20)throw Error(`Invalid width '${n}'. Expecting number equal or larger than 20.`);const t=e.split(`
|
|
10
|
+
`);let i=0,s=null,a=[];for(;i<t.length;){const r=!!t[i].match(/\[/),l=!!t[i].match(/\],?/);if(r&&!l)a=[t[i]],s=i;else if(l&&!r&&s){a.push((t[i]||"").trim());const o=a.join(" ");o.length<n&&(t.splice(s,i-s+1,o),i=s),s=null,a=[]}else s&&a.push((t[i]||"").trim());i+=1}return t.join(`
|
|
11
|
+
`)}function Bx(e,n,t,i,s){let a;if(W="",Le="",typeof t=="number")for(a=0;a<t;a+=1)Le+=" ";else typeof t=="string"&&(Le=t);if(te=n,n&&typeof n!="function"&&(typeof n!="object"||typeof n.length!="number"))throw new Error("JSON.stringify");return Re("",{"":e},i,s)}function Re(e,n,t,i){let s,a,r,l;const o=W;let c,p=n[e];switch(p&&typeof p=="object"&&typeof p.toJSON=="function"&&(p=p.toJSON(e)),typeof te=="function"&&(p=te.call(n,e,p)),typeof p){case"function":return p;case"string":return Ne(p,i);case"number":return isFinite(p)?String(p):"null";case"boolean":case"null":return String(p);case"object":if(!p)return"null";if(W+=Le,c=[],Object.prototype.toString.apply(p)==="[object Array]"){for(l=p.length,s=0;s<l;s+=1)c[s]=Re(s,p,t,i)||"null";return r=c.length===0?"[]":W?`[
|
|
12
|
+
${W}${c.join(`,
|
|
13
|
+
${W}`)}
|
|
14
|
+
${o}]`:`[${c.join(",")}]`,W=o,r}if(te&&typeof te=="object")for(l=te.length,s=0;s<l;s+=1)typeof te[s]=="string"&&(a=te[s],r=Re(a,p,t,i),r&&c.push((t?al(a,i):Ne(a,i))+(W?": ":":")+r));else for(a in p)Object.prototype.hasOwnProperty.call(p,a)&&(r=Re(a,p,t,i),r&&c.push((t?al(a,i):Ne(a,i))+(W?": ":":")+r));return r=c.length===0?"{}":W?`{
|
|
15
|
+
${W}${c.join(`,
|
|
16
|
+
${W}`)}
|
|
17
|
+
${o}}`:`{${c.join(",")}}`,W=o,r}}function Ne(e,n){ct.lastIndex=0;let t='"';return n==="single"&&(t="'"),ct.test(e)?t+e.replace(ct,function(i){const s=Tx[i];return typeof s=="string"?s:`\\u${`0000${i.charCodeAt(0).toString(16)}`.slice(-4)}`})+t:t+e+t}function al(e,n){return Ix.test(e)?e:Ne(e,n)}const Ax="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==",Ox=e=>new Function(`return ${e}`)(),Mx={data(){return{historySteps:{index:0,maxStep:20,steps:[],storage:!1}}},watch:{historySteps:{handler(e){e.storage?localStorage.setItem("avue-form-history",ue(e)):localStorage.removeItem("avue-form-history")},deep:!0}},methods:{initHistory(e){if(e.storage){const i=localStorage.getItem("avue-form-history");if(i){this.historySteps=Ox(i);const{index:s,steps:a}=this.historySteps;return O.cloneDeep(a[s])}}this.historySteps=f(f({},this.historySteps),e);const{index:n,steps:t}=this.historySteps;return O.cloneDeep(t[n])},handleHistoryChange(e){this.historySteps.index===this.historySteps.maxStep-1?this.historySteps.steps.shift():this.historySteps.index++,this.historySteps.steps[this.historySteps.index]=O.cloneDeep(e),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--,O.cloneDeep(this.historySteps.steps[this.historySteps.index])},handleRedo(){return this.historySteps.index!==this.historySteps.steps.length-1&&this.historySteps.index++,O.cloneDeep(this.historySteps.steps[this.historySteps.index])}}};var Px=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[e.item.type==="title"?t("div",{staticStyle:{"margin-left":"5px"},style:e.item.styles},[e._v(" "+e._s(e.item.value)+" ")]):t(e.getComponent(e.item.type,e.item.component),e._b({tag:"Component",attrs:{multiple:!1,placeholder:e.item.placeholder||e.getPlaceholder(e.item),value:["time","timerange","checkbox"].includes(e.item.type)?e.item.dicData:void 0}},"Component",e.vBind,!1),[e.params.html?t("span",{domProps:{innerHTML:e._s(e.params.html)}}):e._e()])],1)},Dx=[];const Lx={name:"WidgetFormItem",props:{item:{type:Object,default:()=>({})},params:{type:Object,default:()=>({})}},computed:{vBind(){const e=Object.assign($(this.item),this.params,{size:this.item.size||"small",dic:this.item.dicData?this.item.dicData.map(t=>{if(!this.item.props)return t;const{label:i,value:s,desc:a}=this.item.props;return!i||!s?t:{[i]:t.label,[s]:t.value,[a]:t.desc}}):void 0,rules:this.item.pattern?this.item.rules.map(t=>(t.pattern&&(t.pattern=new RegExp(this.item.pattern)),t)):this.item.rules});return["change","blur","click","focus"].forEach(t=>delete e[t]),e.event&&delete e.event,e}},methods:{getComponent(e,n){const t="fy-";let i="input";return n||(["array","img","url"].includes(e)?i="array":e==="select"?i="select":e==="radio"?i="radio":e==="checkbox"?i="checkbox":["time","timerange"].includes(e)?i="time":["dates","date","datetime","datetimerange","daterange","week","month","year"].includes(e)?i="date":e==="cascader"?i="cascader":e==="number"?i="input-number":e==="password"?i="input":e==="switch"?i="switch":e==="rate"?i="rate":e==="upload"?i="upload":e==="slider"?i="slider":e==="dynamic"?i="dynamic":e==="icon"?i="input-icon":e==="color"?i="input-color":e==="map"&&(i="input-map"),t+i)},getPlaceholder(e){const n=e.label;return["select","checkbox","radio","tree","color","dates","date","datetime","datetimerange","daterange","week","month","year","map","icon"].includes(e.type)?`请选择 ${n}`:`请输入 ${n}`}}},rl={};var Rx=u(Lx,Px,Dx,!1,Nx,null,null,null);function Nx(e){for(let n in rl)this[n]=rl[n]}const Hs=function(){return Rx.exports}();var jx=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("h3",{directives:[{name:"show",rawName:"v-show",value:e.column.label,expression:"column.label"}],staticStyle:{margin:"10px"}},[e._v(" "+e._s(e.column.label)+" ")]),t("Draggable",{staticClass:"widget-form-table__content",attrs:{list:e.column.children.column,group:{name:"form"},"ghost-class":"ghost",animation:200,handle:".widget-form-table__item"},on:{add:function(i){return e.handleWidgetTableAdd(i,e.column)},end:function(i){return e.$emit("change")}}},[e.column.children.column.length>0?e._l(e.column.children.column,function(i,s){return t("div",{key:s,staticClass:"widget-form-table__item",class:{active:e.selectWidget.prop===i.prop,required:i.required},style:{minWidth:i.width?`${i.width}px`:"33.3%",width:i.width?`${i.width}px`:"33.3%"},on:{click:function(a){return a.stopPropagation(),e.handleWidgetTableSelect(i)}}},[t("ElTable",{attrs:{data:[i],border:""}},[t("ElTableColumn",{attrs:{prop:i.prop,label:i.label,align:e.column.children.align,"header-align":e.column.children.headerAlign}},[t("WidgetFormItem",{attrs:{item:i,params:e.column.params}}),e.selectWidget.prop===i.prop?t("ElButton",{staticClass:"widget-table-action-delete",attrs:{title:"删除",circle:"",plain:"",size:"small",type:"danger"},on:{click:function(a){return a.stopPropagation(),e.handleWidgetTableDelete(e.column,s)}}},[t("i",{staticClass:"iconfont icon-delete"})]):e._e(),e.selectWidget.prop===i.prop?t("ElButton",{staticClass:"widget-table-action-clone",attrs:{title:"复制",circle:"",plain:"",size:"small",type:"primary"},on:{click:function(a){return a.stopPropagation(),e.handleWidgetTableClone(e.column,i)}}},[t("i",{staticClass:"iconfont icon-copy"})]):e._e()],1)],1)],1)}):[t("FyEmpty",{staticStyle:{width:"100%"},attrs:{size:"50",desc:"拖拽字段至此"}})]],2),e.selectWidget.prop===e.column.prop?t("ElButton",{staticClass:"widget-action-delete",attrs:{title:"删除",circle:"",plain:"",size:"small",type:"danger"},on:{click:function(i){return i.stopPropagation(),e.handleWidgetDelete(e.index)}}},[t("i",{staticClass:"iconfont icon-delete"})]):e._e(),e.selectWidget.prop===e.column.prop?t("ElButton",{staticClass:"widget-action-clear",attrs:{title:"清空",circle:"",plain:"",size:"small",type:"warning"},on:{click:function(i){return i.stopPropagation(),e.handleWidgetClear(e.index)}}},[t("i",{staticClass:"iconfont icon-clear"})]):e._e(),e.selectWidget.prop===e.column.prop?t("ElButton",{staticClass:"widget-action-clone",attrs:{title:"复制",circle:"",plain:"",size:"small",type:"primary"},on:{click:function(i){return i.stopPropagation(),e.handleWidgetCloneTable(e.index)}}},[t("i",{staticClass:"iconfont icon-copy"})]):e._e()],1)},zx=[];const Kx={name:"WidgetFormTable",components:{WidgetFormItem:Hs,Draggable:pe},props:{data:Object,column:Object,select:Object,index:Number},data(){return{selectWidget:this.select}},watch:{select(e){this.selectWidget=e},selectWidget:{handler(e){this.$emit("update:select",e)},deep:!0}},methods:{handleSelectWidget(e){this.selectWidget=this.data.column[e]},handleWidgetClear(e){this.data.column[e].children.column=[],this.selectWidget=this.data.column[e],this.$emit("change")},handleWidgetDelete(e){this.data.column.length-1===e?e===0?this.selectWidget={}:this.handleSelectWidget(e-1):this.handleSelectWidget(e+1),this.$nextTick(()=>{this.data.column.splice(e,1),this.$emit("change")})},handleWidgetCloneTable(e){const n=$(this.data.column[e]);n.prop=`a${Date.now()}${Math.ceil(Math.random()*99999)}`,n.children.column.forEach(t=>{t.prop=`a${Date.now()}${Math.ceil(Math.random()*99999)}`}),this.data.column.splice(e,0,n),this.$nextTick(()=>{this.handleSelectWidget(e+1),this.$emit("change")})},handleWidgetTableAdd(e,n){let t=e.newIndex;const i=e.item;if(t===1&&t>n.children.column.length-1&&(t=0),["子表单","富文本","坐标拾取器","分组"].includes(i.textContent)){n.children.column.splice(t,1);return}const s=$(n.children.column[t]);s.prop||(s.prop=`a${Date.now()}${Math.ceil(Math.random()*99999)}`),s.subfield=!0,delete s.icon,this.$set(n.children.column,t,f({},s)),this.selectWidget=n.children.column[t],this.$emit("change")},handleWidgetTableSelect(e){this.selectWidget=e},handleWidgetTableClone(e,n){const t=$(n);t.prop=`a${Date.now()}${Math.ceil(Math.random()*99999)}`,this.$set(e.children.column,e.children.column.length,f({},t)),this.$nextTick(()=>{this.selectWidget=e.children.column[e.children.column.length-1],this.$emit("change")})},handleWidgetTableDelete(e,n){e.children.column.length-1===n?n===0?this.selectWidget=e:this.selectWidget=e.children.column[n-1]:this.selectWidget=e.children.column[n+1],this.$nextTick(()=>{e.children.column.splice(n,1),this.$emit("change")})}}},ll={};var Wx=u(Kx,jx,zx,!1,Vx,null,null,null);function Vx(e){for(let n in ll)this[n]=ll[n]}const Qc=function(){return Wx.exports}();var Ux=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("h4",{directives:[{name:"show",rawName:"v-show",value:e.column.label,expression:"column.label"}],staticClass:"widget-form-group__head"},[t("i",{directives:[{name:"show",rawName:"v-show",value:e.column.icon,expression:"column.icon"}],class:e.column.icon,staticStyle:{"margin-right":"10px"}}),e._v(e._s(e.column.label)+" ")]),t("Draggable",{staticClass:"widget-form-group__body",attrs:{list:e.column.children.column,group:{name:"form"},"ghost-class":"ghost",animation:200},on:{add:function(i){return e.handleWidgetGroupAdd(i,e.column)},end:function(i){return e.$emit("change")}}},[e._l(e.column.children.column,function(i,s){return[i.type==="dynamic"?t("div",{key:s,staticClass:"widget-form-table",class:{active:e.selectWidget.prop===i.prop},on:{click:function(a){return a.stopPropagation(),e.handleWidgetTableSelect(i)}}},[t("WidgetFormTable",{attrs:{data:e.column.children,column:i,index:s,select:e.selectWidget},on:{"update:select":function(a){e.selectWidget=a},change:function(a){return e.$emit("change")}}})],1):t("ElCol",{key:s,attrs:{md:i.span||12,xs:24,offset:i.offset||0}},[t("ElFormItem",{staticClass:"widget-form-group__item",class:{active:e.selectWidget.prop===i.prop,required:i.required},attrs:{label:i.label,prop:i.prop},nativeOn:{click:function(a){return a.stopPropagation(),e.handleWidgetTableSelect(i)}}},[t("WidgetFormItem",{attrs:{item:i,params:e.column.params}}),e.selectWidget.prop===i.prop?t("ElButton",{staticClass:"widget-form-group__item--delete",attrs:{title:"删除",circle:"",plain:"",type:"danger"},on:{click:function(a){return a.stopPropagation(),e.handleWidgetTableDelete(e.column,s)}}},[t("i",{staticClass:"iconfont icon-delete"})]):e._e(),e.selectWidget.prop===i.prop?t("ElButton",{staticClass:"widget-form-group__item--clone",attrs:{title:"复制",circle:"",plain:"",type:"primary"},on:{click:function(a){return a.stopPropagation(),e.handleWidgetTableClone(e.column,i)}}},[t("i",{staticClass:"iconfont icon-copy"})]):e._e()],1)],1)]})],2),e.selectWidget.prop===e.column.prop?t("ElButton",{staticClass:"widget-action-delete",attrs:{title:"删除",circle:"",plain:"",size:"small",type:"danger"},on:{click:function(i){return i.stopPropagation(),e.handleWidgetDelete(e.index)}}},[t("i",{staticClass:"iconfont icon-delete"})]):e._e(),e.selectWidget.prop===e.column.prop?t("ElButton",{staticClass:"widget-action-clear",attrs:{title:"清空",circle:"",plain:"",size:"small",type:"warning"},on:{click:function(i){return i.stopPropagation(),e.handleWidgetClear(e.index)}}},[t("i",{staticClass:"iconfont icon-clear"})]):e._e(),e.selectWidget.prop===e.column.prop?t("ElButton",{staticClass:"widget-action-clone",attrs:{title:"复制",circle:"",plain:"",size:"small",type:"primary"},on:{click:function(i){return i.stopPropagation(),e.handleWidgetCloneTable(e.index)}}},[t("i",{staticClass:"iconfont icon-copy"})]):e._e()],1)},Hx=[];const qx={name:"WidgetFormGroup",components:{WidgetFormItem:Hs,WidgetFormTable:Qc,Draggable:pe},props:{data:Object,column:Object,select:Object,index:Number},data(){return{selectWidget:this.select}},watch:{select(e){this.selectWidget=e},selectWidget:{handler(e){this.$emit("update:select",e)},deep:!0}},methods:{handleSelectWidget(e){this.selectWidget=this.data.column[e]},handleWidgetClear(e){this.data.column[e].children.column=[],this.selectWidget=this.data.column[e],this.$emit("change")},handleWidgetDelete(e){this.data.column.length-1===e?e===0?this.selectWidget={}:this.handleSelectWidget(e-1):this.handleSelectWidget(e+1),this.$nextTick(()=>{this.data.column.splice(e,1),this.$emit("change")})},handleWidgetCloneTable(e){const n=$(this.data.column[e]);n.prop=`a${Date.now()}${Math.ceil(Math.random()*99999)}`,n.children.column.forEach(t=>{t.prop=`a${Date.now()}${Math.ceil(Math.random()*99999)}`}),this.data.column.splice(e,0,n),this.$nextTick(()=>{this.handleSelectWidget(e+1),this.$emit("change")})},handleWidgetTableSelect(e){this.selectWidget=e},handleWidgetTableClone(e,n){const t=$(n);t.prop=`a${Date.now()}${Math.ceil(Math.random()*99999)}`,this.$set(e.children.column,e.children.column.length,f({},t)),this.$nextTick(()=>{this.selectWidget=e.children.column[e.children.column.length-1],this.$emit("change")})},handleWidgetTableDelete(e,n){e.children.column.length-1===n?n===0?this.selectWidget=e:this.selectWidget=e.children.column[n-1]:this.selectWidget=e.children.column[n+1],this.$nextTick(()=>{e.children.column.splice(n,1),this.$emit("change")})},handleWidgetGroupAdd(e,n){let t=e.newIndex;const i=e.item;if(t===1&&t>n.children.column.length-1&&(t=0),["分组"].includes(i.textContent)){n.children.column.splice(t,1);return}const s=$(n.children.column[t]);s.prop||(s.prop=`a${Date.now()}${Math.ceil(Math.random()*99999)}`),delete s.icon,s.type==="dynamic"?s.span=24:s.span=12,this.$set(n.children.column,t,f({},s)),this.selectWidget=n.children.column[t],this.$emit("change")}}},ol={};var Gx=u(qx,Ux,Hx,!1,Jx,null,null,null);function Jx(e){for(let n in ol)this[n]=ol[n]}const Qx=function(){return Gx.exports}();var Yx=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"widget-form-container"},[t("ElForm",{ref:"widgetForm",attrs:{"label-position":e.data.labelPosition||"left","label-width":e.data.labelWidth?`${e.data.labelWidth}px`:"100px","label-suffix":e.data.labelSuffix,model:e.form,size:"small"}},[t("ElRow",{attrs:{gutter:e.data.gutter}},[t("Draggable",{staticClass:"widget-form-list",attrs:{list:e.data.column,group:{name:"form"},"ghost-class":"ghost",animation:300},on:{add:e.handleWidgetAdd,end:function(i){return e.$emit("change")}}},[e._l(e.data.column,function(i,s){return[i.type==="dynamic"?t("div",{key:s,staticClass:"widget-form-table",class:{active:e.selectWidget.prop===i.prop},on:{click:function(a){return e.handleSelectWidget(s)}}},[t("WidgetFormTable",{attrs:{data:e.data,column:i,index:s,select:e.selectWidget},on:{"update:select":function(a){e.selectWidget=a},change:function(a){return e.$emit("change")}}})],1):i.type==="group"?t("div",{key:s,staticClass:"widget-form-group",class:{active:e.selectWidget.prop===i.prop},on:{click:function(a){return e.handleSelectWidget(s)}}},[t("WidgetFormGroup",{attrs:{data:e.data,column:i,index:s,select:e.selectWidget},on:{"update:select":function(a){e.selectWidget=a},change:function(a){return e.$emit("change")}}})],1):t("ElCol",{key:s,attrs:{md:i.span||12,xs:24,offset:i.offset||0}},[t("ElFormItem",{staticClass:"widget-form-item",class:[{active:e.selectWidget.prop===i.prop,required:i.required},`avue-form__item--${i.labelPosition}`||""],attrs:{label:i.label,"label-width":i.labelWidth&&`${i.labelWidth}px`,prop:i.prop},nativeOn:{click:function(a){return e.handleSelectWidget(s)}}},[t("WidgetFormItem",{attrs:{item:i,params:i.params}}),e.selectWidget.prop===i.prop?t("ElButton",{staticClass:"widget-action-delete",attrs:{title:"删除",circle:"",plain:"",size:"small",type:"danger"},on:{click:function(a){return a.stopPropagation(),e.handleWidgetDelete(s)}}},[t("i",{staticClass:"iconfont icon-delete"})]):e._e(),e.selectWidget.prop===i.prop?t("ElButton",{staticClass:"widget-action-clone",attrs:{title:"复制",circle:"",plain:"",size:"small",type:"primary"},on:{click:function(a){return a.stopPropagation(),e.handleWidgetClone(s)}}},[t("i",{staticClass:"iconfont icon-copy"})]):e._e()],1)],1)]})],2)],1)],1)],1)},Xx=[];const Zx={name:"WidgetForm",components:{Draggable:pe,WidgetFormItem:Hs,WidgetFormTable:Qc,WidgetFormGroup:Qx},props:{data:Object,select:Object},data(){return{selectWidget:this.select,form:{}}},watch:{select(e){this.selectWidget=e},selectWidget:{handler(e){this.$emit("update:select",e)},deep:!0}},methods:{handleSelectWidget(e){this.selectWidget=this.data.column[e]},handleWidgetAdd(e){const n=e.newIndex,t=$(this.data.column[n]);t.prop||(t.prop=`a${Date.now()}${Math.ceil(Math.random()*99999)}`),delete t.icon,delete t.subfield,t.type==="title"&&(delete t.label,this.form[t.prop]=t.value),this.$set(this.data.column,n,t),this.handleSelectWidget(n),this.$emit("change")},handleWidgetDelete(e){this.data.column.length-1===e?e===0?this.selectWidget={}:this.handleSelectWidget(e-1):this.handleSelectWidget(e+1),this.$nextTick(()=>{this.data.column.splice(e,1),this.$emit("change")})},handleWidgetClone(e){const n=$(this.data.column[e]);n.prop=`a${Date.now()}${Math.ceil(Math.random()*99999)}`,this.data.column.push(n),this.$nextTick(()=>{this.handleSelectWidget(this.data.column.length-1),this.$emit("change")})}}},cl={};var e$=u(Zx,Yx,Xx,!1,t$,null,null,null);function t$(e){for(let n in cl)this[n]=cl[n]}const n$=function(){return e$.exports}();var i$=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"form-config-container"},[t("ElForm",{attrs:{"label-position":"left","label-suffix":":","label-width":"130px",size:"small"}},[t("ElFormItem",{attrs:{label:"标签对齐方式"}},[t("ElSelect",{attrs:{placeholder:"标签对齐方式"},model:{value:e.data.labelPosition,callback:function(i){e.$set(e.data,"labelPosition",i)},expression:"data.labelPosition"}},[t("ElOption",{attrs:{label:"左对齐",value:"left"}}),t("ElOption",{attrs:{label:"右对齐",value:"right"}}),t("ElOption",{attrs:{label:"顶部对齐",value:"top"}})],1)],1),t("ElFormItem",{attrs:{label:"标签宽度"}},[t("ElInputNumber",{staticStyle:{width:"100%"},attrs:{min:80,max:200,step:10,"controls-position":"right",placeholder:"标签宽度"},model:{value:e.data.labelWidth,callback:function(i){e.$set(e.data,"labelWidth",i)},expression:"data.labelWidth"}})],1),t("ElFormItem",{attrs:{label:"标签后缀"}},[t("ElInput",{attrs:{placeholder:"标签后缀"},model:{value:e.data.labelSuffix,callback:function(i){e.$set(e.data,"labelSuffix",i)},expression:"data.labelSuffix"}})],1),t("ElFormItem",{attrs:{label:"项之间的间隔"}},[t("ElInputNumber",{staticStyle:{width:"100%"},attrs:{min:0,max:60,step:5,"controls-position":"right",placeholder:"项之间的间隔"},model:{value:e.data.gutter,callback:function(i){e.$set(e.data,"gutter",i)},expression:"data.gutter"}})],1),t("ElFormItem",{attrs:{label:"多分组转标签"}},[t("ElSwitch",{model:{value:e.data.tabs,callback:function(i){e.$set(e.data,"tabs",i)},expression:"data.tabs"}})],1),t("ElFormItem",{attrs:{label:"详情模式"}},[t("ElSwitch",{model:{value:e.data.detail,callback:function(i){e.$set(e.data,"detail",i)},expression:"data.detail"}})],1),t("ElFormItem",{attrs:{label:"显示按钮"}},[t("ElSwitch",{model:{value:e.data.menuBtn,callback:function(i){e.$set(e.data,"menuBtn",i)},expression:"data.menuBtn"}})],1),e.data.menuBtn?t("ElFormItem",{attrs:{label:"显示提交按钮"}},[t("ElSwitch",{model:{value:e.data.submitBtn,callback:function(i){e.$set(e.data,"submitBtn",i)},expression:"data.submitBtn"}})],1):e._e(),e.data.menuBtn&&e.data.submitBtn?t("ElFormItem",{attrs:{label:"提交按钮的文字"}},[t("ElInput",{attrs:{placeholder:"提交按钮的文字"},model:{value:e.data.submitText,callback:function(i){e.$set(e.data,"submitText",i)},expression:"data.submitText"}})],1):e._e(),e.data.menuBtn?t("ElFormItem",{attrs:{label:"显示清空按钮"}},[t("ElSwitch",{model:{value:e.data.emptyBtn,callback:function(i){e.$set(e.data,"emptyBtn",i)},expression:"data.emptyBtn"}})],1):e._e(),e.data.menuBtn&&e.data.emptyBtn?t("ElFormItem",{attrs:{label:"清空按钮的文字"}},[t("ElInput",{attrs:{placeholder:"提交按钮的文字"},model:{value:e.data.emptyText,callback:function(i){e.$set(e.data,"emptyText",i)},expression:"data.emptyText"}})],1):e._e(),t("ElFormItem",{attrs:{label:"全局只读"}},[t("ElSwitch",{model:{value:e.data.readonly,callback:function(i){e.$set(e.data,"readonly",i)},expression:"data.readonly"}})],1),t("ElFormItem",{attrs:{label:"全局禁用"}},[t("ElSwitch",{model:{value:e.data.disabled,callback:function(i){e.$set(e.data,"disabled",i)},expression:"data.disabled"}})],1)],1)],1)},s$=[];const a$={name:"FormConfig",props:{data:Object}},ul={};var r$=u(a$,i$,s$,!1,l$,null,null,null);function l$(e){for(let n in ul)this[n]=ul[n]}const o$=function(){return r$.exports}(),c$={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:d.NOOP},editorBeforeMount:{type:Function,default:d.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(e){this.editor&&this.editor.updateOptions(e)}},keyIndex(){let e=this.value;typeof e=="object"&&(e=ue(e)),this.editor&&e!==this._getValue()&&this._setValue(e)},language(){if(this.editor)if(this.diffEditor){const{original:e,modified:n}=this.editor.getModel();Q.editor.setModelLanguage(e,this.language),Q.editor.setModelLanguage(n,this.language)}else Q.editor.setModelLanguage(this.editor.getModel(),this.language)},theme(){this.editor&&Q.editor.setTheme(this.theme)},style(){this.editor&&this.$nextTick(()=>{this.editor.layout()})},value(e){this.editor&&e!==this._getValue()&&this._setValue(e)}},mounted(){this.initMonaco()},beforeDestroy(){this.editor&&this.editor.dispose()},methods:{initMonaco(){const{value:e,language:n,theme:t,readOnly:i,options:s}=this;Object.assign(s,this._editorBeforeMount()),this.editor=Q.editor[this.diffEditor?"createDiffEditor":"create"](this.$el,f({value:typeof e=="string"?e:ue(e),language:n,theme:t,readOnly:i},s)),this.diffEditor&&this._setModel(this.value,this.original),this._editorMounted(this.editor)},_handleFullScreen(){this.isMaximum?this.minEditor():this.maxEditor()},maxEditor(){this.isMaximum=!0;const e=this.$el;this.originSize={width:e.clientWidth,height:e.clientHeight},e.classList.add("editor-fullscreen"),this.editor.layout({height:document.body.clientHeight,width:document.body.clientWidth}),document.addEventListener("keyup",n=>{n.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(e,n){const{language:t}=this,i=Q.editor.createModel(n,t),s=Q.editor.createModel(e,t);this.editor.setModel({original:i,modified:s})},_setValue(e){const n=this._getEditor();if(n)return n.setValue(e)},_getValue(){const e=this._getEditor();return e?e.getValue():""},_editorBeforeMount(){return this.editorBeforeMount(Q)||{}},_editorMounted(e){this.editorMounted(e,Q),this.diffEditor?e.onDidUpdateDiff(n=>{const t=this._getValue();this._emitChange(t,n)}):e.onDidChangeModelContent(n=>{const t=this._getValue();this._emitChange(t,n)})},_emitChange(e,n){this.$emit("change",e,n),this.$emit("input",e)}},render(e){const n=this.options.fullScreen;return e("div",{class:"monaco_editor_container",style:this.style},[n?e("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 u$,d$;const dl={};var p$=u(c$,u$,d$,!1,h$,null,null,null);function h$(e){for(let n in dl)this[n]=dl[n]}const ne=function(){return p$.exports}();var m$=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[t("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[e._v("自定义属性:")]),t("div",{staticClass:"el-form-item__content"},[t("MonacoEditor",{attrs:{height:"300","key-index":e.data.prop,options:e.options},model:{value:e.params,callback:function(i){e.params=i},expression:"params"}})],1)]),t("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[t("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[e._v("自定义事件:")]),t("div",{staticClass:"el-form-item__content"},[t("MonacoEditor",{attrs:{height:"300","key-index":e.data.prop,options:e.options},model:{value:e.event,callback:function(i){e.event=i},expression:"event"}})],1)])])},f$=[];const v$={name:"ConfigCustom",components:{MonacoEditor:ne},props:{data:Object},data(){return{params:this.data.params||{},event:this.data.event||{},options:{fullScreen:!0,minimap:{enabled:!1}}}},watch:{"data.params"(e){this.params=e||{}},"data.event"(e){this.event=e||{}},params(e){try{this.data.params=V(`(${e})`)}catch(n){}},event(e){try{this.data.event=V(`(${e})`)}catch(n){}}}},pl={};var _$=u(v$,m$,f$,!1,g$,null,null,null);function g$(e){for(let n in pl)this[n]=pl[n]}const y$=function(){return _$.exports}();var b$=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("ElFormItem",{attrs:{label:"占位内容"}},[t("ElInput",{attrs:{clearable:"",placeholder:"占位内容"},model:{value:e.data.placeholder,callback:function(i){e.$set(e.data,"placeholder",i)},expression:"data.placeholder"}})],1),t("ElFormItem",{attrs:{label:"前缀"}},[t("ElInput",{attrs:{clearable:"",placeholder:"前缀"},model:{value:e.data.prepend,callback:function(i){e.$set(e.data,"prepend",i)},expression:"data.prepend"}})],1),t("ElFormItem",{attrs:{label:"后缀"}},[t("ElInput",{attrs:{clearable:"",placeholder:"后缀"},model:{value:e.data.append,callback:function(i){e.$set(e.data,"append",i)},expression:"data.append"}})],1),t("ElFormItem",{attrs:{label:"最大长度"}},[t("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"最大长度"},model:{value:e.data.maxlength,callback:function(i){e.$set(e.data,"maxlength",i)},expression:"data.maxlength"}})],1),e.data.type!=="password"?t("ElFormItem",{attrs:{label:"显示计数"}},[t("ElSwitch",{model:{value:e.data.showWordLimit,callback:function(i){e.$set(e.data,"showWordLimit",i)},expression:"data.showWordLimit"}})],1):e._e(),e.data.type==="password"?t("ElFormItem",{attrs:{label:"显示密码"}},[t("ElSwitch",{model:{value:e.data.showPassword,callback:function(i){e.$set(e.data,"showPassword",i)},expression:"data.showPassword"}})],1):e._e()],1)},x$=[];const $$={name:"ConfigInput",props:{data:Object}},hl={};var w$=u($$,b$,x$,!1,C$,null,null,null);function C$(e){for(let n in hl)this[n]=hl[n]}const S$=function(){return w$.exports}();var k$=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("ElFormItem",{attrs:{label:"占位内容"}},[t("ElInput",{attrs:{type:"textarea",autosize:"",clearable:"",placeholder:"占位内容"},model:{value:e.data.placeholder,callback:function(i){e.$set(e.data,"placeholder",i)},expression:"data.placeholder"}})],1),t("ElFormItem",{attrs:{label:"最大长度"}},[t("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"最大长度"},model:{value:e.data.maxlength,callback:function(i){e.$set(e.data,"maxlength",i)},expression:"data.maxlength"}})],1),t("ElFormItem",{attrs:{label:"显示计数"}},[t("ElSwitch",{model:{value:e.data.showWordLimit,callback:function(i){e.$set(e.data,"showWordLimit",i)},expression:"data.showWordLimit"}})],1),t("ElFormItem",{attrs:{label:"最小行"}},[t("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"最小行",min:1},model:{value:e.data.minRows,callback:function(i){e.$set(e.data,"minRows",i)},expression:"data.minRows"}})],1),t("ElFormItem",{attrs:{label:"最大行"}},[t("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"最大行",min:2},model:{value:e.data.maxRows,callback:function(i){e.$set(e.data,"maxRows",i)},expression:"data.maxRows"}})],1)],1)},E$=[];const F$={name:"ConfigTextarea",props:{data:Object}},ml={};var I$=u(F$,k$,E$,!1,T$,null,null,null);function T$(e){for(let n in ml)this[n]=ml[n]}const B$=function(){return I$.exports}();var A$=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("ElFormItem",{attrs:{label:"占位内容"}},[t("ElInput",{attrs:{clearable:"",placeholder:"占位内容"},model:{value:e.data.placeholder,callback:function(i){e.$set(e.data,"placeholder",i)},expression:"data.placeholder"}})],1),t("ElFormItem",{attrs:{label:"最小值"}},[t("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"最小值"},model:{value:e.data.minRows,callback:function(i){e.$set(e.data,"minRows",i)},expression:"data.minRows"}})],1),t("ElFormItem",{attrs:{label:"最大值"}},[t("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"最大值"},model:{value:e.data.maxRows,callback:function(i){e.$set(e.data,"maxRows",i)},expression:"data.maxRows"}})],1),t("ElFormItem",{attrs:{label:"步长"}},[t("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"步长"},model:{value:e.data.step,callback:function(i){e.$set(e.data,"step",i)},expression:"data.step"}})],1),t("ElFormItem",{attrs:{label:"数值精度"}},[t("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"数值精度",min:0,max:10},model:{value:e.data.precision,callback:function(i){e.$set(e.data,"precision",i)},expression:"data.precision"}})],1),t("ElFormItem",{attrs:{label:"开启控制器","label-width":"100px"}},[t("ElSwitch",{model:{value:e.data.controls,callback:function(i){e.$set(e.data,"controls",i)},expression:"data.controls"}})],1),e.data.controls?t("ElFormItem",{attrs:{label:"控制器位置","label-width":"100px"}},[t("ElRadio",{attrs:{label:""},model:{value:e.data.controlsPosition,callback:function(i){e.$set(e.data,"controlsPosition",i)},expression:"data.controlsPosition"}},[e._v(" 默认 ")]),t("ElRadio",{attrs:{label:"right"},model:{value:e.data.controlsPosition,callback:function(i){e.$set(e.data,"controlsPosition",i)},expression:"data.controlsPosition"}},[e._v(" 右 ")])],1):e._e()],1)},O$=[];const M$={name:"ConfigNumber",props:{data:Object}},fl={};var P$=u(M$,A$,O$,!1,D$,null,null,null);function D$(e){for(let n in fl)this[n]=fl[n]}const L$=function(){return P$.exports}();var R$=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("ElFormItem",{attrs:{label:"对齐方式"}},[t("ElSelect",{attrs:{placeholder:"对齐方式",clearable:""},model:{value:e.data.children.align,callback:function(i){e.$set(e.data.children,"align",i)},expression:"data.children.align"}},[t("ElOption",{attrs:{label:"居左",value:"left"}}),t("ElOption",{attrs:{label:"居中",value:"center"}}),t("ElOption",{attrs:{label:"居右",value:"right"}})],1)],1),t("ElFormItem",{attrs:{label:"头部对齐方式","label-width":"110px"}},[t("ElSelect",{attrs:{placeholder:"对齐方式",clearable:""},model:{value:e.data.children.headerAlign,callback:function(i){e.$set(e.data.children,"headerAlign",i)},expression:"data.children.headerAlign"}},[t("ElOption",{attrs:{label:"居左",value:"left"}}),t("ElOption",{attrs:{label:"居中",value:"center"}}),t("ElOption",{attrs:{label:"居右",value:"right"}})],1)],1),t("ElFormItem",{attrs:{label:"表单格式"}},[t("ElSelect",{attrs:{placeholder:"表单格式",clearable:""},model:{value:e.data.children.type,callback:function(i){e.$set(e.data.children,"type",i)},expression:"data.children.type"}},[t("ElOption",{attrs:{label:"表格",value:""}}),t("ElOption",{attrs:{label:"表单",value:"form"}})],1)],1),e.data.children.type==="form"?t("ElFormItem",{attrs:{label:"序号"}},[t("ElSwitch",{model:{value:e.data.children.index,callback:function(i){e.$set(e.data.children,"index",i)},expression:"data.children.index"}})],1):e._e(),t("ElFormItem",{attrs:{label:"添加按钮"}},[t("ElSwitch",{model:{value:e.data.children.addBtn,callback:function(i){e.$set(e.data.children,"addBtn",i)},expression:"data.children.addBtn"}})],1),t("ElFormItem",{attrs:{label:"删除按钮"}},[t("ElSwitch",{model:{value:e.data.children.delBtn,callback:function(i){e.$set(e.data.children,"delBtn",i)},expression:"data.children.delBtn"}})],1)],1)},N$=[];const j$={name:"ConfigDynamic",props:{data:Object}},vl={};var z$=u(j$,R$,N$,!1,K$,null,null,null);function K$(e){for(let n in vl)this[n]=vl[n]}const W$=function(){return z$.exports}();var V$=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("ElFormItem",{attrs:{label:"自定义"}},[t("ElButton",{staticClass:"danger",attrs:{type:"text"},on:{click:e.handleDicClear}},[e._v(" 清空 ")]),e._l(e.data.dicData,function(i,s){return t("div",{key:s,staticClass:"dic"},[t("ElInput",{staticStyle:{"margin-right":"5px"},attrs:{size:"mini",placeholder:"自定义文字",clearable:""},model:{value:i.label,callback:function(a){e.$set(i,"label",a)},expression:"item.label"}}),t("ElInput",{attrs:{size:"mini",clearable:"",placeholder:"自定义值"},model:{value:i.value,callback:function(a){e.$set(i,"value",a)},expression:"item.value"}})],1)})],2)],1)},U$=[];const H$={name:"ConfigSwitch",props:{data:Object},methods:{handleDicClear(){this.data.dicData=[{label:"",value:"0"},{label:"",value:"1"}]}}},_l={};var q$=u(H$,V$,U$,!1,G$,"75f24f72",null,null);function G$(e){for(let n in _l)this[n]=_l[n]}const J$=function(){return q$.exports}();var Q$=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("ElFormItem",{attrs:{label:"最大星数"}},[t("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"最大星数"},model:{value:e.data.max,callback:function(i){e.$set(e.data,"max",i)},expression:"data.max"}})],1),t("ElFormItem",{attrs:{label:"是否显示文本","label-width":"110px"}},[t("ElSwitch",{model:{value:e.data.showText,callback:function(i){e.$set(e.data,"showText",i)},expression:"data.showText"}})],1),e.data.showText?t("ElFormItem",{attrs:{label:"自定义文本","label-width":"110px"}},[e._l(e.data.texts,function(i,s){return t("ElTag",{key:s,attrs:{size:"small",closable:""},on:{close:function(a){return e.handleTextClose(i)}}},[e._v(" "+e._s(i)+" ")])}),e.textVisible?t("ElInput",{ref:"textTag",staticClass:"input-new-tag",attrs:{size:"mini",clearable:""},on:{blur:e.handleTextConfirm},nativeOn:{keyup:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.handleTextConfirm.apply(null,arguments)}},model:{value:e.textValue,callback:function(i){e.textValue=i},expression:"textValue"}}):e._e(),!e.textVisible&&e.data.texts.length<e.data.max?t("ElButton",{staticStyle:{"margin-left":"5px"},attrs:{size:"mini",icon:"el-icon-plus",circle:""},on:{click:e.showTextInput}}):e._e()],2):e._e(),t("ElFormItem",{attrs:{label:"自定义颜色","label-width":"110px"}},[e._l(e.data.colors,function(i,s){return t("ElTag",{key:s,style:{color:i},attrs:{closable:"",size:"small"},on:{close:function(a){return e.handleColorClose(i)}}},[e._v(" "+e._s(i)+" ")])}),t("ElColorPicker",{staticClass:"color-picker",attrs:{size:"mini"},on:{change:e.handleColorConfirm},model:{value:e.colorValue,callback:function(i){e.colorValue=i},expression:"colorValue"}})],2)],1)},Y$=[];const X$={name:"ConfigRate",props:{data:Object},data(){return{textVisible:!1,textValue:"",colorValue:""}},methods:{handleTextClose(e){this.data.texts.splice(this.data.texts.indexOf(e),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(e){this.data.colors.splice(this.data.colors.indexOf(e),1)},handleColorConfirm(){this.colorValue&&this.data.colors.push(this.colorValue),this.colorValue=""}}},gl={};var Z$=u(X$,Q$,Y$,!1,ew,"1a495d65",null,null);function ew(e){for(let n in gl)this[n]=gl[n]}const tw=function(){return Z$.exports}();var nw=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("ElFormItem",{attrs:{label:"最小值"}},[t("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"最小值",max:e.data.max-1,min:0},model:{value:e.data.min,callback:function(i){e.$set(e.data,"min",i)},expression:"data.min"}})],1),t("ElFormItem",{attrs:{label:"最大值"}},[t("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"最大值",min:e.data.min+1},model:{value:e.data.max,callback:function(i){e.$set(e.data,"max",i)},expression:"data.max"}})],1),t("ElFormItem",{attrs:{label:"步长"}},[t("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"步长",min:1,max:e.data.max-e.data.min},model:{value:e.data.step,callback:function(i){e.$set(e.data,"step",i)},expression:"data.step"}})],1),t("ElFormItem",{attrs:{label:"显示间隔点","label-width":"100px"}},[t("ElSwitch",{model:{value:e.data.showStops,callback:function(i){e.$set(e.data,"showStops",i)},expression:"data.showStops"}})],1),t("ElFormItem",{attrs:{label:"显示输入框","label-width":"100px"}},[t("ElSwitch",{model:{value:e.data.showInput,callback:function(i){e.$set(e.data,"showInput",i)},expression:"data.showInput"}})],1),t("ElFormItem",{attrs:{label:"范围"}},[t("ElSwitch",{model:{value:e.data.range,callback:function(i){e.$set(e.data,"range",i)},expression:"data.range"}})],1)],1)},iw=[];const sw={name:"ConfigSlider",props:{data:Object}},yl={};var aw=u(sw,nw,iw,!1,rw,null,null,null);function rw(e){for(let n in yl)this[n]=yl[n]}const lw=function(){return aw.exports}();var ow=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("ElFormItem",{attrs:{label:"占位内容"}},[t("ElInput",{attrs:{clearable:"",placeholder:"占位内容"},model:{value:e.data.placeholder,callback:function(i){e.$set(e.data,"placeholder",i)},expression:"data.placeholder"}})],1)],1)},cw=[];const uw={name:"ConfigColor",props:{data:Object}},bl={};var dw=u(uw,ow,cw,!1,pw,null,null,null);function pw(e){for(let n in bl)this[n]=bl[n]}const hw=function(){return dw.exports}();var mw=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[e.data.type==="select"?t("ElFormItem",{attrs:{label:"占位内容"}},[t("ElInput",{attrs:{clearable:"",placeholder:"占位内容"},model:{value:e.data.placeholder,callback:function(i){e.$set(e.data,"placeholder",i)},expression:"data.placeholder"}})],1):e._e(),t("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[t("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[e._v("字典配置:")]),t("div",{staticClass:"el-form-item__content"},[t("ElTabs",{attrs:{stretch:""},on:{"tab-click":e.handleTabClick},model:{value:e.data.dicOption,callback:function(i){e.$set(e.data,"dicOption",i)},expression:"data.dicOption"}},[t("ElTabPane",{attrs:{label:"静态数据",name:"static"}},[t("Draggable",{attrs:{tag:"ul",list:e.data.dicData,group:{name:"dic"},"ghost-class":"ghost",handle:".drag-item"}},e._l(e.data.dicData,function(i,s){return t("li",{key:s},[t("i",{staticClass:"drag-item el-icon-s-operation",staticStyle:{margin:"0 5px","font-size":"16px",cursor:"move"}}),t("ElInput",{staticStyle:{"margin-right":"5px"},attrs:{size:"mini",clearable:"",placeholder:"label"},model:{value:i.label,callback:function(a){e.$set(i,"label",a)},expression:"item.label"}}),t("ElInput",{style:{"margin-right":e.data.type==="select"?"5px":"0"},attrs:{size:"mini",clearable:"",placeholder:"value"},model:{value:i.value,callback:function(a){e.$set(i,"value",a)},expression:"item.value"}}),e.data.type==="select"?t("ElInput",{attrs:{size:"mini",clearable:"",placeholder:"描述"},model:{value:i.desc,callback:function(a){e.$set(i,"desc",a)},expression:"item.desc"}}):e._e(),t("ElButton",{staticStyle:{"margin-left":"5px",padding:"4px"},attrs:{circle:"",plain:"",type:"danger",size:"mini",icon:"el-icon-minus"},on:{click:function(a){return e.handleRemoveFields(s)}}})],1)}),0),t("div",{staticStyle:{"margin-left":"22px"}},[t("ElButton",{attrs:{type:"text"},on:{click:e.handleAddFields}},[e._v(" 添加列 ")])],1)],1),t("ElTabPane",{attrs:{label:"远端数据",name:"remote"}},[e._v(" 网址 "),t("ElInput",{attrs:{size:"small",placeholder:"远端数据字典网址"},model:{value:e.data.dicUrl,callback:function(i){e.$set(e.data,"dicUrl",i)},expression:"data.dicUrl"}}),e._v(" 远程搜索 "),t("ElSwitch",{model:{value:e.data.remote,callback:function(i){e.$set(e.data,"remote",i)},expression:"data.remote"}}),t("br"),e._v(" 请求方法 "),t("ElSelect",{staticStyle:{width:"100%"},attrs:{placeholder:"请求方法",size:"small"},model:{value:e.data.dicMethod,callback:function(i){e.$set(e.data,"dicMethod",i)},expression:"data.dicMethod"}},[t("ElOption",{attrs:{label:"POST",value:"post"}}),t("ElOption",{attrs:{label:"GET",value:"get"}})],1),e.data.dicMethod==="post"?t("p",[e._v(" 请求参数 "),t("FyDynamic",{attrs:{children:e.option},model:{value:e.data.dicQueryConfig,callback:function(i){e.$set(e.data,"dicQueryConfig",i)},expression:"data.dicQueryConfig"}})],1):e._e(),e.data.dicUrl?t("p",[e._v(" 返回结构 "),t("MonacoEditor",{attrs:{height:"80","key-index":`dict-formatter-${e.data.prop}`,options:e.options},model:{value:e.dicFormatter,callback:function(i){e.dicFormatter=i},expression:"dicFormatter"}})],1):e._e()],1)],1)],1)]),t("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[t("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[e._v("字典key配置:")]),t("div",{staticClass:"el-form-item__content"},[t("ul",e._l(e.data.props,function(i,s){return t("li",{key:s},[t("span",{staticStyle:{width:"50px"}},[e._v(e._s(s))]),t("ElInput",{attrs:{size:"mini",clearable:"",placeholder:"key配置"},model:{value:e.data.props[s],callback:function(a){e.$set(e.data.props,s,a)},expression:"data.props[key]"}})],1)}),0)])]),e.data.dicOption==="remote"?t("ElFormItem",{attrs:{label:"重新请求字典(crud)","label-width":"150px"}},[t("ElSwitch",{model:{value:e.data.dicFlag,callback:function(i){e.$set(e.data,"dicFlag",i)},expression:"data.dicFlag"}})],1):e._e(),e.data.type==="select"?[t("ElFormItem",{attrs:{label:"是否多选"}},[t("ElSwitch",{model:{value:e.data.multiple,callback:function(i){e.$set(e.data,"multiple",i)},expression:"data.multiple"}})],1),e.data.multiple?t("ElFormItem",{attrs:{label:"是否可拖拽","label-width":"110px"},scopedSlots:e._u([{key:"label",fn:function(){return[t("ElLink",{attrs:{underline:!1,href:"https://avuejs.com/form/form-select.html#%E6%8B%96%E6%8B%BD",target:"_blank"}},[e._v(" 是否可拖拽 "),t("i",{staticClass:"el-icon-question"})])]},proxy:!0}],null,!1,2120444940)},[t("ElSwitch",{model:{value:e.data.drag,callback:function(i){e.$set(e.data,"drag",i)},expression:"data.drag"}})],1):e._e(),e.data.multiple?t("ElFormItem",{attrs:{label:"多选数量限制","label-width":"110px"}},[t("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"多选限制",min:0,max:e.data.dicData.length},model:{value:e.data.limit,callback:function(i){e.$set(e.data,"limit",i)},expression:"data.limit"}})],1):e._e(),t("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[t("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[e._v("级联配置:")]),t("div",{staticClass:"el-form-item__content"},[t("Draggable",{attrs:{tag:"ul",list:e.data.cascaderItem||e.data.cascader,group:{name:"cascaderItem"},"ghost-class":"ghost",handle:".drag-item"}},e._l(e.data.cascaderItem||e.data.cascader,function(i,s){return t("li",{key:s},[t("i",{staticClass:"drag-item el-icon-s-operation",staticStyle:{margin:"0 5px","font-size":"16px",cursor:"move"}}),t("ElInput",{attrs:{size:"mini",clearable:"",placeholder:"级联属性值"},model:{value:e.data.cascader[s],callback:function(a){e.$set(e.data.cascader,s,a)},expression:"data.cascader[index]"}}),t("ElButton",{staticStyle:{"margin-left":"5px",padding:"4px"},attrs:{circle:"",plain:"",type:"danger",size:"mini",icon:"el-icon-minus"},on:{click:function(a){return e.handleRemoveCascaderItemFields(s)}}})],1)}),0),t("div",{staticStyle:{"margin-left":"22px"}},[t("ElButton",{attrs:{type:"text"},on:{click:e.handleAddCascaderItemFields}},[e._v(" 添加列 ")])],1)],1)]),(e.data.cascaderItem||e.data.cascader)&&(e.data.cascaderItem||e.data.cascader).length>0?t("ElFormItem",{attrs:{label:"级联默认选中","label-width":"110px"}},[t("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"级联默认选中",min:0},model:{value:e.data.cascaderIndex,callback:function(i){e.$set(e.data,"cascaderIndex",i)},expression:"data.cascaderIndex"}})],1):e._e(),t("ElFormItem",{attrs:{label:"是否可清空","label-width":"110px"}},[t("ElSwitch",{model:{value:e.data.clearable,callback:function(i){e.$set(e.data,"clearable",i)},expression:"data.clearable"}})],1),t("ElFormItem",{attrs:{label:"是否可搜索","label-width":"110px"}},[t("ElSwitch",{model:{value:e.data.filterable,callback:function(i){e.$set(e.data,"filterable",i)},expression:"data.filterable"}})],1)]:e._e(),["radio","checkbox"].includes(e.data.type)?[e.data.button?e._e():t("ElFormItem",{attrs:{label:"边框"}},[t("ElSwitch",{model:{value:e.data.border,callback:function(i){e.$set(e.data,"border",i)},expression:"data.border"}})],1),e.data.border?e._e():t("ElFormItem",{attrs:{label:"按钮"}},[t("ElSwitch",{model:{value:e.data.button,callback:function(i){e.$set(e.data,"button",i)},expression:"data.button"}})],1)]:e._e(),e.data.border||e.data.button?t("ElFormItem",{attrs:{label:"尺寸"}},[t("ElRadioGroup",{attrs:{size:"mini"},model:{value:e.data.size,callback:function(i){e.$set(e.data,"size",i)},expression:"data.size"}},[t("ElRadioButton",{attrs:{label:"medium"}},[e._v(" 正常 ")]),t("ElRadioButton",{attrs:{label:"small"}},[e._v(" 小 ")]),t("ElRadioButton",{attrs:{label:"mini"}},[e._v(" 超小 ")])],1)],1):e._e()],2)},fw=[];const vw={name:"ConfigSelect",components:{Draggable:pe,MonacoEditor:ne},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:e}=this.data;this.dicFormatter=e?`${e}`:`(res) => {\r
|
|
18
18
|
return res.data\r
|
|
19
|
-
}`},immediate:!0},dicFormatter:{handler(
|
|
19
|
+
}`},immediate:!0},dicFormatter:{handler(e){try{this.data.dicFormatter=V(e)}catch(n){}}}},methods:{handleRemoveFields(e){this.data.dicData.splice(e,1)},handleAddFields(){const e=Math.ceil(Math.random()*99999);this.data.dicData.push({label:`字段${e}`,value:`col_${e}`})},handleRemoveCascaderItemFields(e){this.data.cascader.splice(e,1)},handleAddCascaderItemFields(){this.data.cascader||(this.$set(this.data,"cascader",[]),delete this.data.cascaderItem),this.data.cascader.push("")},handleTabClick({name:e}){e==="remote"&&!this.data.dicQueryConfig&&(this.data.dicQueryConfig=[])}}},xl={};var _w=u(vw,mw,fw,!1,gw,null,null,null);function gw(e){for(let n in xl)this[n]=xl[n]}const yw=function(){return _w.exports}();var bw=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("ElFormItem",{attrs:{label:"占位内容"}},[t("ElInput",{attrs:{clearable:"",placeholder:"占位内容"},model:{value:e.data.placeholder,callback:function(i){e.$set(e.data,"placeholder",i)},expression:"data.placeholder"}})],1),t("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[t("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[e._v("字典配置:")]),t("div",{staticClass:"el-form-item__content"},[t("ElTabs",{attrs:{stretch:""},on:{"tab-click":e.handleTabClick},model:{value:e.data.dicOption,callback:function(i){e.$set(e.data,"dicOption",i)},expression:"data.dicOption"}},[t("ElTabPane",{attrs:{label:"静态数据",name:"static"}},[t("ElTree",{ref:"tree",attrs:{data:e.data.dicData,"default-expand-all":"",draggable:"","node-key":"value","expand-on-click-node":!1},scopedSlots:e._u([{key:"default",fn:function(i){var s=i.node,a=i.data;return[t("span",{staticClass:"custom-tree-node"},[t("span",[e._v(e._s(s.label))]),t("span",[t("ElButton",{attrs:{type:"text",size:"mini",icon:"el-icon-plus"},on:{click:function(r){return e.handleNodeAdd(a)}}}),t("ElButton",{staticClass:"danger",attrs:{type:"text",size:"mini",icon:"el-icon-delete"},on:{click:function(r){return e.handleNodeRemove(s,a)}}})],1)])]}}])}),t("div",{staticStyle:{"margin-left":"22px"}},[t("ElButton",{attrs:{type:"text"},on:{click:e.handleParentNodeAdd}},[e._v(" 添加父级 ")])],1)],1),t("ElTabPane",{attrs:{label:"远端数据",name:"remote"}},[e._v(" 网址 "),t("ElInput",{attrs:{size:"small",placeholder:"远端数据字典网址"},model:{value:e.data.dicUrl,callback:function(i){e.$set(e.data,"dicUrl",i)},expression:"data.dicUrl"}}),e._v(" 远程搜索 "),t("ElSwitch",{model:{value:e.data.remote,callback:function(i){e.$set(e.data,"remote",i)},expression:"data.remote"}}),t("br"),e._v(" 请求方法 "),t("ElSelect",{staticStyle:{width:"100%"},attrs:{size:"small",placeholder:"请求方法"},model:{value:e.data.dicMethod,callback:function(i){e.$set(e.data,"dicMethod",i)},expression:"data.dicMethod"}},[t("ElOption",{attrs:{label:"POST",value:"post"}}),t("ElOption",{attrs:{label:"GET",value:"get"}})],1),e.data.dicMethod==="post"?t("p",[e._v(" 请求参数 "),t("FyDynamic",{attrs:{children:e.option},model:{value:e.data.dicQueryConfig,callback:function(i){e.$set(e.data,"dicQueryConfig",i)},expression:"data.dicQueryConfig"}})],1):e._e(),e.data.dicUrl?t("p",[e._v(" 返回结构 "),t("MonacoEditor",{attrs:{height:"80","key-index":`dict-formatter-${e.data.prop}`,options:e.options},model:{value:e.dicFormatter,callback:function(i){e.dicFormatter=i},expression:"dicFormatter"}})],1):e._e()],1)],1)],1)]),t("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[t("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[e._v("字典key配置:")]),t("div",{staticClass:"el-form-item__content"},[t("ul",e._l(e.data.props,function(i,s){return t("li",{key:s},[t("span",{staticStyle:{width:"50px"}},[e._v(e._s(s))]),t("ElInput",{attrs:{size:"mini",placeholder:"key配置"},model:{value:e.data.props[s],callback:function(a){e.$set(e.data.props,s,a)},expression:"data.props[key]"}})],1)}),0)])]),e.data.dicOption==="remote"?t("ElFormItem",{attrs:{label:"重新请求字典(crud)"}},[t("ElSwitch",{model:{value:e.data.dicFlag,callback:function(i){e.$set(e.data,"dicFlag",i)},expression:"data.dicFlag"}})],1):e._e(),t("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[t("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[e._v("级联配置:")]),t("div",{staticClass:"el-form-item__content"},[t("Draggable",{attrs:{tag:"ul",list:e.data.cascaderItem||e.data.cascader,group:{name:"cascaderItem"},"ghost-class":"ghost",handle:".drag-item"}},e._l(e.data.cascaderItem||e.data.cascader,function(i,s){return t("li",{key:s},[t("i",{staticClass:"drag-item el-icon-s-operation",staticStyle:{margin:"0 5px","font-size":"16px",cursor:"move"}}),t("ElInput",{attrs:{size:"mini",clearable:"",placeholder:"级联属性值"},model:{value:e.data.cascader[s],callback:function(a){e.$set(e.data.cascader,s,a)},expression:"data.cascader[index]"}}),t("ElButton",{staticStyle:{"margin-left":"5px",padding:"4px"},attrs:{circle:"",plain:"",type:"danger",size:"mini",icon:"el-icon-minus"},on:{click:function(a){return e.handleRemoveCascaderItemFields(s)}}})],1)}),0),t("div",{staticStyle:{"margin-left":"22px"}},[t("ElButton",{attrs:{type:"text"},on:{click:e.handleAddCascaderItemFields}},[e._v(" 添加列 ")])],1)],1)]),e.data.type==="tree"?[t("ElFormItem",{attrs:{label:"当有子级时,是否可选择父级","label-width":"200px"}},[t("ElSwitch",{model:{value:e.data.parent,callback:function(i){e.$set(e.data,"parent",i)},expression:"data.parent"}})],1)]:e._e(),e.data.type==="cascader"?[t("ElFormItem",{attrs:{label:"选项分隔符","label-width":"100px"}},[t("ElInput",{attrs:{clearable:"",placeholder:"选项分隔符"},model:{value:e.data.separator,callback:function(i){e.$set(e.data,"separator",i)},expression:"data.separator"}})],1),t("ElFormItem",{attrs:{label:"是否显示选中值的完整路径","label-width":"200px"}},[t("ElSwitch",{model:{value:e.data.showAllLevels,callback:function(i){e.$set(e.data,"showAllLevels",i)},expression:"data.showAllLevels"}})],1),t("ElFormItem",{attrs:{label:"是否可搜索","label-width":"100px"}},[t("ElSwitch",{model:{value:e.data.filterable,callback:function(i){e.$set(e.data,"filterable",i)},expression:"data.filterable"}})],1)]:e._e(),t("ElFormItem",{attrs:{label:"是否多选"}},[t("ElSwitch",{model:{value:e.data.multiple,callback:function(i){e.$set(e.data,"multiple",i)},expression:"data.multiple"}})],1),e.data.type==="tree"&&e.data.multiple?t("ElFormItem",{attrs:{label:"勾选时,父子不关联","label-width":"160px"}},[t("ElSwitch",{model:{value:e.data.checkStrictly,callback:function(i){e.$set(e.data,"checkStrictly",i)},expression:"data.checkStrictly"}})],1):e._e(),t("ElementDialog",{attrs:{visible:e.dialogVisible,rules:e.dialogRules,"before-close":e.beforeClose},on:{"update:visible":function(i){e.dialogVisible=i}},scopedSlots:e._u([{key:"footer",fn:function(){return[t("ElButton",{on:{click:function(i){e.dialogVisible=!1}}},[e._v(" 取 消 ")]),e.dialogStatus==="add"?t("ElButton",{attrs:{type:"primary"},on:{click:e.handleDialogAdd}},[e._v(" 确 定 ")]):e._e()]},proxy:!0}])},[t("ElForm",{ref:"dialogForm",attrs:{model:e.dialogForm,"label-width":"80px"}},[t("ElFormItem",{attrs:{label:"label"}},[t("ElInput",{attrs:{placeholder:"label"},model:{value:e.dialogForm.label,callback:function(i){e.$set(e.dialogForm,"label",i)},expression:"dialogForm.label"}})],1),t("ElFormItem",{attrs:{label:"value"}},[t("ElInput",{attrs:{placeholder:"value",type:e.dialogInputType},scopedSlots:e._u([{key:"append",fn:function(){return[t("ElSelect",{staticStyle:{width:"100px"},attrs:{placeholder:"数据类型"},model:{value:e.dialogInputType,callback:function(i){e.dialogInputType=i},expression:"dialogInputType"}},[t("ElOption",{attrs:{label:"String",value:"text"}}),t("ElOption",{attrs:{label:"Number",value:"number"}})],1)]},proxy:!0}]),model:{value:e.dialogForm.value,callback:function(i){e.$set(e.dialogForm,"value",i)},expression:"dialogForm.value"}})],1)],1)],1)],2)},xw=[];const $w={name:"ConfigTree",components:{MonacoEditor:ne,Draggable:pe},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:e}=this.data;this.dicFormatter=e?`${e}`:`(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$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
|
|
21
|
+
}`},immediate:!0},dicFormatter:{handler(e){try{this.data.dicFormatter=V(e)}catch(n){}}}},methods:{handleRemoveCascaderItemFields(e){this.data.cascader.splice(e,1)},handleAddCascaderItemFields(){this.data.cascader||(this.$set(this.data,"cascader",[]),delete this.data.cascaderItem),this.data.cascader.push("")},handleTabClick({name:e}){e==="remote"&&!this.data.dicQueryConfig&&(this.data.dicQueryConfig=[])},handleParentNodeAdd(){this.selectData=void 0,this.dialogStatus="add",this.dialogVisible=!0},handleNodeAdd(e){this.selectData=e,this.dialogStatus="add",this.dialogVisible=!0},handleNodeRemove(e,n){const t=e.parent,i=t.data.children||t.data,s=i.findIndex(a=>a.id===n.id);i.splice(s,1)},handleDialogAdd(){this.$refs.dialogForm.validate(e=>{if(e){const{label:n,value:t}=this.dialogForm;if(this.$refs.tree.getNode(t))this.$message.error("value重复");else{const s=this.selectData,a={label:n,value:this.dialogInputType==="number"?Number(t):t};s?(s.children||this.$set(s,"children",[]),s.children.push(a)):this.$set(this.data.dicData,this.data.dicData.length,a),this.beforeClose()}}})},beforeClose(){this.$refs.dialogForm.clearValidate(),this.dialogForm={},this.dialogVisible=!1}}},$l={};var ww=u($w,bw,xw,!1,Cw,"1caa90f4",null,null);function Cw(e){for(let n in $l)this[n]=$l[n]}const Sw=function(){return ww.exports}();var kw=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[e.data.type.indexOf("range")!==-1?[t("ElFormItem",{attrs:{label:"开始占位内容","label-width":"110px"}},[t("ElInput",{attrs:{clearable:"",placeholder:"开始占位内容"},model:{value:e.data.startPlaceholder,callback:function(i){e.$set(e.data,"startPlaceholder",i)},expression:"data.startPlaceholder"}})],1),t("ElFormItem",{attrs:{label:"结束占位内容","label-width":"110px"}},[t("ElInput",{attrs:{clearable:"",placeholder:"结束占位内容"},model:{value:e.data.endPlaceholder,callback:function(i){e.$set(e.data,"endPlaceholder",i)},expression:"data.endPlaceholder"}})],1)]:t("ElFormItem",{attrs:{label:"占位内容"}},[t("ElInput",{attrs:{clearable:"",placeholder:"占位内容"},model:{value:e.data.placeholder,callback:function(i){e.$set(e.data,"placeholder",i)},expression:"data.placeholder"}})],1),t("ElFormItem",{attrs:{label:"显示格式化","label-width":"100px"}},[t("ElInput",{attrs:{clearable:"",placeholder:"显示格式化"},model:{value:e.data.format,callback:function(i){e.$set(e.data,"format",i)},expression:"data.format"}})],1),t("ElFormItem",{attrs:{label:"值格式化"}},[t("ElInput",{attrs:{clearable:"",placeholder:"值格式化"},model:{value:e.data.valueFormat,callback:function(i){e.$set(e.data,"valueFormat",i)},expression:"data.valueFormat"}})],1),["timerange","daterange","datetimerange"].includes(e.data.type)?t("ElFormItem",{attrs:{label:"取消范围联动","label-width":"110px"}},[t("ElSwitch",{model:{value:e.data.unlinkPanels,callback:function(i){e.$set(e.data,"unlinkPanels",i)},expression:"data.unlinkPanels"}})],1):e._e()],2)},Ew=[];const Fw={name:"ConfigDate",props:{data:Object}},wl={};var Iw=u(Fw,kw,Ew,!1,Tw,null,null,null);function Tw(e){for(let n in wl)this[n]=wl[n]}const Bw=function(){return Iw.exports}();var Aw=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[e.data.oss?e._e():t("ElFormItem",{attrs:{label:"上传地址"}},[t("ElInput",{attrs:{clearable:"",placeholder:"上传地址"},model:{value:e.data.action,callback:function(i){e.$set(e.data,"action",i)},expression:"data.action"}})],1),e.data.oss?e._e():t("ElFormItem",{attrs:{label:"接受文件类型","label-width":"110px"}},[t("ElInput",{attrs:{clearable:"",placeholder:"接受文件类型,如:image/png,image/jpg"},model:{value:e.data.accept,callback:function(i){e.$set(e.data,"accept",i)},expression:"data.accept"}})],1),t("ElFormItem",{attrs:{label:"OSS"},scopedSlots:e._u([{key:"label",fn:function(){return[t("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"}},[e._v(" OSS "),t("i",{staticClass:"el-icon-question"})])]},proxy:!0}])},[t("ElSelect",{staticStyle:{width:"100%"},attrs:{placeholder:"oss不写则为普通上传",clearable:""},model:{value:e.data.oss,callback:function(i){e.$set(e.data,"oss",i)},expression:"data.oss"}},[t("ElOption",{attrs:{label:"阿里",value:"ali"}}),t("ElOption",{attrs:{label:"七牛",value:"qiniu"}})],1)],1),t("ElFormItem",{attrs:{label:"拖拽上传","label-width":"110px"}},[t("ElSwitch",{model:{value:e.data.dragFile,callback:function(i){e.$set(e.data,"dragFile",i)},expression:"data.dragFile"}})],1),e.data.dragFile?e._e():t("ElFormItem",{attrs:{label:"文件列表类型","label-width":"110px"}},[t("ElSelect",{attrs:{placeholder:"文件列表类型",clearable:""},model:{value:e.data.listType,callback:function(i){e.$set(e.data,"listType",i)},expression:"data.listType"}},[t("ElOption",{attrs:{label:"附件",value:"text"}}),t("ElOption",{attrs:{label:"照片墙",value:"picture-card"}}),t("ElOption",{attrs:{label:"头像",value:"picture-img"}}),t("ElOption",{attrs:{label:"缩略图",value:"picture"}})],1)],1),t("ElFormItem",{attrs:{label:"拖拽排序","label-width":"110px"}},[t("ElSwitch",{model:{value:e.data.drag,callback:function(i){e.$set(e.data,"drag",i)},expression:"data.drag"}})],1),t("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[t("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[e._v("参数设置:")]),t("div",{staticClass:"el-form-item__content"},[e._v(" 请求头 "),t("FyDynamic",{attrs:{children:e.option},model:{value:e.data.headersConfig,callback:function(i){e.$set(e.data,"headersConfig",i)},expression:"data.headersConfig"}}),e._v(" 请求体 "),t("FyDynamic",{attrs:{children:e.option},model:{value:e.data.dataConfig,callback:function(i){e.$set(e.data,"dataConfig",i)},expression:"data.dataConfig"}})],1)]),t("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[t("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[t("ElLink",{attrs:{underline:!1,href:"https://avuejs.com/form/form-upload.html",target:"_blank"}},[e._v("上传参数设置 "),t("i",{staticClass:"el-icon-question"})])],1),t("div",{staticClass:"el-form-item__content"},[e._v(" 上传成功返回结构体的图片地址 "),t("ElInput",{attrs:{size:"small",placeholder:"上传成功返回结构体的图片地址"},model:{value:e.data.propsHttp.url,callback:function(i){e.$set(e.data.propsHttp,"url",i)},expression:"data.propsHttp.url"}}),e._v(" 上传成功返回结构体的图片的姓名 "),t("ElInput",{attrs:{size:"small",placeholder:"上传成功返回结构体的图片的姓名"},model:{value:e.data.propsHttp.name,callback:function(i){e.$set(e.data.propsHttp,"name",i)},expression:"data.propsHttp.name"}}),e._v(" 返回结构体的层次 "),t("ElInput",{attrs:{size:"small",placeholder:"返回结构体的层次"},model:{value:e.data.propsHttp.res,callback:function(i){e.$set(e.data.propsHttp,"res",i)},expression:"data.propsHttp.res"}}),e._v(" 文件名称 "),t("ElInput",{attrs:{size:"small",placeholder:"文件名称,默认file"},model:{value:e.data.propsHttp.fileName,callback:function(i){e.$set(e.data.propsHttp,"fileName",i)},expression:"data.propsHttp.fileName"}})],1)]),t("ElFormItem",{attrs:{label:"是否显示已上传文件列表","label-width":"180px"}},[t("ElSwitch",{model:{value:e.data.showFileList,callback:function(i){e.$set(e.data,"showFileList",i)},expression:"data.showFileList"}})],1),t("ElFormItem",{attrs:{label:"文件大小"}},[t("ElInputNumber",{staticStyle:{width:"100%"},attrs:{"controls-position":"right",placeholder:"文件大小限制(字节)",min:0},model:{value:e.data.fileSize,callback:function(i){e.$set(e.data,"fileSize",i)},expression:"data.fileSize"}})],1),t("ElFormItem",{attrs:{label:"上传限制提示","label-width":"110px"}},[t("ElInput",{attrs:{clearable:"",placeholder:"上传限制提示"},model:{value:e.data.tip,callback:function(i){e.$set(e.data,"tip",i)},expression:"data.tip"}})],1),t("ElFormItem",{attrs:{label:"上传中提示","label-width":"110px"}},[t("ElInput",{attrs:{clearable:"",placeholder:"上传中提示"},model:{value:e.data.loadText,callback:function(i){e.$set(e.data,"loadText",i)},expression:"data.loadText"}})],1),t("ElFormItem",{attrs:{label:"是否多文件上传","label-width":"130px"}},[t("ElSwitch",{model:{value:e.data.multiple,callback:function(i){e.$set(e.data,"multiple",i)},expression:"data.multiple"}})],1),e.data.multiple?t("ElFormItem",{attrs:{label:"多文件数量限制","label-width":"130px"}},[t("ElInputNumber",{staticStyle:{width:"100%"},attrs:{"controls-position":"right",placeholder:"多文件上传数量限制",min:1},model:{value:e.data.limit,callback:function(i){e.$set(e.data,"limit",i)},expression:"data.limit"}})],1):e._e(),t("ElFormItem",{attrs:{label:"水印配置,开启后只能上传图片","label-width":"230px"}},[t("ElSwitch",{model:{value:e.data.showCanvas,callback:function(i){e.$set(e.data,"showCanvas",i)},expression:"data.showCanvas"}})],1),e.data.canvasOption?t("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[t("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[e._v("水印设置:")]),t("div",{staticClass:"el-form-item__content"},[e._v(" 水印文字 "),t("ElInput",{attrs:{size:"small",clearable:"",placeholder:"水印文字"},model:{value:e.data.canvasOption.text,callback:function(i){e.$set(e.data.canvasOption,"text",i)},expression:"data.canvasOption.text"}}),e._v(" 字体类型 "),t("ElInput",{attrs:{size:"small",clearable:"",placeholder:"字体类型"},model:{value:e.data.canvasOption.fontFamily,callback:function(i){e.$set(e.data.canvasOption,"fontFamily",i)},expression:"data.canvasOption.fontFamily"}}),e._v(" 字体颜色 "),t("FyInputColor",{attrs:{size:"small",placeholder:"字体颜色"},model:{value:e.data.canvasOption.color,callback:function(i){e.$set(e.data.canvasOption,"color",i)},expression:"data.canvasOption.color"}}),e._v(" 字体大小 "),t("ElInputNumber",{attrs:{size:"small","controls-position":"right",placeholder:"字体大小"},model:{value:e.data.canvasOption.fontSize,callback:function(i){e.$set(e.data.canvasOption,"fontSize",i)},expression:"data.canvasOption.fontSize"}}),e._v(" 文字的透明度 "),t("ElInputNumber",{attrs:{size:"small","controls-position":"right",placeholder:"文字的透明度",step:10,min:10,max:100},model:{value:e.data.canvasOption.opacity,callback:function(i){e.$set(e.data.canvasOption,"opacity",i)},expression:"data.canvasOption.opacity"}}),e._v(" 文字距离图片底部的距离"),t("br"),t("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"文字距离图片底部的距离",size:"small"},model:{value:e.data.canvasOption.bottom,callback:function(i){e.$set(e.data.canvasOption,"bottom",i)},expression:"data.canvasOption.bottom"}}),e._v(" 文字距离图片右边的距离"),t("br"),t("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"文字距离图片右边的距离",size:"small"},model:{value:e.data.canvasOption.right,callback:function(i){e.$set(e.data.canvasOption,"right",i)},expression:"data.canvasOption.right"}}),e._v(" 压缩图片比率"),t("br"),t("ElInputNumber",{attrs:{"controls-position":"right",placeholder:"压缩图片比率",step:.1,min:0,max:1,size:"small"},model:{value:e.data.canvasOption.ratio,callback:function(i){e.$set(e.data.canvasOption,"ratio",i)},expression:"data.canvasOption.ratio"}})],1)]):e._e()],1)},Ow=[];const Mw={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(e){e&&this.$delete(this.data,"listType")},"data.showCanvas"(e){e?(this.$set(this.data,"canvasOption",{}),this.$set(this.data,"accept","image/*")):this.$delete(this.data,"canvasOption")}}},Cl={};var Pw=u(Mw,Aw,Ow,!1,Dw,null,null,null);function Dw(e){for(let n in Cl)this[n]=Cl[n]}const Lw=function(){return Pw.exports}();var Rw=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("ElFormItem",{attrs:{label:"图片上传地址","label-width":"110px"}},[t("ElInput",{attrs:{clearable:"",placeholder:"图片上传地址"},model:{value:e.data.options.action,callback:function(i){e.$set(e.data.options,"action",i)},expression:"data.options.action"}})],1),t("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[t("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[t("ElLink",{attrs:{underline:!1,href:"https://avuejs.com/plugins/ueditor-plugins.html",target:"_blank"}},[e._v("参数设置 "),t("i",{staticClass:"el-icon-question"})])],1),t("div",{staticClass:"el-form-item__content"},[e._v(" 返回的数据结构层次 "),t("ElInput",{attrs:{size:"small",placeholder:"返回的数据结构层次"},model:{value:e.data.options.props.res,callback:function(i){e.$set(e.data.options.props,"res",i)},expression:"data.options.props.res"}}),e._v(" 返回结构体图片地址字段 "),t("ElInput",{attrs:{size:"small",placeholder:"返回结构体图片地址字段"},model:{value:e.data.options.props.url,callback:function(i){e.$set(e.data.options.props,"url",i)},expression:"data.options.props.url"}})],1)]),t("ElFormItem",{attrs:{label:"OSS"}},[t("ElSelect",{attrs:{placeholder:"oss不写则为普通上传",clearable:""},model:{value:e.data.options.oss,callback:function(i){e.$set(e.data.options,"oss",i)},expression:"data.options.oss"}},[t("ElOption",{attrs:{label:"阿里",value:"ali"}}),t("ElOption",{attrs:{label:"七牛",value:"qiniu"}})],1)],1),e.data.options.oss=="qiniu"?[t("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[t("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[e._v("七牛oss配置:")]),t("div",{staticClass:"el-form-item__content"},[e._v(" AK: "),t("ElInput",{attrs:{size:"small",clearable:"",placeholder:"七牛云的密钥(AK)"},model:{value:e.data.options.qiniu.AK,callback:function(i){e.$set(e.data.options.qiniu,"AK",i)},expression:"data.options.qiniu.AK"}}),e._v(" SK: "),t("ElInput",{attrs:{size:"small",clearable:"",placeholder:"七牛云的密钥(SK)"},model:{value:e.data.options.qiniu.SK,callback:function(i){e.$set(e.data.options.qiniu,"SK",i)},expression:"data.options.qiniu.SK"}}),e._v(" scope: "),t("ElInput",{attrs:{size:"small",clearable:"",placeholder:"七牛云存储的空间名"},model:{value:e.data.options.qiniu.scope,callback:function(i){e.$set(e.data.options.qiniu,"scope",i)},expression:"data.options.qiniu.scope"}}),e._v(" url: "),t("ElInput",{attrs:{size:"small",clearable:"",placeholder:"空间的自定义域名"},model:{value:e.data.options.qiniu.url,callback:function(i){e.$set(e.data.options.qiniu,"url",i)},expression:"data.options.qiniu.url"}}),e._v(" deadline: "),t("ElInput",{attrs:{size:"small",clearable:"",placeholder:"token的过期时间"},model:{value:e.data.options.qiniu.deadline,callback:function(i){e.$set(e.data.options.qiniu,"deadline",i)},expression:"data.options.qiniu.deadline"}})],1)])]:e._e(),e.data.options.oss==="ali"?[t("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[t("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[e._v("七牛oss配置:")]),t("div",{staticClass:"el-form-item__content"},[e._v(" region: "),t("ElInput",{attrs:{size:"small",clearable:"",placeholder:"region"},model:{value:e.data.options.ali.region,callback:function(i){e.$set(e.data.options.ali,"region",i)},expression:"data.options.ali.region"}}),e._v(" endpoint: "),t("ElInput",{attrs:{size:"small",clearable:"",placeholder:"endpoint"},model:{value:e.data.options.ali.endpoint,callback:function(i){e.$set(e.data.options.ali,"endpoint",i)},expression:"data.options.ali.endpoint"}}),e._v(" accessKeyId: "),t("ElInput",{attrs:{size:"small",clearable:"",placeholder:"accessKeyId"},model:{value:e.data.options.ali.accessKeyId,callback:function(i){e.$set(e.data.options.ali,"accessKeyId",i)},expression:"data.options.ali.accessKeyId"}}),e._v(" accessKeySecret: "),t("ElInput",{attrs:{size:"small",clearable:"",placeholder:"accessKeySecret"},model:{value:e.data.options.ali.accessKeySecret,callback:function(i){e.$set(e.data.options.ali,"accessKeySecret",i)},expression:"data.options.ali.accessKeySecret"}}),e._v(" bucket: "),t("ElInput",{attrs:{size:"small",clearable:"",placeholder:"bucket "},model:{value:e.data.options.ali.bucket,callback:function(i){e.$set(e.data.options.ali,"bucket",i)},expression:"data.options.ali.bucket"}})],1)])]:e._e()],2)},Nw=[];const jw={name:"ConfigUEditor",props:{data:Object},watch:{"data.options.oss":function(e){e==="ali"?this.data.options.qiniu={}:e==="qiniu"&&(this.data.options.ali={})}}},Sl={};var zw=u(jw,Rw,Nw,!1,Kw,null,null,null);function Kw(e){for(let n in Sl)this[n]=Sl[n]}const Ww=function(){return zw.exports}();var Vw=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("ElFormItem",{attrs:{label:"默认值"}},[t("a",{staticStyle:{color:"#409EFF"},attrs:{href:"https://avuejs.com/form/form-input-map.html",target:"_blank"}},[e._v("详细文档")]),t("br"),t("ElInput",{attrs:{placeholder:"默认值"},model:{value:e.data.value,callback:function(i){e.$set(e.data,"value",i)},expression:"data.value"}})],1)],1)},Uw=[];const Hw={name:"ConfigMap",props:{data:Object}},kl={};var qw=u(Hw,Vw,Uw,!1,Gw,null,null,null);function Gw(e){for(let n in kl)this[n]=kl[n]}const Jw=function(){return qw.exports}();var Qw=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("ElFormItem",{attrs:{label:"图标"}},[t("FyInputIcon",{attrs:{"icon-list":e.iconList,placeholder:"图标"},model:{value:e.data.icon,callback:function(i){e.$set(e.data,"icon",i)},expression:"data.icon"}})],1),t("ElFormItem",{attrs:{label:"开启折叠"}},[t("ElSwitch",{model:{value:e.data.arrow,callback:function(i){e.$set(e.data,"arrow",i)},expression:"data.arrow"}})],1),e.data.arrow?t("ElFormItem",{attrs:{label:"默认展开"}},[t("ElSwitch",{model:{value:e.data.collapse,callback:function(i){e.$set(e.data,"collapse",i)},expression:"data.collapse"}})],1):e._e()],1)},Yw=[];const Xw={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"]}]}}},El={};var Zw=u(Xw,Qw,Yw,!1,eC,null,null,null);function eC(e){for(let n in El)this[n]=El[n]}const tC=function(){return Zw.exports}();var nC=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("ElFormItem",{attrs:{label:"占位内容"}},[t("ElInput",{attrs:{clearable:"",placeholder:"占位内容"},model:{value:e.data.placeholder,callback:function(i){e.$set(e.data,"placeholder",i)},expression:"data.placeholder"}})],1),t("ElFormItem",{attrs:{label:"尺寸"}},[t("ElRadioGroup",{attrs:{size:"mini"},model:{value:e.data.size,callback:function(i){e.$set(e.data,"size",i)},expression:"data.size"}},[t("ElRadioButton",{attrs:{label:"medium"}},[e._v(" 正常 ")]),t("ElRadioButton",{attrs:{label:"small"}},[e._v(" 小 ")]),t("ElRadioButton",{attrs:{label:"mini"}},[e._v(" 超小 ")])],1)],1)],1)},iC=[];const sC={name:"ConfigArray",props:{data:Object}},Fl={};var aC=u(sC,nC,iC,!1,rC,null,null,null);function rC(e){for(let n in Fl)this[n]=Fl[n]}const lC=function(){return aC.exports}();var oC=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("ElFormItem",{attrs:{label:"文本对齐"}},[t("ElRadioGroup",{model:{value:e.data.styles.textAlign,callback:function(i){e.$set(e.data.styles,"textAlign",i)},expression:"data.styles.textAlign"}},[t("ElRadio",{attrs:{label:"left"}},[e._v(" 左 ")]),t("ElRadio",{attrs:{label:"center"}},[e._v(" 中 ")]),t("ElRadio",{attrs:{label:"right"}},[e._v(" 右 ")])],1)],1),t("ElFormItem",{attrs:{label:"颜色"}},[t("ElColorPicker",{attrs:{size:"mini"},model:{value:e.data.styles.color,callback:function(i){e.$set(e.data.styles,"color",i)},expression:"data.styles.color"}})],1),t("ElFormItem",{attrs:{label:"字体大小"}},[t("ElInput",{attrs:{clearable:"",placeholder:"字体大小"},model:{value:e.data.styles.fontSize,callback:function(i){e.$set(e.data.styles,"fontSize",i)},expression:"data.styles.fontSize"}})],1),t("ElFormItem",{attrs:{label:"粗体"}},[t("ElSelect",{attrs:{placeholder:"粗体",clearable:""},model:{value:e.data.styles.fontWeight,callback:function(i){e.$set(e.data.styles,"fontWeight",i)},expression:"data.styles.fontWeight"}},e._l(e.options,function(i){return t("ElOption",{key:i,attrs:{label:i,value:i}})}),1)],1)],1)},cC=[];const uC={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"]}}},Il={};var dC=u(uC,oC,cC,!1,pC,null,null,null);function pC(e){for(let n in Il)this[n]=Il[n]}const hC=function(){return dC.exports}();var mC=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[t("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[e._v("change:")]),t("div",{staticClass:"el-form-item__content"},[t("MonacoEditor",{attrs:{height:"300","key-index":`event-change-${e.data.prop}`,options:e.options},model:{value:e.change,callback:function(i){e.change=i},expression:"change"}})],1)]),t("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[t("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[e._v("click:")]),t("div",{staticClass:"el-form-item__content"},[t("MonacoEditor",{attrs:{height:"200","key-index":`event-click-${e.data.prop}`,options:e.options},model:{value:e.click,callback:function(i){e.click=i},expression:"click"}})],1)]),t("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[t("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[e._v("focus:")]),t("div",{staticClass:"el-form-item__content"},[t("MonacoEditor",{attrs:{height:"200","key-index":`event-focus-${e.data.prop}`,options:e.options},model:{value:e.focus,callback:function(i){e.focus=i},expression:"focus"}})],1)]),t("div",{staticClass:"el-form-item el-form-item--small el-form--label-top"},[t("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[e._v("blur:")]),t("div",{staticClass:"el-form-item__content"},[t("MonacoEditor",{attrs:{height:"200","key-index":`event-blur-${e.data.prop}`,options:e.options},model:{value:e.blur,callback:function(i){e.blur=i},expression:"blur"}})],1)])])},fC=[];const vC={name:"ConfigEvent",components:{MonacoEditor:ne},props:{data:Object},data(){return{change:"",click:"",focus:"",blur:"",options:{fullScreen:!0,minimap:{enabled:!1}}}},watch:{"data.prop":{handler(){const{change:e,click:n,focus:t,blur:i}=this.data;this.$set(this,"change",e?`${e}`:`({value}) => {\r
|
|
22
22
|
\r
|
|
23
|
-
}`),this.$set(this,"click",
|
|
23
|
+
}`),this.$set(this,"click",n?`${n}`:`({value}) => {\r
|
|
24
24
|
\r
|
|
25
|
-
}`),this.$set(this,"focus",
|
|
25
|
+
}`),this.$set(this,"focus",t?`${t}`:`({value}) => {\r
|
|
26
26
|
\r
|
|
27
|
-
}`),this.$set(this,"blur",
|
|
27
|
+
}`),this.$set(this,"blur",i?`${i}`:`({value}) => {\r
|
|
28
28
|
\r
|
|
29
|
-
}`)},immediate:!0}},mounted(){this.$nextTick(()=>{
|
|
29
|
+
}`)},immediate:!0}},mounted(){this.$nextTick(()=>{["change","click","focus","blur"].forEach(n=>{this.$watch(`${n}`,t=>{try{this.$set(this.data,n,V(t))}catch(i){}})})})}},Tl={};var _C=u(vC,mC,fC,!1,gC,null,null,null);function gC(e){for(let n in Tl)this[n]=Tl[n]}const yC=function(){return _C.exports}(),bC=[{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 xC=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("ElDrawer",{attrs:{visible:e.visible,size:"80%","append-to-body":""},on:{"update:visible":function(i){e.visible=i}}},[t("ElTable",{attrs:{data:e.list,border:""}},[t("ElTableColumn",{attrs:{align:"center",width:"60"},scopedSlots:e._u([{key:"header",fn:function(){return[t("ElButton",{attrs:{icon:"el-icon-plus",type:"primary",circle:"",size:"mini"},on:{click:function(i){return e.list.push({})}}})]},proxy:!0},{key:"default",fn:function(i){var s=i.$index;return[t("ElButton",{attrs:{icon:"el-icon-minus",type:"danger",circle:"",size:"mini"},on:{click:function(a){return e.list.splice(s,1)}}})]}}])}),t("ElTableColumn",{attrs:{label:"字段名",prop:"label",align:"center"},scopedSlots:e._u([{key:"default",fn:function(i){var s=i.row;return[t("ElInput",{attrs:{placeholder:"请输入 字段名"},model:{value:s.label,callback:function(a){e.$set(s,"label",a)},expression:"row.label"}})]}}])}),t("ElTableColumn",{attrs:{label:"Prop",prop:"prop",align:"center"},scopedSlots:e._u([{key:"default",fn:function(i){var s=i.row;return[t("ElInput",{attrs:{placeholder:"请输入 prop"},model:{value:s.prop,callback:function(a){e.$set(s,"prop",a)},expression:"row.prop"}})]}}])}),t("ElTableColumn",{attrs:{label:"类型",prop:"type",align:"center"},scopedSlots:e._u([{key:"default",fn:function(i){var s=i.row;return[t("ElSelect",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择 类型",filterable:""},model:{value:s.type,callback:function(a){e.$set(s,"type",a)},expression:"row.type"}},e._l(e.fields,function(a){return t("ElOption",{key:a.value,attrs:{label:a.value,value:a.value}})}),1)]}}])}),t("ElTableColumn",{attrs:{label:"搜索",prop:"search",align:"center"},scopedSlots:e._u([{key:"default",fn:function(i){var s=i.row;return[t("ElSwitch",{model:{value:s.search,callback:function(a){e.$set(s,"search",a)},expression:"row.search"}})]}}])}),t("ElTableColumn",{attrs:{label:"操作",align:"center"},scopedSlots:e._u([{key:"default",fn:function(i){var s=i.row;return[["select","cascader","tree","radio","checkbox"].includes(s.type)?[t("ElButton",{attrs:{type:"text"},on:{click:function(a){return e.handleDic(s)}}},[e._v(" 字典配置 ")])]:e._e()]}}])})],1),t("span",{staticClass:"afd-drawer-foot"},[t("ElButton",{attrs:{type:"primary"},on:{click:e.handleSubmit}},[e._v("确定")]),t("ElButton",{on:{click:function(i){e.visible=!1}}},[e._v("取消")])],1)],1)},$C=[];const wC={name:"AfdColumn",props:{column:{type:Array,default:()=>[]}},emits:["submit"],data(){return{fields:bC,visible:!1,list:[]}},watch:{column:{handler(e){this.list=e},deep:!0,immediate:!0}},methods:{handleSubmit(){this.$emit("submit",$(this.list)),this.visible=!1},handleDic(e){console.log(e),this.$message.error("暂未实现")}}},Bl={};var CC=u(wC,xC,$C,!1,SC,null,null,null);function SC(e){for(let n in Bl)this[n]=Bl[n]}const kC=function(){return CC.exports}();var EC=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("ElFormItem",{attrs:{label:"字段配置"}},[t("ElButton",{attrs:{type:"primary",size:"small"},on:{click:function(i){e.$refs.column.visible=!0}}},[e._v(" 字段配置 ")])],1),t("ElFormItem",{attrs:{label:"边框"}},[t("ElSwitch",{model:{value:e.data.children.border,callback:function(i){e.$set(e.data.children,"border",i)},expression:"data.children.border"}})],1),t("ElFormItem",{attrs:{label:"label"}},[t("ElInput",{attrs:{placeholder:"label",clearable:""},model:{value:e.data.props.label,callback:function(i){e.$set(e.data.props,"label",i)},expression:"data.props.label"}})],1),t("ElFormItem",{attrs:{label:"value"}},[t("ElInput",{attrs:{placeholder:"value",clearable:""},model:{value:e.data.props.value,callback:function(i){e.$set(e.data.props,"value",i)},expression:"data.props.value"}})],1),t("ElFormItem",{attrs:{label:"请求地址"}},[t("ElInput",{attrs:{type:"textarea",placeholder:"请求地址",autosize:""},model:{value:e.data.children.props.url,callback:function(i){e.$set(e.data.children.props,"url",i)},expression:"data.children.props.url"}})],1),t("ElFormItem",{attrs:{label:"请求方法"}},[t("ElSelect",{attrs:{placeholder:"请求方法",clearable:""},model:{value:e.data.children.props.method,callback:function(i){e.$set(e.data.children.props,"method",i)},expression:"data.children.props.method"}},[t("ElOption",{attrs:{label:"GET",value:"get"}}),t("ElOption",{attrs:{label:"POST",value:"post"}})],1)],1),t("ElFormItem",{attrs:{label:"分页"}},[t("ElSwitch",{model:{value:e.data.children.props.needPage,callback:function(i){e.$set(e.data.children.props,"needPage",i)},expression:"data.children.props.needPage"}})],1),e.data.children.props.needPage?t("ElFormItem",{attrs:{label:"当前页"}},[t("ElInput",{attrs:{placeholder:"当前页",clearable:""},model:{value:e.data.children.props.currentPageKey,callback:function(i){e.$set(e.data.children.props,"currentPageKey",i)},expression:"data.children.props.currentPageKey"}})],1):e._e(),e.data.children.props.needPage?t("ElFormItem",{attrs:{label:"每页条数"}},[t("ElInput",{attrs:{placeholder:"每页条数",clearable:""},model:{value:e.data.children.props.pageSizeKey,callback:function(i){e.$set(e.data.children.props,"pageSizeKey",i)},expression:"data.children.props.pageSizeKey"}})],1):e._e(),e.data.children.props.needPage?t("ElFormItem",{attrs:{label:"总条数"}},[t("ElInput",{attrs:{placeholder:"总条数",clearable:""},model:{value:e.data.children.props.totalKey,callback:function(i){e.$set(e.data.children.props,"totalKey",i)},expression:"data.children.props.totalKey"}})],1):e._e(),e.data.children.props.needPage?t("ElFormItem",{attrs:{label:"列表"}},[t("ElInput",{attrs:{placeholder:"列表",clearable:""},model:{value:e.data.children.props.recordsKey,callback:function(i){e.$set(e.data.children.props,"recordsKey",i)},expression:"data.children.props.recordsKey"}})],1):e._e(),t("ElFormItem",{attrs:{label:"返回层级"}},[t("ElInput",{attrs:{placeholder:"返回层级",clearable:""},model:{value:e.data.children.props.resKey,callback:function(i){e.$set(e.data.children.props,"resKey",i)},expression:"data.children.props.resKey"}})],1),t("ElFormItem",{attrs:{label:"自动生成"}},[t("ElSwitch",{model:{value:e.data.children.props.auto,callback:function(i){e.$set(e.data.children.props,"auto",i)},expression:"data.children.props.auto"}})],1),t("div",{staticClass:"el-form--label-top"},[t("div",{staticClass:"el-form-item"},[t("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[t("ElPopover",{attrs:{placement:"top-start",width:200,trigger:"hover",content:"填写以上配置后会自动生成,若觉得生成的不对请自行修改或关闭自动生成"},scopedSlots:e._u([{key:"reference",fn:function(){return[t("ElLink",{attrs:{href:"https://avuejs.com/form/form-input-table.html",underline:!1,target:"_blank"}},[e._v(" onLoad: "),t("i",{staticClass:"el-icon-question"})])]},proxy:!0}])})],1),t("div",{staticClass:"el-form-item__content"},[t("MonacoEditor",{attrs:{height:"200","key-index":`table-onload-${e.data.prop}`,options:e.options},model:{value:e.onLoad,callback:function(i){e.onLoad=i},expression:"onLoad"}})],1)]),t("div",{staticClass:"el-form-item"},[t("label",{staticClass:"el-form-item__label",staticStyle:{padding:"0"}},[e._v("formatter:")]),t("div",{staticClass:"el-form-item__content"},[t("MonacoEditor",{attrs:{height:"200","key-index":`table-formatter-${e.data.prop}`,options:e.options},model:{value:e.formatter,callback:function(i){e.formatter=i},expression:"formatter"}})],1)])]),t("AfdColumn",{ref:"column",attrs:{column:e.data.children.column},on:{submit:e.handleColumn}})],1)},FC=[];const IC={name:"ConfigTable",components:{MonacoEditor:ne,AfdColumn:kC},props:{data:Object},data(){return{options:{fullScreen:!0,minimap:{enabled:!1}},onLoad:"",formatter:""}},watch:{"data.prop":{handler(){const{onLoad:e,formatter:n}=this.data;this.onLoad=e?`${e}`:"",this.formatter=n?`${n}`:""},immediate:!0},"data.children.props":{handler(e){this.handleOnLoad(e)},deep:!0},onLoad:{handler(e){try{this.data.onLoad=V(e)}catch(n){console.error(n)}}}},methods:{handleColumn(e){this.data.children.column=e},handleOnLoad(e){const{url:n,method:t,needPage:i,currentPageKey:s,pageSizeKey:a,totalKey:r,recordsKey:l,resKey:o,auto:c}=e;if(!c)return;if(!n){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
|
|
33
|
-
let params = { ...data, ${
|
|
33
|
+
let params = { ...data, ${s||"current"}: currentPage, ${a||"page"}: pageSize }
|
|
34
34
|
|
|
35
35
|
if (value) params['${h}'] = value
|
|
36
36
|
|
|
37
|
-
if ('${
|
|
37
|
+
if ('${t||"get"}' == 'get') params = { params: { ...params } }
|
|
38
38
|
|
|
39
|
-
this.$axios['${
|
|
40
|
-
const response = this.getAsVal(res, '${
|
|
39
|
+
this.$axios['${t}']('${n}', params).then(res => {
|
|
40
|
+
const response = this.getAsVal(res, '${o||"data.data"}')
|
|
41
41
|
if (!response) this.$message.error('未查询到数据或者返回层级配置错误')
|
|
42
42
|
|
|
43
43
|
let result = {}
|
|
44
|
-
if (${
|
|
45
|
-
const total = this.getAsVal(response, '${
|
|
44
|
+
if (${i}) {
|
|
45
|
+
const total = this.getAsVal(response, '${r||"total"}')
|
|
46
46
|
if (total || total == 0) {
|
|
47
47
|
result.total = total
|
|
48
48
|
} else {
|
|
49
49
|
this.$message.error('总条数配置错误')
|
|
50
50
|
return
|
|
51
51
|
}
|
|
52
|
-
const records = this.getAsVal(response, '${
|
|
52
|
+
const records = this.getAsVal(response, '${l||"records"}')
|
|
53
53
|
if (records) {
|
|
54
54
|
result.data = records
|
|
55
55
|
} else {
|
|
@@ -64,25 +64,25 @@ ${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$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
|
-
`,
|
|
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"?>
|
|
67
|
+
}`;this.onLoad=m}}},Al={};var TC=u(IC,EC,FC,!1,BC,null,null,null);function BC(e){for(let n in Al)this[n]=Al[n]}const AC=function(){return TC.exports}();var OC=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"widget-config"},[e.data&&Object.keys(e.data).length>0?t("ElForm",{attrs:{"label-suffix":":","label-position":"left","label-width":"90px",size:"small"}},[t("ElCollapse",{model:{value:e.collapse,callback:function(i){e.collapse=i},expression:"collapse"}},[t("ElCollapseItem",{attrs:{name:"1",title:"基本属性"}},[e.data.type&&!e.data.component?t("ElFormItem",{attrs:{label:"类型"}},[t("ElSelect",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择类型"},on:{change:e.handleChangeType},model:{value:e.data.type,callback:function(i){e.$set(e.data,"type",i)},expression:"data.type"}},e._l(e.fields,function(i){return t("ElOptionGroup",{key:i.title,attrs:{label:i.title}},e._l(i.list,function(s){return t("ElOption",{key:s.type,attrs:{label:s.label,value:s.type}})}),1)}),1)],1):e._e(),t("ElFormItem",{attrs:{label:"属性值"}},[t("ElInput",{attrs:{clearable:"",placeholder:"属性值"},model:{value:e.data.prop,callback:function(i){e.$set(e.data,"prop",i)},expression:"data.prop"}})],1),t("ElFormItem",{attrs:{label:"标题"}},[t("ElInput",{attrs:{clearable:"",placeholder:"标题"},model:{value:e.data.label,callback:function(i){e.$set(e.data,"label",i)},expression:"data.label"}})],1),["group","dynamic","title"].includes(e.data.type)?e._e():t("ElFormItem",{attrs:{label:"标题宽度"}},[t("ElInputNumber",{staticStyle:{width:"100%"},attrs:{min:80,step:10,"controls-position":"right",placeholder:"标签宽度"},model:{value:e.data.labelWidth,callback:function(i){e.$set(e.data,"labelWidth",i)},expression:"data.labelWidth"}})],1),e.data.subfield?e._e():t("ElFormItem",{attrs:{label:"标签位置"}},[t("ElSelect",{attrs:{placeholder:"标签位置",clearable:""},model:{value:e.data.labelPosition,callback:function(i){e.$set(e.data,"labelPosition",i)},expression:"data.labelPosition"}},[t("ElOption",{attrs:{label:"上",value:"top"}}),t("ElOption",{attrs:{label:"左",value:"left"}}),t("ElOption",{attrs:{label:"右",value:"right"}})],1)],1),e.data.subfield?t("ElFormItem",{attrs:{label:"宽度"}},[t("ElInputNumber",{staticStyle:{width:"100%"},attrs:{"controls-position":"right",placeholder:"宽度",min:100},model:{value:e.data.width,callback:function(i){e.$set(e.data,"width",i)},expression:"data.width"}})],1):e._e(),!e.data.subfield&&!["group"].includes(e.data.type)?t("ElFormItem",{attrs:{label:"表单栅格"}},[t("ElInputNumber",{staticStyle:{width:"100%"},attrs:{"controls-position":"right",placeholder:"表单栅格",min:2,max:24},model:{value:e.data.span,callback:function(i){e.$set(e.data,"span",i)},expression:"data.span"}})],1):e._e(),["cascader","checkbox","radio","select","tree","upload","img","array","slider","timerange","daterange","datetimerange"].includes(e.data.type)?t("ElFormItem",{attrs:{label:"数据类型"},scopedSlots:e._u([{key:"label",fn:function(){return[t("ElLink",{attrs:{underline:!1,href:"https://avuejs.com/docs/datatype.html",target:"_blank"}},[e._v(" 数据类型 "),t("i",{staticClass:"el-icon-question"})])]},proxy:!0}],null,!1,3051713203)},[t("ElSelect",{attrs:{placeholder:"数据类型",clearable:""},model:{value:e.data.dataType,callback:function(i){e.$set(e.data,"dataType",i)},expression:"data.dataType"}},[t("ElOption",{attrs:{label:"String",value:"string"}}),t("ElOption",{attrs:{label:"Number",value:"number"}}),t("ElOption",{attrs:{label:"Array",value:"array"}})],1)],1):e._e(),t("ElFormItem",{attrs:{label:"字段提示"},scopedSlots:e._u([{key:"label",fn:function(){return[t("ElLink",{attrs:{underline:!1,href:"https://avuejs.com/form/form-tip.html",target:"_blank"}},[e._v(" 字段提示 "),t("i",{staticClass:"el-icon-question"})])]},proxy:!0}],null,!1,708991366)},[t("ElInput",{attrs:{clearable:"",placeholder:"字段提示"},model:{value:e.data.tip,callback:function(i){e.$set(e.data,"tip",i)},expression:"data.tip"}})],1),e.data.tip&&!["upload"].includes(e.data.type)?t("ElFormItem",{attrs:{label:"字段提示位置","label-width":"110px"}},[t("ElSelect",{attrs:{placeholder:"字段提示位置",clearable:""},model:{value:e.data.tipPlacement,callback:function(i){e.$set(e.data,"tipPlacement",i)},expression:"data.tipPlacement"}},[t("ElOption",{attrs:{label:"上",value:"top"}}),t("ElOption",{attrs:{label:"下",value:"bottom"}}),t("ElOption",{attrs:{label:"左",value:"left"}}),t("ElOption",{attrs:{label:"右",value:"right"}})],1)],1):e._e(),t("ElFormItem",{attrs:{label:"标题提示"},scopedSlots:e._u([{key:"label",fn:function(){return[t("ElLink",{attrs:{underline:!1,href:"https://avuejs.com/form/form-tip.html",target:"_blank"}},[e._v(" 标题提示 "),t("i",{staticClass:"el-icon-question"})])]},proxy:!0}],null,!1,1033131739)},[t("ElInput",{attrs:{clearable:"",placeholder:"标题提示"},model:{value:e.data.labelTip,callback:function(i){e.$set(e.data,"labelTip",i)},expression:"data.labelTip"}})],1),e.data.labelTip&&!["upload"].includes(e.data.type)?t("ElFormItem",{attrs:{label:"标题提示位置","label-width":"110px"}},[t("ElSelect",{attrs:{placeholder:"标题提示位置",clearable:""},model:{value:e.data.labelTipPlacement,callback:function(i){e.$set(e.data,"labelTipPlacement",i)},expression:"data.labelTipPlacement"}},[t("ElOption",{attrs:{label:"上",value:"top"}}),t("ElOption",{attrs:{label:"下",value:"bottom"}}),t("ElOption",{attrs:{label:"左",value:"left"}}),t("ElOption",{attrs:{label:"右",value:"right"}})],1)],1):e._e(),["color","dynamic","group","ueditor","upload","map"].includes(e.data.type)?e._e():t("ElFormItem",{attrs:{label:"默认值"}},[e.defaultValues&&e.defaultValues[e.data.type]?[t("ElSelect",{attrs:{"allow-create":"",clearable:"",filterable:"",placeholder:"默认值"},model:{value:e.data.value,callback:function(i){e.$set(e.data,"value",i)},expression:"data.value"}},e._l(e.defaultValues[e.data.type],function(i){return t("ElOption",{key:i.value,attrs:{label:i.label,value:i.value}})}),1)]:[t("ElInput",{attrs:{clearable:"",placeholder:"默认值"},model:{value:e.data.value,callback:function(i){e.$set(e.data,"value",i)},expression:"data.value"}})]],2),t("ElFormItem",{attrs:{label:"详情模式"}},[t("ElSwitch",{model:{value:e.data.detail,callback:function(i){e.$set(e.data,"detail",i)},expression:"data.detail"}})],1),t("ElFormItem",{attrs:{label:"是否只读"}},[t("ElSwitch",{model:{value:e.data.readonly,callback:function(i){e.$set(e.data,"readonly",i)},expression:"data.readonly"}})],1),t("ElFormItem",{attrs:{label:"是否禁用"}},[t("ElSwitch",{model:{value:e.data.disabled,callback:function(i){e.$set(e.data,"disabled",i)},expression:"data.disabled"}})],1),t("ElFormItem",{attrs:{label:"是否可见"}},[t("ElSwitch",{model:{value:e.data.display,callback:function(i){e.$set(e.data,"display",i)},expression:"data.display"}})],1),t("ElFormItem",{attrs:{label:"是否必填"}},[t("ElSwitch",{model:{value:e.data.required,callback:function(i){e.$set(e.data,"required",i)},expression:"data.required"}}),e.data.required?t("ElInput",{attrs:{placeholder:"正则表达式"},model:{value:e.data.pattern,callback:function(i){e.$set(e.data,"pattern",i)},expression:"data.pattern"}}):e._e()],1)],1),t("ElCollapseItem",{attrs:{name:"2",title:"组件属性"}},[t(e.getComponent,{tag:"Component",attrs:{data:e.data,"default-values":e.defaultValues}})],1),["group"].includes(e.data.type)?e._e():t("ElCollapseItem",{attrs:{name:"3",title:"事件属性"}},[t("ConfigEvent",{attrs:{data:e.data}})],1)],1)],1):[t("FyEmpty",{staticStyle:{"margin-top":"100%"},attrs:{desc:"拖拽字段进行配置"}})]],2)},MC=[];const PC=["year","month","week","date","datetime","time","daterange","timerange","datetimerange","dates"],DC={name:"WidgetConfig",components:{ConfigCustom:y$,ConfigInput:S$,ConfigTextarea:B$,ConfigNumber:L$,ConfigDynamic:W$,ConfigSwitch:J$,ConfigRate:tw,ConfigSlider:lw,ConfigColor:hw,ConfigSelect:yw,ConfigTree:Sw,ConfigDate:Bw,ConfigUpload:Lw,ConfigUEditor:Ww,ConfigMap:Jw,ConfigGroup:tC,ConfigArray:lC,ConfigTitle:hC,ConfigEvent:yC,ConfigTable:AC},props:{data:Object,defaultValues:Object},data(){return{fields:oi,collapse:["1","2","3"],validator:{type:null,required:null,pattern:null,length:null}}},computed:{getComponent(){const e="config-",{type:n,component:t}=this.data;if((!n||t)&&n!=="u-editor")return`${e}custom`;let i="input";return[void 0,"input","password","url"].includes(n)?i="input":PC.includes(n)?i="date":["array","img"].includes(n)?i="array":["tree","cascader"].includes(n)?i="tree":["radio","checkbox","select"].includes(n)?i="select":i=n,e+i}},watch:{"data.required"(e){e?this.validator.required={required:!0,message:`${this.data.label}必须填写`}:this.validator.required=null,this.generateRule()},"data.pattern"(e){e?this.validator.pattern={pattern:new RegExp(e),message:`${this.data.label}格式不匹配`}:this.validator.pattern=null,this.generateRule()}},methods:{handleChangeType(e){if(!e)return;let n;for(const t of this.fields)if(n=t.list.find(i=>i.type===e),n)break;if(n)for(const t in n)n&&Object.prototype.hasOwnProperty.call(n,t)&&!["icon","label","span"].includes(t)&&(this.data[t]=n[t])},generateRule(){const e=[];Object.keys(this.validator).forEach(n=>{this.validator[n]&&e.push(this.validator[n])}),e.length===0?delete this.data.rules:this.data.rules=e}}},Ol={};var LC=u(DC,OC,MC,!1,RC,null,null,null);function RC(e){for(let n in Ol)this[n]=Ol[n]}const NC=function(){return LC.exports}();var jC=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("ElContainer",{staticClass:"form-designer"},[t("ElAside",{attrs:{width:e.leftWidth}},[t("div",{staticClass:"fields-list"},[e.customFields&&e.customFields.length>0?[e.customFields[0].title&&e.customFields[0].list&&e.customFields[0].list.length>0?[e._l(e.customFields,function(i,s){return[t("div",{key:`f_${s}`,staticClass:"field-title"},[e._v(" "+e._s(i.title)+" ")]),t("Draggable",{key:`d_${s}`,attrs:{tag:"ul",list:i.list,group:{name:"form",pull:"clone",put:!1},"ghost-class":"ghost",sort:!1}},[e._l(i.list,function(a,r){return[t("li",{key:`c_${r}`,staticClass:"field-label"},[t("a",{on:{click:function(l){return e.handleFieldClick(a)}}},[t("i",{staticClass:"icon iconfont",class:a.icon}),t("span",[e._v(e._s(a.title||a.label))])])])]})],2)]})]:[t("ElLink",{staticClass:"field-title",attrs:{underline:!1,href:"https://github.com/sscfaith/avue-form-design/blob/master/CHANGELOG.md#2020-09-22",target:"_blank"}},[e._v(" 自定义字段 "),t("i",{staticClass:"el-icon-question"})]),t("Draggable",{attrs:{tag:"ul",list:e.customFields,group:{name:"form",pull:"clone",put:!1},"ghost-class":"ghost",sort:!1}},[e._l(e.customFields,function(i,s){return[i.tips?t("ElTooltip",{key:s,attrs:{effect:"dark",content:i.tips}},[t("li",{key:s,staticClass:"field-label"},[t("a",{staticStyle:{padding:"0 5px"},on:{click:function(a){return e.handleFieldClick(i)}}},[t("i",{class:i.icon}),t("span",{staticStyle:{"margin-left":"5px"}},[e._v(e._s(i.title||i.label))])])])]):t("li",{key:s,staticClass:"field-label"},[t("a",{staticStyle:{padding:"0 5px"},on:{click:function(a){return e.handleFieldClick(i)}}},[t("i",{class:i.icon}),t("span",{staticStyle:{"margin-left":"5px"}},[e._v(e._s(i.title||i.label))])])])]})],2)]]:e._e(),e._l(e.fields,function(i,s){return t("div",{key:s},[i.list.find(function(a){return e.includeFields.includes(a.type)})?[t("div",{staticClass:"field-title"},[e._v(" "+e._s(i.title)+" ")]),t("Draggable",{attrs:{tag:"ul",list:i.list,group:{name:"form",pull:"clone",put:!1},"ghost-class":"ghost",sort:!1}},[e._l(i.list,function(a,r){return[e.includeFields.includes(a.type)?t("li",{key:`c_${r}`,staticClass:"field-label"},[t("a",{on:{click:function(l){return e.handleFieldClick(a)}}},[t("i",{staticClass:"icon iconfont",class:a.icon}),t("span",[e._v(e._s(a.title||a.label))])])]):e._e()]})],2)]:e._e()],2)})],2)]),t("ElContainer",{staticClass:"widget-container",attrs:{direction:"vertical"}},[t("ElHeader",{staticClass:"widget-container-header"},[t("div",[e.undoRedo?[t("ElButton",{attrs:{type:"text",size:"medium",icon:"el-icon-refresh-left",disabled:e.historySteps.index===0},on:{click:function(i){e.widgetForm=e.handleUndo()}}},[e._v(" 撤销 ")]),t("ElButton",{attrs:{type:"text",size:"medium",icon:"el-icon-refresh-right",disabled:e.historySteps.index===e.historySteps.steps.length-1},on:{click:function(i){e.widgetForm=e.handleRedo()}}},[e._v(" 重做 ")])]:e._e()],2),t("div",{staticStyle:{display:"flex","align-items":"center"}},[e.showGithubStar?t("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"}}):e._e(),e._t("toolbar-left"),e.toolbar.includes("avue-doc")?t("ElButton",{attrs:{type:"text",size:"medium",icon:"el-icon-document"},on:{click:e.handleAvueDoc}},[e._v(" Avue文档 ")]):e._e(),e.toolbar.includes("import")?t("ElButton",{attrs:{type:"text",size:"medium",icon:"el-icon-upload2"},on:{click:function(i){e.importJsonVisible=!0}}},[e._v(" 导入JSON ")]):e._e(),e.toolbar.includes("generate")?t("ElButton",{attrs:{type:"text",size:"medium",icon:"el-icon-download"},on:{click:e.handleGenerateJson}},[e._v(" 生成JSON ")]):e._e(),e.toolbar.includes("preview")?t("ElButton",{attrs:{type:"text",size:"medium",icon:"el-icon-view"},on:{click:e.handlePreview}},[e._v(" 预览 ")]):e._e(),e.toolbar.includes("clear")?t("ElButton",{staticClass:"danger",attrs:{type:"text",size:"medium",icon:"el-icon-delete"},on:{click:e.handleClear}},[e._v(" 清空 ")]):e._e(),e._t("toolbar")],2)]),t("ElMain",{style:{background:e.widgetForm.column.length===0?`url(${e.widgetEmpty}) no-repeat 50%`:""}},[t("WidgetForm",{ref:"widgetForm",attrs:{data:e.widgetForm,select:e.widgetFormSelect},on:{"update:select":function(i){e.widgetFormSelect=i},change:function(i){return e.handleHistoryChange(e.widgetForm)}}})],1)],1),t("ElAside",{staticClass:"widget-config-container",attrs:{width:e.rightWidth}},[t("ElTabs",{attrs:{stretch:""},model:{value:e.configTab,callback:function(i){e.configTab=i},expression:"configTab"}},[t("ElTabPane",{staticStyle:{padding:"0 10px"},attrs:{label:"字段属性",name:"widget"}},[t("WidgetConfig",{attrs:{data:e.widgetFormSelect,"default-values":e.defaultValues}})],1),t("ElTabPane",{staticStyle:{padding:"0 10px"},attrs:{label:"表单属性",name:"form",lazy:""}},[t("FormConfig",{attrs:{data:e.widgetForm}})],1)],1)],1),t("ElDrawer",{attrs:{title:"导入JSON",visible:e.importJsonVisible,size:"50%","append-to-body":"","destroy-on-close":""},on:{"update:visible":function(i){e.importJsonVisible=i}}},[t("MonacoEditor",{attrs:{"key-index":"import",height:"82%"},model:{value:e.importJson,callback:function(i){e.importJson=i},expression:"importJson"}}),t("div",{staticClass:"afd-drawer-foot"},[t("ElButton",{attrs:{size:"medium",type:"primary"},on:{click:e.handleImportJsonSubmit}},[e._v(" 确定 ")]),t("ElButton",{attrs:{size:"medium",type:"danger"},on:{click:function(i){e.importJsonVisible=!1}}},[e._v(" 取消 ")])],1)],1),t("ElDrawer",{attrs:{title:"生成JSON",visible:e.generateJsonVisible,size:"50%","append-to-body":"","destroy-on-close":""},on:{"update:visible":function(i){e.generateJsonVisible=i}}},[t("MonacoEditor",{attrs:{"key-index":"generate",height:"82%","read-only":!0},model:{value:e.option,callback:function(i){e.option=i},expression:"option"}}),t("div",{staticClass:"afd-drawer-foot"},[t("ElButton",{attrs:{size:"medium",type:"primary"},on:{click:e.handleGenerate}},[e._v(" 生成 ")]),t("ElPopover",{attrs:{placement:"top",trigger:"hover",width:"350px"},scopedSlots:e._u([{key:"reference",fn:function(){return[t("ElButton",{staticStyle:{"margin-left":"10px"},attrs:{size:"medium",type:"primary"},on:{click:e.handleCopy}},[e._v(" 复制 ")])]},proxy:!0}])},[t("ElForm",{staticStyle:{padding:"0 20px"},attrs:{"label-suffix":":","label-width":"180px","label-position":"left"},model:{value:e.configOption,callback:function(i){e.configOption=i},expression:"configOption"}},[t("ElFormItem",{attrs:{label:"类型"}},[t("ElPopover",{staticStyle:{"margin-right":"15px"},attrs:{placement:"top-start",trigger:"hover",content:"复制json对象"},scopedSlots:e._u([{key:"reference",fn:function(){return[t("ElRadio",{attrs:{label:"json"},model:{value:e.configOption.generateType,callback:function(i){e.$set(e.configOption,"generateType",i)},expression:"configOption.generateType"}},[e._v(" json ")])]},proxy:!0}])}),t("ElPopover",{attrs:{placement:"top-start",trigger:"hover",content:"复制string字符串,可直接用于后端保存无需再次处理。"},scopedSlots:e._u([{key:"reference",fn:function(){return[t("ElRadio",{attrs:{label:"string"},model:{value:e.configOption.generateType,callback:function(i){e.$set(e.configOption,"generateType",i)},expression:"configOption.generateType"}},[e._v(" string ")])]},proxy:!0}])})],1),t("ElFormItem",{attrs:{label:"缩进长度-空格数量"}},[t("ElSlider",{attrs:{"show-stops":"",marks:{1:"1",2:"2",3:"3",4:"4"},min:1,max:4,step:1},model:{value:e.configOption.space,callback:function(i){e.$set(e.configOption,"space",i)},expression:"configOption.space"}})],1),t("ElFormItem",{attrs:{label:"引号类型"}},[t("ElSwitch",{attrs:{"active-value":"single","inactive-value":"double","active-text":"单引号","inactive-text":"双引号"},model:{value:e.configOption.quoteType,callback:function(i){e.$set(e.configOption,"quoteType",i)},expression:"configOption.quoteType"}})],1),t("ElFormItem",{attrs:{label:"移除key的引号"}},[t("ElSwitch",{model:{value:e.configOption.dropQuotesOnKeys,callback:function(i){e.$set(e.configOption,"dropQuotesOnKeys",i)},expression:"configOption.dropQuotesOnKeys"}})],1),t("ElFormItem",{attrs:{label:"移除数字字符串的引号"}},[t("ElSwitch",{model:{value:e.configOption.dropQuotesOnNumbers,callback:function(i){e.$set(e.configOption,"dropQuotesOnNumbers",i)},expression:"configOption.dropQuotesOnNumbers"}})],1)],1)],1)],1)],1),t("ElDrawer",{attrs:{title:"预览",visible:e.previewVisible,size:"60%","append-to-body":"","before-close":e.handleBeforeClose},on:{"update:visible":function(i){e.previewVisible=i}}},[e.previewVisible?t("FyForm",{ref:"form",staticClass:"afd-preview-form",attrs:{option:e.option},on:{submit:e.handlePreviewSubmit},model:{value:e.form,callback:function(i){e.form=i},expression:"form"}}):e._e(),t("div",{staticClass:"afd-drawer-foot"},[t("ElButton",{attrs:{size:"medium",type:"primary"},on:{click:e.handlePreviewSubmit}},[e._v(" 确定 ")]),t("ElButton",{attrs:{size:"medium",type:"danger"},on:{click:e.handleBeforeClose}},[e._v(" 取消 ")])],1)],1)],1)},zC=[];const KC={name:"FyFormDesign",components:{Draggable:pe,WidgetForm:n$,FormConfig:o$,WidgetConfig:NC},mixins:[Mx],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 e=[];return oi.forEach(n=>{n.list.forEach(t=>{e.push(t.type)})}),e}},customFields:{type:Array},defaultValues:{type:Object}},data(){return{widgetEmpty:Ax,fields:oi,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}}},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(e){let n=e;if(typeof n=="string")try{n=V(`(${n})`)}catch(t){console.error("非法配置"),n={column:[]}}this.transAvueOptionsToFormDesigner(n).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 _(this,null,function*(){let e=this.options;if(typeof e=="string")try{e=V(e)}catch(n){console.error("非法配置"),e={column:[]}}e.column||(e.column=[]),this.widgetForm=this.initHistory({index:0,maxStep:20,steps:[yield this.transAvueOptionsToFormDesigner(f(f({},this.widgetForm),e))],storage:this.storage}),this.undoRedo&&window.addEventListener("keydown",n=>{(n.metaKey&&!n.shiftKey&&n.keyCode===90||n.ctrlKey&&!n.shiftKey&&n.keyCode===90)&&(this.widgetForm=this.handleUndo()),(n.metaKey&&n.shiftKey&&n.keyCode===90||n.ctrlKey&&n.shiftKey&&n.keyCode===90||n.ctrlKey&&n.keyCode===89)&&(this.widgetForm=this.handleRedo())},!1)})},handleLoadCss(){const e=document.getElementsByTagName("head")[0],n=document.createElement("link");n.rel="stylesheet",n.type="text/css",n.href="https://at.alicdn.com/t/font_1254447_zc9iezc230c.css",e.appendChild(n)},handleAvueDoc(){window.open("https://avuejs.com/form/form.html","_blank")},handleFieldClick(e){const n=this.widgetForm.column.findIndex(i=>i.prop===this.widgetFormSelect.prop)+1;let t=0;n===-1?(this.widgetForm.column.push(e),t=this.widgetForm.column.length-1):(this.widgetForm.column.splice(n,0,e),t=n),this.$refs.widgetForm.handleWidgetAdd({newIndex:t})},handlePreview(){!this.widgetForm.column||this.widgetForm.column.length===0?this.$message.error("没有需要展示的内容"):this.transformToAvueOptions(this.widgetForm,!0).then(e=>{this.option=e,this.previewVisible=!0})},handleImportJsonSubmit(){try{this.transAvueOptionsToFormDesigner(this.importJson).then(e=>{this.widgetForm=e,this.importJsonVisible=!1,this.handleHistoryChange(this.widgetForm)})}catch(e){this.$message.error(e.message)}},handleGenerateJson(){this.transformToAvueOptions(this.widgetForm).then(e=>{this.option=e,this.generateJsonVisible=!0})},handleGenerate(){this.transformToAvueOptions(this.widgetForm).then(e=>{this.configOption.generateType&&this.configOption.generateType==="string"?this.$emit("submit",ue(e,f({minify:!0},this.configOption))):this.$emit("submit",e)})},handleCopy(){this.transformToAvueOptions(this.widgetForm).then(e=>{this.$Clipboard({text:ue(e,f({minify:!0},this.configOption))}).then(()=>{this.$message.success("复制成功")}).catch(()=>{this.$message.error("复制失败")})})},handlePreviewSubmit(e,n){n?this.$alert(this.form).then(()=>{n()}).catch(()=>{n()}):this.$refs.form.validate((t,i)=>{t&&this.$alert(this.form).then(()=>{i()}).catch(()=>{i()})})},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(e,n=!1){return new Promise((t,i)=>{try{const s=$(e);for(const a in s)d.isBlank(s[a])&&delete s[a];for(let a=0;a<s.column.length;a++){const r=s.column[a];if(n&&(["change","blur","click","focus"].forEach(o=>{r[o]&&(r[o]=V(`${r[o]}`.replace(/this/g,"_this")))}),r.event&&Object.keys(r.event).forEach(o=>{r.event[o]=V(`${r.event[o]}`.replace(/this/g,"_this"))})),r.type==="dynamic"&&r.children&&r.children.column&&r.children.column.length>0)r.children.column.forEach(o=>{delete o.subfield}),this.transformToAvueOptions(r.children,n).then(o=>{r.children=o});else if(r.type==="group"){s.group||(s.group=[]);const l={label:r.label,icon:r.icon,prop:r.prop,arrow:r.arrow,collapse:r.collapse,display:r.display};this.transformToAvueOptions(r.children,n).then(o=>{l.column=o.column,s.group.push(l)}),s.column.splice(a,1),a--}else if(["checkbox","radio","tree","cascader","select"].includes(r.type)){if(r.dicOption==="static"){delete r.dicUrl,delete r.dicMethod,delete r.dicQuery,delete r.dicQueryConfig;const{label:l,value:o,desc:c}=r.props;r.dicData.forEach(p=>{if(p.label){const h=p.label;delete p.label,p[l]=h}if(p.value){const h=p.value;delete p.value,p[o]=h}if(p.desc){const h=p.desc;delete p.desc,p[c]=h}})}else if(r.dicOption==="remote")if(delete r.dicData,r.dicQueryConfig&&r.dicQueryConfig.length>0){const l={};r.dicQueryConfig.forEach(o=>{o.key&&o.value&&(l[o.key]=o.value)}),r.dicQuery=l,delete r.dicQueryConfig}else delete r.dicQueryConfig;delete r.dicOption}else if(["upload"].includes(r.type)){if(r.headersConfig&&r.headersConfig.length>0){const l={};r.headersConfig.forEach(o=>{o.key&&o.value&&(l[o.key]=o.value)}),r.headers=l}else delete r.headers;if(delete r.headersConfig,r.dataConfig&&r.dataConfig.length>0){const l={};r.dataConfig.forEach(o=>{o.key&&o.value&&(l[o.key]=o.value)}),r.data=l}else delete r.data;delete r.dataConfig}for(const l in r)d.isBlank(r[l])&&delete r[l]}t(s)}catch(s){i(s)}})},transAvueOptionsToFormDesigner(e){typeof e=="string"&&(e=V(e));const n=$(e);return new Promise((t,i)=>{try{if(n.column&&n.column.length>0&&n.column.forEach(s=>{if(s.type==="dynamic"&&s.children&&s.children.column&&s.children.column.length>0)s.children.column.forEach(r=>{r.subfield=!0}),this.transAvueOptionsToFormDesigner(s.children).then(r=>{s.children=r});else if(["checkbox","radio","tree","cascader","select"].includes(s.type)){if(!s.dicData&&s.dicQuery&&typeof s.dicQuery=="object"){const a=[];for(const r in s.dicQuery)a.push({key:r,value:s.dicQuery[r],$cellEdit:!0});s.dicQueryConfig=a}s.dicUrl?s.dicOption="remote":s.dicOption="static",s.dicData?s.props&&s.dicData.forEach(a=>{const{label:r,value:l,desc:o}=s.props;if(r){const c=a[r];delete a[r],a.label=c}if(l){const c=a[l];delete a[l],a.value=c}if(o){const c=a[o];delete a[o],a.desc=c}}):s.dicData=[]}else if(["upload"].includes(s.type)){if(s.headers&&typeof s.headers=="object"){const a=[];for(const r in s.headers)a.push({key:r,value:s.headers[r],$cellEdit:!0});s.headersConfig=a}else s.headersConfig=[];if(s.data&&typeof s.data=="object"){const a=[];for(const r in s.data)a.push({key:r,value:s.data[r],$cellEdit:!0});s.dataConfig=a}else s.dataConfig=[]}}),n.group&&n.group.length>0){for(let s=0;s<n.group.length;s++){n.column||(n.column=[]);const a=n.group[s],r={type:"group",label:a.label,icon:a.icon,prop:a.prop,arrow:a.arrow,collapse:a.collapse,display:a.display};this.transAvueOptionsToFormDesigner(a).then(l=>{r.children=l,n.column.push(r)})}delete n.group}t(n)}catch(s){i(s)}})},getData(){return _(this,arguments,function*(e="json",n={}){if(e==="string")return ue(yield this.transformToAvueOptions(this.widgetForm),f({minify:!0},n));if(e==="app"){const t=yield this.transformToAvueOptions(this.widgetForm);return this.parseJson(t),t}else return yield this.transformToAvueOptions(this.widgetForm)})},parseJson(e){for(const n in e){const t=e[n];t&&t.length>0&&typeof t=="object"||typeof t=="object"?this.parseJson(t):typeof t=="function"&&(e[n]=`${t}`)}}}},Ml={};var WC=u(KC,jC,zC,!1,VC,null,null,null);function VC(e){for(let n in Ml)this[n]=Ml[n]}const ci=function(){return WC.exports}();var UC=function(){var e=this,n=e.$createElement,t=e._self._c||n;return e.formSafe.parentOption.menuBtn!==!1?t("ElCol",{class:["menu",e.formSafe.menuPosition,"no-print"],style:e.styleName,attrs:{span:e.menuSpan,md:e.menuSpan}},[t("ElFormItem",{staticStyle:{"text-align":"center"},attrs:{"label-width":"0px"}},[e.formSafe.isMock?t("ElButton",{attrs:{type:"primary",size:e.formSafe.controlSize,icon:"el-icon-edit-outline",disabled:e.formSafe.allDisabled},on:{click:e.formSafe.handleMock}},[e._v(" "+e._s(e.formSafe.parentOption.mockText||"模拟")+" ")]):e._e(),e.formSafe.isPrint?t("ElButton",{attrs:{type:"primary",size:e.formSafe.controlSize,icon:"el-icon-printer",disabled:e.formSafe.allDisabled},on:{click:e.formSafe.handlePrint}},[e._v(" "+e._s(e.formSafe.parentOption.printText||"打印")+" ")]):e._e(),e.formSafe.parentOption.submitBtn!==!1?t("ElButton",{attrs:{type:"primary",size:e.formSafe.controlSize,icon:e.formSafe.parentOption.submitIcon||"el-icon-check",loading:e.formSafe.allDisabled},on:{click:e.formSafe.submit}},[e._v(" "+e._s(e.formSafe.parentOption.submitText||"提交")+" ")]):e._e(),e.formSafe.parentOption.emptyBtn!==!1?t("ElButton",{attrs:{icon:e.formSafe.parentOption.emptyIcon||"el-icon-delete",size:e.formSafe.controlSize,disabled:e.formSafe.allDisabled},on:{click:e.formSafe.resetForm}},[e._v(" "+e._s(e.formSafe.parentOption.emptyText||"清空")+" ")]):e._e(),e._t("menuForm",null,{disabled:e.formSafe.allDisabled,size:e.formSafe.controlSize})],2)],1):e._e()},HC=[];const qC={name:"FyFormMenu",inject:["formSafe"],computed:{menuSpan(){return this.formSafe.parentOption.menuSpan||24},styleName(){return this.menuSpan!==24?{padding:0}:{}}}},Pl={};var GC=u(qC,UC,HC,!1,JC,null,null,null);function JC(e){for(let n in Pl)this[n]=Pl[n]}const ui=function(){return GC.exports}();var QC=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("ElInput",{staticClass:"avue-input",attrs:{size:e.size,clearable:e.clearableVal,type:e.typeParam,maxlength:e.maxlength,minlength:e.minlength,"show-password":e.typeParam==="password"?e.showPassword:!1,rows:e.rows,autosize:{minRows:e.minRows,maxRows:e.maxRows},"prefix-icon":e.prefixIcon,"suffix-icon":e.suffixIcon,readonly:e.readonly,placeholder:e.placeholder,"show-word-limit":e.showWordLimit,disabled:e.disabled,autocomplete:e.autocomplete},on:{keyup:function(i){if(!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter"))return null;e.isSearch&&e.appendClick()},focus:e.handleFocus,blur:e.handleBlur},nativeOn:{click:function(i){return e.handleClick.apply(null,arguments)}},scopedSlots:e._u([e.prepend?{key:"prepend",fn:function(){return[t("span",{on:{click:function(i){return e.prependClick()}}},[e._v(e._s(e.prepend))])]},proxy:!0}:null,e.append?{key:"append",fn:function(){return[t("span",{on:{click:function(i){return e.appendClick()}}},[e._v(e._s(e.append))])]},proxy:!0}:e.isSearch?{key:"append",fn:function(){return[t("ElButton",{attrs:{icon:"el-icon-search"},on:{click:function(i){return e.appendClick()}}})]},proxy:!0}:null],null,!0),model:{value:e.text,callback:function(i){e.text=i},expression:"text"}})},YC=[];const XC={name:"FyInput",mixins:[P,D],props:{showPassword:{type:Boolean,default:!0},showWordLimit:{type:Boolean,default:!1},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"}}},Dl={};var ZC=u(XC,QC,YC,!1,eS,null,null,null);function eS(e){for(let n in Dl)this[n]=Dl[n]}const di=function(){return ZC.exports}();var tS=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"avue-input-color"},[t("ElInput",{ref:"main",attrs:{placeholder:e.placeholder,size:e.size,readonly:e.readonly,clearable:e.clearableVal,disabled:e.disabled},nativeOn:{click:function(i){return e.handleClick.apply(null,arguments)}},scopedSlots:e._u([{key:"append",fn:function(){return[t("ElColorPicker",{attrs:{size:"mini","popper-class":e.popperClass,"color-format":e.colorFormat,disabled:e.disabled,"show-alpha":e.showAlpha,predefine:e.predefine},model:{value:e.text,callback:function(i){e.text=i},expression:"text"}})]},proxy:!0}]),model:{value:e.text,callback:function(i){e.text=i},expression:"text"}})],1)},nS=[];const iS={name:"FyInputColor",mixins:[P,D],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}}},Ll={};var sS=u(iS,tS,nS,!1,aS,null,null,null);function aS(e){for(let n in Ll)this[n]=Ll[n]}const pi=function(){return sS.exports}();var rS=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"avue-input-icon"},[t("ElInput",{ref:"main",attrs:{placeholder:e.placeholder,size:e.size,clearable:e.clearableVal,disabled:e.disabled},on:{focus:e.handleShow},nativeOn:{click:function(i){return e.handleClick.apply(null,arguments)}},scopedSlots:e._u([{key:"append",fn:function(){return[t("IconTemp",{attrs:{text:e.text,size:28,small:e.size==="mini"},on:{click:e.handleShow}})]},proxy:!0}]),model:{value:e.text,callback:function(i){e.text=i},expression:"text"}}),e.box?t("div",[t("ElementDialog",{attrs:{title:e.placeholder,visible:e.box,width:e.dialogWidth},on:{"update:visible":function(i){e.box=i}}},[t("div",{staticClass:"avue-input-icon__filter"},[t("ElInput",{attrs:{placeholder:"请输入",size:e.size},model:{value:e.filterText,callback:function(i){e.filterText=i},expression:"filterText"}})],1),t("FyTabs",{attrs:{option:e.option},on:{change:e.handleTabs}}),t("div",{staticClass:"avue-input-icon__list"},e._l(e.list,function(i,s){return t("div",{key:s,class:["avue-input-icon__item",{active:e.text===i}],on:{click:function(a){return e.handleSubmit(i.value)}}},[t("IconTemp",{attrs:{text:i.value,small:e.size==="mini"}}),t("p",[e._v(e._s(i.label||i.value))])],1)}),0)],1)],1):e._e()],1)},lS=[];const oS={name:"FyInputIcon",mixins:[P,D],props:{dialogWidth:{type:String,default:"80%"},iconList:{type:Array,default:()=>[]}},data(){return{filterText:"",box:!1,tabs:{}}},computed:{list(){let e=(this.tabs.list||[]).map(n=>!n.value&&!n.label?{value:n}:n);return this.filterText&&(e=e.filter(n=>n.label.indexOf(this.filterText)!==-1)),e},option(){return{column:this.iconList}}},created(){this.tabs=this.iconList[0]||{}},methods:{handleTabs(e){this.tabs=e},handleSubmit(e){this.box=!1,this.text=e,this.handleChange(e)},handleShow(){this.$refs.main.blur(),!(this.disabled||this.readonly)&&(this.box=!0)}}},Rl={};var cS=u(oS,rS,lS,!1,uS,null,null,null);function uS(e){for(let n in Rl)this[n]=Rl[n]}const hi=function(){return cS.exports}();var dS=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"avue-input-map"},[t("ElInput",{ref:"main",attrs:{size:e.size,clearable:e.clearableVal,rows:e.rows,autosize:{minRows:e.minRows,maxRows:e.maxRows},disabled:e.disabled,type:"textarea",placeholder:e.placeholder},on:{clear:e.handleClear,focus:e.handleShow},nativeOn:{click:function(i){return e.handleClick.apply(null,arguments)}},model:{value:e.address,callback:function(i){e.address=i},expression:"address"}}),e.box?t("div",[t("ElementDialog",{attrs:{"show-full-screen":"",width:e.dialogWidth,title:e.placeholder,visible:e.box},on:{"update:visible":function(i){e.box=i},close:e.handleClose},scopedSlots:e._u([{key:"footer",fn:function(){return[e.disabled||e.readonly?e._e():t("ElButton",{attrs:{type:"primary",size:e.size,icon:"el-icon-check"},on:{click:e.handleSubmit}},[e._v(" 确 定 ")])]},proxy:!0}],null,!1,1816263233)},[e.box?t("div",{staticClass:"avue-input-map__content"},[t("ElInput",{staticClass:"avue-input-map__content-input",attrs:{id:"map__input",size:e.size,readonly:e.disabled,clearable:"",placeholder:"输入关键字选取地点"},on:{clear:e.clear},model:{value:e.formattedAddress,callback:function(i){e.formattedAddress=i},expression:"formattedAddress"}}),t("div",{staticClass:"avue-input-map__content-box"},[t("div",{staticClass:"avue-input-map__content-container",attrs:{id:"map__container",tabindex:"0"}}),t("div",{staticClass:"avue-input-map__content-result",attrs:{id:"map__result"}})])],1):e._e()])],1):e._e()],1)},pS=[];const hS={name:"FyInputMap",mixins:[P,D],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 e;return(e=this.text)==null?void 0:e[0]},latitude(){var e;return(e=this.text)==null?void 0:e[1]},title(){return this.disabled||this.readonly?"查看":"选择"}},watch:{poi(e){this.formattedAddress=e.formattedAddress},value(e){d.isBlank(e)&&(this.poi={},this.address="")},text(e){d.isBlank(e)||(this.poi={longitude:e[0],latitude:e[1],formattedAddress:e[2]},this.address=e[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}},destroyed(){this.service=null},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(e,n){this.clearMarker(),this.marker=new window.AMap.Marker({position:[e,n]}),this.marker.setMap(this.map)},clearMarker(){this.marker&&(this.marker.setMap(null),this.marker=null)},getAddress(e,n){this.service=new window.AMap.service("AMap.Geocoder",()=>{new window.AMap.Geocoder({}).getAddress([e,n],(i,s)=>{if(i==="complete"&&s.info==="OK"){const a=s.regeocode;this.poi=Object.assign(a,{longitude:e,latitude:n});const r=document.createElement("div"),l=document.createElement("img");l.src="//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-default.png",r.appendChild(l);const o=document.createElement("span");o.className="avue-input-map__marker",o.innerHTML=this.poi.formattedAddress,r.appendChild(o),this.marker.setContent(r)}})})},handleClose(){window.poiPicker.clearSearchResults()},addClick(){this.map.on("click",e=>{if(this.disabled||this.readonly)return;const n=e.lnglat,t=n.P||n.Q,i=n.R;this.addMarker(i,t),this.getAddress(i,t)})},init(e){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(),e()},initPoip(){window.AMapUI.loadUI(["misc/PoiPicker"],e=>{const n=new e({input:"map__input",placeSearchOptions:{map:this.map,pageSize:10},searchResultsContainer:"map__result"});this.poiPickerReady(n)})},poiPickerReady(e){window.poiPicker=e,e.on("poiPicked",n=>{this.clearMarker();const t=n.source,i=n.item;this.poi=Object.assign(i,{formattedAddress:i.name,longitude:i.location.R,latitude:i.location.P||i.location.Q}),t!=="search"&&e.searchByKeyword(i.name)})}}},Nl={};var mS=u(hS,dS,pS,!1,fS,null,null,null);function fS(e){for(let n in Nl)this[n]=Nl[n]}const mi=function(){return mS.exports}();var vS=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("ElInputNumber",{staticClass:"avue-input-number",attrs:{precision:e.precision,placeholder:e.placeholder,size:e.size,min:e.min,max:e.max,step:e.step,clearable:e.clearableVal,readonly:e.readonly,"controls-position":e.controlsPosition,controls:e.controls,label:e.placeholder,disabled:e.disabled},on:{focus:e.handleFocus,blur:e.handleBlur},nativeOn:{click:function(i){return e.handleClick.apply(null,arguments)}},model:{value:e.text,callback:function(i){e.text=e._n(i)},expression:"text"}})},_S=[];const gS={name:"FyInputNumber",mixins:[P,D],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}}},jl={};var yS=u(gS,vS,_S,!1,bS,null,null,null);function bS(e){for(let n in jl)this[n]=jl[n]}const fi=function(){return yS.exports}();var xS=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"avue-input-table"},[t("ElInput",{ref:"main",attrs:{size:e.size,value:e.labelShow,clearable:e.clearableVal,placeholder:e.placeholder,disabled:e.disabled},on:{clear:e.handleClear,focus:e.handleShow},nativeOn:{click:function(i){return e.handleClick.apply(null,arguments)}}}),e.box?t("div",[t("ElementDialog",{attrs:{width:e.dialogWidth,title:e.placeholder,visible:e.box},on:{"update:visible":function(i){e.box=i}},scopedSlots:e._u([{key:"footer",fn:function(){return[t("ElButton",{attrs:{type:"primary",size:e.size,icon:"el-icon-check"},on:{click:e.setVal}},[e._v(" 确 定 ")])]},proxy:!0}],null,!1,2921262159)},[e.box?t("FyCurd",{ref:"crud",staticClass:"avue-input-table__crud",attrs:{option:e.option,data:e.data,"table-loading":e.loading,search:e.search,page:e.page},on:{"update:search":function(i){e.search=i},"update:page":function(i){e.page=i},"on-load":e.onList,"search-change":e.handleSearchChange,"search-reset":e.handleSearchChange,"current-row-change":e.handleCurrentRowChange}}):e._e()],1)],1):e._e()],1)},$S=[];const wS={name:"FyInputTable",mixins:[P,D],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(e){d.isBlank(e)&&(this.active={},this.object={})},text(e){this.created||d.isBlank(e)||typeof this.onLoad=="function"&&this.onLoad({value:this.text},n=>{this.active=n,this.object=n,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(e){this.active=e},handleSearchChange(e,n){this.page.page=1,this.onList(),n&&n()},onList(){this.loading=!0,typeof this.onLoad=="function"&&this.onLoad({page:this.page,data:this.search},e=>{this.page.total=e.total,this.data=e.data,this.loading=!1;const n=this.data.find(t=>t[this.valueKey]===this.object[this.valueKey]);setTimeout(()=>this.$refs.crud.setCurrentRow(n))})}}},zl={};var CS=u(wS,xS,$S,!1,SS,null,null,null);function SS(e){for(let n in zl)this[n]=zl[n]}const vi=function(){return CS.exports}();var kS=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("ElSelect",{ref:"main",staticClass:"avue-input-tree",attrs:{size:e.size,multiple:e.multiple,"multiple-limit":e.limit,"collapse-tags":e.tags,value:e.labelShow,clearable:e.clearableVal,placeholder:e.placeholder,"popper-class":e.popperClass,"popper-append-to-body":e.popperAppendToBody,disabled:e.disabled},on:{click:e.handleClick,focus:e.handleFocus,blur:e.handleBlur,clear:e.handleClear}},[e.filter?t("div",{staticClass:"avue-input__filter"},[t("ElInput",{attrs:{size:"mini",placeholder:e.filterText},model:{value:e.filterValue,callback:function(i){e.filterValue=i},expression:"filterValue"}})],1):e._e(),t("ElOption",{attrs:{value:e.text}},[t("ElTree",{ref:"tree",staticClass:"avue-input__select",attrs:{data:e.dicList,lazy:e.lazy,load:e.handleTreeLoad,"node-key":e.valueKey,accordion:e.accordion,"icon-class":e.iconClass,"show-checkbox":e.multiple,"expand-on-click-node":e.expandOnClickNode,props:e.treeProps,"check-strictly":e.checkStrictly,"highlight-current":e.multiple!==!0,"current-node-key":e.currentNodeKey,"filter-node-method":e.filterNode,"default-checked-keys":e.keysList,"default-expanded-keys":e.defaultExpandedKeys?e.defaultExpandedKeys:e.keysList,"default-expand-all":e.defaultExpandAll},on:{check:e.checkChange,"node-click":function(i){return i.target!==i.currentTarget?null:e.handleNodeClick.apply(null,arguments)}},scopedSlots:e._u([{key:"default",fn:function(i){var s=i.data;return[t("div",{staticClass:"avue-input__item"},[e.$scopedSlots.default?e._t("default",null,{label:e.labelKey,value:e.valueKey,item:s}):[t("span",{class:{"avue--disabled":s[e.disabledKey]}},[e._v(e._s(s[e.labelKey]))]),s[e.descKey]?t("span",{staticClass:"avue-input__desc"},[e._v(e._s(s[e.descKey]))]):e._e()]],2)]}}],null,!0)})],1)],1)},ES=[];const FS={name:"FyInputTree",mixins:[P,D],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:"",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(t=>this.getLabelText(t))}},watch:{text(){this.init()},dic:{handler(e){this.dicList=e},immediate:!0},dicList:{handler(){this.init()},immediate:!0},filterValue(e){this.$refs.tree.filter(e)}},methods:{handleClear(){this.text=this.multiple?[]:"",this.node=[],this.filterValue="",this.$refs.tree.setCurrentKey(null),this.$refs.tree.setCheckedKeys([])},handleTreeLoad(e,n){const t=i=>{const s=(a,r,l)=>{a.forEach(o=>{o[this.valueKey]===r?o[this.childrenKey]=l:o[this.childrenKey]&&s(o[this.childrenKey])})};s(this.dicList,e.key,i),n(i)};this.treeLoad&&this.treeLoad(e,t)},filterNode(e,n){return e?n[this.labelKey].toLowerCase().indexOf(e.toLowerCase())!==-1:!0},checkChange(e,n,t,i){this.text.splice(0,this.text.length),this.$refs.tree.getCheckedNodes(this.leafOnly,!1).forEach(a=>this.text.push(a[this.valueKey])),typeof this.checked=="function"&&this.checked(e,n,t,i)},getHalfList(){let e=this.$refs.tree.getCheckedNodes(!1,!0);return e=e.map(n=>n[this.valueKey]),e},init(){this.$nextTick(()=>{if(this.node=[],this.multiple)this.$refs.tree.getCheckedNodes(this.leafOnly,!1).forEach(n=>{this.node.push(n)});else{const e=this.$refs.tree.getNode(this.text);if(e){const n=e.data;this.$refs.tree.setCurrentKey(n[this.valueKey]),this.node.push(n)}}}),this.disabledParentNode(this.dic,this.parent)},disabledParentNode(e,n){e.forEach(t=>{const i=t[this.childrenKey];d.isBlank(i)||(n||(t.disabled=!0),this.disabledParentNode(i,n))})},handleNodeClick(e,n,t){e.disabled||(typeof this.nodeClick=="function"&&this.nodeClick(e,n,t),!this.multiple&&(d.isBlank(e[this.childrenKey])&&!this.multiple||this.parent)&&(this.text=e[this.valueKey],this.$refs.main.blur()))}}},Kl={};var IS=u(FS,kS,ES,!1,TS,null,null,null);function TS(e){for(let n in Kl)this[n]=Kl[n]}const _i=function(){return IS.exports}();var BS=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"avue-progress"},[t("ElProgress",{attrs:{type:e.type,color:e.color,width:e.width,"text-inside":"","show-text":e.showText,"stroke-width":e.strokeWidth,percentage:e.percentage}})],1)},AS=[];const OS={name:"FyProgress",props:{showText:{type:Boolean},width:{type:[Number,String]},strokeWidth:{type:[Number,String]},type:{type:String},color:{type:String},percentage:{type:[Number]}}},Wl={};var MS=u(OS,BS,AS,!1,PS,null,null,null);function PS(e){for(let n in Wl)this[n]=Wl[n]}const gi=function(){return MS.exports}();var DS=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"avue-radio"},[t("ElRadioGroup",{attrs:{size:e.size,disabled:e.disabled},nativeOn:{click:function(i){return e.handleClick.apply(null,arguments)}},model:{value:e.text,callback:function(i){e.text=i},expression:"text"}},e._l(e.dic,function(i,s){return t(e.componentName,{key:s,tag:"Component",attrs:{label:i[e.valueKey],border:e.border,readonly:e.readonly,disabled:i[e.disabledKey]}},[e._v(" "+e._s(i[e.labelKey])+" ")])}),1)],1)},LS=[];const RS={name:"FyRadio",mixins:[P,D],props:{value:[String,Object,Number,Boolean,Array]},data(){return{name:"radio"}}},Vl={};var NS=u(RS,DS,LS,!1,jS,null,null,null);function jS(e){for(let n in Vl)this[n]=Vl[n]}const yi=function(){return NS.exports}();var zS=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("ElRate",{attrs:{max:e.max,"low-threshold":e.lowThreshold,"high-threshold":e.highThreshold,"disabled-void-color":e.disabledVoidColor,"disabled-void-icon-class":e.disabledVoidIconClass,"allow-half":e.allowHalf,readonly:e.readonly,texts:e.texts,"show-score":e.showScore,"score-template":e.scoreTemplate,"show-text":e.showText,"icon-classes":e.iconClasses,"void-icon-class":e.voidIconClass,disabled:e.disabled,colors:e.colors},nativeOn:{click:function(i){return e.handleClick.apply(null,arguments)}},model:{value:e.text,callback:function(i){e.text=i},expression:"text"}})},KS=[];const WS={name:"FyRate",mixins:[P,D],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:{}},Ul={};var VS=u(WS,zS,KS,!1,US,null,null,null);function US(e){for(let n in Ul)this[n]=Ul[n]}const bi=function(){return VS.exports}();var HS=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("ElSelect",{ref:"main",staticClass:"avue-select",attrs:{size:e.size,loading:e.loading,"loading-text":e.loadingText,multiple:e.multiple,filterable:e.remote?!0:e.filterable,remote:e.remote,readonly:e.readonly,"no-match-text":e.noMatchText,"no-data-text":e.noDataText,"remote-method":e.remote?e.handleRemoteMethod:void 0,"popper-class":e.popperClass,"popper-append-to-body":e.popperAppendToBody,"collapse-tags":e.tags,clearable:e.clearableVal,placeholder:e.placeholder,"multiple-limit":e.limit,"allow-create":e.allowCreate,"default-first-option":e.defaultFirstOption,disabled:e.disabled},on:{focus:e.handleFocus,blur:e.handleBlur,change:e.changeSelect},nativeOn:{click:function(i){return e.handleClick.apply(null,arguments)}},model:{value:e.text,callback:function(i){e.text=i},expression:"text"}},[e.group?e._l(e.netDic,function(i,s){return t("ElOptionGroup",{key:s,attrs:{label:e.getLabelText(i)}},e._l(i[e.groupsKey],function(a,r){return t("ElOption",{key:r,attrs:{disabled:a[e.disabledKey],label:e.getLabelText(a),value:a[e.valueKey]}},[e.$scopedSlots.default?e._t("default",null,{label:e.labelKey,value:e.valueKey,item:a}):[t("span",[e._v(e._s(e.getLabelText(a)))]),a[e.descKey]?t("span",{staticClass:"avue-select__desc"},[e._v(e._s(a[e.descKey]))]):e._e()]],2)}),1)}):[e.all&&e.multiple?t("ElCheckbox",{staticClass:"avue-select__check",on:{change:e.selectAll},model:{value:e.checkAll,callback:function(i){e.checkAll=i},expression:"checkAll"}},[e._v(" 全选 ")]):e._e(),e._l(e.netDic,function(i,s){return t("ElOption",{key:s,attrs:{disabled:i[e.disabledKey],label:e.getLabelText(i),value:i[e.valueKey]}},[e.$scopedSlots.default?e._t("default",null,{label:e.labelKey,value:e.valueKey,item:i}):[t("span",[e._v(e._s(e.getLabelText(i)))]),i[e.descKey]?t("span",{staticClass:"avue-select__desc"},[e._v(e._s(i[e.descKey]))]):e._e()]],2)})]],2)},qS=[];const GS={name:"FySelect",mixins:[P,D],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(e){d.isBlank(e)||this.remote&&!this.created&&(this.created=!0,this.handleRemoteMethod(this.multiple?this.text.join(be):this.text))},dic:{handler(e){this.netDic=e},immediate:!0}},mounted(){this.drag&&this.setSort()},methods:{setSort(){if(!window.Sortable){ce.logs("Sortable");return}const e=this.$refs.main.$el.querySelectorAll(".el-select__tags > span")[0];window.Sortable.create(e,{animation:100,onEnd:n=>{const t=this.value.splice(n.oldIndex,1)[0];this.value.splice(n.newIndex,0,t)}})},handleRemoteMethod(e){this.loading=!0,he({column:this.column,value:e}).then(n=>{this.loading=!1,this.netDic=n})},selectAll(){this.text=[],this.checkAll&&this.netDic.forEach(e=>{this.text.push(e[this.valueKey])})},changeSelect(e){this.checkAll=e.length===this.netDic.length}}},Hl={};var JS=u(GS,HS,qS,!1,QS,null,null,null);function QS(e){for(let n in Hl)this[n]=Hl[n]}const xi=function(){return JS.exports}();var YS=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("ElSlider",{attrs:{disabled:e.disabled,vertical:e.vertical,height:e.setPx(e.height),step:e.step,min:e.min,max:e.max,range:e.range,"show-stops":e.showStops,"show-tooltip":e.showTooltip,"show-input":e.showInput,"show-input-controls":e.showInputControls,"input-size":e.size,"tooltip-class":e.tooltipClass,marks:e.marks,"format-tooltip":e.formatTooltip},nativeOn:{click:function(i){return e.handleClick.apply(null,arguments)}},model:{value:e.text,callback:function(i){e.text=i},expression:"text"}})},XS=[];const ZS={name:"FySlider",mixins:[P,D],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:w}},ql={};var ek=u(ZS,YS,XS,!1,tk,null,null,null);function tk(e){for(let n in ql)this[n]=ql[n]}const $i=function(){return ek.exports}();var nk=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("ElSwitch",{attrs:{"active-text":e.active[e.labelKey],"active-value":e.active[e.valueKey],"inactive-value":e.inactive[e.valueKey],"inactive-text":e.inactive[e.labelKey],"active-icon-class":e.activeIconClass,"inactive-icon-class":e.inactiveIconClass,"active-color":e.activeColor,"inactive-color":e.inactiveColor,width:e.len,disabled:e.disabled,readonly:e.readonly,size:e.size},nativeOn:{click:function(i){return e.handleClick.apply(null,arguments)}},model:{value:e.text,callback:function(i){e.text=i},expression:"text"}})},ik=[];const sk={name:"FySwitch",mixins:[P,D],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]||{}}}},Gl={};var ak=u(sk,nk,ik,!1,rk,null,null,null);function rk(e){for(let n in Gl)this[n]=Gl[n]}const wi=function(){return ak.exports}();var lk=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"avue-tabs"},[t("ElTabs",{attrs:{"tab-position":e.parentOption.position,type:e.parentOption.type},model:{value:e.active,callback:function(i){e.active=i},expression:"active"}},e._l(e.columnOption,function(i,s){return t("ElTabPane",{key:s,attrs:{name:`${s}`,disabled:i.disabled},scopedSlots:e._u([{key:"label",fn:function(){return[t("span",[t("i",{class:i.icon}),e._v(" "+e._s(i.label)+" ")])]},proxy:!0}],null,!0)})}),1)],1)},ok=[];const ck={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(e){this.active=`${e}`}}},Jl={};var uk=u(ck,lk,ok,!1,dk,null,null,null);function dk(e){for(let n in Jl)this[n]=Jl[n]}const Ci=function(){return uk.exports}();var pk=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"avue-time"},[t(e.componentName,{tag:"Component",attrs:{"popper-class":e.popperClass,"is-range":e.isRange,size:e.size,editable:e.editable,"default-value":e.defaultValue,"range-separator":e.rangeSeparator,"arrow-control":e.arrowControl,"start-placeholder":e.startPlaceholder||"开始","end-placeholder":e.endPlaceholder||"结束",format:e.format,readonly:e.readonly,clearable:e.clearableVal,"picker-options":e.pickerOptions,"value-format":e.valueFormat,placeholder:e.placeholder,disabled:e.disabled},on:{change:e.handleChange},nativeOn:{click:function(i){return e.handleClick.apply(null,arguments)}},model:{value:e.text,callback:function(i){e.text=i},expression:"text"}})],1)},hk=[];const mk={name:"FyTime",mixins:[P,D],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 e=this.pickerOptions||{};return e.start||e.end||e.step?"elTimeSelect":"elTimePicker"},isRange(){return this.type==="timerange"}},watch:{text(){Array.isArray(this.text)&&d.isBlank(this.text)&&(this.text=this.text.join(","))}},methods:{}},Ql={};var fk=u(mk,pk,hk,!1,vk,null,null,null);function vk(e){for(let n in Ql)this[n]=Ql[n]}const Si=function(){return fk.exports}();var _k=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"avue-title"},[t("p",{style:e.styles},[e._v(" "+e._s(e.text)+" ")])])},gk=[];const yk={name:"FyTitle",mixins:[P,D],props:{styles:{type:Object,default:()=>({})}}},Yl={};var bk=u(yk,_k,gk,!1,xk,null,null,null);function xk(e){for(let n in Yl)this[n]=Yl[n]}const ki=function(){return bk.exports}();var $k=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"avue-tree"},[e.optVal(e.option.filter,!0)?t("div",{staticClass:"avue-tree__filter"},[t("ElInput",{attrs:{placeholder:e.optVal(e.option.filterText,"输入关键字进行过滤"),size:e.size},model:{value:e.filterValue,callback:function(i){e.filterValue=i},expression:"filterValue"}}),e.optVal(e.option.addBtn,!0)?t("ElButton",{directives:[{name:"permission",rawName:"v-permission",value:e.getPermission("addBtn"),expression:"getPermission('addBtn')"}],attrs:{size:e.size,icon:"el-icon-plus"},on:{click:e.parentAdd}}):e._t("addBtn")],2):e._e(),t("ElScrollbar",{staticClass:"avue-tree__content"},[t("ElTree",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"tree",attrs:{data:e.data,lazy:e.lazy,load:e.treeLoad,props:e.treeProps,"icon-class":e.iconClass,indent:e.indent,"highlight-current":!e.multiple,"show-checkbox":e.multiple,accordion:e.accordion,"node-key":e.valueKey,"check-strictly":e.checkStrictly,"check-on-click-node":e.checkOnClickNode,"filter-node-method":e.filterNode,"expand-on-click-node":e.expandOnClickNode,"default-expand-all":e.defaultExpandAll,"default-expanded-keys":e.defaultExpandedKeys},on:{"check-change":e.handleCheckChange,"node-click":e.nodeClick,"node-contextmenu":e.nodeContextmenu},scopedSlots:e._u([{key:"default",fn:function(i){var s=i.node,a=i.data;return[e._t("default",function(){return[t("span",{staticClass:"el-tree-node__label"},[t("span",[e._v(e._s(s.label))])])]},{node:s,data:a})]}}],null,!0)})],1),e.client.show&&e.menu?t("div",{staticClass:"el-cascader-panel is-bordered avue-tree__menu",style:e.styleName,on:{click:function(i){e.client.show=!1}}},[e.optVal(e.option.addBtn,!0)?t("div",{directives:[{name:"permission",rawName:"v-permission",value:e.getPermission("addBtn"),expression:"getPermission('addBtn')"}],staticClass:"avue-tree__item",on:{click:e.rowAdd}},[e._v(" "+e._s(e.menuIcon("addBtn"))+" ")]):e._e(),e.optVal(e.option.editBtn,!0)?t("div",{directives:[{name:"permission",rawName:"v-permission",value:e.getPermission("editBtn"),expression:"getPermission('editBtn')"}],staticClass:"avue-tree__item",on:{click:e.rowEdit}},[e._v(" "+e._s(e.menuIcon("editBtn"))+" ")]):e._e(),e.optVal(e.option.delBtn,!0)?t("div",{directives:[{name:"permission",rawName:"v-permission",value:e.getPermission("delBtn"),expression:"getPermission('delBtn')"}],staticClass:"avue-tree__item",on:{click:e.rowRemove}},[e._v(" "+e._s(e.menuIcon("delBtn"))+" ")]):e._e(),e._t("menu",null,{node:e.node})],2):e._e(),e.box?t("div",[t("ElementDialog",{attrs:{title:e.node[e.labelKey]||e.title,visible:e.box,"before-close":e.hide,width:e.optVal(e.option.dialogWidth,"50%")},on:{"update:visible":function(i){e.box=i}}},[t("FyForm",{ref:"form",attrs:{option:e.formOption},on:{submit:e.handleSubmit},model:{value:e.form,callback:function(i){e.form=i},expression:"form"}})],1)],1):e._e()],1)},wk=[];const Ck={name:"FyTree",directives:{permission:Qe},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:w(this.client.y-10),left:w(this.client.x-10)}},treeProps(){return Object.assign(this.props,{isLeaf:this.leafKey})},menu(){return M(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||I.leaf},valueKey(){return this.props.value||I.value},labelKey(){return this.props.label||I.label},childrenKey(){return this.props.children||I.children},nodeKey(){return this.option.nodeKey||I.nodeKey},defaultExpandAll(){return this.option.defaultExpandAll},defaultExpandedKeys(){return this.option.defaultExpandedKeys},formOption(){return Object.assign(this.option.formOption||{},{submitText:this.addText})}},watch:{filterValue(e){this.$refs.tree.filter(e)},value(e){this.form=e},form(e){this.$emit("input",e),this.$emit("change",e)}},mounted(){document.addEventListener("click",e=>{this.$el.contains(e.target)||(this.client.show=!1)}),this.initFun()},methods:{optVal:M,menuIcon(e){return M(this.option[`${e}Text`],e)},getPermission(e){return typeof this.permission=="function"?this.permission(e,this.node.data||{}):d.isBlank(this.permission[e])?!0:this.permission[e]},initFun(){["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"].forEach(e=>{this[e]=this.$refs.tree[e]})},nodeContextmenu(e,n,t){this.node=t,this.client.x=e.clientX,this.client.y=e.clientY,this.client.show=!0},handleCheckChange(e,n,t){this.$emit("check-change",e,n,t)},handleSubmit(e,n){this.addFlag?this.save(e,n):this.update(e,n)},nodeClick(e,n,t){this.client.show=!1,this.$emit("node-click",e,n,t)},filterNode(e,n){return typeof this.filterNodeMethod=="function"?this.filterNodeMethod(e,n):e?n[this.labelKey].indexOf(e)!==-1:!0},hide(e){const n=()=>{e&&e(),this.node={},this.form={},this.box=!1};typeof this.beforeClose=="function"?this.beforeClose(n,this.type):n()},save(e,n){const t=i=>{i=i||this.form,this.type==="add"?this.$refs.tree.append(i,this.node.data[this.valueKey]):this.type==="parentAdd"&&this.$refs.tree.append(i),this.hide(),n()};this.$emit("save",this.node,e,t,n)},update(e,n){const t=i=>{i=i||this.form;const s=i[this.valueKey];this.node.data=this.form;const{parentList:a,index:r}=this.findData(s);if(a){const l=a.splice(r,1)[0];i[this.childrenKey]=l[this.childrenKey],a.splice(r,0,i)}this.hide(),n()};this.$emit("update",this.node,e,t,n)},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 e=()=>{this.client.show=!1,this.box=!0};typeof this.beforeOpen=="function"?this.beforeOpen(e,this.type):e()},rowRemove(){this.client.show=!1;const e=()=>{this.$refs.tree.remove(this.node.data[this.valueKey])};this.$emit("del",this.node,e)},findData(e){let n={};const t=(i,s)=>{i.forEach((a,r)=>{a[this.valueKey]===e&&(n={item:a,index:r,parentList:i,parent:s}),a[this.childrenKey]&&t(a[this.childrenKey],a)})};return t(this.data),n}}},Xl={};var Sk=u(Ck,$k,wk,!1,kk,null,null,null);function kk(e){for(let n in Xl)this[n]=Xl[n]}const Ei=function(){return Sk.exports}(),Ek=e=>{const{region:n,endpoint:t,accessKeyId:i,accessKeySecret:s,bucket:a}=e;return new window.OSS({region:n,endpoint:t,accessKeyId:i,accessKeySecret:s,bucket:a})},Fk=(e,n,t)=>{let{scope:i,deadline:s}=t;var a=JSON.stringify({scope:i,deadline:s}),r=Tk(Ik(a)),l=window.CryptoJS.HmacSHA1(r,n),o=l.toString(window.CryptoJS.enc.Base64),c=e+":"+Bk(o)+":"+r;return c};function Ik(e){var n,t,i,s;for(n="",i=e.length,t=0;t<i;t++)s=e.charCodeAt(t),s>=1&&s<=127?n+=e.charAt(t):s>2047?(n+=String.fromCharCode(224|s>>12&15),n+=String.fromCharCode(128|s>>6&63),n+=String.fromCharCode(128|s>>0&63)):(n+=String.fromCharCode(192|s>>6&31),n+=String.fromCharCode(128|s>>0&63));return n}var Y="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 Tk(e){var n,t,i,s,a,r;for(i=e.length,t=0,n="";t<i;){if(s=e.charCodeAt(t++)&255,t==i){n+=Y.charAt(s>>2),n+=Y.charAt((s&3)<<4),n+="==";break}if(a=e.charCodeAt(t++),t==i){n+=Y.charAt(s>>2),n+=Y.charAt((s&3)<<4|(a&240)>>4),n+=Y.charAt((a&15)<<2),n+="=";break}r=e.charCodeAt(t++),n+=Y.charAt(s>>2),n+=Y.charAt((s&3)<<4|(a&240)>>4),n+=Y.charAt((a&15)<<2|(r&192)>>6),n+=Y.charAt(r&63)}return n}var Bk=function(e){return e=e.replace(/\+/g,"-"),e=e.replace(/\//g,"_"),e},Ak=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"avue-ueditor"},[t("div",{ref:"toolbar",staticClass:"fy-editor-toolbar"}),t("div",{ref:"editor",staticClass:"fy-editor"})])},Ok=[];const Mk={name:"FyUEditor",props:{data:{type:Object,default:()=>({})},headers:{type:Object,default:()=>({})},customConfig:{type:Object,default:()=>({})},toolbarConfig:{type:Object,default:()=>({})},propsHttp:{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(e){e?this.editor.disable():this.editor.enable()},value(e){e?this.editor.setHtml(e):this.editor.clear()}},mounted(){this.initEdit()},beforeDestroy(){var e;(e=this.editor)==null||e.destroy()},methods:{initEdit(){const e="default",l=this.customConfig,{onFocus:n,onBlur:t,onChange:i}=l,s=Ie(l,["onFocus","onBlur","onChange"]),a=f({placeholder:this.placeholder,readOnly:this.disabled,MENU_CONF:{uploadImage:{customUpload:o=>_(this,null,function*(){const c=yield this.uploadFile(o);this.editor.dangerouslyInsertHtml(c)})},uploadVideo:{customUpload:o=>_(this,null,function*(){const c=yield this.uploadFile(o);this.editor.dangerouslyInsertHtml(c)})}},onFocus:()=>{this.$emit("focus",this.value)},onBlur:o=>{const c=o.getHtml();this.$emit("blur",c)},onChange:o=>{const c=o.getHtml();this.$emit("input",c)}},s);this.editor=Object.seal(sa.createEditor({selector:this.$refs.editor,config:a,html:this.value,mode:e}));const r=f({},this.toolbarConfig);this.toolbar=sa.createToolbar({editor:this.editor,selector:this.$refs.toolbar,config:r,mode:e})},uploadFile(e){return new Promise((n,t)=>{const i=Object.assign(this.headers,{"Content-Type":"multipart/form-data"});let s={},a;const r=new FormData;let l=this.action;if(r.append(this.fileName,e),Object.keys(this.data).forEach(o=>{r.append(o,this.data[o])}),this.isQiniuOSS){s=this.qiniu;const o=Fk(s.AK,s.SK,{scope:s.scope,deadline:new Date().getTime()+s.deadline*3600});r.append("token",o),l="http://up.qiniu.com/"}else this.isAliOSS&&(s=this.ali,a=Ek({region:s.region,endpoint:s.endpoint,accessKeyId:s.accessKeyId,accessKeySecret:s.accessKeySecret,bucket:s.bucket}));(()=>this.isAliOSS?a.put(e.name,e):this.$axios.post(l,r,{headers:i}))().then(o=>{let c;this.isAliOSS?c=o:this.isQiniuOSS?(c=o.data,c.key=s.url+c.key):typeof this.resKey=="function"?c=this.resKey(o.data):(c=Ge(o.data,this.resKey),c=c[this.urlKey]);const p=this.homeUrl+c;n(p)}).catch(o=>{t(o)})})},getUEContent(){return this.editor.getHtml()}}},Zl={};var Pk=u(Mk,Ak,Ok,!1,Dk,null,null,null);function Dk(e){for(let n in Zl)this[n]=Zl[n]}const Fi=function(){return Pk.exports}();let X,ee;const _e={width:200,height:200},F={text:"avueJS",fontFamily:"microsoft yahei",color:"#999",fontSize:16,opacity:100,bottom:10,right:10,ratio:1};function Yc(e,n){const t=new FileReader;t.readAsDataURL(e),t.onload=function(i){n(i.target.result)}}function Lk(e,n={},t){const{text:i,fontFamily:s,color:a,fontSize:r,opacity:l,bottom:o,right:c,ratio:p}=n;h(),Yc(e,m);function h(){F.text=i||F.text,F.fontFamily=s||F.fontFamily,F.color=a||F.color,F.fontSize=r||F.fontSize,F.opacity=l||F.opacity,F.bottom=o||F.bottom,F.right=c||F.right,F.ratio=p||F.ratio}function m(g){const y=new Image;y.src=g,y.onload=function(){const S=y.width,b=y.height;v(S,b),ee.drawImage(y,0,0,S,b),C(S,b);const k=document.getElementById("canvas").toDataURL(e.type,F.ratio),T=Pc(k,e.name);t&&t(T)}}function v(g,y){X=document.getElementById("canvas"),X===null&&(X=document.createElement("canvas"),X.id="canvas",X.className="avue-canvas",document.body.appendChild(X)),ee=X.getContext("2d"),X.width=g,X.height=y}function C(g,y){const S=F.text,b=x(S,g,y);ee.font=`${b.fontSize}px ${F.fontFamily}`,ee.fillStyle=F.color,ee.globalAlpha=F.opacity/100,ee.fillText(S,b.x,b.y)}function x(g,y,S){let b,k;const A=F.fontSize/_e.width*y;F.bottom?k=_e.height-F.bottom:k=F.top,F.right?b=_e.width-F.right:b=F.left,ee.font=`${F.fontSize}px ${F.fontFamily}`;const q=Number(ee.measureText(g).width);b=b-q;const K=b/_e.width,U=k/_e.height;return b=K*y,k=U*S,{x:b,y:k,fontSize:A}}}const Rk=(e,n,t)=>{const i=JSON.stringify(t);window.__ENV__==="development"&&console&&console.log("put_policy = ",i);const s=jk(Nk(i));window.__ENV__==="development"&&console&&console.log("encoded = ",s);const r=window.CryptoJS.HmacSHA1(s,n).toString(window.CryptoJS.enc.Base64);window.__ENV__==="development"&&console&&console.log("encoded_signed=",r);const l=`${e}:${zk(r)}:${s}`;return window.__ENV__==="development"&&console&&console.log("upload_token=",l),l};function Nk(e){let n,t,i;n="";const s=e.length;for(t=0;t<s;t++)i=e.charCodeAt(t),i>=1&&i<=127?n+=e.charAt(t):i>2047?(n+=String.fromCharCode(224|i>>12&15),n+=String.fromCharCode(128|i>>6&63),n+=String.fromCharCode(128|i>>0&63)):(n+=String.fromCharCode(192|i>>6&31),n+=String.fromCharCode(128|i>>0&63));return n}const Z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";function jk(e){let n,t,i,s,a;const r=e.length;for(t=0,n="";t<r;){if(i=e.charCodeAt(t++)&255,t===r){n+=Z.charAt(i>>2),n+=Z.charAt((i&3)<<4),n+="==";break}if(s=e.charCodeAt(t++),t===r){n+=Z.charAt(i>>2),n+=Z.charAt((i&3)<<4|(s&240)>>4),n+=Z.charAt((s&15)<<2),n+="=";break}a=e.charCodeAt(t++),n+=Z.charAt(i>>2),n+=Z.charAt((i&3)<<4|(s&240)>>4),n+=Z.charAt((s&15)<<2|(a&192)>>6),n+=Z.charAt(a&63)}return n}const zk=function(e){return e=e.replace(/\+/g,"-"),e=e.replace(/\//g,"_"),e},Kk=e=>new window.OSS(e);var Wk=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{directives:[{name:"loading",rawName:"v-loading.lock",value:e.loading,expression:"loading",modifiers:{lock:!0}}],staticClass:"avue-upload",attrs:{"element-loading-text":e.loadText}},[t("ElUpload",{key:e.reload,class:{"avue-upload--list":e.listType==="picture-img","avue-upload--upload":e.disabled},attrs:{action:e.action,"on-remove":e.handleRemove,accept:e.acceptList,"before-remove":e.beforeRemove,multiple:e.multiple,"on-preview":e.handlePreview,limit:e.limit,"http-request":e.httpUpload,readonly:e.readonly,drag:e.dragFile,"show-file-list":e.isPictureImg?!1:e.showFileList,"list-type":e.listType,"on-change":e.handleFileChange,"on-exceed":e.handleExceed,disabled:e.disabled,"file-list":e.fileList},nativeOn:{click:function(i){return e.handleClick.apply(null,arguments)}},scopedSlots:e._u([{key:"tip",fn:function(){return[t("div",{staticClass:"el-upload__tip",domProps:{innerHTML:e._s(e.tip)}})]},proxy:!0},{key:"file",fn:function(i){var s=i.file;return[e.$scopedSlots.default?e._t("default",null,{file:s}):e.listType==="picture-card"?t("span",[e.isMediaType(s.url)?t(s.type,{tag:"Component",staticClass:"el-upload-list__item-thumbnail",attrs:{src:s.url}}):t("i",{staticClass:"avue-upload__avatar el-icon-document"}),t("span",{staticClass:"el-upload-list__item-actions"},[t("span",{staticClass:"el-upload-list__item-preview"},[t("i",{staticClass:"el-icon-zoom-in",on:{click:function(a){return a.stopPropagation(),e.handlePreview(s)}}})]),t("span",{staticClass:"el-upload-list__item-delete"},[e.disabled?e._e():t("i",{staticClass:"el-icon-delete",on:{click:function(a){return a.stopPropagation(),e.handleRemove(s)}}})])])],1):e.listType==="picture"?t("span",{on:{click:function(a){return a.stopPropagation(),e.handlePreview(s)}}},[t(s.type,{tag:"Component",staticClass:"el-upload-list__item-thumbnail",attrs:{src:s.url}}),t("a",{staticClass:"el-upload-list__item-name"},[t("i",{staticClass:"el-icon-document"}),e._v(" "+e._s(s.name)+" ")]),t("i",{staticClass:"el-icon-close",on:{click:function(a){return a.stopPropagation(),e.handleRemove(s)}}})],1):t("span",{on:{click:function(a){return a.stopPropagation(),e.handlePreview(s)}}},[t("a",{staticClass:"el-upload-list__item-name"},[t("i",{staticClass:"el-icon-document"}),e._v(" "+e._s(s.name)+" ")]),e.disabled?e._e():t("i",{staticClass:"el-icon-close",on:{click:function(a){return a.stopPropagation(),e.handleRemove(s)}}})])]}}],null,!0)},[e.listType==="picture-card"?[t("i",{staticClass:"el-icon-plus"})]:e.listType==="picture-img"?[e.$scopedSlots.default?e._t("default",null,{file:{url:e.imgUrl}}):[e.isMediaType(e.imgUrl)?t(e.isMediaType(e.imgUrl),{tag:"Component",staticClass:"avue-upload__avatar",attrs:{src:e.imgUrl},on:{mouseover:function(i){e.menu=!0}}}):e.imgUrl?t("i",{staticClass:"avue-upload__avatar el-icon-document",on:{mouseover:function(i){e.menu=!0}}}):t("i",{staticClass:"el-icon-plus avue-upload__avatar"}),e.menu?t("div",{staticClass:"el-upload-list__item-actions avue-upload__menu",on:{mouseover:function(i){e.menu=!0},mouseout:function(i){e.menu=!1},click:function(i){i.stopPropagation()}}},[t("i",{staticClass:"el-icon-zoom-in",on:{click:function(i){return i.stopPropagation(),e.handlePreview({url:e.imgUrl})}}}),e.disabled?e._e():t("i",{staticClass:"el-icon-delete",on:{click:function(i){return i.stopPropagation(),e.handleDelete(e.imgUrl)}}})]):e._e()]]:e.dragFile?[t("i",{staticClass:"el-icon-upload"}),t("div",{staticClass:"el-upload__text"},[t("em",[e._v(e._s(e.fileText||"上传"))])])]:[t("ElButton",{attrs:{icon:"el-icon-upload",size:e.size,type:"primary"}},[e._v(" "+e._s(e.fileText||"上传")+" ")])]],2)],1)},Vk=[];function ut(e,n=""){return n.match(/(^http:\/\/|^https:\/\/|^\/\/|data:image\/)/)?n:e+n}const Uk={name:"FyUpload",mixins:[P,D],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 d.isBlank(this.text)?null:ut(this.homeUrl,this.text[0])},fileList(){const e=[];return(this.text||[]).forEach((n,t)=>{if(n){const i=this.isObject?n[this.labelKey]:n.substring(n.lastIndexOf("/")+1);let s=this.isObject?n[this.valueKey]:n;s=ut(this.homeUrl,s),e.push({uid:`${t}`,status:"done",type:this.isMediaType(s),name:i,url:s})}}),e}},mounted(){this.drag&&this.setSort()},methods:{isMediaType(e){return xe(e,this.fileType)},setSort(){if(!window.Sortable){ce.logs("Sortable");return}const e=this.$el.querySelectorAll(".avue-upload > ul")[0];window.Sortable.create(e,{animation:100,onEnd:n=>{const t=this.text.splice(n.oldIndex,1)[0];this.text.splice(n.newIndex,0,t),this.reload=Math.random(),this.$nextTick(()=>this.setSort())}})},handleSuccess(e){if(this.isPictureImg)this.text.splice(0,1,e[this.urlKey]);else if(this.isObject){const n={};n[this.labelKey]=e[this.nameKey],n[this.valueKey]=e[this.urlKey],this.text.push(n)}else this.text.push(e[this.urlKey])},handleRemove(e){this.beforeRemove(e).then(()=>{this.delete(e)})},handleError(e){this.uploadError&&this.uploadError(e,this.column)},delete(e){(this.text||[]).forEach((n,t)=>{const i=this.isObject?n[this.valueKey]:n;ut(this.homeUrl,i)===e.url&&this.text.splice(t,1)})},show(e){this.loading=!1,this.res=e||this.res,this.handleSuccess(this.res)},hide(e){this.loading=!1,e&&this.handleError(e)},handleFileChange(e,n){n.splice(n.length-1,1)},httpUpload(e){if(typeof this.httpRequest=="function"){this.httpRequest(e);return}this.loading=!0;let n=e.file;const t=n.size/1024;if(!d.isBlank(t)&&t>this.fileSize){this.hide("文件太大不符合");return}const i=Object.assign(this.headers,{"Content-Type":"multipart/form-data"});let s={},a={};const r=new FormData,l=()=>{const c=p=>{let h=this.action;for(const v in this.data)r.append(v,this.data[v]);const m=p||n;if(r.append(this.fileName,m),this.isQiniuOss){if(!window.CryptoJS){ce.logs("CryptoJS"),this.hide();return}s=this.qiniu||this.$AVUE.qiniu;const v=Rk(s.AK,s.SK,{scope:s.scope,deadline:new Date().getTime()+s.deadline*3600});r.append("token",v),h=s.bucket}else if(this.isAliOss){if(!window.OSS){ce.logs("AliOSS"),this.hide();return}s=this.ali||this.$AVUE.ali,a=Kk(s)}(()=>this.isAliOss?a.put(m.name,m,{headers:this.headers}):this.$axios.post(h,r,{headers:i}))().then(v=>{this.res={},this.isQiniuOss&&(v.data.key=s.url+v.data.key),this.res=Ge(this.isAliOss?v:v.data,this.resKey),typeof this.uploadAfter=="function"?this.uploadAfter(this.res,this.show,this.hide,this.column):this.show()}).catch(v=>{this.hide(v)})};typeof this.uploadBefore=="function"?this.uploadBefore(n,c,this.hide,this.column):c()};if(xe(n.name)!=="img"){l();return}const o=()=>{d.isBlank(this.canvasOption)?l():Lk(n,this.canvasOption,c=>{n=c,l()})};d.isBlank(this.cropperOption)?o():Yc(n,c=>{const p=Object.assign(this.cropperOption,{img:c,type:"file",callback:h=>{n=h,o()},cancel:()=>{this.loading=!1}});this.$ImageCropper(p)})},handleExceed(e,n){this.uploadExceed&&this.uploadExceed(this.limit,e,n,this.column)},handlePreview(e){const n=()=>{const t=this.fileList.findIndex(i=>i.url===e.url);this.$ImagePreview(this.fileList,t)};typeof this.uploadPreview=="function"?this.uploadPreview(e,this.column,n):n()},handleDelete(e){this.beforeRemove(e).then(()=>{this.text=[],this.menu=!1})},beforeRemove(e){return typeof this.uploadDelete=="function"?this.uploadDelete(e,this.column):Promise.resolve()}}},eo={};var Hk=u(Uk,Wk,Vk,!1,qk,null,null,null);function qk(e){for(let n in eo)this[n]=eo[n]}const Ii=function(){return Hk.exports}();var Gk=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("ElSteps",{staticClass:"guide-steps",attrs:{"align-center":""}},e._l(e.steps,function(i,s){return t("ElStep",{key:i.label,class:[{"current important":e.value===s,disabled:!e.available(s),available:!e.ready[s]&&e.available(s)}],attrs:{status:e.ready[s]?"success":"",title:i.label},nativeOn:{click:function(a){return e.activeStep(s)}}})}),1)},Jk=[];const Qk={name:"GuideSteps",props:{value:{type:Number,default:0},steps:{type:Array,default:()=>[]}},data(){return{ready:[]}},watch:{steps:{immediate:!0,deep:!0,handler(e){this.ready=e!=null&&e.length?e.map(()=>!1):[]}}},methods:{activeStep(e){e!==0&&!this.available(e)||this.$emit("input",e)},setReady(e,n){e<this.ready.length&&this.$set(this.ready,e,n)},available(e){let n=!0;if(e>0&&e<this.ready.length){for(let t=0;t<e;t++)if(!this.ready[t]){n=!1;break}}return n}}},to={};var Yk=u(Qk,Gk,Jk,!1,Xk,null,null,null);function Xk(e){for(let n in to)this[n]=to[n]}const Ti=function(){return Yk.exports}();var Zk=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"avue-crud__menu"},[e.optVal(e.crud.tableOption.menuLeft,!0)?t("div",{staticClass:"avue-crud__left"},[e.optVal(e.crud.tableOption.addBtn,e.config.addBtn)?t("ElButton",{directives:[{name:"permission",rawName:"v-permission",value:e.crud.getPermission("addBtn"),expression:"crud.getPermission('addBtn')"}],attrs:{type:"primary",icon:e.crud.getBtnIcon("addBtn"),size:e.crud.isMediumSize},on:{click:e.crud.rowAdd}},[e.crud.isIconMenu?e._e():[e._v(" "+e._s(e.crud.menuIcon("addBtn"))+" ")]],2):e._e(),e.optVal(e.crud.tableOption.addRowBtn,e.config.addRowBtn)?t("ElButton",{directives:[{name:"permission",rawName:"v-permission",value:e.crud.getPermission("addRowBtn"),expression:"crud.getPermission('addRowBtn')"}],attrs:{type:"primary",icon:e.crud.getBtnIcon("addBtn"),size:e.crud.isMediumSize},on:{click:e.crud.rowCellAdd}},[e.crud.isIconMenu?e._e():[e._v(" "+e._s(e.crud.menuIcon("addBtn"))+" ")]],2):e._e(),e._t("menuLeft",null,{size:e.crud.isMediumSize})],2):e._e(),e.optVal(e.crud.tableOption.menuRight,!0)?t("div",{staticClass:"avue-crud__right"},[e.optVal(e.crud.tableOption.dateBtn,e.config.dateBtn)?t("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":e.pickerOptions,size:e.crud.isMediumSize},on:{change:e.dateChange}}):e._e(),e._t("menuRight",null,{size:e.crud.isMediumSize}),e.optVal(e.crud.tableOption.excelBtn,e.config.excelBtn)?t("ElButton",{directives:[{name:"permission",rawName:"v-permission",value:e.crud.getPermission("excelBtn"),expression:"crud.getPermission('excelBtn')"}],attrs:{icon:e.crud.getBtnIcon("excelBtn"),circle:"",size:e.crud.isMediumSize},on:{click:e.rowExcel}}):e._e(),e.optVal(e.crud.tableOption.printBtn,e.config.printBtn)?t("ElButton",{directives:[{name:"permission",rawName:"v-permission",value:e.crud.getPermission("printBtn"),expression:"crud.getPermission('printBtn')"}],attrs:{icon:e.crud.getBtnIcon("printBtn"),circle:"",size:e.crud.isMediumSize},on:{click:e.rowPrint}}):e._e(),e.optVal(e.crud.tableOption.refreshBtn,e.config.refreshBtn)?t("ElButton",{directives:[{name:"permission",rawName:"v-permission",value:e.crud.getPermission("refreshBtn"),expression:"crud.getPermission('refreshBtn')"}],attrs:{icon:e.crud.getBtnIcon("refreshBtn"),circle:"",size:e.crud.isMediumSize},on:{click:e.crud.refreshChange}}):e._e(),e.optVal(e.crud.tableOption.columnBtn,e.config.columnBtn)?t("ElButton",{directives:[{name:"permission",rawName:"v-permission",value:e.crud.getPermission("columnBtn"),expression:"crud.getPermission('columnBtn')"}],attrs:{icon:e.crud.getBtnIcon("columnBtn"),circle:"",size:e.crud.isMediumSize},on:{click:function(i){return e.crud.$refs.dialogColumn.handleShow()}}}):e._e(),(e.crud.$refs.headerSearch||{}).searchFlag&&e.optVal(e.crud.tableOption.searchShowBtn,!0)?t("ElButton",{attrs:{icon:e.crud.getBtnIcon("searchBtn"),circle:"",size:e.crud.isMediumSize},on:{click:function(i){return e.crud.$refs.headerSearch.handleSearchShow()}}}):e._e(),e.optVal(e.crud.tableOption.filterBtn,e.config.filterBtn)?t("ElButton",{directives:[{name:"permission",rawName:"v-permission",value:e.crud.getPermission("filterBtn"),expression:"crud.getPermission('filterBtn')"}],attrs:{icon:e.crud.getBtnIcon("filterBtn"),circle:"",size:e.crud.isMediumSize},on:{click:function(i){return e.crud.$refs.dialogFilter.handleShow()}}}):e._e()],2):e._e()])},eE=[];const tE={name:"HeaderMenu",directives:{permission:Qe},inject:["crud"],data(){return{dateCreate:!1,pickerOptions:{shortcuts:[{text:"今日",onClick(e){const n=new Date,t=new Date;t.setTime(t.getTime()),e.$emit("pick",[t,n])}},{text:"昨日",onClick(e){const n=new Date,t=new Date;t.setTime(t.getTime()-3600*1e3*24*1),e.$emit("pick",[t,n])}},{text:"最近一周",onClick(e){const n=new Date,t=new Date;t.setTime(t.getTime()-3600*1e3*24*7),e.$emit("pick",[t,n])}},{text:"最近一个月",onClick(e){const n=new Date,t=new Date;t.setTime(t.getTime()-3600*1e3*24*30),e.$emit("pick",[t,n])}},{text:"最近三个月",onClick(e){const n=new Date,t=new Date;t.setTime(t.getTime()-3600*1e3*24*90),e.$emit("pick",[t,n])}}]},config:R}},created(){this.initFun()},methods:{optVal:M,dateChange(e){this.dateCreate?this.crud.$emit("date-change",e):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)}}},no={};var nE=u(tE,Zk,eE,!1,iE,null,null,null);function iE(e){for(let n in no)this[n]=no[n]}const Bi=function(){return nE.exports}();var sE=function(){var e=this,n=e.$createElement,t=e._self._c||n;return e.searchFlag?t("ElCard",{directives:[{name:"show",rawName:"v-show",value:e.searchShow&&e.searchFlag,expression:"searchShow && searchFlag"}],staticClass:"avue-crud__search",attrs:{shadow:e.crud.isCard}},[e._t("search",null,{row:e.searchForm,search:e.searchForm,size:e.crud.controlSize}),t("FyForm",{ref:"form",attrs:{option:e.option},on:{submit:e.searchChange,"reset-change":e.resetChange},scopedSlots:e._u([{key:"menuForm",fn:function(i){return[e._t("searchMenu",null,null,Object.assign(i,{search:e.searchForm,row:e.searchForm})),e.isSearchIcon?[e.show===!1?t("ElButton",{attrs:{type:"text",icon:"el-icon-arrow-down"},on:{click:function(s){e.show=!0}}},[e._v(" 展 开 ")]):e._e(),e.show===!0?t("ElButton",{attrs:{type:"text",icon:"el-icon-arrow-up"},on:{click:function(s){e.show=!1}}},[e._v(" 收 缩 ")]):e._e()]:e._e()]}},e._l(e.crud.searchSlot,function(i){return{key:e.getSlotName(i),fn:function(s){return[e._t(i,null,null,Object.assign(s,{search:e.searchForm,row:e.searchForm}))]}}})],null,!0),model:{value:e.searchForm,callback:function(i){e.searchForm=i},expression:"searchForm"}})],2):e._e()},aE=[];const rE={name:"HeaderSearch",mixins:[Xe],inject:["crud"],props:{search:Object},data(){return{show:!1,searchIndex:2,searchShow:!0}},computed:{searchForm:{get(){return this.crud.search},set(e){this.crud.$emit("update:search",e)}},option(){const e=this.crud.option,n=(i=[])=>{i=$(i);const s=[];let a=0;return i=i.sort((r,l)=>(l.searchOrder||0)-(r.searchOrder||0)),i.forEach(r=>{if(r.search){const l=a<this.searchIndex,o={};Object.keys(r).forEach(c=>{const p="search";if(c!=="searchProp"&&c.includes(p)){let h=c.replace(p,"");if(h.length===0)return;h=h.replace(h[0],h[0].toLowerCase()),o[h]=r[c]}}),r=Object.assign(r,o,{type:tb(r),detail:!1,dicFlag:r.cascader?!0:M(r.dicFlag,!1),span:r.searchSpan||e.searchSpan||R.searchSpan,control:r.searchControl,gutter:r.searchGutter||e.searchGutter||R.searchGutter,labelWidth:r.searchLabelWidth||e.searchLabelWidth||R.searchLabelWidth,labelPosition:r.searchLabelPosition||e.searchLabelPosition,size:r.searchSize||e.searchSize,value:r.searchValue,rules:r.searchRules,row:r.searchRow,bind:r.searchBin,disabled:r.searchDisabled,readonly:r.searchReadonly,display:this.isSearchIcon?this.show?!0:l:!0}),s.push(r),a=a+1}}),s};return(i=>{let s=$(i);return s.column=n(this.crud.propOption),s=Object.assign(s,{rowKey:e.searchRowKey||"null",tabs:!1,group:!1,printBtn:!1,mockBtn:!1,filterDic:e.searchFilterDic,filterNull:e.searchFilterNull,filterParam:e.searchFilterParam,enter:e.searchEnter,size:e.searchSize,submitText:e.searchBtnText||"搜 索",submitBtn:M(e.searchBtn,R.searchSubBtn),submitIcon:this.crud.getBtnIcon("searchBtn"),emptyText:e.emptyBtnText||"清 空",emptyBtn:M(e.emptyBtn,R.emptyBtn),emptyIcon:this.crud.getBtnIcon("emptyBtn"),menuSpan:(()=>this.show||!this.isSearchIcon||e.searchMenuSpan<6?e.searchMenuSpan:6)(),menuPosition:e.searchMenuPosition||"center",dicFlag:!1,dicData:this.crud.DIC}),s})(e)},isSearchIcon(){return M(this.crud.option.searchIcon,this.$AVUE.searchIcon)&&this.searchLen>this.searchIndex},searchLen(){let e=0;return this.crud.propOption.forEach(n=>{n.search&&e++}),e},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 e;this.searchIndex=((e=this.option)==null?void 0:e.searchIndex)||2}}},created(){this.initFun(),this.dataFormat()},methods:{initFun(){["searchReset","searchChange"].forEach(e=>{this.crud[e]=this[e]})},getSlotName(e){return e.replace("Search","")},searchChange(e,n){e=oe(e),this.crud.propOption.forEach(t=>{t.searchProp&&(e[t.searchProp]=e[t.prop],delete e[t.prop])}),this.crud.$emit("search-change",e,n)},resetChange(){this.crud.$emit("search-reset",this.searchForm)},searchReset(){this.$refs.form.resetForm()},handleSearchShow(){this.searchShow=!this.searchShow},dataFormat(){const e=this.crud.option;this.searchShow=M(e.searchShow,R.searchShow)}}},io={};var lE=u(rE,sE,aE,!1,oE,null,null,null);function oE(e){for(let n in io)this[n]=io[n]}const Ai=function(){return lE.exports}();var cE=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("pre",{staticClass:"highlight-js"},[t("code",{class:e.className,domProps:{innerHTML:e._s(e.highlighted.value)}})])},uE=[];const dE={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&&!ye.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`),{language:"",value:d.escapeHtml(this.code)};let e={};return!this.language||this.autodetect?e=ye.highlightAuto(this.code):e=ye.highlight(this.code,{language:this.language,ignoreIllegals:this.ignoreIllegals}),e},ignoreIllegals(){return!0}},watch:{"highlighted.language":{immediate:!0,handler(e){this.detectedLanguage=e}}}},so={};var pE=u(dE,cE,uE,!1,hE,null,null,null);function hE(e){for(let n in so)this[n]=so[n]}const Oi=function(){return pE.exports}();var mE=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{class:["icon-card","flex-row",e.iconBg]},[t("div",{staticClass:"card-icon_bg"},[t("i",{class:["card-icon",e.icon]})]),t("div",{staticClass:"flex-item"},[t("p",{staticClass:"icon-card_title"},[e._t("default")],2),t("div",{staticClass:"icon-card_num"},[t("span",{staticClass:"icon-card_color",on:{click:e.toDetails}},[e._v(e._s(e.number))]),e._t("nuit")],2)])])},fE=[];const vE={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)}}},ao={};var _E=u(vE,mE,fE,!1,gE,null,null,null);function gE(e){for(let n in ao)this[n]=ao[n]}const Mi=function(){return _E.exports}();var yE=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("span",{staticClass:"avue-icon",class:{"avue-icon--small":e.small}},[e.text.includes("#")?t("svg",{attrs:{"aria-hidden":"true"}},[t("use",{attrs:{"xlink:href":e.text}})]):t("i",{class:e.text})])},bE=[];const xE={name:"IconTemp",props:{small:Boolean,text:{type:String,default:""}}},ro={};var $E=u(xE,yE,bE,!1,wE,null,null,null);function wE(e){for(let n in ro)this[n]=ro[n]}const Pi=function(){return $E.exports}();var CE=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("ElementDialog",e._g(e._b({attrs:{"custom-class":"iframe-window",embed:"",height:"60vh",title:e.title,"show-full-screen":"",visible:e.visible},scopedSlots:e._u([{key:"default",fn:function(){return[t("iframe",{staticClass:"iframe-window-iframe",attrs:{src:e.url,frameborder:"0"}})]},proxy:!0}])},"ElementDialog",e.$attrs,!1),e.$listeners))},SE=[];const kE={name:"IframeWindow",props:{title:{type:String,default:"iframe窗口"},url:{type:String,default:"http://192.168.0.107:31221/wallboard"},visible:Boolean}},lo={};var EE=u(kE,CE,SE,!1,FE,null,null,null);function FE(e){for(let n in lo)this[n]=lo[n]}const Di=function(){return EE.exports}();var IE=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("ElementDialog",{staticClass:"avue-cropper",attrs:{visible:e.visible,"before-close":e.cancel,title:"图片剪裁","close-on-press-escape":!1,"close-on-click-modal":!1,"modal-append-to-body":e.$AVUE.modalAppendToBody,"append-to-body":e.$AVUE.appendToBody,width:"1000px"},on:{"update:visible":function(i){e.visible=i}},scopedSlots:e._u([{key:"footer",fn:function(){return[t("ElButton",{attrs:{size:"small",type:"primary"},on:{click:e.submit}},[e._v(" 确 定 ")]),t("ElButton",{attrs:{size:"small"},on:{click:function(i){return e.cancel()}}},[e._v(" 取 消 ")])]},proxy:!0}])},[t("div",{staticClass:"cropper-content"},[t("div",{staticClass:"cropper-box"},[t("div",{staticClass:"cropper"},[t("VueCropper",{ref:"cropper",attrs:{img:e.option.img,"output-size":e.option.outputSize,"output-type":e.option.outputType,info:e.option.info,"can-scale":e.option.canScale,"auto-crop":e.option.autoCrop,"auto-crop-width":e.option.autoCropWidth,"auto-crop-height":e.option.autoCropHeight,fixed:e.option.fixed,"fixed-number":e.option.fixedNumber,full:e.option.full,"fixed-box":e.option.fixedBox,"can-move":e.option.canMove,"can-move-box":e.option.canMoveBox,original:e.option.original,"center-box":e.option.centerBox,height:e.option.height,"info-true":e.option.infoTrue,"max-img-size":e.option.maxImgSize,enlarge:e.option.enlarge,mode:e.option.mode},on:{realTime:e.realTime}})],1),t("div",{staticClass:"footer-btn"},[t("ElButton",{attrs:{size:"mini",type:"danger",icon:"el-icon-zoom-in"},on:{click:function(i){return e.changeScale(1)}}}),t("ElButton",{attrs:{size:"mini",type:"danger",icon:"el-icon-zoom-out"},on:{click:function(i){return e.changeScale(-1)}}}),t("ElButton",{attrs:{size:"mini",icon:"el-icon-back",type:"danger"},on:{click:e.rotateLeft}}),t("ElButton",{attrs:{size:"mini",type:"danger",icon:"el-icon-right"},on:{click:e.rotateRight}})],1)]),t("div",{staticClass:"show-preview"},[t("div",{staticClass:"preview",style:e.previews.div},[t("img",{style:e.previews.img,attrs:{src:e.previews.url,alt:""}})])])])])},TE=[];const qs={name:"ImageCropper",components:{VueCropper:Bu.VueCropper},data(){return{visible:!1,previews:{},option:{}}},methods:{show(){this.visible=!0},changeScale(e){e=e||1,this.$refs.cropper.changeScale(e)},rotateLeft(){this.$refs.cropper.rotateLeft()},rotateRight(){this.$refs.cropper.rotateRight()},realTime(e){this.previews=e},submit(){this.visible=!1,this.$refs.cropper.getCropData(e=>{let n=e;this.option.type==="file"&&(n=Pc(e,`${new Date().getTime()}.${this.option.outputType}`)),this.option.callback&&this.option.callback(n)})},cancel(e){e&&e(),this.visible=!1,this.option.cancel&&this.option.cancel(),typeof this.option.beforeClose=="function"&&this.option.beforeClose(),this.$destroy(),this.$el.remove()}}},BE=(e={})=>{const n=Ue.extend(qs),t=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},e),i=new n({data:{option:t}}).$mount();return document.body.appendChild(i.$el),i.show(),i};qs.imageCropper=BE;const AE=qs,oo={};var OE=u(AE,IE,TE,!1,ME,null,null,null);function ME(e){for(let n in oo)this[n]=oo[n]}const Li=function(){return OE.exports}();var PE=function(){var e=this,n=e.$createElement,t=e._self._c||n;return e.isShow?t("div",{staticClass:"avue-image-preview"},[e.ops.modal?t("div",{staticClass:"avue-image-preview__mask",on:{click:e.close}}):e._e(),t("span",{staticClass:"el-image-viewer__btn el-image-viewer__close",on:{click:e.close}},[t("i",{staticClass:"el-icon-circle-close"})]),e.isRrrow?t("span",{staticClass:"el-image-viewer__btn el-image-viewer__prev",on:{click:function(i){return e.handlePrev()}}},[t("i",{staticClass:"el-icon-arrow-left"})]):e._e(),e.isRrrow?t("span",{staticClass:"el-image-viewer__btn el-image-viewer__next",on:{click:function(i){return e.handleNext()}}},[t("i",{staticClass:"el-icon-arrow-right"})]):e._e(),t("div",{ref:"box",staticClass:"avue-image-preview__box"},[t("ElCarousel",{ref:"carousel",attrs:{"show-indicators":!1,"initial-index":e.index,"initial-swipe":e.index,interval:0,arrow:"never","indicator-position":"none"},on:{change:e.handleChange}},e._l(e.datas,function(i,s){return t("ElCarouselItem",{key:s,nativeOn:{click:function(a){if(a.target!==a.currentTarget)return null;e.ops.closeOnClickModal&&e.close()}}},[e.isMediaType(i)?t(e.isMediaType(i),{ref:"item",refInFor:!0,tag:"Component",style:[e.styleName,e.styleBoxName],attrs:{id:`avue-image-preview__${s}`,src:i.url,controls:"controls",ondragstart:"return false"},on:{click:function(a){return e.handleClick(i,s)},mousedown:e.move}}):t("div",{staticClass:"avue-image-preview__file",attrs:{id:`avue-image-preview__${s}`},on:{click:function(a){return e.handleClick(i,s,!0)}}},[t("span",[t("i",{staticClass:"el-icon-document"}),t("p",[e._v(e._s(i.name||e.getName(i.url)))])])])],1)}),1)],1),t("div",{staticClass:"el-image-viewer__btn el-image-viewer__actions"},[t("div",{staticClass:"el-image-viewer__actions__inner"},[t("i",{staticClass:"el-icon-zoom-out",on:{click:e.subScale}}),t("i",{staticClass:"el-icon-zoom-in",on:{click:e.addScale}}),t("i",{staticClass:"el-image-viewer__actions__divider"}),t("i",{staticClass:"el-icon-printer",on:{click:e.handlePrint}}),t("i",{staticClass:"el-image-viewer__actions__divider"}),t("i",{staticClass:"el-icon-refresh-left",on:{click:function(i){e.rotate=e.rotate-90}}}),t("i",{staticClass:"el-icon-refresh-right",on:{click:function(i){e.rotate=e.rotate+90}}})])])]):e._e()},DE=[];const Gs={name:"ImagePreview",data(){return{left:0,top:0,scale:1,datas:[],rotate:0,isShow:!1,index:0,ops:{}}},computed:{styleBoxName(){return{marginLeft:d.setPx(this.left),marginTop:d.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(e){return e.substring(e.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(e=>{e.pause&&e.pause()})},isMediaType(e){return xe(e.url,e.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(e){let n=e.clientX,t=e.clientY;const i=2;document.onmousemove=s=>{const a=s.clientX-n,r=s.clientY-t;n=s.clientX,t=s.clientY,this.left=this.left+a*i,this.top=this.top+r*i},document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null}},handleClick(e,n,t=!1){typeof this.ops.click=="function"?this.ops.click(e,n):t&&window.open(e.url)},close(){this.isShow=!1,typeof this.ops.beforeClose=="function"&&this.ops.beforeClose(this.datas,this.index),this.$destroy(),this.$el.remove()}}},LE=(e=[],n=0,t={})=>{const i=Ue.extend(Gs),s={datas:e,index:n,ops:f({closeOnClickModal:!1,beforeClose:null,click:null,modal:!0},t)},a=new i({data:s}).$mount();return document.body.appendChild(a.$el),a.isShow=!0,a};Gs.imagePreview=LE;const RE=Gs,co={};var NE=u(RE,PE,DE,!1,jE,null,null,null);function jE(e){for(let n in co)this[n]=co[n]}const Ri=function(){return NE.exports}();var zE=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{directives:[{name:"show",rawName:"v-show",value:!e.lazy,expression:"!lazy"}],ref:"wrapper",staticClass:"image-viewer"},[e._t("default",function(){return e._l(e.images,function(i){return t("img",{key:i.src,staticClass:"image-item",style:{backgroundImage:`url('${i.src}')`},attrs:{"data-src":i.src,alt:i.alt}})})})],2)},KE=[];const WE={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 e;this.lazy||(e=this.gallery)==null||e.update()},beforeDestroy(){this.lazy||this.gallery.destroy()},methods:{init({container:e,options:n}){this.gallery=new Au(e,n)},show({container:e,options:n,index:t}={}){e=e||this.$refs.wrapper,n=n||{navbar:!1,backdrop:"static",url:this.url,loop:!1,initialViewIndex:t||0,hidden:()=>{this.gallery.destroy(),this.gallery=null}},this.gallery||(this.init({container:e,options:n}),this.gallery.show())}}},uo={};var VE=u(WE,zE,KE,!1,UE,null,null,null);function UE(e){for(let n in uo)this[n]=uo[n]}const Ni=function(){return VE.exports}();var HE=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{class:["input-number","el-input-number",e.inputNumberSize?`el-input-number--${e.inputNumberSize}`:"",{"is-disabled":e.inputNumberDisabled,"is-without-controls":!e.controls,"is-controls-right":e.controlsAtRight}],on:{dragstart:function(i){i.preventDefault()}}},[e.controls?t("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.decrease,expression:"decrease"}],staticClass:"el-input-number__decrease",class:{"is-disabled":e.minDisabled},attrs:{role:"button"},on:{keydown:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.decrease.apply(null,arguments)}}},[t("i",{class:`el-icon-${e.controlsAtRight?"arrow-down":"minus"}`})]):e._e(),e.controls?t("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.increase,expression:"increase"}],staticClass:"el-input-number__increase",class:{"is-disabled":e.maxDisabled},attrs:{role:"button"},on:{keydown:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.increase.apply(null,arguments)}}},[t("i",{class:`el-icon-${e.controlsAtRight?"arrow-up":"plus"}`})]):e._e(),t("ElInput",{ref:"input",attrs:{value:e.displayValue,placeholder:e.placeholder,disabled:e.inputNumberDisabled,size:e.inputNumberSize,max:e.max,"prefix-icon":e.prefixIcon,"suffix-icon":e.suffixIcon,min:e.min,name:e.name,label:e.label},on:{blur:e.handleBlur,focus:e.handleFocus,input:e.handleInput,change:e.handleInputChange},nativeOn:{keydown:[function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"up",38,i.key,["Up","ArrowUp"])?null:(i.preventDefault(),e.increase.apply(null,arguments))},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"down",40,i.key,["Down","ArrowDown"])?null:(i.preventDefault(),e.decrease.apply(null,arguments))}]},scopedSlots:e._u([{key:"append",fn:function(){return[e._t("append")]},proxy:!0},{key:"prefix",fn:function(){return[e._t("prefix")]},proxy:!0},{key:"prepend",fn:function(){return[e._t("prepend")]},proxy:!0},{key:"suffix",fn:function(){return[e._t("suffix")]},proxy:!0}],null,!0)})],1)},qE=[];const GE={name:"InputNumber",directives:{repeatClick:Mu},mixins:[Ou("input"),Wc],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:e,step:n,getPrecision:t,precision:i}=this,s=t(n);return i!==void 0?(s>i&&console.warn("[Element Warn][InputNumber]precision should not be less than the decimal places of step"),i):Math.max(t(e),s)},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 e=this.currentValue;if(typeof e=="number"){if(this.stepStrictly){const n=this.getPrecision(this.step),t=Math.pow(10,n);e=Math.round(e/this.step)*t*this.step/t}this.precision!==void 0&&(e=e.toFixed(this.precision))}return e}},watch:{value:{immediate:!0,handler(e){let n=e===void 0?e:Number(e);if(n!==void 0){if(isNaN(n))return;if(this.stepStrictly){const t=this.getPrecision(this.step),i=Math.pow(10,t);n=Math.round(n/this.step)*i*this.step/i}this.precision!==void 0&&(n=this.toPrecision(n,this.precision))}n>=this.max&&(n=this.max),n<=this.min&&(n=this.min),this.currentValue=n,this.userInput=null,this.$emit("input",n)}}},mounted(){const e=this.$refs.input.$refs.input;e.setAttribute("role","spinbutton"),e.setAttribute("aria-valuemax",this.max),e.setAttribute("aria-valuemin",this.min),e.setAttribute("aria-valuenow",this.currentValue),e.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(e,n){return n===void 0&&(n=this.numPrecision),parseFloat(Math.round(e*Math.pow(10,n))/Math.pow(10,n))},getPrecision(e){if(e===void 0)return 0;const n=e.toString(),t=n.indexOf(".");let i=0;return t!==-1&&(i=n.length-t-1),i},_increase(e,n){if(typeof e!="number"&&e!==void 0)return this.currentValue;const t=Math.pow(10,this.numPrecision);return this.toPrecision((t*e+t*n)/t)},_decrease(e,n){if(typeof e!="number"&&e!==void 0)return this.currentValue;const t=Math.pow(10,this.numPrecision);return this.toPrecision((t*e-t*n)/t)},increase(){if(this.inputNumberDisabled||this.maxDisabled)return;const e=this.value||0,n=this._increase(e,this.step);this.setCurrentValue(n)},decrease(){if(this.inputNumberDisabled||this.minDisabled)return;const e=this.value||0,n=this._decrease(e,this.step);this.setCurrentValue(n)},handleBlur(e){this.$emit("blur",e)},handleFocus(e){this.$emit("focus",e)},setCurrentValue(e){const n=this.currentValue;typeof e=="number"&&this.precision!==void 0&&(e=this.toPrecision(e,this.precision)),e>=this.max&&(e=this.max),e<=this.min&&(e=this.min),n!==e&&(this.userInput=null,this.$emit("input",e),this.$emit("change",e,n),this.currentValue=e)},handleInput(e){this.userInput=e},handleInputChange(e){const n=e===""?void 0:Number(e);(!isNaN(n)||e==="")&&this.setCurrentValue(n),this.userInput=null},select(){this.$refs.input.select()}}},po={};var JE=u(GE,HE,qE,!1,QE,null,null,null);function QE(e){for(let n in po)this[n]=po[n]}const ji=function(){return JE.exports}();var YE=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"input-number-range"},[t("ElInputNumber",{staticClass:"flex-item",staticStyle:{width:"auto"},attrs:{controls:e.controls,disabled:e.disabled,size:"mini"},on:{input:e.emitInput},model:{value:e.val[0],callback:function(i){e.$set(e.val,0,i)},expression:"val[0]"}}),t("span",{staticStyle:{padding:"0 6px","font-size":"12px"}},[e._v(e._s(e.separator))]),t("ElInputNumber",{staticClass:"flex-item",staticStyle:{width:"auto"},attrs:{controls:e.controls,disabled:e.disabled,size:"mini"},on:{input:e.emitInput},model:{value:e.val[1],callback:function(i){e.$set(e.val,1,i)},expression:"val[1]"}})],1)},XE=[];const ZE={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(e){const n=[void 0,void 0];d.isNotEmpty(e==null?void 0:e[0])&&(n[0]=e[0]),d.isNotEmpty(e==null?void 0:e[1])&&(n[1]=e[1]),this.val=n}}},methods:{emitInput(){this.$emit("input",this.val)}}},ho={};var eF=u(ZE,YE,XE,!1,tF,null,null,null);function tF(e){for(let n in ho)this[n]=ho[n]}const zi=function(){return eF.exports}(),Ki={name:"JSXComponent",props:{msg:{type:String,default:""}},render(){const e=arguments[0];return e("div",[this.msg])}},nF=Object.prototype.toString;function mo(e){return e!=null}function iF(e){return e.isComment&&e.asyncFactory}function sF(e){if(Array.isArray(e))for(let n=0;n<e.length;n++){const t=e[n];if(mo(t)&&(mo(t.componentOptions)||iF(t)))return t}}function aF(e){return nF.call(e)==="[object RegExp]"}function fo(e){return e&&(e.Ctor.options.name||e.tag)}function Me(e,n){return Array.isArray(e)?e.indexOf(n)>-1:typeof e=="string"?e.split(",").indexOf(n)>-1:aF(e)?e.test(n):!1}function Xc(e,n){if(e.length){const t=e.indexOf(n);if(t>-1)return e.splice(t,1)}}function vo(e,n){const{cache:t,keys:i,_vnode:s}=e;for(const a in t){const r=t[a];if(r){const l=r.name;l&&!n(l)&&Wi(t,a,i,s)}}}function Wi(e,n,t,i){const s=e[n];s&&(!i||s.tag!==i.tag)&&s.componentInstance.$destroy(),e[n]=null,Xc(t,n)}const rF={name:"KeepViewAlive",abstract:!0,props:{include:Array,exclude:Array,max:[String,Number]},created(){this.cache=Object.create(null),this.keys=[]},destroyed(){for(const e in this.cache)Wi(this.cache,e,this.keys)},mounted(){this.cacheVNode(),this.$watch("include",e=>{vo(this,n=>Me(e,n))}),this.$watch("exclude",e=>{vo(this,n=>!Me(e,n))})},updated(){this.cacheVNode()},methods:{cacheVNode(){const{cache:e,keys:n,vnodeToCache:t,keyToCache:i}=this;if(t){const{tag:s,componentInstance:a,componentOptions:r}=t;e[i]={name:fo(r),tag:s,cid:r.Ctor.cid,componentInstance:a},n.push(i),this.max&&n.length>parseInt(this.max)&&Wi(e,n[0],n,this._vnode),this.vnodeToCache=null}}},render(){const e=this.$slots.default,n=sF(e),t=n&&n.componentOptions;if(t){const i=fo(t),{include:s,exclude:a}=this;if(s&&(!i||!Me(s,i))||a&&i&&Me(a,i))return n;const{cache:r,keys:l}=this,o=n.key==null?t.Ctor.cid+(t.tag?`::${t.tag}`:""):n.key,c=r[o];c?c.cid===t.Ctor.cid?(n.componentInstance=c.componentInstance,Xc(l,o),l.push(o)):(c.componentInstance.$destroy(),r[o]=null,this.vnodeToCache=n,this.keyToCache=o):(this.vnodeToCache=n,this.keyToCache=o),n.data.keepAlive=!0}return n||e&&e[0]}};let lF,oF;const _o={};var cF=u(rF,lF,oF,!1,uF,null,null,null);function uF(e){for(let n in _o)this[n]=_o[n]}const Vi=function(){return cF.exports}();let dF=class{constructor(n){if(typeof n!="object"){console.error('aKeyboard: The obj parameter needs to be an object <In "new aKeyboard()">');return}this.obj=n;const t=document.querySelector(n.el);let i="";if(typeof n.style=="object")for(const m in n.style)i+=`${m}: ${n.style[m]};`;let s=`<div class="akeyboard-keyboard${n.fixedBottomCenter?" akeyboard-keyboard-fixedBottomCenter":""}" style="${i}">`;const a=[];for(let m=1;m<10;m++)a.push(m.toString());a.push("0");const r=n.keys||[["`"].concat(a).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 l;const o=[],c=[];for(let m=0;m<r.length;m++){o.push([]),c.push([]),l=r[m];for(let v=0;v<l.length;v++){if(l[v].length===1){switch(c[m].push(l[v].toUpperCase()),l[v]){case"`":o[m].push("~");continue;case"1":o[m].push("!");continue;case"2":o[m].push("@");continue;case"3":o[m].push("#");continue;case"4":o[m].push("$");continue;case"5":o[m].push("%");continue;case"6":o[m].push("^");continue;case"7":o[m].push("&");continue;case"8":o[m].push("*");continue;case"9":o[m].push("(");continue;case"0":o[m].push(")");continue;case"-":o[m].push("_");continue;case"=":o[m].push("+");continue;case"[":o[m].push("{");continue;case"]":o[m].push("}");continue;case"\\":o[m].push("|");continue;case";":o[m].push(":");continue;case"'":o[m].push('"');continue;case",":o[m].push("<");continue;case".":o[m].push(">");continue;case"/":o[m].push("?");continue}o[m].push(l[v].toUpperCase());continue}o[m].push(l[v]),c[m].push(l[v])}}for(let m=0;m<r.length;m++){l=r[m],s+='<div class="akeyboard-keyboard-innerKeys">';for(let v=0;v<l.length;v++)s+=`<div class="akeyboard-keyboard-keys akeyboard-keyboard-keys-${l[v]}">${l[v]}</div>`;s+="</div>"}s+="</div>",t.innerHTML=s;let p=!1;r.forEach(m=>{m.includes("Shift")&&(p=!0)}),p&&document.querySelectorAll(`${n.el} .akeyboard-keyboard-keys-Shift`).forEach(v=>{v.onclick=function(){if(!this.isShift){const g=document.querySelector(`${n.el} .akeyboard-keyboard-keys-Caps`);if(g&&g.isCaps)return;v.isShift=!0,v.innerHTML="SHIFT",this.classList.add("keyboard-keyboard-keys-focus");const y=document.querySelectorAll(`${n.el} .akeyboard-keyboard-innerKeys`);let S;for(let b=0;b<y.length;b++){S=y[b];for(let k=0;k<S.childNodes.length;k++)o[b][k]!=="Shift"&&(S.childNodes[k].innerHTML=o[b][k])}return}v.isShift=!1,v.innerHTML="Shift",this.classList.remove("keyboard-keyboard-keys-focus");const C=document.querySelectorAll(`${n.el} .akeyboard-keyboard-innerKeys`);let x;for(let g=0;g<C.length;g++){x=C[g];for(let y=0;y<x.childNodes.length;y++)x.childNodes[y].innerHTML=r[g][y]}}});let h=!1;r.forEach(m=>{m.includes("Caps")&&(h=!0)}),h&&document.querySelectorAll(`${n.el} .akeyboard-keyboard-keys-Caps`).forEach(v=>{v.onclick=function(){if(!this.isCaps){const g=document.querySelector(`${n.el} .akeyboard-keyboard-keys-Shift`);if(g&&g.isShift)return;this.isCaps=!0,this.classList.add("keyboard-keyboard-keys-focus");const y=document.querySelectorAll(`${n.el} .akeyboard-keyboard-innerKeys`);let S;for(let b=0;b<y.length;b++){S=y[b];for(let k=0;k<S.childNodes.length;k++)S.childNodes[k].innerHTML=c[b][k]}return}this.isCaps=!1,this.classList.remove("keyboard-keyboard-keys-focus");const C=document.querySelectorAll(`${n.el} .akeyboard-keyboard-innerKeys`);let x;for(let g=0;g<C.length;g++){x=C[g];for(let y=0;y<x.childNodes.length;y++)x.childNodes[y].innerHTML=r[g][y]}}})}inputOn(n,t,i,s){if(typeof n!="string"){console.error('aKeyboard: The inputEle parameter needs to be a string <In "aKeyboard.inputOn()">');return}if(typeof t!="string"){console.error('aKeyboard: The type parameter needs to be a string <In "aKeyboard.inputOn()">');return}const a=document.querySelector(n),r=document.querySelectorAll(`${this.obj.el} .akeyboard-keyboard-keys`);for(let l=0;l<r.length;l++)if(!["Shift","Caps"].includes(r[l].innerHTML)){if(r[l].innerHTML==="Delete"){r[l].onclick=function(){a[t]=a[t].substr(0,a[t].length-1),i("Delete",a[t])};continue}if(r[l].innerHTML==="Tab"){r[l].onclick=function(){a[t]+=" ",i("Tab",a[t])};continue}if(r[l].innerHTML==="Enter"){r[l].onclick=function(){a[t]+=`
|
|
68
|
+
`,i("Enter",a[t])};continue}if(r[l].innerHTML==="Space"){r[l].onclick=function(){a[t]+=" ",i("Space",a[t])};continue}s&&typeof s=="object"&&Object.keys(s).length>0&&s[r[l].innerHTML]?r[l].onclick=s[r[l].innerHTML]:r[l].onclick=function(){a[t]+=this.innerText,i(this.innerText,a[t])}}}onclick(n,t){if(typeof n!="string"){console.error('aKeyboard: The btn parameter needs to be a string <In "aKeyboard.onclick()">');return}if(typeof t!="function"){console.error('aKeyboard: The fn parameter needs to be a function <In "aKeyboard.onclick()">');return}const i=document.querySelector(`${this.obj.el} .akeyboard-keyboard-keys-${n}`);i?i.onclick=t:console.error(`Can not find key: ${n}`)}};class pF{constructor(n){if(typeof n!="object"){console.error('aKeyboard: The obj parameter needs to be an object <In "new aKeyboard()">');return}this.obj=n;const t=document.querySelector(n.el);let i="";if(typeof n.style=="object")for(const a in n.style)i+=`${a}: ${n.style[a]};`;let s=`<div class="akeyboard-numberKeyboard${n.fixedBottomCenter?" akeyboard-keyboard-fixedBottomCenter":""}" style="${i}">`;s+='<div class="akeyboard-keyboard-innerKeys">';for(let a=1;a<10;a++)s+=`<div class="akeyboard-keyboard-keys akeyboard-keyboard-keys-${a}">${a}</div>`,a%3===0&&(s+='</div><div class="akeyboard-keyboard-innerKeys">');s+='<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>',s+="</div>",t.innerHTML=s}inputOn(n,t,i,s){if(typeof n!="string"){console.error('aKeyboard: The inputEle parameter needs to be a string <In "aKeyboard.inputOn()">');return}if(typeof t!="string"){console.error('aKeyboard: The type parameter needs to be a string <In "aKeyboard.inputOn()">');return}const a=document.querySelector(n),r=document.querySelectorAll(`${this.obj.el} .akeyboard-keyboard-keys`);for(let l=0;l<r.length;l++){if(r[l].innerHTML==="Delete"){r[l].onclick=function(){a[t]=a[t].substr(0,a[t].length-1),i("Delete",a[t])};continue}if(r[l].innerHTML==="Enter"){r[l].onclick=function(){a[t]+=`
|
|
69
|
+
`,i("Enter",a[t])};continue}s&&typeof s=="object"&&Object.keys(s).length>0&&s[r[l].innerHTML]?r[l].onclick=s[r[l].innerHTML]:r[l].onclick=function(){a[t]+=this.innerText,i(this.innerText,a[t])}}}onclick(n,t){if(typeof n!="string"){console.error('aKeyboard: The btn parameter needs to be a string <In "aKeyboard.onclick()">');return}if(typeof t!="function"){console.error('aKeyboard: The fn parameter needs to be a function <In "aKeyboard.onclick()">');return}const i=document.querySelector(`${this.obj.el} .akeyboard-keyboard-keys-${n}`);i?i.onclick=t:console.error(`Can not find key: ${n}`)}}var hF=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{class:["avue-keyboard",e.className]},[t("div",{attrs:{id:"keyboard"}})])},mF=[];const fF={name:"Keyboard",props:{ele:{type:String,required:!0},keys:Array,theme:{type:String,default:"default",validator:e=>["default","dark","green","classic"].includes(e)},type:{type:String,default:"default",validator:e=>["default","number","mobile"].includes(e)},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 e;const n={el:"#keyboard",style:{},keys:this.keys,fixedBottomCenter:this.fixedBottomCenter};this.type==="default"?e=new dF(n):this.type==="number"&&(e=new pF(n));const t=this.ele.indexOf("#")===0?this.ele.substring(1):this.ele;e.inputOn(`#${t}`,"value",(i,s)=>{this.$emit("click",i,s)},this.rebind?this.customClick:null),this.keyboard=e},bindClick(e,n){this.keyboard.onclick(e,n),this.customClick[e]=n}}},go={};var vF=u(fF,hF,mF,!1,_F,null,null,null);function _F(e){for(let n in go)this[n]=go[n]}const Ui=function(){return vF.exports}();var gF=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"avue-license",staticStyle:{position:"relative"}},[t("canvas",{ref:"canvas",attrs:{id:`canvas${e.id}`}}),e._t("default")],2)},yF=[];const bF={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 e=new Image;e.src=this.img,e.onload=()=>{const n=this.option.width||e.width,t=this.option.width?e.height/e.width*this.option.width:e.height;this.$refs.canvas.width=n,this.$refs.canvas.height=t,this.context.clearRect(0,0,n,t),this.context.drawImage(e,0,0,n,t),this.list.forEach((i,s)=>{const a=()=>{s===this.list.length-1&&setTimeout(()=>{this.draw=!0},0)};if(i.img){const r=new Image;r.src=i.img,r.onload=()=>{const l=i.width||r.width,o=i.width?r.height/r.width*i.width:r.height;this.context.drawImage(r,i.left,i.top,l,o),a()}}else i.bold?this.context.font=`bold ${i.size}px ${i.style}`:this.context.font=`${i.size}px ${i.style}`,this.context.fillStyle=i.color,this.context.fillText(i.text,i.left,i.top),this.context.stroke(),a()})}},getFile(e=new Date().getTime()){return new Promise(n=>{const t=setInterval(()=>{if(this.draw){const i=this.canvas.toDataURL("image/jpeg",1),s=this.dataURLtoFile(i,e);clearInterval(t),n(s)}},1e3)})},downFile(e=new Date().getTime()){Ld(this.base64,e)},getBase64(){return new Promise(e=>{const n=setInterval(()=>{if(this.draw){const t=this.canvas.toDataURL("image/jpeg",1);this.base64=t,clearInterval(n),e(t)}},100)})},getPdf(e=new Date().getTime()){const n=this.canvas.width,t=this.canvas.height,i=n/592.28*841.89;let s=t,a=0;const r=595.28,l=592.28/n*t,o=this.canvas.toDataURL("image/jpeg",1),c=new window.jsPDF("","pt","a4");if(s<i)c.addImage(o,"JPEG",0,0,r,l);else for(;s>0;)c.addImage(o,"JPEG",0,a,r,l),s-=i,a-=841.89,s>0&&c.addPage();c.save(`${e}.pdf`)}}},yo={};var xF=u(bF,gF,yF,!1,$F,null,null,null);function $F(e){for(let n in yo)this[n]=yo[n]}const Hi=function(){return xF.exports}();var wF=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"loading-view",style:{fontSize:e.fontSize,height:e.height}},[e._t("default",function(){return[t("div",{staticClass:"flex-column horizon-center"},[t("i",{staticClass:"el-icon-loading",style:{fontSize:e.iconSize}}),t("p",[e._v(e._s(e.loadingTips))])])]})],2)},CF=[];const SF={name:"LoadingView",props:{loadingTips:{type:String,default:"加载中..."},fontSize:{type:String,default:"20px"},iconSize:{type:String,default:"20px"},height:{type:String,default:"100%"}}},bo={};var kF=u(SF,wF,CF,!1,EF,null,null,null);function EF(e){for(let n in bo)this[n]=bo[n]}const qi=function(){return kF.exports}();var FF=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"avue-login",style:{width:e.setPx(e.width)}},[t("ElForm",{ref:"form",attrs:{model:e.form,"label-suffix":":","label-width":e.setPx(e.labelWidth)}},[e.username.hide?e._e():t("ElFormItem",{attrs:{label:e.username.label||"用户名",rules:e.username.rules,"label-width":e.setPx(e.username.labelWidth),prop:"username"}},[t("ElTooltip",{attrs:{content:e.username.tip,disabled:e.username.tip===void 0,placement:"top-start"}},[t("ElInput",{attrs:{size:"small","prefix-icon":e.username.prefixIcon||"el-icon-user",placeholder:e.username.placeholder||"请输入用户名",autocomplete:e.username.autocomplete},model:{value:e.form.username,callback:function(i){e.$set(e.form,"username",i)},expression:"form.username"}})],1)],1),e.password.hide?e._e():t("ElFormItem",{attrs:{label:e.password.label||"密码",rules:e.password.rules,"label-width":e.setPx(e.password.labelWidth),prop:"password"}},[t("ElTooltip",{attrs:{content:e.password.tip,disabled:e.password.tip===void 0,placement:"top-start"}},[t("ElInput",{attrs:{type:"password",size:"small","prefix-icon":e.password.prefixIcon||"el-icon-unlock",placeholder:e.password.placeholder||"请输入密码","show-password":"",autocomplete:e.password.autocomplete},model:{value:e.form.password,callback:function(i){e.$set(e.form,"password",i)},expression:"form.password"}})],1)],1),e.code.hide?e._e():t("ElFormItem",{attrs:{label:e.code.label||"验证码",rules:e.code.rules,"label-width":e.setPx(e.code.labelWidth),prop:"code"}},[t("ElTooltip",{attrs:{content:e.code.tip,disabled:e.code.tip===void 0,placement:"top-start"}},[t("ElInput",{attrs:{size:"small","prefix-icon":e.code.prefixIcon||"el-icon-c-scale-to-original",placeholder:e.code.placeholder||"请输入验证码",autocomplete:e.code.autocomplete},scopedSlots:e._u([{key:"append",fn:function(){return[e.isPhone?t("ElButton",{staticClass:"avue-login__send",attrs:{type:"primary",disabled:e.sendDisabled},on:{click:e.onSend}},[e._v(" "+e._s(e.text)+" ")]):e._e(),e.isImg?t("span",[t("img",{attrs:{src:e.codesrc,alt:"",width:"80",height:"25"},on:{click:e.onRefresh}})]):e._e()]},proxy:!0}],null,!1,2861735427),model:{value:e.form.code,callback:function(i){e.$set(e.form,"code",i)},expression:"form.code"}})],1)],1),t("ElFormItem",[t("ElButton",{staticClass:"avue-login__submit",attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v(" 登录 ")])],1)],1)],1)},IF=[];const xo="发送验证码",$o="{{time}}s后重获取",TF={name:"Login",props:{value:{type:Object,default:()=>({})},codesrc:{type:String},option:{type:Object,default:()=>({})}},data(){return{text:xo,nowtime:"",check:{},flag:!1}},computed:{form:{get(){return this.value},set(e){this.$emit("input",e),this.$emit("change",e)}},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!d.isBlank(this.check)}},methods:{setPx:w,onSend(){const e=()=>{this.nowtime=this.time,this.text=$o.replace("{{time}}",this.nowtime),this.check=setInterval(()=>{this.nowtime--,this.nowtime===0?(this.text=xo,clearInterval(this.check),this.check=null):this.text=$o.replace("{{time}}",this.nowtime)},1e3)};this.sendDisabled||this.$emit("send",e)},onRefresh(){this.$emit("refresh")},onSubmit(){const e=()=>{const n={};for(const t in this.form){let i=t;this[t].prop&&(i=this[t].prop),n[i]=this.form[t]}return n};this.$refs.form.validate(n=>{n&&this.$emit("submit",e())})}}},wo={};var BF=u(TF,FF,IF,!1,AF,null,null,null);function AF(e){for(let n in wo)this[n]=wo[n]}const Gi=function(){return BF.exports}();var OF=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"name-avatar",class:e.square?"square":"round"},[e.faceUrl&&!e.num?t("img",{staticClass:"name-avatar-image",attrs:{src:e.faceUrl,alt:""}}):t("div",{staticClass:"name-avatar-text",style:e.styles},[e._v(" "+e._s(e.text)+" ")])])},MF=[];const PF={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 e={};return this.size&&(e["font-size"]="12px"),this.fontColor&&(e.color=this.fontColor),this.backgroundColor&&(e.background=this.backgroundColor),e}}},Co={};var DF=u(PF,OF,MF,!1,LF,null,null,null);function LF(e){for(let n in Co)this[n]=Co[n]}const Ji=function(){return DF.exports}();var RF=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"nav-bar"},[e.showBack?t("ElButton",{attrs:{type:"text",icon:"el-icon-arrow-left"},on:{click:e.goBack}},[e._v(" 返回 ")]):e._e(),e.$slots.right?t("div",{staticClass:"flex-item flex-row-column vertical-center"},[e._t("right")],2):e._e()],1)},NF=[];const jF={name:"NavBar",props:{onGoBack:Function,showBack:{type:Boolean,default:!0}},methods:{goBack(){this.onGoBack?this.onGoBack():this.$router.back()}}},So={};var zF=u(jF,RF,NF,!1,KF,null,null,null);function KF(e){for(let n in So)this[n]=So[n]}const Qi=function(){return zF.exports}();var WF=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"avue-notice"},[e._l(e.data,function(i,s){return t("div",{key:s,staticClass:"avue-notice__item",on:{click:function(a){return e.click(i)}}},[i[e.imgKey]?t("div",{staticClass:"avue-notice__img"},[t("img",{attrs:{src:i[e.imgKey],alt:""}})]):e._e(),t("div",{staticClass:"avue-notice__content"},[t("div",{staticClass:"avue-notice__title"},[t("span",{staticClass:"avue-notice__name"},[e._v(e._s(i[e.titleKey]))]),i[e.tagKey]?t("span",{staticClass:"avue-notice__tag"},[t("ElTag",{attrs:{size:"small",type:e.getType(i[e.statusKey])}},[e._v(e._s(i[e.tagKey]))])],1):e._e()]),t("div",{staticClass:"avue-notice__subtitle"},[e._v(" "+e._s(i[e.subtitleKey])+" ")])])])}),e.finish?e._e():t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"avue-notice__more",on:{click:e.handleClick}},[e._v(" 加载更多 ")])],2)},VF=[];const re={img:"img",title:"title",subtile:"title",tag:"tag",status:"status"},UF={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||re},imgKey(){return this.props.img||re.img},titleKey(){return this.props.title||re.title},subtitleKey(){return this.props.subtitle||re.subtitle},tagKey(){return this.props.tag||re.tag},statusKey(){return this.props.status||re.status}},methods:{click(e){this.$emit("click",e)},handleClick(){this.loading=!0;const e=()=>{this.loading=!1};this.page++,this.$emit("page-change",this.page,e)},getType(e=0){if(e===0)return"info";if(e===1)return"";if(e===2)return"warning";if(e===3)return"danger";if(e===4)return"success"}}},ko={};var HF=u(UF,WF,VF,!1,qF,null,null,null);function qF(e){for(let n in ko)this[n]=ko[n]}const Yi=function(){return HF.exports}();var GF=function(){var e=this,n=e.$createElement;return e._self._c,e._m(0)},JF=[function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"not-implement"},[t("div",[t("i",{staticClass:"fa fa-wrench"}),e._v(" 建设中... ")])])}];const QF={name:"NotImplement"},Eo={};var YF=u(QF,GF,JF,!1,XF,null,null,null);function XF(e){for(let n in Eo)this[n]=Eo[n]}const Xi=function(){return YF.exports}();var ZF=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"page flex-row flex-item",class:{vertical:e.vertical&&!e.horizontal}},[e._t("default")],2)},e1=[];const t1={name:"Page",props:{vertical:{type:Boolean,default:!0},horizontal:Boolean}},Fo={};var n1=u(t1,ZF,e1,!1,i1,null,null,null);function i1(e){for(let n in Fo)this[n]=Fo[n]}const Zi=function(){return n1.exports}();var s1=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{class:["pageable-table",{"auto-height":e.autoHeight}]},[t("div",{staticClass:"pageable-table-wrapper"},[e._t("toolbar"),t("ElTable",e._g(e._b({ref:"table",class:["flex-item",{"header-bold":e.headerBold}],attrs:{data:e.records,border:e.border},on:{"hook:updated":e.updateTableScrollPosition,"sort-change":e.onSortChange,"row-dblclick":e.rowDbClick,"current-change":e.onCurrentChange},scopedSlots:e._u([{key:"empty",fn:function(){return[e._t("empty",function(){return[e.tableStatus===e.TABLE_STATUS.loading?[t("span",{staticClass:"pageable-table-loading"},[t("i",{staticClass:"table-status-icon el-icon-loading"}),e._v(" 加载中...")])]:e.tableStatus===e.TABLE_STATUS.error?[t("ElButton",{staticClass:"pageable-table-error",attrs:{icon:"table-status-icon fa fa-frown-o"},on:{click:e.refresh}},[e._v(" 加载失败,点击重试! ")])]:[e._v(" 暂无数据 ")]]})]},proxy:!0},{key:"append",fn:function(){return[e._t("append")]},proxy:!0}],null,!0)},"ElTable",e.filterTableProperties(e.mergeAttrs),!1),e.filterTableEvents(e.$listeners)),[e.multiple&&e.selection?t("TableColumn",{key:"multiple",attrs:{type:"selection",width:"45",align:"center"}}):e._e(),!e.multiple&&e.selection?t("TableColumn",{key:"single",attrs:{type:"single-selection","class-name":"single-select-column",width:"45",align:"center"},scopedSlots:e._u([{key:"header",fn:function(){return[t("ElRadio",{attrs:{value:!!e.currentRow,label:!0}},[t("span")])]},proxy:!0},{key:"default",fn:function(i){var s=i.row;return[t("ElRadio",{attrs:{label:!0,value:e.currentRow&&e.currentRow[e.$attrs["row-key"]||"id"]===s[e.$attrs["row-key"]||"id"]}},[t("span")])]}}],null,!1,307797321)}):e._e(),e.index?t("TableColumn",{key:"order",attrs:{type:"index",label:"序号",width:e.indexWidth,align:"center"},scopedSlots:e._u([{key:"default",fn:function(i){var s=i.$index;return[e._v(" "+e._s((e.page.page-1)*e.page.limit+s+1||s+1)+" ")]}}],null,!1,4238275121)}):e._e(),e._t("default",function(){return[e.columns&&e.columns.length?e._l(e.headers,function(i,s){return t("TableColumn",e._b({key:`${i.prop}-${s}`},"TableColumn",i,!1))}):t("TableColumn",{attrs:{label:"点击表格行复制模板"},scopedSlots:e._u([{key:"default",fn:function(i){var s=i.row;return[t("pre",{staticClass:"pointer"},[e._v(e._s(JSON.stringify(s,null," ")))])]}}])})]})],2),t("ElPagination",{staticClass:"flex-not-shrink",attrs:{"current-page":e.page.page,"hide-on-single-page":e.hideOnSinglePage,"page-size":e.page.limit,total:e.page.total,background:"",layout:"total, prev, pager, next, jumper"},on:{"current-change":function(i){e.page.page=i}}})],2)])},a1=[];const le={loading:1,error:-1,empty:2,success:0},r1={name:"PageableTable",bus:{reloadTableView(e){e===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 e={rules:[]};this.rules&&this.rules.length>0&&(e.rules=this.rules),this.filters&&(e=this.filters),this.filter&&(e=Object.assign({},e,this.filter));let n={};this.model&&(n=O.cloneDeep(this.model));const t=this.pageSize;return{TABLE_STATUS:Object.freeze(le),tableStatus:le.empty,records:[],currentRow:null,page:{total:0,page:1,limit:t,ascs:this.ascs,descs:this.descs,model:n,filters:e}}},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 e=`${(this.page.page-1)*this.page.limit+this.records.length}`;return e.length>3?50+(e.length-3)*10:50},mergeAttrs(){return O.merge({},this.$attrs,{height:this.autoHeight?null:"auto"})},headers(){var e;return((e=this.columns)==null?void 0:e.map($e))||[]}},watch:{url:{handler:"reload"},api:{handler:"reload"},"$attrs.data"(){this.getPage()},model:{deep:!0,handler(e){this.setModel(e)}}},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(...e){var t;const n=this.$refs.table.$children.find(i=>{var s;return((s=i.$options)==null?void 0:s.name)==="ElTableBody"});n&&((t=n.$refs.tooltip)==null||t.hide()),this.$emit("row-dblclick",...e)},updateTableScrollPosition(){return _(this,null,function*(){this.$refs.table.bodyWrapper&&this.scrollTo(this.tableScrollTop,this.tableScrollLeft)})},filterTableProperties:Rc,filterTableEvents:Nc,filterTableColumnProperties:$e,onTableScroll(){this.tableScrollTop=this.$refs.table.bodyWrapper.scrollTop,this.tableScrollLeft=this.$refs.table.bodyWrapper.scrollLeft},onSortChange({prop:e,order:n}){this.page.ascs=n==="ascending"?e:"",this.page.descs=n==="descending"?e:""},onCurrentChange(e){this.currentRow=e},addRule(e){this.removeRule(e.field),this.page.filters.rules.push(e)},addRules(e){e.forEach(n=>this.addRule(n))},setModelField(e,n){this.$set(this.page.model,e,n)},setModel(e){this.page.page=1,this.page.model=O.cloneDeep(e)},deleteModelField(e){delete this.page.model[e]},removeRule(e){const n=this.page.filters.rules,t=n.findIndex(i=>i.field===e);t>-1&&n.splice(t,1)},addFilter({field:e,op:n,value:t}){this.page.filters=Object.assign({},this.page.filters,{rules:[{field:e,op:n,value:t}],op:"and"})},clearFilters(){this.page.filters={}},clearSelection(){this.$refs.table.clearSelection()},search(){this.setModel(this.model),this.getPage()},getPage(){return _(this,null,function*(){var o;if(d.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 e;const l=this.page,{filters:n}=l,t=Ie(l,["filters"]),i=f({},t);if((o=n==null?void 0:n.rules)!=null&&o.length&&(i.filters={rules:n.rules}),this.api||this.url){this.tableStatus=le.loading;try{this.api&&(e=yield this.api(i)),this.url&&(e=yield this.method(this.url,i))}catch(c){this.tableStatus=le.error,console.error(c);return}}else{this.$notify.warning({title:"开发提示!",message:"PageableTable 请提供 url(String) 或 api(Function) 属性"});return}const{data:s}=e||{},{total:a,records:r}=s||{};this.page.total=Number(a),this.records=r,!r||!r.length?this.tableStatus=le.empty:this.tableStatus=le.success,this.$refs.table.doLayout(),this.$emit("page-loaded",s)})},refresh(){return _(this,null,function*(){yield this.getPage()})},reload(){return _(this,null,function*(){this.page=E(f({},this.$options.data.call(this).page),{total:this.page.total})})},scrollTo(e,n){e&&(this.$refs.table.bodyWrapper.scrollTop=e),n&&(this.$refs.table.bodyWrapper.scrollLeft=n)}}},Io={};var l1=u(r1,s1,a1,!1,o1,null,null,null);function o1(e){for(let n in Io)this[n]=Io[n]}const es=function(){return l1.exports}();var c1=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"work",staticStyle:{height:"100%","background-color":"#fff"}},[t("div",{staticClass:"flex-column list-content",staticStyle:{height:"100%"}},[t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"flex-item-relative",attrs:{"element-loading-text":"加载中...","element-loading-background":"#fff"}},[t("div",{ref:"scroller",staticClass:"scroll-wrapper"},[t("div",{staticClass:"cards-block"},[e._t("prepend"),e._l(e.records,function(i){return[e._t("default",null,{item:i})]}),e._t("append")],2)])]),t("ElPagination",{staticClass:"flex-not-shrink",staticStyle:{"border-top":"1px solid #ebeef5"},attrs:{"current-page":e.page.page,"hide-on-single-page":e.hideOnSinglePage,"page-size":e.page.limit,total:e.page.total,background:"",layout:"total, prev, pager, next, jumper"},on:{"current-change":function(i){e.page.page=i}}})],1)])},u1=[];function d1(e){let n="";for(const t in e)n+=`<ElTableColumn prop="${t}" label="${t}"/>
|
|
70
|
+
`;return n}const ge={loading:1,error:-1,empty:2,success:0},p1={name:"PageableView",bus:{reloadTableView(e){e===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 e={rules:[]};this.rules&&this.rules.length>0&&(e.rules=this.rules),this.filters&&(e=this.filters),this.filter&&(e=Object.assign({},e,this.filter));let n={};this.model&&(n=O.cloneDeep(this.model));const t=this.pageSize;return{tableStatus:ge.empty,records:[],loading:!1,currentRow:null,page:{total:0,page:1,limit:t,ascs:this.ascs,descs:this.descs,model:n,filters:e}}},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 e=`${(this.page.page-1)*this.page.limit+this.records.length}`;return e.length>3?50+(e.length-3)*10:50},mergeAttrs(){return O.merge({},this.$attrs,{height:this.autoHeight?null:"auto"})},headers(){var e;return((e=this.columns)==null?void 0:e.map($e))||[]}},watch:{url:{handler:"reload"},api:{handler:"reload"},"$attrs.data"(){this.getPage()},model:{deep:!0,handler(e){this.setModel(e)}}},created(){this.$watch(()=>this.guard,this.getPage,{deep:!0,immediate:this.immediate})},mounted(){this.$refs.scroller.addEventListener("scroll",this.onTableScroll)},beforeDestroy(){var e;(e=this.$refs.scroller)==null||e.removeEventListener("scroll",this.onTableScroll)},methods:{updateTableScrollPosition(){return _(this,null,function*(){this.$refs.scroller&&this.scrollTo(this.tableScrollTop,this.tableScrollLeft)})},filterTableProperties:Rc,filterTableEvents:Nc,filterTableColumnProperties:$e,onTableScroll(){this.tableScrollTop=this.$refs.scroller.scrollTop,this.tableScrollLeft=this.$refs.scroller.scrollLeft},copy:e=>d.copy(d1(e)),onSortChange({prop:e,order:n}){this.page.ascs=n==="ascending"?e:"",this.page.descs=n==="descending"?e:""},onCurrentChange(e){this.currentRow=e},addRule(e){this.removeRule(e.field),this.page.filters.rules.push(e)},addRules(e){e.forEach(n=>this.addRule(n))},setModelField(e,n){this.$set(this.page.model,e,n)},setModel(e){this.page.page=1,this.page.model=O.cloneDeep(e)},deleteModelField(e){delete this.page.model[e]},removeRule(e){const n=this.page.filters.rules,t=n.findIndex(i=>i.field===e);t>-1&&n.splice(t,1)},addFilter({field:e,op:n,value:t}){this.page.filters=Object.assign({},this.page.filters,{rules:[{field:e,op:n,value:t}],op:"and"})},clearFilters(){this.page.filters={}},clearSelection(){this.$refs.table.clearSelection()},search(){this.setModel(this.model),this.getPage()},getPage(){return _(this,null,function*(){var o;if(d.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 e;const l=this.page,{filters:n}=l,t=Ie(l,["filters"]),i=f({},t);if((o=n==null?void 0:n.rules)!=null&&o.length&&(i.filters={rules:n.rules}),this.api||this.url){this.tableStatus=ge.loading;try{this.loading=!0,this.api&&(e=yield this.api(i)),this.url&&(e=yield this.method(this.url,i)),this.loading=!1}catch(c){this.tableStatus=ge.error,console.error(c),this.loading=!1;return}}else{this.$notify.warning({title:"开发提示!",message:"PageableTable 请提供 url(String) 或 api(Function) 属性"});return}const{data:s}=e||{},{total:a,records:r}=s||{};this.page.total=Number(a),this.records=r,!r||!r.length?this.tableStatus=ge.empty:this.tableStatus=ge.success,this.$refs.table&&(this.$refs.scroller.scrollTop=0),this.$emit("page-loaded",s)})},refresh(){return _(this,null,function*(){yield this.getPage()})},reload(){return _(this,null,function*(){this.page=E(f({},this.$options.data.call(this).page),{total:this.page.total})})},scrollTo(e,n){e&&(this.$refs.scroller.scrollTop=e),n&&(this.$refs.scroller.scrollLeft=n)}}},To={};var h1=u(p1,c1,u1,!1,m1,null,null,null);function m1(e){for(let n in To)this[n]=To[n]}const ts=function(){return h1.exports}();var f1=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"egd-header flex-row egd-page-header"},[e._t("section-title",function(){return[t("span",{staticClass:"section-title"},[e._t("title",function(){return[e._v(e._s(e.title))]},{title:e.title})],2)]},{title:e.title}),t("div",{staticClass:"flex-row flex-item vertical-center"},[t("div",{class:["flex-row","flex-item","vertical-center",{"align-end":e.alignEnd}]},[e._t("default")],2)])],2)},v1=[];const _1={name:"PageHeader",props:{title:{type:String,default:"标题"},alignEnd:{type:Boolean,default:!0}}},Bo={};var g1=u(_1,f1,v1,!1,y1,null,null,null);function y1(e){for(let n in Bo)this[n]=Bo[n]}const ns=function(){return g1.exports}();var b1=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"egd-container"},[e.aside?t("div",{staticClass:"egd-aside",style:{width:e.asideWidth}},[e._t("aside",function(){return[t("div",{staticClass:"egd-main"},[e._t("nav-top"),t("div",{staticClass:"egd-header"},[t("span",{staticClass:"section-title flex-not-shrink"},[e._v(e._s(e.sectionTitle))])]),e._t("menu",function(){return[t("ElTree",{ref:"menuTree",attrs:{data:e.menus,"default-expand-all":"",props:e.defaultProps,"highlight-current":"","empty-text":"请配置菜单!","default-expanded-keys":e.currentTreeKey,"node-key":"key"},on:{"node-click":e.onNodeClick},scopedSlots:e._u([{key:"default",fn:function(i){var s=i.data,a=i.node;return[e._t("tree-node",function(){return[t("span",[t("i",{class:s.icon}),e._v(" "+e._s(s.label))])]},{data:s,node:a})]}}],null,!0)})]})],2)]})],2):e._e(),t("div",{staticClass:"page-index-content",style:{width:e.aside?`calc(100% - ${e.asideWidth})`:"100%"}},[e._t("default",function(){return[t("div",{staticClass:"page-index-content-empty"},[e._v(" "+e._s(e.tips)+" ")])]})],2)])},x1=[];const $1={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 _(this,null,function*(){if(d.treeToArray(this.menus).map(n=>n.path).filter(n=>n).includes(this.$route.path))yield this.setCurrentKey(this.$route.path);else{const n=d.findFirstMatchNode(this.menus,t=>t.path);n&&(yield this.$router.push({path:n.path,query:n.query}),yield this.setCurrentKey(n.path))}})},onNodeClick(e){return _(this,null,function*(){e.path&&e.path.indexOf("/")>-1&&(yield this.$router.push({path:e.path,query:e.query})),yield this.setCurrentKey(e.key)})},setCurrentKey(e){return _(this,null,function*(){yield this.$nextTick(),this.$refs.menuTree&&this.$refs.menuTree.setCurrentKey(e)})},beforeRouteUpdate(e,n,t){return _(this,null,function*(){if(e.path===this.schema){const i=d.findFirstMatchNode(this.menus,s=>s.path);i?(yield t({path:i.path,query:i.query}),yield this.setCurrentKey(i.path)):yield t(!1)}else yield t(),yield this.setCurrentKey(this.$route.path)})}}},Ao={};var w1=u($1,b1,x1,!1,C1,null,null,null);function C1(e){for(let n in Ao)this[n]=Ao[n]}const is=function(){return w1.exports}();var S1=function(){var e=this,n=e.$createElement,t=e._self._c||n;return e.menus&&e.menus.length?t("PageSkeleton",{scopedSlots:e._u([{key:"header",fn:function(){return[t("PageHeader",{scopedSlots:e._u([{key:"section-title",fn:function(){return[t("ElTabs",{on:{"tab-click":e.tabClick},model:{value:e.activeTab,callback:function(i){e.activeTab=i},expression:"activeTab"}},e._l(e.menus,function(i){return t("ElTabPane",{key:i.path,attrs:{label:i.label,name:`${i.path}`}})}),1)]},proxy:!0}],null,!1,412017982)})]},proxy:!0}],null,!1,2288233724)},[e._t("default",function(){return[t("EmptyView",{attrs:{"empty-tips":e.tips}})]})],2):t("EmptyView",{attrs:{"empty-tips":"暂无权限!"}})},k1=[];const E1={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 _(this,null,function*(){if(d.treeToArray(this.menus).map(n=>n.path).filter(n=>n).includes(this.$route.path))this.activeTab=this.$route.path;else{const n=d.findFirstMatchNode(this.menus,t=>t.path);n&&(this.activeTab=n.path,yield this.$router.push({path:n.path,query:n.query}))}})},tabClick(e){return _(this,null,function*(){yield this.$router.push(e.name)})},beforeRouteUpdate(e,n,t){return _(this,null,function*(){if(e.path===this.schema){const i=d.findFirstMatchNode(this.menus,s=>s.path);i?(yield t({path:i.path,query:i.query}),this.activeTab=i.path):yield t(!1)}else yield t()})}}},Oo={};var F1=u(E1,S1,k1,!1,I1,null,null,null);function I1(e){for(let n in Oo)this[n]=Oo[n]}const ss=function(){return F1.exports}();var T1=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("Page",{staticClass:"page-skeleton"},[e.header?e._t("header",function(){return[e.title?t("PageHeader",{attrs:{title:e.title}}):t("NavBar")]}):e._e(),t("div",{class:["page-content",{"flex-column":e.flexColumn,"flex-row":e.flexRow,"content-scroll":e.contentScroll},e.contentClass]},[e._t("default")],2)],2)},B1=[];const A1={name:"PageSkeleton",props:{title:String,flexColumn:Boolean,flexRow:Boolean,header:{type:Boolean,default:!0},contentClass:String,contentScroll:{type:Boolean,default:!0}}},Mo={};var O1=u(A1,T1,B1,!1,M1,null,null,null);function M1(e){for(let n in Mo)this[n]=Mo[n]}const as=function(){return O1.exports}();var P1=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("Page",{staticClass:"page-skeleton-new",attrs:{horizontal:""}},[t("div",{staticClass:"page-skeleton-new-left",style:{width:e.sidebarWidth}},[e.header?t("div",{staticClass:"page-skeleton-new-header",staticStyle:{"margin-right":"0"}},[t("span",{staticClass:"section-title"},[e._v(e._s(e.title))])]):e._e(),t("div",{staticClass:"flex-item",staticStyle:{"border-right":"1px solid #eee"}},[e._t("sidebar-content",function(){return[e._v(" 侧栏内容 ")]})],2)]),t("div",{staticClass:"page-skeleton-new-right",style:{width:`calc(100% - ${e.sidebarWidth})`}},[e.header?t("div",{staticClass:"page-skeleton-new-header",staticStyle:{"margin-left":"0","padding-left":"10px"}},[t("div",{staticClass:"flex-item flex-row vertical-center"},[e._t("header-left")],2),t("div",{staticClass:"flex-item flex-row vertical-center"},[t("div",{class:["flex-row","flex-item","vertical-center","align-end"]},[e._t("header-right")],2)])]):e._e(),t("div",{class:["page-skeleton-new-page-content","flex-item",{"flex-column":e.flexColumn,"flex-row":e.flexRow,"content-scroll":e.contentScroll},e.contentClass]},[e._t("default",function(){return[e._v("内容")]})],2)])])},D1=[];const L1={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"}}},Po={};var R1=u(L1,P1,D1,!1,N1,null,null,null);function N1(e){for(let n in Po)this[n]=Po[n]}const rs=function(){return R1.exports}();function j1(e){new Pu(e).init()}function Do(i,s){return _(this,arguments,function*(e,n,t={selector:"chat-image"}){const a=e.target;if(!(!a||a.classList.contains(t.selector)||a.tagName==="IMG"))return;const r=n.querySelectorAll(t.selector==="img"?t.selector:`.${t.selector}`),l=[...r].findIndex(c=>c===a);l>=0&&(t.index=l);const o=yield z1(r);yield j1({dataSource:o,index:l})})}function z1(e){return _(this,null,function*(){const n=[];for(let t=0,i=e.length;t<i;t++){const s=e[t],a=s.getAttribute("data-src")||s.getAttribute("src"),r={src:a,msrc:a,alt:s.getAttribute("data-title")||s.getAttribute("alt"),element:s},l=s.getAttribute("data-height"),o=s.getAttribute("data-width");let c={width:o,height:l};!l&&!o&&(c=yield K1(s),s.setAttribute("data-height",c.height),s.setAttribute("data-width",c.width)),r.w=c.width,r.width=c.width,r.h=c.height,r.height=c.height,n.push(r)}return n})}function K1(e){const n=e.getAttribute("data-src")||e.getAttribute("src"),t=e.getAttribute("data-height"),i=e.getAttribute("data-width");return t&&i?{width:i,height:t}:e.complete?{width:e.naturalWidth,height:e.naturalHeight}:new Promise(s=>{const a=new Image;a.src=n;const r={};a.complete?(r.width=a.width,r.height=a.height,s(r)):(a.onload=()=>{r.width=a.width,r.height=a.height,s(r)},a.onerror=()=>{r.width=0,r.height=0,s(r)})})}var W1=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{ref:"wrapper"},[e._t("default",function(){return e._l(e.urls,function(i){return t("img",{key:i.src,staticStyle:{cursor:"pointer"},attrs:{width:"100",src:i.src,alt:""},on:{click:e.preview}})})},{urls:e.urls,preview:e.preview})],2)},V1=[];const U1={name:"PhotoSwipe",photoswipe:Do,props:{urls:Array,selector:{type:String,default:"img"}},methods:{preview(e){return _(this,null,function*(){yield Do(e,this.$refs.wrapper,{selector:this.selector})})}}},Lo={};var H1=u(U1,W1,V1,!1,q1,null,null,null);function q1(e){for(let n in Lo)this[n]=Lo[n]}const ls=function(){return H1.exports}();var G1=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{class:["form-view",e.className]},[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.isFormLoading,expression:"!isFormLoading"}],staticClass:"form-view-toolbar"},[e._t("form-view-toolbar",function(){return[t("Toolbar",e._g(e._b({directives:[{name:"show",rawName:"v-show",value:e.showToolbar,expression:"showToolbar"}],on:{edit:e.onEdit},scopedSlots:e._u([{key:"default",fn:function(i){var s=i.buttons;return[e._t("toolbar-button",null,{buttons:s})]}},e._l(e.getToolbarSlotKeys(),function(i){return{key:i,fn:function(){return[e._t(i)]},proxy:!0}}),{key:"toolbar-right",fn:function(){return[e._t("toolbar-right")]},proxy:!0}],null,!0)},"Toolbar",Object.assign({},e.toolbarProps,{buttons:e.getToolbarButtons(e.toolbarProps.buttons)}),!1),e.toolbarListeners))]})],2),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.isFormLoading,expression:"!isFormLoading"}],staticClass:"form-scroller-wrapper"},[t("div",{ref:"formScroller",class:["form-scroller","absolute-box",e.contentClass],on:{scroll:e.onFormScroll}},[e.notForm?t("div",{staticClass:"not-form",style:{width:e.formWidth}},[e.title?t("div",{staticClass:"form-view-title"},[e._v(e._s(e.title))]):e._e(),e._t("default",function(){return[t("EmptyView",{attrs:{"empty-tips":"请添加表单内容"}})]}),t("Toolbar",e._g(e._b({attrs:{footer:""},scopedSlots:e._u([{key:"default",fn:function(i){var s=i.buttons,a=i.footer;return[e._t("footer-button",null,{buttons:s,footer:a})]}},e._l(e.getFooterSlotKeys(),function(i){return{key:e.getFooterSlotKey(i),fn:function(){return[e._t(i)]},proxy:!0}})],null,!0)},"Toolbar",Object.assign({},e.toolbarProps,{buttons:e.getFooterBarButtons(e.toolbarProps.buttons)}),!1),e.toolbarListeners)),e.$scopedSlots["form-bottom"]?e._t("form-bottom"):e._e()],2):t("div",{class:["form-card",{"un-limit":e.unLimit}],style:{width:`calc(${e.formWidth} + 40px)`}},[t("div",{staticClass:"form-content"},[e.title?t("div",{staticClass:"form-view-title"},[e._v(e._s(e.title))]):e._e(),e._t("default",function(){return[t("EmptyView",{attrs:{"empty-tips":"请添加表单内容"}})]}),e.getFooterBarButtons(e.toolbarProps.buttons).length?t("Toolbar",e._g(e._b({attrs:{footer:""},scopedSlots:e._u([{key:"default",fn:function(i){var s=i.buttons,a=i.footer;return[e._t("footer-button",null,{buttons:s,footer:a})]}},e._l(e.getFooterSlotKeys(),function(i){return{key:e.getFooterSlotKey(i),fn:function(){return[e._t(i)]},proxy:!0}})],null,!0)},"Toolbar",Object.assign({},e.toolbarProps,{buttons:e.getFooterBarButtons(e.toolbarProps.buttons)}),!1),e.toolbarListeners)):e._e()],2)]),e.$scopedSlots["form-bottom"]||e.$parent.$options.flowForm&&e.flowContext.logs.length?t("div",{class:["form-card",{"un-limit":e.unLimit}],staticStyle:{"min-height":"0"},style:{width:`calc(${e.formWidth} + 40px)`}},[t("div",{staticClass:"form-content"},[t("FormItemGroup",{attrs:{"block-title":"流程日志"}},[t("FlowLog",{attrs:{fetch:!1,"show-title":!1,"business-key":e.$parent.bizKey}})],1),e._t("form-bottom")],2)]):e._e()]),t("ResizeObserver",{on:{notify:e.onFormResize}})],1),e.formNav&&!e.isFormLoading&&e.showNav&&e.tabs.length?t("div",{staticClass:"form-nav"},[t("div",{staticClass:"form-nav-header"},[e._v("表单导航")]),t("ul",{staticClass:"form-nav-list"},e._l(e.tabs,function(i,s){return t("li",{key:i.blockTitle,class:["form-nav-item",{active:e.activeIndex===s}],on:{click:function(a){return e.tabClick(i,s)}}},[e._v(" "+e._s(i.blockTitle)+" ")])}),0)]):e._e(),e.isFormLoading?t("LoadingView",{attrs:{"icon-size":"34px","font-size":"16px"}}):e._e()],1)},J1=[];const Zc=["back","create","save","withdraw","edit","submit","publish","agree","disagree","reject","finish","cancel","enable","exp","imp","del","disabled","reload","slot"],Q1=Zc.map(e=>`${e}-down`),Y1=["back","withdraw","edit"],Ro=["save","submit","","publish","agree","disagree","reject","finish","cancel"],dt=(e,n)=>{if(e.classList.contains(n))return e;let t=e.parentNode;for(;t&&!t.classList.contains(n);)t=t.parentNode;return t.classList.contains(n)?t:null},X1={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||d.hasOwn(this.$parent,"isFormLoaded")?!this.$parent.isFormLoaded:!1},toolbarProps(){var i;const e={},n=((i=this.toolbarAttrs)==null?void 0:i.buttons)||this.$parent.buttons,t=O.merge({},this.toolbarAttrs,e);return t.buttons=n||["back"],t.buttons=d.toStringArray(t.buttons),t}},created(){this.$on("FormView.addTab",e=>{e&&(this.activeIndex===-1&&(this.activeIndex=0),this.tabs.push(e),this.tabs=this.tabs.sort((n,t)=>{const i=dt(n.$el,"form-card"),s=dt(t.$el,"form-card");if(i===s){const a=[].indexOf.call(n.$el.parentNode.children,n.$el),r=[].indexOf.call(t.$el.parentNode.children,t.$el);return a-r}else{const a=dt(i,"form-scroller"),r=[].indexOf.call(a.children,i),l=[].indexOf.call(a.children,s);return r-l}}),e.active&&(this.activeIndex=this.tabs.indexOf(e),this.tabClick(e,this.activeIndex)))}),this.$on("FormView.removeTab",e=>{if(e){const n=this.tabs.indexOf(e);this.tabs.splice(n,1),this.activeIndex>this.tabs.length-1&&(this.activeIndex=0)}}),this.onFormResize({width:window.document.body.clientWidth})},activated(){return _(this,null,function*(){this.$refs.formScroller&&(yield this.$nextTick(),this.scrollTo(this.formScrollTop,this.formScrollLeft))})},methods:{getToolbarSlotKeys(){return Object.keys(this.$scopedSlots).filter(e=>Zc.includes(e))},getFooterSlotKeys(){return Object.keys(this.$scopedSlots).filter(e=>Q1.includes(e))},getFooterSlotKey(e){return e.replace("-down","")},onFormResize({width:e}){this.showNav=e>1500},onEdit(){!this.toolbarListeners.edit&&d.hasOwn(this.$parent,"disabled")&&(this.$parent.disabled=!1)},tabClick(e,n){return _(this,null,function*(){this.showNav&&(yield this.$nextTick(),e.expand||(e.open(),yield d.delay(200),yield this.$nextTick()),this.tryByClick=!0,this.activeIndex=n,this.$refs.formScroller.scrollTop=e.$el.offsetTop-10)})},tryActive(){return _(this,null,function*(){if(this.showNav){for(let e=0;e<this.tabs.length;e++)if(d.isInContainer(this.tabs[e].$el,this.$refs.formScroller,{bottomOffset:10})){this.activeIndex=e;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(e,n){e&&(this.$refs.formScroller.scrollTop=e),n&&(this.$refs.formScroller.scrollLeft=n)},getToolbarButtons(e){return e.filter(n=>!Ro.includes(n)&&n.indexOf(":down")<0).map(n=>n.replace(":up",""))},getFooterBarButtons(e){let n=e.filter(t=>!Y1.includes(t)&&(Ro.includes(t)||t.indexOf(":down")>-1)).map(t=>t.replace(":down",""));return n=n||[],this.$parent.isEnabled&&!n.includes("cancel")&&n.push("cancel"),n}}},No={};var Z1=u(X1,G1,J1,!1,eI,null,null,null);function eI(e){for(let n in No)this[n]=No[n]}const os=function(){return Z1.exports}();const tI=(e,n,t)=>(t=t||"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"
|
|
74
74
|
xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"
|
|
75
75
|
xmlns:dc="http://www.omg.org/spec/DD/20100524/DC"
|
|
76
76
|
xmlns:di="http://www.omg.org/spec/DD/20100524/DI"
|
|
77
|
-
id="diagram_${
|
|
78
|
-
targetNamespace="${{activiti:"http://activiti.org/bpmn",camunda:"http://bpmn.io/schema/bpmn",flowable:"http://flowable.org/bpmn"}[
|
|
79
|
-
<bpmn2:process id="${
|
|
77
|
+
id="diagram_${e}"
|
|
78
|
+
targetNamespace="${{activiti:"http://activiti.org/bpmn",camunda:"http://bpmn.io/schema/bpmn",flowable:"http://flowable.org/bpmn"}[t]}">
|
|
79
|
+
<bpmn2:process id="${e}" name="${n}" isExecutable="true">
|
|
80
80
|
</bpmn2:process>
|
|
81
81
|
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
|
82
|
-
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="${
|
|
82
|
+
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="${e}">
|
|
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$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=`
|
|
85
|
+
</bpmn2:definitions>`);function nI(e){return function(n,t){return t=t||{},n=e[n]||n,n.replace(/{([^}]+)}/g,function(i,s){let a=t[s];return e[t[s]]!==null&&e[t[s]]!==void 0&&(a=e[t[s]]),a||`{${s}}`})}}const iI={"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.":"指定多个组作为逗号分隔的列表。"},sI="Camunda",aI="http://camunda.org/schema/1.0/bpmn",rI="camunda",lI={tagAlias:"lowerCase"},oI=[],cI=[{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"}]}],uI=[],dI={name:sI,uri:aI,prefix:rI,xml:lI,associations:oI,types:cI,emumerations:uI},pI="Activiti",hI="http://activiti.org/bpmn",mI="activiti",fI={tagAlias:"lowerCase"},vI=[],_I=[{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"}]}],gI=[],yI={name:pI,uri:hI,prefix:mI,xml:fI,associations:vI,types:_I,emumerations:gI},bI="Flowable",xI="http://flowable.org/bpmn",$I="flowable",wI={tagAlias:"lowerCase"},CI=[],SI=[{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}]}],kI=[],EI={name:bI,uri:xI,prefix:$I,xml:wI,associations:CI,types:SI,emumerations:kI},FI="*";function me(e){const n=this;e.on("moddleCopy.canCopyProperty",function(t){const i=t.property,s=t.parent;return n.canCopyProperty(i,s)})}me.$inject=["eventBus"];me.prototype.canCopyProperty=function(e,n){if(ie.isObject(e)&&!II(e,n)||de(e,"camunda:InputOutput")&&!this.canHostInputOutput(n)||eu(e,["camunda:Connector","camunda:Field"])&&!this.canHostConnector(n)||de(e,"camunda:In")&&!this.canHostIn(n))return!1};me.prototype.canHostInputOutput=function(e){if(H(e,"camunda:Connector"))return!0;const t=H(e,"bpmn:FlowNode");return!(!t||eu(t,["bpmn:StartEvent","bpmn:Gateway","bpmn:BoundaryEvent"])||de(t,"bpmn:SubProcess")&&t.get("triggeredByEvent"))};me.prototype.canHostConnector=function(e){const n=H(e,"camunda:ServiceTaskLike");return de(n,"bpmn:MessageEventDefinition")?H(e,"bpmn:IntermediateThrowEvent")||H(e,"bpmn:EndEvent"):!0};me.prototype.canHostIn=function(e){return H(e,"bpmn:CallActivity")?!0:H(e,"bpmn:SignalEventDefinition")?H(e,"bpmn:IntermediateThrowEvent")||H(e,"bpmn:EndEvent"):!0};function de(e,n){return e&&ie.isFunction(e.$instanceOf)&&e.$instanceOf(n)}function eu(e,n){return ie.some(n,function(t){return de(e,t)})}function H(e,n){if(!n)return e.$parent;if(de(e,n))return e;if(e.$parent)return H(e.$parent,n)}function II(e,n){const t=e.$type&&e.$model.getTypeDescriptor(e.$type),i=t&&t.meta&&t.meta.allowedIn;return!i||TI(i)?!0:ie.some(i,function(s){return H(n,s)})}function TI(e){return e.indexOf(FI)!==-1}const BI={__init__:["camundaModdleExtension"],camundaModdleExtension:["type",me]},AI={FailedJobRetryTimeCycle:["bpmn:StartEvent","bpmn:BoundaryEvent","bpmn:IntermediateCatchEvent","bpmn:Activity"],Connector:["bpmn:EndEvent","bpmn:IntermediateThrowEvent"],Field:["bpmn:EndEvent","bpmn:IntermediateThrowEvent"]};function Js(e,n){return e&&typeof e.$instanceOf=="function"&&e.$instanceOf(n)}function OI(e){return e&&e.length}function Pe(e,n){return OI(e)&&ie.some(e,function(t){return Js(t,n)})}function MI(e,n){return ie.some(n,function(t){return Js(e,t)})}function pt(e,n,t){const i=n.name,s=AI[i.replace(/activiti:/,"")];return i===e&&MI(t,s)}function Qs(e){e.on("property.clone",function(n){const t=n.newElement,i=n.propertyDescriptor;this.canCloneProperty(t,i)},this)}Qs.$inject=["eventBus"];Qs.prototype.canCloneProperty=function(e,n){if(pt("activiti:FailedJobRetryTimeCycle",n,e))return Pe(e.eventDefinitions,"bpmn:TimerEventDefinition")||Pe(e.eventDefinitions,"bpmn:SignalEventDefinition")||Js(e.loopCharacteristics,"bpmn:MultiInstanceLoopCharacteristics");if(pt("activiti:Connector",n,e)||pt("activiti:Field",n,e))return Pe(e.eventDefinitions,"bpmn:MessageEventDefinition")};const PI={__init__:["ActivitiModdleExtension"],ActivitiModdleExtension:["type",Qs]},DI={FailedJobRetryTimeCycle:["bpmn:StartEvent","bpmn:BoundaryEvent","bpmn:IntermediateCatchEvent","bpmn:Activity"],Connector:["bpmn:EndEvent","bpmn:IntermediateThrowEvent"],Field:["bpmn:EndEvent","bpmn:IntermediateThrowEvent"]};function Ys(e,n){return e&&typeof e.$instanceOf=="function"&&e.$instanceOf(n)}function LI(e){return e&&e.length}function De(e,n){return LI(e)&&ie.some(e,function(t){return Ys(t,n)})}function RI(e,n){return ie.some(n,function(t){return Ys(e,t)})}function ht(e,n,t){const i=n.name,s=DI[i.replace(/flowable:/,"")];return i===e&&RI(t,s)}function Xs(e){e.on("property.clone",function(n){const t=n.newElement,i=n.propertyDescriptor;this.canCloneProperty(t,i)},this)}Xs.$inject=["eventBus"];Xs.prototype.canCloneProperty=function(e,n){if(ht("flowable:FailedJobRetryTimeCycle",n,e))return De(e.eventDefinitions,"bpmn:TimerEventDefinition")||De(e.eventDefinitions,"bpmn:SignalEventDefinition")||Ys(e.loopCharacteristics,"bpmn:MultiInstanceLoopCharacteristics");if(ht("flowable:Connector",n,e)||ht("flowable:Field",n,e))return De(e.eventDefinitions,"bpmn:MessageEventDefinition")};const NI={__init__:["FlowableModdleExtension"],FlowableModdleExtension:["type",Xs]};var jI=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"my-process-designer"},[t("div",{staticClass:"my-process-designer__header"},[e._t("control-header"),e.$slots["control-header"]?e._e():[t("ElButtonGroup",{key:"file-control"},[e.simulation?t("ElTooltip",{attrs:{effect:"light",content:"保存流程"}},[t("ElButton",{attrs:{size:e.headerButtonSize,type:e.headerButtonType,icon:"el-icon-save"},on:{click:function(i){return e.$refs.refFile.click()}}},[e._v(" 保存 ")])],1):e._e(),e.simulation?t("ElTooltip",{attrs:{effect:"light",content:"导入流程"}},[t("ElButton",{attrs:{size:e.headerButtonSize,type:e.headerButtonType,icon:"el-icon-folder-opened"},on:{click:function(i){return e.$refs.refFile.click()}}},[e._v(" 导入 ")])],1):e._e(),t("ElTooltip",{attrs:{effect:"light"},scopedSlots:e._u([{key:"content",fn:function(){return[t("ElButton",{attrs:{size:e.headerButtonSize,type:"text"},on:{click:function(i){return e.downloadProcessAsXml()}}},[e._v("下载为XML文件")]),t("br"),t("ElButton",{attrs:{size:e.headerButtonSize,type:"text"},on:{click:function(i){return e.downloadProcessAsSvg()}}},[e._v("下载为SVG文件")]),t("br"),t("ElButton",{attrs:{size:e.headerButtonSize,type:"text"},on:{click:function(i){return e.downloadProcessAsBpmn()}}},[e._v("下载为BPMN文件")])]},proxy:!0}],null,!1,1539507321)},[t("ElButton",{attrs:{size:e.headerButtonSize,type:e.headerButtonType,icon:"el-icon-download"}},[e._v("下载")])],1),t("ElTooltip",{attrs:{effect:"light"},scopedSlots:e._u([{key:"content",fn:function(){return[t("ElButton",{attrs:{size:e.headerButtonSize,type:"text"},on:{click:e.previewProcessXML}},[e._v("预览XML")]),t("br"),t("ElButton",{attrs:{size:e.headerButtonSize,type:"text"},on:{click:e.previewProcessJson}},[e._v("预览JSON")])]},proxy:!0}],null,!1,3067180497)},[t("ElButton",{attrs:{size:e.headerButtonSize,type:e.headerButtonType,icon:"el-icon-view"}},[e._v("预览")])],1),e.simulation?t("ElTooltip",{attrs:{effect:"light",content:e.simulationStatus?"退出模拟":"开启模拟"}},[t("ElButton",{attrs:{size:e.headerButtonSize,type:e.headerButtonType,icon:"el-icon-cpu"},on:{click:e.processSimulation}},[e._v(" 模拟 ")])],1):e._e()],1),t("ElButtonGroup",{key:"align-control"},[t("ElTooltip",{attrs:{effect:"light",content:"向左对齐"}},[t("ElButton",{staticClass:"align align-left",attrs:{size:e.headerButtonSize,icon:"el-icon-s-data"},on:{click:function(i){return e.elementsAlign("left")}}})],1),t("ElTooltip",{attrs:{effect:"light",content:"向右对齐"}},[t("ElButton",{staticClass:"align align-right",attrs:{size:e.headerButtonSize,icon:"el-icon-s-data"},on:{click:function(i){return e.elementsAlign("right")}}})],1),t("ElTooltip",{attrs:{effect:"light",content:"向上对齐"}},[t("ElButton",{staticClass:"align align-top",attrs:{size:e.headerButtonSize,icon:"el-icon-s-data"},on:{click:function(i){return e.elementsAlign("top")}}})],1),t("ElTooltip",{attrs:{effect:"light",content:"向下对齐"}},[t("ElButton",{staticClass:"align align-bottom",attrs:{size:e.headerButtonSize,icon:"el-icon-s-data"},on:{click:function(i){return e.elementsAlign("bottom")}}})],1),t("ElTooltip",{attrs:{effect:"light",content:"水平居中"}},[t("ElButton",{staticClass:"align align-center",attrs:{size:e.headerButtonSize,icon:"el-icon-s-data"},on:{click:function(i){return e.elementsAlign("center")}}})],1),t("ElTooltip",{attrs:{effect:"light",content:"垂直居中"}},[t("ElButton",{staticClass:"align align-middle",attrs:{size:e.headerButtonSize,icon:"el-icon-s-data"},on:{click:function(i){return e.elementsAlign("middle")}}})],1)],1),t("ElButtonGroup",{key:"scale-control"},[t("ElTooltip",{attrs:{effect:"light",content:"缩小视图"}},[t("ElButton",{attrs:{size:e.headerButtonSize,disabled:e.defaultZoom<.2,icon:"el-icon-zoom-out"},on:{click:function(i){return e.processZoomOut()}}})],1),t("ElButton",{attrs:{size:e.headerButtonSize}},[e._v(e._s(`${Math.floor(e.defaultZoom*10*10)}%`))]),t("ElTooltip",{attrs:{effect:"light",content:"放大视图"}},[t("ElButton",{attrs:{size:e.headerButtonSize,disabled:e.defaultZoom>4,icon:"el-icon-zoom-in"},on:{click:function(i){return e.processZoomIn()}}})],1),t("ElTooltip",{attrs:{effect:"light",content:"重置视图并居中"}},[t("ElButton",{attrs:{size:e.headerButtonSize,icon:"el-icon-c-scale-to-original"},on:{click:function(i){return e.processReZoom()}}})],1)],1),t("ElButtonGroup",{key:"stack-control"},[t("ElTooltip",{attrs:{effect:"light",content:"撤销"}},[t("ElButton",{attrs:{size:e.headerButtonSize,disabled:!e.revocable,icon:"el-icon-refresh-left"},on:{click:function(i){return e.processUndo()}}})],1),t("ElTooltip",{attrs:{effect:"light",content:"恢复"}},[t("ElButton",{attrs:{size:e.headerButtonSize,disabled:!e.recoverable,icon:"el-icon-refresh-right"},on:{click:function(i){return e.processRedo()}}})],1),t("ElTooltip",{attrs:{effect:"light",content:"重新绘制"}},[t("ElButton",{attrs:{size:e.headerButtonSize,icon:"el-icon-refresh"},on:{click:e.processRestart}})],1)],1)],t("input",{ref:"refFile",staticStyle:{display:"none"},attrs:{id:"files",type:"file",accept:".xml, .bpmn"},on:{change:e.importLocalFile}})],2),t("div",{staticClass:"my-process-designer__container"},[t("div",{ref:"bpmn-canvas",staticClass:"my-process-designer__canvas"})]),t("ElementDialog",{attrs:{title:"预览",width:"60vw",height:"60vh",visible:e.previewModelVisible,"body-padding":!1,"destroy-on-close":""},on:{"update:visible":function(i){e.previewModelVisible=i}}},[t("HighlightJS",{attrs:{language:e.previewType,code:e.previewResult}})],1)],1)},zI=[];ye.registerLanguage("xml",Nu);ye.registerLanguage("json",ju);const KI={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:e=>["default","medium","small","mini"].indexOf(e)!==-1},headerButtonType:{type:String,default:"primary",validator:e=>["default","primary","success","warning","danger","info"].indexOf(e)!==-1}},data(){return{defaultZoom:1,previewModelVisible:!1,simulationStatus:!1,previewResult:"",previewType:"xml",recoverable:!1,revocable:!1}},computed:{additionalModules(){const e=[];if(this.onlyCustomizeAddi)return Object.prototype.toString.call(this.additionalModel)==="[object Array]"?this.additionalModel||[]:[this.additionalModel];Object.prototype.toString.call(this.additionalModel)==="[object Array]"?e.push(...this.additionalModel):this.additionalModel&&e.push(this.additionalModel);const n={translate:["value",nI(this.translations||iI)]};return e.push(n),this.simulation&&e.push(Lu),this.prefix==="camunda"&&e.push(BI),this.prefix==="flowable"&&e.push(NI),this.prefix==="activiti"&&e.push(PI),e},moddleExtensions(){const e={};if(this.onlyCustomizeModdle)return this.moddleExtension||null;if(this.moddleExtension)for(const n in this.moddleExtension)e[n]=this.moddleExtension[n];return this.prefix==="activiti"&&(e.activiti=yI),this.prefix==="flowable"&&(e.flowable=EI),this.prefix==="camunda"&&(e.camunda=dI),e}},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 Du(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 e=this.bpmnModeler.get("eventBus"),n=this;this.events.forEach(t=>{e.on(t,function(i){const s=t.replace(/\./g,"-"),a=i?i.element:null;n.$emit(s,a,i)})}),e.on("commandStack.changed",t=>_(this,null,function*(){try{this.recoverable=this.bpmnModeler.get("commandStack").canRedo(),this.revocable=this.bpmnModeler.get("commandStack").canUndo();const{xml:i}=yield this.bpmnModeler.saveXML({format:!0});this.$emit("commandStack-changed",t),this.$emit("input",i),this.$emit("change",i)}catch(i){console.error(`[Process Designer Warn]: ${i.message||i}`)}})),this.bpmnModeler.on("canvas.viewbox.changed",({viewbox:t})=>{this.$emit("canvas-viewbox-changed",{viewbox:t});const{scale:i}=t;this.defaultZoom=Math.floor(i*100)/100})},createNewDiagram(e){return _(this,null,function*(){const n=this.processId||`Process_${new Date().getTime()}`,t=this.processName||`业务流程_${new Date().getTime()}`,i=e||tI(n,t,this.prefix);try{const{warnings:s}=yield this.bpmnModeler.importXML(i);s&&s.length&&s.forEach(a=>console.warn(a))}catch(s){console.error(`[Process Designer Warn]: ${(s==null?void 0:s.message)||s}`)}})},downloadProcess(e,n){return _(this,null,function*(){try{const i=this;if(e==="xml"||e==="bpmn"){const{err:s,xml:a}=yield this.bpmnModeler.saveXML();s&&console.error(`[Process Designer Warn ]: ${s.message||s}`);const{href:r,filename:l}=i.setEncoded(e.toUpperCase(),n,a);t(r,l)}else{const{err:s,svg:a}=yield this.bpmnModeler.saveSVG();if(s)return console.error(s);const{href:r,filename:l}=i.setEncoded("SVG",n,a);t(r,l)}}catch(i){console.error(`[Process Designer Warn ]: ${i.message||i}`)}function t(i,s){if(i&&s){const a=document.createElement("a");a.download=s,a.href=i,a.click(),URL.revokeObjectURL(a.href)}}})},setEncoded(e,n="diagram",t){const i=encodeURIComponent(t);return{filename:`${n}.${e}`,href:`data:application/${e==="svg"?"text/xml":"bpmn20-xml"};charset=UTF-8,${i}`,data:t}},importLocalFile(){const e=this,n=this.$refs.refFile.files[0],t=new FileReader;t.readAsText(n),t.onload=function(){const i=this.result;e.createNewDiagram(i)}},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(e=.1){const n=Math.floor(this.defaultZoom*100+e*100)/100;if(n>4)throw new Error("[Process Designer Warn ]: The zoom ratio cannot be greater than 4");this.defaultZoom=n,this.bpmnModeler.get("canvas").zoom(this.defaultZoom)},processZoomOut(e=.1){const n=Math.floor(this.defaultZoom*100-e*100)/100;if(n<.2)throw new Error("[Process Designer Warn ]: The zoom ratio cannot be less than 0.2");this.defaultZoom=n,this.bpmnModeler.get("canvas").zoom(this.defaultZoom)},processZoomTo(e=1){if(e<.2)throw new Error("[Process Designer Warn ]: The zoom ratio cannot be less than 0.2");if(e>4)throw new Error("[Process Designer Warn ]: The zoom ratio cannot be greater than 4");this.defaultZoom=e,this.bpmnModeler.get("canvas").zoom(e)},processReZoom(){this.defaultZoom=1,this.bpmnModeler.get("canvas").zoom("fit-viewport","auto")},processRestart(){this.recoverable=!1,this.revocable=!1,this.createNewDiagram(null)},elementsAlign(e){const n=this.bpmnModeler.get("alignElements"),i=this.bpmnModeler.get("selection").get();if(!i||i.length<=1){this.$message.warning("请按住 Shift 键选择多个元素对齐");return}this.$confirm("自动对齐可能造成图形变形,是否继续?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>n.trigger(i,e))},previewProcessXML(){this.bpmnModeler.saveXML({format:!0}).then(({xml:e})=>{this.previewResult=e,this.previewType="xml",this.previewModelVisible=!0})},previewProcessJson(){const e=new Ru;this.bpmnModeler.saveXML({format:!0}).then(({xml:n})=>{const{definitions:t}=e.xml2js(n);t?this.previewResult=JSON.stringify(t,null,4):this.previewResult="",this.previewType="json",this.previewModelVisible=!0})}}},jo={};var WI=u(KI,jI,zI,!1,VI,null,null,null);function VI(e){for(let n in jo)this[n]=jo[n]}const cs=function(){return WI.exports}();var UI=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"panel-tab__content"},[t("ElForm",{attrs:{size:"mini","label-width":"90px"},nativeOn:{submit:function(i){i.preventDefault()}}},[t("ElFormItem",{attrs:{label:"ID"}},[t("ElInput",{attrs:{disabled:e.idEditDisabled,clearable:""},on:{change:function(i){return e.updateBaseInfo("id")}},model:{value:e.elementBaseInfo.id,callback:function(i){e.$set(e.elementBaseInfo,"id",i)},expression:"elementBaseInfo.id"}})],1),t("ElFormItem",{attrs:{label:"名称"}},[t("ElInput",{attrs:{clearable:""},on:{change:function(i){return e.updateBaseInfo("name")}},model:{value:e.elementBaseInfo.name,callback:function(i){e.$set(e.elementBaseInfo,"name",i)},expression:"elementBaseInfo.name"}})],1),e.elementBaseInfo.$type==="bpmn:Process"?[t("ElFormItem",{attrs:{label:"版本标签"}},[t("ElInput",{attrs:{clearable:""},on:{change:function(i){return e.updateBaseInfo("versionTag")}},model:{value:e.elementBaseInfo.versionTag,callback:function(i){e.$set(e.elementBaseInfo,"versionTag",i)},expression:"elementBaseInfo.versionTag"}})],1),t("ElFormItem",{attrs:{label:"可执行"}},[t("ElSwitch",{attrs:{"active-text":"是","inactive-text":"否"},on:{change:function(i){return e.updateBaseInfo("isExecutable")}},model:{value:e.elementBaseInfo.isExecutable,callback:function(i){e.$set(e.elementBaseInfo,"isExecutable",i)},expression:"elementBaseInfo.isExecutable"}})],1)]:e._e(),e.elementBaseInfo.$type==="bpmn:SubProcess"?t("ElFormItem",{attrs:{label:"状态"}},[t("ElSwitch",{attrs:{"active-text":"展开","inactive-text":"折叠"},on:{change:function(i){return e.updateBaseInfo("isExpanded")}},model:{value:e.elementBaseInfo.isExpanded,callback:function(i){e.$set(e.elementBaseInfo,"isExpanded",i)},expression:"elementBaseInfo.isExpanded"}})],1):e._e()],2)],1)},HI=[];const qI={name:"ElementBaseInfo",props:{businessObject:Object,idEditDisabled:{type:Boolean,default:!0}},data(){return{elementBaseInfo:{}}},watch:{businessObject:{immediate:!1,handler:function(e){e&&this.$nextTick(()=>this.resetBaseInfo())}}},beforeDestroy(){this.bpmnElement=null},methods:{resetBaseInfo(){var e,n;this.bpmnElement=((e=window==null?void 0:window.bpmnInstances)==null?void 0:e.bpmnElement)||{},this.elementBaseInfo=JSON.parse(JSON.stringify(this.bpmnElement.businessObject)),this.elementBaseInfo&&this.elementBaseInfo.$type==="bpmn:SubProcess"&&this.$set(this.elementBaseInfo,"isExpanded",(n=this.elementBaseInfo.di)==null?void 0:n.isExpanded)},updateBaseInfo(e){var t;if(e==="id"){window.bpmnInstances.modeling.updateProperties(this.bpmnElement,{id:this.elementBaseInfo[e],di:{id:`${this.elementBaseInfo[e]}_di`}});return}if(e==="isExpanded"){(t=window==null?void 0:window.bpmnInstances)==null||t.modeling.toggleCollapse(this.bpmnElement);return}const n=Object.create(null);n[e]=this.elementBaseInfo[e],window.bpmnInstances.modeling.updateProperties(this.bpmnElement,n)}}},zo={};var GI=u(qI,UI,HI,!1,JI,null,null,null);function JI(e){for(let n in zo)this[n]=zo[n]}const QI=function(){return GI.exports}();var YI=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"panel-tab__content"},[t("div",{staticClass:"element-property input-property"},[t("div",{staticClass:"element-property__label"},[e._v("元素文档:")]),t("div",{staticClass:"element-property__value"},[t("ElInput",{attrs:{type:"textarea",size:"mini",resize:"vertical",autosize:{minRows:2,maxRows:4}},on:{input:e.updateDocumentation,blur:e.updateDocumentation},model:{value:e.documentation,callback:function(i){e.documentation=i},expression:"documentation"}})],1)])])},XI=[];const ZI={name:"ElementOtherConfig",props:{id:String},data(){return{documentation:""}},watch:{id:{immediate:!0,handler:function(e){e&&e.length?this.$nextTick(()=>{var t;const n=(t=window.bpmnInstances.bpmnElement.businessObject)==null?void 0:t.documentation;this.documentation=n&&n.length?n[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 e=window.bpmnInstances.bpmnFactory.create("bpmn:Documentation",{text:this.documentation});window.bpmnInstances.modeling.updateProperties(this.bpmnElement,{documentation:[e]})}}},Ko={};var eT=u(ZI,YI,XI,!1,tT,null,null,null);function tT(e){for(let n in Ko)this[n]=Ko[n]}const nT=function(){return eT.exports}();var iT=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticStyle:{"margin-top":"16px"}},[t("ElFormItem",{attrs:{label:"处理用户"}},[t("ElSelect",{on:{change:function(i){return e.updateElementTask("assignee")}},model:{value:e.userTaskForm.assignee,callback:function(i){e.$set(e.userTaskForm,"assignee",i)},expression:"userTaskForm.assignee"}},e._l(e.mockData,function(i){return t("ElOption",{key:`ass-${i}`,attrs:{label:`用户${i}`,value:`user${i}`}})}),1)],1),t("ElFormItem",{attrs:{label:"候选用户"}},[t("ElSelect",{attrs:{multiple:"","collapse-tags":""},on:{change:function(i){return e.updateElementTask("candidateUsers")}},model:{value:e.userTaskForm.candidateUsers,callback:function(i){e.$set(e.userTaskForm,"candidateUsers",i)},expression:"userTaskForm.candidateUsers"}},e._l(e.mockData,function(i){return t("ElOption",{key:`user-${i}`,attrs:{label:`用户${i}`,value:`user${i}`}})}),1)],1),t("ElFormItem",{attrs:{label:"候选分组"}},[t("ElSelect",{attrs:{multiple:"","collapse-tags":""},on:{change:function(i){return e.updateElementTask("candidateGroups")}},model:{value:e.userTaskForm.candidateGroups,callback:function(i){e.$set(e.userTaskForm,"candidateGroups",i)},expression:"userTaskForm.candidateGroups"}},e._l(e.mockData,function(i){return t("ElOption",{key:`ass-${i}`,attrs:{label:`分组${i}`,value:`group${i}`}})}),1)],1),t("ElFormItem",{attrs:{label:"到期时间"}},[t("ElInput",{attrs:{clearable:""},on:{change:function(i){return e.updateElementTask("dueDate")}},model:{value:e.userTaskForm.dueDate,callback:function(i){e.$set(e.userTaskForm,"dueDate",i)},expression:"userTaskForm.dueDate"}})],1),t("ElFormItem",{attrs:{label:"跟踪时间"}},[t("ElInput",{attrs:{clearable:""},on:{change:function(i){return e.updateElementTask("followUpDate")}},model:{value:e.userTaskForm.followUpDate,callback:function(i){e.$set(e.userTaskForm,"followUpDate",i)},expression:"userTaskForm.followUpDate"}})],1),t("ElFormItem",{attrs:{label:"优先级"}},[t("ElInput",{attrs:{clearable:""},on:{change:function(i){return e.updateElementTask("priority")}},model:{value:e.userTaskForm.priority,callback:function(i){e.$set(e.userTaskForm,"priority",i)},expression:"userTaskForm.priority"}})],1)],1)},sT=[];const aT={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 e,n;for(const t in this.defaultTaskForm){let i;t==="candidateUsers"||t==="candidateGroups"?i=(e=this.bpmnElement)!=null&&e.businessObject[t]?this.bpmnElement.businessObject[t].split(","):[]:i=((n=this.bpmnElement)==null?void 0:n.businessObject[t])||this.defaultTaskForm[t],this.$set(this.userTaskForm,t,i)}},updateElementTask(e){const n=Object.create(null);e==="candidateUsers"||e==="candidateGroups"?n[e]=this.userTaskForm[e]&&this.userTaskForm[e].length?this.userTaskForm[e].join():null:n[e]=this.userTaskForm[e]||null,window.bpmnInstances.modeling.updateProperties(this.bpmnElement,n)}}},Wo={};var rT=u(aT,iT,sT,!1,lT,null,null,null);function lT(e){for(let n in Wo)this[n]=Wo[n]}const oT=function(){return rT.exports}();var cT=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticStyle:{"margin-top":"16px"}},[t("ElFormItem",{attrs:{label:"脚本格式"}},[t("ElInput",{attrs:{clearable:""},on:{input:function(i){return e.updateElementTask()},change:function(i){return e.updateElementTask()}},model:{value:e.scriptTaskForm.scriptFormat,callback:function(i){e.$set(e.scriptTaskForm,"scriptFormat",i)},expression:"scriptTaskForm.scriptFormat"}})],1),t("ElFormItem",{attrs:{label:"脚本类型"}},[t("ElSelect",{model:{value:e.scriptTaskForm.scriptType,callback:function(i){e.$set(e.scriptTaskForm,"scriptType",i)},expression:"scriptTaskForm.scriptType"}},[t("ElOption",{attrs:{label:"内联脚本",value:"inline"}}),t("ElOption",{attrs:{label:"外部资源",value:"external"}})],1)],1),t("ElFormItem",{directives:[{name:"show",rawName:"v-show",value:e.scriptTaskForm.scriptType==="inline",expression:"scriptTaskForm.scriptType === 'inline'"}],attrs:{label:"脚本"}},[t("ElInput",{attrs:{type:"textarea",resize:"vertical",autosize:{minRows:2,maxRows:4},clearable:""},on:{input:function(i){return e.updateElementTask()},change:function(i){return e.updateElementTask()}},model:{value:e.scriptTaskForm.script,callback:function(i){e.$set(e.scriptTaskForm,"script",i)},expression:"scriptTaskForm.script"}})],1),t("ElFormItem",{directives:[{name:"show",rawName:"v-show",value:e.scriptTaskForm.scriptType==="external",expression:"scriptTaskForm.scriptType === 'external'"}],attrs:{label:"资源地址"}},[t("ElInput",{attrs:{clearable:""},on:{input:function(i){return e.updateElementTask()},change:function(i){return e.updateElementTask()}},model:{value:e.scriptTaskForm.resource,callback:function(i){e.$set(e.scriptTaskForm,"resource",i)},expression:"scriptTaskForm.resource"}})],1),t("ElFormItem",{attrs:{label:"结果变量"}},[t("ElInput",{attrs:{clearable:""},on:{input:function(i){return e.updateElementTask()},change:function(i){return e.updateElementTask()}},model:{value:e.scriptTaskForm.resultVariable,callback:function(i){e.$set(e.scriptTaskForm,"resultVariable",i)},expression:"scriptTaskForm.resultVariable"}})],1)],1)},uT=[];const dT={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 e;for(const n in this.defaultTaskForm){const t=((e=this.bpmnElement)==null?void 0:e.businessObject[n])||this.defaultTaskForm[n];this.$set(this.scriptTaskForm,n,t)}this.$set(this.scriptTaskForm,"scriptType",this.scriptTaskForm.script?"inline":"external")},updateElementTask(){const e=Object.create(null);e.scriptFormat=this.scriptTaskForm.scriptFormat||null,e.resultVariable=this.scriptTaskForm.resultVariable||null,this.scriptTaskForm.scriptType==="inline"?(e.script=this.scriptTaskForm.script||null,e.resource=null):(e.resource=this.scriptTaskForm.resource||null,e.script=null),window.bpmnInstances.modeling.updateProperties(this.bpmnElement,e)}}},Vo={};var pT=u(dT,cT,uT,!1,hT,null,null,null);function hT(e){for(let n in Vo)this[n]=Vo[n]}const mT=function(){return pT.exports}();var fT=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticStyle:{"margin-top":"16px"}},[t("ElFormItem",{attrs:{label:"消息实例"}},[t("div",{staticStyle:{display:"flex","flex-wrap":"nowrap","align-items":"center","justify-content":"space-between"}},[t("ElSelect",{on:{change:e.updateTaskMessage},model:{value:e.bindMessageId,callback:function(i){e.bindMessageId=i},expression:"bindMessageId"}},e._l(Object.keys(e.messageMap),function(i){return t("ElOption",{key:i,attrs:{value:i,label:e.messageMap[i]}})}),1),t("ElButton",{staticStyle:{"margin-left":"8px"},attrs:{size:"mini",type:"primary",icon:"el-icon-plus"},on:{click:e.openMessageModel}})],1)]),t("ElementDialog",{attrs:{visible:e.messageModelVisible,"close-on-click-modal":!1,title:"创建新消息",width:"400px","append-to-body":"","destroy-on-close":""},on:{"update:visible":function(i){e.messageModelVisible=i}},scopedSlots:e._u([{key:"footer",fn:function(){return[t("ElButton",{attrs:{size:"mini",type:"primary"},on:{click:e.createNewMessage}},[e._v("确 认")])]},proxy:!0}])},[t("ElForm",{attrs:{model:e.newMessageForm,size:"mini","label-width":"90px"},nativeOn:{submit:function(i){i.preventDefault()}}},[t("ElFormItem",{attrs:{label:"消息ID"}},[t("ElInput",{attrs:{clearable:""},model:{value:e.newMessageForm.id,callback:function(i){e.$set(e.newMessageForm,"id",i)},expression:"newMessageForm.id"}})],1),t("ElFormItem",{attrs:{label:"消息名称"}},[t("ElInput",{attrs:{clearable:""},model:{value:e.newMessageForm.name,callback:function(i){e.$set(e.newMessageForm,"name",i)},expression:"newMessageForm.name"}})],1)],1)],1)],1)},vT=[];const _T={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(e=>e.$type==="bpmn:Message").forEach(e=>{this.bpmnMessageRefsMap[e.id]=e,this.$set(this.messageMap,e.id,e.name)}),this.$set(this.messageMap,"-1","无")},beforeDestroy(){this.bpmnElement=null},methods:{getBindMessage(){var e,n;this.bpmnElement=window.bpmnInstances.bpmnElement,this.bindMessageId=((n=(e=this.bpmnElement.businessObject)==null?void 0:e.messageRef)==null?void 0:n.id)||"-1"},openMessageModel(){this.messageModelVisible=!0,this.newMessageForm={}},createNewMessage(){if(this.messageMap[this.newMessageForm.id]){this.$message.error("该消息已存在,请修改id后重新保存");return}const e=window.bpmnInstances.moddle.create("bpmn:Message",this.newMessageForm);this.bpmnRootElements.push(e),this.$set(this.messageMap,this.newMessageForm.id,this.newMessageForm.name),this.bpmnMessageRefsMap[this.newMessageForm.id]=e,this.messageModelVisible=!1},updateTaskMessage(e){e==="-1"?window.bpmnInstances.modeling.updateProperties(this.bpmnElement,{messageRef:null}):window.bpmnInstances.modeling.updateProperties(this.bpmnElement,{messageRef:this.bpmnMessageRefsMap[e]})}}},Uo={};var gT=u(_T,fT,vT,!1,yT,null,null,null);function yT(e){for(let n in Uo)this[n]=Uo[n]}const bT=function(){return gT.exports}();var xT=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"panel-tab__content"},[t("ElForm",{attrs:{size:"mini","label-width":"90px"},nativeOn:{submit:function(i){i.preventDefault()}}},[t("ElFormItem",{attrs:{label:"异步延续"}},[t("ElCheckbox",{attrs:{label:"异步前"},on:{change:e.changeTaskAsync},model:{value:e.taskConfigForm.asyncBefore,callback:function(i){e.$set(e.taskConfigForm,"asyncBefore",i)},expression:"taskConfigForm.asyncBefore"}}),t("ElCheckbox",{attrs:{label:"异步后"},on:{change:e.changeTaskAsync},model:{value:e.taskConfigForm.asyncAfter,callback:function(i){e.$set(e.taskConfigForm,"asyncAfter",i)},expression:"taskConfigForm.asyncAfter"}}),e.taskConfigForm.asyncAfter||e.taskConfigForm.asyncBefore?t("ElCheckbox",{attrs:{label:"排除"},on:{change:e.changeTaskAsync},model:{value:e.taskConfigForm.exclusive,callback:function(i){e.$set(e.taskConfigForm,"exclusive",i)},expression:"taskConfigForm.exclusive"}}):e._e()],1),t(e.witchTaskComponent,e._b({tag:"Component"},"Component",e.$props,!1))],1)],1)},$T=[];const wT={name:"ElementTaskConfig",components:{UserTask:oT,ScriptTask:mT,ReceiveTask:bT},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 e,n,t,i,s,a;this.bpmnElement=window.bpmnInstances.bpmnElement,this.taskConfigForm.asyncBefore=(n=(e=this.bpmnElement)==null?void 0:e.businessObject)==null?void 0:n.asyncBefore,this.taskConfigForm.asyncAfter=(i=(t=this.bpmnElement)==null?void 0:t.businessObject)==null?void 0:i.asyncAfter,this.taskConfigForm.exclusive=(a=(s=this.bpmnElement)==null?void 0:s.businessObject)==null?void 0:a.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))}}},Ho={};var CT=u(wT,xT,$T,!1,ST,null,null,null);function ST(e){for(let n in Ho)this[n]=Ho[n]}const kT=function(){return CT.exports}();var ET=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"panel-tab__content"},[t("ElForm",{attrs:{size:"mini","label-width":"90px"},nativeOn:{submit:function(i){i.preventDefault()}}},[t("ElFormItem",{attrs:{label:"回路特性"}},[t("ElSelect",{on:{change:e.changeLoopCharacteristicsType},model:{value:e.loopCharacteristics,callback:function(i){e.loopCharacteristics=i},expression:"loopCharacteristics"}},[t("ElOption",{attrs:{label:"并行多重事件",value:"ParallelMultiInstance"}}),t("ElOption",{attrs:{label:"时序多重事件",value:"SequentialMultiInstance"}}),t("ElOption",{attrs:{label:"循环事件",value:"StandardLoop"}}),t("ElOption",{attrs:{label:"无",value:"Null"}})],1)],1),e.loopCharacteristics==="ParallelMultiInstance"||e.loopCharacteristics==="SequentialMultiInstance"?[t("ElFormItem",{key:"loopCardinality",attrs:{label:"循环基数"}},[t("ElInput",{attrs:{clearable:""},on:{change:e.updateLoopCardinality},model:{value:e.loopInstanceForm.loopCardinality,callback:function(i){e.$set(e.loopInstanceForm,"loopCardinality",i)},expression:"loopInstanceForm.loopCardinality"}})],1),t("ElFormItem",{key:"collection",attrs:{label:"集合"}},[t("ElInput",{attrs:{clearable:""},on:{change:e.updateLoopBase},model:{value:e.loopInstanceForm.collection,callback:function(i){e.$set(e.loopInstanceForm,"collection",i)},expression:"loopInstanceForm.collection"}})],1),t("ElFormItem",{key:"elementVariable",attrs:{label:"元素变量"}},[t("ElInput",{attrs:{clearable:""},on:{change:e.updateLoopBase},model:{value:e.loopInstanceForm.elementVariable,callback:function(i){e.$set(e.loopInstanceForm,"elementVariable",i)},expression:"loopInstanceForm.elementVariable"}})],1),t("ElFormItem",{key:"completionCondition",attrs:{label:"完成条件"}},[t("ElInput",{attrs:{clearable:""},on:{change:e.updateLoopCondition},model:{value:e.loopInstanceForm.completionCondition,callback:function(i){e.$set(e.loopInstanceForm,"completionCondition",i)},expression:"loopInstanceForm.completionCondition"}})],1),t("ElFormItem",{key:"async",attrs:{label:"异步状态"}},[t("ElCheckbox",{attrs:{label:"异步前"},on:{change:function(i){return e.updateLoopAsync("asyncBefore")}},model:{value:e.loopInstanceForm.asyncBefore,callback:function(i){e.$set(e.loopInstanceForm,"asyncBefore",i)},expression:"loopInstanceForm.asyncBefore"}}),t("ElCheckbox",{attrs:{label:"异步后"},on:{change:function(i){return e.updateLoopAsync("asyncAfter")}},model:{value:e.loopInstanceForm.asyncAfter,callback:function(i){e.$set(e.loopInstanceForm,"asyncAfter",i)},expression:"loopInstanceForm.asyncAfter"}}),e.loopInstanceForm.asyncAfter||e.loopInstanceForm.asyncBefore?t("ElCheckbox",{attrs:{label:"排除"},on:{change:function(i){return e.updateLoopAsync("exclusive")}},model:{value:e.loopInstanceForm.exclusive,callback:function(i){e.$set(e.loopInstanceForm,"exclusive",i)},expression:"loopInstanceForm.exclusive"}}):e._e()],1),e.loopInstanceForm.asyncAfter||e.loopInstanceForm.asyncBefore?t("ElFormItem",{key:"timeCycle",attrs:{label:"重试周期",prop:"timeCycle"}},[t("ElInput",{attrs:{clearable:""},on:{change:e.updateLoopTimeCycle},model:{value:e.loopInstanceForm.timeCycle,callback:function(i){e.$set(e.loopInstanceForm,"timeCycle",i)},expression:"loopInstanceForm.timeCycle"}})],1):e._e()]:e._e()],2)],1)},FT=[];const IT={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(e){this.bpmnElement=window.bpmnInstances.bpmnElement,this.getElementLoop(e)}}},beforeDestroy(){this.multiLoopInstance=null,this.bpmnElement=null},methods:{getElementLoop(e){var n,t,i,s,a,r;if(!e.loopCharacteristics){this.loopCharacteristics="Null",this.loopInstanceForm={};return}if(e.loopCharacteristics.$type==="bpmn:StandardLoopCharacteristics"){this.loopCharacteristics="StandardLoop",this.loopInstanceForm={};return}e.loopCharacteristics.isSequential?this.loopCharacteristics="SequentialMultiInstance":this.loopCharacteristics="ParallelMultiInstance",this.loopInstanceForm=E(f(f({},this.defaultLoopInstanceForm),e.loopCharacteristics),{completionCondition:(i=(t=(n=e.loopCharacteristics)==null?void 0:n.completionCondition)==null?void 0:t.body)!=null?i:"",loopCardinality:(r=(a=(s=e.loopCharacteristics)==null?void 0:s.loopCardinality)==null?void 0:a.body)!=null?r:""}),this.multiLoopInstance=window.bpmnInstances.bpmnElement.businessObject.loopCharacteristics,e.loopCharacteristics.extensionElements&&e.loopCharacteristics.extensionElements.values&&e.loopCharacteristics.extensionElements.values.length&&this.$set(this.loopInstanceForm,"timeCycle",e.loopCharacteristics.extensionElements.values[0].body)},changeLoopCharacteristicsType(e){if(e==="Null"){window.bpmnInstances.modeling.updateProperties(this.bpmnElement,{loopCharacteristics:null});return}if(e==="StandardLoop"){const n=window.bpmnInstances.moddle.create("bpmn:StandardLoopCharacteristics");window.bpmnInstances.modeling.updateProperties(this.bpmnElement,{loopCharacteristics:n}),this.multiLoopInstance=null;return}e==="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(e){let n=null;e&&e.length&&(n=window.bpmnInstances.moddle.create("bpmn:FormalExpression",{body:e})),window.bpmnInstances.modeling.updateModdleProperties(this.bpmnElement,this.multiLoopInstance,{loopCardinality:n})},updateLoopCondition(e){let n=null;e&&e.length&&(n=window.bpmnInstances.moddle.create("bpmn:FormalExpression",{body:e})),window.bpmnInstances.modeling.updateModdleProperties(this.bpmnElement,this.multiLoopInstance,{completionCondition:n})},updateLoopTimeCycle(e){const n=window.bpmnInstances.moddle.create("bpmn:ExtensionElements",{values:[window.bpmnInstances.moddle.create(`${this.prefix}:FailedJobRetryTimeCycle`,{body:e})]});window.bpmnInstances.modeling.updateModdleProperties(this.bpmnElement,this.multiLoopInstance,{extensionElements:n})},updateLoopBase(){window.bpmnInstances.modeling.updateModdleProperties(this.bpmnElement,this.multiLoopInstance,{collection:this.loopInstanceForm.collection||null,elementVariable:this.loopInstanceForm.elementVariable||null})},updateLoopAsync(e){const{asyncBefore:n,asyncAfter:t}=this.loopInstanceForm;let i=Object.create(null);!n&&!t?(this.$set(this.loopInstanceForm,"exclusive",!1),i={asyncBefore:!1,asyncAfter:!1,exclusive:!1,extensionElements:null}):i[e]=this.loopInstanceForm[e],window.bpmnInstances.modeling.updateModdleProperties(this.bpmnElement,this.multiLoopInstance,i)}}},qo={};var TT=u(IT,ET,FT,!1,BT,null,null,null);function BT(e){for(let n in qo)this[n]=qo[n]}const AT=function(){return TT.exports}();var OT=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"panel-tab__content"},[t("ElForm",{attrs:{model:e.flowConditionForm,"label-width":"90px",size:"mini"},nativeOn:{submit:function(i){i.preventDefault()}}},[t("ElFormItem",{attrs:{label:"流转类型"}},[t("ElSelect",{on:{change:e.updateFlowType},model:{value:e.flowConditionForm.type,callback:function(i){e.$set(e.flowConditionForm,"type",i)},expression:"flowConditionForm.type"}},[t("ElOption",{attrs:{label:"普通流转路径",value:"normal"}}),t("ElOption",{attrs:{label:"默认流转路径",value:"default"}}),t("ElOption",{attrs:{label:"条件流转路径",value:"condition"}})],1)],1),e.flowConditionForm.type==="condition"?t("ElFormItem",{key:"condition",attrs:{label:"条件格式"}},[t("ElSelect",{model:{value:e.flowConditionForm.conditionType,callback:function(i){e.$set(e.flowConditionForm,"conditionType",i)},expression:"flowConditionForm.conditionType"}},[t("ElOption",{attrs:{label:"表达式",value:"expression"}}),t("ElOption",{attrs:{label:"脚本",value:"script"}})],1)],1):e._e(),e.flowConditionForm.conditionType&&e.flowConditionForm.conditionType==="expression"?t("ElFormItem",{key:"express",attrs:{label:"表达式"}},[t("ElInput",{attrs:{clearable:""},on:{change:e.updateFlowCondition},model:{value:e.flowConditionForm.body,callback:function(i){e.$set(e.flowConditionForm,"body",i)},expression:"flowConditionForm.body"}})],1):e._e(),e.flowConditionForm.conditionType&&e.flowConditionForm.conditionType==="script"?[t("ElFormItem",{key:"language",attrs:{label:"脚本语言"}},[t("ElInput",{attrs:{clearable:""},on:{change:e.updateFlowCondition},model:{value:e.flowConditionForm.language,callback:function(i){e.$set(e.flowConditionForm,"language",i)},expression:"flowConditionForm.language"}})],1),t("ElFormItem",{key:"scriptType",attrs:{label:"脚本类型"}},[t("ElSelect",{model:{value:e.flowConditionForm.scriptType,callback:function(i){e.$set(e.flowConditionForm,"scriptType",i)},expression:"flowConditionForm.scriptType"}},[t("ElOption",{attrs:{label:"内联脚本",value:"inlineScript"}}),t("ElOption",{attrs:{label:"外部脚本",value:"externalScript"}})],1)],1),e.flowConditionForm.scriptType==="inlineScript"?t("ElFormItem",{key:"body",attrs:{label:"脚本"}},[t("ElInput",{attrs:{type:"textarea",clearable:""},on:{change:e.updateFlowCondition},model:{value:e.flowConditionForm.body,callback:function(i){e.$set(e.flowConditionForm,"body",i)},expression:"flowConditionForm.body"}})],1):e._e(),e.flowConditionForm.scriptType==="externalScript"?t("ElFormItem",{key:"resource",attrs:{label:"资源地址"}},[t("ElInput",{attrs:{clearable:""},on:{change:e.updateFlowCondition},model:{value:e.flowConditionForm.resource,callback:function(i){e.$set(e.flowConditionForm,"resource",i)},expression:"flowConditionForm.resource"}})],1):e._e()]:e._e()],2)],1)},MT=[];const PT={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 e=this.bpmnElement.businessObject.conditionExpression;if(this.flowConditionForm=E(f({},e),{type:"condition"}),this.flowConditionForm.resource){this.$set(this.flowConditionForm,"conditionType","script"),this.$set(this.flowConditionForm,"scriptType","externalScript");return}if(e.language){this.$set(this.flowConditionForm,"conditionType","script"),this.$set(this.flowConditionForm,"scriptType","inlineScript");return}this.$set(this.flowConditionForm,"conditionType","expression")}},updateFlowType(e){if(e==="condition"){this.flowConditionRef=window.bpmnInstances.moddle.create("bpmn:FormalExpression"),window.bpmnInstances.modeling.updateProperties(this.bpmnElement,{conditionExpression:this.flowConditionRef});return}if(e==="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:e,scriptType:n,body:t,resource:i,language:s}=this.flowConditionForm;let a;e==="expression"?a=window.bpmnInstances.moddle.create("bpmn:FormalExpression",{body:t}):n==="inlineScript"?(a=window.bpmnInstances.moddle.create("bpmn:FormalExpression",{body:t,language:s}),this.$set(this.flowConditionForm,"resource","")):(this.$set(this.flowConditionForm,"body",""),a=window.bpmnInstances.moddle.create("bpmn:FormalExpression",{resource:i,language:s})),window.bpmnInstances.modeling.updateProperties(this.bpmnElement,{conditionExpression:a})}}},Go={};var DT=u(PT,OT,MT,!1,LT,null,null,null);function LT(e){for(let n in Go)this[n]=Go[n]}const RT=function(){return DT.exports}();var NT=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"panel-tab__content"},[t("div",{staticClass:"panel-tab__content--title"},[e._m(0),t("ElButton",{attrs:{size:"mini",type:"primary",icon:"el-icon-plus"},on:{click:function(i){return e.openModel("message")}}},[e._v("创建新消息")])],1),t("ElTable",{attrs:{data:e.messageList,size:"mini",border:""}},[t("ElTableColumn",{attrs:{type:"index",label:"序号",width:"60px"}}),t("ElTableColumn",{attrs:{label:"消息ID",prop:"id","max-width":"300px","show-overflow-tooltip":""}}),t("ElTableColumn",{attrs:{label:"消息名称",prop:"name","max-width":"300px","show-overflow-tooltip":""}})],1),t("div",{staticClass:"panel-tab__content--title",staticStyle:{"margin-top":"8px","padding-top":"8px","border-top":"1px solid #eee"}},[e._m(1),t("ElButton",{attrs:{size:"mini",type:"primary",icon:"el-icon-plus"},on:{click:function(i){return e.openModel("signal")}}},[e._v("创建新信号")])],1),t("ElTable",{attrs:{data:e.signalList,size:"mini",border:""}},[t("ElTableColumn",{attrs:{type:"index",label:"序号",width:"60px"}}),t("ElTableColumn",{attrs:{label:"信号ID",prop:"id","max-width":"300px","show-overflow-tooltip":""}}),t("ElTableColumn",{attrs:{label:"信号名称",prop:"name","max-width":"300px","show-overflow-tooltip":""}})],1),t("ElementDialog",{attrs:{visible:e.modelVisible,title:e.modelConfig.title,"close-on-click-modal":!1,width:"400px","append-to-body":"","destroy-on-close":""},on:{"update:visible":function(i){e.modelVisible=i}},scopedSlots:e._u([{key:"footer",fn:function(){return[t("ElButton",{attrs:{size:"mini"},on:{click:function(i){e.modelVisible=!1}}},[e._v("取 消")]),t("ElButton",{attrs:{size:"mini",type:"primary"},on:{click:e.addNewObject}},[e._v("保 存")])]},proxy:!0}])},[t("ElForm",{attrs:{model:e.modelObjectForm,size:"mini","label-width":"90px"},nativeOn:{submit:function(i){i.preventDefault()}}},[t("ElFormItem",{attrs:{label:e.modelConfig.idLabel}},[t("ElInput",{attrs:{clearable:""},model:{value:e.modelObjectForm.id,callback:function(i){e.$set(e.modelObjectForm,"id",i)},expression:"modelObjectForm.id"}})],1),t("ElFormItem",{attrs:{label:e.modelConfig.nameLabel}},[t("ElInput",{attrs:{clearable:""},model:{value:e.modelObjectForm.name,callback:function(i){e.$set(e.modelObjectForm,"name",i)},expression:"modelObjectForm.name"}})],1)],1)],1)],1)},jT=[function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("span",[t("i",{staticClass:"el-icon-menu",staticStyle:{"margin-right":"8px",color:"#555"}}),e._v("消息列表")])},function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("span",[t("i",{staticClass:"el-icon-menu",staticStyle:{"margin-right":"8px",color:"#555"}}),e._v("信号列表")])}];const zT={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(e=>{e.$type==="bpmn:Message"&&(this.messageIdMap[e.id]=!0,this.messageList.push(f({},e))),e.$type==="bpmn:Signal"&&(this.signalIdMap[e.id]=!0,this.signalList.push(f({},e)))})},openModel(e){this.modelType=e,this.modelObjectForm={},this.modelVisible=!0},addNewObject(){if(this.modelType==="message"){if(this.messageIdMap[this.modelObjectForm.id])return this.$message.error("该消息已存在,请修改id后重新保存");const e=window.bpmnInstances.moddle.create("bpmn:Message",this.modelObjectForm);this.rootElements.push(e)}else{if(this.signalIdMap[this.modelObjectForm.id])return this.$message.error("该信号已存在,请修改id后重新保存");const e=window.bpmnInstances.moddle.create("bpmn:Signal",this.modelObjectForm);this.rootElements.push(e)}this.modelVisible=!1,this.initDataList()}}},Jo={};var KT=u(zT,NT,jT,!1,WT,null,null,null);function WT(e){for(let n in Jo)this[n]=Jo[n]}const VT=function(){return KT.exports}();function tu(e,n,t){const i=Object.create(null);switch(i.event=e.event,n&&(i.id=e.id),e.listenerType){case"scriptListener":i.script=HT(e,t);break;case"expressionListener":i.expression=e.expression;break;case"delegateExpressionListener":i.delegateExpression=e.delegateExpression;break;default:i.class=e.class}if(e.fields&&(i.fields=e.fields.map(s=>UT(s,t))),n&&e.event==="timeout"&&e.eventDefinitionType){const s=window.bpmnInstances.moddle.create("bpmn:FormalExpression",{body:e.eventTimeDefinitions}),a=window.bpmnInstances.moddle.create("bpmn:TimerEventDefinition",{id:`TimerEventDefinition_${qT(8)}`,[`time${e.eventDefinitionType.replace(/^\S/,r=>r.toUpperCase())}`]:s});i.eventDefinitions=[a]}return window.bpmnInstances.moddle.create(`${t}:${n?"TaskListener":"ExecutionListener"}`,i)}function UT(e,n){const{name:t,fieldType:i,string:s,expression:a}=e,r=i==="string"?{name:t,string:s}:{name:t,expression:a};return window.bpmnInstances.moddle.create(`${n}:Field`,r)}function HT(e,n){const{scriptType:t,scriptFormat:i,value:s,resource:a}=e,r=t==="inlineScript"?{scriptFormat:i,value:s}:{scriptFormat:i,resource:a};return window.bpmnInstances.moddle.create(`${n}:Script`,r)}function Ve(e,n){const t=window.bpmnInstances.moddle.create("bpmn:ExtensionElements",{values:n});window.bpmnInstances.modeling.updateProperties(e,{extensionElements:t})}function qT(e=8,n){let t="";const i=n||"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";for(let s=e;s>0;--s)t+=i[Math.floor(Math.random()*i.length)];return t}function nu(e){let n=f({},e);if(e.script&&(n=E(f(f({},e),e.script),{scriptType:e.script.resource?"externalScript":"inlineScript"})),e.event==="timeout"&&e.eventDefinitions&&e.eventDefinitions.length){let t="";for(const i in e.eventDefinitions[0])console.log(e.eventDefinitions,i),i.indexOf("time")!==-1&&(t=i,n.eventDefinitionType=i.replace("time","").toLowerCase());console.log(t),n.eventTimeDefinitions=e.eventDefinitions[0][t].body}return n}function iu(e){var t;let n;return e.class&&(n="classListener"),e.expression&&(n="expressionListener"),e.delegateExpression&&(n="delegateExpressionListener"),e.script&&(n="scriptListener"),E(f(f({},JSON.parse(JSON.stringify(e))),(t=e.script)!=null?t:{}),{listenerType:n})}const su={classListener:"Java 类",expressionListener:"表达式",delegateExpressionListener:"代理表达式",scriptListener:"脚本"},GT={create:"创建",assignment:"指派",complete:"完成",delete:"删除",update:"更新",timeout:"超时"},au={string:"字符串",expression:"表达式"};var JT=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"panel-tab__content"},[t("ElTable",{attrs:{data:e.elementListenersList,size:"mini",border:""}},[t("ElTableColumn",{attrs:{label:"序号",width:"50px",type:"index"}}),t("ElTableColumn",{attrs:{label:"事件类型","min-width":"100px",prop:"event"}}),t("ElTableColumn",{attrs:{label:"监听器类型","min-width":"100px","show-overflow-tooltip":"",formatter:function(i){return e.listenerTypeObject[i.listenerType]}}}),t("ElTableColumn",{attrs:{label:"操作",width:"90px"},scopedSlots:e._u([{key:"default",fn:function(i){var s=i.row,a=i.$index;return[t("ElButton",{attrs:{size:"mini",type:"text"},on:{click:function(r){return e.openListenerForm(s,a)}}},[e._v("编辑")]),t("ElDivider",{attrs:{direction:"vertical"}}),t("ElButton",{staticStyle:{color:"#ff4d4f"},attrs:{size:"mini",type:"text"},on:{click:function(r){return e.removeListener(s,a)}}},[e._v("移除")])]}}])})],1),t("div",{staticClass:"element-drawer__button"},[t("ElButton",{attrs:{size:"mini",type:"primary",icon:"el-icon-plus"},on:{click:function(i){return e.openListenerForm(null)}}},[e._v("添加监听器")])],1),t("ElDrawer",{attrs:{visible:e.listenerFormModelVisible,title:"执行监听器",size:`${e.width}px`,"append-to-body":"","destroy-on-close":""},on:{"update:visible":function(i){e.listenerFormModelVisible=i}}},[t("ElForm",{ref:"listenerFormRef",attrs:{size:"mini",model:e.listenerForm,"label-width":"96px"},nativeOn:{submit:function(i){i.preventDefault()}}},[t("ElFormItem",{attrs:{label:"事件类型",prop:"event",rules:{required:!0,trigger:["blur","change"]}}},[t("ElSelect",{model:{value:e.listenerForm.event,callback:function(i){e.$set(e.listenerForm,"event",i)},expression:"listenerForm.event"}},[t("ElOption",{attrs:{label:"start",value:"start"}}),t("ElOption",{attrs:{label:"end",value:"end"}})],1)],1),t("ElFormItem",{attrs:{label:"监听器类型",prop:"listenerType",rules:{required:!0,trigger:["blur","change"]}}},[t("ElSelect",{model:{value:e.listenerForm.listenerType,callback:function(i){e.$set(e.listenerForm,"listenerType",i)},expression:"listenerForm.listenerType"}},e._l(Object.keys(e.listenerTypeObject),function(i){return t("ElOption",{key:i,attrs:{label:e.listenerTypeObject[i],value:i}})}),1)],1),e.listenerForm.listenerType==="classListener"?t("ElFormItem",{key:"listener-class",attrs:{label:"Java类",prop:"class",rules:{required:!0,trigger:["blur","change"]}}},[t("ElInput",{attrs:{clearable:""},model:{value:e.listenerForm.class,callback:function(i){e.$set(e.listenerForm,"class",i)},expression:"listenerForm.class"}})],1):e._e(),e.listenerForm.listenerType==="expressionListener"?t("ElFormItem",{key:"listener-expression",attrs:{label:"表达式",prop:"expression",rules:{required:!0,trigger:["blur","change"]}}},[t("ElInput",{attrs:{clearable:""},model:{value:e.listenerForm.expression,callback:function(i){e.$set(e.listenerForm,"expression",i)},expression:"listenerForm.expression"}})],1):e._e(),e.listenerForm.listenerType==="delegateExpressionListener"?t("ElFormItem",{key:"listener-delegate",attrs:{label:"代理表达式",prop:"delegateExpression",rules:{required:!0,trigger:["blur","change"]}}},[t("ElInput",{attrs:{clearable:""},model:{value:e.listenerForm.delegateExpression,callback:function(i){e.$set(e.listenerForm,"delegateExpression",i)},expression:"listenerForm.delegateExpression"}})],1):e._e(),e.listenerForm.listenerType==="scriptListener"?[t("ElFormItem",{key:"listener-script-format",attrs:{label:"脚本格式",prop:"scriptFormat",rules:{required:!0,trigger:["blur","change"],message:"请填写脚本格式"}}},[t("ElInput",{attrs:{clearable:""},model:{value:e.listenerForm.scriptFormat,callback:function(i){e.$set(e.listenerForm,"scriptFormat",i)},expression:"listenerForm.scriptFormat"}})],1),t("ElFormItem",{key:"listener-script-type",attrs:{label:"脚本类型",prop:"scriptType",rules:{required:!0,trigger:["blur","change"],message:"请选择脚本类型"}}},[t("ElSelect",{model:{value:e.listenerForm.scriptType,callback:function(i){e.$set(e.listenerForm,"scriptType",i)},expression:"listenerForm.scriptType"}},[t("ElOption",{attrs:{label:"内联脚本",value:"inlineScript"}}),t("ElOption",{attrs:{label:"外部脚本",value:"externalScript"}})],1)],1),e.listenerForm.scriptType==="inlineScript"?t("ElFormItem",{key:"listener-script",attrs:{label:"脚本内容",prop:"value",rules:{required:!0,trigger:["blur","change"],message:"请填写脚本内容"}}},[t("ElInput",{attrs:{clearable:""},model:{value:e.listenerForm.value,callback:function(i){e.$set(e.listenerForm,"value",i)},expression:"listenerForm.value"}})],1):e._e(),e.listenerForm.scriptType==="externalScript"?t("ElFormItem",{key:"listener-resource",attrs:{label:"资源地址",prop:"resource",rules:{required:!0,trigger:["blur","change"],message:"请填写资源地址"}}},[t("ElInput",{attrs:{clearable:""},model:{value:e.listenerForm.resource,callback:function(i){e.$set(e.listenerForm,"resource",i)},expression:"listenerForm.resource"}})],1):e._e()]:e._e()],2),t("ElDivider"),t("p",{staticClass:"listener-filed__title"},[t("span",[t("i",{staticClass:"el-icon-menu"}),e._v("注入字段:")]),t("ElButton",{attrs:{size:"mini",type:"primary"},on:{click:function(i){return e.openListenerFieldForm(null)}}},[e._v("添加字段")])],1),t("ElTable",{staticStyle:{flex:"none"},attrs:{data:e.fieldsListOfListener,size:"mini","max-height":"240",border:"",fit:""}},[t("ElTableColumn",{attrs:{label:"序号",width:"50px",type:"index"}}),t("ElTableColumn",{attrs:{label:"字段名称","min-width":"100px",prop:"name"}}),t("ElTableColumn",{attrs:{label:"字段类型","min-width":"80px","show-overflow-tooltip":"",formatter:function(i){return e.fieldTypeObject[i.fieldType]}}}),t("ElTableColumn",{attrs:{label:"字段值/表达式","min-width":"100px","show-overflow-tooltip":"",formatter:function(i){return i.string||i.expression}}}),t("ElTableColumn",{attrs:{label:"操作",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(i){var s=i.row,a=i.$index;return[t("ElButton",{attrs:{size:"mini",type:"text"},on:{click:function(r){return e.openListenerFieldForm(s,a)}}},[e._v("编辑")]),t("ElDivider",{attrs:{direction:"vertical"}}),t("ElButton",{staticStyle:{color:"#ff4d4f"},attrs:{size:"mini",type:"text"},on:{click:function(r){return e.removeListenerField(s,a)}}},[e._v("移除")])]}}])})],1),t("div",{staticClass:"element-drawer__button"},[t("ElButton",{attrs:{size:"mini"},on:{click:function(i){e.listenerFormModelVisible=!1}}},[e._v("取 消")]),t("ElButton",{attrs:{size:"mini",type:"primary"},on:{click:e.saveListenerConfig}},[e._v("保 存")])],1)],1),t("ElementDialog",{attrs:{title:"字段配置",visible:e.listenerFieldFormModelVisible,width:"600px","append-to-body":"","destroy-on-close":""},on:{"update:visible":function(i){e.listenerFieldFormModelVisible=i}},scopedSlots:e._u([{key:"footer",fn:function(){return[t("ElButton",{attrs:{size:"mini"},on:{click:function(i){e.listenerFieldFormModelVisible=!1}}},[e._v("取 消")]),t("ElButton",{attrs:{size:"mini",type:"primary"},on:{click:e.saveListenerFiled}},[e._v("确 定")])]},proxy:!0}])},[t("ElForm",{ref:"listenerFieldFormRef",staticStyle:{height:"136px"},attrs:{model:e.listenerFieldForm,size:"mini","label-width":"96px"},nativeOn:{submit:function(i){i.preventDefault()}}},[t("ElFormItem",{attrs:{label:"字段名称:",prop:"name",rules:{required:!0,trigger:["blur","change"]}}},[t("ElInput",{attrs:{clearable:""},model:{value:e.listenerFieldForm.name,callback:function(i){e.$set(e.listenerFieldForm,"name",i)},expression:"listenerFieldForm.name"}})],1),t("ElFormItem",{attrs:{label:"字段类型:",prop:"fieldType",rules:{required:!0,trigger:["blur","change"]}}},[t("ElSelect",{model:{value:e.listenerFieldForm.fieldType,callback:function(i){e.$set(e.listenerFieldForm,"fieldType",i)},expression:"listenerFieldForm.fieldType"}},e._l(Object.keys(e.fieldTypeObject),function(i){return t("ElOption",{key:i,attrs:{label:e.fieldTypeObject[i],value:i}})}),1)],1),e.listenerFieldForm.fieldType==="string"?t("ElFormItem",{key:"field-string",attrs:{label:"字段值:",prop:"string",rules:{required:!0,trigger:["blur","change"]}}},[t("ElInput",{attrs:{clearable:""},model:{value:e.listenerFieldForm.string,callback:function(i){e.$set(e.listenerFieldForm,"string",i)},expression:"listenerFieldForm.string"}})],1):e._e(),e.listenerFieldForm.fieldType==="expression"?t("ElFormItem",{key:"field-expression",attrs:{label:"表达式:",prop:"expression",rules:{required:!0,trigger:["blur","change"]}}},[t("ElInput",{attrs:{clearable:""},model:{value:e.listenerFieldForm.expression,callback:function(i){e.$set(e.listenerFieldForm,"expression",i)},expression:"listenerFieldForm.expression"}})],1):e._e()],1)],1)],1)},QT=[];const YT={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:su,fieldTypeObject:au}},watch:{id:{immediate:!0,handler(e){e&&e.length&&this.$nextTick(()=>this.resetListenersList())}}},methods:{resetListenersList(){var e,n,t,i;this.bpmnElement=window.bpmnInstances.bpmnElement,this.otherExtensionList=[],this.bpmnElementListeners=(i=(t=(n=(e=this.bpmnElement.businessObject)==null?void 0:e.extensionElements)==null?void 0:n.values)==null?void 0:t.filter(s=>s.$type===`${this.prefix}:ExecutionListener`))!=null?i:[],this.elementListenersList=this.bpmnElementListeners.map(s=>iu(s))},openListenerForm(e,n){e?(this.listenerForm=nu(e),this.editingListenerIndex=n):(this.listenerForm={},this.editingListenerIndex=-1),e&&e.fields?this.fieldsListOfListener=e.fields.map(t=>E(f({},t),{fieldType:t.string?"string":"expression"})):(this.fieldsListOfListener=[],this.$set(this.listenerForm,"fields",[])),this.listenerFormModelVisible=!0,this.$nextTick(()=>{this.$refs.listenerFormRef&&this.$refs.listenerFormRef.clearValidate()})},openListenerFieldForm(e,n){this.listenerFieldForm=e?JSON.parse(JSON.stringify(e)):{},this.editingListenerFieldIndex=e?n:-1,this.listenerFieldFormModelVisible=!0,this.$nextTick(()=>{this.$refs.listenerFieldFormRef&&this.$refs.listenerFieldFormRef.clearValidate()})},saveListenerFiled(){return _(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(e,n){this.$confirm("确认移除该字段吗?","提示",{confirmButtonText:"确 认",cancelButtonText:"取 消"}).then(()=>{this.fieldsListOfListener.splice(n,1),this.listenerForm.fields.splice(n,1)}).catch(()=>console.info("操作取消"))},removeListener(e,n){this.$confirm("确认移除该监听器吗?","提示",{confirmButtonText:"确 认",cancelButtonText:"取 消"}).then(()=>{this.bpmnElementListeners.splice(n,1),this.elementListenersList.splice(n,1),Ve(this.bpmnElement,this.otherExtensionList.concat(this.bpmnElementListeners))}).catch(()=>console.info("操作取消"))},saveListenerConfig(){return _(this,null,function*(){var t,i,s,a;if(!(yield this.$refs.listenerFormRef.validate()))return;const n=tu(this.listenerForm,!1,this.prefix);this.editingListenerIndex===-1?(this.bpmnElementListeners.push(n),this.elementListenersList.push(this.listenerForm)):(this.bpmnElementListeners.splice(this.editingListenerIndex,1,n),this.elementListenersList.splice(this.editingListenerIndex,1,this.listenerForm)),this.otherExtensionList=(a=(s=(i=(t=this.bpmnElement.businessObject)==null?void 0:t.extensionElements)==null?void 0:i.values)==null?void 0:s.filter(r=>r.$type!==`${this.prefix}:ExecutionListener`))!=null?a:[],Ve(this.bpmnElement,this.otherExtensionList.concat(this.bpmnElementListeners)),this.listenerFormModelVisible=!1,this.listenerForm={}})}}},Qo={};var XT=u(YT,JT,QT,!1,ZT,null,null,null);function ZT(e){for(let n in Qo)this[n]=Qo[n]}const e0=function(){return XT.exports}();var t0=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"panel-tab__content"},[t("ElTable",{attrs:{data:e.elementPropertyList,size:"mini","max-height":"240",border:"",fit:""}},[t("ElTableColumn",{attrs:{label:"序号",width:"50px",type:"index"}}),t("ElTableColumn",{attrs:{label:"属性名",prop:"name","min-width":"100px","show-overflow-tooltip":""}}),t("ElTableColumn",{attrs:{label:"属性值",prop:"value","min-width":"100px","show-overflow-tooltip":""}}),t("ElTableColumn",{attrs:{label:"操作",width:"90px"},scopedSlots:e._u([{key:"default",fn:function(i){var s=i.row,a=i.$index;return[t("ElButton",{attrs:{size:"mini",type:"text"},on:{click:function(r){return e.openAttributesForm(s,a)}}},[e._v("编辑")]),t("ElDivider",{attrs:{direction:"vertical"}}),t("ElButton",{staticStyle:{color:"#ff4d4f"},attrs:{size:"mini",type:"text"},on:{click:function(r){return e.removeAttributes(s,a)}}},[e._v("移除")])]}}])})],1),t("div",{staticClass:"element-drawer__button"},[t("ElButton",{attrs:{size:"mini",type:"primary",icon:"el-icon-plus"},on:{click:function(i){return e.openAttributesForm(null,-1)}}},[e._v("添加属性")])],1),t("ElementDialog",{attrs:{visible:e.propertyFormModelVisible,title:"属性配置",width:"600px","append-to-body":"","destroy-on-close":""},on:{"update:visible":function(i){e.propertyFormModelVisible=i}},scopedSlots:e._u([{key:"footer",fn:function(){return[t("ElButton",{attrs:{size:"mini"},on:{click:function(i){e.propertyFormModelVisible=!1}}},[e._v("取 消")]),t("ElButton",{attrs:{size:"mini",type:"primary"},on:{click:e.saveAttribute}},[e._v("确 定")])]},proxy:!0}])},[t("ElForm",{ref:"attributeFormRef",attrs:{model:e.propertyForm,"label-width":"80px",size:"mini"},nativeOn:{submit:function(i){i.preventDefault()}}},[t("ElFormItem",{attrs:{label:"属性名:",prop:"name"}},[t("ElInput",{attrs:{clearable:""},model:{value:e.propertyForm.name,callback:function(i){e.$set(e.propertyForm,"name",i)},expression:"propertyForm.name"}})],1),t("ElFormItem",{attrs:{label:"属性值:",prop:"value"}},[t("ElInput",{attrs:{clearable:""},model:{value:e.propertyForm.value,callback:function(i){e.$set(e.propertyForm,"value",i)},expression:"propertyForm.value"}})],1)],1)],1)],1)},n0=[];const i0={name:"ElementProperties",inject:{prefix:"prefix",width:"width"},props:{id:String},data(){return{elementPropertyList:[],propertyForm:{},editingPropertyIndex:-1,propertyFormModelVisible:!1}},watch:{id:{immediate:!0,handler(e){e&&e.length&&this.resetAttributesList()}}},methods:{resetAttributesList(){var e,n,t,i,s;this.bpmnElement=window.bpmnInstances.bpmnElement,this.otherExtensionList=[],this.bpmnElementProperties=(i=(t=(n=(e=this.bpmnElement.businessObject)==null?void 0:e.extensionElements)==null?void 0:n.values)==null?void 0:t.filter(a=>(a.$type!==`${this.prefix}:Properties`&&this.otherExtensionList.push(a),a.$type===`${this.prefix}:Properties`)))!=null?i:[],this.bpmnElementPropertyList=this.bpmnElementProperties.reduce((a,r)=>a.concat(r.values),[]),this.elementPropertyList=JSON.parse(JSON.stringify((s=this.bpmnElementPropertyList)!=null?s:[]))},openAttributesForm(e,n){this.editingPropertyIndex=n,this.propertyForm=n===-1?{}:JSON.parse(JSON.stringify(e)),this.propertyFormModelVisible=!0,this.$nextTick(()=>{this.$refs.attributeFormRef&&this.$refs.attributeFormRef.clearValidate()})},removeAttributes(e,n){this.$confirm("确认移除该属性吗?","提示",{confirmButtonText:"确 认",cancelButtonText:"取 消"}).then(()=>{this.elementPropertyList.splice(n,1),this.bpmnElementPropertyList.splice(n,1);const t=window.bpmnInstances.moddle.create(`${this.prefix}:Properties`,{values:this.bpmnElementPropertyList});this.updateElementExtensions(t),this.resetAttributesList()}).catch(()=>console.info("操作取消"))},saveAttribute(){const{name:e,value:n}=this.propertyForm;if(console.log(this.bpmnElementPropertyList),this.editingPropertyIndex!==-1)window.bpmnInstances.modeling.updateModdleProperties(this.bpmnElement,this.bpmnElementPropertyList[this.editingPropertyIndex],{name:e,value:n});else{const t=window.bpmnInstances.moddle.create(`${this.prefix}:Property`,{name:e,value:n}),i=window.bpmnInstances.moddle.create(`${this.prefix}:Properties`,{values:this.bpmnElementPropertyList.concat([t])});this.updateElementExtensions(i)}this.propertyFormModelVisible=!1,this.resetAttributesList()},updateElementExtensions(e){const n=window.bpmnInstances.moddle.create("bpmn:ExtensionElements",{values:this.otherExtensionList.concat([e])});window.bpmnInstances.modeling.updateProperties(this.bpmnElement,{extensionElements:n})}}},Yo={};var s0=u(i0,t0,n0,!1,a0,null,null,null);function a0(e){for(let n in Yo)this[n]=Yo[n]}const r0=function(){return s0.exports}();var l0=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"panel-tab__content"},[t("ElForm",{attrs:{size:"mini","label-width":"80px"},nativeOn:{submit:function(i){i.preventDefault()}}},[t("ElFormItem",{attrs:{label:"表单标识"}},[t("ElInput",{attrs:{clearable:""},on:{change:e.updateElementFormKey},model:{value:e.formKey,callback:function(i){e.formKey=i},expression:"formKey"}})],1),t("ElFormItem",{attrs:{label:"业务标识"}},[t("ElSelect",{on:{change:e.updateElementBusinessKey},model:{value:e.businessKey,callback:function(i){e.businessKey=i},expression:"businessKey"}},[e._l(e.fieldList,function(i){return t("ElOption",{key:i.id,attrs:{value:i.id,label:i.label}})}),t("ElOption",{attrs:{label:"无",value:""}})],2)],1)],1),t("div",{staticClass:"element-property list-property"},[t("ElDivider",[t("i",{staticClass:"el-icon-coin"}),e._v(" 表单字段")]),t("ElTable",{attrs:{data:e.fieldList,size:"mini","max-height":"240",border:"",fit:""}},[t("ElTableColumn",{attrs:{label:"序号",type:"index",width:"50px"}}),t("ElTableColumn",{attrs:{label:"字段名称",prop:"label","min-width":"80px","show-overflow-tooltip":""}}),t("ElTableColumn",{attrs:{label:"字段类型",prop:"type","min-width":"80px",formatter:function(i){return e.fieldType[i.type]||i.type},"show-overflow-tooltip":""}}),t("ElTableColumn",{attrs:{label:"默认值",prop:"defaultValue","min-width":"80px","show-overflow-tooltip":""}}),t("ElTableColumn",{attrs:{label:"操作",width:"90px"},scopedSlots:e._u([{key:"default",fn:function(i){var s=i.row,a=i.$index;return[t("ElButton",{attrs:{size:"mini",type:"text"},on:{click:function(r){return e.openFieldForm(s,a)}}},[e._v("编辑")]),t("ElDivider",{attrs:{direction:"vertical"}}),t("ElButton",{staticStyle:{color:"#ff4d4f"},attrs:{size:"mini",type:"text"},on:{click:function(r){return e.removeField(s,a)}}},[e._v("移除")])]}}])})],1)],1),t("div",{staticClass:"element-drawer__button"},[t("ElButton",{attrs:{size:"mini",type:"primary",icon:"el-icon-plus"},on:{click:function(i){return e.openFieldForm(null,-1)}}},[e._v("添加字段")])],1),t("ElDrawer",{attrs:{visible:e.fieldModelVisible,title:"字段配置",size:`${e.width}px`,"append-to-body":"","destroy-on-close":""},on:{"update:visible":function(i){e.fieldModelVisible=i}}},[t("ElForm",{attrs:{model:e.formFieldForm,"label-width":"90px",size:"mini"},nativeOn:{submit:function(i){i.preventDefault()}}},[t("ElFormItem",{attrs:{label:"字段ID"}},[t("ElInput",{attrs:{clearable:""},model:{value:e.formFieldForm.id,callback:function(i){e.$set(e.formFieldForm,"id",i)},expression:"formFieldForm.id"}})],1),t("ElFormItem",{attrs:{label:"类型"}},[t("ElSelect",{attrs:{placeholder:"请选择字段类型",clearable:""},on:{change:e.changeFieldTypeType},model:{value:e.formFieldForm.typeType,callback:function(i){e.$set(e.formFieldForm,"typeType",i)},expression:"formFieldForm.typeType"}},e._l(e.fieldType,function(i,s){return t("ElOption",{key:s,attrs:{label:i,value:s}})}),1)],1),e.formFieldForm.typeType==="custom"?t("ElFormItem",{attrs:{label:"类型名称"}},[t("ElInput",{attrs:{clearable:""},model:{value:e.formFieldForm.type,callback:function(i){e.$set(e.formFieldForm,"type",i)},expression:"formFieldForm.type"}})],1):e._e(),t("ElFormItem",{attrs:{label:"名称"}},[t("ElInput",{attrs:{clearable:""},model:{value:e.formFieldForm.label,callback:function(i){e.$set(e.formFieldForm,"label",i)},expression:"formFieldForm.label"}})],1),e.formFieldForm.typeType==="date"?t("ElFormItem",{attrs:{label:"时间格式"}},[t("ElInput",{attrs:{clearable:""},model:{value:e.formFieldForm.datePattern,callback:function(i){e.$set(e.formFieldForm,"datePattern",i)},expression:"formFieldForm.datePattern"}})],1):e._e(),t("ElFormItem",{attrs:{label:"默认值"}},[t("ElInput",{attrs:{clearable:""},model:{value:e.formFieldForm.defaultValue,callback:function(i){e.$set(e.formFieldForm,"defaultValue",i)},expression:"formFieldForm.defaultValue"}})],1)],1),e.formFieldForm.type==="enum"?[t("ElDivider",{key:"enum-divider"}),t("p",{key:"enum-title",staticClass:"listener-filed__title"},[t("span",[t("i",{staticClass:"el-icon-menu"}),e._v("枚举值列表:")]),t("ElButton",{attrs:{size:"mini",type:"primary"},on:{click:function(i){return e.openFieldOptionForm(null,-1,"enum")}}},[e._v("添加枚举值")])],1),t("ElTable",{key:"enum-table",attrs:{data:e.fieldEnumList,size:"mini","max-height":"240",border:"",fit:""}},[t("ElTableColumn",{attrs:{label:"序号",width:"50px",type:"index"}}),t("ElTableColumn",{attrs:{label:"枚举值编号",prop:"id","min-width":"100px","show-overflow-tooltip":""}}),t("ElTableColumn",{attrs:{label:"枚举值名称",prop:"name","min-width":"100px","show-overflow-tooltip":""}}),t("ElTableColumn",{attrs:{label:"操作",width:"90px"},scopedSlots:e._u([{key:"default",fn:function(i){var s=i.row,a=i.$index;return[t("ElButton",{attrs:{size:"mini",type:"text"},on:{click:function(r){return e.openFieldOptionForm(s,a,"enum")}}},[e._v("编辑")]),t("ElDivider",{attrs:{direction:"vertical"}}),t("ElButton",{staticStyle:{color:"#ff4d4f"},attrs:{size:"mini",type:"text"},on:{click:function(r){return e.removeFieldOptionItem(s,a,"enum")}}},[e._v("移除")])]}}],null,!1,747635382)})],1)]:e._e(),t("ElDivider",{key:"validation-divider"}),t("p",{key:"validation-title",staticClass:"listener-filed__title"},[t("span",[t("i",{staticClass:"el-icon-menu"}),e._v("约束条件列表:")]),t("ElButton",{attrs:{size:"mini",type:"primary"},on:{click:function(i){return e.openFieldOptionForm(null,-1,"constraint")}}},[e._v("添加约束")])],1),t("ElTable",{key:"validation-table",attrs:{data:e.fieldConstraintsList,size:"mini","max-height":"240",border:"",fit:""}},[t("ElTableColumn",{attrs:{label:"序号",width:"50px",type:"index"}}),t("ElTableColumn",{attrs:{label:"约束名称",prop:"name","min-width":"100px","show-overflow-tooltip":""}}),t("ElTableColumn",{attrs:{label:"约束配置",prop:"config","min-width":"100px","show-overflow-tooltip":""}}),t("ElTableColumn",{attrs:{label:"操作",width:"90px"},scopedSlots:e._u([{key:"default",fn:function(i){var s=i.row,a=i.$index;return[t("ElButton",{attrs:{size:"mini",type:"text"},on:{click:function(r){return e.openFieldOptionForm(s,a,"constraint")}}},[e._v("编辑")]),t("ElDivider",{attrs:{direction:"vertical"}}),t("ElButton",{staticStyle:{color:"#ff4d4f"},attrs:{size:"mini",type:"text"},on:{click:function(r){return e.removeFieldOptionItem(s,a,"constraint")}}},[e._v("移除")])]}}])})],1),t("ElDivider",{key:"property-divider"}),t("p",{key:"property-title",staticClass:"listener-filed__title"},[t("span",[t("i",{staticClass:"el-icon-menu"}),e._v("字段属性列表:")]),t("ElButton",{attrs:{size:"mini",type:"primary"},on:{click:function(i){return e.openFieldOptionForm(null,-1,"property")}}},[e._v("添加属性")])],1),t("ElTable",{key:"property-table",attrs:{data:e.fieldPropertiesList,size:"mini","max-height":"240",border:"",fit:""}},[t("ElTableColumn",{attrs:{label:"序号",width:"50px",type:"index"}}),t("ElTableColumn",{attrs:{label:"属性编号",prop:"id","min-width":"100px","show-overflow-tooltip":""}}),t("ElTableColumn",{attrs:{label:"属性值",prop:"value","min-width":"100px","show-overflow-tooltip":""}}),t("ElTableColumn",{attrs:{label:"操作",width:"90px"},scopedSlots:e._u([{key:"default",fn:function(i){var s=i.row,a=i.$index;return[t("ElButton",{attrs:{size:"mini",type:"text"},on:{click:function(r){return e.openFieldOptionForm(s,a,"property")}}},[e._v("编辑")]),t("ElDivider",{attrs:{direction:"vertical"}}),t("ElButton",{staticStyle:{color:"#ff4d4f"},attrs:{size:"mini",type:"text"},on:{click:function(r){return e.removeFieldOptionItem(s,a,"property")}}},[e._v("移除")])]}}])})],1),t("div",{staticClass:"element-drawer__button"},[t("ElButton",{attrs:{size:"mini"}},[e._v("取 消")]),t("ElButton",{attrs:{size:"mini",type:"primary"},on:{click:e.saveField}},[e._v("保 存")])],1)],2),t("ElementDialog",{attrs:{visible:e.fieldOptionModelVisible,title:e.optionModelTitle,width:"600px","append-to-body":"","destroy-on-close":""},on:{"update:visible":function(i){e.fieldOptionModelVisible=i}},scopedSlots:e._u([{key:"footer",fn:function(){return[t("ElButton",{attrs:{size:"mini"},on:{click:function(i){e.fieldOptionModelVisible=!1}}},[e._v("取 消")]),t("ElButton",{attrs:{size:"mini",type:"primary"},on:{click:e.saveFieldOption}},[e._v("确 定")])]},proxy:!0}])},[t("ElForm",{attrs:{model:e.fieldOptionForm,size:"mini","label-width":"96px"},nativeOn:{submit:function(i){i.preventDefault()}}},[e.fieldOptionType!=="constraint"?t("ElFormItem",{key:"option-id",attrs:{label:"编号/ID"}},[t("ElInput",{attrs:{clearable:""},model:{value:e.fieldOptionForm.id,callback:function(i){e.$set(e.fieldOptionForm,"id",i)},expression:"fieldOptionForm.id"}})],1):e._e(),e.fieldOptionType!=="property"?t("ElFormItem",{key:"option-name",attrs:{label:"名称"}},[t("ElInput",{attrs:{clearable:""},model:{value:e.fieldOptionForm.name,callback:function(i){e.$set(e.fieldOptionForm,"name",i)},expression:"fieldOptionForm.name"}})],1):e._e(),e.fieldOptionType==="constraint"?t("ElFormItem",{key:"option-config",attrs:{label:"配置"}},[t("ElInput",{attrs:{clearable:""},model:{value:e.fieldOptionForm.config,callback:function(i){e.$set(e.fieldOptionForm,"config",i)},expression:"fieldOptionForm.config"}})],1):e._e(),e.fieldOptionType==="property"?t("ElFormItem",{key:"option-value",attrs:{label:"值"}},[t("ElInput",{attrs:{clearable:""},model:{value:e.fieldOptionForm.value,callback:function(i){e.$set(e.fieldOptionForm,"value",i)},expression:"fieldOptionForm.value"}})],1):e._e()],1)],1)],1)},o0=[];const c0={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(e){e&&e.length&&this.$nextTick(()=>this.resetFormList())}}},methods:{resetFormList(){var e;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=((e=this.elExtensionElements.values.filter(n=>n.$type===`${this.prefix}:FormData`))==null?void 0:e[0])||window.bpmnInstances.moddle.create(`${this.prefix}:FormData`,{fields:[]}),this.businessKey=this.formData.businessKey,this.otherExtensions=this.elExtensionElements.values.filter(n=>n.$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(e){this.$set(this.formFieldForm,"type",e==="custom"?"":e)},openFieldForm(e,n){var t,i;if(this.formFieldIndex=n,n!==-1){const s=this.formData.fields[n];this.formFieldForm=JSON.parse(JSON.stringify(e)),this.$set(this.formFieldForm,"typeType",this.fieldType[e.type]?e.type:"custom"),e.type==="enum"&&(this.fieldEnumList=JSON.parse(JSON.stringify((s==null?void 0:s.values)||[]))),this.fieldConstraintsList=JSON.parse(JSON.stringify(((t=s==null?void 0:s.validation)==null?void 0:t.constraints)||[])),this.fieldPropertiesList=JSON.parse(JSON.stringify(((i=s==null?void 0:s.properties)==null?void 0:i.values)||[]))}else this.formFieldForm={},this.fieldEnumList=[],this.fieldConstraintsList=[],this.fieldPropertiesList=[];this.fieldModelVisible=!0},openFieldOptionForm(e,n,t){return this.fieldOptionModelVisible=!0,this.fieldOptionType=t,this.formFieldOptionIndex=n,t==="property"?(this.fieldOptionForm=e?JSON.parse(JSON.stringify(e)):{},this.optionModelTitle="属性配置"):t==="enum"?(this.fieldOptionForm=e?JSON.parse(JSON.stringify(e)):{},this.optionModelTitle="枚举值配置"):(this.fieldOptionForm=e?JSON.parse(JSON.stringify(e)):{},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:e,type:n,label:t,defaultValue:i,datePattern:s}=this.formFieldForm,a=window.bpmnInstances.moddle.create(`${this.prefix}:FormField`,{id:e,type:n,label:t});if(i&&(a.defaultValue=i),s&&(a.datePattern=s),this.fieldPropertiesList&&this.fieldPropertiesList.length){const r=this.fieldPropertiesList.map(l=>window.bpmnInstances.moddle.create(`${this.prefix}:Property`,{id:l.id,value:l.value}));a.properties=window.bpmnInstances.moddle.create(`${this.prefix}:Properties`,{values:r})}if(this.fieldConstraintsList&&this.fieldConstraintsList.length){const r=this.fieldConstraintsList.map(l=>window.bpmnInstances.moddle.create(`${this.prefix}:Constraint`,{name:l.name,config:l.config}));a.validation=window.bpmnInstances.moddle.create(`${this.prefix}:Validation`,{constraints:r})}this.fieldEnumList&&this.fieldEnumList.length&&(a.values=this.fieldEnumList.map(r=>window.bpmnInstances.moddle.create(`${this.prefix}:Value`,{name:r.name,id:r.id}))),this.formFieldIndex===-1?(this.fieldList.push(this.formFieldForm),this.formData.fields.push(a)):(this.fieldList.splice(this.formFieldIndex,1,this.formFieldForm),this.formData.fields.splice(this.formFieldIndex,1,a)),this.updateElementExtensions(),this.fieldModelVisible=!1},removeFieldOptionItem(e,n,t){if(t==="property"){this.fieldPropertiesList.splice(n,1);return}if(t==="enum"){this.fieldEnumList.splice(n,1);return}this.fieldConstraintsList.splice(n,1)},removeField(e,n){this.fieldList.splice(n,1),this.formData.fields.splice(n,1),this.updateElementExtensions()},updateElementExtensions(){const e=window.bpmnInstances.moddle.create("bpmn:ExtensionElements",{values:this.otherExtensions.concat(this.formData)});window.bpmnInstances.modeling.updateProperties(this.bpmnElement,{extensionElements:e})}}},Xo={};var u0=u(c0,l0,o0,!1,d0,null,null,null);function d0(e){for(let n in Xo)this[n]=Xo[n]}const p0=function(){return u0.exports}();var h0=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"panel-tab__content"},[t("ElTable",{attrs:{data:e.elementListenersList,size:"mini",border:""}},[t("ElTableColumn",{attrs:{label:"序号",width:"50px",type:"index"}}),t("ElTableColumn",{attrs:{label:"事件类型","min-width":"80px","show-overflow-tooltip":"",formatter:function(i){return e.listenerEventTypeObject[i.event]}}}),t("ElTableColumn",{attrs:{label:"事件id","min-width":"80px",prop:"id","show-overflow-tooltip":""}}),t("ElTableColumn",{attrs:{label:"监听器类型","min-width":"80px","show-overflow-tooltip":"",formatter:function(i){return e.listenerTypeObject[i.listenerType]}}}),t("ElTableColumn",{attrs:{label:"操作",width:"90px"},scopedSlots:e._u([{key:"default",fn:function(i){var s=i.row,a=i.$index;return[t("ElButton",{attrs:{size:"mini",type:"text"},on:{click:function(r){return e.openListenerForm(s,a)}}},[e._v("编辑")]),t("ElDivider",{attrs:{direction:"vertical"}}),t("ElButton",{staticStyle:{color:"#ff4d4f"},attrs:{size:"mini",type:"text"},on:{click:function(r){return e.removeListener(s,a)}}},[e._v("移除")])]}}])})],1),t("div",{staticClass:"element-drawer__button"},[t("ElButton",{attrs:{size:"mini",type:"primary",icon:"el-icon-plus"},on:{click:function(i){return e.openListenerForm(null)}}},[e._v("添加监听器")])],1),t("ElDrawer",{attrs:{visible:e.listenerFormModelVisible,title:"任务监听器",size:`${e.width}px`,"append-to-body":"","destroy-on-close":""},on:{"update:visible":function(i){e.listenerFormModelVisible=i}}},[t("ElForm",{ref:"listenerFormRef",attrs:{size:"mini",model:e.listenerForm,"label-width":"96px"},nativeOn:{submit:function(i){i.preventDefault()}}},[t("ElFormItem",{attrs:{label:"事件类型",prop:"event",rules:{required:!0,trigger:["blur","change"]}}},[t("ElSelect",{model:{value:e.listenerForm.event,callback:function(i){e.$set(e.listenerForm,"event",i)},expression:"listenerForm.event"}},e._l(Object.keys(e.listenerEventTypeObject),function(i){return t("ElOption",{key:i,attrs:{label:e.listenerEventTypeObject[i],value:i}})}),1)],1),t("ElFormItem",{attrs:{label:"监听器ID",prop:"id",rules:{required:!0,trigger:["blur","change"]}}},[t("ElInput",{attrs:{clearable:""},model:{value:e.listenerForm.id,callback:function(i){e.$set(e.listenerForm,"id",i)},expression:"listenerForm.id"}})],1),t("ElFormItem",{attrs:{label:"监听器类型",prop:"listenerType",rules:{required:!0,trigger:["blur","change"]}}},[t("ElSelect",{model:{value:e.listenerForm.listenerType,callback:function(i){e.$set(e.listenerForm,"listenerType",i)},expression:"listenerForm.listenerType"}},e._l(Object.keys(e.listenerTypeObject),function(i){return t("ElOption",{key:i,attrs:{label:e.listenerTypeObject[i],value:i}})}),1)],1),e.listenerForm.listenerType==="classListener"?t("ElFormItem",{key:"listener-class",attrs:{label:"Java类",prop:"class",rules:{required:!0,trigger:["blur","change"]}}},[t("ElInput",{attrs:{clearable:""},model:{value:e.listenerForm.class,callback:function(i){e.$set(e.listenerForm,"class",i)},expression:"listenerForm.class"}})],1):e._e(),e.listenerForm.listenerType==="expressionListener"?t("ElFormItem",{key:"listener-expression",attrs:{label:"表达式",prop:"expression",rules:{required:!0,trigger:["blur","change"]}}},[t("ElInput",{attrs:{clearable:""},model:{value:e.listenerForm.expression,callback:function(i){e.$set(e.listenerForm,"expression",i)},expression:"listenerForm.expression"}})],1):e._e(),e.listenerForm.listenerType==="delegateExpressionListener"?t("ElFormItem",{key:"listener-delegate",attrs:{label:"代理表达式",prop:"delegateExpression",rules:{required:!0,trigger:["blur","change"]}}},[t("ElInput",{attrs:{clearable:""},model:{value:e.listenerForm.delegateExpression,callback:function(i){e.$set(e.listenerForm,"delegateExpression",i)},expression:"listenerForm.delegateExpression"}})],1):e._e(),e.listenerForm.listenerType==="scriptListener"?[t("ElFormItem",{key:"listener-script-format",attrs:{label:"脚本格式",prop:"scriptFormat",rules:{required:!0,trigger:["blur","change"],message:"请填写脚本格式"}}},[t("ElInput",{attrs:{clearable:""},model:{value:e.listenerForm.scriptFormat,callback:function(i){e.$set(e.listenerForm,"scriptFormat",i)},expression:"listenerForm.scriptFormat"}})],1),t("ElFormItem",{key:"listener-script-type",attrs:{label:"脚本类型",prop:"scriptType",rules:{required:!0,trigger:["blur","change"],message:"请选择脚本类型"}}},[t("ElSelect",{model:{value:e.listenerForm.scriptType,callback:function(i){e.$set(e.listenerForm,"scriptType",i)},expression:"listenerForm.scriptType"}},[t("ElOption",{attrs:{label:"内联脚本",value:"inlineScript"}}),t("ElOption",{attrs:{label:"外部脚本",value:"externalScript"}})],1)],1),e.listenerForm.scriptType==="inlineScript"?t("ElFormItem",{key:"listener-script",attrs:{label:"脚本内容",prop:"value",rules:{required:!0,trigger:["blur","change"],message:"请填写脚本内容"}}},[t("ElInput",{attrs:{clearable:""},model:{value:e.listenerForm.value,callback:function(i){e.$set(e.listenerForm,"value",i)},expression:"listenerForm.value"}})],1):e._e(),e.listenerForm.scriptType==="externalScript"?t("ElFormItem",{key:"listener-resource",attrs:{label:"资源地址",prop:"resource",rules:{required:!0,trigger:["blur","change"],message:"请填写资源地址"}}},[t("ElInput",{attrs:{clearable:""},model:{value:e.listenerForm.resource,callback:function(i){e.$set(e.listenerForm,"resource",i)},expression:"listenerForm.resource"}})],1):e._e()]:e._e(),e.listenerForm.event==="timeout"?[t("ElFormItem",{key:"eventDefinitionType",attrs:{label:"定时器类型",prop:"eventDefinitionType"}},[t("ElSelect",{model:{value:e.listenerForm.eventDefinitionType,callback:function(i){e.$set(e.listenerForm,"eventDefinitionType",i)},expression:"listenerForm.eventDefinitionType"}},[t("ElOption",{attrs:{label:"日期",value:"date"}}),t("ElOption",{attrs:{label:"持续时长",value:"duration"}}),t("ElOption",{attrs:{label:"循环",value:"cycle"}}),t("ElOption",{attrs:{label:"无",value:"null"}})],1)],1),e.listenerForm.eventDefinitionType&&e.listenerForm.eventDefinitionType!=="null"?t("ElFormItem",{key:"eventTimeDefinitions",attrs:{label:"定时器",prop:"eventTimeDefinitions",rules:{required:!0,trigger:["blur","change"],message:"请填写定时器配置"}}},[t("ElInput",{attrs:{clearable:""},model:{value:e.listenerForm.eventTimeDefinitions,callback:function(i){e.$set(e.listenerForm,"eventTimeDefinitions",i)},expression:"listenerForm.eventTimeDefinitions"}})],1):e._e()]:e._e()],2),t("ElDivider"),t("p",{staticClass:"listener-filed__title"},[t("span",[t("i",{staticClass:"el-icon-menu"}),e._v("注入字段:")]),t("ElButton",{attrs:{size:"mini",type:"primary"},on:{click:function(i){return e.openListenerFieldForm(null)}}},[e._v("添加字段")])],1),t("ElTable",{staticStyle:{flex:"none"},attrs:{data:e.fieldsListOfListener,size:"mini","max-height":"240",border:"",fit:""}},[t("ElTableColumn",{attrs:{label:"序号",width:"50px",type:"index"}}),t("ElTableColumn",{attrs:{label:"字段名称","min-width":"100px",prop:"name"}}),t("ElTableColumn",{attrs:{label:"字段类型","min-width":"80px","show-overflow-tooltip":"",formatter:function(i){return e.fieldTypeObject[i.fieldType]}}}),t("ElTableColumn",{attrs:{label:"字段值/表达式","min-width":"100px","show-overflow-tooltip":"",formatter:function(i){return i.string||i.expression}}}),t("ElTableColumn",{attrs:{label:"操作",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(i){var s=i.row,a=i.$index;return[t("ElButton",{attrs:{size:"mini",type:"text"},on:{click:function(r){return e.openListenerFieldForm(s,a)}}},[e._v("编辑")]),t("ElDivider",{attrs:{direction:"vertical"}}),t("ElButton",{staticStyle:{color:"#ff4d4f"},attrs:{size:"mini",type:"text"},on:{click:function(r){return e.removeListenerField(s,a)}}},[e._v("移除")])]}}])})],1),t("div",{staticClass:"element-drawer__button"},[t("ElButton",{attrs:{size:"mini"},on:{click:function(i){e.listenerFormModelVisible=!1}}},[e._v("取 消")]),t("ElButton",{attrs:{size:"mini",type:"primary"},on:{click:e.saveListenerConfig}},[e._v("保 存")])],1)],1),t("ElementDialog",{attrs:{title:"字段配置",visible:e.listenerFieldFormModelVisible,width:"600px","append-to-body":"","destroy-on-close":""},on:{"update:visible":function(i){e.listenerFieldFormModelVisible=i}},scopedSlots:e._u([{key:"footer",fn:function(){return[t("ElButton",{attrs:{size:"mini"},on:{click:function(i){e.listenerFieldFormModelVisible=!1}}},[e._v("取 消")]),t("ElButton",{attrs:{size:"mini",type:"primary"},on:{click:e.saveListenerFiled}},[e._v("确 定")])]},proxy:!0}])},[t("ElForm",{ref:"listenerFieldFormRef",staticStyle:{height:"136px"},attrs:{model:e.listenerFieldForm,size:"mini","label-width":"96px"},nativeOn:{submit:function(i){i.preventDefault()}}},[t("ElFormItem",{attrs:{label:"字段名称:",prop:"name",rules:{required:!0,trigger:["blur","change"]}}},[t("ElInput",{attrs:{clearable:""},model:{value:e.listenerFieldForm.name,callback:function(i){e.$set(e.listenerFieldForm,"name",i)},expression:"listenerFieldForm.name"}})],1),t("ElFormItem",{attrs:{label:"字段类型:",prop:"fieldType",rules:{required:!0,trigger:["blur","change"]}}},[t("ElSelect",{model:{value:e.listenerFieldForm.fieldType,callback:function(i){e.$set(e.listenerFieldForm,"fieldType",i)},expression:"listenerFieldForm.fieldType"}},e._l(Object.keys(e.fieldTypeObject),function(i){return t("ElOption",{key:i,attrs:{label:e.fieldTypeObject[i],value:i}})}),1)],1),e.listenerFieldForm.fieldType==="string"?t("ElFormItem",{key:"field-string",attrs:{label:"字段值:",prop:"string",rules:{required:!0,trigger:["blur","change"]}}},[t("ElInput",{attrs:{clearable:""},model:{value:e.listenerFieldForm.string,callback:function(i){e.$set(e.listenerFieldForm,"string",i)},expression:"listenerFieldForm.string"}})],1):e._e(),e.listenerFieldForm.fieldType==="expression"?t("ElFormItem",{key:"field-expression",attrs:{label:"表达式:",prop:"expression",rules:{required:!0,trigger:["blur","change"]}}},[t("ElInput",{attrs:{clearable:""},model:{value:e.listenerFieldForm.expression,callback:function(i){e.$set(e.listenerFieldForm,"expression",i)},expression:"listenerFieldForm.expression"}})],1):e._e()],1)],1)],1)},m0=[];const f0={name:"UserTaskListeners",inject:{prefix:"prefix",width:"width"},props:{id:String},data(){return{elementListenersList:[],listenerEventTypeObject:GT,listenerTypeObject:su,listenerFormModelVisible:!1,listenerForm:{},fieldTypeObject:au,fieldsListOfListener:[],listenerFieldFormModelVisible:!1,editingListenerIndex:-1,editingListenerFieldIndex:-1,listenerFieldForm:{}}},watch:{id:{immediate:!0,handler(e){e&&e.length&&this.$nextTick(()=>this.resetListenersList())}}},methods:{resetListenersList(){var e,n,t,i;this.bpmnElement=window.bpmnInstances.bpmnElement,this.otherExtensionList=[],this.bpmnElementListeners=(i=(t=(n=(e=this.bpmnElement.businessObject)==null?void 0:e.extensionElements)==null?void 0:n.values)==null?void 0:t.filter(s=>s.$type===`${this.prefix}:TaskListener`))!=null?i:[],this.elementListenersList=this.bpmnElementListeners.map(s=>iu(s))},openListenerForm(e,n){e?(this.listenerForm=nu(e),this.editingListenerIndex=n):(this.listenerForm={},this.editingListenerIndex=-1),e&&e.fields?this.fieldsListOfListener=e.fields.map(t=>E(f({},t),{fieldType:t.string?"string":"expression"})):(this.fieldsListOfListener=[],this.$set(this.listenerForm,"fields",[])),this.listenerFormModelVisible=!0,this.$nextTick(()=>{this.$refs.listenerFormRef&&this.$refs.listenerFormRef.clearValidate()})},removeListener(e,n){this.$confirm("确认移除该监听器吗?","提示",{confirmButtonText:"确 认",cancelButtonText:"取 消"}).then(()=>{this.bpmnElementListeners.splice(n,1),this.elementListenersList.splice(n,1),Ve(this.bpmnElement,this.otherExtensionList.concat(this.bpmnElementListeners))}).catch(()=>console.info("操作取消"))},saveListenerConfig(){return _(this,null,function*(){var t,i,s,a;if(!(yield this.$refs.listenerFormRef.validate()))return;const n=tu(this.listenerForm,!0,this.prefix);this.editingListenerIndex===-1?(this.bpmnElementListeners.push(n),this.elementListenersList.push(this.listenerForm)):(this.bpmnElementListeners.splice(this.editingListenerIndex,1,n),this.elementListenersList.splice(this.editingListenerIndex,1,this.listenerForm)),this.otherExtensionList=(a=(s=(i=(t=this.bpmnElement.businessObject)==null?void 0:t.extensionElements)==null?void 0:i.values)==null?void 0:s.filter(r=>r.$type!==`${this.prefix}:TaskListener`))!=null?a:[],Ve(this.bpmnElement,this.otherExtensionList.concat(this.bpmnElementListeners)),this.listenerFormModelVisible=!1,this.listenerForm={}})},openListenerFieldForm(e,n){this.listenerFieldForm=e?JSON.parse(JSON.stringify(e)):{},this.editingListenerFieldIndex=e?n:-1,this.listenerFieldFormModelVisible=!0,this.$nextTick(()=>{this.$refs.listenerFieldFormRef&&this.$refs.listenerFieldFormRef.clearValidate()})},saveListenerFiled(){return _(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(e,n){this.$confirm("确认移除该字段吗?","提示",{confirmButtonText:"确 认",cancelButtonText:"取 消"}).then(()=>{this.fieldsListOfListener.splice(n,1),this.listenerForm.fields.splice(n,1)}).catch(()=>console.info("操作取消"))}}},Zo={};var v0=u(f0,h0,m0,!1,_0,null,null,null);function _0(e){for(let n in Zo)this[n]=Zo[n]}const g0=function(){return v0.exports}();var y0=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"process-panel__container",style:{width:`${e.width}px`}},[t("ElCollapse",{model:{value:e.activeTab,callback:function(i){e.activeTab=i},expression:"activeTab"}},[t("ElCollapseItem",{attrs:{name:"base"},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"panel-tab__title"},[t("i",{staticClass:"el-icon-info"}),e._v("常规")])]},proxy:!0}])},[t("ElementBaseInfo",{attrs:{"id-edit-disabled":e.idEditDisabled,"business-object":e.elementBusinessObject,type:e.elementType}})],1),e.elementType==="Process"?t("ElCollapseItem",{key:"message",attrs:{name:"condition"},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"panel-tab__title"},[t("i",{staticClass:"el-icon-s-comment"}),e._v("消息与信号")])]},proxy:!0}],null,!1,2715634709)},[t("SignalAndMassage")],1):e._e(),e.conditionFormVisible?t("ElCollapseItem",{key:"condition",attrs:{name:"condition"},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"panel-tab__title"},[t("i",{staticClass:"el-icon-s-promotion"}),e._v("流转条件")])]},proxy:!0}],null,!1,2203010800)},[t("FlowCondition",{attrs:{"business-object":e.elementBusinessObject,type:e.elementType}})],1):e._e(),e.formVisible?t("ElCollapseItem",{key:"form",attrs:{name:"condition"},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"panel-tab__title"},[t("i",{staticClass:"el-icon-s-order"}),e._v("表单")])]},proxy:!0}],null,!1,1341048650)},[t("ElementForm",{attrs:{id:e.elementId,type:e.elementType}})],1):e._e(),e.elementType.indexOf("Task")!==-1?t("ElCollapseItem",{key:"task",attrs:{name:"task"},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"panel-tab__title"},[t("i",{staticClass:"el-icon-s-claim"}),e._v("任务")])]},proxy:!0}],null,!1,2144785833)},[t("ElementTask",{attrs:{id:e.elementId,type:e.elementType}})],1):e._e(),e.elementType.indexOf("Task")!==-1?t("ElCollapseItem",{key:"multiInstance",attrs:{name:"multiInstance"},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"panel-tab__title"},[t("i",{staticClass:"el-icon-s-help"}),e._v("多实例")])]},proxy:!0}],null,!1,1253501895)},[t("ElementMultiInstance",{attrs:{"business-object":e.elementBusinessObject,type:e.elementType}})],1):e._e(),t("ElCollapseItem",{key:"listeners",attrs:{name:"listeners"},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"panel-tab__title"},[t("i",{staticClass:"el-icon-message-solid"}),e._v("执行监听器")])]},proxy:!0}])},[t("ElementListeners",{attrs:{id:e.elementId,type:e.elementType}})],1),e.elementType==="UserTask"?t("ElCollapseItem",{key:"taskListeners",attrs:{name:"taskListeners"},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"panel-tab__title"},[t("i",{staticClass:"el-icon-message-solid"}),e._v("任务监听器")])]},proxy:!0}],null,!1,3617698803)},[t("UserTaskListeners",{attrs:{id:e.elementId,type:e.elementType}})],1):e._e(),t("ElCollapseItem",{key:"extensions",attrs:{name:"extensions"},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"panel-tab__title"},[t("i",{staticClass:"el-icon-circle-plus"}),e._v("扩展属性")])]},proxy:!0}])},[t("ElementProperties",{attrs:{id:e.elementId,type:e.elementType}})],1),t("ElCollapseItem",{key:"other",attrs:{name:"other"},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"panel-tab__title"},[t("i",{staticClass:"el-icon-s-promotion"}),e._v("其他")])]},proxy:!0}])},[t("ElementOtherConfig",{attrs:{id:e.elementId}})],1)],1)],1)},b0=[];const x0={name:"PropertiesPanel",components:{UserTaskListeners:g0,ElementForm:p0,ElementProperties:r0,ElementListeners:e0,SignalAndMassage:VT,FlowCondition:RT,ElementMultiInstance:AT,ElementTask:kT,ElementOtherConfig:nT,ElementBaseInfo:QI},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:e})=>{this.initFormOnChanged(e[0]||null)}),this.bpmnModeler.on("element.changed",({element:e})=>{e&&e.id===this.elementId&&this.initFormOnChanged(e)})},initFormOnChanged(e){var t;let n=e;n||(n=(t=window.bpmnInstances.elementRegistry.find(i=>i.type==="bpmn:Process"))!=null?t:window.bpmnInstances.elementRegistry.find(i=>i.type==="bpmn:Collaboration")),n&&(d.debug.call(this,`select element changed: id: ${n.id} , type: ${n.businessObject.$type}`),d.debug.call(this,"businessObject",n.businessObject),window.bpmnInstances.bpmnElement=n,this.bpmnElement=n,this.elementId=n.id,this.elementType=n.type.split(":")[1]||"",this.elementBusinessObject=JSON.parse(JSON.stringify(n.businessObject)),this.conditionFormVisible=!!(this.elementType==="SequenceFlow"&&n.source&&n.source.type.indexOf("StartEvent")===-1),this.formVisible=this.elementType==="UserTask"||this.elementType==="StartEvent")},beforeDestroy(){window.bpmnInstances=null}}},ec={};var $0=u(x0,y0,b0,!1,w0,null,null,null);function w0(e){for(let n in ec)this[n]=ec[n]}const us=function(){return $0.exports}();var C0=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{class:["avue-queue",{"avue-queue--block":e.block}]},[t("div",{ref:"queue",staticClass:"animate__animated",class:e.animate},[e._t("default")],2)])},S0=[];const k0={name:"Queue",props:{enter:{type:String,default:"fadeInLeft"},block:{type:Boolean,default:!1},delay:{type:Number,default:0}},data(){return{animate:[]}},mounted(){this.$nextTick(()=>{addEventListener("scroll",this.handleAnimate),this.handleAnimate()})},destroyed(){removeEventListener("scroll",this.handleAnimate)},methods:{handleAnimate(){const e=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop,n=document.documentElement.clientHeight,t=this.$refs.queue;e+n>t.offsetTop?setTimeout(()=>{this.animate=[this.enter,"avue-opacity--active"]},this.delay):this.animate=["avue-opacity"]}}},tc={};var E0=u(k0,C0,S0,!1,F0,null,null,null);function F0(e){for(let n in tc)this[n]=tc[n]}const ds=function(){return E0.exports}();let I0=class{constructor(n){this.chunks=[],this.video=n,this.mediaRecorder=null,this.chunks=[]}init(){return new Promise((n,t)=>{navigator.mediaDevices.getUserMedia({audio:!0,video:!0}).then(i=>{this.video&&("srcObject"in this.video?this.video.srcObject=i:this.video.src=window.URL.createObjectURL(i),this.video.addEventListener("loadmetadata",()=>{var s;(s=this.video)==null||s.play()}),this.mediaRecorder=new MediaRecorder(i),this.mediaRecorder.addEventListener("dataavailable",s=>{this.chunks.push(s.data)}),n(!0))}).catch(i=>{t(i)})})}startRecord(){var n;((n=this.mediaRecorder)==null?void 0:n.state)==="inactive"&&this.mediaRecorder.start()}stopRecord(){var n;((n=this.mediaRecorder)==null?void 0:n.state)==="recording"&&this.mediaRecorder.stop()}isSupport(){if(navigator.mediaDevices&&navigator.mediaDevices.getUserMedia)return!0}};var T0=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"avue-video",style:e.styleName},[t("div",{staticClass:"avue-video__border"},[t("span",{style:e.borderStyleName}),t("span",{style:e.borderStyleName}),t("span",{style:e.borderStyleName}),t("span",{style:e.borderStyleName})]),t("img",{staticClass:"avue-video__img",style:e.imgStyleName,attrs:{src:e.background,alt:""}}),t("video",{ref:"main",staticClass:"avue-video__main",attrs:{autoplay:"",muted:""},domProps:{muted:!0}})])},B0=[];const A0={name:"RecordVideo",props:{background:{type:String},width:{type:[String,Number],default:500}},data(){return{videoObj:null}},computed:{styleName(){return{width:w(this.width)}},imgStyleName(){return{width:w(this.width/2)}},borderStyleName(){return{width:w(this.width/15),height:w(this.width/15),borderWidth:w(5)}}},mounted(){this.init()},methods:{init(){this.videoObj=new I0(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 e=new Blob(this.videoObj.chunks,{type:"video/mp4"}),n=new FileReader;n.readAsDataURL(e),n.addEventListener("loadend",()=>{const t=n.result;this.$emit("data-change",t)})}}},nc={};var O0=u(A0,T0,B0,!1,M0,null,null,null);function M0(e){for(let n in nc)this[n]=nc[n]}const ps=function(){return O0.exports}();var P0=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"resize-observer",attrs:{tabindex:"-1"}})},D0=[];let je;function hs(){hs.init||(hs.init=!0,je=uf()!==-1)}const L0={name:"ResizeObserver",mounted(){hs(),this.$nextTick(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",je&&this.$el.appendChild(e),e.data="about:blank",je||this.$el.appendChild(e)},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&&(!je&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},ic={};var R0=u(L0,P0,D0,!1,N0,null,null,null);function N0(e){for(let n in ic)this[n]=ic[n]}const ms=function(){return R0.exports}();var j0=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("ElRow",{class:["avue-search",{"avue--card":e.isCard}],attrs:{span:24}},e._l(e.columnOption,function(i){return t("ElCol",{key:i.prop,staticClass:"avue-search__item",attrs:{span:i.span||24}},[t("p",{staticClass:"avue-search__title"},[e._v(" "+e._s(i.label)+": ")]),t("div",{staticClass:"avue-search__content"},[e.mainSlot.includes(i.prop)?e._t(i.prop,null,{dic:e.DIC[i.prop]}):e._l(e.DIC[i.prop],function(s){return t("span",{key:e.getKey(s,i.props,e.valueKey),class:["avue-search__tags",{"avue-search__tags--active":e.getActive(s,i)}],on:{click:function(a){return e.handleClick(i,s)}}},[e._v(e._s(e.getKey(s,i.props,e.labelKey)))])})],2)])}),1)},z0=[];const K0={name:"Search",mixins:[Us],props:{value:[String,Object,Number,Boolean,Array]},computed:{form:{get(){return this.value},set(e){this.setVal(e)}},props(){return this.parentOption.props||{}},labelKey(){return I.label},valueKey(){return I.value},mainSlot(){const e=[];return this.propOption.forEach(n=>{this.$scopedSlots[n.prop]&&e.push(n.prop)}),e},isCard(){return this.parentOption.card},parentOption(){return this.tableOption},propOption(){return this.columnOption},columnOption(){return this.parentOption.column}},watch:{value:{handler(e){this.setVal(e)},deep:!0}},created(){this.dataFormat()},methods:{setVal(e){this.$emit("input",e),this.$emit("change",e)},getKey(e={},n={},t){return e[n[t]||this.props[t]||t]},dataFormat(){this.propOption.forEach(e=>{const n=e.prop;d.isBlank(this.form[n])&&this.$set(this.form,n,e.multiple===!1?"":[])})},getActive(e,n){const t=this.getKey(e,n.props,this.valueKey);return n.multiple===!1?this.form[n.prop]===t:this.form[n.prop].includes(t)},handleClick(e,n){const t=this.getKey(n,e.props,this.valueKey);if(e.multiple===!1)this.form[e.prop]=t;else{const i=this.form[e.prop].indexOf(t);i===-1?this.form[e.prop].push(t):this.form[e.prop].splice(i,1)}}}},sc={};var W0=u(K0,j0,z0,!1,V0,null,null,null);function V0(e){for(let n in sc)this[n]=sc[n]}const fs=function(){return W0.exports}();var U0=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{directives:[{name:"show",rawName:"v-show",value:e.showPopover,expression:"showPopover"},{name:"click-outside",rawName:"v-click-outside",value:e.hidePopover,expression:"hidePopover"}],staticClass:"search-popover"},[t("div",{staticStyle:{padding:"10px"}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.keyword,expression:"keyword"}],ref:"searchInput",staticClass:"search-input",attrs:{placeholder:e.currentItem?e.currentItem.name:"输入关键字搜索 ..."},domProps:{value:e.keyword},on:{input:function(i){i.target.composing||(e.keyword=i.target.value)}}})]),t("ul",{ref:"ul",staticStyle:{flex:"1",overflow:"auto","list-style-type":"none"}},[e.filterList.length?e._l(e.filterList,function(i,s){return t("li",{key:i.name+s,staticClass:"search-li",attrs:{id:`item-${s}`},on:{mousemove:function(a){return e.mouseHoverItem(i,s)}}},[t("a",{class:["search-item",{active:e.currentIndex===s}],attrs:{target:i.url?"_blank":"",rel:"noopener noreferrer",href:i.url?i.url:"javascript:void(0)"},on:{click:function(a){return e.onItemClick(i)}}},[t("div",{staticClass:"search-icon"},[t("i",{class:i.icon||"el-icon-menu"})]),t("div",{staticStyle:{flex:"1","box-sizing":"border-box",padding:"0 10px","overflow-x":"hidden","text-align":"left"}},[t("p",{staticStyle:{"margin-bottom":"4px","font-size":"16px"}},[e._v(e._s(i.name))]),t("p",{staticClass:"url"},[e._v(e._s(i.url||i.path))])]),t("div",{staticClass:"search-icon search-action"},[t("svg",{staticClass:"action",attrs:{width:"20",height:"20",viewBox:"0 0 20 20"}},[t("g",{attrs:{stroke:"currentColor",fill:"none","fill-rule":"evenodd","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{d:"M18 3v4c0 2-2 4-4 4H2"}}),t("path",{attrs:{d:"M8 17l-6-6 6-6"}})])])])])])}):e.evalResult!==""?t("li",{staticClass:"search-li",on:{click:e.copyEvalResult,mousemove:function(i){return e.mouseHoverItem({},-1)}}},[t("a",{class:["search-item",{active:e.currentIndex===-1}],attrs:{rel:"noopener noreferrer",href:"javascript:void(0)"}},[e._m(0),t("div",{staticStyle:{flex:"1","box-sizing":"border-box",padding:"0 10px","overflow-x":"hidden","text-align":"left"}},[t("p",{staticStyle:{"margin-bottom":"4px","font-size":"16px"}},[e._v("Result: "+e._s(e.evalResult))]),t("p",{staticClass:"url"},[e._v("点击或这按 Enter 键复制")])]),t("div",{staticClass:"search-icon search-action"},[t("svg",{staticClass:"action",attrs:{width:"20",height:"20",viewBox:"0 0 20 20"}},[t("g",{attrs:{stroke:"currentColor",fill:"none","fill-rule":"evenodd","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{d:"M18 3v4c0 2-2 4-4 4H2"}}),t("path",{attrs:{d:"M8 17l-6-6 6-6"}})])])])])]):t("li",{staticStyle:{display:"flex","align-items":"center","justify-content":"center",height:"100%",color:"#808080"}},[e._v(" Sorry,no result ! ")])],2),t("div",{staticClass:"footer-tips"},[t("span",{staticClass:"keyboard-key"},[t("svg",{attrs:{width:"15",height:"15"}},[t("g",{attrs:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.2"}},[t("path",{attrs:{d:"M12 3.53088v3c0 1-1 2-2 2H4M7 11.53088l-3-3 3-3"}})])])]),t("span",{staticStyle:{"margin-right":"20px","font-size":"12px"}},[e._v("选择")]),t("span",{staticClass:"keyboard-key"},[t("svg",{attrs:{width:"15",height:"15"}},[t("g",{attrs:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.2"}},[t("path",{attrs:{d:"M7.5 3.5v8M10.5 8.5l-3 3-3-3"}})])])]),t("span",{staticClass:"keyboard-key"},[t("svg",{attrs:{width:"15",height:"15"}},[t("g",{attrs:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.2"}},[t("path",{attrs:{d:"M7.5 11.5v-8M10.5 6.5l-3-3-3 3"}})])])]),t("span",{staticStyle:{"margin-right":"20px","font-size":"12px"}},[e._v("切换")]),t("span",{staticClass:"keyboard-key"},[t("svg",{attrs:{width:"15",height:"15"}},[t("g",{attrs:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.2"}},[t("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"}})])])]),t("span",{staticStyle:{"font-size":"12px"}},[e._v("关闭")])])])},H0=[function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"search-icon"},[t("i",{staticClass:"fa fa-table"})])}];const q0={name:"SearchPopover",directives:{ClickOutside:zu},props:{services:{type:Array,default:()=>[]}},data(){return{showPopover:!1,keyword:"",currentIndex:0,last:0}},computed:{filterList(){return this.services.filter(e=>e.name.indexOf(this.keyword)>-1)},currentItem(){var e;return(e=this.filterList)==null?void 0:e[this.currentIndex]},evalResult(){try{return V(this.keyword)}catch(e){return""}}},watch:{keyword(){this.currentIndex=0,!this.currentItem&&this.currentIndex!==-1&&(this.currentIndex=-1)},showPopover(e){e?document.body.style.overflow="hidden":document.body.style.overflow=""}},mounted(){window.addEventListener("keydown",this.keydown)},destroyed(){window.removeEventListener("keydown",this.keydown)},methods:{onItemClick(e){return _(this,null,function*(){e.path&&(this.hidePopover(),yield this.$router.push(e.path))})},copyEvalResult(){return d.copy(this.evalResult)},hidePopover(){this.showPopover=!1},displayPopover(){this.showPopover=!0},mouseHoverItem(e,n){this.currentIndex=n},keydown(e){return _(this,null,function*(){if(e.key==="Shift"){const n=Date.now()-this.last;n>0&&n<500?(this.showPopover=!0,yield this.$nextTick(),this.$refs.searchInput.focus()):this.last=Date.now()}this.showPopover===!0&&(e.key==="Escape"&&this.hidePopover(),e.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()),e.key==="ArrowUp"&&(this.currentIndex--,this.currentIndex<0&&(this.currentIndex=this.filterList.length-1),this.scrollIntoView(this.currentIndex)),e.key==="ArrowDown"&&(this.currentIndex++,this.currentIndex>=this.filterList.length&&(this.currentIndex=0),this.scrollIntoView(this.currentIndex)))})},scrollIntoView(e){if(e===0){this.$refs.ul.scrollTop=0;return}if(e===this.filterList.length){this.$refs.ul.scrollTop=this.$refs.ul.scrollHeight;return}const n=this.$refs.ul.querySelector(`#item-${e}`);d.isInContainer(n,this.$refs.ul,{topOffset:-78,bottomOffset:78})||(this.$refs.ul.scrollTop=n.offsetTop-n.clientHeight+20)}}},ac={};var G0=u(q0,U0,H0,!1,J0,null,null,null);function J0(e){for(let n in ac)this[n]=ac[n]}const vs=function(){return G0.exports}();var Q0=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"avue-sign",style:e.styleName},[t("canvas",{ref:"canvas",staticClass:"avue-sige__canvas",attrs:{width:e.width,height:e.height}})])},Y0=[];function X0(e,n,t,i,s,a){e.save(),e.fillStyle=s,e.translate(n,t),e.rotate(Math.PI+a),e.beginPath();let r=Math.sin(0),l=Math.cos(0);const o=Math.PI/5*4;for(let c=0;c<5;c++)r=Math.sin(c*o),l=Math.cos(c*o),e.lineTo(r*i,l*i);e.closePath(),e.stroke(),e.fill(),e.restore()}const Z0={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:w(this.width),height:w(this.height)}}},mounted(){this.init()},methods:{getStar(e,n,t){const i=this.canvas,s=this.context,a=i.width/2,r=i.height/2;s.lineWidth=7,s.strokeStyle="#f00",s.beginPath(),s.arc(a,r,110,0,Math.PI*2),s.stroke(),X0(s,a,r,20,"#f00",0),s.font="18px 黑体",s.textBaseline="middle",s.textAlign="center",s.lineWidth=1,s.strokeStyle="#f00",s.strokeText(e,a,r+50),s.font="14px 黑体",s.textBaseline="middle",s.textAlign="center",s.lineWidth=1,s.strokeStyle="#f00",s.strokeText(t,a,r+80),s.translate(a,r),s.font="22px 黑体";const l=n.length,o=4*Math.PI/(3*(l-1)),c=n.split("");let p;for(let h=0;h<l;h++)p=c[h],h===0?s.rotate(5*Math.PI/6):s.rotate(o),s.save(),s.translate(90,0),s.rotate(Math.PI/2),s.strokeText(p,0,0),s.restore(),s.save();this.disabled=!0},submit(e,n){return e||(e=this.width),n||(n=this.height),this.canvas.toDataURL("i/png")},clear(){this.linex=[],this.liney=[],this.linen=[],this.disabled=!1},init(){this.canvas=this.$refs.canvas;const e=this.canvas,n=this;typeof document.ontouchstart!="undefined"?(e.addEventListener("touchmove",l,!1),e.addEventListener("touchstart",o,!1),e.addEventListener("touchend",c,!1)):(e.addEventListener("mousemove",l,!1),e.addEventListener("mousedown",o,!1),e.addEventListener("mouseup",c,!1),e.addEventListener("mouseleave",c,!1)),this.context=e.getContext("2d");const t=this.context;this.linex=[],this.liney=[],this.linen=[];let i=1,s=30,a=0;function r(p,h){const m=p.getBoundingClientRect();let v,C;return h.targetTouches?(v=h.targetTouches[0].clientX,C=h.targetTouches[0].clientY):(v=h.clientX,C=h.clientY),{x:(v-m.left)*(p.width/m.width),y:(C-m.top)*(p.height/m.height)}}function l(p){if(n.disabled)return;const h=r(e,p).x,m=r(e,p).y;if(a===1){n.linex.push(h),n.liney.push(m),n.linen.push(1),t.save(),t.translate(t.canvas.width/2,t.canvas.height/2),t.translate(-t.canvas.width/2,-t.canvas.height/2),t.beginPath(),t.lineWidth=2;for(let v=1;v<n.linex.length;v++)i=n.linex[v],s=n.liney[v],n.linen[v]===0?t.moveTo(i,s):t.lineTo(i,s);t.shadowBlur=10,t.stroke(),t.restore()}p.preventDefault()}function o(p){if(n.disabled)return;const h=r(e,p).x,m=r(e,p).y;a=1,n.linex.push(h),n.liney.push(m),n.linen.push(0)}function c(){n.disabled||(a=0)}}}},rc={};var e2=u(Z0,Q0,Y0,!1,t2,null,null,null);function t2(e){for(let n in rc)this[n]=rc[n]}const _s=function(){return e2.exports}();var n2=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"sign-panel flex-column"},[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.disabled&&e.edit,expression:"!disabled && edit"}],staticClass:"sign-edit"},[t("div",{staticClass:"sign-draw-area",style:{width:`${e.width+2}px`,height:`${e.height+2}px`}},[t("div",{staticClass:"sign-watermark",style:{fontSize:`${e.fontSize}px`}},[e._v(" "+e._s(e.text)+" ")]),t("canvas",{ref:"canvas",staticClass:"sign-canvas",attrs:{width:e.width,height:e.height},on:{touchstart:function(i){return i.stopPropagation(),e.touchstart.apply(null,arguments)},touchmove:function(i){return i.stopPropagation(),e.touchmove.apply(null,arguments)},mousedown:function(i){return i.stopPropagation(),e.down.apply(null,arguments)},touchend:function(i){return i.stopPropagation(),e.touchend.apply(null,arguments)},mouseup:function(i){return i.stopPropagation(),e.up.apply(null,arguments)}}},[e._v("当前浏览器不支持手写签名 ")])]),t("div",{staticClass:"sign-tool-bar"},[t("div",{staticClass:"sign-button flex-item",staticStyle:{color:"red"},on:{click:e.clear}},[t("i",{staticClass:"fa fa-trash"}),e._v(" 清除 ")]),t("div",{staticClass:"sign-button flex-item",staticStyle:{color:"red"},on:{click:e.cancel}},[t("i",{staticClass:"fa fa-close"}),e._v(" 取消 ")]),t("div",{staticClass:"sign-button flex-item",staticStyle:{color:"orange"},on:{click:e.rollback}},[t("i",{staticClass:"fa fa-repeat"}),e._v(" 撤销 ")]),t("div",{staticClass:"sign-button flex-item",staticStyle:{color:"green"},on:{click:e.save}},[t("i",{staticClass:"fa fa-check"}),e._v(" 确定 ")])])]),t("div",{directives:[{name:"show",rawName:"v-show",value:e.disabled||!e.edit,expression:"disabled || !edit"}],staticClass:"sign-view",style:{cursor:e.disabled?"not-allowed":"pointer"},on:{click:e.showSign}},[e.value?t("img",{staticClass:"sign-image",attrs:{src:e.value,alt:"签名"}}):e._e(),e.value?e._e():t("p",{staticClass:"sign-tips",style:{color:!e.value&&e.disabled?"red":""}},[e._v(" "+e._s(e.disabled?"未签名":"点击进行签名")+" ")]),e.disabled?e._e():t("i",{staticClass:"el-icon-edit-outline sign-edit-icon"})])])},i2=[];const s2={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 e=this.stack[this.stack.length-1];this.ctx.putImageData(e,0,0),this.stack.length=this.stack.length-1}},position(){this.restorePoint=this.ctx.getImageData(0,0,this.canvas.width,this.canvas.height);const e=this.canvas.getBoundingClientRect();this.start=e.left,this.end=e.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(e){this.position(),this.startLine(e.clientX,e.clientY,e),this.target=e.target,this.target.addEventListener("mousemove",this.move),window.addEventListener("mouseup",this.up)},move(e){this.moveLine(e.clientX,e.clientY,e)},up(){this.target&&this.target.removeEventListener("mousemove",this.move),window.removeEventListener("mouseup",this.up),this.record()},touchstart(e){this.position(),this.startLine(e.changedTouches[0].clientX,e.changedTouches[0].clientY,e)},touchmove(e){this.moveLine(e.touches[0].clientX,e.touches[0].clientY,e)},startLine(e,n){this.ctx.beginPath(),e-=this.start,n-=this.end,this.ctx.moveTo(e,n)},moveLine(e,n,t){t&&t.preventDefault(),e-=this.start,n-=this.end,this.ctx.lineTo(e,n),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 e=this.canvas.toDataURL("image/png");this.blank===e?this.$emit("input",""):this.$emit("input",e),this.edit=!1,this.stack.length=0,this.ctx.clearRect(0,0,this.width,this.height)},showSign(){this.disabled||(this.edit=!0)}}},lc={};var a2=u(s2,n2,i2,!1,r2,null,null,null);function r2(e){for(let n in lc)this[n]=lc[n]}const gs=function(){return a2.exports}();var l2=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"avue-skeleton"},[e.loading?e._l(e.number,function(i,s){return t("div",{key:s,staticClass:"avue-skeleton__item"},[t("div",{staticClass:"avue-skeleton__header"},[e.avatar?t("span",{staticClass:"avue-skeleton__vatar'),className]"}):e._e()]),t("div",{staticClass:"avue-skeleton__content"},[t("h3",{class:["avue-skeleton__title",e.className]}),t("div",{staticClass:"avue-skeleton__list"},e._l(e.rows,function(a,r){return t("p",{key:r,class:["avue-skeleton__li",e.className],style:e.styleName})}),0)])])}):t("div",[e._t("default")],2)],2)},o2=[];const c2="avue-skeleton",u2={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:e}=this;return{[`${c2}__loading`]:e}}}},oc={};var d2=u(u2,l2,o2,!1,p2,null,null,null);function p2(e){for(let n in oc)this[n]=oc[n]}const ys=function(){return d2.exports}();function h2(e,n){for(let t=0;t<n.length;t++)if(e===n[t])return!0;return!1}const cc=function(){return document.addEventListener?function(e,n,t){e&&n&&t&&e.addEventListener(n,t,!1)}:function(e,n,t){e&&n&&t&&e.attachEvent(`on${n}`,t)}}(),uc=function(){return document.removeEventListener?function(e,n,t){e&&n&&e.removeEventListener(n,t,!1)}:function(e,n,t){e&&n&&e.detachEvent(`on${n}`,t)}}();var m2=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{ref:"outerWrapper",class:e.wrapperClasses},[e.isHorizontal?t("div",{class:`${e.prefix}-horizontal`},[e.hideLeft?t("div",{class:[`${e.prefix}-pane`,"right-pane"],staticStyle:{left:"0"}},[e._t("right")],2):[t("div",{class:[`${e.prefix}-pane`,"left-pane"],style:{right:`${e.anotherOffset}%`}},[e._t("left")],2),t("div",{class:`${e.prefix}-trigger-con`,style:{left:`calc(${e.offset}% + ${e.triggerSize/2}px)`,width:`${e.triggerSize}px`},on:{mousedown:e.handleMousedown}},[e._t("trigger",function(){return[t("Trigger",{attrs:{mode:"vertical"}})]})],2),t("div",{class:[`${e.prefix}-pane`,"right-pane"],style:{left:`calc(${e.offset}% + ${e.triggerSize}px)`}},[e._t("right")],2)]],2):t("div",{class:`${e.prefix}-vertical`},[t("div",{class:[`${e.prefix}-pane`,"top-pane"],style:{bottom:`${e.anotherOffset}%`}},[e._t("top")],2),t("div",{class:`${e.prefix}-trigger-con`,style:{top:`calc(${e.offset}% + ${e.triggerSize/2}px)`,height:`${e.triggerSize}px`},on:{mousedown:e.handleMousedown}},[e._t("trigger",function(){return[t("Trigger",{attrs:{mode:"horizontal"}})]})],2),t("div",{class:[`${e.prefix}-pane`,"bottom-pane"],style:{top:`calc(${e.offset}% + ${e.triggerSize}px)`}},[e._t("bottom")],2)]),t("ResizeObserver",{on:{notify:e.resetOffset}})],1)},f2=[];const v2={name:"SplitPane",props:{value:{type:[Number,String],default:.5},mode:{validator(e){return h2(e,["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 _(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(e,n){return parseFloat(e)/parseFloat(n)},getComputedThresholdValue(e){const n=this.$refs.outerWrapper[this.offsetSize];return this.valueIsPx?typeof this[e]=="string"?this[e]:n*this[e]:typeof this[e]=="string"?this.px2percent(this[e],n):this[e]},getMin(e,n){return this.valueIsPx?`${Math.min(parseFloat(e),parseFloat(n))}px`:Math.min(e,n)},getMax(e,n){return this.valueIsPx?`${Math.max(parseFloat(e),parseFloat(n))}px`:Math.max(e,n)},getAnotherOffset(e){let n=0;return this.valueIsPx?n=`${this.$refs.outerWrapper[this.offsetSize]-parseFloat(e)}px`:n=1-e,n},handleMove(e){const t=(this.isHorizontal?e.pageX:e.pageY)-this.initOffset,i=this.$refs.outerWrapper[this.offsetSize];let s=this.valueIsPx?`${parseFloat(this.oldOffset)+t}px`:this.px2percent(i*this.oldOffset+t,i);const a=this.getAnotherOffset(s);parseFloat(s)<=parseFloat(this.computedMin)&&(s=this.getMax(s,this.computedMin)),parseFloat(a)<=parseFloat(this.computedMax)&&(s=this.getAnotherOffset(this.getMax(a,this.computedMax))),e.atMin=this.value===this.computedMin,e.atMax=this.valueIsPx?this.getAnotherOffset(this.value)===this.computedMax:this.getAnotherOffset(this.value).toFixed(5)===this.computedMax.toFixed(5),this.$emit("input",s),this.$emit("on-moving",e)},handleUp(){this.isMoving=!1,uc(window,"mousemove",this.handleMove),uc(window,"mouseup",this.handleUp),this.$emit("on-move-end")},handleMousedown(e){this.initOffset=this.isHorizontal?e.pageX:e.pageY,this.oldOffset=this.value,this.isMoving=!0,cc(window,"mousemove",this.handleMove),cc(window,"mouseup",this.handleUp),this.$emit("on-move-start")}}},dc={};var _2=u(v2,m2,f2,!1,g2,null,null,null);function g2(e){for(let n in dc)this[n]=dc[n]}const bs=function(){return _2.exports}();const y2={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:e=>["doing","overdue","error","done","closed"].indexOf(e)>-1},status:{type:[String,Number]},size:{type:String}},render(e,{props:n,data:t,children:i}){const{draft:s,doing:a,overdue:r,error:l,done:o,closed:c,status:p,tag:h,size:m,type:v}=n,C={draft:Array.isArray(s)?s.includes(p):s,doing:Array.isArray(a)?a.includes(p):a,overdue:Array.isArray(r)?r.includes(p):r,error:Array.isArray(l)?l.includes(p):l,done:Array.isArray(o)?o.includes(p):o,closed:Array.isArray(c)?c.includes(p):c};return e(h,t,[e("span",{style:{width:m,height:m},class:["stateful",v,C]}),i])}};let b2,x2;const pc={};var $2=u(y2,b2,x2,!1,w2,null,null,null);function w2(e){for(let n in pc)this[n]=pc[n]}const xs=function(){return $2.exports}();var C2=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"static-pageable-table"},[t("ElTable",e._g(e._b({attrs:{size:"mini",data:e.records}},"ElTable",e.$attrs,!1),e.$listeners),[e._t("default",function(){return[e._v("请添加表格列")]})],2),t("ElPagination",{attrs:{"current-page":e.page.page,"hide-on-single-page":!0,"page-size":e.page.limit,total:e.page.total,background:"",layout:"total, prev, pager, next"},on:{"current-change":function(i){e.page.page=i}}})],1)},S2=[];const k2={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=Ku.chunk(this.rows,this.page.limit)[this.page.page-1]}}},hc={};var E2=u(k2,C2,S2,!1,F2,null,null,null);function F2(e){for(let n in hc)this[n]=hc[n]}const $s=function(){return E2.exports}();var I2=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"egd-swiper"},[t("ElButton",{staticClass:"el-carousel__arrow el-carousel__arrow--left",attrs:{disabled:e.reachedLeft,icon:"el-icon-arrow-left"},on:{click:e.clickLeft}}),t("div",{ref:"swiperBox",staticClass:"egd-swiper-box",on:{wheel:function(i){return i.stopPropagation(),i.preventDefault(),e.onMouseWheel.apply(null,arguments)}}},[t("div",{ref:"swiperContent",staticClass:"egd-swiper-content",style:e.swiperContentStyle},[e._t("default")],2)]),t("ElButton",{staticClass:"el-carousel__arrow el-carousel__arrow--right",attrs:{disabled:e.reachedRight,icon:"el-icon-arrow-right"},on:{click:e.clickRight}}),t("ResizeObserver",{on:{notify:e.resize}})],1)},T2=[];const B2={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 _(this,null,function*(){yield this.layout()})},updated(){this.computeContentWidth()},methods:{layout(){return _(this,null,function*(){yield this.$nextTick(),this.computeContentWidth(),this.resize()})},resize(){this.swiperBoxWith=this.$refs.swiperBox.offsetWidth},computeContentWidth(){let e=0;const n=[],{children:t}=this.$refs.swiperContent;Array.prototype.forEach.call(t,i=>{const s=d.getEleWidth(i);e+=s,n.push(s)}),this.childrenWidth=n,this.swiperContentWidth=e},updateDuration(e){this.swiperContentStyle.transitionDuration=e?"300ms":"0ms"},setTranslateX(e){this.swiperContentWidth<=this.swiperBoxWith||(e>0?(this.translateX=0,this.reachedLeft=!0,this.reachedRight=!1):e-this.swiperBoxWith<-this.swiperContentWidth?(this.translateX=-this.swiperContentWidth+this.swiperBoxWith,this.reachedLeft=!1,this.reachedRight=!0):(this.translateX=e,this.reachedLeft=!1,this.reachedRight=!1),this.swiperContentStyle.transform=`translate3d(${this.translateX}px, 0px, 0px)`)},clickLeft(){this.updateDuration(!0);let e=this.translateX+this.swiperBoxWith,n=e;if(e<0){n=0,e=-e;for(let t=0,i=this.childrenWidth.length;t<i&&(n+=this.childrenWidth[t],!(n>=e));t++);n=-n}this.setTranslateX(n)},clickRight(){this.updateDuration(!0);const e=Math.abs(this.translateX-this.swiperBoxWith);let n=0;for(let t=0,i=this.childrenWidth.length;t<i;t++)if(n+=this.childrenWidth[t],n>=e){n>e&&(n-=this.childrenWidth[t]);break}this.setTranslateX(-n)},onMouseWheel(e){this.updateDuration(!0),e.deltaMode===WheelEvent.DOM_DELTA_LINE?this.setTranslateX(this.translateX-e.deltaY*30):e.deltaMode===WheelEvent.DOM_DELTA_PAGE?e.deltaY>0?this.clickRight():this.clickLeft():this.setTranslateX(this.translateX-e.deltaY)},onMouseDown(e){this.mouseDown=!0,this.startX=e.clientX,this.translateXRaw=this.translateX,window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("mouseup",this.onMouseUp,{passive:!1})},onMouseUp(e){this.mouseDown=!1,this.updateDuration(!0),this.$refs.swiperContent.addEventListener("transitionend",this.transitionend),this.$refs.swiperContent.addEventListener("webkitTransitionEnd",this.transitionend);const n=e.clientX-this.startX;if(n<0){const t=this.translateX+n;this.setTranslateX(t)}if(n>0){const t=this.translateX+n;this.setTranslateX(t)}window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp)},onMouseMove(e){this.mouseDown&&requestAnimationFrame(()=>{const n=e.clientX-this.startX,t=this.translateXRaw+n;this.setTranslateX(t)})},transitionend(){this.updateDuration(!1),this.$refs.swiperContent.removeEventListener("transitionend",this.transitionend),this.$refs.swiperContent.removeEventListener("webkitTransitionEnd",this.transitionend)}}},mc={};var A2=u(B2,I2,T2,!1,O2,null,null,null);function O2(e){for(let n in mc)this[n]=mc[n]}const ws=function(){return A2.exports}(),M2={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 e=this.$children;for(let n=0;n<e.length;n++)e[n].currentIndex=n,e[n].currentSelected&&(this.index=n)}},props:{value:Number},watch:{currentIndex(e,n){n>-1&&this.$children[n]&&(this.$children[n].currentSelected=!1),e>-1&&this.$children[e]&&(this.$children[e].currentSelected=!0),this.$emit("input",e),this.$emit("on-index-change",e,n)},index(e){this.currentIndex=e},value(e){this.index=e}},data(){return{index:-1,currentIndex:this.index,number:this.$children.length}}},P2={props:{selected:{type:Boolean,default:!1}},mounted(){this.$parent.updateIndex()},beforeDestroy(){const e=this.$parent;this.$nextTick(()=>{e.updateIndex()})},methods:{onItemClick(e){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(e){e&&(this.$parent.index=this.currentIndex)},selected(e){this.currentSelected=e}},data(){return{currentIndex:-1,currentSelected:this.selected}}};var D2=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"vux-tab-wrap",class:e.barPosition==="top"?"vux-tab-bar-top":""},[t("div",{staticClass:"vux-tab-container"},[t("div",{ref:"nav",staticClass:"vux-tab",class:[{"vux-tab-no-animate":!e.animate,scrollable:e.scrollable}]},[e._t("default"),e.animate?t("div",{staticClass:"vux-tab-ink-bar",class:e.barClass,style:e.barStyle},[e.customBarWidth?t("span",{staticClass:"vux-tab-bar-inner",style:e.innerBarStyle}):e._e()]):e._e()],2)])])},L2=[];const R2={name:"Tab",mixins:[M2],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(e){return["bottom","top"].indexOf(e)!==-1}}},data(){return{direction:"forward",hasReady:!1}},computed:{barLeft(){if(this.hasReady){const e=this.scrollable?window.innerWidth/this.$children[this.currentIndex||0].$el.getBoundingClientRect().width:this.number;return`${this.currentIndex*(100/e)}%`}return null},barRight(){if(this.hasReady){const e=this.scrollable?window.innerWidth/this.$children[this.currentIndex||0].$el.getBoundingClientRect().width:this.number;return`${(e-this.currentIndex-1)*(100/e)}%`}return null},innerBarStyle(){return{width:typeof this.customBarWidth=="function"?this.customBarWidth(this.currentIndex):this.customBarWidth,backgroundColor:this.barActiveColor||this.activeColor}},barStyle(){const e={left:this.barLeft,right:this.barRight,display:"block",height:`${this.lineWidth}px`,transition:this.hasReady?null:"none"};return this.customBarWidth?e.backgroundColor="transparent":e.backgroundColor=this.barActiveColor||this.activeColor,e},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(e,n){this.direction=e>n?"forward":"backward",this.$emit("on-index-change",e,n),this.hasReady&&this.scrollToActiveTab()}},mounted(){this.$nextTick(()=>{setTimeout(()=>{this.hasReady=!0},0)})},methods:{scrollToActiveTab(){if(!this.scrollable||!this.$children||!this.$children.length)return;const e=this.$children[this.currentIndex].$el;let n=0;const t=()=>{const s=this.$refs.nav;s.scrollLeft+=(e.offsetLeft-(s.offsetWidth-e.offsetWidth)/2-s.scrollLeft)/15,++n<15&&window.requestAnimationFrame(t)};window.requestAnimationFrame(t)}}},fc={};var N2=u(R2,D2,L2,!1,j2,null,null,null);function j2(e){for(let n in fc)this[n]=fc[n]}const Cs=function(){return N2.exports}();var z2=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"vux-tab-item",class:[e.currentSelected?e.activeClass:"",{"vux-tab-selected":e.currentSelected,"vux-tab-disabled":e.disabled}],style:e.style,on:{click:e.onItemClick}},[e._t("default"),typeof e.badgeLabel!="undefined"&&e.badgeLabel!==""?t("span",{staticClass:"vux-tab-item-badge",style:{background:e.badgeBackground,color:e.badgeColor}},[e._v(" "+e._s(e.badgeLabel)+" ")]):e._e()],2)},K2=[];const W2={name:"TabItem",mixins:[P2],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"}}}},vc={};var V2=u(W2,z2,K2,!1,U2,null,null,null);function U2(e){for(let n in vc)this[n]=vc[n]}const Ss=function(){return V2.exports}(),H2={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(e){return e.every(n=>["ascending","descending",null].indexOf(n)>-1)}}}},q2={name:"TableColumn",functional:!0,mixins:[H2],render(e,{data:n,props:t,children:i}){return e("ElTableColumn",E(f({},n),{props:E(f({},t),{showOverflowTooltip:["selection","single-selection","index","expand"].includes(t.type)?!1:t.showOverflowTooltip})}),i)}};let G2,J2;const _c={};var Q2=u(q2,G2,J2,!1,Y2,null,null,null);function Y2(e){for(let n in _c)this[n]=_c[n]}const ks=function(){return Q2.exports}();var X2=function(){var e=this,n=e.$createElement,t=e._self._c||n;return e.pageFlag&&e.optVal(e.crud.tableOption.page,!0)?t("ElCard",{staticClass:"avue-pagination",attrs:{shadow:e.crud.isCard}},[e._t("page"),t("ElPagination",{staticStyle:{"margin-top":"25px"},attrs:{small:e.crud.size==="mini",disabled:e.defaultPage.disabled,"hide-on-single-page":e.defaultPage.single,"pager-count":e.defaultPage.pagerCount,"current-page":e.defaultPage.currentPage,background:e.defaultPage.background,"page-size":e.defaultPage.pageSize,"page-sizes":e.defaultPage.pageSizes,layout:e.defaultPage.layout,total:e.defaultPage.total},on:{"update:currentPage":function(i){return e.$set(e.defaultPage,"currentPage",i)},"update:current-page":function(i){return e.$set(e.defaultPage,"currentPage",i)},"size-change":e.sizeChange,"prev-click":e.prevClick,"next-click":e.nextClick,"current-change":e.currentChange}})],2):e._e()},Z2=[];const eB={name:"TablePage",inject:["crud"],data(){return{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:M,pageInit(){this.defaultPage=Object.assign(this.defaultPage,this.crud.page),this.updateValue()},updateValue(){this.crud.$emit("update:page",this.defaultPage)},nextClick(e){this.crud.$emit("next-click",e)},prevClick(e){this.crud.$emit("prev-click",e)},sizeChange(e){this.defaultPage.currentPage=1,this.defaultPage.pageSize=e,this.updateValue(),this.crud.$emit("on-load",this.defaultPage),this.crud.$emit("size-change",e)},currentChange(e){this.updateValue(),this.crud.$emit("on-load",this.defaultPage),this.crud.$emit("current-change",e)}}},gc={};var tB=u(eB,X2,Z2,!1,nB,null,null,null);function nB(e){for(let n in gc)this[n]=gc[n]}const Es=function(){return tB.exports}();var iB=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"table-view"},[t("Toolbar",e._g(e._b({on:{search:e.toggleSearch,del:e.del,create:e.create,reload:e.reloadTable,imp:function(i){e.importDialogVisible=!0}},scopedSlots:e._u([{key:"default",fn:function(){return[e._t("toolbar-button")]},proxy:!0},e._l(e.buttonSlots,function(i){return{key:i,fn:function(){return[e._t(i)]},proxy:!0}})],null,!0)},"Toolbar",e.toolbarProps,!1),e.toolbarListeners)),t("div",{staticClass:"table-view-content-wrapper"},[t("div",{staticClass:"table-view-content"},[e.treeProps.show?t("div",{ref:"treeScroller",staticClass:"table-view-sidebar",on:{scroll:e.onTreeScroll}},[t("div",{staticStyle:{"font-size":"16px"}},[e._v(" 视图导航 ")]),t("EditableTree",e._g(e._b({ref:"tree",attrs:{readonly:""},scopedSlots:e._u([{key:"default",fn:function(i){var s=i.node,a=i.data;return[e._t("tree-node",function(){return[t("span",[t("i",{staticClass:"node-icon",class:s.childNodes.length>0?s.expanded?"el-icon-folder-opened":"el-icon-folder":"el-icon-tickets"}),e._t("tree-label",function(){return[e._v(e._s(s.label))]},{node:s,data:a})],2)]},{node:s,data:a})]}}],null,!0)},"EditableTree",e.treeProps,!1),e.treeListeners))],1):e._e(),t("div",{staticClass:"table-view-table"},[t("PageableTable",e._g(e._b({ref:"table",class:[{"border-top":e.borderTop,"border-bottom":e.borderBottom,"border-left":e.borderLeft||e.treeAttrs&&e.treeAttrs.show,"border-right":e.borderRight}],attrs:{border:e.border},on:{"row-dblclick":e.rowDbClick,"selection-change":e.onSelectionChange}},"PageableTable",e.tableProps,!1),e.tableListeners),[e._t("columns")],2)],1)]),e.toolbarProps.searchable?t("div",{staticClass:"slide-panel",style:{right:`${e.right}px`,width:`${e.searchPanelProps.width}px`}},[e._m(0),t("div",{staticClass:"slide-panel-content"},[t("ElForm",{ref:"form",attrs:{"label-position":"right",model:e.searchModel||e.searchPanelProps.model,size:"mini","label-width":e.labelWidth},nativeOn:{"!submit":function(i){return i.preventDefault(),e.onSearchClick.apply(null,arguments)}}},[t("FormItemConfigProvider",{attrs:{block:"","wrap-col":!1}},[t("ElRow",{attrs:{gutter:0}},[e._t("search-form",function(){return[t("p",[e._v("请添加搜索条件!")])]})],2)],1),t("ElFormItem",{attrs:{"label-width":"0"}},[t("div",{staticClass:"slide-panel-actions"},[t("ElButton",{attrs:{type:"primary","native-type":"submit",size:"mini"}},[e._v(" 开始搜索 ")]),t("ElButton",{attrs:{size:"mini"},on:{click:e.onClearClick}},[e._v(" 清除条件 ")])],1)])],1)],1)]):e._e()]),e._t("default")],2)},sB=[function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"slide-panel-line"},[t("div",{staticClass:"slide-panel-line-indicator"})])}];const aB=["back","create","save","withdraw","edit","submit","publish","agree","disagree","reject","finish","cancel","enable","exp","imp","del","disabled","reload","slot"],rB={name:"TableView",bus:{reloadTableView(e,n){if(this._viewIds)if(d.isString(e)||d.isArray(e)){let t=e;d.isString(t)&&(t=t.split(",")),this._viewIds.some(i=>t.includes(i))&&(n?this.$refs.tree&&(d.trace.call(this.$parent||{},"reloadTree"),this.refreshTree()):(d.trace.call(this.$parent||{},"reloadTable"),this.reloadTable()))}else d.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 e;return{importDialogVisible:!1,right:-(((e=this.searchPanelAttrs)==null?void 0:e.width)||350),selectedRows:[]}},computed:{buttonSlots(){return aB.filter(e=>this.$scopedSlots[e])},toolbarProps(){var i,s;const e={},n=O.merge(this.toolbarAttrs,e);let t=(n==null?void 0:n.buttons)||this.$parent.buttons;return t=t||[],t.includes("reload")||(t=[...t,"reload"]),n.buttons=t,n.buttons=d.toStringArray(n.buttons),n.searchable=!!((s=(i=this.$scopedSlots)["search-form"])!=null&&s.call(i)),n},treeProps(){const e={treeProps:{children:"children",label:"label",isLeaf:n=>d.hasOwn(n,"hasChildren")?!n.hasChildren:d.hasOwn(n,"hasChild")?!n.hasChild:!0},show:!1,lazy:!0,readonly:!0,data:[],"expand-first-node":!1,"default-expand-all":!1};return O.merge(this.treeAttrs,e)},tableProps(){const e=this.tableAttrs.api||this.$parent.getPage,n={model:this.searchModel||{},height:"auto","highlight-current-row":!0,api:e};return O.merge(this.tableAttrs,n)},searchPanelProps(){const e={width:350,model:this.searchModel||{}};return O.merge(this.searchPanelAttrs,e)}},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 _(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 _(this,null,function*(){this.$refs.table.setModel(this.searchModel||this.searchPanelProps.model),yield this.refreshTable()})},onClearClick(){return _(this,null,function*(){this.$emit("reset"),this.$refs.form.resetFields(),this.$refs.table.setModel(this.searchModel||this.searchPanelProps.model),yield this.refreshTable()})},openFrom(e){this.$router.push(yf(this.formPath,e))},rowDbClick(e){var n;!((n=this.tableListeners)!=null&&n["row-dblclick"])&&this.formPath&&this.openFrom(e)},onSelectionChange(e){this.selectedRows=e},create(){var e;!((e=this.toolbarListeners)!=null&&e.create)&&this.formPath&&this.openFrom()},del(){return _(this,null,function*(){var n;const e=this.deleteApi||this.$parent.del;if(!((n=this.toolbarListeners)!=null&&n.del)&&d.isFunction(e)){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:(t,i,s)=>_(this,null,function*(){if(t==="confirm")try{i.confirmButtonLoading=!0,i.confirmButtonText="删除...",yield e.call(this,this.selectedRows.map(a=>a.id).join(",")),this.$message.success("删除成功"),yield this.reloadTable(),yield this.refreshTree()}catch(a){}s()})}).catch(t=>t)}})},reloadTable(){var e;(e=this.$refs.table)==null||e.reload()},refreshTable(){return _(this,null,function*(){var e;yield(e=this.$refs.table)==null?void 0:e.getPage()})},refreshTree(){this.$refs.tree.reloadTree()},getSearchModel(){return this.searchPanelProps.model}}},yc={};var lB=u(rB,iB,sB,!1,oB,null,null,null);function oB(e){for(let n in yc)this[n]=yc[n]}const Fs=function(){return lB.exports}();var cB=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"tag-render"},[e.tags&&e.tags.length&&e.tags[0]?e._l(e.internalTags,function(i,s){return t("ElTag",{key:s,attrs:{closable:e.enable,"disable-transitions":""},on:{close:function(a){return e.$emit("close",e.tags[s],s)}}},[e._v(" "+e._s(e.getTagName(i))+" ")])}):e.enable?e._e():[t("span",{staticStyle:{color:"#b5b5b5"}},[e._v("无")])],e.enable?t("ElButton",{staticClass:"el-tag el-tag--medium el-tag--light button-new-tag",attrs:{size:"small"},on:{click:function(i){return e.$emit("add")}}},[e._v(" + 添加 ")]):e._e(),e.count?t("span",{staticClass:"tags-count"},[e._v(e._s(e.tags.length&&e.tags[0]?e.tags.length:""))]):e._e()],2)},uB=[];const dB={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(e=>{const n=f({},e);return this.transfer(n)}):this.tags}},watch:{tags(e){this.elFormItem&&e&&e.length>0&&this.elFormItem.clearValidate()}},methods:{getTagName(e){return d.hasOwn(e,"name")?e.name:d.hasOwn(e,"label")?e.label:e}}},bc={};var pB=u(dB,cB,uB,!1,hB,null,null,null);function hB(e){for(let n in bc)this[n]=bc[n]}const Is=function(){return pB.exports}();var mB=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"avue-text-ellipsis",style:{width:e.setPx(e.width,"100%")}},[e._t("before"),t("ElTooltip",{attrs:{content:e.text,disabled:!(e.useTooltip&&e.isHide),placement:e.placement}},[t("span",[t("span",{key:e.keyIndex,ref:"text",staticClass:"avue-text-ellipsis__text"},[e._v(e._s(e.text))])])]),t("span",{ref:"more",staticClass:"avue-text-ellipsis__more"},[e._t("more")],2),e._t("after")],2)},fB=[];const vB={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:w,init(){this.oversize=!1,this.keyIndex+=1;const e=this.$refs.more;e.style.display="none",this.isLimitHeight&&this.limitShow()},limitShow(){this.$nextTick(()=>{const e=this.$refs.text,n=this.$el,t=this.$refs.more;let i=1e3;if(e)if(n.offsetHeight>this.height){t.style.display="inline-block";let s=this.text;for(;n.offsetHeight>this.height&&i>0;)n.offsetHeight>this.height*3?e.innerText=s=s.substring(0,Math.floor(s.length/2)):e.innerText=s=s.substring(0,s.length-1),i--;this.$emit("hide"),this.isHide=!0}else this.$emit("show"),this.isHide=!1})}}},xc={};var _B=u(vB,mB,fB,!1,gB,null,null,null);function gB(e){for(let n in xc)this[n]=xc[n]}const Ts=function(){return _B.exports}();var yB=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticStyle:{"margin-bottom":"10px"},style:{height:e.height}},[e.lazy?[e.focus&&!e.inputDisabled?t("TinymceWrapper",e._b({ref:"editor",attrs:{"query-params":e.queryParams,disabled:e.inputDisabled,"show-types":e.showTypes,value:e.value},on:{"on-blur":e.onEditorBlur,"dialog-show":function(i){e.hideOnBlur=!1},"dialog-hide":function(i){e.hideOnBlur=!0},input:function(i){return e.$emit("input",i)}}},"TinymceWrapper",e.$attrs,!1)):t("div",{staticClass:"editor-shadow",class:[{"show-placeholder":e.isEmpty}],style:{cursor:e.inputDisabled?"not-allowed":"text"},attrs:{placeholder:e.inputDisabled?"":e.placeholder},domProps:{innerHTML:e._s(e.value)},on:{click:e.onEditorShadowClick}})]:[e.inputDisabled?t("div",{staticClass:"editor-shadow",class:[{"show-placeholder":e.isEmpty}],style:{cursor:e.inputDisabled?"not-allowed":"text"},attrs:{placeholder:e.inputDisabled?"":e.placeholder},domProps:{innerHTML:e._s(e.value)}}):t("TinymceWrapper",e._b({ref:"editor",attrs:{"query-params":e.queryParams,disabled:e.inputDisabled,value:e.value},on:{"on-blur":e.onEditorBlur,"dialog-show":function(i){e.hideOnBlur=!1},"dialog-hide":function(i){e.hideOnBlur=!0},input:function(i){return e.$emit("input",i)}}},"TinymceWrapper",e.$attrs,!1))]],2)},bB=[];const xB={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(e){e&&this.onEditorShadowClick()}},methods:{onEditorBlur(){this.inputDisabled||this.hideOnBlur&&(this.focus=!1)},getEditor(){return this.$refs.editor.$refs.editor.editor},onEditorShadowClick(){return _(this,null,function*(){if(this.inputDisabled)return;this.focus=!0,yield this.$nextTick();const e=this.getEditor();e.focus();const n=e.getBody();e.selection.setCursorLocation(n,n.childNodes.length)})},insertContent(e){this.getEditor().insertContent(e)}}},$c={};var $B=u(xB,yB,bB,!1,wB,null,null,null);function wB(e){for(let n in $c)this[n]=$c[n]}const Bs=function(){return $B.exports}(),CB={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":"插入模板"},SB='方正小标宋="方正小标宋";仿宋GB2312="仿宋GB2312";微软雅黑="微软雅黑";宋体="宋体";黑体="黑体";仿宋="仿宋";楷体="楷体";隶书="隶书";幼圆="幼圆";Arial="Arial";',kB=`
|
|
86
86
|
* {
|
|
87
87
|
margin: 0;
|
|
88
88
|
padding: 0
|
|
@@ -106,4 +106,4 @@ body {
|
|
|
106
106
|
.mce-content-body img {
|
|
107
107
|
max-width: 100%;
|
|
108
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;
|
|
109
|
+
`;function EB(e){let n;const t=e.naturalHeight,i=document.createElement("canvas");i.width=1,i.height=t;const s=i.getContext("2d");s.drawImage(e,0,0);try{n=s.getImageData(0,0,1,t).data}catch(c){return console.log("Cannot check verticalSquash: CORS?"),1}let a=0,r=t,l=t;for(;l>a;)n[(l-1)*4+3]===0?r=l:a=l,l=r+a>>1;const o=l/t;return o===0?1:o}function ru(e){const n=atob(e.split(",")[1]),t=new ArrayBuffer(n.length),i=new Uint8Array(t);for(let s=0;s<n.length;s++)i[s]=n.charCodeAt(s);return t}function FB(e){const n=e.split(",")[0].split(":")[1].split(";")[0],t=ru(e);return new Blob([t],{type:n})}function IB(e){const n=new DataView(e);if(n.getUint16(0,!1)!==65496)return-2;const t=n.byteLength;let i=2;for(;i<t;){const s=n.getUint16(i,!1);if(i+=2,s===65505){if(n.getUint32(i+=2,!1)!==1165519206)return-1;const a=n.getUint16(i+=6,!1)===18761;i+=n.getUint32(i+4,a);const r=n.getUint16(i,a);i+=2;for(let l=0;l<r;l++)if(n.getUint16(i+l*12,a)===274)return n.getUint16(i+l*12+8,a)}else{if((s&65280)!==65280)break;i+=n.getUint16(i,!1)}}return-1}function TB(e,n,t){const i=e.width,s=e.height;switch(t>4&&(e.width=s,e.height=i),t){case 2:n.translate(i,0),n.scale(-1,1);break;case 3:n.translate(i,s),n.rotate(Math.PI);break;case 4:n.translate(0,s),n.scale(1,-1);break;case 5:n.rotate(.5*Math.PI),n.scale(1,-1);break;case 6:n.rotate(.5*Math.PI),n.translate(0,-s);break;case 7:n.rotate(.5*Math.PI),n.translate(i,-s),n.scale(-1,1);break;case 8:n.rotate(-.5*Math.PI),n.translate(-i,0);break}}function BB(e){return e.split(",")[0].split(":")[1].split(";")[0]}function AB(e){return`.${BB(e).replace("image/","")}`}function OB(e,n){return _(this,null,function*(){return new Promise((t,i)=>{const s=new Image;s.onload=function(){const a=EB(s),r=IB(ru(s.src)),l=document.createElement("canvas"),o=l.getContext("2d"),c=n.compress.width,p=n.compress.height;let h=s.width,m=s.height;h<m&&m>p?(h=parseInt(`${p*s.width/s.height}`),m=p):h>=m&&h>c&&(m=parseInt(`${c*s.height/s.width}`),h=c),l.width=h,l.height=m,r>0&&TB(l,o,r),o.drawImage(s,0,0,h,m/a);const v=l.toDataURL("image/jpeg",n.compress.quality);/;base64,null/.test(v)||/;base64,$/.test(v)?(n.onError(new Error(`Compress fail, dataURL is ${v}.`)),i(Error("图片压缩失败"))):t(DB(v,`${d.getFilePrefix(n.fileName)}.jpg`))},s.src=e})})}function MB(e,n){return _(this,null,function*(){const t=yield PB(e);return OB(t,f({fileName:e.name},n))})}function PB(e){return new Promise((n,t)=>{const i=new FileReader;i.onload=function(s){n(s.target.result)},i.onerror=function(s){t(s)},i.readAsDataURL(e)})}function DB(e="",n){const t=FB(e);return t.name=n||`image${AB(e)}`,t}var LB=function(){var e=this,n=e.$createElement,t=e._self._c||n;return e.show?t("div",{class:["tinymce-editor",{"none-resize":!e.resize}]},[t("Editor",{ref:"editor",attrs:{disabled:e.inputDisabled,"model-events":"change input undo redo SetContent",init:e.init},model:{value:e.val,callback:function(i){e.val=i},expression:"val"}}),t("ElUpload",{ref:"uploader",staticStyle:{display:"none"},attrs:{action:e.action,"http-request":e.uploadImageFile,"show-file-list":!1,"auto-upload":"",accept:".jpg,.jpeg,.png,.gif,.bmp"}},[t("span")])],1):e._e()},RB=[];Wu.addI18n("zh_CN",CB);const NB={name:"TinymceWrapper",components:{Editor:Vu},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 n=["fullscreen","image","wordcount","paste"].join(","),t=this.buttons||[];let i=this.toolbar||" | ";return i=`undo redo | bold italic underline | alignleft aligncenter alignright alignjustify | fontselect fontsizeselect | removeformat | | ${i}`,t&&(i+=` ${t.map(a=>a.name).join(" ")}`),i+=" | fullscreen",{val:"",show:!0,init:{setup:a=>{a.settings.dialog_title=this.dialogTitle,a.settings.show_types=this.showTypes,a.on("paste",l=>{const o=l.clipboardData||l.dataTransfer;return!(this.processItems(l,o.items)||this.processItems(l,o.files))}),a.on("PreInit",l=>{l.target.dom.doc.body.style.fontFamily="微软雅黑"}),a.on("Blur",l=>{this.$emit("on-blur",l)}),a.on("DialogShow",l=>{this.$emit("dialog-show",l)}),a.on("DialogHide",l=>{this.$emit("dialog-hide",l)}),t.forEach(l=>{l.icon=` ${l.icon}`;const{onclick:o}=l;a.addButton(l.name,E(f({},l),{onclick:()=>o(a)}))});const r={icon:" el-icon-picture",name:"uploadImage",title:"上传图片",onclick:this.upload};a.addButton(r.name,E(f({},r),{onclick:()=>r.onclick(a)}))},toolbar:i,placeholder:"在这里输入文字",content_style:kB,fontname:"宋体",fontFamily:"宋体",branding:!1,query_params:this.queryParams,skin:!1,dialog_title:"",menubar:!1,height:"100%",elementpath:!1,plugins:`${n},${this.plugins}`,font_formats:SB,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 e;return(e=this.getUploadUrl)==null?void 0:e.call(this)},headers(){var e;return(e=this.getHeader)==null?void 0:e.call(this)}},watch:{value:{immediate:!0,handler(e){this.val=e}},dialogTitle(e){this.getEditor()&&(this.getEditor().settings.dialog_title=e)},val(e){this.elForm&&this.elFormItem&&this.elForm.clearValidate([this.elFormItem.prop]),this.$emit("input",e)}},deactivated(){this.show=!1},activated(){this.show=!0},methods:{uploadImageFile(s){return _(this,arguments,function*({file:e,onError:n,onProgress:t,onSuccess:i}){var a,r;try{this.loading=this.$loading({text:"压缩中...",background:"rgba(0,0,0,0.2)"});const l=yield MB(e,{compress:{width:1920,height:1600,quality:.8}});this.loading.text="上传中...";const o=yield this.api((a=this.getUploadUrl)==null?void 0:a.call(this),l,{data:{unid:d.guid(),type:this.fileLabel},onprogress(c){t==null||t(c)}});this.insertImage(o.data.filePath),i==null||i(o,e),this.$refs.uploader.clearFiles()}catch(l){n==null||n(l)}(r=this.loading)==null||r.close()})},processItems(e,n){let t=!1;for(let i=0;i<n.length;i++){const s=n[i];if(/^image\/(jpeg|png|gif|bmp)$/.test(s.type)){const a=s.getAsFile?s.getAsFile():s;this.uploadImageFile({file:a}),e.preventDefault(),t=!0}}return t},getEditor(){return this.$refs.editor.editor},focus(){this.getEditor().focus()},upload(){this.$refs.uploader.$refs["upload-inner"].handleClick()},insertImage(e){this.getEditor().insertContent(`<img alt="图片" src="${this.replaceImageUrl(e)}"/>`)},replaceImageUrl(e){return e.replace("/var/local/data/merge","")}}},wc={};var jB=u(NB,LB,RB,!1,zB,null,null,null);function zB(e){for(let n in wc)this[n]=wc[n]}const As=function(){return jB.exports}(),Cc={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}},KB={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 e=this.$route.path;this.$bus("closeTab",e,this)},fire(e,n){this.emitter==="parent"?this.$parent&&this.$parent.$emit(e,n,this):this.$emit(e,n,this)},createButton(e,{label:n,icon:t,type:i,separateLine:s=!0}){var o;const a=this.$createElement;let r;const l=((o=this.label)==null?void 0:o[e])||n;return["back","cancel"].includes(e)?r=this.goBack:r=c=>(this.$listeners[e]||d.NOOP)(c),a("ToolbarButton",{attrs:{"separate-line":s,icon:t,label:l,footer:this.footer,type:i},on:{click:r}})},getLeftButtons(){var t,i;const{createButton:e}=this;return((i=(t=this.$scopedSlots)["toolbar-left"])==null?void 0:i.call(t))||this.buttons.map(s=>{var r,l,o,c,p;const a=Cc[s];return a?((l=(r=this.$scopedSlots)[s])==null?void 0:l.call(r))||e(s,a):s==="slot"&&(p=(c=(o=this.$scopedSlots).default)==null?void 0:c.call(o,{buttons:this.buttons,footer:this.footer}))!=null?p:null})},getRightButtons(){var n,t;return((t=(n=this.$scopedSlots)["toolbar-right"])==null?void 0:t.call(n))||this.getSearchButton()},getSearchButton(){const{createButton:e}=this;return this.searchable?e("search",Cc.search):null}},render(){const e=arguments[0];return this.footer?e("div",{class:"footer-bar"},[this.getLeftButtons()]):e("div",{class:"toolbar"},[e("div",{class:"toolbar-left"},[this.getLeftButtons()]),e("div",{class:"toolbar-right"},[this.getRightButtons()])])}};let WB,VB;const Sc={};var UB=u(KB,WB,VB,!1,HB,null,null,null);function HB(e){for(let n in Sc)this[n]=Sc[n]}const Os=function(){return UB.exports}();var qB=function(){var e=this,n=e.$createElement,t=e._self._c||n;return e.footer||e.toolbar.footer?t("ElButton",{attrs:{disabled:e.disabled||e.loading,type:e.type},on:{click:e.onClick}},[e._v(" "+e._s(e.label)+" ")]):t("span",{staticClass:"form-toolbar-button"},[t("ElButton",{attrs:{icon:e.icon,type:"text",disabled:e.disabled||e.loading,size:"mini"},on:{click:e.onClick}},[e._v(" "+e._s(e.label)+" ")]),e.separateLine?t("span",{staticClass:"separate-line"}):e._e()],1)},GB=[];const JB={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(e){return _(this,null,function*(){this.loading=!0;const{click:n}=this.$listeners;if(d.isFunction(n))try{yield n(e)}catch(t){}this.loading=!1})}}},kc={};var QB=u(JB,qB,GB,!1,YB,null,null,null);function YB(e){for(let n in kc)this[n]=kc[n]}const Ms=function(){return QB.exports}();var XB=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{class:e.classes},[e.showIcon?t("div",{class:e.barConClasses},e._m(0),0):e._e()])},ZB=[function(){var e=this,n=e.$createElement,t=e._self._c||n;return e._l(8,function(i){return t("i",{key:`trigger-${i}`,class:`${e.prefix}-bar`})})}];const eA={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"]}}},Ec={};var tA=u(eA,XB,ZB,!1,nA,null,null,null);function nA(e){for(let n in Ec)this[n]=Ec[n]}const Ps=function(){return tA.exports}();var iA=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"avue-verify"},e._l(e.list,function(i,s){return t("span",{key:s,staticClass:"avue-verify__item",style:e.styleName},[e._v(" "+e._s(i)+" ")])}),0)},sA=[];const aA={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(e){const n=`${e}`;this.$emit("input",n),this.$emit("change",n)}},styleName(){return{padding:`${w(this.size/7)} ${w(this.size/4)}`,fontSize:w(this.size)}},list(){return this.data.split("")}},created(){this.random()},methods:{random(){const e=this.len;if(e>21)return null;const n=new RegExp(`(\\d{${e}})(\\.|$)`);this.data=(Array(e-1).join(0)+Math.pow(10,e)*Math.random()).match(n)[1]}}},Fc={};var rA=u(aA,iA,sA,!1,lA,null,null,null);function lA(e){for(let n in Fc)this[n]=Fc[n]}const Ds=function(){return rA.exports}();var oA=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"tags-input-root"},[t("div",{class:`${e.wrapperClass} tags-input`},[e._l(e.tags,function(i,s){return t("span",{key:s,staticClass:"el-tag el-tag--medium el-tag--light"},[t("span",{domProps:{innerHTML:e._s(i.value)}}),t("i",{staticClass:"tags-input-remove ov",attrs:{href:"#"},on:{click:function(a){return a.preventDefault(),e.removeTag(s)}}})])}),t("input",{directives:[{name:"model",rawName:"v-model",value:e.input,expression:"input"}],ref:"taginput",staticStyle:{height:"28px","margin-top":"5px","line-height":"28px"},attrs:{type:"text",placeholder:e.placeholder},domProps:{value:e.input},on:{keydown:[function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:(i.preventDefault(),e.tagFromInput(!1))},function(i){return!i.type.indexOf("key")&&i.keyCode!==8?null:e.removeLastTag.apply(null,arguments)},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"down",40,i.key,["Down","ArrowDown"])?null:e.nextSearchResult.apply(null,arguments)},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"up",38,i.key,["Up","ArrowUp"])?null:e.prevSearchResult.apply(null,arguments)},e.onKeyDown],keyup:[e.onKeyUp,function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"esc",27,i.key,["Esc","Escape"])?null:e.clearSearchResults.apply(null,arguments)}],focus:e.onFocus,blur:e.onBlur,value:e.tags,input:function(i){i.target.composing||(e.input=i.target.value)}}}),e.elementId?t("input",{directives:[{name:"model",rawName:"v-model",value:e.hiddenInput,expression:"hiddenInput"}],attrs:{id:e.elementId,type:"hidden",name:e.elementId},domProps:{value:e.hiddenInput},on:{input:function(i){i.target.composing||(e.hiddenInput=i.target.value)}}}):e._e()],2),t("div",{directives:[{name:"show",rawName:"v-show",value:e.searchResults.length,expression:"searchResults.length"}]},[e.typeaheadStyle==="badges"?t("p",{class:`typeahead-${e.typeaheadStyle}`},[e.typeaheadHideDiscard?e._e():t("span",{staticClass:"tags-input-badge typeahead-hide-btn tags-input-typeahead-item-default",domProps:{textContent:e._s(e.discardSearchText)},on:{click:function(i){return i.preventDefault(),e.clearSearchResults.apply(null,arguments)}}}),e._l(e.searchResults,function(i,s){return t("span",{key:s,staticClass:"tags-input-badge",class:{"tags-input-typeahead-item-default":s!=e.searchSelection,"tags-input-typeahead-item-highlighted-default":s==e.searchSelection},domProps:{innerHTML:e._s(i.value)},on:{mouseover:function(a){e.searchSelection=s},mousedown:function(a){return a.preventDefault(),e.tagFromSearchOnClick(i)}}})})],2):e.typeaheadStyle==="dropdown"?t("ul",{class:`typeahead-${e.typeaheadStyle}`},[e.typeaheadHideDiscard?e._e():t("li",{staticClass:"tags-input-typeahead-item-default typeahead-hide-btn",domProps:{textContent:e._s(e.discardSearchText)},on:{mousedown:function(i){return i.preventDefault(),e.clearSearchResults.apply(null,arguments)}}}),e._l(e.searchResults,function(i,s){return t("li",{key:s,class:{"tags-input-typeahead-item-default":s!=e.searchSelection,"tags-input-typeahead-item-highlighted-default":s==e.searchSelection},domProps:{innerHTML:e._s(i.value)},on:{mouseover:function(a){e.searchSelection=s},mousedown:function(a){return a.preventDefault(),e.tagFromSearchOnClick(i)}}})})],2):e._e()])])},cA=[];const uA={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(e,n){this.$emit("input-changed",e),this.searchTag(!1),e.length&&e!==n&&(this.addTagsOnSpace&&e.endsWith(" ")&&(this.input=e.trim(),this.tagFromInput(!0)),this.addTagsOnComma&&(e=e.trim(),e.endsWith(",")&&(this.input=e.substring(0,e.length-1),this.tagFromInput(!0))),this.$emit("change",e))},tags(){this.hiddenInput=JSON.stringify(this.tags),this.$emit("input",this.tags)},value(){this.tagsFromValue()},typeaheadAlwaysShow(e){e?this.searchTag(!1):this.clearSearchResults()}},created(){this.tagsFromValue(),this.typeaheadAlwaysShow&&this.searchTag(!1),this.$emit("initialized")},methods:{escapeRegExp(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},tagFromInput(e=!1){if(this.searchResults.length&&this.searchSelection>=0&&!e)this.tagFromSearch(this.searchResults[this.searchSelection]),this.input="";else{const n=this.input.trim();if(!this.onlyExistingTags&&n.length&&this.validate(n)){this.input="";let t={key:"",value:n};const i=this.escapeRegExp(this.caseSensitiveTags?t.value:t.value.toLowerCase());for(const s of this.existingTags){const a=this.caseSensitiveTags?s.value:s.value.toLowerCase();if(i===a){t=Object.assign({},s);break}}this.addTag(t)}}},tagFromSearchOnClick(e){this.tagFromSearch(e),this.$refs.taginput.blur()},tagFromSearch(e){this.clearSearchResults(),this.addTag(e),this.$nextTick(()=>{this.input="",this.oldInput=""})},addTag(e){if(!this.beforeAddingTag(e))return!1;if(this.limit>0&&this.tags.length>=this.limit)return this.$emit("limit-reached"),!1;this.tagSelected(e)||(this.tags.push(e),this.$nextTick(()=>{this.$emit("tag-added",e),this.$emit("tags-updated")}))},removeLastTag(){!this.input.length&&this.deleteOnBackspace&&this.tags.length&&this.removeTag(this.tags.length-1)},removeTag(e){const n=this.tags[e];if(!this.beforeRemovingTag(n))return!1;this.tags.splice(e,1),this.$nextTick(()=>{this.$emit("tag-removed",n),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 e=this.input.trim();if(e.length&&e.length>=this.typeaheadActivationThreshold||this.typeaheadActivationThreshold===0||this.typeaheadAlwaysShow){const n=this.escapeRegExp(this.caseSensitiveTags?e:e.toLowerCase());for(const t of this.existingTags)(this.caseSensitiveTags?t.value:t.value.toLowerCase()).search(n)>-1&&!this.tagSelected(t)&&this.searchResults.push(t);this.sortSearchResults&&this.searchResults.sort((t,i)=>t.value<i.value?-1:t.value>i.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 e=this.value;if(this.tags===e)return;this.clearTags();for(const n of e)this.addTag(n)}else{if(this.tags.length===0)return;this.clearTags()}},tagSelected(e){if(this.allowDuplicates||!e)return!1;const n=this.escapeRegExp(this.caseSensitiveTags?e.value:e.value.toLowerCase());for(const t of this.tags){const i=this.caseSensitiveTags?t.value:t.value.toLowerCase();if(t.key===e.key&&i.search(n)>-1)return!0}return!1},clearInput(){this.input=""},onKeyUp(e){this.$emit("keyup",e)},onKeyDown(e){this.$emit("keydown",e)},onFocus(e){this.$emit("focus",e),this.searchTag()},onBlur(e){this.$emit("blur",e),this.addTagsOnBlur&&this.tagFromInput(!0),this.typeaheadAlwaysShow?this.searchTag():this.hideTypeahead()}}},Ic={};var dA=u(uA,oA,cA,!1,pA,null,null,null);function pA(e){for(let n in Ic)this[n]=Ic[n]}const Ls=function(){return dA.exports}();const hA={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(e,{props:{width:n,height:t,text:i,backgroundColor:s,rotate:a,color:r},data:l}){const o=document.createElement("canvas");o.width=n,o.height=t;const c=o.getContext("2d");return c.font="15px Verdana",c.fillStyle=s,c.fillRect(0,0,n,t),c.translate(n/2,t/2),c.rotate(a*Math.PI/180),c.fillStyle=r,c.textAlign="center",c.textBaseline="middle",c.fillText(i,0,0),e("div",{class:Ye(l.class,`watermark ${l.staticClass||""}`),style:E(f(f({},l.style||{}),l.staticStyle||{}),{background:`url(${o.toDataURL("image/png")}) left top repeat`})})}};let mA,fA;const Tc={};var vA=u(hA,mA,fA,!1,_A,null,null,null);function _A(e){for(let n in Tc)this[n]=Tc[n]}const Rs=function(){return vA.exports}(),gA="2.8.4",yA=e=>{e.component(mt.name,mt),e.component(ft.name,ft),e.component(vt.name,vt),e.component(_t.name,_t),e.component(gt.name,gt),e.component(yt.name,yt),e.component(bt.name,bt),e.component(xt.name,xt),e.component(wt.name,wt),e.component(Ct.name,Ct),e.component(St.name,St),e.component(kt.name,kt),e.component(Et.name,Et),e.component(Ft.name,Ft),e.component(It.name,It),e.component(Tt.name,Tt),e.component(Bt.name,Bt),e.component(At.name,At),e.component(Ot.name,Ot),e.component(Mt.name,Mt),e.component(Pt.name,Pt),e.component(Dt.name,Dt),e.component(Lt.name,Lt),e.component(Rt.name,Rt),e.component(Ke.name,Ke),e.component(Nt.name,Nt),e.component(jt.name,jt),e.component(zt.name,zt),e.component(Kt.name,Kt),e.component(Wt.name,Wt),e.component(Vt.name,Vt),e.component(Ut.name,Ut),e.component(Ht.name,Ht),e.component(qt.name,qt),e.component(Gt.name,Gt),e.component(Jt.name,Jt),e.component(Qt.name,Qt),e.component(Yt.name,Yt),e.component(Xt.name,Xt),e.component(Zt.name,Zt),e.component(en.name,en),e.component(tn.name,tn),e.component(nn.name,nn),e.component(sn.name,sn),e.component(an.name,an),e.component(rn.name,rn),e.component(on.name,on),e.component(cn.name,cn),e.component(un.name,un),e.component(dn.name,dn),e.component(pn.name,pn),e.component(hn.name,hn),e.component(mn.name,mn),e.component(fn.name,fn),e.component(vn.name,vn),e.component(_n.name,_n),e.component(gn.name,gn),e.component(yn.name,yn),e.component(bn.name,bn),e.component(xn.name,xn),e.component($n.name,$n),e.component(wn.name,wn),e.component(Cn.name,Cn),e.component(Sn.name,Sn),e.component(kn.name,kn),e.component(En.name,En),e.component(Fn.name,Fn),e.component(In.name,In),e.component(Tn.name,Tn),e.component(Bn.name,Bn),e.component(An.name,An),e.component(On.name,On),e.component(Mn.name,Mn),e.component(Pn.name,Pn),e.component(Dn.name,Dn),e.component(Ln.name,Ln),e.component(Rn.name,Rn),e.component(Nn.name,Nn),e.component(jn.name,jn),e.component(zn.name,zn),e.component(Kn.name,Kn),e.component(Wn.name,Wn),e.component(Vn.name,Vn),e.component(Un.name,Un),e.component(qn.name,qn),e.component(Gn.name,Gn),e.component(Jn.name,Jn),e.component(Qn.name,Qn),e.component(Yn.name,Yn),e.component(Xn.name,Xn),e.component(Zn.name,Zn),e.component(ei.name,ei),e.component(ti.name,ti),e.component(ni.name,ni),e.component(ii.name,ii),e.component(si.name,si),e.component(ai.name,ai),e.component(ri.name,ri),e.component(li.name,li),e.component(ci.name,ci),e.component(ui.name,ui),e.component(di.name,di),e.component(pi.name,pi),e.component(hi.name,hi),e.component(mi.name,mi),e.component(fi.name,fi),e.component(vi.name,vi),e.component(_i.name,_i),e.component(gi.name,gi),e.component(yi.name,yi),e.component(bi.name,bi),e.component(xi.name,xi),e.component($i.name,$i),e.component(wi.name,wi),e.component(Ci.name,Ci),e.component(Si.name,Si),e.component(ki.name,ki),e.component(Ei.name,Ei),e.component(Fi.name,Fi),e.component(Ii.name,Ii),e.component(Ti.name,Ti),e.component(Bi.name,Bi),e.component(Ai.name,Ai),e.component(Oi.name,Oi),e.component(Mi.name,Mi),e.component(Pi.name,Pi),e.component(Di.name,Di),e.component(Li.name,Li),e.component(Ri.name,Ri),e.component(Ni.name,Ni),e.component(ji.name,ji),e.component(zi.name,zi),e.component(Ki.name,Ki),e.component(Vi.name,Vi),e.component(Ui.name,Ui),e.component(Hi.name,Hi),e.component(qi.name,qi),e.component(Gi.name,Gi),e.component(ne.name,ne),e.component(Ji.name,Ji),e.component(Qi.name,Qi),e.component(Yi.name,Yi),e.component(Xi.name,Xi),e.component(Zi.name,Zi),e.component(es.name,es),e.component(ts.name,ts),e.component(ns.name,ns),e.component(is.name,is),e.component(ss.name,ss),e.component(as.name,as),e.component(rs.name,rs),e.component(ls.name,ls),e.component(os.name,os),e.component(cs.name,cs),e.component(us.name,us),e.component(ds.name,ds),e.component(ps.name,ps),e.component(ms.name,ms),e.component(fs.name,fs),e.component(vs.name,vs),e.component(_s.name,_s),e.component(gs.name,gs),e.component(ys.name,ys),e.component(bs.name,bs),e.component(xs.name,xs),e.component($s.name,$s),e.component(ws.name,ws),e.component(Cs.name,Cs),e.component(Ss.name,Ss),e.component(ks.name,ks),e.component(Es.name,Es),e.component(Fs.name,Fs),e.component(Is.name,Is),e.component(Ts.name,Ts),e.component(Bs.name,Bs),e.component(As.name,As),e.component(Os.name,Os),e.component(Ms.name,Ms),e.component(Ps.name,Ps),e.component(Ds.name,Ds),e.component(Ls.name,Ls),e.component(Rs.name,Rs),e.component(We.name,We)};exports.AddressInput=mt;exports.Affix=ft;exports.AsideMenu=vt;exports.Avatar=_t;exports.AwesomeButton=gt;exports.CapsuleTab=yt;exports.Card=bt;exports.Carousel=xt;exports.Chat=wt;exports.ChunkFileUploader=Ct;exports.ChunkFileUploaderButton=St;exports.ChunkFileUploaderDrop=kt;exports.ChunkFileUploaderFile=Et;exports.ChunkFileUploaderFiles=Ft;exports.ChunkFileUploaderList=It;exports.ChunkFileUploaderUnSupport=Tt;exports.CodeMirrorEditor=Bt;exports.ColorPicker=At;exports.Column=Ot;exports.ColumnDefault=Mt;exports.ColumnDynamic=Pt;exports.ColumnMenu=Dt;exports.ColumnSlot=Lt;exports.Comment=Rt;exports.ConfirmButton=Nt;exports.Confirmable=Ke;exports.ContextMenu=jt;exports.CountUp=zt;exports.CustomScrollbar=Kt;exports.DataBox=Wt;exports.DataCard=Vt;exports.DataCardtext=Ut;exports.DataDisplay=Ht;exports.DataIcons=qt;exports.DataImgtext=Gt;exports.DataOperatext=Jt;exports.DataPanel=Qt;exports.DataPay=Yt;exports.DataPrice=Xt;exports.DataProgress=Zt;exports.DataRotate=en;exports.DataTablePicker=tn;exports.DataTabs=nn;exports.DialogColumn=sn;exports.DialogExcel=an;exports.DialogFilter=rn;exports.DialogForm=on;exports.DynamicTable=cn;exports.ECharts=dn;exports.EasyPopup=un;exports.EditableProgress=pn;exports.EditableTree=hn;exports.EgdCollapse=mn;exports.EgdCollapseItem=fn;exports.ElementDialog=vn;exports.EmptyView=_n;exports.ErrorView=gn;exports.FlexColumn=yn;exports.FlexItem=bn;exports.FlexRow=xn;exports.FlexScroller=$n;exports.Flow=wn;exports.FlowNode=Cn;exports.FlowViewer=Sn;exports.FormBlock=kn;exports.FormButton=En;exports.FormCascader=Fn;exports.FormCheckboxGroup=In;exports.FormDatePicker=Tn;exports.FormGroup=Bn;exports.FormHolder=An;exports.FormInput=On;exports.FormInputEmail=Mn;exports.FormInputIdCard=Pn;exports.FormInputNumber=Dn;exports.FormInputPhoneNumber=Ln;exports.FormInputTag=Rn;exports.FormInputTime=Nn;exports.FormItem=jn;exports.FormItemConfigProvider=zn;exports.FormItemGroup=Kn;exports.FormRadioGroup=Wn;exports.FormSelect=Vn;exports.FormSwitch=Un;exports.FormTemp=qn;exports.FormTextarea=Gn;exports.FormView=Jn;exports.FyArray=Qn;exports.FyArticle=Yn;exports.FyCascader=Xn;exports.FyCheckbox=Zn;exports.FyCode=ei;exports.FyCurd=ti;exports.FyDate=ni;exports.FyDialogForm=ii;exports.FyDraggable=si;exports.FyDynamic=ai;exports.FyEmpty=ri;exports.FyForm=li;exports.FyFormDesign=ci;exports.FyFormMenu=ui;exports.FyInput=di;exports.FyInputColor=pi;exports.FyInputIcon=hi;exports.FyInputMap=mi;exports.FyInputNumber=fi;exports.FyInputTable=vi;exports.FyInputTree=_i;exports.FyProgress=gi;exports.FyRadio=yi;exports.FyRate=bi;exports.FySelect=xi;exports.FySlider=$i;exports.FySwitch=wi;exports.FyTabs=Ci;exports.FyTime=Si;exports.FyTitle=ki;exports.FyTree=Ei;exports.FyUEditor=Fi;exports.FyUpload=Ii;exports.GuideSteps=Ti;exports.HeaderMenu=Bi;exports.HeaderSearch=Ai;exports.HighlightJS=Oi;exports.IconCard=Mi;exports.IconTemp=Pi;exports.IframeWindow=Di;exports.ImageCropper=Li;exports.ImagePreview=Ri;exports.ImageViewer=Ni;exports.InputNumber=ji;exports.InputNumberRange=zi;exports.JSXComponent=Ki;exports.KeepViewAlive=Vi;exports.Keyboard=Ui;exports.License=Hi;exports.LoadingView=qi;exports.Login=Gi;exports.MonacoEditor=ne;exports.NameAvatar=Ji;exports.NavBar=Qi;exports.NotImplement=Xi;exports.Notice=Yi;exports.Page=Zi;exports.PageHeader=ns;exports.PageIndex=is;exports.PageIndexTop=ss;exports.PageSkeleton=as;exports.PageSkeletonNew=rs;exports.PageableTable=es;exports.PageableView=ts;exports.PhotoSwipe=ls;exports.PresentView=os;exports.ProcessDesigner=cs;exports.PropertiesPanel=us;exports.Queue=ds;exports.RecordVideo=ps;exports.ResizeObserver=ms;exports.Search=fs;exports.SearchPopover=vs;exports.Sign=_s;exports.SignPanel=gs;exports.Skeleton=ys;exports.SplitPane=bs;exports.Stateful=xs;exports.StaticPageableTable=$s;exports.Swiper=ws;exports.Tab=Cs;exports.TabItem=Ss;exports.TableColumn=ks;exports.TablePage=Es;exports.TableView=Fs;exports.TagRender=Is;exports.TextEllipsis=Ts;exports.TinymceEditor=Bs;exports.TinymceWrapper=As;exports.Toolbar=Os;exports.ToolbarButton=Ms;exports.Trigger=Ps;exports.Verify=Ds;exports.VueTagsInput=Ls;exports.Watermark=Rs;exports.XInputTag=We;exports.useWebComponent=yA;exports.version=gA;
|