@bsgoal/common 1.4.6 → 1.4.8

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.umd.js CHANGED
@@ -1,2 +1,2 @@
1
- (function(x,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("element-plus")):typeof define=="function"&&define.amd?define(["exports","vue","element-plus"],e):(x=typeof globalThis<"u"?globalThis:x||self,e(x["bsgoal-common"]={},x.Vue,x["element-plus"]))})(this,function(x,e,O){"use strict";var Dt=Object.defineProperty;var le=Object.getOwnPropertySymbols;var Ot=Object.prototype.hasOwnProperty,Ft=Object.prototype.propertyIsEnumerable;var ae=(x,e,O)=>e in x?Dt(x,e,{enumerable:!0,configurable:!0,writable:!0,value:O}):x[e]=O,re=(x,e)=>{for(var O in e||(e={}))Ot.call(e,O)&&ae(x,O,e[O]);if(le)for(var O of le(e))Ft.call(e,O)&&ae(x,O,e[O]);return x};const t={INPUT:"text",INPUT_NUMBER:"number",INPUT_TEXT_AREA:"textarea",SELECT:"select",SLIDER:"slider",SWITCH:"switch",RADIO:"radio",CHECKBOX:"checkbox",DATE:"date",WEEK:"week",MONTH:"month",YEAR:"year",DATE_RANGE:"daterange",MONTH_RANGE:"monthrange",TIME:"time",TIME_RANGE:"timerange",DATE_TIME:"datetime",DATE_TIME_RANGE:"datetimerange",OPERATION:"operation",CASCADER:"cascader"};let q=null;const J=a=>{const i=[],c=[],d=(l=[])=>{const r=l.map(E=>E.width),g=Math.max(...r);l.forEach(E=>{const{labelEl:V}=E;V.style.width=`${g}px`})},u=()=>{if(a){const l=a.querySelectorAll(".el-form-item__label");if(l&&l.length){let r=0;l.forEach((g,E)=>{g.style.width="initial",g.style.whiteSpace="nowrap";const{x:V=0,width:k=0}=g.getBoundingClientRect(),N={x:V,width:k,labelEl:g};E===0&&(r=V),V===r?i.push(N):c.push(N)})}}};q&&clearTimeout(q),q=setTimeout(()=>{u(),d(i),d(c)},50)},Q={align:{created(a){window.addEventListener("resize",()=>{J(a)})},mounted(a){J(a)},unmounted(a){window.removeEventListener("resize",J(a))}},height:(a,{value:i=65,arg:c=""})=>{if(a){const{y:d=0}=a.getBoundingClientRect();a.style.height=`calc(100vh - ${d+i}px)`}}},St="",ce={class:"bsgoal-base-form"},se={class:"base_form"},ie={key:1},de=Object.assign({name:"BsgoalBaseForm"},{props:{configOptions:{type:[Array],default:()=>[]},medium:{type:[Number,String],default:24},values:{type:[Object],default:()=>({})}},emits:["on-form","on-clear","on-change","on-fold"],setup(a,{expose:i,emit:c}){const d=a,u=e.ref(null),l=Q.align,r=e.ref({});e.watchEffect(()=>{const{configOptions:f,values:p}=d,B=e.unref(f),m=e.unref(p);B.forEach(h=>{const{value:b="",prop:w="",type:A=""}=h;[t.INPUT,t.INPUT_TEXT_AREA].includes(A),r.value[w]=m[w]||b})});const g=e.computed(()=>{const{configOptions:f}=d;return e.unref(f).map(m=>{let{rules:h=!1,label:b=""}=m;const w={required:!0,message:`${b}不能为空`,trigger:"blur"};return h&&(typeof h=="boolean"?h=[w]:Array.isArray(h)?h=[w,...h]:h=[w,h]),m.rules=h,m})}),E=(f="",p="",B="")=>{if(!B)switch(f){case t.INPUT:case t.INPUT_TEXT_AREA:return`请输入${p}`;case t.SELECT:case t.DATE:case t.WEEK:case t.MONTH:case t.YEAR:case t.DATE_TIME:case t.TIME:return`请选择${p}`;case t.DATE_RANGE:case t.DATE_TIME_RANGE:return["开始日期","结束日期"];case t.TIME_RANGE:return["开始时间","结束时间"];case t.MONTH_RANGE:return["开始月份","结束月份"]}return B},V=(f="",p="")=>{if(!p)switch(f){case t.WEEK:return"ww";case t.DATE:case t.DATE_RANGE:return"YYYY-MM-DD";case t.MONTH:return"MM";case t.YEAR:return"YYYY";case t.MONTH_RANGE:return"YYYY-MM";case t.TIME:case t.TIME_RANGE:return"HH:mm:ss";case t.DATE_TIME:case t.DATE_TIME_RANGE:return"YYYY-MM-DD HH:mm:ss"}return p},k=()=>{const f=e.unref(r),{configOptions:p}=d,B=e.unref(p);for(const m of B){const{type:h="",range:b=[],prop:w=""}=m;if(h.endsWith("range")&&b&&b.length===2){const{0:A="",1:$=""}=f[w],{0:D="",1:T=""}=b;f[D]=A,f[T]=$}}return c("on-form",f),f},N=()=>{u.value.resetFields(),c("on-clear",r.value)},C=(f,p)=>{const B={type:f,prop:p,value:r.value[p]||""};c("on-change",B)};return i({triggerOperationClear:N,triggerOperationForm:k,validateForm:(f=()=>{})=>{u.value.validate((p=!1,B={})=>{if(p){const m=k();f(m)}else{f(!1),console.log("field",B);const m=Object.keys(B)[0],{[m]:{0:{message:h=""}}}=B;O.ElMessage.error(h)}})}}),(f,p)=>{const B=e.resolveComponent("el-input"),m=e.resolveComponent("el-input-number"),h=e.resolveComponent("el-radio"),b=e.resolveComponent("el-radio-group"),w=e.resolveComponent("el-option"),A=e.resolveComponent("el-select"),$=e.resolveComponent("el-slider"),D=e.resolveComponent("el-switch"),T=e.resolveComponent("el-date-picker"),F=e.resolveComponent("el-time-picker"),I=e.resolveComponent("el-checkbox"),z=e.resolveComponent("el-checkbox-group"),L=e.resolveComponent("el-form-item"),ee=e.resolveComponent("el-col"),te=e.resolveComponent("el-row"),oe=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",ce,[e.createElementVNode("div",se,[e.withDirectives((e.openBlock(),e.createBlock(oe,{ref_key:"EL_FORM_REF",ref:u,"label-suffix":":",model:r.value},{default:e.withCtx(()=>[e.createVNode(te,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(g),({label:S="",prop:_="",type:n="text",placeholder:s="",readonly:M=!1,clearable:W=!0,rows:X=2,min:K=1,max:G=10,range:P=[],format:R="",rules:Y=[]}={},j)=>(e.openBlock(),e.createBlock(ee,{key:j,xs:24,sm:24,md:a.medium},{default:e.withCtx(()=>[e.createVNode(L,{label:S,prop:_,rules:Y},{default:e.withCtx(()=>[M?(e.openBlock(),e.createElementBlock("div",ie,e.toDisplayString(r.value[_]),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[n===e.unref(t).INPUT?(e.openBlock(),e.createBlock(B,{key:0,modelValue:r.value[_],"onUpdate:modelValue":o=>r.value[_]=o,placeholder:E(n,S,s),clearable:W,onChange:o=>C(n,_)},null,8,["modelValue","onUpdate:modelValue","placeholder","clearable","onChange"])):e.createCommentVNode("",!0),n===e.unref(t).INPUT_TEXT_AREA?(e.openBlock(),e.createBlock(B,{key:1,modelValue:r.value[_],"onUpdate:modelValue":o=>r.value[_]=o,type:"textarea",rows:X,clearable:W,placeholder:E(n,S,s),onChange:o=>C(n,_)},null,8,["modelValue","onUpdate:modelValue","rows","clearable","placeholder","onChange"])):e.createCommentVNode("",!0),n===e.unref(t).INPUT_NUMBER?(e.openBlock(),e.createBlock(m,{key:2,modelValue:f.num,"onUpdate:modelValue":p[0]||(p[0]=o=>f.num=o),min:K,max:G,onChange:C},null,8,["modelValue","min","max"])):e.createCommentVNode("",!0),n===e.unref(t).RADIO?(e.openBlock(),e.createBlock(b,{key:3,modelValue:r.value[_],"onUpdate:modelValue":o=>r.value[_]=o,onChange:o=>C(n,_)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(P,(o,U)=>(e.openBlock(),e.createBlock(h,{key:U,label:o.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.label),1)]),_:2},1032,["label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])):e.createCommentVNode("",!0),n===e.unref(t).SELECT?(e.openBlock(),e.createBlock(A,{key:4,modelValue:r.value[_],"onUpdate:modelValue":o=>r.value[_]=o,placeholder:E(n,S,s),onChange:o=>C(n,_)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(P,(o,U)=>(e.openBlock(),e.createBlock(w,{key:U,label:o.label,value:o.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder","onChange"])):e.createCommentVNode("",!0),n===e.unref(t).SLIDER?(e.openBlock(),e.createBlock($,{key:5,modelValue:r.value[_],"onUpdate:modelValue":o=>r.value[_]=o,min:K,max:G,onChange:o=>C(n,_)},null,8,["modelValue","onUpdate:modelValue","min","max","onChange"])):e.createCommentVNode("",!0),n===e.unref(t).SWITCH?(e.openBlock(),e.createBlock(D,{key:6,modelValue:r.value[_],"onUpdate:modelValue":o=>r.value[_]=o,"active-value":P[0]||!0,"inactive-value":P[1]||!1,onChange:o=>C(n,_)},null,8,["modelValue","onUpdate:modelValue","active-value","inactive-value","onChange"])):e.createCommentVNode("",!0),[e.unref(t).DATE,e.unref(t).MONTH,e.unref(t).YEAR,e.unref(t).DATE_TIME].includes(n)?(e.openBlock(),e.createBlock(T,{key:7,modelValue:r.value[_],"onUpdate:modelValue":o=>r.value[_]=o,format:V(n,R),"value-format":V(n,R),type:n,placeholder:E(n,S,s),onChange:o=>C(n,_)},null,8,["modelValue","onUpdate:modelValue","format","value-format","type","placeholder","onChange"])):e.createCommentVNode("",!0),[e.unref(t).DATE_RANGE,e.unref(t).MONTH_RANGE,e.unref(t).DATE_TIME_RANGE].includes(n)?(e.openBlock(),e.createBlock(T,{key:8,modelValue:r.value[_],"onUpdate:modelValue":o=>r.value[_]=o,type:n,"value-format":V(n,R),"start-placeholder":E(n,S,s)[0],"end-placeholder":E(n,S,s)[1],onChange:o=>C(n,_)},null,8,["modelValue","onUpdate:modelValue","type","value-format","start-placeholder","end-placeholder","onChange"])):e.createCommentVNode("",!0),[e.unref(t).TIME].includes(n)?(e.openBlock(),e.createBlock(F,{key:9,modelValue:r.value[_],"onUpdate:modelValue":o=>r.value[_]=o,"arrow-control":"","value-format":V(n,R),placeholder:E(n,S,s),onChange:o=>C(n,_)},null,8,["modelValue","onUpdate:modelValue","value-format","placeholder","onChange"])):e.createCommentVNode("",!0),[e.unref(t).TIME_RANGE].includes(n)?(e.openBlock(),e.createBlock(F,{key:10,modelValue:r.value[_],"onUpdate:modelValue":o=>r.value[_]=o,"is-range":"","value-format":V(n,R),"start-placeholder":E(n,S,s)[0],"end-placeholder":E(n,S,s)[1],onChange:o=>C(n,_)},null,8,["modelValue","onUpdate:modelValue","value-format","start-placeholder","end-placeholder","onChange"])):e.createCommentVNode("",!0),[e.unref(t).CHECKBOX].includes(n)?(e.openBlock(),e.createBlock(z,{key:11,modelValue:r.value[_],"onUpdate:modelValue":o=>r.value[_]=o,onChange:o=>C(n,_)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(P,(o,U)=>(e.openBlock(),e.createBlock(I,{key:U,label:o.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.label),1)]),_:2},1032,["label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])):e.createCommentVNode("",!0),[].includes(n)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:12},[],64)):e.createCommentVNode("",!0)],64))]),_:2},1032,["label","prop","rules"])]),_:2},1032,["md"]))),128))]),_:1})]),_:1},8,["model"])),[[e.unref(l)]])])])}}}),Rt="",ue={class:"bsgoal-base-table-content"},_e={class:"bas_tabl_content"},me=Object.assign({name:"BsgoalBaseTableContent"},{props:{data:{type:[String,Number,Object,Number,Boolean],default:""}},setup(a){return(i,c)=>(e.openBlock(),e.createElementBlock("div",ue,[e.createElementVNode("div",_e,e.toDisplayString(a.data),1)]))}});/*! Element Plus v2.3.3 */var fe={name:"zh-cn",el:{colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"}}};const It="",pe={class:"bsgoal-base-table-pagination"},he={class:"base_table_pagination"},ge=e.createElementVNode("span",null,"总数",-1),Ee=Object.assign({name:"BsgoalBaseTablePagination"},{props:{currentPage:{type:[Number],default:1},pageSizes:{type:[Array],default:()=>[10,20,30,40,50,100]},pageSize:{type:[Number],default:10},total:{type:[Number],default:0}},emits:["on-size-change","on-current-change"],setup(a,{emit:i}){const c=(l=0)=>{i("on-size-change",l)},d=(l=1)=>{i("on-current-change",l)},u=e.ref(1);return(l,r)=>{const g=e.resolveComponent("el-pagination"),E=e.resolveComponent("el-config-provider");return e.openBlock(),e.createElementBlock("div",pe,[e.createElementVNode("div",he,[e.createVNode(E,{locale:e.unref(fe)},{default:e.withCtx(()=>[e.createVNode(g,{background:"",layout:"total, sizes, prev, pager, next, jumper","current-page":u.value,"onUpdate:currentPage":r[0]||(r[0]=V=>u.value=V),"page-sizes":a.pageSizes,"page-size":a.pageSize,total:a.total,onSizeChange:c,onCurrentChange:d},{next:e.withCtx(()=>[ge]),_:1},8,["current-page","page-sizes","page-size","total"])]),_:1},8,["locale"])])])}}}),Be=(a=null,{expression:i=75,arg:c={}}={})=>{const d=e.unref(a);if(d){const u=d.querySelector(".el-table");u&&e.nextTick(()=>{const{y:l=0}=u.getBoundingClientRect();u.style.height=`calc(100vh - ${l+i}px)`})}},Z=(a=Promise.resolve(),i=null,c=e.ref(!1),d=e.ref(null))=>{const u=e.ref("");return c.value=!0,a.then((l={})=>{const{data:r={},message:g=""}=l;d.value=r,u.value=g,i&&i(!0,r),c.value=!1}).catch((l={})=>{if(typeof l=="object"){const{message:r=""}=l;u.value=r}else u.value=l;i&&i(!1,l),c.value=!1}).finally(()=>{c.value=!1}),{data:d,message:u,loading:c}},Pt="",ke={class:"bsgoal-base-table"},Ce={class:"base_table"},Ve={key:0,class:"base_table_menu"},ne=Object.assign({name:"BsgoalBaseTable"},{props:{configOptions:{type:[Array],default:()=>[]},data:{type:[Array],default:()=>[]},selection:{type:[Boolean],default:!1},operation:{type:[Boolean],default:!1},operationWidth:{type:[String,Number],default:100},loading:{type:[Boolean],default:!1},fetch:{type:[Object,Function],default:null},call:{type:[Object,Function],default:null},mapProps:{type:[Object],default:()=>({currentPage:"currentPage",pageSize:"pageSize",rows:"rows",total:"total"})},expression:{type:[Number],default:75}},setup(a,{expose:i}){const c=a,d=e.computed(()=>{const{configOptions:m=[],operation:h=!1,operationWidth:b=0}=c,w=e.unref(m),A=[];return h&&A.push({label:"操作",fixed:"right",prop:"operation",width:b}),[...w,...A]}),u=e.ref(null),l=e.inject("transferFoldStatus");e.watchEffect(()=>{const m=l?l.value:!1,h=e.unref(c.expression);Be(u,{arg:m,expression:h})});const r=e.ref(1),g=e.ref(10),E=e.ref(0),V=e.ref({}),k=e.ref(c.loading),N=e.ref(c.data),C=e.ref({}),y=()=>{const{fetch:m,call:h,mapProps:b}=c,w=V.value,A=r.value,$=g.value,D=re({},w),T=e.unref(b);D[T.currentPage]=A,D[T.pageSize]=$,Z(m(D),h,k,C)};e.watch(C,m=>{const{mapProps:h}=c,b=e.unref(h);N.value=m[b.rows],E.value=m[b.total]});const f=(m={})=>{V.value=m,r.value=1,y()},p=(m=1)=>{r.value=m},B=(m=10)=>{g.value=m};return e.watch([r,g],()=>{y()}),i({refreshList:f}),(m,h)=>{const b=e.resolveComponent("el-table-column"),w=e.resolveComponent("el-table"),A=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",ke,[e.createElementVNode("div",Ce,[m.$slots.menu?(e.openBlock(),e.createElementBlock("div",Ve,[e.renderSlot(m.$slots,"menu")])):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"EL_TABLE_WRAP_REF",ref:u},[e.withDirectives((e.openBlock(),e.createBlock(w,{stripe:"",border:"","highlight-current-row":"",style:{width:"100%"},data:N.value,"header-cell-style":{fontWeight:"bold",backgroundColor:"#EBEEF5",color:"rgba(0,0,0,.85)",fontSize:"14px"}},{empty:e.withCtx(()=>[]),default:e.withCtx(()=>[a.selection?(e.openBlock(),e.createBlock(b,{key:0,fixed:"left",type:"selection",width:"40"})):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(d),({prop:$="",label:D="",align:T="center",width:F="",fixed:I=!1}={},z)=>(e.openBlock(),e.createBlock(b,{key:z,label:D,align:T,width:F,fixed:I,"min-width":`${D.length*14+24}px`},{default:e.withCtx(({row:L})=>[e.renderSlot(m.$slots,$,{row:L},()=>[e.createVNode(me,{data:L[$]},null,8,["data"])])]),_:2},1032,["label","align","width","fixed","min-width"]))),128))]),_:3},8,["data","header-cell-style"])),[[A,k.value]])],512),e.createVNode(Ee,{total:E.value,onOnCurrentChange:p,onOnSizeChange:B},null,8,["total"])])])}}}),Yt="",v=Object.assign({name:"BsgoalBaseLine"},{props:{vertical:{type:[Boolean],default:!1}},setup(a){return(i,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["bsgoal-base-line",{"bsgoal-base-line__vertical":a.vertical}])},[e.createElementVNode("div",{class:e.normalizeClass(["base_line",{base_line__vertical:a.vertical}])},null,2)],2))}});/*! Element Plus Icons Vue v2.1.0 */var H=(a,i)=>{let c=a.__vccOpts||a;for(let[d,u]of i)c[d]=u;return c},Ne={name:"ArrowDown"},be={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},we=e.createElementVNode("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"},null,-1),Te=[we];function xe(a,i,c,d,u,l){return e.openBlock(),e.createElementBlock("svg",be,Te)}var Ae=H(Ne,[["render",xe],["__file","arrow-down.vue"]]),$e={name:"ArrowLeft"},ye={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},De=e.createElementVNode("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"},null,-1),Oe=[De];function Fe(a,i,c,d,u,l){return e.openBlock(),e.createElementBlock("svg",ye,Oe)}var Se=H($e,[["render",Fe],["__file","arrow-left.vue"]]),Me={name:"ArrowRight"},Re={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Ue=e.createElementVNode("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"},null,-1),Ie=[Ue];function Le(a,i,c,d,u,l){return e.openBlock(),e.createElementBlock("svg",Re,Ie)}var Pe=H(Me,[["render",Le],["__file","arrow-right.vue"]]),ze={name:"ArrowUp"},Ye={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},He=e.createElementVNode("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0z"},null,-1),je=[He];function Ge(a,i,c,d,u,l){return e.openBlock(),e.createElementBlock("svg",Ye,je)}var We=H(ze,[["render",Ge],["__file","arrow-up.vue"]]),Xe={name:"Delete"},Ke={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},qe=e.createElementVNode("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"},null,-1),Je=[qe];function Qe(a,i,c,d,u,l){return e.openBlock(),e.createElementBlock("svg",Ke,Je)}var Ze=H(Xe,[["render",Qe],["__file","delete.vue"]]),ve={name:"Search"},et={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},tt=e.createElementVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704z"},null,-1),ot=[tt];function nt(a,i,c,d,u,l){return e.openBlock(),e.createElementBlock("svg",et,ot)}var lt=H(ve,[["render",nt],["__file","search.vue"]]);const jt="",at={class:"bsgoal-base-search-operation"},rt=Object.assign({name:"BsgoalBaseSearchOperation"},{props:{fold:{type:[Boolean],default:!1}},emits:["on-fold"],setup(a,{emit:i}){const c=e.ref(!1),d=()=>{c.value=!e.unref(c),i("on-fold",c.value)};return(u,l)=>{const r=e.resolveComponent("el-button"),g=e.resolveComponent("el-icon");return e.openBlock(),e.createElementBlock("div",at,[e.createVNode(r,{type:"primary",icon:e.unref(lt),onClick:l[0]||(l[0]=E=>u.$emit("on-search"))},{default:e.withCtx(()=>[e.createTextVNode("搜索")]),_:1},8,["icon"]),e.createVNode(r,{icon:e.unref(Ze),onClick:l[1]||(l[1]=E=>u.$emit("on-clear"))},{default:e.withCtx(()=>[e.createTextVNode("清空")]),_:1},8,["icon"]),a.fold?(e.openBlock(),e.createElementBlock("div",{key:0,class:"operation_fold",style:{color:"var(--el-color-primary)"},onClick:d},[e.createTextVNode(e.toDisplayString(c.value?"收起":"展开"),1),e.createVNode(g,{color:"#409EFC"},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(e.unref(We),null,null,512),[[e.vShow,c.value]]),e.withDirectives(e.createVNode(e.unref(Ae),null,null,512),[[e.vShow,!c.value]])]),_:1})])):e.createCommentVNode("",!0)])}}}),Wt="",ct={class:"bsgoal-base-cascader"},st=Object.assign({name:"BsgoalBaseCascader"},{props:{modelValue:{type:[Array],default:()=>[]},dataOptions:{type:[Array],default:()=>[]},placeholder:{type:[String],default:""}},emits:["update:model-value","on-change"],setup(a,{emit:i}){const c=e.ref({checkStrictly:!0,multiple:!1}),d=u=>{i("update:model-value",u),i("on-change",u)};return(u,l)=>{const r=e.resolveComponent("el-cascader");return e.openBlock(),e.createElementBlock("div",ct,[e.createVNode(r,{clearable:"",class:"base_cascader","show-all-levels":!1,"model-value":a.modelValue,options:a.dataOptions,props:c.value,placeholder:a.placeholder,onChange:d},null,8,["model-value","options","props","placeholder"])])}}}),Kt="",it={class:"bsgoal-base-search"},dt={class:"base_search"},ut={key:1},_t=Object.assign({name:"BsgoalBaseSearch"},{props:{configOptions:{type:[Array],default:()=>[]},medium:{type:[Number,String],default:6},modelValue:{type:[Object],default:()=>({})}},emits:["on-search","on-clear","on-change","on-fold"],setup(a,{emit:i}){const c=a,d=e.ref(null),u=Q.align,l=e.ref({});e.watchEffect(()=>{const{configOptions:p}=c;e.unref(p).forEach(m=>{const{value:h,prop:b="",type:w=""}=m;[t.INPUT,t.INPUT_TEXT_AREA].includes(w),l.value[b]=[0,!1].includes(h)?h:""})});const r=e.computed(()=>{const{configOptions:p}=c,B=e.unref(p),m={type:t.OPERATION};return[...B,m]}),g=(p="",B="",m="")=>{if(!m)switch(p){case t.INPUT:case t.INPUT_TEXT_AREA:return`请输入${B}`;case t.SELECT:case t.DATE:case t.WEEK:case t.MONTH:case t.YEAR:case t.DATE_TIME:case t.TIME:case t.CASCADER:return`请选择${B}`;case t.DATE_RANGE:case t.DATE_TIME_RANGE:return["开始日期","结束日期"];case t.TIME_RANGE:return["开始时间","结束时间"];case t.MONTH_RANGE:return["开始月份","结束月份"]}return m},E=(p="",B="")=>{if(!B)switch(p){case t.WEEK:return"ww";case t.DATE:case t.DATE_RANGE:return"YYYY-MM-DD";case t.MONTH:return"MM";case t.YEAR:return"YYYY";case t.MONTH_RANGE:return"YYYY-MM";case t.TIME:case t.TIME_RANGE:return"HH:mm:ss";case t.DATE_TIME:case t.DATE_TIME_RANGE:return"YYYY-MM-DD HH:mm:ss"}return B},V=()=>{const{configOptions:p}=c,B=e.unref(l),m=e.unref(p),h={};for(const b of m){const{type:w="",range:A=[],prop:$="",single:D=!1}=b,T=B[$];if([t.CASCADER].includes(w)&&Array.isArray(T)&&D){const F=T.length;F?h[$]=T[F-1]:h[$]=T}else e.isProxy(T)?h[$]=e.toRaw(T):h[$]=T;if(w.endsWith("range")&&A&&A.length===2){const{0:F="",1:I=""}=T,{0:z="",1:L=""}=A;h[z]=F,h[L]=I}}i("on-search",h),i("update:modelValue",h)};e.nextTick(()=>{V()});const k=()=>{d.value.resetFields(),i("on-clear",l.value)},N=e.inject("transferFoldStatus"),C=e.ref(!1),y=(p=!1)=>{C.value=p,N&&(N.value=p),i("on-fold",C)},f=(p,B)=>{V();const m={type:p,prop:B,value:l.value[B]||""};i("on-change",m)};return(p,B)=>{const m=e.resolveComponent("el-input"),h=e.resolveComponent("el-input-number"),b=e.resolveComponent("el-radio"),w=e.resolveComponent("el-radio-group"),A=e.resolveComponent("el-option"),$=e.resolveComponent("el-select"),D=e.resolveComponent("el-slider"),T=e.resolveComponent("el-switch"),F=e.resolveComponent("el-date-picker"),I=e.resolveComponent("el-time-picker"),z=e.resolveComponent("el-checkbox"),L=e.resolveComponent("el-checkbox-group"),ee=e.resolveComponent("el-form-item"),te=e.resolveComponent("el-col"),oe=e.resolveComponent("el-row"),S=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",it,[e.createElementVNode("div",dt,[e.withDirectives((e.openBlock(),e.createBlock(S,{ref_key:"EL_FORM_REF",ref:d,"label-suffix":":","show-message":!1,model:l.value},{default:e.withCtx(()=>[e.createVNode(oe,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),({label:_="",prop:n="",type:s="text",placeholder:M="",readonly:W=!1,clearable:X=!0,rows:K=2,min:G=1,max:P=10,range:R=[],format:Y=""}={},j)=>e.withDirectives((e.openBlock(),e.createBlock(te,{key:j,xs:24,sm:12,md:a.medium},{default:e.withCtx(()=>[e.createVNode(ee,{label:_,prop:n},{default:e.withCtx(()=>[W?(e.openBlock(),e.createElementBlock("div",ut,e.toDisplayString(l.value[n]),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[s===e.unref(t).INPUT?(e.openBlock(),e.createBlock(m,{key:0,modelValue:l.value[n],"onUpdate:modelValue":o=>l.value[n]=o,placeholder:g(s,_,M),clearable:X,onChange:o=>f(s,n)},null,8,["modelValue","onUpdate:modelValue","placeholder","clearable","onChange"])):e.createCommentVNode("",!0),s===e.unref(t).INPUT_TEXT_AREA?(e.openBlock(),e.createBlock(m,{key:1,modelValue:l.value[n],"onUpdate:modelValue":o=>l.value[n]=o,type:"textarea",rows:K,clearable:X,placeholder:g(s,_,M),onChange:o=>f(s,n)},null,8,["modelValue","onUpdate:modelValue","rows","clearable","placeholder","onChange"])):e.createCommentVNode("",!0),s===e.unref(t).INPUT_NUMBER?(e.openBlock(),e.createBlock(h,{key:2,modelValue:p.num,"onUpdate:modelValue":B[0]||(B[0]=o=>p.num=o),min:G,max:P,onChange:f},null,8,["modelValue","min","max"])):e.createCommentVNode("",!0),s===e.unref(t).RADIO?(e.openBlock(),e.createBlock(w,{key:3,modelValue:l.value[n],"onUpdate:modelValue":o=>l.value[n]=o,onChange:o=>f(s,n)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(R,(o,U)=>(e.openBlock(),e.createBlock(b,{key:U,label:o.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.label),1)]),_:2},1032,["label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])):e.createCommentVNode("",!0),s===e.unref(t).SELECT?(e.openBlock(),e.createBlock($,{key:4,modelValue:l.value[n],"onUpdate:modelValue":o=>l.value[n]=o,placeholder:g(s,_,M),onChange:o=>f(s,n)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(R,(o,U)=>(e.openBlock(),e.createBlock(A,{key:U,label:o.label,value:o.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder","onChange"])):e.createCommentVNode("",!0),s===e.unref(t).SLIDER?(e.openBlock(),e.createBlock(D,{key:5,modelValue:l.value[n],"onUpdate:modelValue":o=>l.value[n]=o,min:G,max:P,onChange:o=>f(s,n)},null,8,["modelValue","onUpdate:modelValue","min","max","onChange"])):e.createCommentVNode("",!0),s===e.unref(t).SWITCH?(e.openBlock(),e.createBlock(T,{key:6,modelValue:l.value[n],"onUpdate:modelValue":o=>l.value[n]=o,"active-value":R[0]||!0,"inactive-value":R[1]||!1,onChange:o=>f(s,n)},null,8,["modelValue","onUpdate:modelValue","active-value","inactive-value","onChange"])):e.createCommentVNode("",!0),[e.unref(t).DATE,e.unref(t).MONTH,e.unref(t).YEAR,e.unref(t).DATE_TIME].includes(s)?(e.openBlock(),e.createBlock(F,{key:7,modelValue:l.value[n],"onUpdate:modelValue":o=>l.value[n]=o,format:E(s,Y),"value-format":E(s,Y),type:s,placeholder:g(s,_,M),onChange:o=>f(s,n)},null,8,["modelValue","onUpdate:modelValue","format","value-format","type","placeholder","onChange"])):e.createCommentVNode("",!0),[e.unref(t).DATE_RANGE,e.unref(t).MONTH_RANGE,e.unref(t).DATE_TIME_RANGE].includes(s)?(e.openBlock(),e.createBlock(F,{key:8,modelValue:l.value[n],"onUpdate:modelValue":o=>l.value[n]=o,type:s,"value-format":E(s,Y),"start-placeholder":g(s,_,M)[0],"end-placeholder":g(s,_,M)[1],onChange:o=>f(s,n)},null,8,["modelValue","onUpdate:modelValue","type","value-format","start-placeholder","end-placeholder","onChange"])):e.createCommentVNode("",!0),[e.unref(t).TIME].includes(s)?(e.openBlock(),e.createBlock(I,{key:9,modelValue:l.value[n],"onUpdate:modelValue":o=>l.value[n]=o,"arrow-control":"","value-format":E(s,Y),placeholder:g(s,_,M),onChange:o=>f(s,n)},null,8,["modelValue","onUpdate:modelValue","value-format","placeholder","onChange"])):e.createCommentVNode("",!0),[e.unref(t).TIME_RANGE].includes(s)?(e.openBlock(),e.createBlock(I,{key:10,modelValue:l.value[n],"onUpdate:modelValue":o=>l.value[n]=o,"is-range":"","value-format":E(s,Y),"start-placeholder":g(s,_,M)[0],"end-placeholder":g(s,_,M)[1],onChange:o=>f(s,n)},null,8,["modelValue","onUpdate:modelValue","value-format","start-placeholder","end-placeholder","onChange"])):e.createCommentVNode("",!0),[e.unref(t).CHECKBOX].includes(s)?(e.openBlock(),e.createBlock(L,{key:11,modelValue:l.value[n],"onUpdate:modelValue":o=>l.value[n]=o,onChange:o=>f(s,n)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(R,(o,U)=>(e.openBlock(),e.createBlock(z,{key:U,label:o.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.label),1)]),_:2},1032,["label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])):e.createCommentVNode("",!0),[e.unref(t).CASCADER].includes(s)?(e.openBlock(),e.createBlock(st,{key:12,modelValue:l.value[n],"onUpdate:modelValue":o=>l.value[n]=o,"data-options":R,placeholder:g(s,_,M),onOnChange:o=>f(s,n)},null,8,["modelValue","onUpdate:modelValue","data-options","placeholder","onOnChange"])):e.createCommentVNode("",!0),[].includes(s)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:13},[],64)):e.createCommentVNode("",!0),[e.unref(t).OPERATION].includes(s)?(e.openBlock(),e.createBlock(rt,{key:14,fold:j>=7,onOnSearch:V,onOnClear:k,onOnFold:y},null,8,["fold"])):e.createCommentVNode("",!0)],64))]),_:2},1032,["label","prop"])]),_:2},1032,["md"])),[[e.vShow,j<7||s===e.unref(t).OPERATION||j>=7&&C.value]])),128))]),_:1})]),_:1},8,["model"])),[[e.unref(u)]])]),e.createVNode(v)])}}}),Jt="",mt={class:"bsgoal-base-search-table"},ft={class:"base_search_table"},pt=Object.assign({name:"BsgoalBaseSearchTable"},{props:{configOptions:{type:[Array],default:()=>[]},tableData:{type:[Array],default:()=>[]},selection:{type:[Boolean],default:!1},operation:{type:[Boolean],default:!1},operationWidth:{type:[String,Number],default:100},fetch:{type:[Object,Function],default:null},call:{type:[Object,Function],default:null},expression:{type:[Number],default:75}},setup(a){const i=a,c=e.ref(!1);e.provide("transferFoldStatus",c);const d=e.unref(i.configOptions),u=e.computed(()=>d.filter(k=>{const{type:N=""}=k;return!!N})),l=e.computed(()=>d.filter(k=>{const{item:N=!1}=k;return!N})),r=e.useSlots(),g=e.ref(Object.keys(r)),E=e.ref(null),V=k=>{E.value.refreshList(k)};return(k,N)=>(e.openBlock(),e.createElementBlock("div",mt,[e.createElementVNode("div",ft,[e.createVNode(_t,{"config-options":e.unref(u),onOnSearch:V,onOnClear:V},null,8,["config-options"]),e.createVNode(ne,{ref_key:"BSGOAL_BASE_TABLE_REF",ref:E,operationWidth:a.operationWidth,"config-options":e.unref(l),data:a.tableData,selection:a.selection,operation:a.operation,expression:a.expression,fetch:a.fetch,call:a.call},e.createSlots({_:2},[e.renderList(g.value,C=>({name:C,fn:e.withCtx(({row:y={}})=>[e.renderSlot(k.$slots,C,{row:y})])}))]),1032,["operationWidth","config-options","data","selection","operation","expression","fetch","call"])])]))}}),Zt="",ht={class:"bsgoal-base-tree-fold"},gt=Object.assign({name:"BsgoalBaseTreeFold"},{props:["modelValue"],emits:["update:modelValue"],setup(a,{emit:i}){let c=e.ref(!0);const d=()=>{c.value=!c.value,i("update:modelValue",c.value)};return(u,l)=>{const r=e.resolveComponent("el-icon");return e.openBlock(),e.createElementBlock("div",ht,[e.createElementVNode("div",{class:e.normalizeClass(["base_tree_fold",{"base_tree_fold--hide":!e.unref(c)}]),onClick:d},[e.createVNode(r,{color:"#fff"},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(e.unref(Se),null,null,512),[[e.vShow,e.unref(c)]]),e.withDirectives(e.createVNode(e.unref(Pe),null,null,512),[[e.vShow,!e.unref(c)]])]),_:1})],2)])}}}),eo="",Et={class:"bsgoal-base-tree"},Bt={class:"base_tree"},kt={class:"base_tree_main"},Ct=Object.assign({name:"BsgoalBaseTree"},{props:{gasket:{type:[String,Number],default:10},data:{type:[Object,Array],default:()=>[]},treeProps:{type:[Object],default:()=>({label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",class:"class"})},lazyLoad:{type:[Function],default:()=>{}},initNode:{type:[Function],default:()=>{}}},emits:["on-click"],setup(a,{emit:i}){const c=a,d=Q.height,u=e.ref(""),l=e.ref(null);e.watch(u,k=>{l.value.filter(k)});const r=(k,N)=>k?N.label.includes(k):!0,g=e.ref(!0),E=(k,N,C,y)=>{i("on-click",k,N,C,y)},V=async(k,N,C)=>{if(k.level===0){const y=await C.initNode(k);return N(y||[])}else{const y=await C.lazyLoad(k);N(y||[])}};return(k,N)=>{const C=e.resolveComponent("el-input"),y=e.resolveComponent("el-tree");return e.openBlock(),e.createElementBlock("div",Et,[e.withDirectives((e.openBlock(),e.createElementBlock("div",Bt,[e.withDirectives(e.createElementVNode("div",kt,[e.createVNode(C,{modelValue:u.value,"onUpdate:modelValue":N[0]||(N[0]=f=>u.value=f),class:"base_tree_main_input",placeholder:"输入关键字过滤"},null,8,["modelValue"]),e.createVNode(y,{ref_key:"EL_TREE_REF",ref:l,lazy:"","highlight-current":"","empty-text":"暂无数据",load:(f,p)=>V(f,p,c),"expand-on-click-node":!1,props:a.treeProps,"filter-node-method":r,onNodeClick:E},null,8,["load","props"])],512),[[e.vShow,g.value]]),e.withDirectives(e.createVNode(v,{vertical:""},null,512),[[e.vShow,g.value]]),e.createVNode(gt,{modelValue:g.value,"onUpdate:modelValue":N[1]||(N[1]=f=>g.value=f)},null,8,["modelValue"])])),[[e.unref(d),a.gasket]])])}}}),oo="",Vt={class:"bsgoal-base-dialog"},Nt={class:"base_dialog"},bt={class:"base_dialog_header"},wt={class:"base_dialog_content"},Tt={class:"base_dialog_footer"},xt=Object.assign({name:"BsgoalBaseDialog"},{props:{modelValue:{type:[Boolean],default:!1},title:{type:[String],default:"标题"},cancelTxt:{type:[String],default:"取消"},confirmTxt:{type:[String],default:"确定"}},emits:["update:modelValue","on-confirm"],setup(a,{emit:i}){const c=a,d=e.ref(c.modelValue.value),u=()=>{d.value=!1},l=()=>{d.value=!1,i("on-confirm")};return e.watch(()=>c.modelValue,r=>{d.value=r}),e.watch(d,r=>{i("update:modelValue",r)}),(r,g)=>{const E=e.resolveComponent("el-button"),V=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",Vt,[e.createElementVNode("div",Nt,[e.createVNode(V,{modelValue:d.value,"onUpdate:modelValue":g[0]||(g[0]=k=>d.value=k),"custom-class":"bsgoal_base_dialog_main"},{header:e.withCtx(()=>[e.createElementVNode("div",bt,e.toDisplayString(a.title),1)]),footer:e.withCtx(()=>[e.createElementVNode("span",Tt,[e.createVNode(E,{onClick:u},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.cancelTxt),1)]),_:1}),e.createVNode(E,{type:"primary",onClick:l},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.confirmTxt),1)]),_:1})])]),default:e.withCtx(()=>[e.createElementVNode("div",wt,[e.renderSlot(r.$slots,"default")])]),_:3},8,["modelValue"])])])}}}),At=t,$t=Z,yt={install(a,i={}){const{exclude:c=[]}=i,d={BsgoalBaseForm:de,BsgoalBaseTable:ne,BsgoalBaseLine:v,BsgoalBaseSearchTable:pt,BsgoalBaseTree:Ct,BsgoalBaseDialog:xt};for(const[u,l]of Object.entries(d))c.includes(u)||a.component(u,l)},enumType:t,useFetch:Z};x.EnumType=At,x.default=yt,x.useFetchApi=$t,Object.defineProperties(x,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ (function(w,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("element-plus")):typeof define=="function"&&define.amd?define(["exports","vue","element-plus"],e):(w=typeof globalThis<"u"?globalThis:w||self,e(w["bsgoal-common"]={},w.Vue,w["element-plus"]))})(this,function(w,e,$){"use strict";var Rt=Object.defineProperty;var le=Object.getOwnPropertySymbols;var Ut=Object.prototype.hasOwnProperty,Lt=Object.prototype.propertyIsEnumerable;var ae=(w,e,$)=>e in w?Rt(w,e,{enumerable:!0,configurable:!0,writable:!0,value:$}):w[e]=$,re=(w,e)=>{for(var $ in e||(e={}))Ut.call(e,$)&&ae(w,$,e[$]);if(le)for(var $ of le(e))Lt.call(e,$)&&ae(w,$,e[$]);return w};const t={INPUT:"text",INPUT_NUMBER:"number",INPUT_TEXT_AREA:"textarea",SELECT:"select",SLIDER:"slider",SWITCH:"switch",RADIO:"radio",CHECKBOX:"checkbox",DATE:"date",WEEK:"week",MONTH:"month",YEAR:"year",DATE_RANGE:"daterange",MONTH_RANGE:"monthrange",TIME:"time",TIME_RANGE:"timerange",DATE_TIME:"datetime",DATE_TIME_RANGE:"datetimerange",OPERATION:"operation",CASCADER:"cascader"};let Z=null;const K=a=>{const i=[],r=[],d=(n=[])=>{const c=n.map(E=>E.width),h=Math.max(...c);n.forEach(E=>{const{labelEl:V}=E;V.style.width=`${h}px`})},u=()=>{if(a){const n=a.querySelectorAll(".el-form-item__label");if(n&&n.length){let c=0;n.forEach((h,E)=>{h.style.width="initial",h.style.whiteSpace="nowrap";const{x:V=0,width:C=0}=h.getBoundingClientRect(),N={x:V,width:C,labelEl:h};E===0&&(c=V),V===c?i.push(N):r.push(N)})}}};Z&&clearTimeout(Z),Z=setTimeout(()=>{u(),d(i),d(r)},50)},J={align:{created(a){window.addEventListener("resize",()=>{K(a)})},mounted(a){K(a)},unmounted(a){window.removeEventListener("resize",K(a))}},height:(a,{value:i=65,arg:r=""})=>{if(a){const{y:d=0}=a.getBoundingClientRect();a.style.height=`calc(100vh - ${d+i}px)`}}},zt="",ce={class:"bsgoal-base-form"},se={class:"base_form"},ie={key:1},de=Object.assign({name:"BsgoalBaseForm"},{props:{configOptions:{type:[Array],default:()=>[]},medium:{type:[Number,String],default:24},values:{type:[Object],default:()=>({})}},emits:["on-form","on-clear","on-change","on-fold"],setup(a,{expose:i,emit:r}){const d=a,u=e.ref(null),n=J.align,c=e.ref({});e.watchEffect(()=>{const{configOptions:f,values:p}=d,B=e.unref(f),m=e.unref(p);B.forEach(g=>{const{value:b="",prop:T="",type:y=""}=g;[t.INPUT,t.INPUT_TEXT_AREA].includes(y),c.value[T]=m[T]||b})});const h=e.computed(()=>{const{configOptions:f}=d;return e.unref(f).map(m=>{let{rules:g=!1,label:b=""}=m;const T={required:!0,message:`${b}不能为空`,trigger:"blur"};return g&&(typeof g=="boolean"?g=[T]:Array.isArray(g)?g=[T,...g]:g=[T,g]),m.rules=g,m})}),E=(f="",p="",B="")=>{if(!B)switch(f){case t.INPUT:case t.INPUT_TEXT_AREA:return`请输入${p}`;case t.SELECT:case t.DATE:case t.WEEK:case t.MONTH:case t.YEAR:case t.DATE_TIME:case t.TIME:return`请选择${p}`;case t.DATE_RANGE:case t.DATE_TIME_RANGE:return["开始日期","结束日期"];case t.TIME_RANGE:return["开始时间","结束时间"];case t.MONTH_RANGE:return["开始月份","结束月份"]}return B},V=(f="",p="")=>{if(!p)switch(f){case t.WEEK:return"ww";case t.DATE:case t.DATE_RANGE:return"YYYY-MM-DD";case t.MONTH:return"MM";case t.YEAR:return"YYYY";case t.MONTH_RANGE:return"YYYY-MM";case t.TIME:case t.TIME_RANGE:return"HH:mm:ss";case t.DATE_TIME:case t.DATE_TIME_RANGE:return"YYYY-MM-DD HH:mm:ss"}return p},C=()=>{const f=e.unref(c),{configOptions:p}=d,B=e.unref(p);for(const m of B){const{type:g="",range:b=[],prop:T=""}=m;if(g.endsWith("range")&&b&&b.length===2){const{0:y="",1:A=""}=f[T],{0:D="",1:x=""}=b;f[D]=y,f[x]=A}}return r("on-form",f),f},N=()=>{u.value.resetFields(),r("on-clear",c.value)},k=(f,p)=>{const B={type:f,prop:p,value:c.value[p]||""};r("on-change",B)};return i({triggerOperationClear:N,triggerOperationForm:C,validateForm:(f=()=>{})=>{u.value.validate((p=!1,B={})=>{if(p){const m=C();f(m)}else{f(!1),console.log("field",B);const m=Object.keys(B)[0],{[m]:{0:{message:g=""}}}=B;$.ElMessage.error(g)}})}}),(f,p)=>{const B=e.resolveComponent("el-input"),m=e.resolveComponent("el-input-number"),g=e.resolveComponent("el-radio"),b=e.resolveComponent("el-radio-group"),T=e.resolveComponent("el-option"),y=e.resolveComponent("el-select"),A=e.resolveComponent("el-slider"),D=e.resolveComponent("el-switch"),x=e.resolveComponent("el-date-picker"),S=e.resolveComponent("el-time-picker"),U=e.resolveComponent("el-checkbox"),P=e.resolveComponent("el-checkbox-group"),L=e.resolveComponent("el-form-item"),ee=e.resolveComponent("el-col"),te=e.resolveComponent("el-row"),oe=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",ce,[e.createElementVNode("div",se,[e.withDirectives((e.openBlock(),e.createBlock(oe,{ref_key:"EL_FORM_REF",ref:u,"label-suffix":":",model:c.value},{default:e.withCtx(()=>[e.createVNode(te,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(h),({label:O="",prop:_="",type:l="text",placeholder:s="",readonly:F=!1,clearable:W=!0,rows:X=2,min:Q=1,max:H=10,range:z=[],format:I="",rules:j=[]}={},G)=>(e.openBlock(),e.createBlock(ee,{key:G,xs:24,sm:24,md:a.medium},{default:e.withCtx(()=>[e.createVNode(L,{label:O,prop:_,rules:j},{default:e.withCtx(()=>[F?(e.openBlock(),e.createElementBlock("div",ie,e.toDisplayString(c.value[_]),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[l===e.unref(t).INPUT?(e.openBlock(),e.createBlock(B,{key:0,modelValue:c.value[_],"onUpdate:modelValue":o=>c.value[_]=o,placeholder:E(l,O,s),clearable:W,onChange:o=>k(l,_)},null,8,["modelValue","onUpdate:modelValue","placeholder","clearable","onChange"])):e.createCommentVNode("",!0),l===e.unref(t).INPUT_TEXT_AREA?(e.openBlock(),e.createBlock(B,{key:1,modelValue:c.value[_],"onUpdate:modelValue":o=>c.value[_]=o,type:"textarea",rows:X,clearable:W,placeholder:E(l,O,s),onChange:o=>k(l,_)},null,8,["modelValue","onUpdate:modelValue","rows","clearable","placeholder","onChange"])):e.createCommentVNode("",!0),l===e.unref(t).INPUT_NUMBER?(e.openBlock(),e.createBlock(m,{key:2,modelValue:f.num,"onUpdate:modelValue":p[0]||(p[0]=o=>f.num=o),min:Q,max:H,onChange:k},null,8,["modelValue","min","max"])):e.createCommentVNode("",!0),l===e.unref(t).RADIO?(e.openBlock(),e.createBlock(b,{key:3,modelValue:c.value[_],"onUpdate:modelValue":o=>c.value[_]=o,onChange:o=>k(l,_)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(z,(o,R)=>(e.openBlock(),e.createBlock(g,{key:R,label:o.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.label),1)]),_:2},1032,["label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])):e.createCommentVNode("",!0),l===e.unref(t).SELECT?(e.openBlock(),e.createBlock(y,{key:4,modelValue:c.value[_],"onUpdate:modelValue":o=>c.value[_]=o,placeholder:E(l,O,s),onChange:o=>k(l,_)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(z,(o,R)=>(e.openBlock(),e.createBlock(T,{key:R,label:o.label,value:o.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder","onChange"])):e.createCommentVNode("",!0),l===e.unref(t).SLIDER?(e.openBlock(),e.createBlock(A,{key:5,modelValue:c.value[_],"onUpdate:modelValue":o=>c.value[_]=o,min:Q,max:H,onChange:o=>k(l,_)},null,8,["modelValue","onUpdate:modelValue","min","max","onChange"])):e.createCommentVNode("",!0),l===e.unref(t).SWITCH?(e.openBlock(),e.createBlock(D,{key:6,modelValue:c.value[_],"onUpdate:modelValue":o=>c.value[_]=o,"active-value":z[0]||!0,"inactive-value":z[1]||!1,onChange:o=>k(l,_)},null,8,["modelValue","onUpdate:modelValue","active-value","inactive-value","onChange"])):e.createCommentVNode("",!0),[e.unref(t).DATE,e.unref(t).MONTH,e.unref(t).YEAR,e.unref(t).DATE_TIME].includes(l)?(e.openBlock(),e.createBlock(x,{key:7,modelValue:c.value[_],"onUpdate:modelValue":o=>c.value[_]=o,format:V(l,I),"value-format":V(l,I),type:l,placeholder:E(l,O,s),onChange:o=>k(l,_)},null,8,["modelValue","onUpdate:modelValue","format","value-format","type","placeholder","onChange"])):e.createCommentVNode("",!0),[e.unref(t).DATE_RANGE,e.unref(t).MONTH_RANGE,e.unref(t).DATE_TIME_RANGE].includes(l)?(e.openBlock(),e.createBlock(x,{key:8,modelValue:c.value[_],"onUpdate:modelValue":o=>c.value[_]=o,type:l,"value-format":V(l,I),"start-placeholder":E(l,O,s)[0],"end-placeholder":E(l,O,s)[1],onChange:o=>k(l,_)},null,8,["modelValue","onUpdate:modelValue","type","value-format","start-placeholder","end-placeholder","onChange"])):e.createCommentVNode("",!0),[e.unref(t).TIME].includes(l)?(e.openBlock(),e.createBlock(S,{key:9,modelValue:c.value[_],"onUpdate:modelValue":o=>c.value[_]=o,"arrow-control":"","value-format":V(l,I),placeholder:E(l,O,s),onChange:o=>k(l,_)},null,8,["modelValue","onUpdate:modelValue","value-format","placeholder","onChange"])):e.createCommentVNode("",!0),[e.unref(t).TIME_RANGE].includes(l)?(e.openBlock(),e.createBlock(S,{key:10,modelValue:c.value[_],"onUpdate:modelValue":o=>c.value[_]=o,"is-range":"","value-format":V(l,I),"start-placeholder":E(l,O,s)[0],"end-placeholder":E(l,O,s)[1],onChange:o=>k(l,_)},null,8,["modelValue","onUpdate:modelValue","value-format","start-placeholder","end-placeholder","onChange"])):e.createCommentVNode("",!0),[e.unref(t).CHECKBOX].includes(l)?(e.openBlock(),e.createBlock(P,{key:11,modelValue:c.value[_],"onUpdate:modelValue":o=>c.value[_]=o,onChange:o=>k(l,_)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(z,(o,R)=>(e.openBlock(),e.createBlock(U,{key:R,label:o.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.label),1)]),_:2},1032,["label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])):e.createCommentVNode("",!0),[].includes(l)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:12},[],64)):e.createCommentVNode("",!0)],64))]),_:2},1032,["label","prop","rules"])]),_:2},1032,["md"]))),128))]),_:1})]),_:1},8,["model"])),[[e.unref(n)]])])])}}}),jt="",ue={class:"bsgoal-base-table-content"},_e={class:"bas_tabl_content"},me=Object.assign({name:"BsgoalBaseTableContent"},{props:{data:{type:[String,Number,Object,Number,Boolean],default:""}},setup(a){return(i,r)=>(e.openBlock(),e.createElementBlock("div",ue,[e.createElementVNode("div",_e,e.toDisplayString(a.data),1)]))}});/*! Element Plus v2.3.3 */var fe={name:"zh-cn",el:{colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"}}};const Gt="",pe={class:"bsgoal-base-table-pagination"},ge={class:"base_table_pagination"},he=e.createElementVNode("span",null,"总数",-1),Ee=Object.assign({name:"BsgoalBaseTablePagination"},{props:{currentPage:{type:[Number],default:1},pageSizes:{type:[Array],default:()=>[10,20,30,40,50,100]},pageSize:{type:[Number],default:10},total:{type:[Number],default:0}},emits:["on-size-change","on-current-change"],setup(a,{emit:i}){const r=(n=0)=>{i("on-size-change",n)},d=(n=1)=>{i("on-current-change",n)},u=e.ref(1);return(n,c)=>{const h=e.resolveComponent("el-pagination"),E=e.resolveComponent("el-config-provider");return e.openBlock(),e.createElementBlock("div",pe,[e.createElementVNode("div",ge,[e.createVNode(E,{locale:e.unref(fe)},{default:e.withCtx(()=>[e.createVNode(h,{background:"",layout:"total, sizes, prev, pager, next, jumper","current-page":u.value,"onUpdate:currentPage":c[0]||(c[0]=V=>u.value=V),"page-sizes":a.pageSizes,"page-size":a.pageSize,total:a.total,onSizeChange:r,onCurrentChange:d},{next:e.withCtx(()=>[he]),_:1},8,["current-page","page-sizes","page-size","total"])]),_:1},8,["locale"])])])}}}),Wt="",Be=(a,i)=>{const r=a.__vccOpts||a;for(const[d,u]of i)r[d]=u;return r},Ce={name:"BsgoalBaseTableEmpty"},ke={class:"bsgoal-base-table-empty"},Ve=[e.createElementVNode("div",{class:"base_table_empty"},[e.createElementVNode("div",{class:"base_table_empty_img"},[e.createElementVNode("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjQiIGhlaWdodD0iNDEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCAxKSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgIDxlbGxpcHNlIGZpbGw9IiNGNUY1RjUiIGN4PSIzMiIgY3k9IjMzIiByeD0iMzIiIHJ5PSI3Ii8+CiAgICA8ZyBmaWxsLXJ1bGU9Im5vbnplcm8iIHN0cm9rZT0iI0Q5RDlEOSI+CiAgICAgIDxwYXRoIGQ9Ik01NSAxMi43Nkw0NC44NTQgMS4yNThDNDQuMzY3LjQ3NCA0My42NTYgMCA0Mi45MDcgMEgyMS4wOTNjLS43NDkgMC0xLjQ2LjQ3NC0xLjk0NyAxLjI1N0w5IDEyLjc2MVYyMmg0NnYtOS4yNHoiLz4KICAgICAgPHBhdGggZD0iTTQxLjYxMyAxNS45MzFjMC0xLjYwNS45OTQtMi45MyAyLjIyNy0yLjkzMUg1NXYxOC4xMzdDNTUgMzMuMjYgNTMuNjggMzUgNTIuMDUgMzVoLTQwLjFDMTAuMzIgMzUgOSAzMy4yNTkgOSAzMS4xMzdWMTNoMTEuMTZjMS4yMzMgMCAyLjIyNyAxLjMyMyAyLjIyNyAyLjkyOHYuMDIyYzAgMS42MDUgMS4wMDUgMi45MDEgMi4yMzcgMi45MDFoMTQuNzUyYzEuMjMyIDAgMi4yMzctMS4zMDggMi4yMzctMi45MTN2LS4wMDd6IiBmaWxsPSIjRkFGQUZBIi8+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4K",alt:""})]),e.createElementVNode("div",{class:"base_table_empty_text"},"暂无数据")],-1)];function Ne(a,i,r,d,u,n){return e.openBlock(),e.createElementBlock("div",ke,Ve)}const be=Be(Ce,[["render",Ne]]),Te=(a=null,{expression:i=75,arg:r={}}={})=>{const d=e.unref(a);if(d){const u=d.querySelector(".el-table");u&&e.nextTick(()=>{const{y:n=0}=u.getBoundingClientRect();u.style.height=`calc(100vh - ${n+i}px)`})}},q=(a=Promise.resolve(),i=null,r=e.ref(!1),d=e.ref(null))=>{const u=e.ref("");return r.value=!0,a.then((n={})=>{const{data:c={},message:h=""}=n;d.value=c,u.value=h,i&&i(!0,c),r.value=!1}).catch((n={})=>{if(typeof n=="object"){const{message:c=""}=n;u.value=c}else u.value=n;i&&i(!1,n),r.value=!1}).finally(()=>{r.value=!1}),{data:d,message:u,loading:r}},Qt="",xe={class:"bsgoal-base-table"},we={class:"base_table"},ye={key:0,class:"base_table_menu"},ne=Object.assign({name:"BsgoalBaseTable"},{props:{configOptions:{type:[Array],default:()=>[]},data:{type:[Array],default:()=>[]},selection:{type:[Boolean],default:!1},operation:{type:[Boolean],default:!1},operationWidth:{type:[String,Number],default:100},loading:{type:[Boolean],default:!1},fetch:{type:[Object,Function],default:null},call:{type:[Object,Function],default:null},mapProps:{type:[Object],default:()=>({currentPage:"currentPage",pageSize:"pageSize",rows:"rows",total:"total"})},expression:{type:[Number],default:75}},setup(a,{expose:i}){const r=a,d=e.computed(()=>{const{configOptions:m=[],operation:g=!1,operationWidth:b=0}=r,T=e.unref(m),y=[];return g&&y.push({label:"操作",fixed:"right",prop:"operation",width:b}),[...T,...y]}),u=e.ref(null),n=e.inject("transferFoldStatus");e.watchEffect(()=>{const m=n?n.value:!1,g=e.unref(r.expression);Te(u,{arg:m,expression:g})});const c=e.ref(1),h=e.ref(10),E=e.ref(0),V=e.ref({}),C=e.ref(r.loading),N=e.ref(r.data),k=e.ref({}),M=()=>{const{fetch:m,call:g,mapProps:b}=r,T=V.value,y=c.value,A=h.value,D=re({},T),x=e.unref(b);D[x.currentPage]=y,D[x.pageSize]=A,q(m(D),g,C,k)};e.watch(k,m=>{const{mapProps:g}=r,b=e.unref(g);N.value=m[b.rows],E.value=m[b.total]});const f=(m={})=>{V.value=m,c.value=1,M()},p=(m=1)=>{c.value=m},B=(m=10)=>{h.value=m};return e.watch([c,h],()=>{M()}),i({refreshList:f}),(m,g)=>{const b=e.resolveComponent("el-table-column"),T=e.resolveComponent("el-table"),y=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",xe,[e.createElementVNode("div",we,[m.$slots.menu?(e.openBlock(),e.createElementBlock("div",ye,[e.renderSlot(m.$slots,"menu")])):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"EL_TABLE_WRAP_REF",ref:u},[e.withDirectives((e.openBlock(),e.createBlock(T,{stripe:"",border:"","highlight-current-row":"",style:{width:"100%"},data:N.value,"header-cell-style":{fontWeight:"bold",backgroundColor:"#EBEEF5",color:"rgba(0,0,0,.85)",fontSize:"14px"}},{empty:e.withCtx(()=>[e.createVNode(be)]),default:e.withCtx(()=>[a.selection?(e.openBlock(),e.createBlock(b,{key:0,fixed:"left",type:"selection",width:"40"})):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(d),({prop:A="",label:D="",align:x="center",width:S="",fixed:U=!1}={},P)=>(e.openBlock(),e.createBlock(b,{key:P,label:D,align:x,width:S,fixed:U,"min-width":`${D.length*14+24}px`},{default:e.withCtx(({row:L})=>[e.renderSlot(m.$slots,A,{row:L},()=>[e.createVNode(me,{data:L[A]},null,8,["data"])])]),_:2},1032,["label","align","width","fixed","min-width"]))),128))]),_:3},8,["data","header-cell-style"])),[[y,C.value]])],512),e.createVNode(Ee,{total:E.value,onOnCurrentChange:p,onOnSizeChange:B},null,8,["total"])])])}}}),Kt="",v=Object.assign({name:"BsgoalBaseLine"},{props:{vertical:{type:[Boolean],default:!1}},setup(a){return(i,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["bsgoal-base-line",{"bsgoal-base-line__vertical":a.vertical}])},[e.createElementVNode("div",{class:e.normalizeClass(["base_line",{base_line__vertical:a.vertical}])},null,2)],2))}});/*! Element Plus Icons Vue v2.1.0 */var Y=(a,i)=>{let r=a.__vccOpts||a;for(let[d,u]of i)r[d]=u;return r},Ae={name:"ArrowDown"},Me={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},De=e.createElementVNode("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"},null,-1),$e=[De];function Se(a,i,r,d,u,n){return e.openBlock(),e.createElementBlock("svg",Me,$e)}var Oe=Y(Ae,[["render",Se],["__file","arrow-down.vue"]]),Fe={name:"ArrowLeft"},Ie={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Re=e.createElementVNode("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"},null,-1),Ue=[Re];function Le(a,i,r,d,u,n){return e.openBlock(),e.createElementBlock("svg",Ie,Ue)}var ze=Y(Fe,[["render",Le],["__file","arrow-left.vue"]]),Pe={name:"ArrowRight"},je={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Ye=e.createElementVNode("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"},null,-1),Ge=[Ye];function He(a,i,r,d,u,n){return e.openBlock(),e.createElementBlock("svg",je,Ge)}var We=Y(Pe,[["render",He],["__file","arrow-right.vue"]]),Xe={name:"ArrowUp"},Qe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Ze=e.createElementVNode("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0z"},null,-1),Ke=[Ze];function Je(a,i,r,d,u,n){return e.openBlock(),e.createElementBlock("svg",Qe,Ke)}var qe=Y(Xe,[["render",Je],["__file","arrow-up.vue"]]),ve={name:"Delete"},et={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},tt=e.createElementVNode("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"},null,-1),ot=[tt];function nt(a,i,r,d,u,n){return e.openBlock(),e.createElementBlock("svg",et,ot)}var lt=Y(ve,[["render",nt],["__file","delete.vue"]]),at={name:"Search"},rt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ct=e.createElementVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704z"},null,-1),st=[ct];function it(a,i,r,d,u,n){return e.openBlock(),e.createElementBlock("svg",rt,st)}var dt=Y(at,[["render",it],["__file","search.vue"]]);const qt="",ut={class:"bsgoal-base-search-operation"},_t=Object.assign({name:"BsgoalBaseSearchOperation"},{props:{fold:{type:[Boolean],default:!1}},emits:["on-fold"],setup(a,{emit:i}){const r=e.ref(!1),d=()=>{r.value=!e.unref(r),i("on-fold",r.value)};return(u,n)=>{const c=e.resolveComponent("el-button"),h=e.resolveComponent("el-icon");return e.openBlock(),e.createElementBlock("div",ut,[e.createVNode(c,{type:"primary",icon:e.unref(dt),onClick:n[0]||(n[0]=E=>u.$emit("on-search"))},{default:e.withCtx(()=>[e.createTextVNode("搜索")]),_:1},8,["icon"]),e.createVNode(c,{icon:e.unref(lt),onClick:n[1]||(n[1]=E=>u.$emit("on-clear"))},{default:e.withCtx(()=>[e.createTextVNode("清空")]),_:1},8,["icon"]),a.fold?(e.openBlock(),e.createElementBlock("div",{key:0,class:"operation_fold",style:{color:"var(--el-color-primary)"},onClick:d},[e.createTextVNode(e.toDisplayString(r.value?"收起":"展开"),1),e.createVNode(h,{color:"#409EFC"},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(e.unref(qe),null,null,512),[[e.vShow,r.value]]),e.withDirectives(e.createVNode(e.unref(Oe),null,null,512),[[e.vShow,!r.value]])]),_:1})])):e.createCommentVNode("",!0)])}}}),eo="",mt={class:"bsgoal-base-cascader"},ft=Object.assign({name:"BsgoalBaseCascader"},{props:{modelValue:{type:[Array],default:()=>[]},dataOptions:{type:[Array],default:()=>[]},placeholder:{type:[String],default:""}},emits:["update:model-value","on-change"],setup(a,{emit:i}){const r=e.ref({checkStrictly:!0,multiple:!1}),d=u=>{i("update:model-value",u),i("on-change",u)};return(u,n)=>{const c=e.resolveComponent("el-cascader");return e.openBlock(),e.createElementBlock("div",mt,[e.createVNode(c,{clearable:"",class:"base_cascader","show-all-levels":!1,"model-value":a.modelValue,options:a.dataOptions,props:r.value,placeholder:a.placeholder,onChange:d},null,8,["model-value","options","props","placeholder"])])}}}),oo="",pt={class:"bsgoal-base-search"},gt={class:"base_search"},ht={key:1},Et=Object.assign({name:"BsgoalBaseSearch"},{props:{configOptions:{type:[Array],default:()=>[]},medium:{type:[Number,String],default:6},modelValue:{type:[Object],default:()=>({})}},emits:["on-search","on-clear","on-change","on-fold"],setup(a,{emit:i}){const r=a,d=e.ref(null),u=J.align,n=e.ref({});e.watchEffect(()=>{const{configOptions:p}=r;e.unref(p).forEach(m=>{const{value:g,prop:b="",type:T=""}=m;[t.INPUT,t.INPUT_TEXT_AREA].includes(T),n.value[b]=[0,!1].includes(g)?g:""})});const c=e.computed(()=>{const{configOptions:p}=r,B=e.unref(p),m={type:t.OPERATION};return[...B,m]}),h=(p="",B="",m="")=>{if(!m)switch(p){case t.INPUT:case t.INPUT_TEXT_AREA:return`请输入${B}`;case t.SELECT:case t.DATE:case t.WEEK:case t.MONTH:case t.YEAR:case t.DATE_TIME:case t.TIME:case t.CASCADER:return`请选择${B}`;case t.DATE_RANGE:case t.DATE_TIME_RANGE:return["开始日期","结束日期"];case t.TIME_RANGE:return["开始时间","结束时间"];case t.MONTH_RANGE:return["开始月份","结束月份"]}return m},E=(p="",B="")=>{if(!B)switch(p){case t.WEEK:return"ww";case t.DATE:case t.DATE_RANGE:return"YYYY-MM-DD";case t.MONTH:return"MM";case t.YEAR:return"YYYY";case t.MONTH_RANGE:return"YYYY-MM";case t.TIME:case t.TIME_RANGE:return"HH:mm:ss";case t.DATE_TIME:case t.DATE_TIME_RANGE:return"YYYY-MM-DD HH:mm:ss"}return B},V=()=>{const{configOptions:p}=r,B=e.unref(n),m=e.unref(p),g={};for(const b of m){const{type:T="",range:y=[],prop:A="",single:D=!1}=b,x=B[A];if([t.CASCADER].includes(T)&&Array.isArray(x)&&D){const S=x.length;S?g[A]=x[S-1]:g[A]=x}else e.isProxy(x)?g[A]=e.toRaw(x):g[A]=x;if(T.endsWith("range")&&y&&y.length===2){const{0:S="",1:U=""}=x,{0:P="",1:L=""}=y;g[P]=S,g[L]=U}}i("on-search",g),i("update:modelValue",g)};e.nextTick(()=>{V()});const C=()=>{d.value.resetFields(),i("on-clear",n.value)},N=e.inject("transferFoldStatus"),k=e.ref(!1),M=(p=!1)=>{k.value=p,N&&(N.value=p),i("on-fold",k)},f=(p,B)=>{V();const m={type:p,prop:B,value:n.value[B]||""};i("on-change",m)};return(p,B)=>{const m=e.resolveComponent("el-input"),g=e.resolveComponent("el-input-number"),b=e.resolveComponent("el-radio"),T=e.resolveComponent("el-radio-group"),y=e.resolveComponent("el-option"),A=e.resolveComponent("el-select"),D=e.resolveComponent("el-slider"),x=e.resolveComponent("el-switch"),S=e.resolveComponent("el-date-picker"),U=e.resolveComponent("el-time-picker"),P=e.resolveComponent("el-checkbox"),L=e.resolveComponent("el-checkbox-group"),ee=e.resolveComponent("el-form-item"),te=e.resolveComponent("el-col"),oe=e.resolveComponent("el-row"),O=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",pt,[e.createElementVNode("div",gt,[e.withDirectives((e.openBlock(),e.createBlock(O,{ref_key:"EL_FORM_REF",ref:d,"label-suffix":":","show-message":!1,model:n.value},{default:e.withCtx(()=>[e.createVNode(oe,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),({label:_="",prop:l="",type:s="text",placeholder:F="",readonly:W=!1,clearable:X=!0,rows:Q=2,min:H=1,max:z=10,range:I=[],format:j=""}={},G)=>e.withDirectives((e.openBlock(),e.createBlock(te,{key:G,xs:24,sm:12,md:a.medium},{default:e.withCtx(()=>[e.createVNode(ee,{label:_,prop:l},{default:e.withCtx(()=>[W?(e.openBlock(),e.createElementBlock("div",ht,e.toDisplayString(n.value[l]),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[s===e.unref(t).INPUT?(e.openBlock(),e.createBlock(m,{key:0,modelValue:n.value[l],"onUpdate:modelValue":o=>n.value[l]=o,placeholder:h(s,_,F),clearable:X,onChange:o=>f(s,l)},null,8,["modelValue","onUpdate:modelValue","placeholder","clearable","onChange"])):e.createCommentVNode("",!0),s===e.unref(t).INPUT_TEXT_AREA?(e.openBlock(),e.createBlock(m,{key:1,modelValue:n.value[l],"onUpdate:modelValue":o=>n.value[l]=o,type:"textarea",rows:Q,clearable:X,placeholder:h(s,_,F),onChange:o=>f(s,l)},null,8,["modelValue","onUpdate:modelValue","rows","clearable","placeholder","onChange"])):e.createCommentVNode("",!0),s===e.unref(t).INPUT_NUMBER?(e.openBlock(),e.createBlock(g,{key:2,modelValue:p.num,"onUpdate:modelValue":B[0]||(B[0]=o=>p.num=o),min:H,max:z,onChange:f},null,8,["modelValue","min","max"])):e.createCommentVNode("",!0),s===e.unref(t).RADIO?(e.openBlock(),e.createBlock(T,{key:3,modelValue:n.value[l],"onUpdate:modelValue":o=>n.value[l]=o,onChange:o=>f(s,l)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(I,(o,R)=>(e.openBlock(),e.createBlock(b,{key:R,label:o.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.label),1)]),_:2},1032,["label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])):e.createCommentVNode("",!0),s===e.unref(t).SELECT?(e.openBlock(),e.createBlock(A,{key:4,modelValue:n.value[l],"onUpdate:modelValue":o=>n.value[l]=o,placeholder:h(s,_,F),onChange:o=>f(s,l)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(I,(o,R)=>(e.openBlock(),e.createBlock(y,{key:R,label:o.label,value:o.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder","onChange"])):e.createCommentVNode("",!0),s===e.unref(t).SLIDER?(e.openBlock(),e.createBlock(D,{key:5,modelValue:n.value[l],"onUpdate:modelValue":o=>n.value[l]=o,min:H,max:z,onChange:o=>f(s,l)},null,8,["modelValue","onUpdate:modelValue","min","max","onChange"])):e.createCommentVNode("",!0),s===e.unref(t).SWITCH?(e.openBlock(),e.createBlock(x,{key:6,modelValue:n.value[l],"onUpdate:modelValue":o=>n.value[l]=o,"active-value":I[0]||!0,"inactive-value":I[1]||!1,onChange:o=>f(s,l)},null,8,["modelValue","onUpdate:modelValue","active-value","inactive-value","onChange"])):e.createCommentVNode("",!0),[e.unref(t).DATE,e.unref(t).MONTH,e.unref(t).YEAR,e.unref(t).DATE_TIME].includes(s)?(e.openBlock(),e.createBlock(S,{key:7,modelValue:n.value[l],"onUpdate:modelValue":o=>n.value[l]=o,format:E(s,j),"value-format":E(s,j),type:s,placeholder:h(s,_,F),onChange:o=>f(s,l)},null,8,["modelValue","onUpdate:modelValue","format","value-format","type","placeholder","onChange"])):e.createCommentVNode("",!0),[e.unref(t).DATE_RANGE,e.unref(t).MONTH_RANGE,e.unref(t).DATE_TIME_RANGE].includes(s)?(e.openBlock(),e.createBlock(S,{key:8,modelValue:n.value[l],"onUpdate:modelValue":o=>n.value[l]=o,type:s,"value-format":E(s,j),"start-placeholder":h(s,_,F)[0],"end-placeholder":h(s,_,F)[1],onChange:o=>f(s,l)},null,8,["modelValue","onUpdate:modelValue","type","value-format","start-placeholder","end-placeholder","onChange"])):e.createCommentVNode("",!0),[e.unref(t).TIME].includes(s)?(e.openBlock(),e.createBlock(U,{key:9,modelValue:n.value[l],"onUpdate:modelValue":o=>n.value[l]=o,"arrow-control":"","value-format":E(s,j),placeholder:h(s,_,F),onChange:o=>f(s,l)},null,8,["modelValue","onUpdate:modelValue","value-format","placeholder","onChange"])):e.createCommentVNode("",!0),[e.unref(t).TIME_RANGE].includes(s)?(e.openBlock(),e.createBlock(U,{key:10,modelValue:n.value[l],"onUpdate:modelValue":o=>n.value[l]=o,"is-range":"","value-format":E(s,j),"start-placeholder":h(s,_,F)[0],"end-placeholder":h(s,_,F)[1],onChange:o=>f(s,l)},null,8,["modelValue","onUpdate:modelValue","value-format","start-placeholder","end-placeholder","onChange"])):e.createCommentVNode("",!0),[e.unref(t).CHECKBOX].includes(s)?(e.openBlock(),e.createBlock(L,{key:11,modelValue:n.value[l],"onUpdate:modelValue":o=>n.value[l]=o,onChange:o=>f(s,l)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(I,(o,R)=>(e.openBlock(),e.createBlock(P,{key:R,label:o.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.label),1)]),_:2},1032,["label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])):e.createCommentVNode("",!0),[e.unref(t).CASCADER].includes(s)?(e.openBlock(),e.createBlock(ft,{key:12,modelValue:n.value[l],"onUpdate:modelValue":o=>n.value[l]=o,"data-options":I,placeholder:h(s,_,F),onOnChange:o=>f(s,l)},null,8,["modelValue","onUpdate:modelValue","data-options","placeholder","onOnChange"])):e.createCommentVNode("",!0),[].includes(s)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:13},[],64)):e.createCommentVNode("",!0),[e.unref(t).OPERATION].includes(s)?(e.openBlock(),e.createBlock(_t,{key:14,fold:G>=7,onOnSearch:V,onOnClear:C,onOnFold:M},null,8,["fold"])):e.createCommentVNode("",!0)],64))]),_:2},1032,["label","prop"])]),_:2},1032,["md"])),[[e.vShow,G<7||s===e.unref(t).OPERATION||G>=7&&k.value]])),128))]),_:1})]),_:1},8,["model"])),[[e.unref(u)]])]),e.createVNode(v)])}}}),lo="",Bt={class:"bsgoal-base-search-table"},Ct={class:"base_search_table"},kt=Object.assign({name:"BsgoalBaseSearchTable"},{props:{configOptions:{type:[Array],default:()=>[]},tableData:{type:[Array],default:()=>[]},selection:{type:[Boolean],default:!1},operation:{type:[Boolean],default:!1},operationWidth:{type:[String,Number],default:100},fetch:{type:[Object,Function],default:null},call:{type:[Object,Function],default:null},expression:{type:[Number],default:75}},setup(a){const i=a,r=e.ref(!1);e.provide("transferFoldStatus",r);const d=e.unref(i.configOptions),u=e.computed(()=>d.filter(C=>{const{type:N=""}=C;return!!N})),n=e.computed(()=>d.filter(C=>{const{item:N=!1}=C;return!N})),c=e.useSlots(),h=e.ref(Object.keys(c)),E=e.ref(null),V=C=>{E.value.refreshList(C)};return(C,N)=>(e.openBlock(),e.createElementBlock("div",Bt,[e.createElementVNode("div",Ct,[e.createVNode(Et,{"config-options":e.unref(u),onOnSearch:V,onOnClear:V},null,8,["config-options"]),e.createVNode(ne,{ref_key:"BSGOAL_BASE_TABLE_REF",ref:E,operationWidth:a.operationWidth,"config-options":e.unref(n),data:a.tableData,selection:a.selection,operation:a.operation,expression:a.expression,fetch:a.fetch,call:a.call},e.createSlots({_:2},[e.renderList(h.value,k=>({name:k,fn:e.withCtx(({row:M={}})=>[e.renderSlot(C.$slots,k,{row:M})])}))]),1032,["operationWidth","config-options","data","selection","operation","expression","fetch","call"])])]))}}),ro="",Vt={class:"bsgoal-base-tree-fold"},Nt=Object.assign({name:"BsgoalBaseTreeFold"},{props:["modelValue"],emits:["update:modelValue"],setup(a,{emit:i}){let r=e.ref(!0);const d=()=>{r.value=!r.value,i("update:modelValue",r.value)};return(u,n)=>{const c=e.resolveComponent("el-icon");return e.openBlock(),e.createElementBlock("div",Vt,[e.createElementVNode("div",{class:e.normalizeClass(["base_tree_fold",{"base_tree_fold--hide":!e.unref(r)}]),onClick:d},[e.createVNode(c,{color:"#fff"},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(e.unref(ze),null,null,512),[[e.vShow,e.unref(r)]]),e.withDirectives(e.createVNode(e.unref(We),null,null,512),[[e.vShow,!e.unref(r)]])]),_:1})],2)])}}}),so="",bt={class:"bsgoal-base-tree"},Tt={class:"base_tree"},xt={class:"base_tree_main"},wt=Object.assign({name:"BsgoalBaseTree"},{props:{gasket:{type:[String,Number],default:10},data:{type:[Object,Array],default:()=>[]},treeProps:{type:[Object],default:()=>({label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",class:"class"})},lazyLoad:{type:[Function],default:()=>{}},initNode:{type:[Function],default:()=>{}}},emits:["on-click"],setup(a,{emit:i}){const r=a,d=J.height,u=e.ref(""),n=e.ref(null);e.watch(u,C=>{n.value.filter(C)});const c=(C,N)=>C?N.label.includes(C):!0,h=e.ref(!0),E=(C,N,k,M)=>{i("on-click",C,N,k,M)},V=async(C,N,k)=>{if(C.level===0){const M=await k.initNode(C);return N(M||[])}else{const M=await k.lazyLoad(C);N(M||[])}};return(C,N)=>{const k=e.resolveComponent("el-input"),M=e.resolveComponent("el-tree");return e.openBlock(),e.createElementBlock("div",bt,[e.withDirectives((e.openBlock(),e.createElementBlock("div",Tt,[e.withDirectives(e.createElementVNode("div",xt,[e.createVNode(k,{modelValue:u.value,"onUpdate:modelValue":N[0]||(N[0]=f=>u.value=f),class:"base_tree_main_input",placeholder:"输入关键字过滤"},null,8,["modelValue"]),e.createVNode(M,{ref_key:"EL_TREE_REF",ref:n,lazy:"","highlight-current":"","empty-text":"暂无数据",load:(f,p)=>V(f,p,r),"expand-on-click-node":!1,props:a.treeProps,"filter-node-method":c,onNodeClick:E},null,8,["load","props"])],512),[[e.vShow,h.value]]),e.withDirectives(e.createVNode(v,{vertical:""},null,512),[[e.vShow,h.value]]),e.createVNode(Nt,{modelValue:h.value,"onUpdate:modelValue":N[1]||(N[1]=f=>h.value=f)},null,8,["modelValue"])])),[[e.unref(d),a.gasket]])])}}}),uo="",yt={class:"bsgoal-base-dialog"},At={class:"base_dialog"},Mt={class:"base_dialog_header"},Dt={class:"base_dialog_content"},$t={class:"base_dialog_footer"},St=Object.assign({name:"BsgoalBaseDialog"},{props:{modelValue:{type:[Boolean],default:!1},title:{type:[String],default:"标题"},cancelTxt:{type:[String],default:"取消"},confirmTxt:{type:[String],default:"确定"}},emits:["update:modelValue","on-confirm"],setup(a,{emit:i}){const r=a,d=e.ref(r.modelValue.value),u=()=>{d.value=!1},n=()=>{d.value=!1,i("on-confirm")};return e.watch(()=>r.modelValue,c=>{d.value=c}),e.watch(d,c=>{i("update:modelValue",c)}),(c,h)=>{const E=e.resolveComponent("el-button"),V=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",yt,[e.createElementVNode("div",At,[e.createVNode(V,{modelValue:d.value,"onUpdate:modelValue":h[0]||(h[0]=C=>d.value=C),"custom-class":"bsgoal_base_dialog_main"},{header:e.withCtx(()=>[e.createElementVNode("div",Mt,e.toDisplayString(a.title),1)]),footer:e.withCtx(()=>[e.createElementVNode("span",$t,[e.createVNode(E,{onClick:u},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.cancelTxt),1)]),_:1}),e.createVNode(E,{type:"primary",onClick:n},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.confirmTxt),1)]),_:1})])]),default:e.withCtx(()=>[e.createElementVNode("div",Dt,[e.renderSlot(c.$slots,"default")])]),_:3},8,["modelValue"])])])}}}),Ot=t,Ft=q,It={install(a,i={}){const{exclude:r=[]}=i,d={BsgoalBaseForm:de,BsgoalBaseTable:ne,BsgoalBaseLine:v,BsgoalBaseSearchTable:kt,BsgoalBaseTree:wt,BsgoalBaseDialog:St};for(const[u,n]of Object.entries(d))r.includes(u)||a.component(u,n)},enumType:t,useFetch:q};w.EnumType=Ot,w.default=It,w.useFetchApi=Ft,Object.defineProperties(w,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
2
2
  //# sourceMappingURL=index.umd.js.map