@web-utils/component 1.0.12 → 1.0.15
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/dist/index.es.js +7855 -0
- package/dist/index.umd.js +7 -0
- package/package.json +6 -7
- package/web-types.json +1 -1
- package/dist/index.js +0 -7
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
var no=Object.defineProperty,so=Object.defineProperties;var ao=Object.getOwnPropertyDescriptors;var G=Object.getOwnPropertySymbols;var hi=Object.prototype.hasOwnProperty,pi=Object.prototype.propertyIsEnumerable;var di=(o,_,l)=>_ in o?no(o,_,{enumerable:!0,configurable:!0,writable:!0,value:l}):o[_]=l,h=(o,_)=>{for(var l in _||(_={}))hi.call(_,l)&&di(o,l,_[l]);if(G)for(var l of G(_))pi.call(_,l)&&di(o,l,_[l]);return o},b=(o,_)=>so(o,ao(_));var Ze=(o,_)=>{var l={};for(var T in o)hi.call(o,T)&&_.indexOf(T)<0&&(l[T]=o[T]);if(o!=null&&G)for(var T of G(o))_.indexOf(T)<0&&pi.call(o,T)&&(l[T]=o[T]);return l};(function(o,_){typeof exports=="object"&&typeof module!="undefined"?_(exports,require("element-ui"),require("@web-utils/core"),require("vue"),require("element-ui/src/mixins/focus"),require("element-ui/src/directives/repeat-click"),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"),require("element-ui/src/utils/popup"),require("element-ui/src/mixins/emitter"),require("@web-utils/core/directives")):typeof define=="function"&&define.amd?define(["exports","element-ui","@web-utils/core","vue","element-ui/src/mixins/focus","element-ui/src/directives/repeat-click","codemirror","codemirror/lib/codemirror.css","codemirror/theme/idea.css","codemirror/mode/javascript/javascript","codemirror/addon/edit/matchbrackets","codemirror/addon/lint/javascript-lint","codemirror/addon/lint/json-lint","codemirror/addon/lint/lint","codemirror/addon/lint/lint.css","codemirror/addon/fold/foldcode","codemirror/addon/fold/foldgutter","codemirror/addon/fold/foldgutter.css","codemirror/addon/fold/brace-fold","codemirror/addon/fold/comment-fold","element-ui/src/utils/popup","element-ui/src/mixins/emitter","@web-utils/core/directives"],_):(o=typeof globalThis!="undefined"?globalThis:o||self,_(o.web={},o.elementUi,o.core,o.Vue,o.Focus,o.RepeatClick,o.CodeMirror,null,null,null,null,null,null,null,null,null,null,null,null,null,o.Popup,o.Emitter,o.directives))})(this,function(o,_,l,T,fi,mi,_i,lo,oo,uo,co,ho,po,fo,mo,_o,go,yo,vo,bo,gi,yi,vi){"use strict";function M(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var bi=M(T),xi=M(fi),$i=M(mi),wi=M(_i),Si=M(gi),Ci=M(yi),xo="",ki=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("ul",{staticClass:"capsule-tab"},e._l(e.tabs,function(r){return i("li",{key:r.value,class:["tab-item",{active:e.value===r.value,single:e.tabs.length===1}],on:{click:function(n){return e.$emit("input",r.value)}}},[e._v(" "+e._s(r.label)+" ")])}),0)},Bi=[],$o="";function p(e,t,i,r,n,s,a,d){var u=typeof e=="function"?e.options:e;t&&(u.render=t,u.staticRenderFns=i,u._compiled=!0),r&&(u.functional=!0),s&&(u._scopeId="data-v-"+s);var c;if(a?(c=function(v){v=v||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!v&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(v=__VUE_SSR_CONTEXT__),n&&n.call(this,v),v&&v._registeredComponents&&v._registeredComponents.add(a)},u._ssrRegister=c):n&&(c=d?function(){n.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:n),c)if(u.functional){u._injectStyles=c;var f=u.render;u.render=function(w,B){return c.call(B),f(w,B)}}else{var m=u.beforeCreate;u.beforeCreate=m?[].concat(m,c):[c]}return{exports:e,options:u}}const Fi={name:"CapsuleTab",props:{tabs:{type:Array,default:()=>[]},value:{type:String,default:void 0}}},et={};var Ti=p(Fi,ki,Bi,!1,Pi,null,null,null);function Pi(e){for(let t in et)this[t]=et[t]}var X=function(){return Ti.exports}();async function Ii(e,t,i){const{stop:r,prevent:n,message:s,loadable:a,loadingText:d,confirmable:u,confirmType:c,confirmText:f}=t;r&&e.stopPropagation(),n&&e.preventDefault();const{before:m,click:v,cancel:w,after:B}=i;if(l.isFunction(v))try{l.isFunction(m)&&await m(e),u&&await _.MessageBox.confirm(s||f,{type:c});let F;a&&(F=_.Loading.service({background:"rgba(0,0,0,0.3)",text:d})),await v(e),a&&F.close(),l.isFunction(B)&&await B(e)}catch(F){l.isFunction(w)&&await w(F)}}var tt={functional:!0,props:{stop:{type:Boolean,default:!0},prevent:{type:Boolean,default:!0},text:{type:String,default:""},message:{type:String,default:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u8BB0\u5F55\u5417\uFF1F"},confirmable:{type:Boolean,default:!0},confirmText:{type:String,default:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u8BB0\u5F55\u5417\uFF1F"},confirmType:{type:String,default:"warning"},loadable:Boolean,loadingText:{type:String,default:"\u6B63\u5728\u5904\u7406\u4E2D\u8BF7\u7A0D\u5019..."},tag:{type:String,default:"i"}},render(e,{props:t,data:i,children:r,listeners:n}){return e(t.tag,b(h({},i),{on:{click:s=>Ii(s,t,n)},props:t}),r||t.text)}};const Ei={name:"Confirmable",mixins:[tt]};let Ni,Ri;const it={};var Oi=p(Ei,Ni,Ri,!1,Mi,null,null,null);function Mi(e){for(let t in it)this[t]=it[t]}var K=function(){return Oi.exports}();const Li={name:"ConfirmButton",mixins:[tt,{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:"\u5220\u9664"},tag:{type:String,default:"ElButton"}}}]};let zi,Ai;const rt={};var Di=p(Li,zi,Ai,!1,ji,null,null,null);function ji(e){for(let t in rt)this[t]=rt[t]}var U=function(){return Di.exports}(),Ki=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.visible?i("div",{staticClass:"cm-container",style:e.axisComputed},[i("svg",{staticStyle:{position:"absolute",width:"0",height:"0",overflow:"hidden"},attrs:{"aria-hidden":"true"}},[i("symbol",{attrs:{id:"icon-arrow",viewBox:"0 0 1024 1024"}},[i("path",{attrs:{d:"M288.791335 65.582671l446.41733 446.417329-446.41733 446.417329z"}})])]),i("ul",{staticClass:"cm-ul cm-ul-1 easy-cm-ul",class:e.underline?"cm-underline":""},e._l(e.list,function(r,n){return i("li",{key:n,style:e.liStyle},[i("div",{class:e.firstLeft?"cm-left":"",on:{click:function(s){return s.stopPropagation(),e.onItemClick(r,[n])}}},[i("i",{staticClass:"cm-item-icon",class:r.icon}),i("span",{staticClass:"cm-item-label"},[e._v(e._s(r.text))]),e.arrow&&r.children&&r.children.length>0?i("svg",{staticClass:"icon",attrs:{"aria-hidden":"true"}},[i("use",{attrs:{"xlink:href":"#icon-arrow"}})]):e._e()]),r.children&&r.children.length>0?i("ul",{staticClass:"cm-ul cm-ul-2 easy-cm-ul",class:e.underline?"cm-underline":"",style:e.secondBorderCheck(n)},e._l(r.children,function(s,a){return i("li",{key:a,style:e.liStyle},[i("div",{class:e.secondLeft?"cm-left":"",on:{click:function(d){return d.stopPropagation(),e.onItemClick(s,[n,a])}}},[i("i",{staticClass:"cm-item-icon",class:s.icon}),i("span",{staticClass:"cm-item-label"},[e._v(e._s(s.text))]),e.arrow&&s.children&&s.children.length>0?i("svg",{staticClass:"icon",attrs:{"aria-hidden":"true"}},[i("use",{attrs:{"xlink:href":"#icon-arrow"}})]):e._e()]),s.children&&s.children.length>0?i("ul",{staticClass:"cm-ul cm-ul-3 easy-cm-ul",class:e.underline?"cm-underline":"",style:e.thirdBorderCheck(n,a)},e._l(s.children,function(d,u){return i("li",{key:u,style:e.liStyle},[i("div",{on:{click:function(c){return c.stopPropagation(),e.onItemClick(d,[n,a,u])}}},[i("i",{staticClass:"cm-item-icon",class:d.icon}),i("span",{staticClass:"cm-item-label"},[e._v(e._s(d.text))])])])}),0):e._e()])}),0):e._e()])}),0)]):e._e()},Wi=[],So="";const qi={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,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,t=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>=t&&(this.axis.y=t-this.itemHeight*this.list.length-this.borderWidth-this.offset.y)}}},methods:{secondBorderCheck(e){const t=document.body.offsetWidth,i=document.body.offsetHeight,r=this.axis.y+(e+this.list[e].children.length)*this.itemHeight;return{left:this.axis.x+this.itemWidth*2>=t?"-100%":"100%",top:i>=r?0:`${-(this.list[e].children.length-1)*this.itemHeight}px`}},thirdBorderCheck(e,t){const i=document.body.offsetWidth,r=document.body.offsetHeight,n=this.axis.y+this.list[e].children[t].children.length*this.itemHeight+(e+t)*this.itemHeight+parseInt(this.secondBorderCheck(e).top);return{left:this.axis.x+this.itemWidth*3>=i?"-100%":"100%",top:n>r?`${-(this.list[e].children[t].children.length-1)*this.itemHeight}px`:0}},show(e){document.addEventListener("click",this.hide,!0),this.axis={x:e.clientX,y:e.clientY},this.visible=!0},hide(){this.visible=!1,document.removeEventListener("click",this.hide)},onItemClick(e,t){this.$emit("on-item-click",e,t)}}},nt={};var Hi=p(qi,Ki,Wi,!1,Vi,null,null,null);function Vi(e){for(let t in nt)this[t]=nt[t]}var J=function(){return Hi.exports}(),Gi=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"editable-progress",on:{mouseover:e.onMouseOver,mousedown:e.onMouseDown,mouseleave:e.onMouseLeave,click:e.wrapperClick}},[i("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():i("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(r){e.percent=r},expression:"percent"}})],1)},Xi=[],Co="";const Ui={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)}}},st={};var Ji=p(Ui,Gi,Xi,!1,Yi,null,null,null);function Yi(e){for(let t in st)this[t]=st[t]}var Y=function(){return Ji.exports}();const Q=(e,t)=>l.isPlainObject(e)||l.isString(e)?[t,e]:l.isArray(e)?[t,...e]:[t];function Qi(){const e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){const r=e.indexOf("rv:");return parseInt(e.substring(r+3,e.indexOf(".",r)),10)}const i=e.indexOf("Edge/");return i>0?parseInt(e.substring(i+5,e.indexOf(".",i)),10):-1}function Z(e,t){for(const i in t)bi.default.set(e,i,t[i]);return e}const Zi=(e,t)=>{if(!e||!t)return null;let i=e;for(;i&&t(i);)i=i.$parent;return i},er=["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"],tr=["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"],ir=["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"],rr=["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"],nr=["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"],g=(e,t,i=!0)=>{if(l.isObject(e)){let r=t;l.isString(t)&&(r=r.split(","));const n={};return r.forEach(s=>{l.hasOwn(e,s)&&(i?n[s]=e[s]:r.includes(s)||(n[s]=e[s]))}),n}return e},C=e=>{const t={};for(const i in e)t[l.camelize(i)]=e[i];return t},at=e=>g(e,er),W=e=>g(e,ir),lt=e=>g(e,tr),sr=e=>g(e,rr),ar=e=>g(e,nr),ot=(e="",t)=>{const i=t||{};return(e||"").replace(/{(.*?)}/g,(r,n)=>{if(n.indexOf(":")){const[s,a]=n.split(":");return i[s]?i[s]:a}else return i[n]||""})},lr=(e,t)=>l.isFunction(e)?ot(e(t),t):l.isString(e)?ot(e,t):null;var or=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"editable-tree"},[!e.readonly&&e.addRootNodeButtonStyle==="top-right"?i("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(r){return r.stopPropagation(),e.$emit("add-root-node")}}}):e._e(),i("div",{ref:"treeWrapper",staticClass:"et-tree-wrapper"},[!e.readonly&&e.addRootNodeButtonStyle==="top"?i("div",{staticStyle:{"padding-left":"24px"}},[i("ElButton",{attrs:{disabled:e.loading,size:"mini",type:"text"},on:{click:e.appendRootNode}},[i("i",{staticClass:"el-icon-lx-add"}),e._v(" "+e._s(e.addRootNodeLabel?e.addRootNodeLabel:`\u6DFB\u52A0${e.label}`)+" ")])],1):e._e(),i("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(r){var n=r.node,s=r.data;return[e._t("default",function(){return[s.edit?[i("span",{staticClass:"custom-tree-node flex-box flex-1 oh",attrs:{"data-id":s.id}},[e.icon?i("i",{staticClass:"node-icon shrink-0",class:s.loading?"el-icon-loading":"el-icon-edit-outline"}):e._e(),i("ElInput",{ref:"labelTxt",staticClass:"node-input flex-1",attrs:{size:"mini",placeholder:e.defaultOptions.inputPlaceholder},on:{blur:function(a){return e.inputBlur(a,n,s)}},nativeOn:{keyup:function(a){return function(d){return e.inputKeyup(d,n,s)}.apply(null,arguments)},click:function(a){a.stopPropagation()}},model:{value:e.text,callback:function(a){e.text=a},expression:"text"}}),e.confirmButton?[i("ElButton",{directives:[{name:"show",rawName:"v-show",value:!s.loading,expression:"!data.loading"}],staticClass:"shrink-0",attrs:{size:"mini",type:"text"},on:{click:function(a){return a.stopPropagation(),e.onConfirm(n,s)}}},[e._v("\u786E\u5B9A")]),i("ElButton",{directives:[{name:"show",rawName:"v-show",value:!s.loading,expression:"!data.loading"}],staticClass:"shrink-0",attrs:{size:"mini",type:"text"},on:{click:function(a){return a.stopPropagation(),e.onCancel(n,s)}}},[e._v("\u53D6\u6D88")])]:e._e()],2)]:[i("span",{staticClass:"custom-tree-node",attrs:{"data-id":s.id}},[i("span",{staticClass:"node-label flex-box flex-1 oh ellipsis-1"},[e.icon?i("i",{staticClass:"node-icon",class:s.loading?"el-icon-loading":e.icon(s,n)}):e._e(),i("span",{staticClass:"flex-1-relative",staticStyle:{height:"21px"}},[i("span",{staticClass:"ellipsis-1 absolute-box et-tree-label",attrs:{title:n.label}},[e._t("label",function(){return[e._v(e._s(n.label))]},{data:s,node:n})],2)]),e._t("label-suffix",null,{node:n,data:s})],2),!e.contextMenu&&!e.readonly?i("span",{directives:[{name:"show",rawName:"v-show",value:!s.loading&&!e.loading,expression:"!data.loading && !loading"}],staticClass:"handle-actions"},[i("ElButton",{attrs:{size:"mini",type:"text"},on:{click:function(a){return a.stopPropagation(),e.appendChildNode(n,s)}}},[e._v("\u6DFB\u52A0")]),i("ElButton",{attrs:{size:"mini",type:"text"},on:{click:function(a){return a.stopPropagation(),e.editNode(n,s)}}},[e._v("\u4FEE\u6539")]),i("ElPopconfirm",{staticClass:"pop-confirm",attrs:{"icon-color":"red",title:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u5417\uFF1F"},on:{confirm:function(a){return e.removeNode(n,s)}},scopedSlots:e._u([{key:"reference",fn:function(){return[i("ElButton",{directives:[{name:"show",rawName:"v-show",value:n.isLeaf,expression:"node.isLeaf"}],staticStyle:{"margin-left":"4px"},attrs:{size:"mini",type:"text"},on:{click:function(a){a.stopPropagation()}}},[e._v("\u5220\u9664")])]},proxy:!0}],null,!0)})],1):e._e(),e.contextMenuIcon&&e.contextMenu&&!e.readonly?i("span",{directives:[{name:"show",rawName:"v-show",value:!s.loading&&!e.loading,expression:"!data.loading && !loading"}],staticClass:"handle-actions",staticStyle:{display:"inline-block"}},[i("ElButton",{staticStyle:{padding:"6px 10px 0"},attrs:{size:"mini",type:"text"},on:{click:function(a){return a.stopPropagation(),e.showContextMenu(a,s,n)}}},[e._v(". . .")])],1):e._e()])]]},{node:n,data:s})]}}],null,!0)},"ElTree",e.filterTreeProperties(e.$attrs),!1),e.filterTreeEvents(e.$listeners))),e.contextMenu&&!e.readonly?i("div",{directives:[{name:"show",rawName:"v-show",value:e.showMenu,expression:"showMenu"}],ref:"contextMenu",staticClass:"menu",style:e.position},[i("ul",{staticClass:"menu-list"},[e._t("context-menu",function(){return[i("li",{directives:[{name:"show",rawName:"v-show",value:e.curData.id>-1,expression:"curData.id > -1"}],staticClass:"menu-item",on:{click:function(r){return e.appendPeerNode(e.curNode,e.curData)}}},[i("i",{staticClass:"menu-item-icon el-icon-lx-add",staticStyle:{color:"#228b22"}}),e._v(e._s(e.menuLabel.appendPeer)+" ")]),i("li",{staticClass:"menu-item",on:{click:function(r){return e.appendChildNode(e.curNode,e.curData)}}},[i("i",{staticClass:"menu-item-icon el-icon-lx-add",staticStyle:{color:"#228b22"}}),e._v(e._s(e.menuLabel.appendChild)+" ")]),i("li",{directives:[{name:"show",rawName:"v-show",value:e.curData.id>-1,expression:"curData.id > -1"}],staticClass:"menu-item",on:{click:function(r){return e.editNode(e.curNode,e.curData)}}},[i("i",{staticClass:"menu-item-icon el-icon-edit-outline",staticStyle:{color:"#ffa500"}}),e._v(e._s(e.menuLabel.editNode)+" ")]),i("li",{directives:[{name:"show",rawName:"v-show",value:e.curNode.isLeaf,expression:"curNode.isLeaf"}],staticClass:"menu-item",on:{click:function(r){return e.removeNodeModal(e.curNode,e.curData)}}},[i("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)},ur=[],ko="";const cr={name:"EditableTree",props:{label:{type:String,default:"\u4E66\u7B7E"},addRootNodeLabel:{type:String,default:void 0},defaultExpandedKeys:{type:Array,default:()=>[]},newNodeBuilder:{type:Function,default:(e,t)=>({name:e,parentId:t.id})},contextMenu:Boolean,lazy:{type:Boolean,default:!0},expandFirstNode:{type:Boolean,default:!0},readonly:Boolean,saveApi:{type:Function,default:void 0},updateApi:{type:Function,default:void 0},deleteApi:{type:Function,default:void 0},fetchApi:{type:Function,default:void 0},customRootNode:{type:{type:Object,default:void 0},default:void 0},rootNode:{type:Object,default:void 0},contextMenuIcon:Boolean,contextMenuInline:Boolean,treeProps:{type:Object,default:()=>({children:"children",label:"name",isLeaf:e=>l.hasOwn(e,"hasChildren")?!e.hasChildren:l.hasOwn(e,"hasChild")?!e.hasChild:l.hasOwn(e,"children")&&e.children?e.children.length===0:!0})},menuLabel:{type:Object,default:()=>({appendPeer:"\u6DFB\u52A0\u540C\u7EA7\u8282\u70B9",appendChild:"\u6DFB\u52A0",removeNode:"\u5220\u9664",editNode:"\u4FEE\u6539"})},icon:{type:[Function,Boolean],default:(e,t)=>"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:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",closeOnClickModal:!1,modal:!0,inputErrorMessage:`${this.label}\u540D\u4E0D\u80FD\u4E3A\u7A7A\uFF01`,inputPlaceholder:`\u8BF7\u8F93\u5165${this.label}\u540D...`,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(){l.addResizeListener(this.$refs.tree.$el,this.resize),l.addResizeListener(this.$refs.treeWrapper,this.resize)},beforeDestroy(){l.removeResizeListener(this.$refs.tree.$el,this.resize),l.removeResizeListener(this.$refs.treeWrapper,this.resize)},methods:{filterTreeProperties:sr,filterTreeEvents:ar,addExpandKey(e){this.reserveExpandKey&&this.expandedKeys.push(e[this.nodeKey])},removeExpandKey(e){this.reserveExpandKey&&(this.expandedKeys=this.expandedKeys.filter(t=>t!==e[this.nodeKey]))},resize(){l.isVerticalScrollbarVisible(this.$refs.treeWrapper)?this.right=4+l.scrollbarWidth:this.right=4},async showContextMenu(e,t,i){t.contextmenu===!1||t.id===-1||t.id===0||t.edit===!0||this.contextMenu&&(this.curNode=i,this.curData=t,this.showMenu=!0,this.$refs.tree.setCurrentKey(t.id),await this.$nextTick(),this.position=l.computePosition(e,this.$refs.contextMenu),window.addEventListener("click",this.hideContextMenu))},hideContextMenu(){this.showMenu=!1,window.removeEventListener("click",this.hideContextMenu)},async tryFetch(){var e,t;if(this.lazy===!1&&this.fetchApi){const i=await this.fetchApi((t=(e=this.rootNode)==null?void 0:e.id)!=null?t:-1,{});if(l.isPlainObject(i.data)&&(i.data=[i.data]),i.data=i.data||[],this.empty=i.data.length===0,l.isPlainObject(this.customRootNode)){const r=l.cloneDeep(this.customRootNode);r[this.treeProps.children||"children"]=i.data,this.treeData=[r]}else if(l.isFunction(this.customRootNode)){const r=this.customRootNode(i.data);r[this.treeProps.children||"children"]=i.data,this.treeData=l.isPlainObject(r)?[r]:r}else this.treeData=i.data}},async loadNode(e,t){var i,r,n,s;if(e.level===0){const a=await this.fetchApi((r=(i=this.rootNode)==null?void 0:i.id)!=null?r:-1,e);if(this.empty=a.data.length===0,l.isPlainObject(this.customRootNode)){const d=l.cloneDeep(this.customRootNode);d[this.treeProps.children||"children"]=a.data,t([d])}else if(l.isFunction(this.customRootNode)){const d=this.customRootNode(a.data);d[this.treeProps.children||"children"]=a.data,this.treeData=l.isPlainObject(d)?[d]:d}else t(a.data);await this.$nextTick(),this.$emit("root-node-loaded",a.data),this.defaultExpandedKeys?this.expandedKeys=[(n=a==null?void 0:a.data[0])==null?void 0:n.id,...this.defaultExpandedKeys]:this.expandFirstNode&&(this.expandedKeys=[(s=a==null?void 0:a.data[0])==null?void 0:s.id])}else{if(e.leaf||e.data.isTempNode)return t([]);const a=await this.fetchApi(e.data.id,e);t(a.data),await this.$nextTick(),this.$emit("node-loaded",a.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&&(l.isUndefined(this.editData.edit)?this.$set(this.editData,"edit",!0):this.editData.edit=!1)},async editNode(e,t){!this.contextMenu||this.contextMenuIcon||this.contextMenuInline?(this.clear(),this.editData=t,this.text=t[this.treeProps.label],l.isUndefined(t.edit)?this.$set(t,"edit",!0):t.edit=!0,await this.$nextTick(),this.$refs.labelTxt.focus()):await this.$prompt(`\u8BF7\u8F93\u5165\u65B0\u7684${this.label}\u540D\uFF1A`,b(h({},this.defaultOptions),{inputValue:t[this.treeProps.label],beforeClose:async(i,r,n)=>{if(i==="confirm"){try{r.confirmButtonLoading=!0,r.confirmButtonText="\u5904\u7406\u4E2D...",this.text=r.inputValue,await this.onConfirm(this.curNode,this.curData),n()}catch{r.confirmButtonText="\u786E\u5B9A"}r.confirmButtonLoading=!1}else n()}})).catch(i=>i)},async appendRootNode(){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),await this.scrollIntoView(!0)):await this.$prompt(`\u8BF7\u8F93\u5165${this.label}\u540D\uFF1A`,b(h({},this.defaultOptions),{beforeClose:async(e,t,i)=>{if(e==="confirm"){try{this.createNewChild(-1),t.confirmButtonLoading=!0,t.confirmButtonText="\u5904\u7406\u4E2D...";const r=await this.saveApi(this.newNodeBuilder(t.inputValue,{id:-1}));this.newChild[this.treeProps.label]=t.inputValue,this.newChild.edit=!1,Z(this.newChild,r.data),this.$refs.tree.root.insertChild({data:this.newChild},void 0,!0),await this.locateView(),i()}catch{t.confirmButtonText="\u786E\u5B9A"}t.confirmButtonLoading=!1}else i()}})).catch(e=>e)},appendChildNode(e){this.text="";const t=e.expanded;e.expand(async()=>{!this.contextMenu||this.contextMenuIcon||this.contextMenuInline?(this.clear(),this.createNewChild(e.data.id),this.$refs.tree.append(this.newChild,e),await this.scrollIntoView(t)):await this.$prompt(`\u8BF7\u8F93\u5165${this.label}\u540D\uFF1A`,b(h({},this.defaultOptions),{beforeClose:async(i,r,n)=>{if(i==="confirm"){try{this.createNewChild(e.data.id),r.confirmButtonLoading=!0,r.confirmButtonText="\u5904\u7406\u4E2D...";const s=await this.saveApi(this.newNodeBuilder(r.inputValue,e.data));this.newChild[this.treeProps.label]=r.inputValue,this.newChild.edit=!1,Z(this.newChild,s.data),this.$refs.tree.append(this.newChild,e),await this.locateView(),n()}catch{r.confirmButtonText="\u786E\u5B9A"}r.confirmButtonLoading=!1}else n()}})).catch(i=>i)})},appendChildNodeWithData(e,t,i){this.text="";const r=e.expanded;e.expand(async()=>{this.clear(),this.newChild={id:-1,parentId:t,[this.treeProps.label]:i,edit:!1,isTempNode:!0,hasChildren:!1},this.$refs.tree.append(this.newChild,e),await this.scrollIntoView(r)})},appendPeerNode(e){e.parent&&e.parent.level!==0?this.appendChildNode(e.parent):this.appendRootNode()},async addRootNode(e){this.$refs.tree.remove(e),await this.$nextTick(),this.$refs.tree.root.insertChild({data:e},void 0,!0)},async addChildNode(e){this.curNode&&this.curNode.level!==0?this.curNode.expand(async()=>{this.$refs.tree.remove(e),await this.$nextTick(),this.$refs.tree.append(e,this.curNode)}):await this.addRootNode(e)},async addPeerNode(e){this.curNode&&this.curNode.parent&&this.curNode.parent.level!==0?this.curNode.parent.expand(async()=>{this.$refs.tree.remove(e),await this.$nextTick(),this.$refs.tree.append(e,this.curNode.parent)}):await this.addRootNode(e)},updateNode(e){const t=this.$refs.tree.getNode(e);t&&(t.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)},async removeNodeModal(e){await this.$confirm(`\u4F60\u786E\u5B9A\u8981\u5220\u9664${this.label}[<span class="break-word" style="color: orange">${e.data[this.treeProps.label]}</span>]\u5417\uFF1F`,"\u7CFB\u7EDF\u63D0\u793A",{type:"warning",modal:!0,dangerouslyUseHTMLString:!0,iconClass:"el-icon-question",closeOnClickModal:!1,confirmButtonClass:"el-button--danger",cancelButtonClass:"el-button--primary is-plain",beforeClose:async(t,i,r)=>{if(t==="confirm"){try{i.confirmButtonLoading=!0,i.confirmButtonText="\u5220\u9664...";const n=e.parent,s=await this.deleteApi(e.data.id);s.code===0?(this.$message.success("\u5220\u9664\u6210\u529F!"),this.$refs.tree.remove(e),this.$emit("node-deleted",n,e.data),r()):this.$message.error(s.message)}catch{}i.confirmButtonText="\u786E\u5B9A",i.confirmButtonLoading=!1}else r()}}).catch(t=>t)},async removeNode(e){try{const t=e.parent;if(this.deleteApi){const i=await this.deleteApi(e.data.id);i.code===0?(this.$message.success("\u5220\u9664\u6210\u529F!"),this.$refs.tree.remove(e),this.$emit("node-deleted",t,e.data)):this.$message.error(i.message)}else this.$refs.tree.remove(e)}catch{}},async onConfirm(e,t){if(t[this.treeProps.label]===this.text||!l.isNotEmpty(this.text)){this.clear();return}l.isUndefined(t.loading)?this.$set(t,"loading",!0):t.loading=!0;try{if(this.loading=!0,t.id===-1){const i=await this.saveApi(this.newNodeBuilder(this.text,e.parent.data||{id:-1})),r=l.fastClone(t);Z(t,b(h({},i.data),{isTempNode:!1})),this.$emit("node-added",t,r,e),this.registerNode(e)}else await this.updateApi(b(h({},t),{[this.treeProps.label]:this.text}));t[this.treeProps.label]=this.text,t.edit=!1,this.$emit("node-updated",t,e),this.text=""}catch{}t.loading=!1,this.loading=!1},onCancel(e,t){t.id===-1?this.$refs.tree.remove(e):t.edit=!1,this.text=""},nodeClick(e,t,i){this.hideContextMenu(),(l.isUndefined(e.loading)||!e.loading)&&(this.curNode=t,this.curData=e,this.$emit("on-node-click",e,t,i))},getCurrentNode(){return this.$refs.tree.getCurrentNode()},async locateView(){await this.$nextTick();const e=this.$el.querySelector(`[data-id="${this.newChild.id}"]`);e&&e.scrollIntoView()},async scrollIntoView(e){var t,i;await this.$nextTick(),e||await l.delay(300),(i=(t=this.$refs)==null?void 0:t.labelTxt)==null||i.focus()},inputKeyup(e,t,i){e.keyCode===13&&this.onConfirm(t,i),e.keyCode===27&&this.clear()},inputBlur(e,t,i){this.confirmButton||this.onConfirm(t,i)},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 l.findTreeChildren(this.$refs.tree.root.childNodes,t=>t.data===e||t.data.id===e,"childNodes")},registerNode(e){e.store.registerNode(e),delete e.store.nodesMap[-1]},async reloadTree(){this.lazy?this.treeKey=Date.now():await this.tryFetch()}}},ut={};var dr=p(cr,or,ur,!1,hr,null,null,null);function hr(e){for(let t in ut)this[t]=ut[t]}var ee=function(){return dr.exports}(),pr=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"error-view",style:{fontSize:e.fontSize,height:e.height}},[e._t("default",function(){return[i("div",{staticClass:"flex-column horizon-center"},[i("i",{staticClass:"fa fa-frown-o",style:{fontSize:e.iconSize}}),i("p",[e._v(e._s(e.errorTips))])])]})],2)},fr=[],Bo="";const mr={name:"ErrorView",props:{errorTips:{type:String,default:"\u52A0\u8F7D\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"},fontSize:{type:String,default:"20px"},iconSize:{type:String,default:"20px"},height:{type:String,default:"100%"}}},ct={};var _r=p(mr,pr,fr,!1,gr,null,null,null);function gr(e){for(let t in ct)this[t]=ct[t]}var te=function(){return _r.exports}(),yr=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("ElSteps",{staticClass:"guide-steps",attrs:{"align-center":""}},e._l(e.steps,function(r,n){return i("ElStep",{key:r.label,class:[{"current important":e.value===n,disabled:!e.available(n),available:!e.ready[n]&&e.available(n)}],attrs:{status:e.ready[n]?"success":"",title:r.label},nativeOn:{click:function(s){return e.activeStep(n)}}})}),1)},vr=[],Fo="";const br={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,t){e<this.ready.length&&this.$set(this.ready,e,t)},available(e){let t=!0;if(e>0&&e<this.ready.length){for(let i=0;i<e;i++)if(!this.ready[i]){t=!1;break}}return t}}},dt={};var xr=p(br,yr,vr,!1,$r,null,null,null);function $r(e){for(let t in dt)this[t]=dt[t]}var ie=function(){return xr.exports}(),ht={props:{suffixIcon:{type:String,default:void 0},prefixIcon:{type:String,default:void 0},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],default:void 0},disabled:Boolean,size:{type:String,default:void 0},controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:""},name:{type:String,default:void 0},label:{type:String,default:void 0},placeholder:{type:String,default:void 0},precision:{type:Number,default:void 0,validator(e){return e>=0&&e===parseInt(e,10)}}}},wr=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("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(r){r.preventDefault()}}},[e.controls?i("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(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.decrease.apply(null,arguments)}}},[i("i",{class:`el-icon-${e.controlsAtRight?"arrow-down":"minus"}`})]):e._e(),e.controls?i("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(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.increase.apply(null,arguments)}}},[i("i",{class:`el-icon-${e.controlsAtRight?"arrow-up":"plus"}`})]):e._e(),i("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(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"up",38,r.key,["Up","ArrowUp"])?null:(r.preventDefault(),e.increase.apply(null,arguments))},function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"down",40,r.key,["Down","ArrowDown"])?null:(r.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)},Sr=[],To="";const Cr={name:"InputNumber",directives:{repeatClick:$i.default},mixins:[xi.default("input"),ht],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:t,getPrecision:i,precision:r}=this,n=i(t);return r!==void 0?(n>r&&console.warn("[Element Warn][InputNumber]precision should not be less than the decimal places of step"),r):Math.max(i(e),n)},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 t=this.getPrecision(this.step),i=Math.pow(10,t);e=Math.round(e/this.step)*i*this.step/i}this.precision!==void 0&&(e=e.toFixed(this.precision))}return e}},watch:{value:{immediate:!0,handler(e){let t=e===void 0?e:Number(e);if(t!==void 0){if(isNaN(t))return;if(this.stepStrictly){const i=this.getPrecision(this.step),r=Math.pow(10,i);t=Math.round(t/this.step)*r*this.step/r}this.precision!==void 0&&(t=this.toPrecision(t,this.precision))}t>=this.max&&(t=this.max),t<=this.min&&(t=this.min),this.currentValue=t,this.userInput=null,this.$emit("input",t)}}},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,t){return t===void 0&&(t=this.numPrecision),parseFloat(Math.round(e*Math.pow(10,t))/Math.pow(10,t))},getPrecision(e){if(e===void 0)return 0;const t=e.toString(),i=t.indexOf(".");let r=0;return i!==-1&&(r=t.length-i-1),r},_increase(e,t){if(typeof e!="number"&&e!==void 0)return this.currentValue;const i=Math.pow(10,this.numPrecision);return this.toPrecision((i*e+i*t)/i)},_decrease(e,t){if(typeof e!="number"&&e!==void 0)return this.currentValue;const i=Math.pow(10,this.numPrecision);return this.toPrecision((i*e-i*t)/i)},increase(){if(this.inputNumberDisabled||this.maxDisabled)return;const e=this.value||0,t=this._increase(e,this.step);this.setCurrentValue(t)},decrease(){if(this.inputNumberDisabled||this.minDisabled)return;const e=this.value||0,t=this._decrease(e,this.step);this.setCurrentValue(t)},handleBlur(e){this.$emit("blur",e)},handleFocus(e){this.$emit("focus",e)},setCurrentValue(e){const t=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),t!==e&&(this.userInput=null,this.$emit("input",e),this.$emit("change",e,t),this.currentValue=e)},handleInput(e){this.userInput=e},handleInputChange(e){const t=e===""?void 0:Number(e);(!isNaN(t)||e==="")&&this.setCurrentValue(t),this.userInput=null},select(){this.$refs.input.select()}}},pt={};var kr=p(Cr,wr,Sr,!1,Br,null,null,null);function Br(e){for(let t in pt)this[t]=pt[t]}var re=function(){return kr.exports}(),Fr=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"loading-view",style:{fontSize:e.fontSize,height:e.height}},[e._t("default",function(){return[i("div",{staticClass:"flex-column horizon-center"},[i("i",{staticClass:"el-icon-loading",style:{fontSize:e.iconSize}}),i("p",[e._v(e._s(e.loadingTips))])])]})],2)},Tr=[],Po="";const Pr={name:"LoadingView",props:{loadingTips:{type:String,default:"\u52A0\u8F7D\u4E2D..."},fontSize:{type:String,default:"20px"},iconSize:{type:String,default:"20px"},height:{type:String,default:"100%"}}},ft={};var Ir=p(Pr,Fr,Tr,!1,Er,null,null,null);function Er(e){for(let t in ft)this[t]=ft[t]}var ne=function(){return Ir.exports}(),Nr=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{class:["pageable-table",{"auto-height":e.autoHeight}]},[i("div",{staticClass:"pageable-table-wrapper"},[e._t("toolbar"),i("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?[i("span",{staticClass:"pageable-table-loading"},[i("i",{staticClass:"table-status-icon el-icon-loading"}),e._v(" \u52A0\u8F7D\u4E2D...")])]:e.tableStatus===e.TABLE_STATUS.error?[i("ElButton",{staticClass:"pageable-table-error",attrs:{icon:"table-status-icon fa fa-frown-o"},on:{click:e.refresh}},[e._v(" \u52A0\u8F7D\u5931\u8D25\uFF0C\u70B9\u51FB\u91CD\u8BD5\uFF01 ")])]:[e._v(" \u6682\u65E0\u6570\u636E ")]]})]},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?i("TableColumn",{key:"multiple",attrs:{type:"selection",width:"45",align:"center"}}):e._e(),!e.multiple&&e.selection?i("TableColumn",{key:"single",attrs:{type:"single-selection","class-name":"single-select-column",width:"45",align:"center"},scopedSlots:e._u([{key:"header",fn:function(){return[i("ElRadio",{attrs:{value:!!e.currentRow,label:!0}},[i("span")])]},proxy:!0},{key:"default",fn:function(r){var n=r.row;return[i("ElRadio",{attrs:{label:!0,value:e.currentRow&&e.currentRow[e.$attrs["row-key"]||"id"]===n[e.$attrs["row-key"]||"id"]}},[i("span")])]}}],null,!1,307797321)}):e._e(),e.index?i("TableColumn",{key:"order",attrs:{type:"index",label:"\u5E8F\u53F7",width:e.indexWidth,align:"center"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.$index;return[e._v(" "+e._s((e.page.page-1)*e.page.limit+n+1||n+1)+" ")]}}],null,!1,4238275121)}):e._e(),e._t("default",function(){return[e.columns&&e.columns.length?e._l(e.headers,function(r,n){return i("TableColumn",e._b({key:`${r.prop}-${n}`},"TableColumn",r,!1))}):i("TableColumn",{attrs:{label:"\u70B9\u51FB\u8868\u683C\u884C\u590D\u5236\u6A21\u677F"},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.row;return[i("pre",{staticClass:"pointer"},[e._v(e._s(JSON.stringify(n,null," ")))])]}}])})]})],2),i("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(r){e.page.page=r}}})],2)])},Rr=[],Io="";const L={loading:1,error:-1,empty:2,success:0},Or={name:"PageableTable",bus:{reloadTableView(e){e===this.viewId&&this.getPage()}},inheritAttrs:!1,props:{viewId:{type:String,default:void 0},url:{type:String,default:void 0},httpGet:Boolean,hideOnSinglePage:Boolean,api:{type:Function,default:void 0},filters:{type:Object,default:void 0},filter:{type:Object,default:void 0},rules:{type:Array,default:()=>[]},model:{type:Object,default:void 0},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,default:void 0},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 t={};this.model&&(t=l.cloneDeep(this.model));const i=this.pageSize;return{TABLE_STATUS:Object.freeze(L),tableStatus:L.empty,records:[],currentRow:null,page:{total:0,page:1,limit:i,ascs:this.ascs,descs:this.descs,model:t,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?httpGet: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 l.merge({},this.$attrs,{height:this.autoHeight?null:"auto"})},headers(){var e;return((e=this.columns)==null?void 0:e.map(W))||[]}},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 i;const t=this.$refs.table.$children.find(r=>{var n;return((n=r.$options)==null?void 0:n.name)==="ElTableBody"});t&&((i=t.$refs.tooltip)==null||i.hide()),this.$emit("row-dblclick",...e)},async updateTableScrollPosition(){this.$refs.table.bodyWrapper&&this.scrollTo(this.tableScrollTop,this.tableScrollLeft)},filterTableProperties:at,filterTableEvents:lt,filterTableColumnProperties:W,onTableScroll(){this.tableScrollTop=this.$refs.table.bodyWrapper.scrollTop,this.tableScrollLeft=this.$refs.table.bodyWrapper.scrollLeft},onSortChange({prop:e,order:t}){this.page.ascs=t==="ascending"?e:"",this.page.descs=t==="descending"?e:""},onCurrentChange(e){this.currentRow=e},addRule(e){this.removeRule(e.field),this.page.filters.rules.push(e)},addRules(e){e.forEach(t=>this.addRule(t))},setModelField(e,t){this.$set(this.page.model,e,t)},setModel(e){this.page.page=1,this.page.model=l.cloneDeep(e)},deleteModelField(e){delete this.page.model[e]},removeRule(e){const t=this.page.filters.rules,i=t.findIndex(r=>r.field===e);i>-1&&t.splice(i,1)},addFilter({field:e,op:t,value:i}){this.page.filters=Object.assign({},this.page.filters,{rules:[{field:e,op:t,value:i}],op:"and"})},clearFilters(){this.page.filters={}},clearSelection(){this.$refs.table.clearSelection()},search(){this.setModel(this.model),this.getPage()},async getPage(){var c;if(l.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 u=this.page,{filters:t,total:i}=u,r=Ze(u,["filters","total"]),n=h({},r);if((c=t==null?void 0:t.rules)!=null&&c.length&&(n.filters={rules:t.rules}),this.api||this.url){this.tableStatus=L.loading;try{this.api&&(e=await this.api(n)),this.url&&(e=await this.method(this.url,n))}catch(f){this.tableStatus=L.error,console.error(f);return}}else{this.$notify.warning({title:"\u5F00\u53D1\u63D0\u793A\uFF01",message:"PageableTable \u8BF7\u63D0\u4F9B url(String) \u6216 api(Function) \u5C5E\u6027"});return}const{data:s}=e||{},{total:a,records:d}=s||{};this.page.total=Number(a),this.records=d,!d||!d.length?this.tableStatus=L.empty:this.tableStatus=L.success,this.$refs.table.doLayout(),this.$emit("page-loaded",s)},async refresh(){await this.getPage()},async reload(){this.page=b(h({},this.$options.data.call(this).page),{total:this.page.total})},scrollTo(e,t){e&&(this.$refs.table.bodyWrapper.scrollTop=e),t&&(this.$refs.table.bodyWrapper.scrollLeft=t)}}},mt={};var Mr=p(Or,Nr,Rr,!1,Lr,null,null,null);function Lr(e){for(let t in mt)this[t]=mt[t]}var se=function(){return Mr.exports}(),zr=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"work",staticStyle:{height:"100%","background-color":"#fff"}},[i("div",{staticClass:"flex-column list-content",staticStyle:{height:"100%"}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"flex-item-relative",attrs:{"element-loading-text":"\u52A0\u8F7D\u4E2D...","element-loading-background":"#fff"}},[i("div",{ref:"scroller",staticClass:"scroll-wrapper"},[i("div",{staticClass:"cards-block"},[e._t("prepend"),e._l(e.records,function(r){return[e._t("default",null,{item:r})]}),e._t("append")],2)])]),i("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(r){e.page.page=r}}})],1)])},Ar=[],Eo="";function Dr(e){let t="";for(const i in e)t+=`<ElTableColumn prop="${i}" label="${i}"/>
|
|
2
|
+
`;return t}const z={loading:1,error:-1,empty:2,success:0},jr={name:"PageableView",bus:{reloadTableView(e){e===this.viewId&&this.getPage()}},inheritAttrs:!1,props:{viewId:{type:String,default:void 0},url:{type:String,default:void 0},httpGet:Boolean,hideOnSinglePage:Boolean,api:{type:Function,default:void 0},filters:{type:Object,default:void 0},filter:{type:Object,default:void 0},rules:{type:Array,default:()=>[]},model:{type:Object,default:void 0},ascs:{type:String,default:""},descs:{type:String,default:""},autoHeight:Boolean,immediate:{type:Boolean,default:!0},reloadOnModelChange:{type:Boolean,default:!1},columns:{type:Array,default:void 0},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 t={};this.model&&(t=l.cloneDeep(this.model));const i=this.pageSize;return{tableStatus:z.empty,records:[],loading:!1,currentRow:null,page:{total:0,page:1,limit:i,ascs:this.ascs,descs:this.descs,model:t,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?httpGet: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 l.merge({},this.$attrs,{height:this.autoHeight?null:"auto"})},headers(){var e;return((e=this.columns)==null?void 0:e.map(W))||[]}},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:{async updateTableScrollPosition(){this.$refs.scroller&&this.scrollTo(this.tableScrollTop,this.tableScrollLeft)},filterTableProperties:at,filterTableEvents:lt,filterTableColumnProperties:W,onTableScroll(){this.tableScrollTop=this.$refs.scroller.scrollTop,this.tableScrollLeft=this.$refs.scroller.scrollLeft},copy:e=>copyData(Dr(e)),onSortChange({prop:e,order:t}){this.page.ascs=t==="ascending"?e:"",this.page.descs=t==="descending"?e:""},onCurrentChange(e){this.currentRow=e},addRule(e){this.removeRule(e.field),this.page.filters.rules.push(e)},addRules(e){e.forEach(t=>this.addRule(t))},setModelField(e,t){this.$set(this.page.model,e,t)},setModel(e){this.page.page=1,this.page.model=l.cloneDeep(e)},deleteModelField(e){delete this.page.model[e]},removeRule(e){const t=this.page.filters.rules,i=t.findIndex(r=>r.field===e);i>-1&&t.splice(i,1)},addFilter({field:e,op:t,value:i}){this.page.filters=Object.assign({},this.page.filters,{rules:[{field:e,op:t,value:i}],op:"and"})},clearFilters(){this.page.filters={}},clearSelection(){this.$refs.table.clearSelection()},search(){this.setModel(this.model),this.getPage()},async getPage(){var u;if(l.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 d=this.page,{filters:t}=d,i=Ze(d,["filters"]),r=h({},i);if((u=t==null?void 0:t.rules)!=null&&u.length&&(r.filters={rules:t.rules}),this.api||this.url){this.tableStatus=z.loading;try{this.loading=!0,this.api&&(e=await this.api(r)),this.url&&(e=await this.method(this.url,r)),this.loading=!1}catch(c){this.tableStatus=z.error,console.error(c),this.loading=!1;return}}else{this.$notify.warning({title:"\u5F00\u53D1\u63D0\u793A\uFF01",message:"PageableTable \u8BF7\u63D0\u4F9B url(String) \u6216 api(Function) \u5C5E\u6027"});return}const{data:n}=e||{},{total:s,records:a}=n||{};this.page.total=Number(s),this.records=a,!a||!a.length?this.tableStatus=z.empty:this.tableStatus=z.success,this.$refs.table&&(this.$refs.scroller.scrollTop=0),this.$emit("page-loaded",n)},async refresh(){await this.getPage()},async reload(){this.page=b(h({},this.$options.data.call(this).page),{total:this.page.total})},scrollTo(e,t){e&&(this.$refs.scroller.scrollTop=e),t&&(this.$refs.scroller.scrollLeft=t)}}},_t={};var Kr=p(jr,zr,Ar,!1,Wr,null,null,null);function Wr(e){for(let t in _t)this[t]=_t[t]}var ae=function(){return Kr.exports}(),qr=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"resize-observer",attrs:{tabindex:"-1"}})},Hr=[],No="";let q;function le(){le.init||(le.init=!0,q=Qi()!==-1)}const Vr={name:"ResizeObserver",mounted(){le(),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",q&&this.$el.appendChild(e),e.data="about:blank",q||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&&(!q&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},gt={};var Gr=p(Vr,qr,Hr,!1,Xr,null,null,null);function Xr(e){for(let t in gt)this[t]=gt[t]}var oe=function(){return Gr.exports}(),Ur=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"sign-panel flex-column"},[i("div",{directives:[{name:"show",rawName:"v-show",value:!e.disabled&&e.edit,expression:"!disabled && edit"}],staticClass:"sign-edit"},[i("div",{staticClass:"sign-draw-area",style:{width:`${e.width+2}px`,height:`${e.height+2}px`}},[i("div",{staticClass:"sign-watermark",style:{fontSize:`${e.fontSize}px`}},[e._v(" "+e._s(e.text)+" ")]),i("canvas",{ref:"canvas",staticClass:"sign-canvas",attrs:{width:e.width,height:e.height},on:{touchstart:function(r){return r.stopPropagation(),e.touchstart.apply(null,arguments)},touchmove:function(r){return r.stopPropagation(),e.touchmove.apply(null,arguments)},mousedown:function(r){return r.stopPropagation(),e.down.apply(null,arguments)},touchend:function(r){return r.stopPropagation(),e.touchend.apply(null,arguments)},mouseup:function(r){return r.stopPropagation(),e.up.apply(null,arguments)}}},[e._v("\u5F53\u524D\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u624B\u5199\u7B7E\u540D ")])]),i("div",{staticClass:"sign-tool-bar"},[i("div",{staticClass:"sign-button flex-item",staticStyle:{color:"red"},on:{click:e.clear}},[i("i",{staticClass:"fa fa-trash"}),e._v(" \u6E05\u9664 ")]),i("div",{staticClass:"sign-button flex-item",staticStyle:{color:"red"},on:{click:e.cancel}},[i("i",{staticClass:"fa fa-close"}),e._v(" \u53D6\u6D88 ")]),i("div",{staticClass:"sign-button flex-item",staticStyle:{color:"orange"},on:{click:e.rollback}},[i("i",{staticClass:"fa fa-repeat"}),e._v(" \u64A4\u9500 ")]),i("div",{staticClass:"sign-button flex-item",staticStyle:{color:"green"},on:{click:e.save}},[i("i",{staticClass:"fa fa-check"}),e._v(" \u786E\u5B9A ")])])]),i("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?i("img",{staticClass:"sign-image",attrs:{src:e.value,alt:"\u7B7E\u540D"}}):e._e(),e.value?e._e():i("p",{staticClass:"sign-tips",style:{color:!e.value&&e.disabled?"red":""}},[e._v(" "+e._s(e.disabled?"\u672A\u7B7E\u540D":"\u70B9\u51FB\u8FDB\u884C\u7B7E\u540D")+" ")]),e.disabled?e._e():i("i",{staticClass:"el-icon-edit-outline sign-edit-icon"})])])},Jr=[],Ro="";const Yr={name:"SignPanel",props:{width:{type:Number,default:400},height:{type:Number,default:150},lineWidth:{type:Number,default:1},text:{type:String,default:"\u7B7E\u540D\u533A"},fontSize:{type:Number,default:20},value:{type:String,default:void 0},disabled:Boolean},data(){return{edit:!1}},mounted(){this.init()},methods:{init(){if(this.stack=[],this.canvas=this.$refs.canvas,!this.canvas.getContext){alert("\u5F53\u524D\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u624B\u5199\u7B7E\u540D");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 \u9ED1\u4F53`,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,t){this.ctx.beginPath(),e-=this.start,t-=this.end,this.ctx.moveTo(e,t)},moveLine(e,t,i){i&&i.preventDefault(),e-=this.start,t-=this.end,this.ctx.lineTo(e,t),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)}}},yt={};var Qr=p(Yr,Ur,Jr,!1,Zr,null,null,null);function Zr(e){for(let t in yt)this[t]=yt[t]}var ue=function(){return Qr.exports}(),Oo="";const en={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,default:void 0,validator:e=>["doing","overdue","error","done","closed"].indexOf(e)>-1},status:{type:[String,Number],default:void 0},size:{type:String,default:void 0}},render(e,{props:t,data:i,children:r}){const{draft:n,doing:s,overdue:a,error:d,done:u,closed:c,status:f,tag:m,size:v,type:w}=t,B={draft:Array.isArray(n)?n.includes(f):n,doing:Array.isArray(s)?s.includes(f):s,overdue:Array.isArray(a)?a.includes(f):a,error:Array.isArray(d)?d.includes(f):d,done:Array.isArray(u)?u.includes(f):u,closed:Array.isArray(c)?c.includes(f):c};return e(m,i,[e("span",{style:{width:v,height:v},class:["stateful",w,B]}),r])}};let tn,rn;const vt={};var nn=p(en,tn,rn,!1,sn,null,null,null);function sn(e){for(let t in vt)this[t]=vt[t]}var ce=function(){return nn.exports}(),an=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"egd-swiper"},[i("ElButton",{staticClass:"el-carousel__arrow el-carousel__arrow--left",attrs:{disabled:e.reachedLeft,icon:"el-icon-arrow-left"},on:{click:e.clickLeft}}),i("div",{ref:"swiperBox",staticClass:"egd-swiper-box",on:{wheel:function(r){return r.stopPropagation(),r.preventDefault(),e.onMouseWheel.apply(null,arguments)}}},[i("div",{ref:"swiperContent",staticClass:"egd-swiper-content",style:e.swiperContentStyle},[e._t("default")],2)]),i("ElButton",{staticClass:"el-carousel__arrow el-carousel__arrow--right",attrs:{disabled:e.reachedRight,icon:"el-icon-arrow-right"},on:{click:e.clickRight}}),i("ResizeObserver",{on:{notify:e.resize}})],1)},ln=[],Mo="";const on={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)"}}},async mounted(){await this.layout()},updated(){this.computeContentWidth()},methods:{async layout(){await this.$nextTick(),this.computeContentWidth(),this.resize()},resize(){console.log(1),this.swiperBoxWith=this.$refs.swiperBox.offsetWidth},computeContentWidth(){let e=0;const t=[],{children:i}=this.$refs.swiperContent;Array.prototype.forEach.call(i,r=>{const n=l.getEleWidth(r);e+=n,t.push(n)}),this.childrenWidth=t,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,t=e;if(e<0){t=0,e=-e;for(let i=0,r=this.childrenWidth.length;i<r&&(t+=this.childrenWidth[i],!(t>=e));i++);t=-t}this.setTranslateX(t)},clickRight(){this.updateDuration(!0);const e=Math.abs(this.translateX-this.swiperBoxWith);let t=0;for(let i=0,r=this.childrenWidth.length;i<r;i++)if(t+=this.childrenWidth[i],t>=e){t>e&&(t-=this.childrenWidth[i]);break}this.setTranslateX(-t)},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 t=e.clientX-this.startX;if(t<0){const i=this.translateX+t;this.setTranslateX(i)}if(t>0){const i=this.translateX+t;this.setTranslateX(i)}window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp)},onMouseMove(e){this.mouseDown&&requestAnimationFrame(()=>{const t=e.clientX-this.startX,i=this.translateXRaw+t;this.setTranslateX(i)})},transitionend(){this.updateDuration(!1),this.$refs.swiperContent.removeEventListener("transitionend",this.transitionend),this.$refs.swiperContent.removeEventListener("webkitTransitionEnd",this.transitionend)}}},bt={};var un=p(on,an,ln,!1,cn,null,null,null);function cn(e){for(let t in bt)this[t]=bt[t]}var de=function(){return un.exports}();const dn={name:"TableColumn",functional:!0,mixins:[{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(t=>["ascending","descending",null].indexOf(t)>-1)}}}}],render(e,{data:t,props:i,children:r}){return e("ElTableColumn",b(h({},t),{props:b(h({},i),{showOverflowTooltip:["selection","single-selection","index","expand"].includes(i.type)?!1:i.showOverflowTooltip})}),r)}};let hn,pn;const xt={};var fn=p(dn,hn,pn,!1,mn,null,null,null);function mn(e){for(let t in xt)this[t]=xt[t]}var he=function(){return fn.exports}(),_n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"tags-input-root"},[i("div",{class:`${e.wrapperClass} tags-input`},[e._l(e.tags,function(r,n){return i("span",{key:n,staticClass:"el-tag el-tag--medium el-tag--light"},[i("span",{domProps:{innerHTML:e._s(r.value)}}),i("i",{staticClass:"tags-input-remove ov",attrs:{href:"#"},on:{click:function(s){return s.preventDefault(),e.removeTag(n)}}})])}),i("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(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:(r.preventDefault(),e.tagFromInput(!1))},function(r){return!r.type.indexOf("key")&&r.keyCode!==8?null:e.removeLastTag.apply(null,arguments)},function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"down",40,r.key,["Down","ArrowDown"])?null:e.nextSearchResult.apply(null,arguments)},function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"up",38,r.key,["Up","ArrowUp"])?null:e.prevSearchResult.apply(null,arguments)},e.onKeyDown],keyup:[e.onKeyUp,function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"esc",27,r.key,["Esc","Escape"])?null:e.clearSearchResults.apply(null,arguments)}],focus:e.onFocus,blur:e.onBlur,value:e.tags,input:function(r){r.target.composing||(e.input=r.target.value)}}}),e.elementId?i("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(r){r.target.composing||(e.hiddenInput=r.target.value)}}}):e._e()],2),i("div",{directives:[{name:"show",rawName:"v-show",value:e.searchResults.length,expression:"searchResults.length"}]},[e.typeaheadStyle==="badges"?i("p",{class:`typeahead-${e.typeaheadStyle}`},[e.typeaheadHideDiscard?e._e():i("span",{staticClass:"tags-input-badge typeahead-hide-btn tags-input-typeahead-item-default",domProps:{textContent:e._s(e.discardSearchText)},on:{click:function(r){return r.preventDefault(),e.clearSearchResults.apply(null,arguments)}}}),e._l(e.searchResults,function(r,n){return i("span",{key:n,staticClass:"tags-input-badge",class:{"tags-input-typeahead-item-default":n!=e.searchSelection,"tags-input-typeahead-item-highlighted-default":n==e.searchSelection},domProps:{innerHTML:e._s(r.value)},on:{mouseover:function(s){e.searchSelection=n},mousedown:function(s){return s.preventDefault(),e.tagFromSearchOnClick(r)}}})})],2):e.typeaheadStyle==="dropdown"?i("ul",{class:`typeahead-${e.typeaheadStyle}`},[e.typeaheadHideDiscard?e._e():i("li",{staticClass:"tags-input-typeahead-item-default typeahead-hide-btn",domProps:{textContent:e._s(e.discardSearchText)},on:{mousedown:function(r){return r.preventDefault(),e.clearSearchResults.apply(null,arguments)}}}),e._l(e.searchResults,function(r,n){return i("li",{key:n,class:{"tags-input-typeahead-item-default":n!=e.searchSelection,"tags-input-typeahead-item-highlighted-default":n==e.searchSelection},domProps:{innerHTML:e._s(r.value)},on:{mouseover:function(s){e.searchSelection=n},mousedown:function(s){return s.preventDefault(),e.tagFromSearchOnClick(r)}}})})],2):e._e()])])},gn=[],zo="";const yn={name:"VueTagsInput",props:{elementId:{type:String,default:void 0},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:"\u8BF7\u8F93\u5165..."},discardSearchText:{type:String,default:"\u53D6\u6D88"},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,t){this.$emit("input-changed",e),this.searchTag(!1),e.length&&e!==t&&(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 t=this.input.trim();if(!this.onlyExistingTags&&t.length&&this.validate(t)){this.input="";let i={key:"",value:t};const r=this.escapeRegExp(this.caseSensitiveTags?i.value:i.value.toLowerCase());for(const n of this.existingTags){const s=this.caseSensitiveTags?n.value:n.value.toLowerCase();if(r===s){i=Object.assign({},n);break}}this.addTag(i)}}},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 t=this.tags[e];if(!this.beforeRemovingTag(t))return!1;this.tags.splice(e,1),this.$nextTick(()=>{this.$emit("tag-removed",t),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 t=this.escapeRegExp(this.caseSensitiveTags?e:e.toLowerCase());for(const i of this.existingTags)(this.caseSensitiveTags?i.value:i.value.toLowerCase()).search(t)>-1&&!this.tagSelected(i)&&this.searchResults.push(i);this.sortSearchResults&&this.searchResults.sort((i,r)=>i.value<r.value?-1:i.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 e=this.value;if(this.tags===e)return;this.clearTags();for(const t of e)this.addTag(t)}else{if(this.tags.length===0)return;this.clearTags()}},tagSelected(e){if(this.allowDuplicates||!e)return!1;const t=this.escapeRegExp(this.caseSensitiveTags?e.value:e.value.toLowerCase());for(const i of this.tags){const r=this.caseSensitiveTags?i.value:i.value.toLowerCase();if(i.key===e.key&&r.search(t)>-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()}}},$t={};var vn=p(yn,_n,gn,!1,bn,null,null,null);function bn(e){for(let t in $t)this[t]=$t[t]}var pe=function(){return vn.exports}(),Ao="";const xn={name:"Watermark",functional:!0,props:{text:{type:String,default:""}},render(e,{props:t}){const i=t.text,r=document.createElement("canvas"),n=r.getContext("2d");return n.rotate(-30*Math.PI/180),n.font="15px Verdana",n.fillStyle="rgba(0,0,0,0.15)",n.textAlign="left",n.textBaseline="middle",n.fillText(i,0,r.height),e("div",{class:"watermark",style:{background:`url(${r.toDataURL("image/png")}) left top repeat`}})}};let $n,wn;const wt={};var Sn=p(xn,$n,wn,!1,Cn,null,null,null);function Cn(e){for(let t in wt)this[t]=wt[t]}var fe=function(){return Sn.exports}();const kn={name:"AwesomeButton",mixins:[{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}}],props:{text:{type:String,default:""}},data(){return{isLoading:!1}},methods:{async onClick(e){this.isLoading=!0;const{click:t}=this.$listeners;if(l.isFunction(t))try{await t(e)}catch(i){l.error.call(this,i)}this.isLoading=!1}},render(e){var i,r;const t=(r=(i=this.$scopedSlots).default)==null?void 0:r.call(i);return e("ElButton",{on:{click:this.onClick},props:b(h({},this.$props),{disabled:this.isLoading})},t&&(t[0].tag||t[0].text)?t:this.text)}};let Bn,Fn;const St={};var Tn=p(kn,Bn,Fn,!1,Pn,null,null,null);function Pn(e){for(let t in St)this[t]=St[t]}var me=function(){return Tn.exports}();const In={name:"FormButton",mixins:[K,{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"}}}]};let En,Nn;const Ct={};var Rn=p(In,En,Nn,!1,On,null,null,null);function On(e){for(let t in Ct)this[t]=Ct[t]}var _e=function(){return Rn.exports}(),Mn=function(){var e={},t=function(){var i={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(n,s,a,d,u,c,f){var m=c.length-1;switch(u){case 1:this.$=n.replace(/\\(\\|")/g,"$1").replace(/\\n/g,`
|
|
3
|
+
`).replace(/\\r/g,"\r").replace(/\\t/g," ").replace(/\\v/g,"\v").replace(/\\f/g,"\f").replace(/\\b/g,"\b");break;case 2:this.$=Number(n);break;case 3:this.$=null;break;case 4:this.$=!0;break;case 5:this.$=!1;break;case 6:return this.$=c[m-1];case 13:this.$={};break;case 14:this.$=c[m-1];break;case 15:this.$=[c[m-2],c[m]];break;case 16:this.$={},this.$[c[m][0]]=c[m][1];break;case 17:this.$=c[m-2],c[m-2][c[m][0]]=c[m][1];break;case 18:this.$=[];break;case 19:this.$=c[m-1];break;case 20:this.$=[c[m]];break;case 21:this.$=c[m-2],c[m-2].push(c[m])}},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(n,s){throw new Error(n)},parse:function(n){function s(I){u.length=u.length-2*I,c.length=c.length-I,f.length=f.length-I}function a(){var I;return I=d.lexer.lex()||1,typeof I!="number"&&(I=d.symbols_[I]||I),I}var d=this,u=[0],c=[null],f=[],m=this.table,v="",w=0,B=0,F=0,E=2,Qe=1;this.lexer.setInput(n),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,typeof this.lexer.yylloc=="undefined"&&(this.lexer.yylloc={});var S=this.lexer.yylloc;f.push(S),typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);for(var y,N,x,$,D,R={},O,P,H,V;;){if(x=u[u.length-1],this.defaultActions[x]?$=this.defaultActions[x]:(y==null&&(y=a()),$=m[x]&&m[x][y]),typeof $=="undefined"||!$.length||!$[0]){if(!F){V=[];for(O in m[x])this.terminals_[O]&&O>2&&V.push("'"+this.terminals_[O]+"'");var j="";this.lexer.showPosition?j="Parse error on line "+(w+1)+`:
|
|
4
|
+
`+this.lexer.showPosition()+`
|
|
5
|
+
Expecting `+V.join(", ")+", got '"+this.terminals_[y]+"'":j="Parse error on line "+(w+1)+": Unexpected "+(y==1?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(j,{text:this.lexer.match,token:this.terminals_[y]||y,line:this.lexer.yylineno,loc:S,expected:V})}if(F==3){if(y==Qe)throw new Error(j||"Parsing halted.");B=this.lexer.yyleng,v=this.lexer.yytext,w=this.lexer.yylineno,S=this.lexer.yylloc,y=a()}for(;!(E.toString()in m[x]);){if(x==0)throw new Error(j||"Parsing halted.");s(1),x=u[u.length-1]}N=y,y=E,x=u[u.length-1],$=m[x]&&m[x][E],F=3}if($[0]instanceof Array&&$.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+y);switch($[0]){case 1:u.push(y),c.push(this.lexer.yytext),f.push(this.lexer.yylloc),u.push($[1]),y=null,N?(y=N,N=null):(B=this.lexer.yyleng,v=this.lexer.yytext,w=this.lexer.yylineno,S=this.lexer.yylloc,F>0&&F--);break;case 2:if(P=this.productions_[$[1]][1],R.$=c[c.length-P],R._$={first_line:f[f.length-(P||1)].first_line,last_line:f[f.length-1].last_line,first_column:f[f.length-(P||1)].first_column,last_column:f[f.length-1].last_column},D=this.performAction.call(R,v,B,w,this.yy,$[1],c,f),typeof D!="undefined")return D;P&&(u=u.slice(0,-1*P*2),c=c.slice(0,-1*P),f=f.slice(0,-1*P)),u.push(this.productions_[$[1]][0]),c.push(R.$),f.push(R._$),H=m[u[u.length-2]][u[u.length-1]],u.push(H);break;case 3:return!0}}return!0}},r=function(){var n={EOF:1,parseError:function(s,a){if(!this.yy.parseError)throw new Error(s);this.yy.parseError(s,a)},setInput:function(s){return this._input=s,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 s=this._input[0];this.yytext+=s,this.yyleng++,this.match+=s,this.matched+=s;var a=s.match(/\n/);return a&&this.yylineno++,this._input=this._input.slice(1),s},unput:function(s){return this._input=s+this._input,this},more:function(){return this._more=!0,this},less:function(s){this._input=this.match.slice(s)+this._input},pastInput:function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var s=this.pastInput(),a=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
6
|
+
`+a+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,a,d,u,c;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),m=0;m<f.length&&(d=this._input.match(this.rules[f[m]]),!(d&&(!a||d[0].length>a[0].length)&&(a=d,u=m,!this.options.flex)));m++);if(a)return c=a[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+a[0].length},this.yytext+=a[0],this.match+=a[0],this.yyleng=this.yytext.length,this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],s=this.performAction.call(this,this.yy,this,f[u],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s||void 0;if(this._input==="")return this.EOF;this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
7
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var s=this.next();return typeof s!="undefined"?s:this.lex()},begin:function(s){this.conditionStack.push(s)},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(s){this.begin(s)}};return n.options={},n.performAction=function(s,a,d,u){switch(d){case 0:break;case 1:return 6;case 2:return a.yytext=a.yytext.substr(1,a.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"}},n.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)/,/^(?:$)/,/^(?:.)/],n.conditions={INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}},n}();return i.lexer=r,i}();return e.parser=t,e.parse=function(){return t.parse.apply(t,arguments)},e}(),Ln=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"code-mirror-editor"},[i("textarea",{ref:"editor"})])},zn=[],Ko="";window.jsonlint=Mn;const ge=e=>{if(e)try{return JSON.stringify(JSON.parse(e),null,1)}catch{}return e},An=e=>{if(e)try{return JSON.stringify(JSON.parse(e))}catch{}return e},Dn={name:"CodeMirrorEditor",inject:{elForm:{default:""},elFormItem:{default:""}},props:{value:{type:String,default:""}},watch:{value(e){var t;(t=this.editor)==null||t.setValue(ge(e))}},mounted(){this.editor=wi.default.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(ge(this.value)),this.editor.on("blur",this.change),this.editor.on("focus",this.focus),this.editor.setOption("extraKeys",{"Ctrl-Alt-L"(e){e.setValue(ge(e.getValue()),null,1)}})},beforeDestroy(){var e,t;(e=this.editor)==null||e.off("blur",this.change),(t=this.editor)==null||t.toTextArea()},methods:{focus(){var e,t;(t=(e=this.elFormItem).clearValidate)==null||t.call(e)},change(){var e;this.$emit("input",An((e=this.editor)==null?void 0:e.getValue()))}}},kt={};var jn=p(Dn,Ln,zn,!1,Kn,null,null,null);function Kn(e){for(let t in kt)this[t]=kt[t]}var ye=function(){return jn.exports}(),Wn=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("Transition",{attrs:{name:"dialog-fade"},on:{"after-enter":e.afterEnter,"after-leave":e.afterLeave}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"},{name:"dialog-drag",rawName:"v-dialog-drag:[fullScreen]",arg:e.fullScreen}],staticClass:"el-dialog__wrapper",on:{click:function(r){return r.target!==r.currentTarget?null:e.handleWrapperClick.apply(null,arguments)}}},[i("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"}},[i("div",{staticClass:"el-dialog__header"},[e._t("title",function(){return[i("span",{staticClass:"el-dialog__title"},[e._v(e._s(e.title))])]}),i("div",{staticClass:"header-button-wrapper"},[e._t("header-button"),e.showFullScreen?i("ElButton",{staticClass:"header-button",attrs:{type:"text",icon:e.fullScreen?"el-icon-copy-document":"el-icon-full-screen",size:"medium",title:e.fullScreen?"\u8FD8\u539F":"\u6700\u5927\u5316"},on:{click:e.toggleFullScreen}}):e._e(),e.showClose?i("ElButton",{staticClass:"header-button",attrs:{"aria-label":"Close",type:"text",title:"\u5173\u95ED",icon:"el-icon-close",size:"medium"},on:{click:e.handleClose}}):e._e()],2)],2),e.rendered?i("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()?i("div",{staticClass:"el-dialog__footer"},[e._t("footer",null,{handleClose:e.handleClose})],2):e._e()])])])},qn=[],Wo="";const Hn={props:{modal:{type:Boolean,default:!0},modalAppendToBody:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0}}},Vn={name:"ElementDialog",directives:{dialogDrag:vi.dialogDrag},mixins:[Si.default,Hn,Ci.default],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,default:void 0},height:{type:String,default:void 0},customClass:{type:String,default:""},top:{type:String,default:"15vh"},beforeClose:{type:Function,default:void 0},center:{type:Boolean,default:!0},destroyOnClose:Boolean,flexRow:Boolean,flexColumn:Boolean,bodyPadding:{type:Boolean,default:!0}},data(){return{fullScreen:!1,closed:!1}},computed:{style(){const e={};return this.fullScreen||(e.marginTop=this.top,this.width&&(e.width=this.width)),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,t;return!!((t=(e=this.$scopedSlots).footer)!=null&&t.call(e))},handleWrapperClick(){!this.closeOnClickModal||this.handleClose()},handleClose(){typeof this.beforeClose=="function"?this.beforeClose(this.hide):this.hide()},hide(e){e!==!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")}}},Bt={};var Gn=p(Vn,Wn,qn,!1,Xn,null,null,null);function Xn(e){for(let t in Bt)this[t]=Bt[t]}var ve=function(){return Gn.exports}(),Un=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"empty-view",style:{fontSize:e.fontSize,height:e.height}},[e._t("default",function(){return[e._v(e._s(e.emptyTips))]})],2)},Jn=[],qo="";const Yn={name:"EmptyView",props:{emptyTips:{type:String,default:"\u6682\u65E0\u6570\u636E"},fontSize:{type:String,default:"20px"},height:{type:String,default:"100%"}}},Ft={};var Qn=p(Yn,Un,Jn,!1,Zn,null,null,null);function Zn(e){for(let t in Ft)this[t]=Ft[t]}var be=function(){return Qn.exports}();const es={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:t,children:i,props:r}){const n=Q(t.class,"flex-column");return r.center||r.horizonCenter&&r.verticalCenter?(n.push("horizon-center"),n.push("vertical-center")):(r.horizonCenter&&n.push("horizon-center"),r.verticalCenter&&n.push("vertical-center")),r.textCenter&&n.push("text-center"),e("div",b(h({},t),{class:n}),i)}};let ts,is;const Tt={};var rs=p(es,ts,is,!1,ns,null,null,null);function ns(e){for(let t in Tt)this[t]=Tt[t]}var xe=function(){return rs.exports}();const ss={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:t,data:i,props:r}){const n=Q(i.class,r.relative?"flex-item-relative":"flex-item");return r.absolute&&!r.relative&&n.push("flex-item-relative"),r.center||r.horizonCenter&&r.verticalCenter?(n.push("horizon-center"),n.push("vertical-center")):(r.horizonCenter&&n.push("horizon-center"),r.verticalCenter&&n.push("vertical-center")),r.textCenter&&n.push("text-center"),r.flexColumn&&n.push("flex-column"),r.flexRow&&n.push("flex-row"),r.absolute?e("div",b(h({},i),{class:n}),[e("div",{class:"absolute",style:"overflow:auto"},t)]):e("div",b(h({},i),{class:n}),t)}};let as,ls;const Pt={};var os=p(ss,as,ls,!1,us,null,null,null);function us(e){for(let t in Pt)this[t]=Pt[t]}var $e=function(){return os.exports}();const cs={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:t,children:i,props:r}){const n=Q(t.class,"flex-row");return r.center||r.horizonCenter&&r.verticalCenter?(n.push("horizon-center"),n.push("vertical-center")):(r.horizonCenter&&n.push("horizon-center"),r.verticalCenter&&n.push("vertical-center")),r.textCenter&&n.push("text-center"),e("div",b(h({},t),{class:n}),i)}};let ds,hs;const It={};var ps=p(cs,ds,hs,!1,fs,null,null,null);function fs(e){for(let t in It)this[t]=It[t]}var we=function(){return ps.exports}(),ms=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"flex-scroller-wrapper"},[i("div",{class:["flex-scroller",{"flex-column":e.flexColumn,"flex-row":e.flexRow,"content-scroll":e.contentScroll},e.contentClass]},[e._t("default")],2)])},_s=[],Ho="";const gs={name:"FlexScroller",props:{flexColumn:Boolean,flexRow:Boolean,contentClass:{type:String,default:void 0},contentScroll:{type:Boolean,default:!0}}},Et={};var ys=p(gs,ms,_s,!1,vs,null,null,null);function vs(e){for(let t in Et)this[t]=Et[t]}var Se=function(){return ys.exports}();const bs=["span"],Nt=[...Object.keys(_.Col.props)],xs=Nt.filter(e=>!bs.includes(e)),$s=["label","prop","rules","labelWidth","required"],Rt=[...Object.keys(_.FormItem.props)],ws=Rt.filter(e=>!$s.includes(e)),Ss=["wrapCol","wrapFormItem","unwrap","prefixConfig","block","placeholder","prefixPick","half",...Nt,...Rt];var Ot={name:"FormInput",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?"\u8BF7\u914D\u7F6E":this.prefixPick?"\u8BF7\u9009\u62E9":"\u8BF7\u8F93\u5165"},message(){var e;return`${this.prefix}${((e=this.label)==null?void 0:e.replace("\uFF1A",""))||""}`},computeRules(){const e=[...this.rules||[]];if(this.required){const t=e.find(i=>i.required);t?t.ref?t.label=t.label||this.label:t.message=e.message||this.message:e.unshift(this.getRequireRule())}return e.concat(this.getRules())},computeSpan(){return this.block?24:this.span},formItemProps(){return g(h(h({},this.$props),this.$attrs),Ss)},elFormItemProps(){return g(h(h({},this.$props),this.$attrs),ws)},elColProps(){return g(h(h({},this.$props),this.$attrs),xs)}},watch:{computeRules(){var e,t;(t=(e=this.elForm)==null?void 0:e.clearValidate)==null||t.call(e,this.prop)}},methods:{getRules(){return[]},getRequireRule(){return{required:!0,message:this.message}}}},k={name:"FormInput",mixins:[Ot],props:{value:[Boolean,String,Array,Number,Object,Date],readonly:Boolean,disabled:Boolean},computed:{computePlaceholder(){return this.placeholder===!0?this.message:this.placeholder},listeners(){return g(this.$listeners,"input",!1)},inputDisabled(){return this.disabled}}},A={props:{prefixPick:{type:Boolean,default:!0}}},Cs=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("FormItem",e._b({attrs:{rules:e.computeRules,disabled:e.inputDisabled},scopedSlots:e._u([{key:"default",fn:function(){return[e._t("default",function(){return[i("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(r){var n=r.error;return[e._t("error",null,{error:n})]}},{key:"label",fn:function(){return[e._t("label")]},proxy:!0}],null,!0)},"FormItem",e.formItemProps,!1))},ks=[];const Bs=Object.keys(_.Cascader.props).filter(e=>!["value","placeholder","disabled","options","showAllLevels","show-all-levels","separator"].includes(e)),Fs={name:"FormCascader",mixins:[k,A],props:{value:{type:[String,Number],default:void 0},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 g(h(h({},C(this.$attrs)),this.$props),Bs)},inputVal(){let[e]=l.findTreeChildren(this.innerOptions,i=>i[this.valueKey]===this.value);const t=[];for(;e;)t.push(e[this.valueKey]),e=e.parent;return t.reverse()}},watch:{options:{immediate:!0,handler(e){if(e){const t=l.cloneDeep(e);l.setParent(t),this.innerOptions=t}else this.innerOptions=[]}}},methods:{emitInput(e){const t=this.last?e[e.length-1]:e;this.$emit("input",t)}}},Mt={};var Ts=p(Fs,Cs,ks,!1,Ps,null,null,null);function Ps(e){for(let t in Mt)this[t]=Mt[t]}var Ce=function(){return Ts.exports}(),Is=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("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[i("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(r){return i("ElCheckbox",{key:r[e.valueKey],attrs:{label:r[e.valueKey]}},[e._v(" "+e._s(r[e.labelKey])+" ")])}),1),e.computeVal.includes(e.otherVal)?i("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(r){return e.$emit("update:other",r)}}}):e._e()]},proxy:!0},{key:"error",fn:function(r){var n=r.error;return[e._t("error",null,{error:n})]}},{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))},Es=[],Vo="";const Ns=Object.keys(_.CheckboxGroup.props).filter(e=>!["value","placeholder","disabled"].includes(e)),Rs={name:"FormCheckboxGroup",mixins:[k,A],props:{options:{type:Array,default:()=>[]},value:{type:[String,Array],default:void 0},other:{type:String,default:void 0},otherVal:{type:String,default:void 0},otherProp:{type:String,default:void 0},otherPlaceholder:{type:String,default:void 0},otherLabel:{type:String,default:void 0},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"\u8BF7\u9009\u62E9"},labelKey(){return this.classic?"label":this.labelProp},valueKey(){return this.classic?"value":this.valueProp},inputProps(){return g(h(h({},C(this.$attrs)),this.$props),Ns)},innerOptions(){return this.gender?[{[this.labelKey]:"\u7537",[this.valueKey]:"\u7537"},{[this.labelKey]:"\u5973",[this.valueKey]:"\u5973"}]:this.confirm?[{[this.labelKey]:"\u662F",[this.valueKey]:"\u662F"},{[this.labelKey]:"\u5426",[this.valueKey]:"\u5426"}]: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)}}},Lt={};var Os=p(Rs,Is,Es,!1,Ms,null,null,null);function Ms(e){for(let t in Lt)this[t]=Lt[t]}var ke=function(){return Os.exports}(),Ls=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("FormItem",e._b({attrs:{rules:e.computeRules,disabled:e.inputDisabled},scopedSlots:e._u([{key:"default",fn:function(){return[i("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?i("div",{staticClass:"el-form-item__warn"},[e._t("warn")],2):e._e()]},proxy:!0},{key:"error",fn:function(r){var n=r.error;return[e.$scopedSlots.error&&e.$scopedSlots.error(n)?i("div",{staticClass:"el-form-item__error"},[e._t("error",function(){return[e._v(" "+e._s(n)+" ")]},{error:n})],2):e._e()]}},{key:"label",fn:function(){return[e._t("label")]},proxy:!0}],null,!0)},"FormItem",e.formItemProps,!1))},zs=[];const As=["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)),Ds={name:"FormDatePicker",mixins:[k,A],props:{format:{type:String,default:void 0},valueFormat:{type:String,default:void 0},rangeSeparator:{type:String,default:void 0},startPlaceholder:{type:String,default:void 0},endPlaceholder:{type:String,default:void 0},start:{type:String,default:void 0},end:{type:String,default:void 0},year:Boolean,month:Boolean,dates:Boolean,week:Boolean,dateTime:Boolean,dateTimeRange:Boolean,dateRange:Boolean,monthRange:Boolean,miniDate:{type:String,default:void 0},maxDate:{type:String,default:void 0},pickerOptions:{type:Object,default:void 0},split:{type:Boolean,default:!0}},computed:{prefix(){return"\u8BF7\u9009\u62E9"},mini(){if(this.miniDate){const e=l.toDate(this.miniDate);return e.setDate(e.getDate()-1),e}else return null},max(){return this.maxDate?l.toDate(this.maxDate):null},pickerOption(){return h({disabledDate:e=>{if(!this.mini&&!this.max)return!1;const t=e.getTime();return this.mini&&!this.max?t<=this.mini.getTime():!this.mini&&this.max?t>=this.max.getTime():this.mini&&this.max?t<=this.mini.getTime()&&t>=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 \u7B2C WW \u5468":this.dateTime||this.dateTimeRange?"yyyy-MM-dd HH:mm":"yyyy-MM-dd"},inputProps(){return g(b(h(h({},C(this.$attrs)),this.$props),{valueFormat:this.week?"yyyy-MM-dd":this.valueFormat||this.fat,format:this.format||this.fat,rangeSeparator:this.rangeSeparator||"\u81F3",startPlaceholder:this.startPlaceholder||"\u5F00\u59CB\u65E5\u671F",endPlaceholder:this.endPlaceholder||"\u7ED3\u675F\u65E5\u671F"}),As)},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)}}},zt={};var js=p(Ds,Ls,zs,!1,Ks,null,null,null);function Ks(e){for(let t in zt)this[t]=zt[t]}var Be=function(){return js.exports}(),Ws=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("ElForm",{ref:"form",staticClass:"clear-fix",attrs:{model:e.model,size:e.size,disabled:e.disabled,"label-width":e.labelWidth,"label-position":e.labelPosition}},[e._t("default")],2)},qs=[];const Hs={name:"FormHolder",provide(){return{formHolder:this}},props:{model:{type:Object,default:void 0},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,default:void 0}},watch:{required(){this.clearValidate()}},created(){this.required||l.warning.call(Zi(this,e=>["FormView","FormHolder"].includes(e.$options.name)),"\u4E00\u822C\u60C5\u51B5\u4E0B\u4E0D\u5EFA\u8BAE\u8BBE\u7F6E required=false,\u56E0\u4E3A required \u8BBE\u7F6E\u4E3A false \u540E\u5FC5\u586B\u5B57\u6BB5\u8981\u81EA\u884C\u7EF4\u62A4,\u5728\u5904\u7406\u8868\u683C\u65F6\u4F1A\u6BD4\u8F83\u590D\u6742,\u8BF7\u81EA\u884C\u6743\u8861\u5229\u5F0A")},methods:{clearValidate(e){var t;(t=this.$refs.form)==null||t.clearValidate(e)},async validate(){return this.$refs.form.validate()},resetFields(){return this.$refs.form.resetFields()}}},At={};var Vs=p(Hs,Ws,qs,!1,Gs,null,null,null);function Gs(e){for(let t in At)this[t]=At[t]}var Fe=function(){return Vs.exports}(),Xs=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("FormItem",e._b({attrs:{rules:e.computeRules,disabled:e.inputDisabled},scopedSlots:e._u([{key:"default",fn:function(){return[e._t("default",function(){return[i("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?i("div",{staticClass:"el-form-item__warn"},[e._t("warn")],2):e._e()]})]},proxy:!0},{key:"error",fn:function(r){var n=r.error;return[e.$scopedSlots.error&&e.$scopedSlots.error(n)?i("div",{staticClass:"el-form-item__error"},[e._t("error",function(){return[e._v(" "+e._s(n)+" ")]},{error:n})],2):e._e()]}},{key:"label",fn:function(){return[e._t("label")]},proxy:!0}],null,!0)},"FormItem",e.formItemProps,!1))},Us=[];const Js=Object.keys(_.Input.props).filter(e=>!["value","placeholder","disabled"].includes(e)),Ys={name:"FormInput",mixins:[k],props:{value:{type:[String,Number],default:void 0},maxLength:{type:String,default:"200"}},computed:{inputProps(){return g(h(h({},C(this.$attrs)),this.$props),Js)}},methods:{emitInput(e){this.$emit("input",e)}}},Dt={};var Qs=p(Ys,Xs,Us,!1,Zs,null,null,null);function Zs(e){for(let t in Dt)this[t]=Dt[t]}var Te=function(){return Qs.exports}();const ea=(e,t,i)=>t&&!/^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(t)?i(new Error("invalid")):i();var ta=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("FormItem",e._b({attrs:{rules:e.computeRules,disabled:e.inputDisabled},scopedSlots:e._u([{key:"default",fn:function(){return[i("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(r){return e.$emit("input",r)}}},"ElInput",e.inputProps,!1),e.listeners))]},proxy:!0},{key:"error",fn:function(r){var n=r.error;return[e._t("error",null,{error:n})]}},{key:"label",fn:function(){return[e._t("label")]},proxy:!0}],null,!0)},"FormItem",e.formItemProps,!1))},ia=[];const ra=Object.keys(_.Input.props).filter(e=>!["value","placeholder","disabled"].includes(e)),na={name:"FormInputEmail",mixins:[k],props:{value:{type:String,default:void 0},maxLength:{type:String,default:"200"}},computed:{inputProps(){return g(h(h({},C(this.$attrs)),this.$props),ra)}},methods:{getRules(){return[{validator:ea,message:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\uFF01"}]}}},jt={};var sa=p(na,ta,ia,!1,aa,null,null,null);function aa(e){for(let t in jt)this[t]=jt[t]}var Pe=function(){return sa.exports}(),la=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("FormItem",e._b({attrs:{rules:e.computeRules,disabled:e.inputDisabled},scopedSlots:e._u([{key:"default",fn:function(){return[i("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(r){return e.$emit("input",r)}}},"ElInput",e.inputProps,!1),e.listeners)),e.$slots.warn?i("div",{staticClass:"el-form-item__error"},[e._t("warn")],2):e._e()]},proxy:!0},{key:"error",fn:function(r){var n=r.error;return[e.$scopedSlots.error&&e.$scopedSlots.error(n)?i("div",{staticClass:"el-form-item__error"},[e._t("error",function(){return[e._v(" "+e._s(n)+" ")]},{error:n})],2):e._e()]}},{key:"label",fn:function(){return[e._t("label")]},proxy:!0}],null,!0)},"FormItem",e.formItemProps,!1))},oa=[];const ua=Object.keys(_.Input.props).filter(e=>!["value","placeholder","disabled"].includes(e)),ca={name:"FormInputIdCard",mixins:[k],props:{value:{type:String,default:void 0},maxLength:{type:String,default:"200"}},computed:{inputProps(){return g(h(h({},C(this.$attrs)),this.$props),ua)}},methods:{validateIdCard:l.validateIdCard,getRules(){return[{validator:l.validateIdCard,message:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u8EAB\u4EFD\u8BC1\u53F7\u7801\uFF01"}]}}},Kt={};var da=p(ca,la,oa,!1,ha,null,null,null);function ha(e){for(let t in Kt)this[t]=Kt[t]}var Ie=function(){return da.exports}(),pa=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("FormItem",e._b({attrs:{rules:e.computeRules,disabled:e.inputDisabled},scopedSlots:e._u([{key:"default",fn:function(){return[i("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(r){return e.$emit("input",r)}},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(r){var n=r.error;return[e._t("error",null,{error:n})]}},{key:"label",fn:function(){return[e._t("label")]},proxy:!0}],null,!0)},"FormItem",e.formItemProps,!1))},fa=[],Go="";const ma=Object.keys(ht.props).filter(e=>!["value","placeholder","disabled","precision","max","min"].includes(e)),_a={name:"FormInputNumber",mixins:[k],props:{value:{type:[String,Number],default:void 0},max:{type:Number,default:1/0},min:{type:Number,default:-1/0},precision:{type:Number,default:void 0,validator(e){return e>=0&&e===parseInt(e,10)}}},computed:{inputProps(){return g(h(h({},C(this.$attrs)),this.$props),ma)}}},Wt={};var ga=p(_a,pa,fa,!1,ya,null,null,null);function ya(e){for(let t in Wt)this[t]=Wt[t]}var Ee=function(){return ga.exports}(),va=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("FormItem",e._b({attrs:{rules:e.computeRules,disabled:e.inputDisabled},scopedSlots:e._u([{key:"default",fn:function(){return[i("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(r){var n=r.error;return[e._t("error",null,{error:n})]}},{key:"label",fn:function(){return[e._t("label")]},proxy:!0}],null,!0)},"FormItem",e.formItemProps,!1))},ba=[];const xa=Object.keys(_.Input.props).filter(e=>!["value","placeholder","disabled"].includes(e)),$a={name:"FormInputPhoneNumber",mixins:[k],props:{value:{type:String,default:void 0},maxLength:{type:String,default:"200"}},computed:{inputProps(){return g(h(h({},C(this.$attrs)),this.$props),xa)}},methods:{getRules(){return[{validator:l.validatePhoneNum,message:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u624B\u673A\u53F7\u7801\uFF01"}]},emitInput(e){this.$emit("input",e)}}},qt={};var wa=p($a,va,ba,!1,Sa,null,null,null);function Sa(e){for(let t in qt)this[t]=qt[t]}var Ne=function(){return wa.exports}(),Ca=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("FormItem",e._b({attrs:{rules:e.computeRules,disabled:e.inputDisabled},scopedSlots:e._u([{key:"default",fn:function(){return[i("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":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4",placeholder:e.computePlaceholder},on:{input:function(r){return e.$emit("input",r)}}},"ElTimePicker",e.inputProps,!1),e.listeners))]},proxy:!0},{key:"error",fn:function(r){var n=r.error;return[e._t("error",null,{error:n})]}},{key:"label",fn:function(){return[e._t("label")]},proxy:!0}],null,!0)},"FormItem",e.formItemProps,!1))},ka=[];const Ba=Object.keys(_.TimePicker.props).filter(e=>!["value","placeholder","disabled"].includes(e)),Fa={name:"FormInputTime",mixins:[k],props:{range:Boolean,format:{type:String,default:"HH:mm:ss"},valueFormat:{type:String,default:void 0},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,default:void 0}},computed:{prefix(){return"\u8BF7\u9009\u62E9"},inputProps(){return g(h(h({},C(this.$attrs)),this.$props),Ba)}}},Ht={};var Ta=p(Fa,Ca,ka,!1,Pa,null,null,null);function Pa(e){for(let t in Ht)this[t]=Ht[t]}var Re=function(){return Ta.exports}(),Ia={name:"FormItem",mixins:[Ot],inject:{formHolder:{default:{}},formItemConfig:{default:null}},computed:{gutter(){var t;let e=this.$parent;for(;e&&e.$options.componentName!=="ElRow";)e=e.$parent;return(t=e==null?void 0:e.gutter)!=null?t:0}},methods:{renderFormItem(){var R,O,P;const e=this.$createElement,{label:t,labelWidth:i,prop:r,rules:n,$scopedSlots:s,elFormItemProps:a,elForm:d,formHolder:u,formItemClass:c,required:f,block:m,half:v,wrapCol:w,wrapFormItem:B,disabled:F,formItemConfig:E,getRequireRule:Qe}=this;let S=n,y=f,N=f,x=m,$=w;E&&(l.hasOwn(E,"block")&&(x=E.block),l.hasOwn(E,"wrapCol")&&($=E.wrapCol));const D=x&&v&&$?`calc( 50% - ${this.gutter/2}px)`:"";return F||(d==null?void 0:d.disabled)?(S=[],!u.required&&!((R=u.requiredFields)!=null&&R.includes(r))&&(N=!1)):(!u.required&&!((O=u.requiredFields)!=null&&O.includes(r))&&(y=!1),y&&!(S!=null&&S.length)&&r?S=[Qe()]:y||(N=!1,S&&(S=S.filter(H=>!H.required)))),B?e("ElFormItem",{style:{width:D},key:`${r}-${y}`,class:N?`form-item required ${c||""}`:`${c||""}`,scopedSlots:s,props:h({},a),attrs:{label:t,"label-width":i,prop:r,rules:S},ref:"formItem"}):e("div",[(P=s.default)==null?void 0:P.call(s)])},async clearValidate(){var e,t;await this.$nextTick(),(t=(e=this.$refs.formItem).clearValidate)==null||t.call(e)},async validate(){var e,t;await this.$nextTick(),(t=(e=this.$refs.formItem).validate)==null||t.call(e)}},render(){var c,f;const e=arguments[0],{computeSpan:t,wrapCol:i,formItemConfig:r,renderFormItem:n,elColProps:s,$scopedSlots:a,unwrap:d}=this;let u=i;return r&&l.hasOwn(r,"wrapCol")&&(u=r.wrapCol),d?e("div",[(c=a.default)==null?void 0:c.call(a)]):u?e("ElCol",{props:h({},s),attrs:{span:t}},[n(),(f=a==null?void 0:a.below)==null?void 0:f.call(a)]):n()}},Xo="";let Ea,Na;const Vt={};var Ra=p(Ia,Ea,Na,!1,Oa,null,null,null);function Oa(e){for(let t in Vt)this[t]=Vt[t]}var Oe=function(){return Ra.exports}();const Ma={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 La,za;const Gt={};var Aa=p(Ma,La,za,!1,Da,null,null,null);function Da(e){for(let t in Gt)this[t]=Gt[t]}var Me=function(){return Aa.exports}();const Le=["disabled","size","statusIcon","inlineMessage","autoLabelWidth","hideRequiredAsterisk","$emit","validate","clearValidate"],ja=["$emit","validate","clearValidate"];var Ka={name:"FormItemGroup",inject:{elForm:{default:{}}},provide(){return{elForm:this.formConfig,formItemGroup:this}},props:{blockTitle:{type:String,default:void 0},active:Boolean,enabled:Boolean,disabled:Boolean,wrapRow:{type:Boolean,default:!0},gutter:{type:Number,default:20},collapse:Boolean},data(){const e={};return Le.forEach(t=>{e[t]=null}),{expand:!0,formConfig:e}},computed:{formCfg(){const e={enabled:this.enabled,forbidden:this.disabled};return Le.forEach(t=>{e[t]=this.elForm[t]}),e}},watch:{collapse:{immediate:!0,handler(e){this.expand=!e}},formCfg:{immediate:!0,handler(){this.formConfig.disabled=this.isDisabled(),Le.forEach(e=>{var t;e!=="disabled"&&(ja.includes(e)?this.formConfig[e]=(t=this.elForm[e])==null?void 0:t.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,t,i){let r=this.$parent||this.$root,n=r.$options.name;for(;r&&(!n||n!==e);)r=r.$parent,r&&(n=r.$options.name);r&&r.$emit.apply(r,[t].concat(i))},renderDefault(){const e=this.$createElement,{wrapRow:t,gutter:i,formConfig:r,$scopedSlots:n}=this;return l.isFunction(n.default)?t?e("ElRow",{attrs:{gutter:i},class:"form-item-group-row"},[n.default({disabled:r.disabled})]):n.default({disabled:r.disabled}):e("EmptyView",{attrs:{"font-size":"14px","empty-tips":"\u6682\u65E0\u4FE1\u606F"}})},toggle(){this.expand=!this.expand},open(){this.expand=!0}},render(){const e=arguments[0],{renderDefault:t,blockTitle:i,active:r,expand:n,toggle:s,$scopedSlots:a,isDisabled:d}=this;return e("div",{class:["form-item-group",{"default-active":r,"is-disabled":d()}]},[e("div",{class:"form-item-group-title",on:{click:s}},[e("span",{class:"flex-item"},[i,a["title-right"]?a["title-right"]():null])," ",e("i",{class:n?"el-icon-arrow-down":"el-icon-arrow-right"})]),e("ElCollapseTransition",[e("div",{directives:[{name:"show",value:n}]},[t()])])])}},Uo="";let Wa,qa;const Xt={};var Ha=p(Ka,Wa,qa,!1,Va,null,null,null);function Va(e){for(let t in Xt)this[t]=Xt[t]}var ze=function(){return Ha.exports}(),Ga=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("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[i("ElRadioGroup",e._g(e._b({class:{"over-flow":e.overFlow},attrs:{value:e.value,disabled:e.inputDisabled,placeholder:e.computePlaceholder},on:{input:function(r){return e.$emit("input",r)}}},"ElRadioGroup",e.inputProps,!1),e.listeners),[e.allowCancel?e._l(e.innerOptions,function(r){return i("ElRadio",{key:r[e.valueKey],attrs:{label:r[e.valueKey]},nativeOn:{click:function(n){return n.preventDefault(),n.stopPropagation(),e.toggle(r)}}},[e._v(" "+e._s(r[e.labelKey])+" ")])}):e._l(e.innerOptions,function(r){return i("ElRadio",{key:r[e.valueKey],attrs:{label:r[e.valueKey]}},[e._v(" "+e._s(r[e.labelKey])+" ")])})],2),e._t("append")]},proxy:!0},{key:"error",fn:function(r){var n=r.error;return[e._t("error",null,{error:n})]}},{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))},Xa=[],Jo="";const Ua=Object.keys(_.RadioGroup.props).filter(e=>!["value","placeholder","disabled"].includes(e)),Ja={name:"FormRadioGroup",mixins:[k,A],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"\u8BF7\u9009\u62E9"},inputProps(){return g(h(h({},C(this.$attrs)),this.$props),Ua)},labelKey(){return this.classic?"label":this.labelProp},valueKey(){return this.classic?"value":this.valueProp},innerOptions(){return this.gender?[{[this.labelKey]:"\u7537",[this.valueKey]:this.chinese?"\u7537":this.typing?1:"1"},{[this.labelKey]:"\u5973",[this.valueKey]:this.chinese?"\u5973":this.typing?2:"2"}]:this.confirm?[{[this.labelKey]:"\u662F",[this.valueKey]:this.chinese?"\u662F":this.english?"Y":this.typing?1:"1"},{[this.labelKey]:"\u5426",[this.valueKey]:this.chinese?"\u5426":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])}}},Ut={};var Ya=p(Ja,Ga,Xa,!1,Qa,null,null,null);function Qa(e){for(let t in Ut)this[t]=Ut[t]}var Ae=function(){return Ya.exports}(),Za=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("FormItem",e._b({attrs:{rules:e.computeRules,disabled:e.inputDisabled},scopedSlots:e._u([{key:"default",fn:function(){return[i("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(r){return i("ElOption",{key:r[e.valueKey],attrs:{value:r[e.valueKey],label:r[e.labelKey]}})}),1),e.$slots.warn?i("div",{staticClass:"el-form-item__warn"},[e._t("warn")],2):e._e()]},proxy:!0},{key:"error",fn:function(r){var n=r.error;return[e.$scopedSlots.error&&e.$scopedSlots.error(n)?i("div",{staticClass:"el-form-item__error"},[e._t("error",function(){return[e._v(" "+e._s(n)+" ")]},{error:n})],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))},el=[];const tl=Object.keys(_.Select.props).filter(e=>!["value","placeholder","disabled"].includes(e)),il={name:"FormSelect",mixins:[k,A],props:{options:{type:Array,default:()=>[]},gender:Boolean,all:Boolean,filterable:Boolean,confirm:Boolean,value:{type:[String,Number],default:void 0},labelProp:{type:String,default:"name"},valueProp:{type:String,default:"code"},english:Boolean,chinese:Boolean,typing:Boolean,classic:Boolean},computed:{prefix(){return"\u8BF7\u9009\u62E9"},labelKey(){return this.classic?"label":this.labelProp},valueKey(){return this.classic?"value":this.valueProp},inputProps(){return g(h(h({},C(this.$attrs)),this.$props),tl)},innerOptions(){return this.gender?[{[this.labelKey]:"\u7537",[this.valueKey]:this.chinese?"\u7537":this.typing?1:"1"},{[this.labelKey]:"\u5973",[this.valueKey]:this.chinese?"\u5973":this.typing?2:"2"}]:this.confirm?[{[this.labelKey]:"\u662F",[this.valueKey]:this.chinese?"\u662F":this.english?"Y":this.typing?1:"1"},{[this.labelKey]:"\u5426",[this.valueKey]:this.chinese?"\u5426":this.english?"N":this.typing?0:"0"}]:this.all?[{[this.valueKey]:"",[this.labelKey]:"\u5168\u90E8"},...this.options]:this.options}},methods:{emitInput(e){this.$emit("input",e)}}},Jt={};var rl=p(il,Za,el,!1,nl,null,null,null);function nl(e){for(let t in Jt)this[t]=Jt[t]}var De=function(){return rl.exports}(),sl=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("FormItem",e._b({attrs:{rules:e.computeRules,disabled:e.inputDisabled},scopedSlots:e._u([{key:"default",fn:function(){return[e._t("default",function(){return[i("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(r){var n=r.error;return[e._t("error",null,{error:n})]}},{key:"label",fn:function(){return[e._t("label")]},proxy:!0}],null,!0)},"FormItem",e.formItemProps,!1))},al=[];const ll=Object.keys(_.Switch.props).filter(e=>!["value","placeholder","disabled"].includes(e)),ol={name:"FormSwitch",mixins:[k],props:{value:{type:[String,Number,Boolean],default:void 0}},computed:{inputProps(){return g(h(h({},C(this.$attrs)),this.$props),ll)}},methods:{emitInput(e){this.$emit("input",e)}}},Yt={};var ul=p(ol,sl,al,!1,cl,null,null,null);function cl(e){for(let t in Yt)this[t]=Yt[t]}var je=function(){return ul.exports}(),dl=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("FormItem",e._b({attrs:{block:e.block,rules:e.computeRules,disabled:e.inputDisabled},scopedSlots:e._u([{key:"default",fn:function(){return[i("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(r){return e.$emit("input",r)}}},"ElInput",e.inputProps,!1),e.listeners))]},proxy:!0},{key:"error",fn:function(r){var n=r.error;return[e._t("error",null,{error:n})]}},{key:"label",fn:function(){return[e._t("label")]},proxy:!0}],null,!0)},"FormItem",e.formItemProps,!1))},hl=[];const pl=Object.keys(_.Input.props).filter(e=>!["value","placeholder","type","rows","resize","showWordLimit","maxLength","maxlength"].includes(e)),fl={name:"FormTextarea",mixins:[k],props:{value:{type:[String,Number],default:void 0},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 g(h(h({},C(this.$attrs)),this.$props),pl)}}},Qt={};var ml=p(fl,dl,hl,!1,_l,null,null,null);function _l(e){for(let t in Qt)this[t]=Qt[t]}var Ke=function(){return ml.exports}(),gl=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{class:["form-view",e.className]},[e.showToolbar?i("div",{directives:[{name:"show",rawName:"v-show",value:!e.isFormLoading,expression:"!isFormLoading"}],staticClass:"form-view-toolbar"},[e._t("form-view-toolbar",function(){return[i("Toolbar",e._g(e._b({on:{edit:e.onEdit},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.buttons;return[e._t("toolbar-button",null,{buttons:n})]}},e._l(e.getToolbarSlotKeys(),function(r){return{key:r,fn:function(){return[e._t(r)]},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(),i("div",{directives:[{name:"show",rawName:"v-show",value:!e.isFormLoading,expression:"!isFormLoading"}],staticClass:"form-scroller-wrapper"},[i("div",{ref:"formScroller",class:["form-scroller","absolute-box",e.contentClass],on:{scroll:e.onFormScroll}},[e.notForm?i("div",{staticClass:"not-form",style:{width:e.formWidth}},[e.title?i("div",{staticClass:"form-view-title"},[e._v(" "+e._s(e.title)+" ")]):e._e(),e._t("default",function(){return[i("EmptyView",{attrs:{"empty-tips":"\u8BF7\u6DFB\u52A0\u8868\u5355\u5185\u5BB9"}})]}),e.footerBarButtons.length?i("Toolbar",e._g(e._b({attrs:{footer:""},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.buttons,s=r.footer;return[e._t("footer-button",null,{buttons:n,footer:s})]}},e._l(e.getFooterSlotKeys(),function(r){return{key:e.getFooterSlotKey(r),fn:function(){return[e._t(r)]},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):i("div",{class:["form-card",{"un-limit":e.unLimit}],style:{width:`calc(${e.formWidth} + 40px)`}},[i("div",{staticClass:"form-content"},[e.title?i("div",{staticClass:"form-view-title"},[e._v(" "+e._s(e.title)+" ")]):e._e(),e._t("default",function(){return[i("EmptyView",{attrs:{"empty-tips":"\u8BF7\u6DFB\u52A0\u8868\u5355\u5185\u5BB9"}})]}),e.footerBarButtons.length?i("Toolbar",e._g(e._b({attrs:{footer:""},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.buttons,s=r.footer;return[e._t("footer-button",null,{buttons:n,footer:s})]}},e._l(e.getFooterSlotKeys(),function(r){return{key:e.getFooterSlotKey(r),fn:function(){return[e._t(r)]},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?i("div",{class:["form-card",{"un-limit":e.unLimit}],staticStyle:{"min-height":"0"},style:{width:`calc(${e.formWidth} + 40px)`}},[i("div",{staticClass:"form-content"},[e.$parent.$options.flowForm&&e.flowContext.logs.length?i("FormItemGroup",{attrs:{"block-title":"\u6D41\u7A0B\u65E5\u5FD7"}},[i("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()]),i("ResizeObserver",{on:{notify:e.onFormResize}})],1),e.formNav&&!e.isFormLoading&&e.showNav&&e.groups.length?i("div",{staticClass:"form-nav"},[i("div",{staticClass:"form-nav-header"},[e._v(" \u8868\u5355\u5BFC\u822A ")]),i("ul",{staticClass:"form-nav-list"},e._l(e.groups,function(r,n){return i("li",{key:r.blockTitle,class:["form-nav-item",{active:e.activeIndex===n}],on:{click:function(s){return e.navItemClick(r,n)}}},[e._v(" "+e._s(r.blockTitle)+" ")])}),0)]):e._e(),e.isFormLoading?i("LoadingView",{attrs:{"icon-size":"34px","font-size":"16px"}}):e._e()],1)},yl=[],Yo="";const Zt=["back","create","save","withdraw","edit","submit","publish","agree","disagree","reject","finish","cancel","enable","exp","imp","del","disabled","reload","slot"],vl=Zt.map(e=>`${e}-down`),bl=["back","withdraw","edit"],ei=["save","submit","","publish","agree","disagree","reject","finish","cancel"],We=(e,t)=>{if(e.classList.contains(t))return e;let i=e.parentNode;for(;i&&!i.classList.contains(t);)i=i.parentNode;return i.classList.contains(t)?i:null},xl={name:"FormView",inject:{flowContext:{default:{}}},props:{notForm:Boolean,loading:Boolean,unLimit:Boolean,formWidth:{type:String,default:"75%"},toolbarAttrs:{type:Object,default:()=>{}},toolbarListeners:{type:Object,default:void 0},contentClass:{type:String,default:void 0},className:{type:String,default:void 0},title:{type:String,default:void 0},showToolbar:{type:Boolean,default:!0},formNav:{type:Boolean,default:!0}},data(){return{groups:[],activeIndex:-1,tryByClick:!1,showNav:!1}},computed:{isFormLoading(){return this.loading||l.hasOwn(this.$parent,"isFormLoaded")?!this.$parent.isFormLoaded:!1},toolbarProps(){var r;const e={},t=((r=this.toolbarAttrs)==null?void 0:r.buttons)||this.$parent.buttons,i=l.merge({},this.toolbarAttrs,e);return i.buttons=t||["back"],i.buttons=l.toStringArray(i.buttons),i},toolbarButtons(){return this.toolbarProps.buttons.filter(e=>!ei.includes(e)&&e.indexOf(":down")<0).map(e=>e.replace(":up",""))},footerBarButtons(){let e=this.toolbarProps.buttons.filter(t=>!bl.includes(t)&&(ei.includes(t)||t.indexOf(":down")>-1)).map(t=>t.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((t,i)=>{const r=We(t.$el,"form-card"),n=We(i.$el,"form-card");if(r===n){const s=[].indexOf.call(t.$el.parentNode.children,t.$el),a=[].indexOf.call(i.$el.parentNode.children,i.$el);return s-a}else{const s=We(r,"form-scroller"),a=[].indexOf.call(s.children,r),d=[].indexOf.call(s.children,n);return a-d}}),e.active&&(this.activeIndex=this.groups.indexOf(e),this.navItemClick(e,this.activeIndex)))}),this.$on("FormView.removeGroup",e=>{if(e){const t=this.groups.indexOf(e);this.groups.splice(t,1),this.activeIndex>this.groups.length-1&&(this.activeIndex=0)}}),this.onFormResize({width:window.document.body.clientWidth})},async activated(){this.$refs.formScroller&&(await this.$nextTick(),this.scrollTo(this.formScrollTop,this.formScrollLeft))},methods:{getToolbarSlotKeys(){return Object.keys(this.$scopedSlots).filter(e=>Zt.includes(e))},getFooterSlotKeys(){return Object.keys(this.$scopedSlots).filter(e=>vl.includes(e))},getFooterSlotKey(e){return e.replace("-down","")},onFormResize({width:e}){this.showNav=e>1500},onEdit(){!this.toolbarListeners.edit&&l.hasOwn(this.$parent,"disabled")&&(this.$parent.disabled=!1)},async navItemClick(e,t){!this.showNav||(await this.$nextTick(),this.activeFormItemGroup(e,t),e.expand||e.open())},activeFormItemGroup(e,t){this.$refs.formScroller.scrollTop=e.$el.offsetTop-10,l.animate(e.$el,"breathe-indicator-animation"),this.tryByClick=!0,this.activeIndex=t},async tryActive(){if(!!this.showNav){for(let e=0;e<this.groups.length;e++)if(l.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,t){e&&(this.$refs.formScroller.scrollTop=e),t&&(this.$refs.formScroller.scrollLeft=t)}}},ti={};var $l=p(xl,gl,yl,!1,wl,null,null,null);function wl(e){for(let t in ti)this[t]=ti[t]}var qe=function(){return $l.exports}(),Sl=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"table-view"},[i("Toolbar",e._g(e._b({on:{search:e.toggleSearch,del:e.del,create:e.create,reload:e.reloadTable,imp:function(r){e.importDialogVisible=!0}},scopedSlots:e._u([{key:"default",fn:function(){return[e._t("toolbar-button")]},proxy:!0},e._l(e.buttonSlots,function(r){return{key:r,fn:function(){return[e._t(r)]},proxy:!0}})],null,!0)},"Toolbar",e.toolbarProps,!1),e.toolbarListeners)),i("div",{staticClass:"table-view-content-wrapper"},[i("div",{staticClass:"table-view-content"},[e.treeProps.show?i("div",{ref:"treeScroller",staticClass:"table-view-sidebar",on:{scroll:e.onTreeScroll}},[i("div",{staticStyle:{"font-size":"16px"}},[e._v(" \u89C6\u56FE\u5BFC\u822A ")]),i("EditableTree",e._g(e._b({ref:"tree",attrs:{readonly:""},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.node,s=r.data;return[e._t("tree-node",function(){return[i("span",[i("i",{staticClass:"node-icon",class:n.childNodes.length>0?n.expanded?"el-icon-folder-opened":"el-icon-folder":"el-icon-tickets"}),e._t("tree-label",function(){return[e._v(e._s(n.label))]},{node:n,data:s})],2)]},{node:n,data:s})]}}],null,!0)},"EditableTree",e.treeProps,!1),e.treeListeners))],1):e._e(),i("div",{staticClass:"table-view-table"},[i("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?i("div",{staticClass:"slide-panel",style:{right:`${e.right}px`,width:`${e.searchPanelProps.width}px`}},[e._m(0),i("div",{staticClass:"slide-panel-content"},[i("ElForm",{ref:"form",attrs:{"label-position":"right",model:e.searchModel||e.searchPanelProps.model,size:"mini","label-width":e.labelWidth},nativeOn:{"!submit":function(r){return r.preventDefault(),e.onSearchClick.apply(null,arguments)}}},[i("FormItemConfigProvider",{attrs:{block:"","wrap-col":!1}},[i("ElRow",{attrs:{gutter:0}},[e._t("search-form",function(){return[i("p",[e._v("\u8BF7\u6DFB\u52A0\u641C\u7D22\u6761\u4EF6\uFF01")])]})],2)],1),i("ElFormItem",{attrs:{"label-width":"0"}},[i("div",{staticClass:"slide-panel-actions"},[i("ElButton",{attrs:{type:"primary","native-type":"submit",size:"mini"}},[e._v(" \u5F00\u59CB\u641C\u7D22 ")]),i("ElButton",{attrs:{size:"mini"},on:{click:e.onClearClick}},[e._v(" \u6E05\u9664\u6761\u4EF6 ")])],1)])],1)],1)]):e._e()]),e._t("default")],2)},Cl=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"slide-panel-line"},[i("div",{staticClass:"slide-panel-line-indicator"})])}],Qo="";const kl=["back","create","save","withdraw","edit","submit","publish","agree","disagree","reject","finish","cancel","enable","exp","imp","del","disabled","reload","slot"],Bl={name:"TableView",bus:{reloadTableView(e,t){if(!!this._viewIds)if(l.isString(e)||l.isArray(e)){let i=e;l.isString(i)&&(i=i.split(",")),this._viewIds.some(r=>i.includes(r))&&(t?this.$refs.tree&&(l.trace.call(this.$parent||{},"reloadTree"),this.refreshTree()):(l.trace.call(this.$parent||{},"reloadTable"),this.reloadTable()))}else l.warning.call(this.$parent||{},"`viewId`\u7684\u7C7B\u578B\u5FC5\u987B\u662F\u5B57\u7B26\u4E32\u6216\u6570\u7EC4")}},props:{viewId:{type:String,default:void 0},searchPanelAttrs:{type:Object,default:()=>{}},toolbarAttrs:{type:Object,default:()=>{}},toolbarListeners:{type:Object,default:void 0},treeAttrs:{type:Object,default:()=>{}},treeListeners:{type:Object,default:void 0},tableAttrs:{type:Object,default:void 0},searchModel:{type:Object,default:void 0},tableListeners:{type:Object,default:()=>{}},deleteApi:{type:Function,default:void 0},borderTop:Boolean,borderBottom:Boolean,borderLeft:Boolean,borderRight:Boolean,border:{type:Boolean,default:!0},labelWidth:{type:String,default:"80px"},formPath:{type:[String,Function],default:void 0}},data(){var e;return{importDialogVisible:!1,right:-(((e=this.searchPanelAttrs)==null?void 0:e.width)||350),selectedRows:[]}},computed:{buttonSlots(){return kl.filter(e=>this.$scopedSlots[e])},toolbarProps(){var r,n;const e={},t=l.merge(this.toolbarAttrs,e);let i=(t==null?void 0:t.buttons)||this.$parent.buttons;return i=i||[],i.includes("reload")||(i=[...i,"reload"]),t.buttons=i,t.buttons=l.toStringArray(t.buttons),t.searchable=!!((n=(r=this.$scopedSlots)["search-form"])!=null&&n.call(r)),t},treeProps(){const e={treeProps:{children:"children",label:"label",isLeaf:t=>l.hasOwn(t,"hasChildren")?!t.hasChildren:l.hasOwn(t,"hasChild")?!t.hasChild:!0},show:!1,lazy:!0,readonly:!0,data:[],"expand-first-node":!1,"default-expand-all":!1};return l.merge(this.treeAttrs,e)},tableProps(){const e=this.tableAttrs.api||this.$parent.getPage,t={model:this.searchModel||{},height:"auto","highlight-current-row":!0,api:e};return l.merge(this.tableAttrs,t)},searchPanelProps(){const e={width:350,model:this.searchModel||{}};return l.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)},async activated(){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},async onSearchClick(){this.$refs.table.setModel(this.searchModel||this.searchPanelProps.model),await this.refreshTable()},async onClearClick(){this.$emit("reset"),this.$refs.form.resetFields(),this.$refs.table.setModel(this.searchModel||this.searchPanelProps.model),await this.refreshTable()},openFrom(e){this.$router.push(lr(this.formPath,e))},rowDbClick(e){var t;!((t=this.tableListeners)!=null&&t["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()},async del(){var t;const e=this.deleteApi||this.$parent.del;if(!((t=this.toolbarListeners)!=null&&t.del)&&l.isFunction(e)){if(!this.selectedRows.length){this.$message.warning("\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u8BB0\u5F55\uFF01");return}await this.$confirm(`\u60A8\u786E\u5B9A\u8981\u5220\u9664\u9009\u4E2D\u7684[<span class="break-word" style="color: orange">${this.selectedRows.length}</span>]\u884C\u8BB0\u5F55\u5417\uFF1F`,"\u7CFB\u7EDF\u63D0\u793A",{type:"warning",modal:!0,dangerouslyUseHTMLString:!0,closeOnClickModal:!1,beforeClose:async(i,r,n)=>{if(i==="confirm")try{r.confirmButtonLoading=!0,r.confirmButtonText="\u5220\u9664...",await e.call(this,this.selectedRows.map(s=>s.id).join(",")),this.$message.success("\u5220\u9664\u6210\u529F"),await this.reloadTable(),await this.refreshTree()}catch{}n()}}).catch(i=>i)}},reloadTable(){var e;(e=this.$refs.table)==null||e.reload()},async refreshTable(){var e;await((e=this.$refs.table)==null?void 0:e.getPage())},refreshTree(){this.$refs.tree.reloadTree()},getSearchModel(){return this.searchPanelProps.model}}},ii={};var Fl=p(Bl,Sl,Cl,!1,Tl,null,null,null);function Tl(e){for(let t in ii)this[t]=ii[t]}var He=function(){return Fl.exports}(),Ve={name:"JSXComponent",props:{msg:{type:String,default:""}},render(){return arguments[0]("div",[this.msg])}},Pl=function(){var e=this,t=e.$createElement;return e._self._c,e._m(0)},Il=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"not-implement"},[i("div",[i("i",{staticClass:"fa fa-wrench"}),e._v(" \u5EFA\u8BBE\u4E2D... ")])])}],Zo="";const El={name:"NotImplement"},ri={};var Nl=p(El,Pl,Il,!1,Rl,null,null,null);function Rl(e){for(let t in ri)this[t]=ri[t]}var Ge=function(){return Nl.exports}();function Ol(e,t){for(let i=0;i<t.length;i++)if(e===t[i])return!0;return!1}const ni=function(){return document.addEventListener?function(e,t,i){e&&t&&i&&e.addEventListener(t,i,!1)}:function(e,t,i){e&&t&&i&&e.attachEvent(`on${t}`,i)}}(),si=function(){return document.removeEventListener?function(e,t,i){e&&t&&e.removeEventListener(t,i,!1)}:function(e,t,i){e&&t&&e.detachEvent(`on${t}`,i)}}();var Ml=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"outerWrapper",class:e.wrapperClasses},[e.isHorizontal?i("div",{class:`${e.prefix}-horizontal`},[i("div",{class:[`${e.prefix}-pane`,"left-pane"],style:{right:`${e.anotherOffset}%`}},[e._t("left")],2),i("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[i("Trigger",{attrs:{mode:"vertical"}})]})],2),i("div",{class:[`${e.prefix}-pane`,"right-pane"],style:{left:`calc(${e.offset}% + ${e.triggerSize}px)`}},[e._t("right")],2)]):i("div",{class:`${e.prefix}-vertical`},[i("div",{class:[`${e.prefix}-pane`,"top-pane"],style:{bottom:`${e.anotherOffset}%`}},[e._t("top")],2),i("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[i("Trigger",{attrs:{mode:"horizontal"}})]})],2),i("div",{class:[`${e.prefix}-pane`,"bottom-pane"],style:{top:`calc(${e.offset}% + ${e.triggerSize}px)`}},[e._t("bottom")],2)])])},Ll=[],eu="";const zl={name:"SplitPane",props:{value:{type:[Number,String],default:.5},mode:{validator(e){return Ol(e,["horizontal","vertical"])},default:"horizontal"},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(){this.offset=(this.valueIsPx?this.px2percent(this.value,this.$refs.outerWrapper[this.offsetSize]):this.value)*1e4/100}},mounted(){this.$nextTick(()=>{this.offset=(this.valueIsPx?this.px2percent(this.value,this.$refs.outerWrapper[this.offsetSize]):this.value)*1e4/100})},methods:{px2percent(e,t){return parseFloat(e)/parseFloat(t)},getComputedThresholdValue(e){const t=this.$refs.outerWrapper[this.offsetSize];return this.valueIsPx?typeof this[e]=="string"?this[e]:t*this[e]:typeof this[e]=="string"?this.px2percent(this[e],t):this[e]},getMin(e,t){return this.valueIsPx?`${Math.min(parseFloat(e),parseFloat(t))}px`:Math.min(e,t)},getMax(e,t){return this.valueIsPx?`${Math.max(parseFloat(e),parseFloat(t))}px`:Math.max(e,t)},getAnotherOffset(e){let t=0;return this.valueIsPx?t=`${this.$refs.outerWrapper[this.offsetSize]-parseFloat(e)}px`:t=1-e,t},handleMove(e){const i=(this.isHorizontal?e.pageX:e.pageY)-this.initOffset,r=this.$refs.outerWrapper[this.offsetSize];let n=this.valueIsPx?`${parseFloat(this.oldOffset)+i}px`:this.px2percent(r*this.oldOffset+i,r);const s=this.getAnotherOffset(n);parseFloat(n)<=parseFloat(this.computedMin)&&(n=this.getMax(n,this.computedMin)),parseFloat(s)<=parseFloat(this.computedMax)&&(n=this.getAnotherOffset(this.getMax(s,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",n),this.$emit("on-moving",e)},handleUp(){this.isMoving=!1,si(window,"mousemove",this.handleMove),si(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,ni(window,"mousemove",this.handleMove),ni(window,"mouseup",this.handleUp),this.$emit("on-move-start")}}},ai={};var Al=p(zl,Ml,Ll,!1,Dl,null,null,null);function Dl(e){for(let t in ai)this[t]=ai[t]}var Xe=function(){return Al.exports}(),jl=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{class:e.classes},[e.showIcon?i("div",{class:e.barConClasses},e._m(0),0):e._e()])},Kl=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return e._l(8,function(r){return i("i",{key:`trigger-${r}`,class:`${e.prefix}-bar`})})}],tu="";const Wl={name:"Trigger",props:{mode:{type:String,default:void 0},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"]}}},li={};var ql=p(Wl,jl,Kl,!1,Hl,null,null,null);function Hl(e){for(let t in li)this[t]=li[t]}var Ue=function(){return ql.exports}();const oi={back:{label:"\u8FD4\u56DE",type:"primary",icon:"el-icon-d-arrow-left"},cancel:{label:"\u53D6\u6D88",icon:"fa fa-undo"},create:{label:"\u65B0\u589E",type:"primary",icon:"el-icon-plus"},save:{label:"\u4FDD\u5B58",type:"primary",icon:"fa fa-save"},withdraw:{label:"\u64A4\u56DE",type:"primary",icon:"fa fa-undo"},edit:{label:"\u7F16\u8F91",type:"primary",icon:"el-icon-edit-outline"},submit:{label:"\u63D0\u4EA4\u5BA1\u6279",type:"primary",icon:"fa fa-check"},publish:{label:"\u53D1\u5E03",type:"primary",icon:"fa fa-send"},agree:{label:"\u540C\u610F",type:"primary",icon:"fa fa-check-square-o"},disagree:{label:"\u4E0D\u540C\u610F",type:"primary",icon:"fa fa-mail-reply"},reject:{label:"\u9000\u56DE",type:"primary",icon:"fa fa-reply"},finish:{label:"\u5B8C\u6210",type:"primary",icon:"fa fa-check-square"},enable:{label:"\u542F\u7528",type:"primary",icon:"el-icon-circle-check"},exp:{label:"\u5BFC\u51FA",type:"primary",icon:"el-icon-download"},imp:{label:"\u5BFC\u5165",type:"primary",icon:"el-icon-upload"},del:{label:"\u5220\u9664",type:"primary",icon:"el-icon-delete"},disabled:{label:"\u7981\u7528",type:"primary",icon:"el-icon-remove-outline"},reload:{label:"\u5237\u65B0",type:"primary",icon:"el-icon-refresh"},search:{label:"\u641C\u7D22",icon:"el-icon-search",separateLine:!1}};var Vl={name:"Toolbar",provide(){return{toolbar:this}},props:{searchable:Boolean,buttons:{type:Array,default:()=>["back"]},back:{type:Function,default:void 0},cancel:{type:Function,default:void 0},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,t){this.emitter==="parent"?this.$parent&&this.$parent.$emit(e,t,this):this.$emit(e,t,this)},createButton(e,{label:t,icon:i,type:r,separateLine:n=!0}){var u;const s=this.$createElement;let a;const d=((u=this.label)==null?void 0:u[e])||t;return["back","cancel"].includes(e)?a=this.goBack:a=c=>(this.$listeners[e]||l.NOOP)(c),s("ToolbarButton",{attrs:{"separate-line":n,icon:i,label:d,footer:this.footer,type:r},on:{click:a}})},getLeftButtons(){var i,r;const{createButton:e}=this;return((r=(i=this.$scopedSlots)["toolbar-left"])==null?void 0:r.call(i))||this.buttons.map(n=>{var a,d,u,c,f;const s=oi[n];return s?((d=(a=this.$scopedSlots)[n])==null?void 0:d.call(a))||e(n,s):n==="slot"&&(f=(c=(u=this.$scopedSlots).default)==null?void 0:c.call(u,{buttons:this.buttons,footer:this.footer}))!=null?f:null})},getRightButtons(){var t,i;return((i=(t=this.$scopedSlots)["toolbar-right"])==null?void 0:i.call(t))||this.getSearchButton()},getSearchButton(){const{createButton:e}=this;return this.searchable?e("search",oi.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()])])}},iu="";let Gl,Xl;const ui={};var Ul=p(Vl,Gl,Xl,!1,Jl,null,null,null);function Jl(e){for(let t in ui)this[t]=ui[t]}var Je=function(){return Ul.exports}(),Yl=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.footer||e.toolbar.footer?i("ElButton",{attrs:{disabled:e.disabled||e.loading,type:e.type},on:{click:e.onClick}},[e._v(" "+e._s(e.label)+" ")]):i("span",{staticClass:"form-toolbar-button"},[i("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?i("span",{staticClass:"separate-line"}):e._e()],1)},Ql=[],ru="";const Zl={name:"ToolbarButton",inject:{toolbar:{default:""}},props:{label:{type:String,default:void 0},icon:{type:String,default:void 0},type:{type:String,default:void 0},disabled:Boolean,separateLine:{type:Boolean,default:!0},footer:Boolean},data(){return{loading:!1}},methods:{async onClick(e){this.loading=!0;const{click:t}=this.$listeners;if(l.isFunction(t))try{await t(e)}catch{}this.loading=!1}}},ci={};var eo=p(Zl,Yl,Ql,!1,to,null,null,null);function to(e){for(let t in ci)this[t]=ci[t]}var Ye=function(){return eo.exports}();const io="1.0.15";function ro(e){e.component(X.name,X),e.component(K.name,K),e.component(U.name,U),e.component(J.name,J),e.component(Y.name,Y),e.component(ee.name,ee),e.component(te.name,te),e.component(ie.name,ie),e.component(re.name,re),e.component(ne.name,ne),e.component(se.name,se),e.component(ae.name,ae),e.component(oe.name,oe),e.component(ue.name,ue),e.component(ce.name,ce),e.component(de.name,de),e.component(he.name,he),e.component(pe.name,pe),e.component(fe.name,fe),e.component(me.name,me),e.component(_e.name,_e),e.component(ye.name,ye),e.component(ve.name,ve),e.component(be.name,be),e.component(xe.name,xe),e.component($e.name,$e),e.component(we.name,we),e.component(Se.name,Se),e.component(Ce.name,Ce),e.component(ke.name,ke),e.component(Be.name,Be),e.component(Fe.name,Fe),e.component(Te.name,Te),e.component(Pe.name,Pe),e.component(Ie.name,Ie),e.component(Ee.name,Ee),e.component(Ne.name,Ne),e.component(Re.name,Re),e.component(Oe.name,Oe),e.component(Me.name,Me),e.component(ze.name,ze),e.component(Ae.name,Ae),e.component(De.name,De),e.component(je.name,je),e.component(Ke.name,Ke),e.component(qe.name,qe),e.component(He.name,He),e.component(Ve.name,Ve),e.component(Ge.name,Ge),e.component(Xe.name,Xe),e.component(Ue.name,Ue),e.component(Je.name,Je),e.component(Ye.name,Ye)}o.AwesomeButton=me,o.CapsuleTab=X,o.CodeMirrorEditor=ye,o.ConfirmButton=U,o.Confirmable=K,o.ContextMenu=J,o.EditableProgress=Y,o.EditableTree=ee,o.ElementDialog=ve,o.EmptyView=be,o.ErrorView=te,o.FlexColumn=xe,o.FlexItem=$e,o.FlexRow=we,o.FlexScroller=Se,o.FormButton=_e,o.FormCascader=Ce,o.FormCheckboxGroup=ke,o.FormDatePicker=Be,o.FormHolder=Fe,o.FormInput=Te,o.FormInputEmail=Pe,o.FormInputIdCard=Ie,o.FormInputNumber=Ee,o.FormInputPhoneNumber=Ne,o.FormInputTime=Re,o.FormItem=Oe,o.FormItemConfigProvider=Me,o.FormItemGroup=ze,o.FormRadioGroup=Ae,o.FormSelect=De,o.FormSwitch=je,o.FormTextarea=Ke,o.FormView=qe,o.GuideSteps=ie,o.InputNumber=re,o.JSXComponent=Ve,o.LoadingView=ne,o.NotImplement=Ge,o.PageableTable=se,o.PageableView=ae,o.ResizeObserver=oe,o.SignPanel=ue,o.SplitPane=Xe,o.Stateful=ce,o.Swiper=de,o.TableColumn=he,o.TableView=He,o.Toolbar=Je,o.ToolbarButton=Ye,o.Trigger=Ue,o.VueTagsInput=pe,o.Watermark=fe,o.default=ro,o.version=io,Object.defineProperties(o,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/package.json
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@web-utils/component",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.15",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"main": "./dist/index.js",
|
|
7
|
-
"module": "./dist/index.js",
|
|
6
|
+
"main": "./dist/index.umd.js",
|
|
7
|
+
"module": "./dist/index.es.js",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
|
-
"
|
|
10
|
+
"require": "./dist/index.umd.js",
|
|
11
|
+
"import": "./dist/index.es.js"
|
|
11
12
|
},
|
|
12
|
-
"
|
|
13
|
-
"./style.css": "./dist/style.css",
|
|
14
|
-
"./package.json": "./package.json"
|
|
13
|
+
"./*": "./*"
|
|
15
14
|
},
|
|
16
15
|
"files": [
|
|
17
16
|
"dist",
|