@bsgoal/common 1.9.2 → 1.9.3
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(M,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):(M=typeof globalThis<"u"?globalThis:M||self,e(M["bsgoal-common"]={},M.Vue,M["element-plus"]))})(this,function(M,e,F){"use strict";var ao=Object.defineProperty;var _e=Object.getOwnPropertySymbols;var lo=Object.prototype.hasOwnProperty,co=Object.prototype.propertyIsEnumerable;var me=(M,e,F)=>e in M?ao(M,e,{enumerable:!0,configurable:!0,writable:!0,value:F}):M[e]=F,ce=(M,e)=>{for(var F in e||(e={}))lo.call(e,F)&&me(M,F,e[F]);if(_e)for(var F of _e(e))co.call(e,F)&&me(M,F,e[F]);return M};let n=class{static get INPUT(){return"text"}static get INPUT_NUMBER(){return"number"}static get INPUT_TEXT_AREA(){return"textarea"}static get SELECT(){return"select"}static get SLIDER(){return"slider"}static get SWITCH(){return"switch"}static get RADIO(){return"radio"}static get CHECKBOX(){return"checkbox"}static get DATE(){return"date"}static get WEEK(){return"week"}static get MONTH(){return"month"}static get YEAR(){return"year"}static get DATE_RANGE(){return"daterange"}static get MONTH_RANGE(){return"monthrange"}static get TIME(){return"time"}static get TIME_RANGE(){return"timerange"}static get DATE_TIME(){return"datetime"}static get DATE_TIME_RANGE(){return"datetimerange"}static get OPERATION(){return"operation"}static get CASCADER(){return"cascader"}static get CHECKBOX_SINGLE(){return"checkboxsingle"}},te=null;const oe=t=>{const i=[],a=[],s=(c=[])=>{console.log("elInfoList",c);const o=c.map(u=>u.width),d=Math.max(...o);c.forEach(u=>{const{labelEl:k}=u;k.style.width=`${d}px`})},r=()=>{if(t){const c=t.querySelectorAll(".el-form-item__label");if(c&&c.length){let o=0;c.forEach((d,u)=>{d.style.width="initial",d.style.whiteSpace="nowrap";const{x:k=0,width:C=0}=d.getBoundingClientRect(),N={x:k,width:C,labelEl:d};u===0&&(o=k),k===o?i.push(N):a.push(N)})}}};te&&clearTimeout(te),te=setTimeout(()=>{r(),s(i),s(a)},1e3)},ne={align:{created(t){console.log("el",t),window.addEventListener("resize",()=>{oe(t)})},mounted(t){oe(t)},unmounted(t){window.removeEventListener("resize",oe(t))}},height:(t,{value:i=65,arg:a=""})=>{if(t){const{y:s=0}=t.getBoundingClientRect();t.style.height=`calc(100vh - ${s+i}px)`}}},ro="",fe={class:"bsgoal-base-tooltip"},re=Object.assign({name:"BsgoalBaseTooltip"},{props:{content:{type:[String],default:""},type:{type:[String],default:"text",validator:t=>["text","custom"].includes(t)},limit:{type:[Number],default:10},max:{type:[Number,String],default:"10em"},none:{type:[String],default:"无"}},setup(t){const i=t,a=e.computed(()=>{const{content:r="",limit:c=0,none:o=""}=i;let d=r;const u=r.length;return c&&u>c&&(d=`${r.substring(0,c)}...`),d||o}),s=e.computed(()=>{const{content:r="",limit:c=0}=i;return r.length<c||!c});return(r,c)=>{const o=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("div",fe,[e.createVNode(o,{class:"base_tooltip",effect:"dark","popper-class":"base_tooltip_popper",placement:"top-start",content:t.content,disabled:s.value},{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(a.value),1)])]),_:3},8,["content","disabled"])])}}}),io="",pe={class:"bsgoal-base-form"},ge={class:"base_form"},he={key:1},Ee=Object.assign({name:"BsgoalBaseForm"},{props:{configOptions:{type:[Array],default:()=>[]},medium:{type:[Number,String],default:24},values:{type:[Object],default:()=>({})},limits:{type:[Number],default:0},readonlys:{type:[Boolean],default:!1},none:{type:[String],default:"无"},bindModel:{type:[Object],default:()=>({})},labelPosition:{type:[String],default:"right",validator:t=>["left","rightn","top"].includes(t)}},emits:["on-form","on-clear","on-change","on-fold"],setup(t,{expose:i,emit:a}){const s=t,r=e.ref(null),c=ne.align,o=e.ref(s.bindModel);e.watchEffect(()=>{const{configOptions:p,values:E}=s,B=e.unref(p),b=e.unref(E);B.forEach(_=>{const{value:w="",prop:V="",type:S=""}=_;[n.INPUT,n.INPUT_TEXT_AREA].includes(S);const A=e.unref(o)[V];o.value[V]=A||b[V]||w})});const d=e.computed(()=>{const{configOptions:p}=s;return e.unref(p).map(b=>{let{rules:_=!1,label:w=""}=b;const V={required:!0,message:`${w}不能为空`,trigger:"blur"};return _&&(typeof _=="boolean"?_=[V]:Array.isArray(_)?_=[V,..._]:_=[V,_]),b.rules=_,b})}),u=(p="",E="",B="")=>{if(!B)switch(p){case n.INPUT:case n.INPUT_TEXT_AREA:return`请输入${E}`;case n.SELECT:case n.DATE:case n.WEEK:case n.MONTH:case n.YEAR:case n.DATE_TIME:case n.TIME:return`请选择${E}`;case n.DATE_RANGE:case n.DATE_TIME_RANGE:return["开始日期","结束日期"];case n.TIME_RANGE:return["开始时间","结束时间"];case n.MONTH_RANGE:return["开始月份","结束月份"]}return B},k=(p="",E="")=>{if(!E)switch(p){case n.WEEK:return"ww";case n.DATE:case n.DATE_RANGE:return"YYYY-MM-DD";case n.MONTH:return"MM";case n.YEAR:return"YYYY";case n.MONTH_RANGE:return"YYYY-MM";case n.TIME:case n.TIME_RANGE:return"HH:mm:ss";case n.DATE_TIME:case n.DATE_TIME_RANGE:return"YYYY-MM-DD HH:mm:ss"}return E},C=()=>{const p=e.unref(o),{configOptions:E}=s,B=e.unref(E);for(const b of B){const{type:_="",range:w=[],prop:V=""}=b;if(_.endsWith("range")&&w&&w.length===2){const{0:S="",1:A=""}=p[V],{0:I="",1:T=""}=w;p[I]=S,p[T]=A}}return a("on-form",p),p},N=()=>{r.value.resetFields(),a("on-clear",o.value)},y=(p,E)=>{const B={type:p,prop:E,value:o.value[E]||""};a("on-change",B)},$=(p=()=>{})=>{r.value.validate((E=!1,B={})=>{if(E){const b=C();p(b)}else{p(!1);const b=Object.keys(B)[0],{[b]:{0:{message:_=""}}}=B;F.ElMessage.error(_)}})},x=(p=[],E="")=>{const{0:B={},1:b={}}=p,{value:_=!1,label:w=""}=B,{value:V=!1,label:S=""}=b;switch(E){case"active-value":return _;case"inactive-value":return V;case"active-text":return w;case"inactive-text":return S}};return i({triggerOperationClear:N,triggerOperationForm:C,validateForm:$}),(p,E)=>{const B=e.resolveComponent("el-input"),b=e.resolveComponent("el-input-number"),_=e.resolveComponent("el-radio"),w=e.resolveComponent("el-radio-group"),V=e.resolveComponent("el-option"),S=e.resolveComponent("el-select"),A=e.resolveComponent("el-slider"),I=e.resolveComponent("el-switch"),T=e.resolveComponent("el-date-picker"),L=e.resolveComponent("el-time-picker"),P=e.resolveComponent("el-checkbox"),j=e.resolveComponent("el-checkbox-group"),G=e.resolveComponent("el-form-item"),K=e.resolveComponent("el-col"),Q=e.resolveComponent("el-row"),W=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",pe,[e.createElementVNode("div",ge,[e.withDirectives((e.openBlock(),e.createBlock(W,{ref_key:"EL_FORM_REF",ref:r,"label-suffix":":","label-position":t.labelPosition,model:o.value},{default:e.withCtx(()=>[e.createVNode(Q,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,({label:R="",prop:m="",type:l="text",placeholder:f="",readonly:O=t.readonlys,clearable:q=!0,rows:v=2,min:ee=1,max:Z=10,range:D=[],format:U="",rules:Y=[],limit:X=t.limits,length:g=255}={},H)=>(e.openBlock(),e.createBlock(K,{key:H,xs:24,sm:24,md:t.medium},{default:e.withCtx(()=>[e.createVNode(G,{label:R,prop:m,rules:Y},{default:e.withCtx(()=>[e.renderSlot(p.$slots,[m],{option:{readonly:O,value:o.value[m],values:o.value}},()=>[O?(e.openBlock(),e.createElementBlock("div",he,[e.createVNode(re,{content:o.value[m],limit:X,none:t.none},null,8,["content","limit","none"])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[l===e.unref(n).INPUT?(e.openBlock(),e.createBlock(B,{key:0,modelValue:o.value[m],"onUpdate:modelValue":h=>o.value[m]=h,placeholder:u(l,R,f),clearable:q,onChange:h=>y(l,m)},null,8,["modelValue","onUpdate:modelValue","placeholder","clearable","onChange"])):e.createCommentVNode("",!0),l===e.unref(n).INPUT_TEXT_AREA?(e.openBlock(),e.createBlock(B,{key:1,modelValue:o.value[m],"onUpdate:modelValue":h=>o.value[m]=h,"show-word-limit":"",type:"textarea",autosize:{minRows:v},maxlength:g,clearable:q,placeholder:u(l,R,f),onChange:h=>y(l,m)},null,8,["modelValue","onUpdate:modelValue","autosize","maxlength","clearable","placeholder","onChange"])):e.createCommentVNode("",!0),l===e.unref(n).INPUT_NUMBER?(e.openBlock(),e.createBlock(b,{key:2,modelValue:o.value[m],"onUpdate:modelValue":h=>o.value[m]=h,"controls-position":"right",min:ee,max:Z,onChange:y},null,8,["modelValue","onUpdate:modelValue","min","max"])):e.createCommentVNode("",!0),l===e.unref(n).RADIO?(e.openBlock(),e.createBlock(w,{key:3,modelValue:o.value[m],"onUpdate:modelValue":h=>o.value[m]=h,onChange:h=>y(l,m)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(D,(h,J)=>(e.openBlock(),e.createBlock(_,{key:J,label:h.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(h.label),1)]),_:2},1032,["label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])):e.createCommentVNode("",!0),l===e.unref(n).SELECT?(e.openBlock(),e.createBlock(S,{key:4,modelValue:o.value[m],"onUpdate:modelValue":h=>o.value[m]=h,placeholder:u(l,R,f),onChange:h=>y(l,m)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(D,(h,J)=>(e.openBlock(),e.createBlock(V,{key:J,label:h.label,value:h.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder","onChange"])):e.createCommentVNode("",!0),l===e.unref(n).SLIDER?(e.openBlock(),e.createBlock(A,{key:5,modelValue:o.value[m],"onUpdate:modelValue":h=>o.value[m]=h,min:ee,max:Z,onChange:h=>y(l,m)},null,8,["modelValue","onUpdate:modelValue","min","max","onChange"])):e.createCommentVNode("",!0),l===e.unref(n).SWITCH?(e.openBlock(),e.createBlock(I,{key:6,modelValue:o.value[m],"onUpdate:modelValue":h=>o.value[m]=h,"active-value":x(D,"active-value"),"inactive-value":x(D,"inactive-value"),"active-text":x(D,"active-text"),"inactive-text":x(D,"inactive-text"),onChange:h=>y(l,m)},null,8,["modelValue","onUpdate:modelValue","active-value","inactive-value","active-text","inactive-text","onChange"])):e.createCommentVNode("",!0),[e.unref(n).DATE,e.unref(n).MONTH,e.unref(n).YEAR,e.unref(n).DATE_TIME].includes(l)?(e.openBlock(),e.createBlock(T,{key:7,modelValue:o.value[m],"onUpdate:modelValue":h=>o.value[m]=h,format:k(l,U),"value-format":k(l,U),type:l,placeholder:u(l,R,f),onChange:h=>y(l,m)},null,8,["modelValue","onUpdate:modelValue","format","value-format","type","placeholder","onChange"])):e.createCommentVNode("",!0),[e.unref(n).DATE_RANGE,e.unref(n).MONTH_RANGE,e.unref(n).DATE_TIME_RANGE].includes(l)?(e.openBlock(),e.createBlock(T,{key:8,modelValue:o.value[m],"onUpdate:modelValue":h=>o.value[m]=h,type:l,"value-format":k(l,U),"start-placeholder":u(l,R,f)[0],"end-placeholder":u(l,R,f)[1],onChange:h=>y(l,m)},null,8,["modelValue","onUpdate:modelValue","type","value-format","start-placeholder","end-placeholder","onChange"])):e.createCommentVNode("",!0),[e.unref(n).TIME].includes(l)?(e.openBlock(),e.createBlock(L,{key:9,modelValue:o.value[m],"onUpdate:modelValue":h=>o.value[m]=h,"arrow-control":"","value-format":k(l,U),placeholder:u(l,R,f),onChange:h=>y(l,m)},null,8,["modelValue","onUpdate:modelValue","value-format","placeholder","onChange"])):e.createCommentVNode("",!0),[e.unref(n).TIME_RANGE].includes(l)?(e.openBlock(),e.createBlock(L,{key:10,modelValue:o.value[m],"onUpdate:modelValue":h=>o.value[m]=h,"is-range":"","value-format":k(l,U),"start-placeholder":u(l,R,f)[0],"end-placeholder":u(l,R,f)[1],onChange:h=>y(l,m)},null,8,["modelValue","onUpdate:modelValue","value-format","start-placeholder","end-placeholder","onChange"])):e.createCommentVNode("",!0),[e.unref(n).CHECKBOX].includes(l)?(e.openBlock(),e.createBlock(j,{key:11,modelValue:o.value[m],"onUpdate:modelValue":h=>o.value[m]=h,onChange:h=>y(l,m)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(D,(h,J)=>(e.openBlock(),e.createBlock(P,{key:J,label:h.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(h.label),1)]),_:2},1032,["label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])):e.createCommentVNode("",!0),[e.unref(n).CHECKBOX_SINGLE].includes(l)?(e.openBlock(),e.createBlock(P,{key:12,modelValue:o.value[m],"onUpdate:modelValue":h=>o.value[m]=h,"true-label":D[0]?D[0].value:"1","false-label":D[1]?D[1].value:"0",onChange:h=>y(l,m)},null,8,["modelValue","onUpdate:modelValue","true-label","false-label","onChange"])):e.createCommentVNode("",!0),[].includes(l)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:13},[],64)):e.createCommentVNode("",!0)],64))])]),_:2},1032,["label","prop","rules"])]),_:2},1032,["md"]))),128))]),_:3})]),_:3},8,["label-position","model"])),[[e.unref(c)]])])])}}}),_o="",Be={class:"bsgoal-base-table-content"},ke={class:"base_table_content"},Ce={key:1,class:"base_table_table_txt"},be=Object.assign({name:"BsgoalBaseTableContent"},{props:{data:{type:[String,Number,Object,Boolean],default:""},tooltip:{type:[Boolean,Number],default:!1},limit:{type:[Number],default:10}},setup(t){return(i,a)=>(e.openBlock(),e.createElementBlock("div",Be,[e.createElementVNode("div",ke,[t.tooltip?(e.openBlock(),e.createBlock(re,{key:0,content:t.data,limit:t.limit},null,8,["content","limit"])):(e.openBlock(),e.createElementBlock("div",Ce,e.toDisplayString(t.data),1))])]))}});/*! Element Plus v2.3.4 */var ye={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 fo="",Ve={class:"bsgoal-base-table-pagination"},Ne={class:"base_table_pagination"},xe=e.createElementVNode("span",null,"总数",-1),we=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(t,{emit:i}){const a=(c=0)=>{i("on-size-change",c)},s=(c=1)=>{i("on-current-change",c)},r=e.ref(1);return(c,o)=>{const d=e.resolveComponent("el-pagination"),u=e.resolveComponent("el-config-provider");return e.openBlock(),e.createElementBlock("div",Ve,[e.createElementVNode("div",Ne,[e.createVNode(u,{locale:e.unref(ye)},{default:e.withCtx(()=>[e.createVNode(d,{background:"",layout:"total, sizes, prev, pager, next, jumper","current-page":r.value,"onUpdate:currentPage":o[0]||(o[0]=k=>r.value=k),"page-sizes":t.pageSizes,"page-size":t.pageSize,total:t.total,onSizeChange:a,onCurrentChange:s},{next:e.withCtx(()=>[xe]),_:1},8,["current-page","page-sizes","page-size","total"])]),_:1},8,["locale"])])])}}}),go="",se=(t,i)=>{const a=t.__vccOpts||t;for(const[s,r]of i)a[s]=r;return a},Te={name:"BsgoalBaseTableEmpty"},Ae={class:"bsgoal-base-table-empty"},$e=[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 Se(t,i,a,s,r,c){return e.openBlock(),e.createElementBlock("div",Ae,$e)}const Me=se(Te,[["render",Se]]),De=(t=null,{expression:i=75,arg:a={},height:s=""}={})=>{const r=e.unref(t);if(r){const c=r.querySelector(".el-table");c&&e.nextTick(()=>{const{y:o=0}=c.getBoundingClientRect();let d=`calc(100vh - ${o+i}px)`;const u=Number.parseInt(s);s&&(u?d=`${s}px`:d=s),c.style.height=d})}},ae=(t=Promise.resolve(),i=null,a=e.ref(!1),s=e.ref(null))=>{const r=e.ref("");return a.value=!0,t.then((c={})=>{const{data:o={},message:d=""}=c;s.value=o,r.value=d,i&&i(!0,o),a.value=!1}).catch((c={})=>{if(typeof c=="object"){const{message:o=""}=c;r.value=o}else r.value=c;i&&i(!1,c),a.value=!1}).finally(()=>{a.value=!1}),{data:s,message:r,loading:a}},Oe=(t=null)=>{switch(toString.apply(t)){case"[object Object]":return"object";case"[object Function]":return"function";case"[object String]":return"string";case"[object Number]":return"number";case"[object Null]":return"null";case"[object Boolean]":return"boolean";case"[object Undefind]":return"undefind"}},Fe=t=>Oe(t)==="boolean",Eo="",Ie={class:"bsgoal-base-table"},Le={class:"base_table"},Re={key:0,class:"base_table_menu"},ie=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},height:{type:[Number,String,Boolean],default:""},hasPage:{type:Boolean,default:!0}},setup(t,{expose:i}){const a=t,s=e.computed(()=>{const{configOptions:_=[],operation:w=!1,operationWidth:V=0}=a,S=e.unref(_),A=[];return w&&A.push({label:"操作",fixed:"right",prop:"operation",width:V}),[...S,...A]}),r=e.ref(null),c=e.inject("transferFoldStatus");e.watchEffect(()=>{const{height:_}=a,w=c?c.value:!1,V=e.unref(a.expression);Fe(_)||De(r,{arg:w,expression:V,height:_})});const o=e.unref(a.mapProps),d=ce({currentPage:"currentPage",pageSize:"pageSize",rows:"rows",total:"total"},o),u=e.ref(1),k=e.ref(10),C=e.ref(0),N=e.ref({}),y=e.ref(a.loading),$=e.ref(),x=e.ref({}),p=()=>{const{fetch:_,call:w,hasPage:V}=a,S=N.value,A=u.value,I=k.value,T=ce({},S);V&&(T[d.currentPage]=A,T[d.pageSize]=I),ae(_(T),w,y,x)};e.watchEffect(()=>{$.value=a.data}),e.watch(x,_=>{a.hasPage?($.value=_[d.rows],C.value=_[d.total]):$.value=_});const E=(_={})=>{N.value=_,u.value=1,p()},B=(_=1)=>{u.value=_},b=(_=10)=>{k.value=_};return e.watch([u,k],()=>{p()}),i({refreshList:E}),(_,w)=>{const V=e.resolveComponent("el-table-column"),S=e.resolveComponent("el-table"),A=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",Ie,[e.createElementVNode("div",Le,[_.$slots.menu?(e.openBlock(),e.createElementBlock("div",Re,[e.renderSlot(_.$slots,"menu")])):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"EL_TABLE_WRAP_REF",ref:r},[e.withDirectives((e.openBlock(),e.createBlock(S,{stripe:"",border:"","highlight-current-row":"",style:{width:"100%"},data:$.value,"header-cell-style":{fontWeight:"bold",backgroundColor:"#EBEEF5",color:"rgba(0,0,0,.85)",fontSize:"14px"}},{empty:e.withCtx(()=>[e.createVNode(Me)]),default:e.withCtx(()=>[t.selection?(e.openBlock(),e.createBlock(V,{key:0,fixed:"left",type:"selection",width:"40"})):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,({prop:I="",label:T="",align:L="center",width:P="",fixed:j=!1,tooltip:G=!1,limit:K=0}={},Q)=>(e.openBlock(),e.createBlock(V,{key:Q,label:T,align:L,width:P,fixed:j,"min-width":`${T.length*14+24}px`},{default:e.withCtx(({row:W})=>[e.renderSlot(_.$slots,I,{row:W},()=>[e.createVNode(be,{limit:K,tooltip:G,data:W[I]},null,8,["limit","tooltip","data"])])]),_:2},1032,["label","align","width","fixed","min-width"]))),128))]),_:3},8,["data","header-cell-style"])),[[A,y.value]])],512),t.hasPage?(e.openBlock(),e.createBlock(we,{key:1,total:C.value,onOnCurrentChange:B,onOnSizeChange:b},null,8,["total"])):e.createCommentVNode("",!0)])])}}}),ko="",le=Object.assign({name:"BsgoalBaseLine"},{props:{vertical:{type:[Boolean],default:!1}},setup(t){return(i,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["bsgoal-base-line",{"bsgoal-base-line__vertical":t.vertical}])},[e.createElementVNode("div",{class:e.normalizeClass(["base_line",{base_line__vertical:t.vertical}])},null,2)],2))}});/*! Element Plus Icons Vue v2.1.0 */var z=(t,i)=>{let a=t.__vccOpts||t;for(let[s,r]of i)a[s]=r;return a},Ue={name:"ArrowDown"},Pe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ze=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),je=[ze];function Ge(t,i,a,s,r,c){return e.openBlock(),e.createElementBlock("svg",Pe,je)}var Ye=z(Ue,[["render",Ge],["__file","arrow-down.vue"]]),He={name:"ArrowLeft"},We={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Xe=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),Ke=[Xe];function Qe(t,i,a,s,r,c){return e.openBlock(),e.createElementBlock("svg",We,Ke)}var Ze=z(He,[["render",Qe],["__file","arrow-left.vue"]]),Je={name:"ArrowRight"},qe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ve=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),et=[ve];function tt(t,i,a,s,r,c){return e.openBlock(),e.createElementBlock("svg",qe,et)}var ot=z(Je,[["render",tt],["__file","arrow-right.vue"]]),nt={name:"ArrowUp"},at={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},lt=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),ct=[lt];function rt(t,i,a,s,r,c){return e.openBlock(),e.createElementBlock("svg",at,ct)}var st=z(nt,[["render",rt],["__file","arrow-up.vue"]]),it={name:"Delete"},dt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ut=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),_t=[ut];function mt(t,i,a,s,r,c){return e.openBlock(),e.createElementBlock("svg",dt,_t)}var de=z(it,[["render",mt],["__file","delete.vue"]]),ft={name:"Plus"},pt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},gt=e.createElementVNode("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z"},null,-1),ht=[gt];function Et(t,i,a,s,r,c){return e.openBlock(),e.createElementBlock("svg",pt,ht)}var Bt=z(ft,[["render",Et],["__file","plus.vue"]]),kt={name:"Search"},Ct={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},bt=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),yt=[bt];function Vt(t,i,a,s,r,c){return e.openBlock(),e.createElementBlock("svg",Ct,yt)}var Nt=z(kt,[["render",Vt],["__file","search.vue"]]);const bo="",xt={class:"bsgoal-base-search-operation"},wt=Object.assign({name:"BsgoalBaseSearchOperation"},{props:{fold:{type:[Boolean],default:!1}},emits:["on-fold"],setup(t,{emit:i}){const a=e.ref(!1),s=()=>{a.value=!e.unref(a),i("on-fold",a.value)};return(r,c)=>{const o=e.resolveComponent("el-button"),d=e.resolveComponent("el-icon");return e.openBlock(),e.createElementBlock("div",xt,[e.createVNode(o,{type:"primary",icon:e.unref(Nt),onClick:c[0]||(c[0]=u=>r.$emit("on-search"))},{default:e.withCtx(()=>[e.createTextVNode("搜索")]),_:1},8,["icon"]),e.createVNode(o,{icon:e.unref(de),onClick:c[1]||(c[1]=u=>r.$emit("on-clear"))},{default:e.withCtx(()=>[e.createTextVNode("清空")]),_:1},8,["icon"]),t.fold?(e.openBlock(),e.createElementBlock("div",{key:0,class:"operation_fold",style:{color:"var(--el-color-primary)"},onClick:s},[e.createTextVNode(e.toDisplayString(a.value?"收起":"展开"),1),e.createVNode(d,{color:"#409EFC"},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(e.unref(st),null,null,512),[[e.vShow,a.value]]),e.withDirectives(e.createVNode(e.unref(Ye),null,null,512),[[e.vShow,!a.value]])]),_:1})])):e.createCommentVNode("",!0)])}}}),Vo="",Tt={class:"bsgoal-base-cascader"},At=Object.assign({name:"BsgoalBaseCascader"},{props:{modelValue:{type:[Array],default:()=>[]},dataOptions:{type:[Array],default:()=>[]},placeholder:{type:[String],default:""}},emits:["update:model-value","on-change"],setup(t,{emit:i}){const a=e.ref({checkStrictly:!0,multiple:!1}),s=r=>{i("update:model-value",r),i("on-change",r)};return(r,c)=>{const o=e.resolveComponent("el-cascader");return e.openBlock(),e.createElementBlock("div",Tt,[e.createVNode(o,{clearable:"",class:"base_cascader","show-all-levels":!1,"model-value":t.modelValue,options:t.dataOptions,props:a.value,placeholder:t.placeholder,onChange:s},null,8,["model-value","options","props","placeholder"])])}}}),xo="",$t={class:"bsgoal-base-search"},St={class:"base_search"},Mt={key:1},Dt=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(t,{expose:i,emit:a}){const s=t,r=e.ref(null),c=ne.align,o=e.ref({});e.watchEffect(()=>{const{configOptions:E}=s;e.unref(E).forEach(b=>{const{value:_,prop:w="",type:V=""}=b;[n.INPUT,n.INPUT_TEXT_AREA].includes(V),o.value[w]=[0,!1].includes(_)?_:""})});const d=e.computed(()=>{const{configOptions:E}=s,B=e.unref(E),b={type:n.OPERATION};return[...B,b]}),u=(E="",B="",b="")=>{if(!b)switch(E){case n.INPUT:case n.INPUT_TEXT_AREA:return`请输入${B}`;case n.SELECT:case n.DATE:case n.WEEK:case n.MONTH:case n.YEAR:case n.DATE_TIME:case n.TIME:case n.CASCADER:return`请选择${B}`;case n.DATE_RANGE:case n.DATE_TIME_RANGE:return["开始日期","结束日期"];case n.TIME_RANGE:return["开始时间","结束时间"];case n.MONTH_RANGE:return["开始月份","结束月份"]}return b},k=(E="",B="")=>{if(!B)switch(E){case n.WEEK:return"ww";case n.DATE:case n.DATE_RANGE:return"YYYY-MM-DD";case n.MONTH:return"MM";case n.YEAR:return"YYYY";case n.MONTH_RANGE:return"YYYY-MM";case n.TIME:case n.TIME_RANGE:return"HH:mm:ss";case n.DATE_TIME:case n.DATE_TIME_RANGE:return"YYYY-MM-DD HH:mm:ss"}return B},C=()=>{const{configOptions:E}=s,B=e.unref(o),b=e.unref(E),_={};for(const w of b){const{type:V="",range:S=[],prop:A="",single:I=!1}=w,T=B[A];if([n.CASCADER].includes(V)&&Array.isArray(T)&&I){const L=T.length;L?_[A]=T[L-1]:_[A]=T}else e.isProxy(T)?_[A]=e.toRaw(T):_[A]=T;if(V.endsWith("range")&&S&&S.length===2){const{0:L="",1:P=""}=T,{0:j="",1:G=""}=S;_[j]=L,_[G]=P}}a("on-search",_),a("update:modelValue",_)};e.nextTick(()=>{C()});const N=()=>{r.value.resetFields(),a("on-clear",o.value)},y=e.inject("transferFoldStatus"),$=e.ref(!1),x=(E=!1)=>{$.value=E,y&&(y.value=E),a("on-fold",$)},p=(E,B)=>{C();const b={type:E,prop:B,value:o.value[B]||""};a("on-change",b)};return i({triggerOperationSearch:C}),(E,B)=>{const b=e.resolveComponent("el-input"),_=e.resolveComponent("el-input-number"),w=e.resolveComponent("el-radio"),V=e.resolveComponent("el-radio-group"),S=e.resolveComponent("el-option"),A=e.resolveComponent("el-select"),I=e.resolveComponent("el-slider"),T=e.resolveComponent("el-switch"),L=e.resolveComponent("el-date-picker"),P=e.resolveComponent("el-time-picker"),j=e.resolveComponent("el-checkbox"),G=e.resolveComponent("el-checkbox-group"),K=e.resolveComponent("el-form-item"),Q=e.resolveComponent("el-col"),W=e.resolveComponent("el-row"),R=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",$t,[e.createElementVNode("div",St,[e.withDirectives((e.openBlock(),e.createBlock(R,{ref_key:"EL_FORM_REF",ref:r,"label-suffix":":","show-message":!1,model:o.value},{default:e.withCtx(()=>[e.createVNode(W,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,({label:m="",prop:l="",type:f="text",placeholder:O="",readonly:q=!1,clearable:v=!0,rows:ee=2,min:Z=1,max:D=10,range:U=[],format:Y=""}={},X)=>e.withDirectives((e.openBlock(),e.createBlock(Q,{key:X,xs:24,sm:12,md:t.medium},{default:e.withCtx(()=>[e.createVNode(K,{label:m,prop:l},{default:e.withCtx(()=>[q?(e.openBlock(),e.createElementBlock("div",Mt,e.toDisplayString(o.value[l]),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[f===e.unref(n).INPUT?(e.openBlock(),e.createBlock(b,{key:0,modelValue:o.value[l],"onUpdate:modelValue":g=>o.value[l]=g,placeholder:u(f,m,O),clearable:v},null,8,["modelValue","onUpdate:modelValue","placeholder","clearable"])):e.createCommentVNode("",!0),f===e.unref(n).INPUT_TEXT_AREA?(e.openBlock(),e.createBlock(b,{key:1,modelValue:o.value[l],"onUpdate:modelValue":g=>o.value[l]=g,type:"textarea",rows:ee,clearable:v,placeholder:u(f,m,O),onChange:g=>p(f,l)},null,8,["modelValue","onUpdate:modelValue","rows","clearable","placeholder","onChange"])):e.createCommentVNode("",!0),f===e.unref(n).INPUT_NUMBER?(e.openBlock(),e.createBlock(_,{key:2,modelValue:E.num,"onUpdate:modelValue":B[0]||(B[0]=g=>E.num=g),min:Z,max:D,onChange:p},null,8,["modelValue","min","max"])):e.createCommentVNode("",!0),f===e.unref(n).RADIO?(e.openBlock(),e.createBlock(V,{key:3,modelValue:o.value[l],"onUpdate:modelValue":g=>o.value[l]=g,onChange:g=>p(f,l)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U,(g,H)=>(e.openBlock(),e.createBlock(w,{key:H,label:g.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.label),1)]),_:2},1032,["label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])):e.createCommentVNode("",!0),f===e.unref(n).SELECT?(e.openBlock(),e.createBlock(A,{key:4,modelValue:o.value[l],"onUpdate:modelValue":g=>o.value[l]=g,placeholder:u(f,m,O),onChange:g=>p(f,l)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U,(g,H)=>(e.openBlock(),e.createBlock(S,{key:H,label:g.label,value:g.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder","onChange"])):e.createCommentVNode("",!0),f===e.unref(n).SLIDER?(e.openBlock(),e.createBlock(I,{key:5,modelValue:o.value[l],"onUpdate:modelValue":g=>o.value[l]=g,min:Z,max:D,onChange:g=>p(f,l)},null,8,["modelValue","onUpdate:modelValue","min","max","onChange"])):e.createCommentVNode("",!0),f===e.unref(n).SWITCH?(e.openBlock(),e.createBlock(T,{key:6,modelValue:o.value[l],"onUpdate:modelValue":g=>o.value[l]=g,"active-value":U[0]||!0,"inactive-value":U[1]||!1,onChange:g=>p(f,l)},null,8,["modelValue","onUpdate:modelValue","active-value","inactive-value","onChange"])):e.createCommentVNode("",!0),[e.unref(n).DATE,e.unref(n).MONTH,e.unref(n).YEAR,e.unref(n).DATE_TIME].includes(f)?(e.openBlock(),e.createBlock(L,{key:7,modelValue:o.value[l],"onUpdate:modelValue":g=>o.value[l]=g,format:k(f,Y),"value-format":k(f,Y),type:f,placeholder:u(f,m,O),onChange:g=>p(f,l)},null,8,["modelValue","onUpdate:modelValue","format","value-format","type","placeholder","onChange"])):e.createCommentVNode("",!0),[e.unref(n).DATE_RANGE,e.unref(n).MONTH_RANGE,e.unref(n).DATE_TIME_RANGE].includes(f)?(e.openBlock(),e.createBlock(L,{key:8,modelValue:o.value[l],"onUpdate:modelValue":g=>o.value[l]=g,type:f,"value-format":k(f,Y),"start-placeholder":u(f,m,O)[0],"end-placeholder":u(f,m,O)[1],onChange:g=>p(f,l)},null,8,["modelValue","onUpdate:modelValue","type","value-format","start-placeholder","end-placeholder","onChange"])):e.createCommentVNode("",!0),[e.unref(n).TIME].includes(f)?(e.openBlock(),e.createBlock(P,{key:9,modelValue:o.value[l],"onUpdate:modelValue":g=>o.value[l]=g,"arrow-control":"","value-format":k(f,Y),placeholder:u(f,m,O),onChange:g=>p(f,l)},null,8,["modelValue","onUpdate:modelValue","value-format","placeholder","onChange"])):e.createCommentVNode("",!0),[e.unref(n).TIME_RANGE].includes(f)?(e.openBlock(),e.createBlock(P,{key:10,modelValue:o.value[l],"onUpdate:modelValue":g=>o.value[l]=g,"is-range":"","value-format":k(f,Y),"start-placeholder":u(f,m,O)[0],"end-placeholder":u(f,m,O)[1],onChange:g=>p(f,l)},null,8,["modelValue","onUpdate:modelValue","value-format","start-placeholder","end-placeholder","onChange"])):e.createCommentVNode("",!0),[e.unref(n).CHECKBOX].includes(f)?(e.openBlock(),e.createBlock(G,{key:11,modelValue:o.value[l],"onUpdate:modelValue":g=>o.value[l]=g,onChange:g=>p(f,l)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U,(g,H)=>(e.openBlock(),e.createBlock(j,{key:H,label:g.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.label),1)]),_:2},1032,["label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])):e.createCommentVNode("",!0),[e.unref(n).CASCADER].includes(f)?(e.openBlock(),e.createBlock(At,{key:12,modelValue:o.value[l],"onUpdate:modelValue":g=>o.value[l]=g,"data-options":U,placeholder:u(f,m,O),onOnChange:g=>p(f,l)},null,8,["modelValue","onUpdate:modelValue","data-options","placeholder","onOnChange"])):e.createCommentVNode("",!0),[].includes(f)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:13},[],64)):e.createCommentVNode("",!0),[e.unref(n).OPERATION].includes(f)?(e.openBlock(),e.createBlock(wt,{key:14,fold:X>=7,onOnSearch:C,onOnClear:N,onOnFold:x},null,8,["fold"])):e.createCommentVNode("",!0)],64))]),_:2},1032,["label","prop"])]),_:2},1032,["md"])),[[e.vShow,X<7||f===e.unref(n).OPERATION||X>=7&&$.value]])),128))]),_:1})]),_:1},8,["model"])),[[e.unref(c)]])]),e.createVNode(le)])}}}),To="",Ot={class:"bsgoal-base-search-table"},Ft={class:"base_search_table"},It=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},mapProps:{type:[Object],default:()=>({currentPage:"currentPage",pageSize:"pageSize",rows:"rows",total:"total"})},hasPage:{type:Boolean,default:!0},hasSearch:{type:Boolean,default:!0}},setup(t,{expose:i}){const a=t,s=e.ref(!1);e.provide("transferFoldStatus",s);const r=e.unref(a.configOptions),c=e.computed(()=>r.filter(x=>{const{type:p=""}=x;return!!p})),o=e.computed(()=>r.filter(x=>{const{item:p=!1}=x;return!p})),d=e.useSlots(),u=e.ref(Object.keys(d)),k=e.ref(null),C=x=>{k.value.refreshList(x)},N=e.computed(()=>{const{expression:x,hasPage:p}=a;return p===!1?25:x}),y=e.ref(null);return i({refresh:()=>{const{hasSearch:x}=a;e.unref(x)&&y.value.triggerOperationSearch()}}),(x,p)=>(e.openBlock(),e.createElementBlock("div",Ot,[e.createElementVNode("div",Ft,[e.withDirectives(e.createVNode(Dt,{ref_key:"BSGOAL_BASE_SEARCH_REF",ref:y,"config-options":c.value,onOnSearch:C,onOnClear:C},null,8,["config-options"]),[[e.vShow,t.hasSearch]]),e.createVNode(ie,{ref_key:"BSGOAL_BASE_TABLE_REF",ref:k,"map-props":t.mapProps,operationWidth:t.operationWidth,"config-options":o.value,data:t.tableData,selection:t.selection,operation:t.operation,expression:N.value,fetch:t.fetch,call:t.call,"has-page":t.hasPage},e.createSlots({_:2},[e.renderList(u.value,E=>({name:E,fn:e.withCtx(({row:B={}})=>[e.renderSlot(x.$slots,E,{row:B})])}))]),1032,["map-props","operationWidth","config-options","data","selection","operation","expression","fetch","call","has-page"])])]))}}),$o="",Lt={class:"bsgoal-base-tree-fold"},Rt=Object.assign({name:"BsgoalBaseTreeFold"},{props:["modelValue"],emits:["update:modelValue"],setup(t,{emit:i}){let a=e.ref(!0);const s=()=>{a.value=!a.value,i("update:modelValue",a.value)};return(r,c)=>{const o=e.resolveComponent("el-icon");return e.openBlock(),e.createElementBlock("div",Lt,[e.createElementVNode("div",{class:e.normalizeClass(["base_tree_fold",{"base_tree_fold--hide":!e.unref(a)}]),onClick:s},[e.createVNode(o,{color:"#fff"},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(e.unref(Ze),null,null,512),[[e.vShow,e.unref(a)]]),e.withDirectives(e.createVNode(e.unref(ot),null,null,512),[[e.vShow,!e.unref(a)]])]),_:1})],2)])}}}),Mo="",Ut={class:"bsgoal-base-tree"},Pt={class:"base_tree"},zt={class:"base_tree_main"},jt=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(t,{emit:i}){const a=t,s=ne.height,r=e.ref(""),c=e.ref(null);e.watch(r,C=>{c.value.filter(C)});const o=(C,N)=>C?N.label.includes(C):!0,d=e.ref(!0),u=(C,N,y,$)=>{i("on-click",C,N,y,$)},k=async(C,N,y)=>{if(C.level===0){const $=await y.initNode(C);return N($||[])}else{const $=await y.lazyLoad(C);N($||[])}};return(C,N)=>{const y=e.resolveComponent("el-input"),$=e.resolveComponent("el-tree");return e.openBlock(),e.createElementBlock("div",Ut,[e.withDirectives((e.openBlock(),e.createElementBlock("div",Pt,[e.withDirectives(e.createElementVNode("div",zt,[e.createVNode(y,{modelValue:r.value,"onUpdate:modelValue":N[0]||(N[0]=x=>r.value=x),class:"base_tree_main_input",placeholder:"输入关键字过滤"},null,8,["modelValue"]),e.createVNode($,{ref_key:"EL_TREE_REF",ref:c,lazy:"","highlight-current":"","empty-text":"暂无数据",load:(x,p)=>k(x,p,a),"expand-on-click-node":!1,props:t.treeProps,"filter-node-method":o,onNodeClick:u},null,8,["load","props"])],512),[[e.vShow,d.value]]),e.withDirectives(e.createVNode(le,{vertical:""},null,512),[[e.vShow,d.value]]),e.createVNode(Rt,{modelValue:d.value,"onUpdate:modelValue":N[1]||(N[1]=x=>d.value=x)},null,8,["modelValue"])])),[[e.unref(s),t.gasket]])])}}}),Oo="",Gt={class:"bsgoal-base-dialog"},Yt={class:"base_dialog"},Ht={class:"base_dialog_header"},Wt={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:"确定"},width:{type:[String,Number]},type:{type:[String],default:"default",validator:t=>["default","form","blank"].includes(t)},size:{type:[String,Number],default:"medium",validator:t=>["small","medium","lagre","max","dnymic"].includes(t)},footer:{type:[Boolean],default:!0}},emits:["update:modelValue","on-confirm"],setup(t,{emit:i}){const a=t,s=e.ref(a.modelValue.value),r=()=>{s.value=!1},c=()=>{i("on-confirm",()=>{s.value=!1})};e.watch(()=>a.modelValue,d=>{s.value=d}),e.watch(s,d=>{i("update:modelValue",d)});const o=e.computed(()=>{const{width:d,size:u}=a;if(d)return d;switch(u){case"small":return"480px";case"medium":return"720px";case"lagre":return"960px";case"max":return"1232px";case"dnymic":return"80%";default:return d}});return(d,u)=>{const k=e.resolveComponent("el-button"),C=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",Gt,[e.createElementVNode("div",Yt,[e.createVNode(C,{modelValue:s.value,"onUpdate:modelValue":u[0]||(u[0]=N=>s.value=N),"custom-class":"bsgoal_base_dialog_main",class:e.normalizeClass({"bsgoal-dialog__footer--conceal":!t.footer}),width:o.value},{header:e.withCtx(()=>[e.createElementVNode("div",Ht,e.toDisplayString(t.title),1)]),footer:e.withCtx(()=>[t.footer?e.renderSlot(d.$slots,"footer",{key:0},()=>[e.createElementVNode("span",Wt,[e.createVNode(k,{onClick:r},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.cancelTxt),1)]),_:1}),e.createVNode(k,{type:"primary",onClick:c},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.confirmTxt),1)]),_:1})])]):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["base_dialog_content",{"base_dialog_content--form":t.type==="form"}])},[e.renderSlot(d.$slots,"default")],2)]),_:3},8,["modelValue","class","width"])])])}}}),Io="",Kt={class:"bsgoal-base-tabs"},Qt=Object.assign({name:"BsgoalBaseTabs"},{props:{configOptions:{type:[Array],default:()=>[]},type:{type:[String],default:"",validator:t=>["card","border-card",""].includes(t)},modelValue:{type:[String],default:""},stretch:{type:[Boolean],default:!1}},emits:["update:modelValue"],setup(t,{emit:i}){const a=t,s=e.computed(()=>{const{modelValue:c="",configOptions:o=[]}=a,d=e.unref(o).map(k=>k.value);return e.unref(c)||d[0]}),r=(c="")=>{i("update:modelValue",c)};return(c,o)=>{const d=e.resolveComponent("el-tab-pane"),u=e.resolveComponent("el-tabs");return e.openBlock(),e.createElementBlock("div",Kt,[e.createVNode(u,{class:"bsgoal_base_tabs",stretch:t.stretch,type:t.type,"model-value":s.value,onTabChange:r},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.configOptions,({label:k,value:C},N)=>(e.openBlock(),e.createBlock(d,{key:N,label:k,name:C},{default:e.withCtx(()=>[e.renderSlot(c.$slots,C,{},()=>[e.createTextVNode(e.toDisplayString(k),1)])]),_:2},1032,["label","name"]))),128))]),_:3},8,["stretch","type","model-value"])])}}}),Ro="",Uo="",Zt={class:"bsgoal-base-link"},Jt=se(Object.assign({name:"BsgoalBaseLink"},{props:{content:{type:[String],default:"link"},underline:{type:[Boolean],default:!1},styler:{type:[Object],default:()=>({})}},emits:["on-click"],setup(t,{emit:i}){const a=()=>{i("on-click")};return(s,r)=>{const c=e.resolveComponent("el-link");return e.openBlock(),e.createElementBlock("div",Zt,[e.createVNode(c,{class:"bsgoal_base_link",type:"primary",underline:t.underline,style:e.normalizeStyle(t.styler),onClick:a},{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.content),1)],!0)]),_:3},8,["underline","style"])])}}}),[["__scopeId","data-v-3b0290b0"]]),jo="",qt={class:"bsgoal-base-button"},vt=Object.assign({name:"BsgoalBaseButton"},{props:{task:{type:[Object,Function],default:()=>{Promise.resolve()}},type:{type:[String],default:"primary",validator:t=>["primary","success","warning","danger","info"].includes(t)},icon:{type:[String,Object],default:""},content:{type:[String],default:"新增"},mode:{type:[String],default:"default",validator:t=>["add","delete","edit","detail","default"].includes(t)},values:{type:[Array,Object],default:()=>({})},plain:{type:[Boolean],default:!1}},setup(t){const i=t,a=e.ref(!1),s=()=>{a.value=!0;const{task:o}=i;e.unref(o)(()=>{a.value=!1},i.values)},r=e.computed(()=>{const{mode:o="",type:d=""}=i;switch(o){case"delete":return"danger"}return d}),c=e.computed(()=>{const{mode:o="",icon:d=""}=i;switch(o){case"delete":return de;case"add":return Bt}return d});return(o,d)=>{const u=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",qt,[e.createElementVNode("div",{class:"base_button",onClick:s},[e.renderSlot(o.$slots,"default",{loading:a.value},()=>[e.createVNode(u,{type:r.value,icon:c.value,loading:a.value,plain:t.plain},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.content),1)]),_:1},8,["type","icon","loading","plain"])])])])}}}),Yo="",eo={class:"bsgoal-base-layout"},to=Object.assign({name:"BsgoalBaseLayout"},{props:{gutter:{type:[Number],default:0},ratio:{type:[Number],default:12}},setup(t){const i=e.useSlots(),a=e.ref(Object.keys(i));return(s,r)=>{const c=e.resolveComponent("el-col"),o=e.resolveComponent("el-row");return e.openBlock(),e.createElementBlock("div",eo,[e.createVNode(o,{class:"base_layout",gutter:t.gutter},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(d,u)=>(e.openBlock(),e.createBlock(c,{key:u,xs:24,sm:24,md:t.ratio,lg:t.ratio,xl:t.ratio},{default:e.withCtx(()=>[e.renderSlot(s.$slots,d)]),_:2},1032,["md","lg","xl"]))),128))]),_:3},8,["gutter"])])}}}),ue=n,oo=ae,no={install(t,i={}){const{exclude:a=[]}=i,s={BsgoalBaseForm:Ee,BsgoalBaseTable:ie,BsgoalBaseLine:le,BsgoalBaseSearchTable:It,BsgoalBaseTree:jt,BsgoalBaseDialog:Xt,BsgoalBaseTabs:Qt,BsgoalBaseLink:Jt,BsgoalBaseButton:vt,BsgoalBaseLayout:to};for(const[r,c]of Object.entries(s))a.includes(r)||t.component(r,c)},ComponentTypeEnums:ue,useFetch:ae};M.ComponentTypeEnums=ue,M.default=no,M.useFetchApi=oo,Object.defineProperties(M,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1
|
+
(function(M,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):(M=typeof globalThis<"u"?globalThis:M||self,e(M["bsgoal-common"]={},M.Vue,M["element-plus"]))})(this,function(M,e,F){"use strict";var no=Object.defineProperty;var ue=Object.getOwnPropertySymbols;var ao=Object.prototype.hasOwnProperty,lo=Object.prototype.propertyIsEnumerable;var _e=(M,e,F)=>e in M?no(M,e,{enumerable:!0,configurable:!0,writable:!0,value:F}):M[e]=F,le=(M,e)=>{for(var F in e||(e={}))ao.call(e,F)&&_e(M,F,e[F]);if(ue)for(var F of ue(e))lo.call(e,F)&&_e(M,F,e[F]);return M};let n=class{static get INPUT(){return"text"}static get INPUT_NUMBER(){return"number"}static get INPUT_TEXT_AREA(){return"textarea"}static get SELECT(){return"select"}static get SLIDER(){return"slider"}static get SWITCH(){return"switch"}static get RADIO(){return"radio"}static get CHECKBOX(){return"checkbox"}static get DATE(){return"date"}static get WEEK(){return"week"}static get MONTH(){return"month"}static get YEAR(){return"year"}static get DATE_RANGE(){return"daterange"}static get MONTH_RANGE(){return"monthrange"}static get TIME(){return"time"}static get TIME_RANGE(){return"timerange"}static get DATE_TIME(){return"datetime"}static get DATE_TIME_RANGE(){return"datetimerange"}static get OPERATION(){return"operation"}static get CASCADER(){return"cascader"}static get CHECKBOX_SINGLE(){return"checkboxsingle"}};const te=t=>{let s=null;const a=[],i=[],c=(o=[])=>{const d=o.map(k=>k.width),u=Math.max(...d);o.forEach(k=>{const{labelEl:C}=k;C.style.width=`${u}px`})},r=()=>{if(t){const o=t.querySelectorAll(".el-form-item__label");if(o&&o.length){let d=0;o.forEach((u,k)=>{u.style.width="initial",u.style.whiteSpace="nowrap";const{x:C=0,width:x=0}=u.getBoundingClientRect(),b={x:C,width:x,labelEl:u};k===0&&(d=C),C===d?a.push(b):i.push(b)})}}};s&&clearTimeout(s),s=setTimeout(()=>{r(),c(a),c(i)},50)},oe={align:{created(t){window.addEventListener("resize",()=>{te(t)})},mounted(t){te(t)},unmounted(t){window.removeEventListener("resize",te(t))}},height:(t,{value:s=65,arg:a=""})=>{if(t){const{y:i=0}=t.getBoundingClientRect();t.style.height=`calc(100vh - ${i+s}px)`}}},co="",me={class:"bsgoal-base-tooltip"},ce=Object.assign({name:"BsgoalBaseTooltip"},{props:{content:{type:[String],default:""},type:{type:[String],default:"text",validator:t=>["text","custom"].includes(t)},limit:{type:[Number],default:10},max:{type:[Number,String],default:"10em"},none:{type:[String],default:"无"}},setup(t){const s=t,a=e.computed(()=>{const{content:c="",limit:r=0,none:o=""}=s;let d=c;const u=c.length;return r&&u>r&&(d=`${c.substring(0,r)}...`),d||o}),i=e.computed(()=>{const{content:c="",limit:r=0}=s;return c.length<r||!r});return(c,r)=>{const o=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("div",me,[e.createVNode(o,{class:"base_tooltip",effect:"dark","popper-class":"base_tooltip_popper",placement:"top-start",content:t.content,disabled:i.value},{default:e.withCtx(()=>[e.renderSlot(c.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(a.value),1)])]),_:3},8,["content","disabled"])])}}}),so="",fe={class:"bsgoal-base-form"},pe={class:"base_form"},ge={key:1},he=Object.assign({name:"BsgoalBaseForm"},{props:{configOptions:{type:[Array],default:()=>[]},medium:{type:[Number,String],default:24},values:{type:[Object],default:()=>({})},limits:{type:[Number],default:0},readonlys:{type:[Boolean],default:!1},none:{type:[String],default:"无"},bindModel:{type:[Object],default:()=>({})},labelPosition:{type:[String],default:"right",validator:t=>["left","rightn","top"].includes(t)}},emits:["on-form","on-clear","on-change","on-fold"],setup(t,{expose:s,emit:a}){const i=t,c=e.ref(null),r=oe.align,o=e.ref(i.bindModel);e.watchEffect(()=>{const{configOptions:p,values:E}=i,B=e.unref(p),y=e.unref(E);B.forEach(_=>{const{value:w="",prop:V="",type:S=""}=_;[n.INPUT,n.INPUT_TEXT_AREA].includes(S);const A=e.unref(o)[V];o.value[V]=A||y[V]||w})});const d=e.computed(()=>{const{configOptions:p}=i;return e.unref(p).map(y=>{let{rules:_=!1,label:w=""}=y;const V={required:!0,message:`${w}不能为空`,trigger:"blur"};return _&&(typeof _=="boolean"?_=[V]:Array.isArray(_)?_=[V,..._]:_=[V,_]),y.rules=_,y})}),u=(p="",E="",B="")=>{if(!B)switch(p){case n.INPUT:case n.INPUT_TEXT_AREA:return`请输入${E}`;case n.SELECT:case n.DATE:case n.WEEK:case n.MONTH:case n.YEAR:case n.DATE_TIME:case n.TIME:return`请选择${E}`;case n.DATE_RANGE:case n.DATE_TIME_RANGE:return["开始日期","结束日期"];case n.TIME_RANGE:return["开始时间","结束时间"];case n.MONTH_RANGE:return["开始月份","结束月份"]}return B},k=(p="",E="")=>{if(!E)switch(p){case n.WEEK:return"ww";case n.DATE:case n.DATE_RANGE:return"YYYY-MM-DD";case n.MONTH:return"MM";case n.YEAR:return"YYYY";case n.MONTH_RANGE:return"YYYY-MM";case n.TIME:case n.TIME_RANGE:return"HH:mm:ss";case n.DATE_TIME:case n.DATE_TIME_RANGE:return"YYYY-MM-DD HH:mm:ss"}return E},C=()=>{const p=e.unref(o),{configOptions:E}=i,B=e.unref(E);for(const y of B){const{type:_="",range:w=[],prop:V=""}=y;if(_.endsWith("range")&&w&&w.length===2){const{0:S="",1:A=""}=p[V],{0:I="",1:T=""}=w;p[I]=S,p[T]=A}}return a("on-form",p),p},x=()=>{c.value.resetFields(),a("on-clear",o.value)},b=(p,E)=>{const B={type:p,prop:E,value:o.value[E]||""};a("on-change",B)},$=(p=()=>{})=>{c.value.validate((E=!1,B={})=>{if(E){const y=C();p(y)}else{p(!1);const y=Object.keys(B)[0],{[y]:{0:{message:_=""}}}=B;F.ElMessage.error(_)}})},N=(p=[],E="")=>{const{0:B={},1:y={}}=p,{value:_=!1,label:w=""}=B,{value:V=!1,label:S=""}=y;switch(E){case"active-value":return _;case"inactive-value":return V;case"active-text":return w;case"inactive-text":return S}};return s({triggerOperationClear:x,triggerOperationForm:C,validateForm:$}),(p,E)=>{const B=e.resolveComponent("el-input"),y=e.resolveComponent("el-input-number"),_=e.resolveComponent("el-radio"),w=e.resolveComponent("el-radio-group"),V=e.resolveComponent("el-option"),S=e.resolveComponent("el-select"),A=e.resolveComponent("el-slider"),I=e.resolveComponent("el-switch"),T=e.resolveComponent("el-date-picker"),L=e.resolveComponent("el-time-picker"),P=e.resolveComponent("el-checkbox"),j=e.resolveComponent("el-checkbox-group"),G=e.resolveComponent("el-form-item"),K=e.resolveComponent("el-col"),Q=e.resolveComponent("el-row"),W=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",fe,[e.createElementVNode("div",pe,[e.withDirectives((e.openBlock(),e.createBlock(W,{ref_key:"EL_FORM_REF",ref:c,"label-suffix":":","label-position":t.labelPosition,model:o.value},{default:e.withCtx(()=>[e.createVNode(Q,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,({label:R="",prop:m="",type:l="text",placeholder:f="",readonly:O=t.readonlys,clearable:q=!0,rows:v=2,min:ee=1,max:Z=10,range:D=[],format:U="",rules:Y=[],limit:X=t.limits,length:g=255}={},H)=>(e.openBlock(),e.createBlock(K,{key:H,xs:24,sm:24,md:t.medium},{default:e.withCtx(()=>[e.createVNode(G,{label:R,prop:m,rules:Y},{default:e.withCtx(()=>[e.renderSlot(p.$slots,[m],{option:{readonly:O,value:o.value[m],values:o.value}},()=>[O?(e.openBlock(),e.createElementBlock("div",ge,[e.createVNode(ce,{content:o.value[m],limit:X,none:t.none},null,8,["content","limit","none"])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[l===e.unref(n).INPUT?(e.openBlock(),e.createBlock(B,{key:0,modelValue:o.value[m],"onUpdate:modelValue":h=>o.value[m]=h,placeholder:u(l,R,f),clearable:q,onChange:h=>b(l,m)},null,8,["modelValue","onUpdate:modelValue","placeholder","clearable","onChange"])):e.createCommentVNode("",!0),l===e.unref(n).INPUT_TEXT_AREA?(e.openBlock(),e.createBlock(B,{key:1,modelValue:o.value[m],"onUpdate:modelValue":h=>o.value[m]=h,"show-word-limit":"",type:"textarea",autosize:{minRows:v},maxlength:g,clearable:q,placeholder:u(l,R,f),onChange:h=>b(l,m)},null,8,["modelValue","onUpdate:modelValue","autosize","maxlength","clearable","placeholder","onChange"])):e.createCommentVNode("",!0),l===e.unref(n).INPUT_NUMBER?(e.openBlock(),e.createBlock(y,{key:2,modelValue:o.value[m],"onUpdate:modelValue":h=>o.value[m]=h,"controls-position":"right",min:ee,max:Z,onChange:b},null,8,["modelValue","onUpdate:modelValue","min","max"])):e.createCommentVNode("",!0),l===e.unref(n).RADIO?(e.openBlock(),e.createBlock(w,{key:3,modelValue:o.value[m],"onUpdate:modelValue":h=>o.value[m]=h,onChange:h=>b(l,m)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(D,(h,J)=>(e.openBlock(),e.createBlock(_,{key:J,label:h.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(h.label),1)]),_:2},1032,["label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])):e.createCommentVNode("",!0),l===e.unref(n).SELECT?(e.openBlock(),e.createBlock(S,{key:4,modelValue:o.value[m],"onUpdate:modelValue":h=>o.value[m]=h,placeholder:u(l,R,f),onChange:h=>b(l,m)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(D,(h,J)=>(e.openBlock(),e.createBlock(V,{key:J,label:h.label,value:h.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder","onChange"])):e.createCommentVNode("",!0),l===e.unref(n).SLIDER?(e.openBlock(),e.createBlock(A,{key:5,modelValue:o.value[m],"onUpdate:modelValue":h=>o.value[m]=h,min:ee,max:Z,onChange:h=>b(l,m)},null,8,["modelValue","onUpdate:modelValue","min","max","onChange"])):e.createCommentVNode("",!0),l===e.unref(n).SWITCH?(e.openBlock(),e.createBlock(I,{key:6,modelValue:o.value[m],"onUpdate:modelValue":h=>o.value[m]=h,"active-value":N(D,"active-value"),"inactive-value":N(D,"inactive-value"),"active-text":N(D,"active-text"),"inactive-text":N(D,"inactive-text"),onChange:h=>b(l,m)},null,8,["modelValue","onUpdate:modelValue","active-value","inactive-value","active-text","inactive-text","onChange"])):e.createCommentVNode("",!0),[e.unref(n).DATE,e.unref(n).MONTH,e.unref(n).YEAR,e.unref(n).DATE_TIME].includes(l)?(e.openBlock(),e.createBlock(T,{key:7,modelValue:o.value[m],"onUpdate:modelValue":h=>o.value[m]=h,format:k(l,U),"value-format":k(l,U),type:l,placeholder:u(l,R,f),onChange:h=>b(l,m)},null,8,["modelValue","onUpdate:modelValue","format","value-format","type","placeholder","onChange"])):e.createCommentVNode("",!0),[e.unref(n).DATE_RANGE,e.unref(n).MONTH_RANGE,e.unref(n).DATE_TIME_RANGE].includes(l)?(e.openBlock(),e.createBlock(T,{key:8,modelValue:o.value[m],"onUpdate:modelValue":h=>o.value[m]=h,type:l,"value-format":k(l,U),"start-placeholder":u(l,R,f)[0],"end-placeholder":u(l,R,f)[1],onChange:h=>b(l,m)},null,8,["modelValue","onUpdate:modelValue","type","value-format","start-placeholder","end-placeholder","onChange"])):e.createCommentVNode("",!0),[e.unref(n).TIME].includes(l)?(e.openBlock(),e.createBlock(L,{key:9,modelValue:o.value[m],"onUpdate:modelValue":h=>o.value[m]=h,"arrow-control":"","value-format":k(l,U),placeholder:u(l,R,f),onChange:h=>b(l,m)},null,8,["modelValue","onUpdate:modelValue","value-format","placeholder","onChange"])):e.createCommentVNode("",!0),[e.unref(n).TIME_RANGE].includes(l)?(e.openBlock(),e.createBlock(L,{key:10,modelValue:o.value[m],"onUpdate:modelValue":h=>o.value[m]=h,"is-range":"","value-format":k(l,U),"start-placeholder":u(l,R,f)[0],"end-placeholder":u(l,R,f)[1],onChange:h=>b(l,m)},null,8,["modelValue","onUpdate:modelValue","value-format","start-placeholder","end-placeholder","onChange"])):e.createCommentVNode("",!0),[e.unref(n).CHECKBOX].includes(l)?(e.openBlock(),e.createBlock(j,{key:11,modelValue:o.value[m],"onUpdate:modelValue":h=>o.value[m]=h,onChange:h=>b(l,m)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(D,(h,J)=>(e.openBlock(),e.createBlock(P,{key:J,label:h.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(h.label),1)]),_:2},1032,["label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])):e.createCommentVNode("",!0),[e.unref(n).CHECKBOX_SINGLE].includes(l)?(e.openBlock(),e.createBlock(P,{key:12,modelValue:o.value[m],"onUpdate:modelValue":h=>o.value[m]=h,"true-label":D[0]?D[0].value:"1","false-label":D[1]?D[1].value:"0",onChange:h=>b(l,m)},null,8,["modelValue","onUpdate:modelValue","true-label","false-label","onChange"])):e.createCommentVNode("",!0),[].includes(l)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:13},[],64)):e.createCommentVNode("",!0)],64))])]),_:2},1032,["label","prop","rules"])]),_:2},1032,["md"]))),128))]),_:3})]),_:3},8,["label-position","model"])),[[e.unref(r)]])])])}}}),uo="",Ee={class:"bsgoal-base-table-content"},Be={class:"base_table_content"},ke={key:1,class:"base_table_table_txt"},Ce=Object.assign({name:"BsgoalBaseTableContent"},{props:{data:{type:[String,Number,Object,Boolean],default:""},tooltip:{type:[Boolean,Number],default:!1},limit:{type:[Number],default:10}},setup(t){return(s,a)=>(e.openBlock(),e.createElementBlock("div",Ee,[e.createElementVNode("div",Be,[t.tooltip?(e.openBlock(),e.createBlock(ce,{key:0,content:t.data,limit:t.limit},null,8,["content","limit"])):(e.openBlock(),e.createElementBlock("div",ke,e.toDisplayString(t.data),1))])]))}});/*! Element Plus v2.3.4 */var be={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 mo="",ye={class:"bsgoal-base-table-pagination"},Ve={class:"base_table_pagination"},Ne=e.createElementVNode("span",null,"总数",-1),xe=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(t,{emit:s}){const a=(r=0)=>{s("on-size-change",r)},i=(r=1)=>{s("on-current-change",r)},c=e.ref(1);return(r,o)=>{const d=e.resolveComponent("el-pagination"),u=e.resolveComponent("el-config-provider");return e.openBlock(),e.createElementBlock("div",ye,[e.createElementVNode("div",Ve,[e.createVNode(u,{locale:e.unref(be)},{default:e.withCtx(()=>[e.createVNode(d,{background:"",layout:"total, sizes, prev, pager, next, jumper","current-page":c.value,"onUpdate:currentPage":o[0]||(o[0]=k=>c.value=k),"page-sizes":t.pageSizes,"page-size":t.pageSize,total:t.total,onSizeChange:a,onCurrentChange:i},{next:e.withCtx(()=>[Ne]),_:1},8,["current-page","page-sizes","page-size","total"])]),_:1},8,["locale"])])])}}}),po="",re=(t,s)=>{const a=t.__vccOpts||t;for(const[i,c]of s)a[i]=c;return a},we={name:"BsgoalBaseTableEmpty"},Te={class:"bsgoal-base-table-empty"},Ae=[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 $e(t,s,a,i,c,r){return e.openBlock(),e.createElementBlock("div",Te,Ae)}const Se=re(we,[["render",$e]]),Me=(t=null,{expression:s=75,arg:a={},height:i=""}={})=>{const c=e.unref(t);if(c){const r=c.querySelector(".el-table");r&&e.nextTick(()=>{const{y:o=0}=r.getBoundingClientRect();let d=`calc(100vh - ${o+s}px)`;const u=Number.parseInt(i);i&&(u?d=`${i}px`:d=i),r.style.height=d})}},ne=(t=Promise.resolve(),s=null,a=e.ref(!1),i=e.ref(null))=>{const c=e.ref("");return a.value=!0,t.then((r={})=>{const{data:o={},message:d=""}=r;i.value=o,c.value=d,s&&s(!0,o),a.value=!1}).catch((r={})=>{if(typeof r=="object"){const{message:o=""}=r;c.value=o}else c.value=r;s&&s(!1,r),a.value=!1}).finally(()=>{a.value=!1}),{data:i,message:c,loading:a}},De=(t=null)=>{switch(toString.apply(t)){case"[object Object]":return"object";case"[object Function]":return"function";case"[object String]":return"string";case"[object Number]":return"number";case"[object Null]":return"null";case"[object Boolean]":return"boolean";case"[object Undefind]":return"undefind"}},Oe=t=>De(t)==="boolean",ho="",Fe={class:"bsgoal-base-table"},Ie={class:"base_table"},Le={key:0,class:"base_table_menu"},se=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},height:{type:[Number,String,Boolean],default:""},hasPage:{type:Boolean,default:!0}},setup(t,{expose:s}){const a=t,i=e.computed(()=>{const{configOptions:_=[],operation:w=!1,operationWidth:V=0}=a,S=e.unref(_),A=[];return w&&A.push({label:"操作",fixed:"right",prop:"operation",width:V}),[...S,...A]}),c=e.ref(null),r=e.inject("transferFoldStatus");e.watchEffect(()=>{const{height:_}=a,w=r?r.value:!1,V=e.unref(a.expression);Oe(_)||Me(c,{arg:w,expression:V,height:_})});const o=e.unref(a.mapProps),d=le({currentPage:"currentPage",pageSize:"pageSize",rows:"rows",total:"total"},o),u=e.ref(1),k=e.ref(10),C=e.ref(0),x=e.ref({}),b=e.ref(a.loading),$=e.ref(),N=e.ref({}),p=()=>{const{fetch:_,call:w,hasPage:V}=a,S=x.value,A=u.value,I=k.value,T=le({},S);V&&(T[d.currentPage]=A,T[d.pageSize]=I),ne(_(T),w,b,N)};e.watchEffect(()=>{$.value=a.data}),e.watch(N,_=>{a.hasPage?($.value=_[d.rows],C.value=_[d.total]):$.value=_});const E=(_={})=>{x.value=_,u.value=1,p()},B=(_=1)=>{u.value=_},y=(_=10)=>{k.value=_};return e.watch([u,k],()=>{p()}),s({refreshList:E}),(_,w)=>{const V=e.resolveComponent("el-table-column"),S=e.resolveComponent("el-table"),A=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",Fe,[e.createElementVNode("div",Ie,[_.$slots.menu?(e.openBlock(),e.createElementBlock("div",Le,[e.renderSlot(_.$slots,"menu")])):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"EL_TABLE_WRAP_REF",ref:c},[e.withDirectives((e.openBlock(),e.createBlock(S,{stripe:"",border:"","highlight-current-row":"",style:{width:"100%"},data:$.value,"header-cell-style":{fontWeight:"bold",backgroundColor:"#EBEEF5",color:"rgba(0,0,0,.85)",fontSize:"14px"}},{empty:e.withCtx(()=>[e.createVNode(Se)]),default:e.withCtx(()=>[t.selection?(e.openBlock(),e.createBlock(V,{key:0,fixed:"left",type:"selection",width:"40"})):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,({prop:I="",label:T="",align:L="center",width:P="",fixed:j=!1,tooltip:G=!1,limit:K=0}={},Q)=>(e.openBlock(),e.createBlock(V,{key:Q,label:T,align:L,width:P,fixed:j,"min-width":`${T.length*14+24}px`},{default:e.withCtx(({row:W})=>[e.renderSlot(_.$slots,I,{row:W},()=>[e.createVNode(Ce,{limit:K,tooltip:G,data:W[I]},null,8,["limit","tooltip","data"])])]),_:2},1032,["label","align","width","fixed","min-width"]))),128))]),_:3},8,["data","header-cell-style"])),[[A,b.value]])],512),t.hasPage?(e.openBlock(),e.createBlock(xe,{key:1,total:C.value,onOnCurrentChange:B,onOnSizeChange:y},null,8,["total"])):e.createCommentVNode("",!0)])])}}}),Bo="",ae=Object.assign({name:"BsgoalBaseLine"},{props:{vertical:{type:[Boolean],default:!1}},setup(t){return(s,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["bsgoal-base-line",{"bsgoal-base-line__vertical":t.vertical}])},[e.createElementVNode("div",{class:e.normalizeClass(["base_line",{base_line__vertical:t.vertical}])},null,2)],2))}});/*! Element Plus Icons Vue v2.1.0 */var z=(t,s)=>{let a=t.__vccOpts||t;for(let[i,c]of s)a[i]=c;return a},Re={name:"ArrowDown"},Ue={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Pe=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),ze=[Pe];function je(t,s,a,i,c,r){return e.openBlock(),e.createElementBlock("svg",Ue,ze)}var Ge=z(Re,[["render",je],["__file","arrow-down.vue"]]),Ye={name:"ArrowLeft"},He={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},We=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),Xe=[We];function Ke(t,s,a,i,c,r){return e.openBlock(),e.createElementBlock("svg",He,Xe)}var Qe=z(Ye,[["render",Ke],["__file","arrow-left.vue"]]),Ze={name:"ArrowRight"},Je={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},qe=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),ve=[qe];function et(t,s,a,i,c,r){return e.openBlock(),e.createElementBlock("svg",Je,ve)}var tt=z(Ze,[["render",et],["__file","arrow-right.vue"]]),ot={name:"ArrowUp"},nt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},at=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),lt=[at];function ct(t,s,a,i,c,r){return e.openBlock(),e.createElementBlock("svg",nt,lt)}var rt=z(ot,[["render",ct],["__file","arrow-up.vue"]]),st={name:"Delete"},it={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},dt=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),ut=[dt];function _t(t,s,a,i,c,r){return e.openBlock(),e.createElementBlock("svg",it,ut)}var ie=z(st,[["render",_t],["__file","delete.vue"]]),mt={name:"Plus"},ft={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},pt=e.createElementVNode("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z"},null,-1),gt=[pt];function ht(t,s,a,i,c,r){return e.openBlock(),e.createElementBlock("svg",ft,gt)}var Et=z(mt,[["render",ht],["__file","plus.vue"]]),Bt={name:"Search"},kt={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),bt=[Ct];function yt(t,s,a,i,c,r){return e.openBlock(),e.createElementBlock("svg",kt,bt)}var Vt=z(Bt,[["render",yt],["__file","search.vue"]]);const Co="",Nt={class:"bsgoal-base-search-operation"},xt=Object.assign({name:"BsgoalBaseSearchOperation"},{props:{fold:{type:[Boolean],default:!1}},emits:["on-fold"],setup(t,{emit:s}){const a=e.ref(!1),i=()=>{a.value=!e.unref(a),s("on-fold",a.value)};return(c,r)=>{const o=e.resolveComponent("el-button"),d=e.resolveComponent("el-icon");return e.openBlock(),e.createElementBlock("div",Nt,[e.createVNode(o,{type:"primary",icon:e.unref(Vt),onClick:r[0]||(r[0]=u=>c.$emit("on-search"))},{default:e.withCtx(()=>[e.createTextVNode("搜索")]),_:1},8,["icon"]),e.createVNode(o,{icon:e.unref(ie),onClick:r[1]||(r[1]=u=>c.$emit("on-clear"))},{default:e.withCtx(()=>[e.createTextVNode("清空")]),_:1},8,["icon"]),t.fold?(e.openBlock(),e.createElementBlock("div",{key:0,class:"operation_fold",style:{color:"var(--el-color-primary)"},onClick:i},[e.createTextVNode(e.toDisplayString(a.value?"收起":"展开"),1),e.createVNode(d,{color:"#409EFC"},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(e.unref(rt),null,null,512),[[e.vShow,a.value]]),e.withDirectives(e.createVNode(e.unref(Ge),null,null,512),[[e.vShow,!a.value]])]),_:1})])):e.createCommentVNode("",!0)])}}}),yo="",wt={class:"bsgoal-base-cascader"},Tt=Object.assign({name:"BsgoalBaseCascader"},{props:{modelValue:{type:[Array],default:()=>[]},dataOptions:{type:[Array],default:()=>[]},placeholder:{type:[String],default:""}},emits:["update:model-value","on-change"],setup(t,{emit:s}){const a=e.ref({checkStrictly:!0,multiple:!1}),i=c=>{s("update:model-value",c),s("on-change",c)};return(c,r)=>{const o=e.resolveComponent("el-cascader");return e.openBlock(),e.createElementBlock("div",wt,[e.createVNode(o,{clearable:"",class:"base_cascader","show-all-levels":!1,"model-value":t.modelValue,options:t.dataOptions,props:a.value,placeholder:t.placeholder,onChange:i},null,8,["model-value","options","props","placeholder"])])}}}),No="",At={class:"bsgoal-base-search"},$t={class:"base_search"},St={key:1},Mt=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(t,{expose:s,emit:a}){const i=t,c=e.ref(null),r=oe.align,o=e.ref({});e.watchEffect(()=>{const{configOptions:E}=i;e.unref(E).forEach(y=>{const{value:_,prop:w="",type:V=""}=y;[n.INPUT,n.INPUT_TEXT_AREA].includes(V),o.value[w]=[0,!1].includes(_)?_:""})});const d=e.computed(()=>{const{configOptions:E}=i,B=e.unref(E),y={type:n.OPERATION};return[...B,y]}),u=(E="",B="",y="")=>{if(!y)switch(E){case n.INPUT:case n.INPUT_TEXT_AREA:return`请输入${B}`;case n.SELECT:case n.DATE:case n.WEEK:case n.MONTH:case n.YEAR:case n.DATE_TIME:case n.TIME:case n.CASCADER:return`请选择${B}`;case n.DATE_RANGE:case n.DATE_TIME_RANGE:return["开始日期","结束日期"];case n.TIME_RANGE:return["开始时间","结束时间"];case n.MONTH_RANGE:return["开始月份","结束月份"]}return y},k=(E="",B="")=>{if(!B)switch(E){case n.WEEK:return"ww";case n.DATE:case n.DATE_RANGE:return"YYYY-MM-DD";case n.MONTH:return"MM";case n.YEAR:return"YYYY";case n.MONTH_RANGE:return"YYYY-MM";case n.TIME:case n.TIME_RANGE:return"HH:mm:ss";case n.DATE_TIME:case n.DATE_TIME_RANGE:return"YYYY-MM-DD HH:mm:ss"}return B},C=()=>{const{configOptions:E}=i,B=e.unref(o),y=e.unref(E),_={};for(const w of y){const{type:V="",range:S=[],prop:A="",single:I=!1}=w,T=B[A];if([n.CASCADER].includes(V)&&Array.isArray(T)&&I){const L=T.length;L?_[A]=T[L-1]:_[A]=T}else e.isProxy(T)?_[A]=e.toRaw(T):_[A]=T;if(V.endsWith("range")&&S&&S.length===2){const{0:L="",1:P=""}=T,{0:j="",1:G=""}=S;_[j]=L,_[G]=P}}a("on-search",_),a("update:modelValue",_)};e.nextTick(()=>{C()});const x=()=>{c.value.resetFields(),a("on-clear",o.value)},b=e.inject("transferFoldStatus"),$=e.ref(!1),N=(E=!1)=>{$.value=E,b&&(b.value=E),a("on-fold",$)},p=(E,B)=>{C();const y={type:E,prop:B,value:o.value[B]||""};a("on-change",y)};return s({triggerOperationSearch:C}),(E,B)=>{const y=e.resolveComponent("el-input"),_=e.resolveComponent("el-input-number"),w=e.resolveComponent("el-radio"),V=e.resolveComponent("el-radio-group"),S=e.resolveComponent("el-option"),A=e.resolveComponent("el-select"),I=e.resolveComponent("el-slider"),T=e.resolveComponent("el-switch"),L=e.resolveComponent("el-date-picker"),P=e.resolveComponent("el-time-picker"),j=e.resolveComponent("el-checkbox"),G=e.resolveComponent("el-checkbox-group"),K=e.resolveComponent("el-form-item"),Q=e.resolveComponent("el-col"),W=e.resolveComponent("el-row"),R=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",At,[e.createElementVNode("div",$t,[e.withDirectives((e.openBlock(),e.createBlock(R,{ref_key:"EL_FORM_REF",ref:c,"label-suffix":":","show-message":!1,model:o.value},{default:e.withCtx(()=>[e.createVNode(W,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,({label:m="",prop:l="",type:f="text",placeholder:O="",readonly:q=!1,clearable:v=!0,rows:ee=2,min:Z=1,max:D=10,range:U=[],format:Y=""}={},X)=>e.withDirectives((e.openBlock(),e.createBlock(Q,{key:X,xs:24,sm:12,md:t.medium},{default:e.withCtx(()=>[e.createVNode(K,{label:m,prop:l},{default:e.withCtx(()=>[q?(e.openBlock(),e.createElementBlock("div",St,e.toDisplayString(o.value[l]),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[f===e.unref(n).INPUT?(e.openBlock(),e.createBlock(y,{key:0,modelValue:o.value[l],"onUpdate:modelValue":g=>o.value[l]=g,placeholder:u(f,m,O),clearable:v},null,8,["modelValue","onUpdate:modelValue","placeholder","clearable"])):e.createCommentVNode("",!0),f===e.unref(n).INPUT_TEXT_AREA?(e.openBlock(),e.createBlock(y,{key:1,modelValue:o.value[l],"onUpdate:modelValue":g=>o.value[l]=g,type:"textarea",rows:ee,clearable:v,placeholder:u(f,m,O),onChange:g=>p(f,l)},null,8,["modelValue","onUpdate:modelValue","rows","clearable","placeholder","onChange"])):e.createCommentVNode("",!0),f===e.unref(n).INPUT_NUMBER?(e.openBlock(),e.createBlock(_,{key:2,modelValue:E.num,"onUpdate:modelValue":B[0]||(B[0]=g=>E.num=g),min:Z,max:D,onChange:p},null,8,["modelValue","min","max"])):e.createCommentVNode("",!0),f===e.unref(n).RADIO?(e.openBlock(),e.createBlock(V,{key:3,modelValue:o.value[l],"onUpdate:modelValue":g=>o.value[l]=g,onChange:g=>p(f,l)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U,(g,H)=>(e.openBlock(),e.createBlock(w,{key:H,label:g.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.label),1)]),_:2},1032,["label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])):e.createCommentVNode("",!0),f===e.unref(n).SELECT?(e.openBlock(),e.createBlock(A,{key:4,modelValue:o.value[l],"onUpdate:modelValue":g=>o.value[l]=g,placeholder:u(f,m,O),onChange:g=>p(f,l)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U,(g,H)=>(e.openBlock(),e.createBlock(S,{key:H,label:g.label,value:g.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder","onChange"])):e.createCommentVNode("",!0),f===e.unref(n).SLIDER?(e.openBlock(),e.createBlock(I,{key:5,modelValue:o.value[l],"onUpdate:modelValue":g=>o.value[l]=g,min:Z,max:D,onChange:g=>p(f,l)},null,8,["modelValue","onUpdate:modelValue","min","max","onChange"])):e.createCommentVNode("",!0),f===e.unref(n).SWITCH?(e.openBlock(),e.createBlock(T,{key:6,modelValue:o.value[l],"onUpdate:modelValue":g=>o.value[l]=g,"active-value":U[0]||!0,"inactive-value":U[1]||!1,onChange:g=>p(f,l)},null,8,["modelValue","onUpdate:modelValue","active-value","inactive-value","onChange"])):e.createCommentVNode("",!0),[e.unref(n).DATE,e.unref(n).MONTH,e.unref(n).YEAR,e.unref(n).DATE_TIME].includes(f)?(e.openBlock(),e.createBlock(L,{key:7,modelValue:o.value[l],"onUpdate:modelValue":g=>o.value[l]=g,format:k(f,Y),"value-format":k(f,Y),type:f,placeholder:u(f,m,O),onChange:g=>p(f,l)},null,8,["modelValue","onUpdate:modelValue","format","value-format","type","placeholder","onChange"])):e.createCommentVNode("",!0),[e.unref(n).DATE_RANGE,e.unref(n).MONTH_RANGE,e.unref(n).DATE_TIME_RANGE].includes(f)?(e.openBlock(),e.createBlock(L,{key:8,modelValue:o.value[l],"onUpdate:modelValue":g=>o.value[l]=g,type:f,"value-format":k(f,Y),"start-placeholder":u(f,m,O)[0],"end-placeholder":u(f,m,O)[1],onChange:g=>p(f,l)},null,8,["modelValue","onUpdate:modelValue","type","value-format","start-placeholder","end-placeholder","onChange"])):e.createCommentVNode("",!0),[e.unref(n).TIME].includes(f)?(e.openBlock(),e.createBlock(P,{key:9,modelValue:o.value[l],"onUpdate:modelValue":g=>o.value[l]=g,"arrow-control":"","value-format":k(f,Y),placeholder:u(f,m,O),onChange:g=>p(f,l)},null,8,["modelValue","onUpdate:modelValue","value-format","placeholder","onChange"])):e.createCommentVNode("",!0),[e.unref(n).TIME_RANGE].includes(f)?(e.openBlock(),e.createBlock(P,{key:10,modelValue:o.value[l],"onUpdate:modelValue":g=>o.value[l]=g,"is-range":"","value-format":k(f,Y),"start-placeholder":u(f,m,O)[0],"end-placeholder":u(f,m,O)[1],onChange:g=>p(f,l)},null,8,["modelValue","onUpdate:modelValue","value-format","start-placeholder","end-placeholder","onChange"])):e.createCommentVNode("",!0),[e.unref(n).CHECKBOX].includes(f)?(e.openBlock(),e.createBlock(G,{key:11,modelValue:o.value[l],"onUpdate:modelValue":g=>o.value[l]=g,onChange:g=>p(f,l)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U,(g,H)=>(e.openBlock(),e.createBlock(j,{key:H,label:g.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.label),1)]),_:2},1032,["label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])):e.createCommentVNode("",!0),[e.unref(n).CASCADER].includes(f)?(e.openBlock(),e.createBlock(Tt,{key:12,modelValue:o.value[l],"onUpdate:modelValue":g=>o.value[l]=g,"data-options":U,placeholder:u(f,m,O),onOnChange:g=>p(f,l)},null,8,["modelValue","onUpdate:modelValue","data-options","placeholder","onOnChange"])):e.createCommentVNode("",!0),[].includes(f)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:13},[],64)):e.createCommentVNode("",!0),[e.unref(n).OPERATION].includes(f)?(e.openBlock(),e.createBlock(xt,{key:14,fold:X>=7,onOnSearch:C,onOnClear:x,onOnFold:N},null,8,["fold"])):e.createCommentVNode("",!0)],64))]),_:2},1032,["label","prop"])]),_:2},1032,["md"])),[[e.vShow,X<7||f===e.unref(n).OPERATION||X>=7&&$.value]])),128))]),_:1})]),_:1},8,["model"])),[[e.unref(r)]])]),e.createVNode(ae)])}}}),wo="",Dt={class:"bsgoal-base-search-table"},Ot={class:"base_search_table"},Ft=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},mapProps:{type:[Object],default:()=>({currentPage:"currentPage",pageSize:"pageSize",rows:"rows",total:"total"})},hasPage:{type:Boolean,default:!0},hasSearch:{type:Boolean,default:!0}},setup(t,{expose:s}){const a=t,i=e.ref(!1);e.provide("transferFoldStatus",i);const c=e.unref(a.configOptions),r=e.computed(()=>c.filter(N=>{const{type:p=""}=N;return!!p})),o=e.computed(()=>c.filter(N=>{const{item:p=!1}=N;return!p})),d=e.useSlots(),u=e.ref(Object.keys(d)),k=e.ref(null),C=N=>{k.value.refreshList(N)},x=e.computed(()=>{const{expression:N,hasPage:p}=a;return p===!1?25:N}),b=e.ref(null);return s({refresh:()=>{const{hasSearch:N}=a;e.unref(N)&&b.value.triggerOperationSearch()}}),(N,p)=>(e.openBlock(),e.createElementBlock("div",Dt,[e.createElementVNode("div",Ot,[e.withDirectives(e.createVNode(Mt,{ref_key:"BSGOAL_BASE_SEARCH_REF",ref:b,"config-options":r.value,onOnSearch:C,onOnClear:C},null,8,["config-options"]),[[e.vShow,t.hasSearch]]),e.createVNode(se,{ref_key:"BSGOAL_BASE_TABLE_REF",ref:k,"map-props":t.mapProps,operationWidth:t.operationWidth,"config-options":o.value,data:t.tableData,selection:t.selection,operation:t.operation,expression:x.value,fetch:t.fetch,call:t.call,"has-page":t.hasPage},e.createSlots({_:2},[e.renderList(u.value,E=>({name:E,fn:e.withCtx(({row:B={}})=>[e.renderSlot(N.$slots,E,{row:B})])}))]),1032,["map-props","operationWidth","config-options","data","selection","operation","expression","fetch","call","has-page"])])]))}}),Ao="",It={class:"bsgoal-base-tree-fold"},Lt=Object.assign({name:"BsgoalBaseTreeFold"},{props:["modelValue"],emits:["update:modelValue"],setup(t,{emit:s}){let a=e.ref(!0);const i=()=>{a.value=!a.value,s("update:modelValue",a.value)};return(c,r)=>{const o=e.resolveComponent("el-icon");return e.openBlock(),e.createElementBlock("div",It,[e.createElementVNode("div",{class:e.normalizeClass(["base_tree_fold",{"base_tree_fold--hide":!e.unref(a)}]),onClick:i},[e.createVNode(o,{color:"#fff"},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(e.unref(Qe),null,null,512),[[e.vShow,e.unref(a)]]),e.withDirectives(e.createVNode(e.unref(tt),null,null,512),[[e.vShow,!e.unref(a)]])]),_:1})],2)])}}}),So="",Rt={class:"bsgoal-base-tree"},Ut={class:"base_tree"},Pt={class:"base_tree_main"},zt=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(t,{emit:s}){const a=t,i=oe.height,c=e.ref(""),r=e.ref(null);e.watch(c,C=>{r.value.filter(C)});const o=(C,x)=>C?x.label.includes(C):!0,d=e.ref(!0),u=(C,x,b,$)=>{s("on-click",C,x,b,$)},k=async(C,x,b)=>{if(C.level===0){const $=await b.initNode(C);return x($||[])}else{const $=await b.lazyLoad(C);x($||[])}};return(C,x)=>{const b=e.resolveComponent("el-input"),$=e.resolveComponent("el-tree");return e.openBlock(),e.createElementBlock("div",Rt,[e.withDirectives((e.openBlock(),e.createElementBlock("div",Ut,[e.withDirectives(e.createElementVNode("div",Pt,[e.createVNode(b,{modelValue:c.value,"onUpdate:modelValue":x[0]||(x[0]=N=>c.value=N),class:"base_tree_main_input",placeholder:"输入关键字过滤"},null,8,["modelValue"]),e.createVNode($,{ref_key:"EL_TREE_REF",ref:r,lazy:"","highlight-current":"","empty-text":"暂无数据",load:(N,p)=>k(N,p,a),"expand-on-click-node":!1,props:t.treeProps,"filter-node-method":o,onNodeClick:u},null,8,["load","props"])],512),[[e.vShow,d.value]]),e.withDirectives(e.createVNode(ae,{vertical:""},null,512),[[e.vShow,d.value]]),e.createVNode(Lt,{modelValue:d.value,"onUpdate:modelValue":x[1]||(x[1]=N=>d.value=N)},null,8,["modelValue"])])),[[e.unref(i),t.gasket]])])}}}),Do="",jt={class:"bsgoal-base-dialog"},Gt={class:"base_dialog"},Yt={class:"base_dialog_header"},Ht={class:"base_dialog_footer"},Wt=Object.assign({name:"BsgoalBaseDialog"},{props:{modelValue:{type:[Boolean],default:!1},title:{type:[String],default:"标题"},cancelTxt:{type:[String],default:"取消"},confirmTxt:{type:[String],default:"确定"},width:{type:[String,Number]},type:{type:[String],default:"default",validator:t=>["default","form","blank"].includes(t)},size:{type:[String,Number],default:"medium",validator:t=>["small","medium","lagre","max","dnymic"].includes(t)},footer:{type:[Boolean],default:!0}},emits:["update:modelValue","on-confirm"],setup(t,{emit:s}){const a=t,i=e.ref(a.modelValue.value),c=()=>{i.value=!1},r=()=>{s("on-confirm",()=>{i.value=!1})};e.watch(()=>a.modelValue,d=>{i.value=d}),e.watch(i,d=>{s("update:modelValue",d)});const o=e.computed(()=>{const{width:d,size:u}=a;if(d)return d;switch(u){case"small":return"480px";case"medium":return"720px";case"lagre":return"960px";case"max":return"1232px";case"dnymic":return"80%";default:return d}});return(d,u)=>{const k=e.resolveComponent("el-button"),C=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",jt,[e.createElementVNode("div",Gt,[e.createVNode(C,{modelValue:i.value,"onUpdate:modelValue":u[0]||(u[0]=x=>i.value=x),"custom-class":"bsgoal_base_dialog_main",class:e.normalizeClass({"bsgoal-dialog__footer--conceal":!t.footer}),width:o.value},{header:e.withCtx(()=>[e.createElementVNode("div",Yt,e.toDisplayString(t.title),1)]),footer:e.withCtx(()=>[t.footer?e.renderSlot(d.$slots,"footer",{key:0},()=>[e.createElementVNode("span",Ht,[e.createVNode(k,{onClick:c},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.cancelTxt),1)]),_:1}),e.createVNode(k,{type:"primary",onClick:r},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.confirmTxt),1)]),_:1})])]):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["base_dialog_content",{"base_dialog_content--form":t.type==="form"}])},[e.renderSlot(d.$slots,"default")],2)]),_:3},8,["modelValue","class","width"])])])}}}),Fo="",Xt={class:"bsgoal-base-tabs"},Kt=Object.assign({name:"BsgoalBaseTabs"},{props:{configOptions:{type:[Array],default:()=>[]},type:{type:[String],default:"",validator:t=>["card","border-card",""].includes(t)},modelValue:{type:[String],default:""},stretch:{type:[Boolean],default:!1}},emits:["update:modelValue"],setup(t,{emit:s}){const a=t,i=e.computed(()=>{const{modelValue:r="",configOptions:o=[]}=a,d=e.unref(o).map(k=>k.value);return e.unref(r)||d[0]}),c=(r="")=>{s("update:modelValue",r)};return(r,o)=>{const d=e.resolveComponent("el-tab-pane"),u=e.resolveComponent("el-tabs");return e.openBlock(),e.createElementBlock("div",Xt,[e.createVNode(u,{class:"bsgoal_base_tabs",stretch:t.stretch,type:t.type,"model-value":i.value,onTabChange:c},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.configOptions,({label:k,value:C},x)=>(e.openBlock(),e.createBlock(d,{key:x,label:k,name:C},{default:e.withCtx(()=>[e.renderSlot(r.$slots,C,{},()=>[e.createTextVNode(e.toDisplayString(k),1)])]),_:2},1032,["label","name"]))),128))]),_:3},8,["stretch","type","model-value"])])}}}),Lo="",Ro="",Qt={class:"bsgoal-base-link"},Zt=re(Object.assign({name:"BsgoalBaseLink"},{props:{content:{type:[String],default:"link"},underline:{type:[Boolean],default:!1},styler:{type:[Object],default:()=>({})}},emits:["on-click"],setup(t,{emit:s}){const a=()=>{s("on-click")};return(i,c)=>{const r=e.resolveComponent("el-link");return e.openBlock(),e.createElementBlock("div",Qt,[e.createVNode(r,{class:"bsgoal_base_link",type:"primary",underline:t.underline,style:e.normalizeStyle(t.styler),onClick:a},{default:e.withCtx(()=>[e.renderSlot(i.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.content),1)],!0)]),_:3},8,["underline","style"])])}}}),[["__scopeId","data-v-3b0290b0"]]),zo="",Jt={class:"bsgoal-base-button"},qt=Object.assign({name:"BsgoalBaseButton"},{props:{task:{type:[Object,Function],default:()=>{Promise.resolve()}},type:{type:[String],default:"primary",validator:t=>["primary","success","warning","danger","info"].includes(t)},icon:{type:[String,Object],default:""},content:{type:[String],default:"新增"},mode:{type:[String],default:"default",validator:t=>["add","delete","edit","detail","default"].includes(t)},values:{type:[Array,Object],default:()=>({})},plain:{type:[Boolean],default:!1}},setup(t){const s=t,a=e.ref(!1),i=()=>{a.value=!0;const{task:o}=s;e.unref(o)(()=>{a.value=!1},s.values)},c=e.computed(()=>{const{mode:o="",type:d=""}=s;switch(o){case"delete":return"danger"}return d}),r=e.computed(()=>{const{mode:o="",icon:d=""}=s;switch(o){case"delete":return ie;case"add":return Et}return d});return(o,d)=>{const u=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",Jt,[e.createElementVNode("div",{class:"base_button",onClick:i},[e.renderSlot(o.$slots,"default",{loading:a.value},()=>[e.createVNode(u,{type:c.value,icon:r.value,loading:a.value,plain:t.plain},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.content),1)]),_:1},8,["type","icon","loading","plain"])])])])}}}),Go="",vt={class:"bsgoal-base-layout"},eo=Object.assign({name:"BsgoalBaseLayout"},{props:{gutter:{type:[Number],default:0},ratio:{type:[Number],default:12}},setup(t){const s=e.useSlots(),a=e.ref(Object.keys(s));return(i,c)=>{const r=e.resolveComponent("el-col"),o=e.resolveComponent("el-row");return e.openBlock(),e.createElementBlock("div",vt,[e.createVNode(o,{class:"base_layout",gutter:t.gutter},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(d,u)=>(e.openBlock(),e.createBlock(r,{key:u,xs:24,sm:24,md:t.ratio,lg:t.ratio,xl:t.ratio},{default:e.withCtx(()=>[e.renderSlot(i.$slots,d)]),_:2},1032,["md","lg","xl"]))),128))]),_:3},8,["gutter"])])}}}),de=n,to=ne,oo={install(t,s={}){const{exclude:a=[]}=s,i={BsgoalBaseForm:he,BsgoalBaseTable:se,BsgoalBaseLine:ae,BsgoalBaseSearchTable:Ft,BsgoalBaseTree:zt,BsgoalBaseDialog:Wt,BsgoalBaseTabs:Kt,BsgoalBaseLink:Zt,BsgoalBaseButton:qt,BsgoalBaseLayout:eo};for(const[c,r]of Object.entries(i))a.includes(c)||t.component(c,r)},ComponentTypeEnums:de,useFetch:ne};M.ComponentTypeEnums=de,M.default=oo,M.useFetchApi=to,Object.defineProperties(M,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
2
2
|
//# sourceMappingURL=index.umd.js.map
|