@gopowerteam/table-render 0.0.166 → 0.0.168

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.
@@ -1 +1 @@
1
- "use strict";var ge=Object.defineProperty;var we=(e,t,r)=>t in e?ge(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var T=(e,t,r)=>(we(e,typeof t!="symbol"?t+"":t,r),r);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("vue"),C=require("@arco-design/web-vue"),O=require("@gopowerteam/modal-render"),ve=require("exceljs"),P=require("dayjs"),ee=require("@gopowerteam/form-render"),Ce=require("./resolver.cjs");function ke(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const l=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,l.get?l:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const xe=ke(ve);function Se(e,t,r){const[l,...a]=t.index?t.index.split(".").reverse():[t.key],n=a.reverse().reduce((c,d)=>c==null?void 0:c[d],e);n[l]=r}function Ve(e){const t=u.ref([]),r=a=>{const n=e.filter(c=>c.formatter);return n.length>0?a.map(c=>(n.forEach(d=>{d.formatter&&Se(c,d,d.formatter(c))}),c)):a};return[t,a=>{t.value=r(a)}]}function Me(e){return e.filter(t=>t.form).map(t=>({key:t.key,title:t.title,...typeof t.form=="boolean"?{}:t.form}))}function Ne(e){const t=u.getCurrentInstance(),r=u.ref();function l(){var n,c;const a=(c=(n=t==null?void 0:t.proxy)==null?void 0:n.$refs)==null?void 0:c[e];a&&(r.value=a)}return u.onMounted(l),u.onUpdated(l),r}function te(e){return(t,r)=>e[t](r)}class E{constructor(t=1,r=10){T(this,"data",u.reactive({index:1,size:10,total:0}));T(this,"pageSizeOpts",[10,20,30,40,50]);T(this,"pageLayouts",["PrevJump","PrevPage","JumpNumber","NextPage","NextJump","Sizes","FullJump","Total"]);this.pageIndex=t,this.pageSize=r}get pageIndex(){return this.data.index}set pageIndex(t){this.data.index=t}get pageSize(){return this.data.size}set pageSize(t){this.data.size=t}get total(){return this.data.total}set total(t){this.data.total=t}reset(){this.pageIndex=1}before(t){t.paramsQuery={...t.paramsQuery,page:this.pageIndex-1,size:this.pageSize}}after(t){var r;this.total=(r=t.data)==null?void 0:r.totalElements}}const Te=Symbol.for("RenderColumnType");function k(e,t,r){return t.$type=e,t.$disableColumnMode=r==null?void 0:r.disableColumnMode,t.$disableViewMode=r==null?void 0:r.disableViewMode,t}function M(e,t){return t.index?t.index.split(".").reduce((r,l)=>r==null?void 0:r[l],e):[t.key].reduce((r,l)=>r==null?void 0:r[l],e)}function q(e){return!!e&&(typeof e=="object"||typeof e=="function")&&typeof e.then=="function"}function _e(e){return k("button",(r,l,a)=>{const n=O.useModal(),c=Array.isArray(e)?e:"buttons"in e?e.buttons:[e],d=(i,s)=>typeof i=="function"?i(r):i===void 0?s:i;async function f(i){if(await(i.confirm===!0?new Promise(m=>{n.confirm({title:"提示信息",content:i.confirmText??"您确定要执行该操作?",onOk:()=>m(!0),onCancel:()=>m(!1)})}):Promise.resolve(!0))&&(i!=null&&i.onClick)){const m=i.onClick(r);q(m)&&i.autoReload!==!1&&m.then(()=>{a!=null&&a.emits&&(a==null||a.emits("reload"))}),!q(m)&&i.autoReload===!0&&a!=null&&a.emits&&(a==null||a.emits("reload"))}}return u.createVNode(u.Fragment,null,[c.filter(i=>d(i.visiable,!0)).map(i=>u.createVNode(C.Button,{onClick:()=>f(i),type:i.type||"text",shape:i.shape,size:"mini",disabled:d(i.disabled,!1)},{icon:i.icon?()=>i.icon(r):void 0,default:()=>(typeof i.content=="function"?i.content(r):i.content)||""}))])},{disableViewMode:!0})}const Oe={thousands:!0,inputUnit:"元",outputUnit:"元"},Z={分:10**0,元:10**2,万:10**6};function je(e){e={...Oe,...e||{}};const t=n=>{if(n==null)return;if((e==null?void 0:e.inputUnit)===(e==null?void 0:e.outputUnit))return n;const c=Z[e.inputUnit]/Z[e.outputUnit],d=parseFloat((n*c).toFixed(10));return(e==null?void 0:e.precision)===void 0?d:d.toFixed(e==null?void 0:e.precision)},r=n=>{if(n==null)return;const c=n.toString().split(".");return c[0]=c[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),c.join(".")},l=n=>{if((e==null?void 0:e.zeroString)!==void 0&&Number(n)===0)return e==null?void 0:e.zeroString;if((e==null?void 0:e.nullString)!==void 0&&isNaN(Number(n)))return e==null?void 0:e.nullString;const c=t(Number(n));return e!=null&&e.thousands?r(c):c};return k("dict",(n,c)=>{const d=M(n,c);return u.createVNode("div",null,[typeof(e==null?void 0:e.prefix)=="string"?u.createVNode("span",null,[e.prefix]):typeof(e==null?void 0:e.prefix)=="function"?u.createVNode("span",null,[e.prefix()]):void 0,u.createVNode("span",{class:"currency_value"},[l(d)]),typeof(e==null?void 0:e.suffix)=="string"?u.createVNode("span",null,[e.suffix]):typeof(e==null?void 0:e.suffix)=="function"?u.createVNode("span",null,[e.suffix()]):void 0])})}var $e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Re={exports:{}};(function(e,t){(function(r,l){e.exports=l(P)})($e,function(r){function l(c){return c&&typeof c=="object"&&"default"in c?c:{default:c}}var a=l(r),n={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(c,d){return d==="W"?c+"周":c+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(c,d){var f=100*c+d;return f<600?"凌晨":f<900?"早上":f<1100?"上午":f<1300?"中午":f<1800?"下午":"晚上"}};return a.default.locale(n,null,!0),n})})(Re);P.locale("zh-cn");const Le={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",time:"HH:mm:ss",week:"ddd"};function qe(e){return k("date",(r,l)=>{const a=M(r,l),n=typeof(e==null?void 0:e.format)=="function"?e==null?void 0:e.format():Le[(e==null?void 0:e.format)||"datetime"],c=P(a);return u.createVNode("span",null,[c.isValid()&&c.format(n)])})}const Pe={success:"arcoblue",warning:"orange",error:"red"};function Ee(e){return e instanceof Map?e:e.dict}function ze(e){const t=e instanceof Map?!1:e.tag;return typeof t=="string"?Pe[t]:t}function Ye(e){const t=Ee(e),r=ze(e);return k("dict",(a,n)=>{const c=M(a,n);return r?u.createVNode(C.Tag,{color:r===!0?void 0:r},{default:()=>[t.get(c)||c]}):u.createVNode("span",null,[t.get(c)||c])})}function Ae(e){const t=O.useModal();async function r(a,n){a.confirm&&!await new Promise((d,f)=>{t.open("confirm",{title:"确认",content:a.confirmText||"是否确认执行该操作?",onOk:()=>d(!0),onCancel:()=>d(!1)})})||a.onClick(n)}return k("dropdown",(a,n)=>{const c=e.options.filter(d=>typeof d.visiable=="function"?d.visiable(a):d.visiable!==!1);return u.createVNode(C.Dropdown,{trigger:(e==null?void 0:e.trigger)||"click"},{default:()=>u.createVNode(C.Button,{disabled:c.length===0,type:"text"},{default:()=>[(e==null?void 0:e.content)||"操作"]}),content:()=>c.map(d=>u.createVNode(C.Dropdown.Option,{onClick:()=>r(d,a)},{default:()=>[typeof d.content=="function"?d.content(a):d.content]}))})})}const Be={size:30};function De(e){e={...Be,...e||{}};function t(){}return k("image",(l,a)=>{const n=M(l,a),c=Math.random().toString(32).slice(2).toUpperCase(),d={maxWidth:"100%",maxHeight:"100%",borderRadius:e==null?void 0:e.radius,objectFit:"contain",transform:`rotate(${(e==null?void 0:e.rotate)||0}deg)`,cursor:e!=null&&e.preview?"zoom-in":"unset"},f=`${a.index||a.key}_parsed`;if(e!=null&&e.parse){const i=e==null?void 0:e.parse(n,l);q(i)?i.then(s=>l[f]=s??""):l[f]=i??""}if(e!=null&&e.parse&&!l[f]===void 0)return u.createVNode("div",null,[u.createTextVNode("Loading...")]);{const i=l[f]||n;return i?u.createVNode("div",{id:c,onClick:t,style:{display:"flex",justifyContent:"center",alignItems:"center",height:`${e==null?void 0:e.size}px`}},[u.createVNode("img",{alt:"image",style:d,src:i},null)]):u.createVNode(u.Fragment,null,null)}})}function z(e){return u.getCurrentScope()?(u.onScopeDispose(e),!0):!1}function _(e){return typeof e=="function"?e():u.unref(e)}const Y=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Fe=Object.prototype.toString,Ie=e=>Fe.call(e)==="[object Object]",He=()=>{};function Ke(e){let t;function r(){return t||(t=e()),t}return r.reset=async()=>{const l=t;t=void 0,l&&await l},r}function We(e,t){var r;if(typeof e=="number")return e+t;const l=((r=e.match(/^-?\d+\.?\d*/))==null?void 0:r[0])||"",a=e.slice(l.length),n=Number.parseFloat(l)+t;return Number.isNaN(n)?e:n+a}function Ue(e,t,r={}){const{immediate:l=!0}=r,a=u.ref(!1);let n=null;function c(){n&&(clearTimeout(n),n=null)}function d(){a.value=!1,c()}function f(...i){c(),a.value=!0,n=setTimeout(()=>{a.value=!1,n=null,e(...i)},_(t))}return l&&(a.value=!0,Y&&f()),z(d),{isPending:u.readonly(a),start:f,stop:d}}function Ge(e){var t;const r=_(e);return(t=r==null?void 0:r.$el)!=null?t:r}const A=Y?window:void 0,re=Y?window.navigator:void 0;function ne(...e){let t,r,l,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([r,l,a]=e,t=A):[t,r,l,a]=e,!t)return He;Array.isArray(r)||(r=[r]),Array.isArray(l)||(l=[l]);const n=[],c=()=>{n.forEach(s=>s()),n.length=0},d=(s,m,h,g)=>(s.addEventListener(m,h,g),()=>s.removeEventListener(m,h,g)),f=u.watch(()=>[Ge(t),_(a)],([s,m])=>{if(c(),!s)return;const h=Ie(m)?{...m}:m;n.push(...r.flatMap(g=>l.map(S=>d(s,g,S,h))))},{immediate:!0,flush:"post"}),i=()=>{f(),c()};return z(i),i}function Ze(){const e=u.ref(!1),t=u.getCurrentInstance();return t&&u.onMounted(()=>{e.value=!0},t),e}function B(e){const t=Ze();return u.computed(()=>(t.value,!!e()))}function R(e,t={}){const{window:r=A}=t,l=B(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let a;const n=u.ref(!1),c=i=>{n.value=i.matches},d=()=>{a&&("removeEventListener"in a?a.removeEventListener("change",c):a.removeListener(c))},f=u.watchEffect(()=>{l.value&&(d(),a=r.matchMedia(_(e)),"addEventListener"in a?a.addEventListener("change",c):a.addListener(c),n.value=a.matches)});return z(()=>{f(),d(),a=void 0}),n}function Je(e,t={}){function r(s,m){let h=_(e[_(s)]);return m!=null&&(h=We(h,m)),typeof h=="number"&&(h=`${h}px`),h}const{window:l=A,strategy:a="min-width"}=t;function n(s){return l?l.matchMedia(s).matches:!1}const c=s=>R(()=>`(min-width: ${r(s)})`,t),d=s=>R(()=>`(max-width: ${r(s)})`,t),f=Object.keys(e).reduce((s,m)=>(Object.defineProperty(s,m,{get:()=>a==="min-width"?c(m):d(m),enumerable:!0,configurable:!0}),s),{});function i(){const s=Object.keys(e).map(m=>[m,c(m)]);return u.computed(()=>s.filter(([,m])=>m.value).map(([m])=>m))}return Object.assign(f,{greaterOrEqual:c,smallerOrEqual:d,greater(s){return R(()=>`(min-width: ${r(s,.1)})`,t)},smaller(s){return R(()=>`(max-width: ${r(s,-.1)})`,t)},between(s,m){return R(()=>`(min-width: ${r(s)}) and (max-width: ${r(m,-.1)})`,t)},isGreater(s){return n(`(min-width: ${r(s,.1)})`)},isGreaterOrEqual(s){return n(`(min-width: ${r(s)})`)},isSmaller(s){return n(`(max-width: ${r(s,-.1)})`)},isSmallerOrEqual(s){return n(`(max-width: ${r(s)})`)},isInBetween(s,m){return n(`(min-width: ${r(s)}) and (max-width: ${r(m,-.1)})`)},current:i,active(){const s=i();return u.computed(()=>s.value.length===0?"":s.value.at(-1))}})}function J(e,t={}){const{controls:r=!1,navigator:l=re}=t,a=B(()=>l&&"permissions"in l);let n;const c=typeof e=="string"?{name:e}:e,d=u.ref(),f=()=>{n&&(d.value=n.state)},i=Ke(async()=>{if(a.value){if(!n)try{n=await l.permissions.query(c),ne(n,"change",f),f()}catch{d.value="prompt"}return n}});return i(),r?{state:d,isSupported:a,query:i}:d}function Qe(e={}){const{navigator:t=re,read:r=!1,source:l,copiedDuring:a=1500,legacy:n=!1}=e,c=B(()=>t&&"clipboard"in t),d=J("clipboard-read"),f=J("clipboard-write"),i=u.computed(()=>c.value||n),s=u.ref(""),m=u.ref(!1),h=Ue(()=>m.value=!1,a);function g(){c.value&&w(d.value)?t.clipboard.readText().then(y=>{s.value=y}):s.value=j()}i.value&&r&&ne(["copy","cut"],g);async function S(y=_(l)){i.value&&y!=null&&(c.value&&w(f.value)?await t.clipboard.writeText(y):x(y),s.value=y,m.value=!0,h.start())}function x(y){const v=document.createElement("textarea");v.value=y??"",v.style.position="absolute",v.style.opacity="0",document.body.appendChild(v),v.select(),document.execCommand("copy"),v.remove()}function j(){var y,v,V;return(V=(v=(y=document==null?void 0:document.getSelection)==null?void 0:y.call(document))==null?void 0:v.toString())!=null?V:""}function w(y){return y==="granted"||y==="prompt"}return{isSupported:i,text:s,copied:m,copy:S}}const Xe=" ";function pe(e){return e==null?void 0:e.replace(/(\d{3})\d*(\d{4})/g,"$1****$2")}function Q(e,t){return e==null?void 0:e.replace(/\*/g,"M").replace(/\B(?=(?:\S{4})+$)/g,t??Xe).replace(/M/g,"*")}function et(e){const t=Qe();return k("phone",(l,a)=>{const n=`phone_${Math.random().toString(36).slice(2)}`,c="__table__column_phone__",d=M(l,a),f=16,i=`cursor:pointer;width:${f}px;height:${f}px;`,s=Q(pe(d),e==null?void 0:e.separator),m=Q(d,e==null?void 0:e.separator);function h(){window.focus(),t.copy(d).then(()=>{C.Message.success({content:"复制成功",duration:1e3})})}function g(){const w=document.querySelectorAll(`.${c}.content`);w.length>0&&w.forEach(y=>{const v=y;if(v.innerText.includes("****"))return;v.innerText=v.dataset.encrypt;const V=v.nextSibling;!V||!V.classList.contains("preview-icon")||(V.innerHTML=`<svg width="${f}" height="${f}" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M24 36C35.0457 36 44 24 44 24C44 24 35.0457 12 24 12C12.9543 12 4 24 4 24C4 24 12.9543 36 24 36Z" fill="none" stroke="#333" stroke-width="2" stroke-linejoin="round"/><path d="M24 29C26.7614 29 29 26.7614 29 24C29 21.2386 26.7614 19 24 19C21.2386 19 19 21.2386 19 24C19 26.7614 21.2386 29 24 29Z" fill="none" stroke="#333" stroke-width="4" stroke-linejoin="round"/></svg>`)})}function S(w){const y=document.querySelector(`#${n}>.preview-icon`);y&&(w?y.innerHTML=`<svg width="${f}" height="${f}" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M24 36C35.0457 36 44 24 44 24C44 24 35.0457 12 24 12C12.9543 12 4 24 4 24C4 24 12.9543 36 24 36Z" fill="none" stroke="#333" stroke-width="2" stroke-linejoin="round"/><path d="M24 29C26.7614 29 29 26.7614 29 24C29 21.2386 26.7614 19 24 19C21.2386 19 19 21.2386 19 24C19 26.7614 21.2386 29 24 29Z" fill="none" stroke="#333" stroke-width="4" stroke-linejoin="round"/></svg>`:y.innerHTML=`<svg width="${f}" height="${f}" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 16C6.63472 17.2193 7.59646 18.3504 8.82276 19.3554C12.261 22.1733 17.779 24 24 24C30.221 24 35.739 22.1733 39.1772 19.3554C40.4035 18.3504 41.3653 17.2193 42 16" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/><path d="M28.9775 24L31.048 31.7274" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/><path d="M37.3535 21.3536L43.0103 27.0104" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/><path d="M5.00004 27.0103L10.6569 21.3534" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/><path d="M16.9278 31.7276L18.9983 24.0001" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/></svg>`)}function x(){const w=document.querySelector(`#${n}>.content`),y=!!(w!=null&&w.innerHTML.includes("****"));y?(g(),w&&(w.innerHTML=m)):w&&(w.innerHTML=s),S(!y)}function j(){window.open(`tel:${d}`,"_blank")}return u.createVNode("div",{id:n,style:"display:flex;align-items:center;gap:4px;"},[u.createVNode("div",{"data-encrypt":s,class:`${c} content`,style:"use-select:none;font-family: monospace;cursor:pointer;font-variant-numeric: tabular-nums;padding-right: 2px;"},[e!=null&&e.safe?s:m]),(e==null?void 0:e.safe)&&(e==null?void 0:e.allowPreview)&&u.createVNode("i",{class:"preview-icon",title:"显示完整号码",style:i,onClick:x},[u.createVNode("svg",{width:f,height:f,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[u.createVNode("path",{d:"M24 36C35.0457 36 44 24 44 24C44 24 35.0457 12 24 12C12.9543 12 4 24 4 24C4 24 12.9543 36 24 36Z",fill:"none",stroke:"#333","stroke-width":"2","stroke-linejoin":"round"},null),u.createVNode("path",{d:"M24 29C26.7614 29 29 26.7614 29 24C29 21.2386 26.7614 19 24 19C21.2386 19 19 21.2386 19 24C19 26.7614 21.2386 29 24 29Z",fill:"none",stroke:"#333","stroke-width":"4","stroke-linejoin":"round"},null)])]),(e==null?void 0:e.allowDial)&&u.createVNode("i",{style:i,title:"拨出号码",onClick:j},[u.createVNode("svg",{width:f,height:f,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[u.createVNode("path",{d:"M41.7796 20.6066C42.0324 18.9108 41.9495 17.1747 41.5309 15.5054C40.978 13.3002 39.8392 11.2118 38.1147 9.4873C36.3902 7.76281 34.3018 6.62409 32.0967 6.07115C30.4274 5.65257 28.6912 5.56967 26.9954 5.82245",stroke:"#333","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null),u.createVNode("path",{d:"M34.1896 19.8035C34.4604 17.9869 33.8966 16.0699 32.4982 14.6715C31.0997 13.2731 29.1827 12.7092 27.3662 12.98",stroke:"#333","stroke-width":"4","stroke-linecap":"round","stroke-linejoin":"round"},null),u.createVNode("path",{d:"M14.3755 8.79423C15.1021 8.79423 15.7715 9.18825 16.1241 9.82349L18.5706 14.2303C18.8909 14.8073 18.9059 15.5052 18.6108 16.0955L16.254 20.8091C16.254 20.8091 16.937 24.3206 19.7954 27.179C22.6538 30.0374 26.1535 30.7086 26.1535 30.7086L30.8664 28.3522C31.4571 28.0568 32.1555 28.0721 32.7327 28.393L37.152 30.85C37.7866 31.2028 38.1802 31.8719 38.1802 32.598L38.1802 37.6715C38.1802 40.2552 35.7803 42.1213 33.3322 41.2952C28.3043 39.5987 20.4996 36.3685 15.5528 31.4216C10.6059 26.4748 7.3757 18.6701 5.67916 13.6422C4.85314 11.1941 6.71923 8.79423 9.30288 8.79423L14.3755 8.79423Z",fill:"none",stroke:"#333","stroke-width":"4","stroke-linejoin":"round"},null)])]),(e==null?void 0:e.allowCopy)&&u.createVNode("i",{style:i,title:"复制号码",onClick:h},[u.createVNode("svg",{width:f,height:f,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[u.createVNode("path",{d:"M13 12.4316V7.8125C13 6.2592 14.2592 5 15.8125 5H40.1875C41.7408 5 43 6.2592 43 7.8125V32.1875C43 33.7408 41.7408 35 40.1875 35H35.5163",stroke:"#333","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null),u.createVNode("path",{d:"M32.1875 13H7.8125C6.2592 13 5 14.2592 5 15.8125V40.1875C5 41.7408 6.2592 43 7.8125 43H32.1875C33.7408 43 35 41.7408 35 40.1875V15.8125C35 14.2592 33.7408 13 32.1875 13Z",fill:"none",stroke:"#333","stroke-width":"4","stroke-linejoin":"round"},null)])])])})}function tt(e){return k("render",r=>e(r))}function rt(e){return k("tag",(r,l)=>{const a=(e==null?void 0:e.maxCount)||5,n=e!=null&&e.formatter?e.formatter(r):M(r,l),c=(e==null?void 0:e.textColors)||["#F87335"],d=(e==null?void 0:e.backgroundColors)||["#FFF4E8"],f=n.length>a,i=e==null?void 0:e.minWidth;return u.createVNode("div",{style:{display:"flex",flexWrap:"wrap"}},[n.slice(0,a).map((s,m)=>{const h=typeof c=="function"?c(s,m):c[m%c.length],g=typeof d=="function"?d(s,m):d[m%d.length];return u.createVNode("span",{style:{minWidth:i?`${i}px`:"unset",textAlign:"center",margin:"2px",padding:"2px 5px",border:`solid 2px ${e!=null&&e.border?h:"transparent"}`,borderRadius:`${(e==null?void 0:e.radius)||0}px`,color:h,backgroundColor:g}},[s])}),f&&"..."])})}function X(e){if(typeof e=="string")return e;if(typeof e=="number")return`${e}px`}function nt(e,t,r){var l,a;return typeof e=="function"?(l=e(r))==null?void 0:l.toString():typeof(e==null?void 0:e.content)=="function"?(a=e==null?void 0:e.content(r))==null?void 0:a.toString():typeof(e==null?void 0:e.content)=="string"?e==null?void 0:e.content:M(r,t)}function at(e,t){if(typeof e!="function"){if(typeof(e==null?void 0:e.color)=="function")return e==null?void 0:e.color(t);if(typeof(e==null?void 0:e.color)=="string")return e==null?void 0:e.color}}function lt(e,t){if(typeof e!="function")return typeof(e==null?void 0:e.size)=="function"?X(e==null?void 0:e.size(t)):X(e==null?void 0:e.size)}function ut(e,t){let r="";const l=at(e,t),a=lt(e,t);return l&&(r+=`color:${l};`),a&&(r+=`font-size:${a};`),r}function ct(e){return k("text",(r,l)=>{const a=nt(e||{},l,r),n=ut(e||{},r);return u.createVNode("span",{style:n},[a])})}function dt(e){const t=(e==null?void 0:e.backgroundColor)??"#f5f5f5",r=(e==null?void 0:e.foregroundColor)??"#1677ff",l=(e==null?void 0:e.showText)??!0,a=(e==null?void 0:e.textColor)??"#000";return k("progress",(c,d)=>{var h;const f=M(c,d),i=(e==null?void 0:e.precision)??0,s=Math.min(Math.max(((h=e==null?void 0:e.format)==null?void 0:h.call(e,f))??f,0),1),m=l?`${(s*100).toFixed(i)}%`:"";return u.createVNode("div",{style:`background-color:${t};position:relative;min-height: 20px;text-align: center;border-radius: 2px;overflow:hidden;`},[u.createVNode("div",{style:`background-color: ${r};position:absolute;left:0;top:0;right;0;width: ${m};height: 100%;`},null),l&&u.createVNode("div",{style:`position:absolute;inset:0;display:flex;justify-content:center;align-items:center;color:${a}`},[m])])})}function it(e){return k("serial",(r,l,a)=>{const n={color:typeof(e==null?void 0:e.color)=="function"?e.color(r):e==null?void 0:e.color,fontWeight:(e==null?void 0:e.weight)||"normal",textAlign:"center"};return u.createVNode("div",{style:n},[a.rowIndex+1])},{disableViewMode:!0})}function ot(){return{dropdown:Ae,text:ct,dict:Ye,tag:rt,render:tt,phone:et,image:De,currency:je,date:qe,button:_e,progress:dt,serial:it}}function D(e,t){if(!(e!=null&&e.render))return;const r=e.render({...ot()});return{render:({record:l,rowIndex:a})=>r(l,e,{...t||{},rowIndex:a}),[Te]:r.$type,disableColumnMode:r.$disableColumnMode,disableViewMode:r.$disableViewMode,isRender:r.$type==="render",type:r.$type}}function p({columns:e,columnsOptions:t,columnsGroups:r,pageMode:l,collapsedColumns:a,events:n}){const c=e.map(d=>({...t||{},...d})).map(d=>mt(d,l,a,n)).filter(Boolean);return ft(c,r)}function st(e,t){const r=[],l=n=>{if("children"in n&&(n.children=n.children.map(l)),"key"in n){const c=t.find(d=>{var f;return((f=Object.getOwnPropertyDescriptor(d,"key"))==null?void 0:f.value)===n.key});if(c)return r.push(c),c}return n},a=l(e);if(r!=null&&r.length&&a){const n=Math.min(...r.map(c=>t.indexOf(c)));r.forEach(c=>{const d=t.indexOf(c);t.splice(d,1)}),t.splice(n,0,a)}}function ft(e,t=[]){return t.forEach(r=>{st(r,e)}),e}function mt(e,t,r,l){const{render:a,disableColumnMode:n}=D(e,{previewing:!1,emits:l})||{};if(!(n||e.visiable===!1)&&!(typeof e.visiable=="function"&&e.visiable()===!1)&&!r.value.find(c=>c.key===e.key&&c.collapsed===!0))return{dataIndex:e.index||e.key,title:e.title,width:e.width==="auto"?void 0:e.width,align:e.align??"center",fixed:e.fixed,ellipsis:e.ellipsis??!0,sortable:e.sortable?{sorter:t==="server",sortDirections:["ascend","descend"],defaultSortOrder:e.sortable==="asc"?"ascend":"descend"}:void 0,tooltip:!0,...e.extraProps,key:e.key,render:a}}function ht(){return new xe.Workbook}function yt(e,t="Sheet1"){return e.addWorksheet(t,{headerFooter:{firstHeader:"",firstFooter:""}})}function bt(e,t){e.columns=t}function gt(e,t){e.addRows(t)}async function wt({columns:e,rows:t,filename:r}){const l=ht(),a=yt(l);bt(a,e),gt(a,t);const n=await l.xlsx.writeBuffer(),c=new Blob([n]);vt(c,r||`${P().format("YYYY-MM-DD HH:mm:ss")}.xlsx`)}function vt(e,t){const r=document.createElement("a");r.download=t||"download",r.href=URL.createObjectURL(e),r.click(),setTimeout(()=>{URL.revokeObjectURL(r.href)},1e3)}function Ct(e,t){const r={};return e.filter(a=>a.exportable!==!1).map(a=>({options:a,render:D(a),content:typeof a.exportable=="object"?a.exportable.content:void 0})).forEach(a=>{var d;const n=(d=a.render)==null?void 0:d.render,c=()=>{var f;switch(!0){case!!a.content:return a.content&&a.content(t);case!!n:{const i=document.createElement("div"),s=u.h(()=>n&&n({record:t}));return u.render(s,i),(f=s.el)==null?void 0:f.innerText}default:return M(t,a.options)}};r[a.options.key]=c()}),r}function kt(e){switch(!0){case typeof e=="number":return e/6;case(typeof e=="string"&&e.endsWith("px")):return parseInt(e.replace("px",""))/6;default:return 30}}function xt(e,t,r){const l=e.filter(n=>n.exportable!==!1).map(n=>{var c,d;return{key:n.key,header:((c=n.exportable)==null?void 0:c.header)||n.title,width:((d=n.exportable)==null?void 0:d.width)||kt(n.width)}}),a=t.map(n=>Ct(e,n));wt({columns:l,rows:a,filename:r})}function St(){return{exportExcel:xt}}class F{constructor(t){T(this,"sort",{});T(this,"defaultSort",{});T(this,"before",t=>{t.paramsQuery={...t.paramsQuery||{},sort:this.stringify(this.sort)}});t&&(this.sort=t,this.defaultSort=t)}update(t,r){t&&r&&(this.sort[t]=r)}remove(t){const r=Object.entries(this.sort).filter(([l])=>l!==t);this.sort={},r&&r.forEach(([l,a])=>{this.sort[l]=a})}reset(){this.sort=this.defaultSort||{}}stringify(t){return typeof t!="object"?[]:(t instanceof F&&(t=t.sort),Object.entries(t).map(([r,l])=>`${r},${l}`))}}const Vt=300;function Mt(e){const t=e,r=t==null?void 0:t.querySelector(".arco-scrollbar-container.arco-table-body");if(!r)return;let l,a=!1,n;r.addEventListener("mousedown",()=>{l=setTimeout(()=>{l&&(r.style.cursor="grab",r.style.userSelect="none",a=!0)},Vt)}),r.addEventListener("mouseup",()=>{clearTimeout(l),l&&(l=void 0,a=!1,r.style.cursor="",r.style.userSelect="",n=void 0)}),r.addEventListener("mousemove",c=>{if(a)if(n===void 0)n=c.clientX;else{const d=n-c.clientX;n=c.clientX,r.scrollLeft+=d}})}function Nt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!u.isVNode(e)}const Tt=u.defineComponent({props:{record:{type:Object,required:!0},columns:{type:Array,required:!0},minWidth:{type:Number,required:!1,default:320},border:{type:Boolean,default:!0},exclude:{type:Array,default:()=>[]},layout:{type:String,required:!1,default:"horizontal"},buttons:{type:Array,default:()=>[]}},setup(e){const t=u.getCurrentInstance(),r=u.ref(0),l=e.columns.filter(n=>typeof n.visiable=="boolean"?n.visiable:typeof n.visiable=="function"?n.visiable():!0).map(n=>({options:n,renderer:D(n,{previewing:!0})})).filter(({options:n})=>{var c;return!((c=e.exclude)!=null&&c.includes(n.key))}).filter(({renderer:n})=>!(n!=null&&n.disableViewMode));function a(){var n;if(t){const c=(n=t.proxy)==null?void 0:n.$el;r.value=Math.floor(c.offsetWidth/e.minWidth)}}return u.onMounted(()=>{a()}),()=>{let n;return u.createVNode("div",{class:"preview-container"},[u.createVNode(C.Descriptions,{column:r.value,bordered:!0,align:"left",layout:e.layout},Nt(n=l.map(c=>u.createVNode(C.DescriptionsItem,{label:c.options.title},{default:()=>{var d,f;return[(d=c.renderer)!=null&&d.render?(f=c.renderer)==null?void 0:f.render({record:e.record}):M(e.record,c.options)]}})))?n:{default:()=>[n]})])}}});function _t(e,t,{tableForm:r,tableEvents:l}){const a=e.refreshable||e.exportable||t.slots.actions,n=!!(r!=null&&r.length)&&a;return a||n?()=>u.createVNode(u.Fragment,null,[n&&u.createVNode(C.Divider,{margin:0},null),a&&u.createVNode("div",{class:"table-actions",style:{display:"flex",justifyContent:"space-between",margin:"20px 0",flexDirection:e.actionsPosition==="right"?"row":"row-reverse",alignItems:"center"}},[u.createVNode("div",{class:"built-in"},[u.createVNode(C.Space,null,{default:()=>[e.refreshable&&u.createVNode(C.Button,{type:"primary",onClick:()=>l("reload")},{default:()=>[u.createTextVNode("刷新")]}),e.exportable&&u.createVNode(C.Button,{type:"primary",onClick:()=>l("export")},{default:()=>[u.createTextVNode("导出")]}),e.collapsable&&u.createVNode(C.Button,{type:"primary",onClick:()=>l("collapse")},{default:()=>[u.createTextVNode("显示")]})]})]),u.createVNode("div",{class:"customs"},[u.createVNode(C.Space,null,{default:()=>[t.slots.actions&&t.slots.actions()]})])])]):()=>{}}function Ot(e,t,{tableForm:r,tableEvents:l,formInstance:a}){return r!=null&&r.length?()=>u.createVNode("div",{class:"table-form"},[u.createVNode(ee.FormRender,u.mergeProps({form:r,ref:n=>a&&(a.value=n),searchable:!0,onSubmit:()=>l("reload",{reset:!0})},e.formOptions),{actions:t.slots["form-actions"]?()=>t.slots["form-actions"]():void 0})]):()=>{}}function jt(e,t,{tableSource:r}){const l=u.ref([]);function a(){l.value=[],t.emit("update:radio-key",null),t.emit("update:radio-row",null),t.emit("update:checkbox-keys",[]),t.emit("update:checkbox-rows",[])}function n(){u.nextTick(()=>{e.checkboxRows!==void 0&&(l.value=[...e.checkboxRows.map(i=>i[e.rowKey])]),e.checkboxKeys!==void 0&&(l.value=[...e.checkboxKeys]),e.radioKey&&(l.value=[e.radioKey]),e.radioRow&&(l.value=[e.radioRow[e.rowKey]])})}function c(){const i=typeof e.selection=="string"?{type:e.selection}:e.selection;switch(i==null?void 0:i.type){case"radio":return{title:"选择",width:80,selectedRowKeys:l.value,...i};case"checkbox":return{width:80,showCheckedAll:!0,selectedRowKeys:l.value,...i}}}function d(i,s,m){const{type:h}=c()||{};switch(h){case"radio":t.emit("update:radio-key",s),t.emit("update:radio-row",m);break;case"checkbox":t.emit("update:checkbox-keys",i),t.emit("update:checkbox-rows",i.map(g=>{var S;return r.value.find(x=>x[e.rowKey]===g)||((S=e.checkboxRows)==null?void 0:S.find(x=>x[e.rowKey]===g))}));break}}function f(){u.nextTick(()=>{t.emit("update:checkbox-keys",l.value),t.emit("update:checkbox-rows",l.value.map(i=>{var s;return r.value.find(m=>m[e.rowKey]===i)||((s=e.checkboxRows)==null?void 0:s.find(m=>m[e.rowKey]===i))}))})}return n(),{selectedRowKeys:l,rowSelection:c(),onSelect:d,onSelectAll:f,resetSelection:a,reloadSelection:n}}function $t(e,t,{pageService:r,tableEvents:l}){function a(d){r&&(r.pageIndex=d,l("reload"))}function n(d){r&&(r.pageSize=d,l("reload"))}const c=Je({mobile:0,tablet:640,desktop:1024});return r?()=>u.createVNode("div",{class:"table-pagination",style:{padding:"10px 0"}},[u.createVNode(C.Pagination,{current:r.pageIndex,"onUpdate:current":d=>r.pageIndex=d,"page-size":r.pageSize,"onUpdate:page-size":d=>r.pageSize=d,total:r.total,"page-size-options":r.pageSizeOpts,"hide-on-single-page":!e.alwayShowPagination,"show-total":!0,"show-page-size":!0,simple:c.smaller("desktop").value,onChange:d=>a(d),onPageSizeChange:d=>n(d),style:{justifyContent:"flex-end"}},null)]):()=>{}}const Rt=u.defineComponent({props:{collapsedColumns:{type:Array,required:!0}},setup(e){const t=O.useModal(),r=u.ref(e.collapsedColumns.map(a=>({label:a.title,value:a.key,disabled:!1}))),l=u.ref(e.collapsedColumns.filter(a=>a.collapsed).map(a=>a.key));return O.onSubmit(()=>{const a=e.collapsedColumns.map(n=>({key:n.key,title:n.title,collapsed:l.value.includes(n.key)}));t.close(a)}),()=>u.createVNode("div",{class:"table-collapsed-render"},[u.createVNode(C.Transfer,{data:r.value,"default-value":l.value,onChange:a=>l.value=[...a],title:["显示列","隐藏列"],style:{justifyContent:"center"}},{default:()=>[u.withDirectives(u.createVNode("template",null,null),[[u.resolveDirective("slot"),"source"]])]})])}}),Lt=u.defineComponent({props:{value:{type:Object,required:!0},form:{type:Array,required:!0},onSubmit:{type:Function,required:!1}},setup(e){const t=O.useModal();function r(l){e.onSubmit&&e.onSubmit(l),t.close(l)}return()=>u.createVNode("div",{class:"edit-form-container"},[u.createVNode(ee.FormRender,{name:"form",value:e.value,form:e.form,onSubmit:r},null)])}}),ae=u.defineComponent({props:{rowKey:{type:String,required:!0},form:{type:Object,required:!1},formOptions:{type:Object,required:!1},columns:{type:Object,required:!0},autoLoad:{type:Boolean,required:!1,default:!0},dataLoad:{type:Function,required:!1},height:{type:Number,required:!1},size:{type:String,required:!1,default:"large"},columnsOptions:{type:Object,required:!1},collapsable:{type:Boolean,required:!1,default:!1},selection:{type:[String,Object],required:!1},radioKey:{type:[String,Number],required:!1},checkboxKeys:{type:Array,required:!1},radioRow:{type:Object,required:!1},checkboxRows:{type:Array,required:!1},exportable:{type:[Boolean,Object],required:!1,default:!1},refreshable:{type:Boolean,required:!1},actionsPosition:{type:String,required:!1,default:"right"},pageable:{type:[Object,Boolean,String],required:!1,default:void 0},sortable:{type:[Object],required:!1},draggable:{type:Boolean,required:!1},hoverable:{type:Boolean,required:!1,default:!1},bordered:{type:Boolean,required:!1,default:!1},stripe:{type:Boolean,required:!1,default:!0},columnsGroups:{type:Array,required:!1,default:()=>[]},rowClass:{type:Function,required:!1},expandable:{type:Object,required:!1},grabbable:{type:Boolean,default:!0,required:!1},autoFill:{type:Boolean,default:!1,required:!1},alwayShowPagination:{type:Boolean,default:!1,required:!1}},expose:["preview","export","edit","reload","tableSource","formSource","update:radio-key","update:radio-row","update:checkbox-keys","update:checkbox-rows","formInstance","resetSelection","reloadSelection","reloadColumns","change"],setup(e,t){const r=Math.random().toString(32).slice(2).toUpperCase(),l=u.ref(),a=u.ref(),n=u.ref(),c=u.ref(),[d,f]=Ve(e.columns),i=u.ref(!1),s=e.form??Me(e.columns),m=S(),h=j(),g=u.ref(e.columns.map(o=>({key:o.key,title:o.title,collapsed:!!o.collapsed})));function S(){switch(!0){case(typeof e.pageable=="string"&&e.pageable==="server"):return new E;case(typeof e.pageable=="boolean"&&e.pageable===!0):return new E;case(typeof e.pageable=="object"&&!!e.pageable.reset):return e.pageable;case(typeof e.pageable=="object"&&(!!e.pageable.index||!!e.pageable.size)):return new E(e.pageable.index,e.pageable.size)}}const x=(()=>{switch(!0){case typeof e.pageable=="string":return e.pageable;case(e.pageable===void 0||e.pageable===!1):return"client";default:return"server"}})();function j(){const o=e.columns.find(b=>!!b.sortable);if(o||e.sortable)return new F({...e.sortable||{},...o?{[o.key]:o.sortable}:{}})}function w(o){const{exportExcel:b}=St();b((o==null?void 0:o.columns)||e.columns,(o==null?void 0:o.source)||d.value,(o==null?void 0:o.filename)||(typeof e.exportable=="object"?e.exportable.filename:void 0))}function y(o){let b;switch(!0){case!!(o!=null&&o.key):b=d.value.find(N=>N[e.rowKey]===(o==null?void 0:o.key));break;case!!(o!=null&&o.record):b=o==null?void 0:o.record;break}if(!b)throw new Error("未找到需要预览的数据");return n.value.open(Tt,{record:b,columns:e.columns},{title:(o==null?void 0:o.title)||"详情",mode:(o==null?void 0:o.mode)||"dialog"})}function v(o){let b;switch(!0){case!!(o!=null&&o.key):b=d.value.find(N=>N[e.rowKey]===(o==null?void 0:o.key));break;case!!(o!=null&&o.record):b=o==null?void 0:o.record;break}if(!b)throw new Error("未找到需要编辑的数据");return n.value.open(Lt,{value:b,form:o==null?void 0:o.form,onSubmit:o.onSubmit},{title:(o==null?void 0:o.title)||"编辑",mode:(o==null?void 0:o.mode)||"dialog",footer:!0,form:"form"})}function V(o){var W,U;if(!e.dataLoad)return Promise.reject();o!=null&&o.reset&&(m&&m.reset(),h&&h.reset(),(W=l.value)==null||W.resetSorters());const b={...((U=a.value)==null?void 0:U.formSource)||{}};Object.keys(b).forEach(G=>{[null,void 0,""].includes(b[G])&&delete b[G]});const N=e.dataLoad({form:b,page:m,sort:h,update:f});return q(N)?(i.value=!0,Promise.resolve(N).finally(()=>{i.value=!1}),N):Promise.resolve()}function le(){n.value.open(Rt,{collapsedColumns:g.value},{title:"显示列",size:"small",footer:!0}).then(o=>{g.value=o})}const ue=(o,{type:b})=>{switch(b){case"drag":{f(o),t.emit("change",o);break}}},$=te({reload:V,preview:y,export:w,edit:v,collapse:le});function ce(o,b){!h||x==="client"||(b?h.update(o,b==="descend"?"desc":"asc"):h.remove(o),$("reload"))}const I=u.ref(p({columns:e.columns,columnsOptions:e.columnsOptions,columnsGroups:e.columnsGroups,pageMode:x,collapsedColumns:g,events:$})),L={tableEvents:$,tableForm:s,tableSource:d,formInstance:a,pageService:m,formOptions:e.formOptions},de=Ot(e,t,L),ie=_t(e,t,L),oe=$t(e,t,L),{selectedRowKeys:H,rowSelection:K,onSelect:se,onSelectAll:fe,reloadSelection:me,resetSelection:he}=jt(e,t,L),ye=u.computed(()=>({rowKey:e.rowKey,size:e.size,bordered:e.bordered,hoverable:e.hoverable,stripe:e.stripe,scroll:{x:e.columns.reduce((o,b)=>o+=typeof b.width!="number"?Math.max(b.title.length*16,80):b.width,0),y:e.height??"100%"},rowSelection:K,draggable:e.draggable?{type:"handle",width:40}:void 0,pagination:e.pageable===void 0||e.pageable==="client",selectedKeys:H.value,expandable:e.expandable}));function be(){I.value=p({columns:e.columns,columnsOptions:e.columnsOptions,columnsGroups:e.columnsGroups,pageMode:x,collapsedColumns:g,events:$})}return u.onMounted(()=>{c.value&&(c.value.id=`table-${r}`),e.autoLoad&&V(),e.grabbable&&c.value&&Mt(c.value)}),{tableId:r,tableInstance:l,tableSource:d,tableOptions:ye,tableColumns:I,tableEvents:$,tableForm:s,tableLoading:i,modalInstance:n,tableRenderElement:c,formSource:u.readonly(u.computed(()=>{var o;return(o=a==null?void 0:a.value)==null?void 0:o.formSource})),formInstance:a,reload:V,preview:y,edit:v,export:w,onSorterChange:ce,onTableChange:ue,renders:{renderTableForm:de,renderTableActions:ie,renderTablePagination:oe},tableSelection:{selectedRowKeys:H,rowSelection:K,onSelect:se,onSelectAll:fe},resetSelection:he,reloadSelection:me,reloadColumns:be}},render(){this.reloadColumns();const e=()=>u.createVNode("div",{class:"table-body"},[u.createVNode("div",{class:"table-body-wrapper"},[u.createVNode(C.Table,u.mergeProps({loading:this.tableLoading,data:this.tableSource,columns:this.tableColumns,ref:t=>this.tableInstance=t,onSelect:this.tableSelection.onSelect,onSelectAll:this.tableSelection.onSelectAll,onChange:this.onTableChange,rowClass:this.rowClass,onSorterChange:this.onSorterChange,selectedKeys:this.tableSelection.selectedRowKeys.value,"onUpdate:selectedKeys":t=>this.tableSelection.selectedRowKeys.value=t},this.tableOptions),null)])]);return u.createVNode("div",{class:{"table-render":!0,"auto-fill":this.autoFill},ref:t=>this.tableRenderElement=t},[u.createVNode(O.ModalProvider,{ref:t=>this.modalInstance=t},{default:()=>[u.createVNode("div",{class:"table-render-content"},[this.renders.renderTableForm(),this.renders.renderTableActions(),this.$slots.header&&this.$slots.header(),e(),this.renders.renderTablePagination()])]})])}});function qt(e){return e}function Pt(e){return e}const Et={install(e,t){e.component("TableRender",ae)}};exports.TableRenderResolver=Ce.TableRenderResolver;exports.TableRender=ae;exports.default=Et;exports.defineColumns=qt;exports.defineTableLoad=Pt;exports.useEvents=te;exports.useTable=Ne;
1
+ "use strict";var ge=Object.defineProperty;var we=(e,t,r)=>t in e?ge(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var T=(e,t,r)=>(we(e,typeof t!="symbol"?t+"":t,r),r);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("vue"),C=require("@arco-design/web-vue"),O=require("@gopowerteam/modal-render"),ve=require("exceljs"),P=require("dayjs"),ee=require("@gopowerteam/form-render"),Ce=require("./resolver.cjs");function ke(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const l=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,l.get?l:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const xe=ke(ve);function Se(e,t,r){const[l,...a]=t.index?t.index.split(".").reverse():[t.key],n=a.reverse().reduce((c,d)=>c==null?void 0:c[d],e);n[l]=r}function Ve(e){const t=u.ref([]),r=a=>{const n=e.filter(c=>c.formatter);return n.length>0?a.map(c=>(n.forEach(d=>{d.formatter&&Se(c,d,d.formatter(c))}),c)):a};return[t,a=>{t.value=r(a)}]}function Me(e){return e.filter(t=>t.form).map(t=>({key:t.key,title:t.title,...typeof t.form=="boolean"?{}:t.form}))}function Ne(e){const t=u.getCurrentInstance(),r=u.ref();function l(){var n,c;const a=(c=(n=t==null?void 0:t.proxy)==null?void 0:n.$refs)==null?void 0:c[e];a&&(r.value=a)}return u.onMounted(l),u.onUpdated(l),r}function te(e){return(t,r)=>e[t](r)}class E{constructor(t=1,r=10){T(this,"data",u.reactive({index:1,size:10,total:0}));T(this,"pageSizeOpts",[10,20,30,40,50]);T(this,"pageLayouts",["PrevJump","PrevPage","JumpNumber","NextPage","NextJump","Sizes","FullJump","Total"]);this.pageIndex=t,this.pageSize=r}get pageIndex(){return this.data.index}set pageIndex(t){this.data.index=t}get pageSize(){return this.data.size}set pageSize(t){this.data.size=t}get total(){return this.data.total}set total(t){this.data.total=t}reset(){this.pageIndex=1}before(t){t.paramsQuery={...t.paramsQuery,page:this.pageIndex-1,size:this.pageSize}}after(t){var r;this.total=(r=t.data)==null?void 0:r.totalElements}}const Te=Symbol.for("RenderColumnType");function k(e,t,r){return t.$type=e,t.$disableColumnMode=r==null?void 0:r.disableColumnMode,t.$disableViewMode=r==null?void 0:r.disableViewMode,t}function M(e,t){return t.index?t.index.split(".").reduce((r,l)=>r==null?void 0:r[l],e):[t.key].reduce((r,l)=>r==null?void 0:r[l],e)}function q(e){return!!e&&(typeof e=="object"||typeof e=="function")&&typeof e.then=="function"}function _e(e){return k("button",(r,l,a)=>{const n=O.useModal(),c=Array.isArray(e)?e:"buttons"in e?e.buttons:[e],d=(i,s)=>typeof i=="function"?i(r):i===void 0?s:i;async function f(i){if(await(i.confirm===!0?new Promise(m=>{n.confirm({title:"提示信息",content:i.confirmText??"您确定要执行该操作?",onOk:()=>m(!0),onCancel:()=>m(!1)})}):Promise.resolve(!0))&&(i!=null&&i.onClick)){const m=i.onClick(r);q(m)&&i.autoReload!==!1&&m.then(()=>{a!=null&&a.emits&&(a==null||a.emits("reload"))}),!q(m)&&i.autoReload===!0&&a!=null&&a.emits&&(a==null||a.emits("reload"))}}return u.createVNode(u.Fragment,null,[c.filter(i=>d(i.visiable,!0)).map(i=>u.createVNode(C.Button,{onClick:()=>f(i),type:i.type||"text",shape:i.shape,size:"mini",disabled:d(i.disabled,!1)},{icon:i.icon?()=>i.icon(r):void 0,default:()=>(typeof i.content=="function"?i.content(r):i.content)||""}))])},{disableViewMode:!0})}const Oe={thousands:!0,inputUnit:"元",outputUnit:"元"},Z={分:10**0,元:10**2,万:10**6};function je(e){e={...Oe,...e||{}};const t=n=>{if(n==null)return;if((e==null?void 0:e.inputUnit)===(e==null?void 0:e.outputUnit))return n;const c=Z[e.inputUnit]/Z[e.outputUnit],d=parseFloat((n*c).toFixed(10));return(e==null?void 0:e.precision)===void 0?d:d.toFixed(e==null?void 0:e.precision)},r=n=>{if(n==null)return;const c=n.toString().split(".");return c[0]=c[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),c.join(".")},l=n=>{if((e==null?void 0:e.zeroString)!==void 0&&Number(n)===0)return e==null?void 0:e.zeroString;if((e==null?void 0:e.nullString)!==void 0&&isNaN(Number(n)))return e==null?void 0:e.nullString;const c=t(Number(n));return e!=null&&e.thousands?r(c):c};return k("dict",(n,c)=>{const d=M(n,c);return u.createVNode("div",null,[typeof(e==null?void 0:e.prefix)=="string"?u.createVNode("span",null,[e.prefix]):typeof(e==null?void 0:e.prefix)=="function"?u.createVNode("span",null,[e.prefix()]):void 0,u.createVNode("span",{class:"currency_value"},[l(d)]),typeof(e==null?void 0:e.suffix)=="string"?u.createVNode("span",null,[e.suffix]):typeof(e==null?void 0:e.suffix)=="function"?u.createVNode("span",null,[e.suffix()]):void 0])})}var Le=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},$e={exports:{}};(function(e,t){(function(r,l){e.exports=l(P)})(Le,function(r){function l(c){return c&&typeof c=="object"&&"default"in c?c:{default:c}}var a=l(r),n={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(c,d){return d==="W"?c+"周":c+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(c,d){var f=100*c+d;return f<600?"凌晨":f<900?"早上":f<1100?"上午":f<1300?"中午":f<1800?"下午":"晚上"}};return a.default.locale(n,null,!0),n})})($e);P.locale("zh-cn");const Re={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",time:"HH:mm:ss",week:"ddd"};function qe(e){return k("date",(r,l)=>{const a=M(r,l),n=typeof(e==null?void 0:e.format)=="function"?e==null?void 0:e.format():Re[(e==null?void 0:e.format)||"datetime"],c=P(a);return u.createVNode("span",null,[c.isValid()&&c.format(n)])})}const Pe={success:"arcoblue",warning:"orange",error:"red"};function Ee(e){return e instanceof Map?e:e.dict}function ze(e){const t=e instanceof Map?!1:e.tag;return typeof t=="string"?Pe[t]:t}function Ye(e){const t=Ee(e),r=ze(e);return k("dict",(a,n)=>{const c=M(a,n);return r?u.createVNode(C.Tag,{color:r===!0?void 0:r},{default:()=>[t.get(c)||c]}):u.createVNode("span",null,[t.get(c)||c])})}function Ae(e){const t=O.useModal();async function r(a,n){a.confirm&&!await new Promise((d,f)=>{t.open("confirm",{title:"确认",content:a.confirmText||"是否确认执行该操作?",onOk:()=>d(!0),onCancel:()=>d(!1)})})||a.onClick(n)}return k("dropdown",(a,n)=>{const c=e.options.filter(d=>typeof d.visiable=="function"?d.visiable(a):d.visiable!==!1);return u.createVNode(C.Dropdown,{trigger:(e==null?void 0:e.trigger)||"click"},{default:()=>u.createVNode(C.Button,{disabled:c.length===0,type:"text"},{default:()=>[(e==null?void 0:e.content)||"操作"]}),content:()=>c.map(d=>u.createVNode(C.Dropdown.Option,{onClick:()=>r(d,a)},{default:()=>[typeof d.content=="function"?d.content(a):d.content]}))})})}const Be={size:30};function De(e){e={...Be,...e||{}};function t(){}return k("image",(l,a)=>{const n=M(l,a),c=Math.random().toString(32).slice(2).toUpperCase(),d={maxWidth:"100%",maxHeight:"100%",borderRadius:e==null?void 0:e.radius,objectFit:"contain",transform:`rotate(${(e==null?void 0:e.rotate)||0}deg)`,cursor:e!=null&&e.preview?"zoom-in":"unset"},f=`${a.index||a.key}_parsed`;if(e!=null&&e.parse){const i=e==null?void 0:e.parse(n,l);q(i)?i.then(s=>l[f]=s??""):l[f]=i??""}if(e!=null&&e.parse&&!l[f]===void 0)return u.createVNode("div",null,[u.createTextVNode("Loading...")]);{const i=l[f]||n;return i?u.createVNode("div",{id:c,onClick:t,style:{display:"flex",justifyContent:"center",alignItems:"center",height:`${e==null?void 0:e.size}px`}},[u.createVNode("img",{alt:"image",style:d,src:i},null)]):u.createVNode(u.Fragment,null,null)}})}function z(e){return u.getCurrentScope()?(u.onScopeDispose(e),!0):!1}function _(e){return typeof e=="function"?e():u.unref(e)}const Y=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Fe=Object.prototype.toString,Ie=e=>Fe.call(e)==="[object Object]",He=()=>{};function Ke(e){let t;function r(){return t||(t=e()),t}return r.reset=async()=>{const l=t;t=void 0,l&&await l},r}function We(e,t){var r;if(typeof e=="number")return e+t;const l=((r=e.match(/^-?\d+\.?\d*/))==null?void 0:r[0])||"",a=e.slice(l.length),n=Number.parseFloat(l)+t;return Number.isNaN(n)?e:n+a}function Ue(e,t,r={}){const{immediate:l=!0}=r,a=u.ref(!1);let n=null;function c(){n&&(clearTimeout(n),n=null)}function d(){a.value=!1,c()}function f(...i){c(),a.value=!0,n=setTimeout(()=>{a.value=!1,n=null,e(...i)},_(t))}return l&&(a.value=!0,Y&&f()),z(d),{isPending:u.readonly(a),start:f,stop:d}}function Ge(e){var t;const r=_(e);return(t=r==null?void 0:r.$el)!=null?t:r}const A=Y?window:void 0,re=Y?window.navigator:void 0;function ne(...e){let t,r,l,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([r,l,a]=e,t=A):[t,r,l,a]=e,!t)return He;Array.isArray(r)||(r=[r]),Array.isArray(l)||(l=[l]);const n=[],c=()=>{n.forEach(s=>s()),n.length=0},d=(s,m,h,g)=>(s.addEventListener(m,h,g),()=>s.removeEventListener(m,h,g)),f=u.watch(()=>[Ge(t),_(a)],([s,m])=>{if(c(),!s)return;const h=Ie(m)?{...m}:m;n.push(...r.flatMap(g=>l.map(S=>d(s,g,S,h))))},{immediate:!0,flush:"post"}),i=()=>{f(),c()};return z(i),i}function Ze(){const e=u.ref(!1),t=u.getCurrentInstance();return t&&u.onMounted(()=>{e.value=!0},t),e}function B(e){const t=Ze();return u.computed(()=>(t.value,!!e()))}function $(e,t={}){const{window:r=A}=t,l=B(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let a;const n=u.ref(!1),c=i=>{n.value=i.matches},d=()=>{a&&("removeEventListener"in a?a.removeEventListener("change",c):a.removeListener(c))},f=u.watchEffect(()=>{l.value&&(d(),a=r.matchMedia(_(e)),"addEventListener"in a?a.addEventListener("change",c):a.addListener(c),n.value=a.matches)});return z(()=>{f(),d(),a=void 0}),n}function Je(e,t={}){function r(s,m){let h=_(e[_(s)]);return m!=null&&(h=We(h,m)),typeof h=="number"&&(h=`${h}px`),h}const{window:l=A,strategy:a="min-width"}=t;function n(s){return l?l.matchMedia(s).matches:!1}const c=s=>$(()=>`(min-width: ${r(s)})`,t),d=s=>$(()=>`(max-width: ${r(s)})`,t),f=Object.keys(e).reduce((s,m)=>(Object.defineProperty(s,m,{get:()=>a==="min-width"?c(m):d(m),enumerable:!0,configurable:!0}),s),{});function i(){const s=Object.keys(e).map(m=>[m,c(m)]);return u.computed(()=>s.filter(([,m])=>m.value).map(([m])=>m))}return Object.assign(f,{greaterOrEqual:c,smallerOrEqual:d,greater(s){return $(()=>`(min-width: ${r(s,.1)})`,t)},smaller(s){return $(()=>`(max-width: ${r(s,-.1)})`,t)},between(s,m){return $(()=>`(min-width: ${r(s)}) and (max-width: ${r(m,-.1)})`,t)},isGreater(s){return n(`(min-width: ${r(s,.1)})`)},isGreaterOrEqual(s){return n(`(min-width: ${r(s)})`)},isSmaller(s){return n(`(max-width: ${r(s,-.1)})`)},isSmallerOrEqual(s){return n(`(max-width: ${r(s)})`)},isInBetween(s,m){return n(`(min-width: ${r(s)}) and (max-width: ${r(m,-.1)})`)},current:i,active(){const s=i();return u.computed(()=>s.value.length===0?"":s.value.at(-1))}})}function J(e,t={}){const{controls:r=!1,navigator:l=re}=t,a=B(()=>l&&"permissions"in l);let n;const c=typeof e=="string"?{name:e}:e,d=u.ref(),f=()=>{n&&(d.value=n.state)},i=Ke(async()=>{if(a.value){if(!n)try{n=await l.permissions.query(c),ne(n,"change",f),f()}catch{d.value="prompt"}return n}});return i(),r?{state:d,isSupported:a,query:i}:d}function Qe(e={}){const{navigator:t=re,read:r=!1,source:l,copiedDuring:a=1500,legacy:n=!1}=e,c=B(()=>t&&"clipboard"in t),d=J("clipboard-read"),f=J("clipboard-write"),i=u.computed(()=>c.value||n),s=u.ref(""),m=u.ref(!1),h=Ue(()=>m.value=!1,a);function g(){c.value&&w(d.value)?t.clipboard.readText().then(y=>{s.value=y}):s.value=j()}i.value&&r&&ne(["copy","cut"],g);async function S(y=_(l)){i.value&&y!=null&&(c.value&&w(f.value)?await t.clipboard.writeText(y):x(y),s.value=y,m.value=!0,h.start())}function x(y){const v=document.createElement("textarea");v.value=y??"",v.style.position="absolute",v.style.opacity="0",document.body.appendChild(v),v.select(),document.execCommand("copy"),v.remove()}function j(){var y,v,V;return(V=(v=(y=document==null?void 0:document.getSelection)==null?void 0:y.call(document))==null?void 0:v.toString())!=null?V:""}function w(y){return y==="granted"||y==="prompt"}return{isSupported:i,text:s,copied:m,copy:S}}const Xe=" ";function pe(e){return e==null?void 0:e.replace(/(\d{3})\d*(\d{4})/g,"$1****$2")}function Q(e,t){return e==null?void 0:e.replace(/\*/g,"M").replace(/\B(?=(?:\S{4})+$)/g,t??Xe).replace(/M/g,"*")}function et(e){const t=Qe();return k("phone",(l,a)=>{const n=`phone_${Math.random().toString(36).slice(2)}`,c="__table__column_phone__",d=M(l,a),f=16,i=`cursor:pointer;width:${f}px;height:${f}px;`,s=Q(pe(d),e==null?void 0:e.separator),m=Q(d,e==null?void 0:e.separator);function h(){window.focus(),t.copy(d).then(()=>{C.Message.success({content:"复制成功",duration:1e3})})}function g(){const w=document.querySelectorAll(`.${c}.content`);w.length>0&&w.forEach(y=>{const v=y;if(v.innerText.includes("****"))return;v.innerText=v.dataset.encrypt;const V=v.nextSibling;!V||!V.classList.contains("preview-icon")||(V.innerHTML=`<svg width="${f}" height="${f}" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M24 36C35.0457 36 44 24 44 24C44 24 35.0457 12 24 12C12.9543 12 4 24 4 24C4 24 12.9543 36 24 36Z" fill="none" stroke="#333" stroke-width="2" stroke-linejoin="round"/><path d="M24 29C26.7614 29 29 26.7614 29 24C29 21.2386 26.7614 19 24 19C21.2386 19 19 21.2386 19 24C19 26.7614 21.2386 29 24 29Z" fill="none" stroke="#333" stroke-width="4" stroke-linejoin="round"/></svg>`)})}function S(w){const y=document.querySelector(`#${n}>.preview-icon`);y&&(w?y.innerHTML=`<svg width="${f}" height="${f}" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M24 36C35.0457 36 44 24 44 24C44 24 35.0457 12 24 12C12.9543 12 4 24 4 24C4 24 12.9543 36 24 36Z" fill="none" stroke="#333" stroke-width="2" stroke-linejoin="round"/><path d="M24 29C26.7614 29 29 26.7614 29 24C29 21.2386 26.7614 19 24 19C21.2386 19 19 21.2386 19 24C19 26.7614 21.2386 29 24 29Z" fill="none" stroke="#333" stroke-width="4" stroke-linejoin="round"/></svg>`:y.innerHTML=`<svg width="${f}" height="${f}" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 16C6.63472 17.2193 7.59646 18.3504 8.82276 19.3554C12.261 22.1733 17.779 24 24 24C30.221 24 35.739 22.1733 39.1772 19.3554C40.4035 18.3504 41.3653 17.2193 42 16" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/><path d="M28.9775 24L31.048 31.7274" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/><path d="M37.3535 21.3536L43.0103 27.0104" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/><path d="M5.00004 27.0103L10.6569 21.3534" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/><path d="M16.9278 31.7276L18.9983 24.0001" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/></svg>`)}function x(){const w=document.querySelector(`#${n}>.content`),y=!!(w!=null&&w.innerHTML.includes("****"));y?(g(),w&&(w.innerHTML=m)):w&&(w.innerHTML=s),S(!y)}function j(){window.open(`tel:${d}`,"_blank")}return u.createVNode("div",{id:n,style:"display:flex;align-items:center;gap:4px;"},[u.createVNode("div",{"data-encrypt":s,class:`${c} content`,style:"use-select:none;font-family: monospace;cursor:pointer;font-variant-numeric: tabular-nums;padding-right: 2px;"},[e!=null&&e.safe?s:m]),(e==null?void 0:e.safe)&&(e==null?void 0:e.allowPreview)&&u.createVNode("i",{class:"preview-icon",title:"显示完整号码",style:i,onClick:x},[u.createVNode("svg",{width:f,height:f,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[u.createVNode("path",{d:"M24 36C35.0457 36 44 24 44 24C44 24 35.0457 12 24 12C12.9543 12 4 24 4 24C4 24 12.9543 36 24 36Z",fill:"none",stroke:"#333","stroke-width":"2","stroke-linejoin":"round"},null),u.createVNode("path",{d:"M24 29C26.7614 29 29 26.7614 29 24C29 21.2386 26.7614 19 24 19C21.2386 19 19 21.2386 19 24C19 26.7614 21.2386 29 24 29Z",fill:"none",stroke:"#333","stroke-width":"4","stroke-linejoin":"round"},null)])]),(e==null?void 0:e.allowDial)&&u.createVNode("i",{style:i,title:"拨出号码",onClick:j},[u.createVNode("svg",{width:f,height:f,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[u.createVNode("path",{d:"M41.7796 20.6066C42.0324 18.9108 41.9495 17.1747 41.5309 15.5054C40.978 13.3002 39.8392 11.2118 38.1147 9.4873C36.3902 7.76281 34.3018 6.62409 32.0967 6.07115C30.4274 5.65257 28.6912 5.56967 26.9954 5.82245",stroke:"#333","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null),u.createVNode("path",{d:"M34.1896 19.8035C34.4604 17.9869 33.8966 16.0699 32.4982 14.6715C31.0997 13.2731 29.1827 12.7092 27.3662 12.98",stroke:"#333","stroke-width":"4","stroke-linecap":"round","stroke-linejoin":"round"},null),u.createVNode("path",{d:"M14.3755 8.79423C15.1021 8.79423 15.7715 9.18825 16.1241 9.82349L18.5706 14.2303C18.8909 14.8073 18.9059 15.5052 18.6108 16.0955L16.254 20.8091C16.254 20.8091 16.937 24.3206 19.7954 27.179C22.6538 30.0374 26.1535 30.7086 26.1535 30.7086L30.8664 28.3522C31.4571 28.0568 32.1555 28.0721 32.7327 28.393L37.152 30.85C37.7866 31.2028 38.1802 31.8719 38.1802 32.598L38.1802 37.6715C38.1802 40.2552 35.7803 42.1213 33.3322 41.2952C28.3043 39.5987 20.4996 36.3685 15.5528 31.4216C10.6059 26.4748 7.3757 18.6701 5.67916 13.6422C4.85314 11.1941 6.71923 8.79423 9.30288 8.79423L14.3755 8.79423Z",fill:"none",stroke:"#333","stroke-width":"4","stroke-linejoin":"round"},null)])]),(e==null?void 0:e.allowCopy)&&u.createVNode("i",{style:i,title:"复制号码",onClick:h},[u.createVNode("svg",{width:f,height:f,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[u.createVNode("path",{d:"M13 12.4316V7.8125C13 6.2592 14.2592 5 15.8125 5H40.1875C41.7408 5 43 6.2592 43 7.8125V32.1875C43 33.7408 41.7408 35 40.1875 35H35.5163",stroke:"#333","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null),u.createVNode("path",{d:"M32.1875 13H7.8125C6.2592 13 5 14.2592 5 15.8125V40.1875C5 41.7408 6.2592 43 7.8125 43H32.1875C33.7408 43 35 41.7408 35 40.1875V15.8125C35 14.2592 33.7408 13 32.1875 13Z",fill:"none",stroke:"#333","stroke-width":"4","stroke-linejoin":"round"},null)])])])})}function tt(e){return k("render",r=>e(r))}function rt(e){return k("tag",(r,l)=>{const a=(e==null?void 0:e.maxCount)||5,n=e!=null&&e.formatter?e.formatter(r):M(r,l),c=(e==null?void 0:e.textColors)||["#F87335"],d=(e==null?void 0:e.backgroundColors)||["#FFF4E8"],f=n.length>a,i=e==null?void 0:e.minWidth;return u.createVNode("div",{style:{display:"flex",flexWrap:"wrap"}},[n.slice(0,a).map((s,m)=>{const h=typeof c=="function"?c(s,m):c[m%c.length],g=typeof d=="function"?d(s,m):d[m%d.length];return u.createVNode("span",{style:{minWidth:i?`${i}px`:"unset",textAlign:"center",margin:"2px",padding:"2px 5px",border:`solid 2px ${e!=null&&e.border?h:"transparent"}`,borderRadius:`${(e==null?void 0:e.radius)||0}px`,color:h,backgroundColor:g}},[s])}),f&&"..."])})}function X(e){if(typeof e=="string")return e;if(typeof e=="number")return`${e}px`}function nt(e,t,r){var l,a;return typeof e=="function"?(l=e(r))==null?void 0:l.toString():typeof(e==null?void 0:e.content)=="function"?(a=e==null?void 0:e.content(r))==null?void 0:a.toString():typeof(e==null?void 0:e.content)=="string"?e==null?void 0:e.content:M(r,t)}function at(e,t){if(typeof e!="function"){if(typeof(e==null?void 0:e.color)=="function")return e==null?void 0:e.color(t);if(typeof(e==null?void 0:e.color)=="string")return e==null?void 0:e.color}}function lt(e,t){if(typeof e!="function")return typeof(e==null?void 0:e.size)=="function"?X(e==null?void 0:e.size(t)):X(e==null?void 0:e.size)}function ut(e,t){let r="";const l=at(e,t),a=lt(e,t);return l&&(r+=`color:${l};`),a&&(r+=`font-size:${a};`),r}function ct(e){return k("text",(r,l)=>{const a=nt(e||{},l,r),n=ut(e||{},r);return u.createVNode("span",{style:n},[a])})}function dt(e){const t=(e==null?void 0:e.backgroundColor)??"#f5f5f5",r=(e==null?void 0:e.foregroundColor)??"#1677ff",l=(e==null?void 0:e.showText)??!0,a=(e==null?void 0:e.textColor)??"#000";return k("progress",(c,d)=>{var h;const f=M(c,d),i=(e==null?void 0:e.precision)??0,s=Math.min(Math.max(((h=e==null?void 0:e.format)==null?void 0:h.call(e,f))??f,0),1),m=l?`${(s*100).toFixed(i)}%`:"";return u.createVNode("div",{style:`background-color:${t};position:relative;min-height: 20px;text-align: center;border-radius: 2px;overflow:hidden;`},[u.createVNode("div",{style:`background-color: ${r};position:absolute;left:0;top:0;right;0;width: ${m};height: 100%;`},null),l&&u.createVNode("div",{style:`position:absolute;inset:0;display:flex;justify-content:center;align-items:center;color:${a}`},[m])])})}function it(e){return k("serial",(r,l,a)=>{const n={color:typeof(e==null?void 0:e.color)=="function"?e.color(r):e==null?void 0:e.color,fontWeight:(e==null?void 0:e.weight)||"normal",textAlign:"center"};return u.createVNode("div",{style:n},[a.rowIndex+1])},{disableViewMode:!0})}function ot(){return{dropdown:Ae,text:ct,dict:Ye,tag:rt,render:tt,phone:et,image:De,currency:je,date:qe,button:_e,progress:dt,serial:it}}function D(e,t){if(!(e!=null&&e.render))return;const r=e.render({...ot()});return{render:({record:l,rowIndex:a})=>r(l,e,{...t||{},rowIndex:a}),[Te]:r.$type,disableColumnMode:r.$disableColumnMode,disableViewMode:r.$disableViewMode,isRender:r.$type==="render",type:r.$type}}function p({columns:e,columnsOptions:t,columnsGroups:r,pageMode:l,collapsedColumns:a,events:n}){const c=e.map(d=>({...t||{},...d})).map(d=>mt(d,l,a,n)).filter(Boolean);return ft(c,r)}function st(e,t){const r=[],l=n=>{if("children"in n&&(n.children=n.children.map(l)),"key"in n){const c=t.find(d=>{var f;return((f=Object.getOwnPropertyDescriptor(d,"key"))==null?void 0:f.value)===n.key});if(c)return r.push(c),c}return n},a=l(e);if(r!=null&&r.length&&a){const n=Math.min(...r.map(c=>t.indexOf(c)));r.forEach(c=>{const d=t.indexOf(c);t.splice(d,1)}),t.splice(n,0,a)}}function ft(e,t=[]){return t.forEach(r=>{st(r,e)}),e}function mt(e,t,r,l){const{render:a,disableColumnMode:n}=D(e,{previewing:!1,emits:l})||{};if(!(n||e.visiable===!1)&&!(typeof e.visiable=="function"&&e.visiable()===!1)&&!r.value.find(c=>c.key===e.key&&c.collapsed===!0))return{dataIndex:e.index||e.key,title:e.title,width:e.width==="auto"?void 0:e.width,align:e.align??"center",fixed:e.fixed,ellipsis:e.ellipsis??!0,sortable:e.sortable?{sorter:t==="server",sortDirections:["ascend","descend"],defaultSortOrder:e.sortable==="asc"?"ascend":"descend"}:void 0,tooltip:!0,...e.extraProps,key:e.key,render:a}}function ht(){return new xe.Workbook}function yt(e,t="Sheet1"){return e.addWorksheet(t,{headerFooter:{firstHeader:"",firstFooter:""}})}function bt(e,t){e.columns=t}function gt(e,t){e.addRows(t)}async function wt({columns:e,rows:t,filename:r}){const l=ht(),a=yt(l);bt(a,e),gt(a,t);const n=await l.xlsx.writeBuffer(),c=new Blob([n]);vt(c,r||`${P().format("YYYY-MM-DD HH:mm:ss")}.xlsx`)}function vt(e,t){const r=document.createElement("a");r.download=t||"download",r.href=URL.createObjectURL(e),r.click(),setTimeout(()=>{URL.revokeObjectURL(r.href)},1e3)}function Ct(e,t){const r={};return e.filter(a=>a.exportable!==!1).map(a=>({options:a,render:D(a),content:typeof a.exportable=="object"?a.exportable.content:void 0})).forEach(a=>{var d;const n=(d=a.render)==null?void 0:d.render,c=()=>{var f;switch(!0){case!!a.content:return a.content&&a.content(t);case!!n:{const i=document.createElement("div"),s=u.h(()=>n&&n({record:t}));return u.render(s,i),(f=s.el)==null?void 0:f.innerText}default:return M(t,a.options)}};r[a.options.key]=c()}),r}function kt(e){switch(!0){case typeof e=="number":return e/6;case(typeof e=="string"&&e.endsWith("px")):return parseInt(e.replace("px",""))/6;default:return 30}}function xt(e,t,r){const l=e.filter(n=>n.exportable!==!1).map(n=>{var c,d;return{key:n.key,header:((c=n.exportable)==null?void 0:c.header)||n.title,width:((d=n.exportable)==null?void 0:d.width)||kt(n.width)}}),a=t.map(n=>Ct(e,n));wt({columns:l,rows:a,filename:r})}function St(){return{exportExcel:xt}}class F{constructor(t){T(this,"sort",{});T(this,"defaultSort",{});T(this,"before",t=>{t.paramsQuery={...t.paramsQuery||{},sort:this.stringify(this.sort)}});t&&(this.sort=t,this.defaultSort=t)}update(t,r){t&&r&&(this.sort[t]=r)}remove(t){const r=Object.entries(this.sort).filter(([l])=>l!==t);this.sort={},r&&r.forEach(([l,a])=>{this.sort[l]=a})}reset(){this.sort=this.defaultSort||{}}stringify(t){return typeof t!="object"?[]:(t instanceof F&&(t=t.sort),Object.entries(t).map(([r,l])=>`${r},${l}`))}}const Vt=300;function Mt(e){const t=e,r=t==null?void 0:t.querySelector(".arco-scrollbar-container.arco-table-body");if(!r)return;let l,a=!1,n;r.addEventListener("mousedown",()=>{l=setTimeout(()=>{l&&(r.style.cursor="grab",r.style.userSelect="none",a=!0)},Vt)}),r.addEventListener("mouseup",()=>{clearTimeout(l),l&&(l=void 0,a=!1,r.style.cursor="",r.style.userSelect="",n=void 0)}),r.addEventListener("mousemove",c=>{if(a)if(n===void 0)n=c.clientX;else{const d=n-c.clientX;n=c.clientX,r.scrollLeft+=d}})}function Nt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!u.isVNode(e)}const Tt=u.defineComponent({props:{record:{type:Object,required:!0},columns:{type:Array,required:!0},minWidth:{type:Number,required:!1,default:320},border:{type:Boolean,default:!0},exclude:{type:Array,default:()=>[]},layout:{type:String,required:!1,default:"horizontal"},buttons:{type:Array,default:()=>[]}},setup(e){const t=u.getCurrentInstance(),r=u.ref(0),l=e.columns.filter(n=>typeof n.visiable=="boolean"?n.visiable:typeof n.visiable=="function"?n.visiable():!0).map(n=>({options:n,renderer:D(n,{previewing:!0})})).filter(({options:n})=>{var c;return!((c=e.exclude)!=null&&c.includes(n.key))}).filter(({renderer:n})=>!(n!=null&&n.disableViewMode));function a(){var n;if(t){const c=(n=t.proxy)==null?void 0:n.$el;r.value=Math.floor(c.offsetWidth/e.minWidth)}}return u.onMounted(()=>{a()}),()=>{let n;return u.createVNode("div",{class:"preview-container"},[u.createVNode(C.Descriptions,{column:r.value,bordered:!0,align:"left",layout:e.layout},Nt(n=l.map(c=>u.createVNode(C.DescriptionsItem,{label:c.options.title},{default:()=>{var d,f;return[(d=c.renderer)!=null&&d.render?(f=c.renderer)==null?void 0:f.render({record:e.record}):M(e.record,c.options)]}})))?n:{default:()=>[n]})])}}});function _t(e,t,{tableForm:r,tableEvents:l}){const a=e.refreshable||e.exportable||t.slots.actions,n=!!(r!=null&&r.length)&&a;return a||n?()=>u.createVNode(u.Fragment,null,[n&&u.createVNode(C.Divider,{margin:0},null),a&&u.createVNode("div",{class:"table-actions",style:{display:"flex",justifyContent:"space-between",margin:"20px 0",flexDirection:e.actionsPosition==="right"?"row":"row-reverse",alignItems:"center"}},[u.createVNode("div",{class:"built-in"},[u.createVNode(C.Space,null,{default:()=>[e.refreshable&&u.createVNode(C.Button,{type:"primary",onClick:()=>l("reload")},{default:()=>[u.createTextVNode("刷新")]}),e.exportable&&u.createVNode(C.Button,{type:"primary",onClick:()=>l("export")},{default:()=>[u.createTextVNode("导出")]}),e.collapsable&&u.createVNode(C.Button,{type:"primary",onClick:()=>l("collapse")},{default:()=>[u.createTextVNode("显示")]})]})]),u.createVNode("div",{class:"customs"},[u.createVNode(C.Space,null,{default:()=>[t.slots.actions&&t.slots.actions()]})])])]):()=>{}}function Ot(e,t,{tableForm:r,tableEvents:l,formInstance:a}){return r!=null&&r.length?()=>u.createVNode("div",{class:"table-form"},[u.createVNode(ee.FormRender,u.mergeProps({form:r,ref:n=>a&&(a.value=n),searchable:!0,onSubmit:()=>l("reload",{reset:!0})},e.formOptions),{actions:t.slots["form-actions"]?()=>t.slots["form-actions"]():void 0})]):()=>{}}function jt(e,t,{tableSource:r}){const l=u.ref([]);function a(){l.value=[],t.emit("update:radio-key",null),t.emit("update:radio-row",null),t.emit("update:checkbox-keys",[]),t.emit("update:checkbox-rows",[])}function n(){u.nextTick(()=>{e.checkboxRows!==void 0&&(l.value=[...e.checkboxRows.map(i=>i[e.rowKey])]),e.checkboxKeys!==void 0&&(l.value=[...e.checkboxKeys]),e.radioKey&&(l.value=[e.radioKey]),e.radioRow&&(l.value=[e.radioRow[e.rowKey]])})}function c(){const i=typeof e.selection=="string"?{type:e.selection}:e.selection;switch(i==null?void 0:i.type){case"radio":return{title:"选择",width:80,selectedRowKeys:l.value,...i};case"checkbox":return{width:80,showCheckedAll:!0,selectedRowKeys:l.value,...i}}}function d(i,s,m){const{type:h}=c()||{};switch(h){case"radio":t.emit("update:radio-key",s),t.emit("update:radio-row",m);break;case"checkbox":t.emit("update:checkbox-keys",i),t.emit("update:checkbox-rows",i.map(g=>{var S;return r.value.find(x=>x[e.rowKey]===g)||((S=e.checkboxRows)==null?void 0:S.find(x=>x[e.rowKey]===g))}));break}}function f(){u.nextTick(()=>{t.emit("update:checkbox-keys",l.value),t.emit("update:checkbox-rows",l.value.map(i=>{var s;return r.value.find(m=>m[e.rowKey]===i)||((s=e.checkboxRows)==null?void 0:s.find(m=>m[e.rowKey]===i))}))})}return n(),{selectedRowKeys:l,rowSelection:c(),onSelect:d,onSelectAll:f,resetSelection:a,reloadSelection:n}}function Lt(e,t,{pageService:r,tableEvents:l}){function a(d){r&&(r.pageIndex=d,l("reload"))}function n(d){r&&(r.pageSize=d,l("reload"))}const c=Je({mobile:0,tablet:640,desktop:1024});return r?()=>u.createVNode("div",{class:"table-pagination",style:{padding:"10px 0"}},[u.createVNode(C.Pagination,{current:r.pageIndex,"onUpdate:current":d=>r.pageIndex=d,"page-size":r.pageSize,"onUpdate:page-size":d=>r.pageSize=d,total:r.total,"page-size-options":r.pageSizeOpts,"hide-on-single-page":!e.alwayShowPagination,"show-total":!0,"show-page-size":!0,simple:c.smaller("desktop").value,onChange:d=>a(d),onPageSizeChange:d=>n(d),style:{justifyContent:"flex-end"}},null)]):()=>{}}const $t=u.defineComponent({props:{collapsedColumns:{type:Array,required:!0}},setup(e){const t=O.useModal(),r=u.ref(e.collapsedColumns.map(a=>({label:a.title,value:a.key,disabled:!1}))),l=u.ref(e.collapsedColumns.filter(a=>a.collapsed).map(a=>a.key));return O.onSubmit(()=>{const a=e.collapsedColumns.map(n=>({key:n.key,title:n.title,collapsed:l.value.includes(n.key)}));t.close(a)}),()=>u.createVNode("div",{class:"table-collapsed-render"},[u.createVNode(C.Transfer,{data:r.value,"default-value":l.value,onChange:a=>l.value=[...a],title:["显示列","隐藏列"],style:{justifyContent:"center"}},{default:()=>[u.withDirectives(u.createVNode("template",null,null),[[u.resolveDirective("slot"),"source"]])]})])}}),Rt=u.defineComponent({props:{value:{type:Object,required:!0},form:{type:Array,required:!0},onSubmit:{type:Function,required:!1}},setup(e){const t=O.useModal();function r(l){e.onSubmit&&e.onSubmit(l),t.close(l)}return()=>u.createVNode("div",{class:"edit-form-container"},[u.createVNode(ee.FormRender,{name:"form",value:e.value,form:e.form,onSubmit:r},null)])}}),ae=u.defineComponent({props:{rowKey:{type:String,required:!0},form:{type:Object,required:!1},formOptions:{type:Object,required:!1},columns:{type:Object,required:!0},autoLoad:{type:Boolean,required:!1,default:!0},dataLoad:{type:Function,required:!1},height:{type:Number,required:!1},size:{type:String,required:!1,default:"large"},columnsOptions:{type:Object,required:!1},collapsable:{type:Boolean,required:!1,default:!1},selection:{type:[String,Object],required:!1},radioKey:{type:[String,Number],required:!1},checkboxKeys:{type:Array,required:!1},radioRow:{type:Object,required:!1},checkboxRows:{type:Array,required:!1},exportable:{type:[Boolean,Object],required:!1,default:!1},refreshable:{type:Boolean,required:!1},actionsPosition:{type:String,required:!1,default:"right"},pageable:{type:[Object,Boolean,String],required:!1,default:void 0},sortable:{type:[Object],required:!1},draggable:{type:Boolean,required:!1},hoverable:{type:Boolean,required:!1,default:!1},bordered:{type:Boolean,required:!1,default:!1},stripe:{type:Boolean,required:!1,default:!0},columnsGroups:{type:Array,required:!1,default:()=>[]},rowClass:{type:Function,required:!1},expandable:{type:Object,required:!1},grabbable:{type:Boolean,default:!0,required:!1},autoFill:{type:Boolean,default:!1,required:!1},alwayShowPagination:{type:Boolean,default:!1,required:!1},virtualList:{type:Boolean,default:!1,required:!1}},expose:["preview","export","edit","reload","tableSource","formSource","update:radio-key","update:radio-row","update:checkbox-keys","update:checkbox-rows","formInstance","resetSelection","reloadSelection","reloadColumns","change"],setup(e,t){const r=Math.random().toString(32).slice(2).toUpperCase(),l=u.ref(),a=u.ref(),n=u.ref(),c=u.ref(),[d,f]=Ve(e.columns),i=u.ref(!1),s=e.form??Me(e.columns),m=S(),h=j(),g=u.ref(e.columns.map(o=>({key:o.key,title:o.title,collapsed:!!o.collapsed})));function S(){switch(!0){case(typeof e.pageable=="string"&&e.pageable==="server"):return new E;case(typeof e.pageable=="boolean"&&e.pageable===!0):return new E;case(typeof e.pageable=="object"&&!!e.pageable.reset):return e.pageable;case(typeof e.pageable=="object"&&(!!e.pageable.index||!!e.pageable.size)):return new E(e.pageable.index,e.pageable.size)}}const x=(()=>{switch(!0){case typeof e.pageable=="string":return e.pageable;case(e.pageable===void 0||e.pageable===!1):return"client";default:return"server"}})();function j(){const o=e.columns.find(b=>!!b.sortable);if(o||e.sortable)return new F({...e.sortable||{},...o?{[o.key]:o.sortable}:{}})}function w(o){const{exportExcel:b}=St();b((o==null?void 0:o.columns)||e.columns,(o==null?void 0:o.source)||d.value,(o==null?void 0:o.filename)||(typeof e.exportable=="object"?e.exportable.filename:void 0))}function y(o){let b;switch(!0){case!!(o!=null&&o.key):b=d.value.find(N=>N[e.rowKey]===(o==null?void 0:o.key));break;case!!(o!=null&&o.record):b=o==null?void 0:o.record;break}if(!b)throw new Error("未找到需要预览的数据");return n.value.open(Tt,{record:b,columns:e.columns},{title:(o==null?void 0:o.title)||"详情",mode:(o==null?void 0:o.mode)||"dialog"})}function v(o){let b;switch(!0){case!!(o!=null&&o.key):b=d.value.find(N=>N[e.rowKey]===(o==null?void 0:o.key));break;case!!(o!=null&&o.record):b=o==null?void 0:o.record;break}if(!b)throw new Error("未找到需要编辑的数据");return n.value.open(Rt,{value:b,form:o==null?void 0:o.form,onSubmit:o.onSubmit},{title:(o==null?void 0:o.title)||"编辑",mode:(o==null?void 0:o.mode)||"dialog",footer:!0,form:"form"})}function V(o){var W,U;if(!e.dataLoad)return Promise.reject();o!=null&&o.reset&&(m&&m.reset(),h&&h.reset(),(W=l.value)==null||W.resetSorters());const b={...((U=a.value)==null?void 0:U.formSource)||{}};Object.keys(b).forEach(G=>{[null,void 0,""].includes(b[G])&&delete b[G]});const N=e.dataLoad({form:b,page:m,sort:h,update:f});return q(N)?(i.value=!0,Promise.resolve(N).finally(()=>{i.value=!1}),N):Promise.resolve()}function le(){n.value.open($t,{collapsedColumns:g.value},{title:"显示列",size:"small",footer:!0}).then(o=>{g.value=o})}const ue=(o,{type:b})=>{switch(b){case"drag":{f(o),t.emit("change",o);break}}},L=te({reload:V,preview:y,export:w,edit:v,collapse:le});function ce(o,b){!h||x==="client"||(b?h.update(o,b==="descend"?"desc":"asc"):h.remove(o),L("reload"))}const I=u.ref(p({columns:e.columns,columnsOptions:e.columnsOptions,columnsGroups:e.columnsGroups,pageMode:x,collapsedColumns:g,events:L})),R={tableEvents:L,tableForm:s,tableSource:d,formInstance:a,pageService:m,formOptions:e.formOptions},de=Ot(e,t,R),ie=_t(e,t,R),oe=Lt(e,t,R),{selectedRowKeys:H,rowSelection:K,onSelect:se,onSelectAll:fe,reloadSelection:me,resetSelection:he}=jt(e,t,R),ye=u.computed(()=>({rowKey:e.rowKey,size:e.size,bordered:e.bordered,hoverable:e.hoverable,stripe:e.stripe,scroll:{x:e.columns.reduce((o,b)=>o+=typeof b.width!="number"?Math.max(b.title.length*16,80):b.width,0),y:e.height??"100%"},rowSelection:K,draggable:e.draggable?{type:"handle",width:40}:void 0,pagination:e.pageable===void 0||e.pageable==="client",selectedKeys:H.value,expandable:e.expandable,virtualListProps:e.virtualList?{height:e.height}:void 0}));function be(){I.value=p({columns:e.columns,columnsOptions:e.columnsOptions,columnsGroups:e.columnsGroups,pageMode:x,collapsedColumns:g,events:L})}return u.onMounted(()=>{c.value&&(c.value.id=`table-${r}`),e.autoLoad&&V(),e.grabbable&&c.value&&Mt(c.value)}),{tableId:r,tableInstance:l,tableSource:d,tableOptions:ye,tableColumns:I,tableEvents:L,tableForm:s,tableLoading:i,modalInstance:n,tableRenderElement:c,formSource:u.readonly(u.computed(()=>{var o;return(o=a==null?void 0:a.value)==null?void 0:o.formSource})),formInstance:a,reload:V,preview:y,edit:v,export:w,onSorterChange:ce,onTableChange:ue,renders:{renderTableForm:de,renderTableActions:ie,renderTablePagination:oe},tableSelection:{selectedRowKeys:H,rowSelection:K,onSelect:se,onSelectAll:fe},resetSelection:he,reloadSelection:me,reloadColumns:be}},render(){this.reloadColumns();const e=()=>u.createVNode("div",{class:"table-body"},[u.createVNode("div",{class:"table-body-wrapper"},[u.createVNode(C.Table,u.mergeProps({loading:this.tableLoading,data:this.tableSource,columns:this.tableColumns,ref:t=>this.tableInstance=t,onSelect:this.tableSelection.onSelect,onSelectAll:this.tableSelection.onSelectAll,onChange:this.onTableChange,rowClass:this.rowClass,onSorterChange:this.onSorterChange,selectedKeys:this.tableSelection.selectedRowKeys.value,"onUpdate:selectedKeys":t=>this.tableSelection.selectedRowKeys.value=t},this.tableOptions),null)])]);return u.createVNode("div",{class:{"table-render":!0,"auto-fill":this.autoFill},ref:t=>this.tableRenderElement=t},[u.createVNode(O.ModalProvider,{ref:t=>this.modalInstance=t},{default:()=>[u.createVNode("div",{class:"table-render-content"},[this.renders.renderTableForm(),this.renders.renderTableActions(),this.$slots.header&&this.$slots.header(),e(),this.renders.renderTablePagination()])]})])}});function qt(e){return e}function Pt(e){return e}const Et={install(e,t){e.component("TableRender",ae)}};exports.TableRenderResolver=Ce.TableRenderResolver;exports.TableRender=ae;exports.default=Et;exports.defineColumns=qt;exports.defineTableLoad=Pt;exports.useEvents=te;exports.useTable=Ne;
@@ -151,6 +151,11 @@ export declare const TableRender: import('vue').DefineComponent<{
151
151
  default: boolean;
152
152
  required: false;
153
153
  };
154
+ virtualList: {
155
+ type: BooleanConstructor;
156
+ default: boolean;
157
+ required: false;
158
+ };
154
159
  }, {
155
160
  tableId: string;
156
161
  tableInstance: Ref<import('vue').CreateComponentPublicInstance<Readonly<{
@@ -1743,6 +1748,11 @@ export declare const TableRender: import('vue').DefineComponent<{
1743
1748
  default: boolean;
1744
1749
  required: false;
1745
1750
  };
1751
+ virtualList: {
1752
+ type: BooleanConstructor;
1753
+ default: boolean;
1754
+ required: false;
1755
+ };
1746
1756
  }>>, {
1747
1757
  autoLoad: boolean;
1748
1758
  size: "mini" | "small" | "medium" | "large";
@@ -1764,6 +1774,7 @@ export declare const TableRender: import('vue').DefineComponent<{
1764
1774
  grabbable: boolean;
1765
1775
  autoFill: boolean;
1766
1776
  alwayShowPagination: boolean;
1777
+ virtualList: boolean;
1767
1778
  }, {}>;
1768
1779
  export type TableRenderInstance = InstanceType<typeof TableRender>;
1769
1780
  export type TableRenderProps = TableRenderInstance['$props'];
package/dist/es/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  var Oe = Object.defineProperty;
2
2
  var $e = (e, t, r) => t in e ? Oe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var O = (e, t, r) => ($e(e, typeof t != "symbol" ? t + "" : t, r), r);
4
- import { ref as g, getCurrentInstance as H, onMounted as A, onUpdated as je, reactive as Le, createVNode as f, Fragment as I, createTextVNode as Y, getCurrentScope as Re, onScopeDispose as qe, unref as Ee, readonly as se, computed as j, watchEffect as Pe, watch as Ye, h as ze, render as Ae, defineComponent as B, isVNode as Be, mergeProps as fe, nextTick as re, withDirectives as De, resolveDirective as Ve } from "vue";
4
+ import { ref as g, getCurrentInstance as H, onMounted as A, onUpdated as Le, reactive as je, createVNode as f, Fragment as I, createTextVNode as Y, getCurrentScope as Re, onScopeDispose as qe, unref as Ee, readonly as se, computed as L, watchEffect as Pe, watch as Ye, h as ze, render as Ae, defineComponent as B, isVNode as Be, mergeProps as fe, nextTick as re, withDirectives as De, resolveDirective as Ve } from "vue";
5
5
  import { Button as E, Tag as Fe, Dropdown as ne, Message as He, Descriptions as Ie, DescriptionsItem as Ke, Divider as We, Space as ae, Pagination as Ne, Transfer as Ue, Table as Ge } from "@arco-design/web-vue";
6
6
  import { useModal as D, onSubmit as Ze, ModalProvider as Je } from "@gopowerteam/modal-render";
7
7
  import * as Qe from "exceljs";
@@ -9,14 +9,14 @@ import V from "dayjs";
9
9
  import { FormRender as oe } from "@gopowerteam/form-render";
10
10
  import { TableRenderResolver as xr } from "./resolver.mjs";
11
11
  function Xe(e, t, r) {
12
- const [l, ...a] = t.index ? t.index.split(".").reverse() : [t.key], n = a.reverse().reduce((u, c) => u == null ? void 0 : u[c], e);
12
+ const [l, ...a] = t.index ? t.index.split(".").reverse() : [t.key], n = a.reverse().reduce((u, i) => u == null ? void 0 : u[i], e);
13
13
  n[l] = r;
14
14
  }
15
15
  function pe(e) {
16
16
  const t = g([]), r = (a) => {
17
17
  const n = e.filter((u) => u.formatter);
18
- return n.length > 0 ? a.map((u) => (n.forEach((c) => {
19
- c.formatter && Xe(u, c, c.formatter(u));
18
+ return n.length > 0 ? a.map((u) => (n.forEach((i) => {
19
+ i.formatter && Xe(u, i, i.formatter(u));
20
20
  }), u)) : a;
21
21
  };
22
22
  return [t, (a) => {
@@ -37,7 +37,7 @@ function br(e) {
37
37
  const a = (u = (n = t == null ? void 0 : t.proxy) == null ? void 0 : n.$refs) == null ? void 0 : u[e];
38
38
  a && (r.value = a);
39
39
  }
40
- return A(l), je(l), r;
40
+ return A(l), Le(l), r;
41
41
  }
42
42
  function tt(e) {
43
43
  return (t, r) => e[t](r);
@@ -49,7 +49,7 @@ class F {
49
49
  * @param size
50
50
  */
51
51
  constructor(t = 1, r = 10) {
52
- O(this, "data", Le({
52
+ O(this, "data", je({
53
53
  index: 1,
54
54
  size: 10,
55
55
  total: 0
@@ -114,31 +114,31 @@ function z(e) {
114
114
  }
115
115
  function nt(e) {
116
116
  return k("button", (r, l, a) => {
117
- const n = D(), u = Array.isArray(e) ? e : "buttons" in e ? e.buttons : [e], c = (i, s) => typeof i == "function" ? i(r) : i === void 0 ? s : i;
118
- async function o(i) {
119
- if (await (i.confirm === !0 ? new Promise((m) => {
117
+ const n = D(), u = Array.isArray(e) ? e : "buttons" in e ? e.buttons : [e], i = (c, s) => typeof c == "function" ? c(r) : c === void 0 ? s : c;
118
+ async function o(c) {
119
+ if (await (c.confirm === !0 ? new Promise((m) => {
120
120
  n.confirm({
121
121
  title: "提示信息",
122
- content: i.confirmText ?? "您确定要执行该操作?",
122
+ content: c.confirmText ?? "您确定要执行该操作?",
123
123
  onOk: () => m(!0),
124
124
  onCancel: () => m(!1)
125
125
  });
126
- }) : Promise.resolve(!0)) && (i != null && i.onClick)) {
127
- const m = i.onClick(r);
128
- z(m) && i.autoReload !== !1 && m.then(() => {
126
+ }) : Promise.resolve(!0)) && (c != null && c.onClick)) {
127
+ const m = c.onClick(r);
128
+ z(m) && c.autoReload !== !1 && m.then(() => {
129
129
  a != null && a.emits && (a == null || a.emits("reload"));
130
- }), !z(m) && i.autoReload === !0 && a != null && a.emits && (a == null || a.emits("reload"));
130
+ }), !z(m) && c.autoReload === !0 && a != null && a.emits && (a == null || a.emits("reload"));
131
131
  }
132
132
  }
133
- return f(I, null, [u.filter((i) => c(i.visiable, !0)).map((i) => f(E, {
134
- onClick: () => o(i),
135
- type: i.type || "text",
136
- shape: i.shape,
133
+ return f(I, null, [u.filter((c) => i(c.visiable, !0)).map((c) => f(E, {
134
+ onClick: () => o(c),
135
+ type: c.type || "text",
136
+ shape: c.shape,
137
137
  size: "mini",
138
- disabled: c(i.disabled, !1)
138
+ disabled: i(c.disabled, !1)
139
139
  }, {
140
- icon: i.icon ? () => i.icon(r) : void 0,
141
- default: () => (typeof i.content == "function" ? i.content(r) : i.content) || ""
140
+ icon: c.icon ? () => c.icon(r) : void 0,
141
+ default: () => (typeof c.content == "function" ? c.content(r) : c.content) || ""
142
142
  }))]);
143
143
  }, {
144
144
  disableViewMode: !0
@@ -163,8 +163,8 @@ function lt(e) {
163
163
  return;
164
164
  if ((e == null ? void 0 : e.inputUnit) === (e == null ? void 0 : e.outputUnit))
165
165
  return n;
166
- const u = le[e.inputUnit] / le[e.outputUnit], c = parseFloat((n * u).toFixed(10));
167
- return (e == null ? void 0 : e.precision) === void 0 ? c : c.toFixed(e == null ? void 0 : e.precision);
166
+ const u = le[e.inputUnit] / le[e.outputUnit], i = parseFloat((n * u).toFixed(10));
167
+ return (e == null ? void 0 : e.precision) === void 0 ? i : i.toFixed(e == null ? void 0 : e.precision);
168
168
  }, r = (n) => {
169
169
  if (n == null)
170
170
  return;
@@ -179,13 +179,13 @@ function lt(e) {
179
179
  return e != null && e.thousands ? r(u) : u;
180
180
  };
181
181
  return k("dict", (n, u) => {
182
- const c = T(n, u);
182
+ const i = T(n, u);
183
183
  return f("div", null, [typeof (e == null ? void 0 : e.prefix) == "string" ? f("span", null, [e.prefix]) : typeof (e == null ? void 0 : e.prefix) == "function" ? f("span", null, [e.prefix()]) : void 0, f("span", {
184
184
  class: "currency_value"
185
- }, [l(c)]), typeof (e == null ? void 0 : e.suffix) == "string" ? f("span", null, [e.suffix]) : typeof (e == null ? void 0 : e.suffix) == "function" ? f("span", null, [e.suffix()]) : void 0]);
185
+ }, [l(i)]), typeof (e == null ? void 0 : e.suffix) == "string" ? f("span", null, [e.suffix]) : typeof (e == null ? void 0 : e.suffix) == "function" ? f("span", null, [e.suffix()]) : void 0]);
186
186
  });
187
187
  }
188
- var ut = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, ct = { exports: {} };
188
+ var ut = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, it = { exports: {} };
189
189
  (function(e, t) {
190
190
  (function(r, l) {
191
191
  e.exports = l(V);
@@ -202,8 +202,8 @@ var ut = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
202
202
  weekdaysMin: "日_一_二_三_四_五_六".split("_"),
203
203
  months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),
204
204
  monthsShort: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),
205
- ordinal: function(u, c) {
206
- return c === "W" ? u + "周" : u + "日";
205
+ ordinal: function(u, i) {
206
+ return i === "W" ? u + "周" : u + "日";
207
207
  },
208
208
  weekStart: 1,
209
209
  yearStart: 4,
@@ -234,16 +234,16 @@ var ut = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
234
234
  y: "1 年",
235
235
  yy: "%d 年"
236
236
  },
237
- meridiem: function(u, c) {
238
- var o = 100 * u + c;
237
+ meridiem: function(u, i) {
238
+ var o = 100 * u + i;
239
239
  return o < 600 ? "凌晨" : o < 900 ? "早上" : o < 1100 ? "上午" : o < 1300 ? "中午" : o < 1800 ? "下午" : "晚上";
240
240
  }
241
241
  };
242
242
  return a.default.locale(n, null, !0), n;
243
243
  });
244
- })(ct);
244
+ })(it);
245
245
  V.locale("zh-cn");
246
- const it = {
246
+ const ct = {
247
247
  date: "YYYY-MM-DD",
248
248
  datetime: "YYYY-MM-DD HH:mm:ss",
249
249
  time: "HH:mm:ss",
@@ -251,7 +251,7 @@ const it = {
251
251
  };
252
252
  function dt(e) {
253
253
  return k("date", (r, l) => {
254
- const a = T(r, l), n = typeof (e == null ? void 0 : e.format) == "function" ? e == null ? void 0 : e.format() : it[(e == null ? void 0 : e.format) || "datetime"], u = V(a);
254
+ const a = T(r, l), n = typeof (e == null ? void 0 : e.format) == "function" ? e == null ? void 0 : e.format() : ct[(e == null ? void 0 : e.format) || "datetime"], u = V(a);
255
255
  return f("span", null, [u.isValid() && u.format(n)]);
256
256
  });
257
257
  }
@@ -281,17 +281,17 @@ function mt(e) {
281
281
  function ht(e) {
282
282
  const t = D();
283
283
  async function r(a, n) {
284
- a.confirm && !await new Promise((c, o) => {
284
+ a.confirm && !await new Promise((i, o) => {
285
285
  t.open("confirm", {
286
286
  title: "确认",
287
287
  content: a.confirmText || "是否确认执行该操作?",
288
- onOk: () => c(!0),
289
- onCancel: () => c(!1)
288
+ onOk: () => i(!0),
289
+ onCancel: () => i(!1)
290
290
  });
291
291
  }) || a.onClick(n);
292
292
  }
293
293
  return k("dropdown", (a, n) => {
294
- const u = e.options.filter((c) => typeof c.visiable == "function" ? c.visiable(a) : c.visiable !== !1);
294
+ const u = e.options.filter((i) => typeof i.visiable == "function" ? i.visiable(a) : i.visiable !== !1);
295
295
  return f(ne, {
296
296
  trigger: (e == null ? void 0 : e.trigger) || "click"
297
297
  }, {
@@ -301,10 +301,10 @@ function ht(e) {
301
301
  }, {
302
302
  default: () => [(e == null ? void 0 : e.content) || "操作"]
303
303
  }),
304
- content: () => u.map((c) => f(ne.Option, {
305
- onClick: () => r(c, a)
304
+ content: () => u.map((i) => f(ne.Option, {
305
+ onClick: () => r(i, a)
306
306
  }, {
307
- default: () => [typeof c.content == "function" ? c.content(a) : c.content]
307
+ default: () => [typeof i.content == "function" ? i.content(a) : i.content]
308
308
  }))
309
309
  });
310
310
  });
@@ -320,7 +320,7 @@ function bt(e) {
320
320
  function t() {
321
321
  }
322
322
  return k("image", (l, a) => {
323
- const n = T(l, a), u = Math.random().toString(32).slice(2).toUpperCase(), c = {
323
+ const n = T(l, a), u = Math.random().toString(32).slice(2).toUpperCase(), i = {
324
324
  maxWidth: "100%",
325
325
  maxHeight: "100%",
326
326
  borderRadius: e == null ? void 0 : e.radius,
@@ -329,14 +329,14 @@ function bt(e) {
329
329
  cursor: e != null && e.preview ? "zoom-in" : "unset"
330
330
  }, o = `${a.index || a.key}_parsed`;
331
331
  if (e != null && e.parse) {
332
- const i = e == null ? void 0 : e.parse(n, l);
333
- z(i) ? i.then((s) => l[o] = s ?? "") : l[o] = i ?? "";
332
+ const c = e == null ? void 0 : e.parse(n, l);
333
+ z(c) ? c.then((s) => l[o] = s ?? "") : l[o] = c ?? "";
334
334
  }
335
335
  if (e != null && e.parse && !l[o] === void 0)
336
336
  return f("div", null, [Y("Loading...")]);
337
337
  {
338
- const i = l[o] || n;
339
- return i ? f("div", {
338
+ const c = l[o] || n;
339
+ return c ? f("div", {
340
340
  id: u,
341
341
  onClick: t,
342
342
  style: {
@@ -347,8 +347,8 @@ function bt(e) {
347
347
  }
348
348
  }, [f("img", {
349
349
  alt: "image",
350
- style: c,
351
- src: i
350
+ style: i,
351
+ src: c
352
352
  }, null)]) : f(I, null, null);
353
353
  }
354
354
  });
@@ -388,18 +388,18 @@ function xt(e, t, r = {}) {
388
388
  function u() {
389
389
  n && (clearTimeout(n), n = null);
390
390
  }
391
- function c() {
391
+ function i() {
392
392
  a.value = !1, u();
393
393
  }
394
- function o(...i) {
394
+ function o(...c) {
395
395
  u(), a.value = !0, n = setTimeout(() => {
396
- a.value = !1, n = null, e(...i);
396
+ a.value = !1, n = null, e(...c);
397
397
  }, $(t));
398
398
  }
399
- return l && (a.value = !0, W && o()), K(c), {
399
+ return l && (a.value = !0, W && o()), K(i), {
400
400
  isPending: se(a),
401
401
  start: o,
402
- stop: c
402
+ stop: i
403
403
  };
404
404
  }
405
405
  function St(e) {
@@ -415,21 +415,21 @@ function he(...e) {
415
415
  Array.isArray(r) || (r = [r]), Array.isArray(l) || (l = [l]);
416
416
  const n = [], u = () => {
417
417
  n.forEach((s) => s()), n.length = 0;
418
- }, c = (s, m, h, w) => (s.addEventListener(m, h, w), () => s.removeEventListener(m, h, w)), o = Ye(
418
+ }, i = (s, m, h, w) => (s.addEventListener(m, h, w), () => s.removeEventListener(m, h, w)), o = Ye(
419
419
  () => [St(t), $(a)],
420
420
  ([s, m]) => {
421
421
  if (u(), !s)
422
422
  return;
423
423
  const h = wt(m) ? { ...m } : m;
424
424
  n.push(
425
- ...r.flatMap((w) => l.map((S) => c(s, w, S, h)))
425
+ ...r.flatMap((w) => l.map((S) => i(s, w, S, h)))
426
426
  );
427
427
  },
428
428
  { immediate: !0, flush: "post" }
429
- ), i = () => {
429
+ ), c = () => {
430
430
  o(), u();
431
431
  };
432
- return K(i), i;
432
+ return K(c), c;
433
433
  }
434
434
  function Mt() {
435
435
  const e = g(!1), t = H();
@@ -439,20 +439,20 @@ function Mt() {
439
439
  }
440
440
  function U(e) {
441
441
  const t = Mt();
442
- return j(() => (t.value, !!e()));
442
+ return L(() => (t.value, !!e()));
443
443
  }
444
444
  function q(e, t = {}) {
445
445
  const { window: r = N } = t, l = U(() => r && "matchMedia" in r && typeof r.matchMedia == "function");
446
446
  let a;
447
- const n = g(!1), u = (i) => {
448
- n.value = i.matches;
449
- }, c = () => {
447
+ const n = g(!1), u = (c) => {
448
+ n.value = c.matches;
449
+ }, i = () => {
450
450
  a && ("removeEventListener" in a ? a.removeEventListener("change", u) : a.removeListener(u));
451
451
  }, o = Pe(() => {
452
- l.value && (c(), a = r.matchMedia($(e)), "addEventListener" in a ? a.addEventListener("change", u) : a.addListener(u), n.value = a.matches);
452
+ l.value && (i(), a = r.matchMedia($(e)), "addEventListener" in a ? a.addEventListener("change", u) : a.addListener(u), n.value = a.matches);
453
453
  });
454
454
  return K(() => {
455
- o(), c(), a = void 0;
455
+ o(), i(), a = void 0;
456
456
  }), n;
457
457
  }
458
458
  function Tt(e, t = {}) {
@@ -464,18 +464,18 @@ function Tt(e, t = {}) {
464
464
  function n(s) {
465
465
  return l ? l.matchMedia(s).matches : !1;
466
466
  }
467
- const u = (s) => q(() => `(min-width: ${r(s)})`, t), c = (s) => q(() => `(max-width: ${r(s)})`, t), o = Object.keys(e).reduce((s, m) => (Object.defineProperty(s, m, {
468
- get: () => a === "min-width" ? u(m) : c(m),
467
+ const u = (s) => q(() => `(min-width: ${r(s)})`, t), i = (s) => q(() => `(max-width: ${r(s)})`, t), o = Object.keys(e).reduce((s, m) => (Object.defineProperty(s, m, {
468
+ get: () => a === "min-width" ? u(m) : i(m),
469
469
  enumerable: !0,
470
470
  configurable: !0
471
471
  }), s), {});
472
- function i() {
472
+ function c() {
473
473
  const s = Object.keys(e).map((m) => [m, u(m)]);
474
- return j(() => s.filter(([, m]) => m.value).map(([m]) => m));
474
+ return L(() => s.filter(([, m]) => m.value).map(([m]) => m));
475
475
  }
476
476
  return Object.assign(o, {
477
477
  greaterOrEqual: u,
478
- smallerOrEqual: c,
478
+ smallerOrEqual: i,
479
479
  greater(s) {
480
480
  return q(() => `(min-width: ${r(s, 0.1)})`, t);
481
481
  },
@@ -500,10 +500,10 @@ function Tt(e, t = {}) {
500
500
  isInBetween(s, m) {
501
501
  return n(`(min-width: ${r(s)}) and (max-width: ${r(m, -0.1)})`);
502
502
  },
503
- current: i,
503
+ current: c,
504
504
  active() {
505
- const s = i();
506
- return j(() => s.value.length === 0 ? "" : s.value.at(-1));
505
+ const s = c();
506
+ return L(() => s.value.length === 0 ? "" : s.value.at(-1));
507
507
  }
508
508
  });
509
509
  }
@@ -513,24 +513,24 @@ function ue(e, t = {}) {
513
513
  navigator: l = me
514
514
  } = t, a = U(() => l && "permissions" in l);
515
515
  let n;
516
- const u = typeof e == "string" ? { name: e } : e, c = g(), o = () => {
517
- n && (c.value = n.state);
518
- }, i = Ct(async () => {
516
+ const u = typeof e == "string" ? { name: e } : e, i = g(), o = () => {
517
+ n && (i.value = n.state);
518
+ }, c = Ct(async () => {
519
519
  if (a.value) {
520
520
  if (!n)
521
521
  try {
522
522
  n = await l.permissions.query(u), he(n, "change", o), o();
523
523
  } catch {
524
- c.value = "prompt";
524
+ i.value = "prompt";
525
525
  }
526
526
  return n;
527
527
  }
528
528
  });
529
- return i(), r ? {
530
- state: c,
529
+ return c(), r ? {
530
+ state: i,
531
531
  isSupported: a,
532
- query: i
533
- } : c;
532
+ query: c
533
+ } : i;
534
534
  }
535
535
  function _t(e = {}) {
536
536
  const {
@@ -539,21 +539,21 @@ function _t(e = {}) {
539
539
  source: l,
540
540
  copiedDuring: a = 1500,
541
541
  legacy: n = !1
542
- } = e, u = U(() => t && "clipboard" in t), c = ue("clipboard-read"), o = ue("clipboard-write"), i = j(() => u.value || n), s = g(""), m = g(!1), h = xt(() => m.value = !1, a);
542
+ } = e, u = U(() => t && "clipboard" in t), i = ue("clipboard-read"), o = ue("clipboard-write"), c = L(() => u.value || n), s = g(""), m = g(!1), h = xt(() => m.value = !1, a);
543
543
  function w() {
544
- u.value && v(c.value) ? t.clipboard.readText().then((y) => {
544
+ u.value && v(i.value) ? t.clipboard.readText().then((y) => {
545
545
  s.value = y;
546
- }) : s.value = L();
546
+ }) : s.value = j();
547
547
  }
548
- i.value && r && he(["copy", "cut"], w);
548
+ c.value && r && he(["copy", "cut"], w);
549
549
  async function S(y = $(l)) {
550
- i.value && y != null && (u.value && v(o.value) ? await t.clipboard.writeText(y) : x(y), s.value = y, m.value = !0, h.start());
550
+ c.value && y != null && (u.value && v(o.value) ? await t.clipboard.writeText(y) : x(y), s.value = y, m.value = !0, h.start());
551
551
  }
552
552
  function x(y) {
553
553
  const C = document.createElement("textarea");
554
554
  C.value = y ?? "", C.style.position = "absolute", C.style.opacity = "0", document.body.appendChild(C), C.select(), document.execCommand("copy"), C.remove();
555
555
  }
556
- function L() {
556
+ function j() {
557
557
  var y, C, M;
558
558
  return (M = (C = (y = document == null ? void 0 : document.getSelection) == null ? void 0 : y.call(document)) == null ? void 0 : C.toString()) != null ? M : "";
559
559
  }
@@ -561,7 +561,7 @@ function _t(e = {}) {
561
561
  return y === "granted" || y === "prompt";
562
562
  }
563
563
  return {
564
- isSupported: i,
564
+ isSupported: c,
565
565
  text: s,
566
566
  copied: m,
567
567
  copy: S
@@ -571,15 +571,15 @@ const Ot = " ";
571
571
  function $t(e) {
572
572
  return e == null ? void 0 : e.replace(/(\d{3})\d*(\d{4})/g, "$1****$2");
573
573
  }
574
- function ce(e, t) {
574
+ function ie(e, t) {
575
575
  return e == null ? void 0 : e.replace(/\*/g, "M").replace(/\B(?=(?:\S{4})+$)/g, t ?? Ot).replace(/M/g, "*");
576
576
  }
577
- function jt(e) {
577
+ function Lt(e) {
578
578
  const t = _t();
579
579
  return k("phone", (l, a) => {
580
- const n = `phone_${Math.random().toString(36).slice(2)}`, u = "__table__column_phone__", c = T(l, a), o = 16, i = `cursor:pointer;width:${o}px;height:${o}px;`, s = ce($t(c), e == null ? void 0 : e.separator), m = ce(c, e == null ? void 0 : e.separator);
580
+ const n = `phone_${Math.random().toString(36).slice(2)}`, u = "__table__column_phone__", i = T(l, a), o = 16, c = `cursor:pointer;width:${o}px;height:${o}px;`, s = ie($t(i), e == null ? void 0 : e.separator), m = ie(i, e == null ? void 0 : e.separator);
581
581
  function h() {
582
- window.focus(), t.copy(c).then(() => {
582
+ window.focus(), t.copy(i).then(() => {
583
583
  He.success({
584
584
  content: "复制成功",
585
585
  duration: 1e3
@@ -605,8 +605,8 @@ function jt(e) {
605
605
  const v = document.querySelector(`#${n}>.content`), y = !!(v != null && v.innerHTML.includes("****"));
606
606
  y ? (w(), v && (v.innerHTML = m)) : v && (v.innerHTML = s), S(!y);
607
607
  }
608
- function L() {
609
- window.open(`tel:${c}`, "_blank");
608
+ function j() {
609
+ window.open(`tel:${i}`, "_blank");
610
610
  }
611
611
  return f("div", {
612
612
  id: n,
@@ -618,7 +618,7 @@ function jt(e) {
618
618
  }, [e != null && e.safe ? s : m]), (e == null ? void 0 : e.safe) && (e == null ? void 0 : e.allowPreview) && f("i", {
619
619
  class: "preview-icon",
620
620
  title: "显示完整号码",
621
- style: i,
621
+ style: c,
622
622
  onClick: x
623
623
  }, [f("svg", {
624
624
  width: o,
@@ -639,9 +639,9 @@ function jt(e) {
639
639
  "stroke-width": "4",
640
640
  "stroke-linejoin": "round"
641
641
  }, null)])]), (e == null ? void 0 : e.allowDial) && f("i", {
642
- style: i,
642
+ style: c,
643
643
  title: "拨出号码",
644
- onClick: L
644
+ onClick: j
645
645
  }, [f("svg", {
646
646
  width: o,
647
647
  height: o,
@@ -667,7 +667,7 @@ function jt(e) {
667
667
  "stroke-width": "4",
668
668
  "stroke-linejoin": "round"
669
669
  }, null)])]), (e == null ? void 0 : e.allowCopy) && f("i", {
670
- style: i,
670
+ style: c,
671
671
  title: "复制号码",
672
672
  onClick: h
673
673
  }, [f("svg", {
@@ -691,22 +691,22 @@ function jt(e) {
691
691
  }, null)])])]);
692
692
  });
693
693
  }
694
- function Lt(e) {
694
+ function jt(e) {
695
695
  return k("render", (r) => e(r));
696
696
  }
697
697
  function Rt(e) {
698
698
  return k("tag", (r, l) => {
699
- const a = (e == null ? void 0 : e.maxCount) || 5, n = e != null && e.formatter ? e.formatter(r) : T(r, l), u = (e == null ? void 0 : e.textColors) || ["#F87335"], c = (e == null ? void 0 : e.backgroundColors) || ["#FFF4E8"], o = n.length > a, i = e == null ? void 0 : e.minWidth;
699
+ const a = (e == null ? void 0 : e.maxCount) || 5, n = e != null && e.formatter ? e.formatter(r) : T(r, l), u = (e == null ? void 0 : e.textColors) || ["#F87335"], i = (e == null ? void 0 : e.backgroundColors) || ["#FFF4E8"], o = n.length > a, c = e == null ? void 0 : e.minWidth;
700
700
  return f("div", {
701
701
  style: {
702
702
  display: "flex",
703
703
  flexWrap: "wrap"
704
704
  }
705
705
  }, [n.slice(0, a).map((s, m) => {
706
- const h = typeof u == "function" ? u(s, m) : u[m % u.length], w = typeof c == "function" ? c(s, m) : c[m % c.length];
706
+ const h = typeof u == "function" ? u(s, m) : u[m % u.length], w = typeof i == "function" ? i(s, m) : i[m % i.length];
707
707
  return f("span", {
708
708
  style: {
709
- minWidth: i ? `${i}px` : "unset",
709
+ minWidth: c ? `${c}px` : "unset",
710
710
  textAlign: "center",
711
711
  margin: "2px",
712
712
  padding: "2px 5px",
@@ -719,7 +719,7 @@ function Rt(e) {
719
719
  }), o && "..."]);
720
720
  });
721
721
  }
722
- function ie(e) {
722
+ function ce(e) {
723
723
  if (typeof e == "string")
724
724
  return e;
725
725
  if (typeof e == "number")
@@ -739,7 +739,7 @@ function Et(e, t) {
739
739
  }
740
740
  function Pt(e, t) {
741
741
  if (typeof e != "function")
742
- return typeof (e == null ? void 0 : e.size) == "function" ? ie(e == null ? void 0 : e.size(t)) : ie(e == null ? void 0 : e.size);
742
+ return typeof (e == null ? void 0 : e.size) == "function" ? ce(e == null ? void 0 : e.size(t)) : ce(e == null ? void 0 : e.size);
743
743
  }
744
744
  function Yt(e, t) {
745
745
  let r = "";
@@ -756,9 +756,9 @@ function zt(e) {
756
756
  }
757
757
  function At(e) {
758
758
  const t = (e == null ? void 0 : e.backgroundColor) ?? "#f5f5f5", r = (e == null ? void 0 : e.foregroundColor) ?? "#1677ff", l = (e == null ? void 0 : e.showText) ?? !0, a = (e == null ? void 0 : e.textColor) ?? "#000";
759
- return k("progress", (u, c) => {
759
+ return k("progress", (u, i) => {
760
760
  var h;
761
- const o = T(u, c), i = (e == null ? void 0 : e.precision) ?? 0, s = Math.min(Math.max(((h = e == null ? void 0 : e.format) == null ? void 0 : h.call(e, o)) ?? o, 0), 1), m = l ? `${(s * 100).toFixed(i)}%` : "";
761
+ const o = T(u, i), c = (e == null ? void 0 : e.precision) ?? 0, s = Math.min(Math.max(((h = e == null ? void 0 : e.format) == null ? void 0 : h.call(e, o)) ?? o, 0), 1), m = l ? `${(s * 100).toFixed(c)}%` : "";
762
762
  return f("div", {
763
763
  style: `background-color:${t};position:relative;min-height: 20px;text-align: center;border-radius: 2px;overflow:hidden;`
764
764
  }, [f("div", {
@@ -788,8 +788,8 @@ function Dt() {
788
788
  text: zt,
789
789
  dict: mt,
790
790
  tag: Rt,
791
- render: Lt,
792
- phone: jt,
791
+ render: jt,
792
+ phone: Lt,
793
793
  image: bt,
794
794
  currency: lt,
795
795
  date: dt,
@@ -828,18 +828,18 @@ function de({
828
828
  collapsedColumns: a,
829
829
  events: n
830
830
  }) {
831
- const u = e.map((c) => ({
831
+ const u = e.map((i) => ({
832
832
  ...t || {},
833
- ...c
834
- })).map((c) => Ht(c, l, a, n)).filter(Boolean);
833
+ ...i
834
+ })).map((i) => Ht(i, l, a, n)).filter(Boolean);
835
835
  return Ft(u, r);
836
836
  }
837
837
  function Vt(e, t) {
838
838
  const r = [], l = (n) => {
839
839
  if ("children" in n && (n.children = n.children.map(l)), "key" in n) {
840
- const u = t.find((c) => {
840
+ const u = t.find((i) => {
841
841
  var o;
842
- return ((o = Object.getOwnPropertyDescriptor(c, "key")) == null ? void 0 : o.value) === n.key;
842
+ return ((o = Object.getOwnPropertyDescriptor(i, "key")) == null ? void 0 : o.value) === n.key;
843
843
  });
844
844
  if (u)
845
845
  return r.push(u), u;
@@ -849,8 +849,8 @@ function Vt(e, t) {
849
849
  if (r != null && r.length && a) {
850
850
  const n = Math.min(...r.map((u) => t.indexOf(u)));
851
851
  r.forEach((u) => {
852
- const c = t.indexOf(u);
853
- t.splice(c, 1);
852
+ const i = t.indexOf(u);
853
+ t.splice(i, 1);
854
854
  }), t.splice(n, 0, a);
855
855
  }
856
856
  }
@@ -926,17 +926,17 @@ function Zt(e, t) {
926
926
  render: G(a),
927
927
  content: typeof a.exportable == "object" ? a.exportable.content : void 0
928
928
  })).forEach((a) => {
929
- var c;
930
- const n = (c = a.render) == null ? void 0 : c.render, u = () => {
929
+ var i;
930
+ const n = (i = a.render) == null ? void 0 : i.render, u = () => {
931
931
  var o;
932
932
  switch (!0) {
933
933
  case !!a.content:
934
934
  return a.content && a.content(t);
935
935
  case !!n: {
936
- const i = document.createElement("div"), s = ze(() => n && n({
936
+ const c = document.createElement("div"), s = ze(() => n && n({
937
937
  record: t
938
938
  }));
939
- return Ae(s, i), (o = s.el) == null ? void 0 : o.innerText;
939
+ return Ae(s, c), (o = s.el) == null ? void 0 : o.innerText;
940
940
  }
941
941
  default:
942
942
  return T(t, a.options);
@@ -957,11 +957,11 @@ function Jt(e) {
957
957
  }
958
958
  function Qt(e, t, r) {
959
959
  const l = e.filter((n) => n.exportable !== !1).map((n) => {
960
- var u, c;
960
+ var u, i;
961
961
  return {
962
962
  key: n.key,
963
963
  header: ((u = n.exportable) == null ? void 0 : u.header) || n.title,
964
- width: ((c = n.exportable) == null ? void 0 : c.width) || Jt(n.width)
964
+ width: ((i = n.exportable) == null ? void 0 : i.width) || Jt(n.width)
965
965
  };
966
966
  }), a = t.map((n) => Zt(e, n));
967
967
  Ut({
@@ -1035,8 +1035,8 @@ function er(e) {
1035
1035
  if (n === void 0)
1036
1036
  n = u.clientX;
1037
1037
  else {
1038
- const c = n - u.clientX;
1039
- n = u.clientX, r.scrollLeft += c;
1038
+ const i = n - u.clientX;
1039
+ n = u.clientX, r.scrollLeft += i;
1040
1040
  }
1041
1041
  });
1042
1042
  }
@@ -1112,8 +1112,8 @@ const rr = /* @__PURE__ */ B({
1112
1112
  label: u.options.title
1113
1113
  }, {
1114
1114
  default: () => {
1115
- var c, o;
1116
- return [(c = u.renderer) != null && c.render ? (o = u.renderer) == null ? void 0 : o.render({
1115
+ var i, o;
1116
+ return [(i = u.renderer) != null && i.render ? (o = u.renderer) == null ? void 0 : o.render({
1117
1117
  record: e.record
1118
1118
  }) : T(e.record, u.options)];
1119
1119
  }
@@ -1193,31 +1193,31 @@ function lr(e, t, {
1193
1193
  }
1194
1194
  function n() {
1195
1195
  re(() => {
1196
- e.checkboxRows !== void 0 && (l.value = [...e.checkboxRows.map((i) => i[e.rowKey])]), e.checkboxKeys !== void 0 && (l.value = [...e.checkboxKeys]), e.radioKey && (l.value = [e.radioKey]), e.radioRow && (l.value = [e.radioRow[e.rowKey]]);
1196
+ e.checkboxRows !== void 0 && (l.value = [...e.checkboxRows.map((c) => c[e.rowKey])]), e.checkboxKeys !== void 0 && (l.value = [...e.checkboxKeys]), e.radioKey && (l.value = [e.radioKey]), e.radioRow && (l.value = [e.radioRow[e.rowKey]]);
1197
1197
  });
1198
1198
  }
1199
1199
  function u() {
1200
- const i = typeof e.selection == "string" ? {
1200
+ const c = typeof e.selection == "string" ? {
1201
1201
  type: e.selection
1202
1202
  } : e.selection;
1203
- switch (i == null ? void 0 : i.type) {
1203
+ switch (c == null ? void 0 : c.type) {
1204
1204
  case "radio":
1205
1205
  return {
1206
1206
  title: "选择",
1207
1207
  width: 80,
1208
1208
  selectedRowKeys: l.value,
1209
- ...i
1209
+ ...c
1210
1210
  };
1211
1211
  case "checkbox":
1212
1212
  return {
1213
1213
  width: 80,
1214
1214
  showCheckedAll: !0,
1215
1215
  selectedRowKeys: l.value,
1216
- ...i
1216
+ ...c
1217
1217
  };
1218
1218
  }
1219
1219
  }
1220
- function c(i, s, m) {
1220
+ function i(c, s, m) {
1221
1221
  const {
1222
1222
  type: h
1223
1223
  } = u() || {};
@@ -1226,7 +1226,7 @@ function lr(e, t, {
1226
1226
  t.emit("update:radio-key", s), t.emit("update:radio-row", m);
1227
1227
  break;
1228
1228
  case "checkbox":
1229
- t.emit("update:checkbox-keys", i), t.emit("update:checkbox-rows", i.map((w) => {
1229
+ t.emit("update:checkbox-keys", c), t.emit("update:checkbox-rows", c.map((w) => {
1230
1230
  var S;
1231
1231
  return r.value.find((x) => x[e.rowKey] === w) || ((S = e.checkboxRows) == null ? void 0 : S.find((x) => x[e.rowKey] === w));
1232
1232
  }));
@@ -1235,16 +1235,16 @@ function lr(e, t, {
1235
1235
  }
1236
1236
  function o() {
1237
1237
  re(() => {
1238
- t.emit("update:checkbox-keys", l.value), t.emit("update:checkbox-rows", l.value.map((i) => {
1238
+ t.emit("update:checkbox-keys", l.value), t.emit("update:checkbox-rows", l.value.map((c) => {
1239
1239
  var s;
1240
- return r.value.find((m) => m[e.rowKey] === i) || ((s = e.checkboxRows) == null ? void 0 : s.find((m) => m[e.rowKey] === i));
1240
+ return r.value.find((m) => m[e.rowKey] === c) || ((s = e.checkboxRows) == null ? void 0 : s.find((m) => m[e.rowKey] === c));
1241
1241
  }));
1242
1242
  });
1243
1243
  }
1244
1244
  return n(), {
1245
1245
  selectedRowKeys: l,
1246
1246
  rowSelection: u(),
1247
- onSelect: c,
1247
+ onSelect: i,
1248
1248
  onSelectAll: o,
1249
1249
  resetSelection: a,
1250
1250
  reloadSelection: n
@@ -1254,11 +1254,11 @@ function ur(e, t, {
1254
1254
  pageService: r,
1255
1255
  tableEvents: l
1256
1256
  }) {
1257
- function a(c) {
1258
- r && (r.pageIndex = c, l("reload"));
1257
+ function a(i) {
1258
+ r && (r.pageIndex = i, l("reload"));
1259
1259
  }
1260
- function n(c) {
1261
- r && (r.pageSize = c, l("reload"));
1260
+ function n(i) {
1261
+ r && (r.pageSize = i, l("reload"));
1262
1262
  }
1263
1263
  const u = Tt({
1264
1264
  mobile: 0,
@@ -1272,24 +1272,24 @@ function ur(e, t, {
1272
1272
  }
1273
1273
  }, [f(Ne, {
1274
1274
  current: r.pageIndex,
1275
- "onUpdate:current": (c) => r.pageIndex = c,
1275
+ "onUpdate:current": (i) => r.pageIndex = i,
1276
1276
  "page-size": r.pageSize,
1277
- "onUpdate:page-size": (c) => r.pageSize = c,
1277
+ "onUpdate:page-size": (i) => r.pageSize = i,
1278
1278
  total: r.total,
1279
1279
  "page-size-options": r.pageSizeOpts,
1280
1280
  "hide-on-single-page": !e.alwayShowPagination,
1281
1281
  "show-total": !0,
1282
1282
  "show-page-size": !0,
1283
1283
  simple: u.smaller("desktop").value,
1284
- onChange: (c) => a(c),
1285
- onPageSizeChange: (c) => n(c),
1284
+ onChange: (i) => a(i),
1285
+ onPageSizeChange: (i) => n(i),
1286
1286
  style: {
1287
1287
  justifyContent: "flex-end"
1288
1288
  }
1289
1289
  }, null)]) : () => {
1290
1290
  };
1291
1291
  }
1292
- const cr = /* @__PURE__ */ B({
1292
+ const ir = /* @__PURE__ */ B({
1293
1293
  props: {
1294
1294
  collapsedColumns: {
1295
1295
  type: Array,
@@ -1323,7 +1323,7 @@ const cr = /* @__PURE__ */ B({
1323
1323
  default: () => [De(f("template", null, null), [[Ve("slot"), "source"]])]
1324
1324
  })]);
1325
1325
  }
1326
- }), ir = /* @__PURE__ */ B({
1326
+ }), cr = /* @__PURE__ */ B({
1327
1327
  props: {
1328
1328
  value: {
1329
1329
  type: Object,
@@ -1487,11 +1487,16 @@ const cr = /* @__PURE__ */ B({
1487
1487
  type: Boolean,
1488
1488
  default: !1,
1489
1489
  required: !1
1490
+ },
1491
+ virtualList: {
1492
+ type: Boolean,
1493
+ default: !1,
1494
+ required: !1
1490
1495
  }
1491
1496
  },
1492
1497
  expose: ["preview", "export", "edit", "reload", "tableSource", "formSource", "update:radio-key", "update:radio-row", "update:checkbox-keys", "update:checkbox-rows", "formInstance", "resetSelection", "reloadSelection", "reloadColumns", "change"],
1493
1498
  setup(e, t) {
1494
- const r = Math.random().toString(32).slice(2).toUpperCase(), l = g(), a = g(), n = g(), u = g(), [c, o] = pe(e.columns), i = g(!1), s = e.form ?? et(e.columns), m = S(), h = L(), w = g(e.columns.map((d) => ({
1499
+ const r = Math.random().toString(32).slice(2).toUpperCase(), l = g(), a = g(), n = g(), u = g(), [i, o] = pe(e.columns), c = g(!1), s = e.form ?? et(e.columns), m = S(), h = j(), w = g(e.columns.map((d) => ({
1495
1500
  key: d.key,
1496
1501
  title: d.title,
1497
1502
  collapsed: !!d.collapsed
@@ -1518,7 +1523,7 @@ const cr = /* @__PURE__ */ B({
1518
1523
  return "server";
1519
1524
  }
1520
1525
  })();
1521
- function L() {
1526
+ function j() {
1522
1527
  const d = e.columns.find((b) => !!b.sortable);
1523
1528
  if (d || e.sortable)
1524
1529
  return new Z({
@@ -1532,13 +1537,13 @@ const cr = /* @__PURE__ */ B({
1532
1537
  const {
1533
1538
  exportExcel: b
1534
1539
  } = Xt();
1535
- b((d == null ? void 0 : d.columns) || e.columns, (d == null ? void 0 : d.source) || c.value, (d == null ? void 0 : d.filename) || (typeof e.exportable == "object" ? e.exportable.filename : void 0));
1540
+ b((d == null ? void 0 : d.columns) || e.columns, (d == null ? void 0 : d.source) || i.value, (d == null ? void 0 : d.filename) || (typeof e.exportable == "object" ? e.exportable.filename : void 0));
1536
1541
  }
1537
1542
  function y(d) {
1538
1543
  let b;
1539
1544
  switch (!0) {
1540
1545
  case !!(d != null && d.key):
1541
- b = c.value.find((_) => _[e.rowKey] === (d == null ? void 0 : d.key));
1546
+ b = i.value.find((_) => _[e.rowKey] === (d == null ? void 0 : d.key));
1542
1547
  break;
1543
1548
  case !!(d != null && d.record):
1544
1549
  b = d == null ? void 0 : d.record;
@@ -1558,7 +1563,7 @@ const cr = /* @__PURE__ */ B({
1558
1563
  let b;
1559
1564
  switch (!0) {
1560
1565
  case !!(d != null && d.key):
1561
- b = c.value.find((_) => _[e.rowKey] === (d == null ? void 0 : d.key));
1566
+ b = i.value.find((_) => _[e.rowKey] === (d == null ? void 0 : d.key));
1562
1567
  break;
1563
1568
  case !!(d != null && d.record):
1564
1569
  b = d == null ? void 0 : d.record;
@@ -1566,7 +1571,7 @@ const cr = /* @__PURE__ */ B({
1566
1571
  }
1567
1572
  if (!b)
1568
1573
  throw new Error("未找到需要编辑的数据");
1569
- return n.value.open(ir, {
1574
+ return n.value.open(cr, {
1570
1575
  value: b,
1571
1576
  form: d == null ? void 0 : d.form,
1572
1577
  onSubmit: d.onSubmit
@@ -1594,12 +1599,12 @@ const cr = /* @__PURE__ */ B({
1594
1599
  sort: h,
1595
1600
  update: o
1596
1601
  });
1597
- return z(_) ? (i.value = !0, Promise.resolve(_).finally(() => {
1598
- i.value = !1;
1602
+ return z(_) ? (c.value = !0, Promise.resolve(_).finally(() => {
1603
+ c.value = !1;
1599
1604
  }), _) : Promise.resolve();
1600
1605
  }
1601
1606
  function ye() {
1602
- n.value.open(cr, {
1607
+ n.value.open(ir, {
1603
1608
  collapsedColumns: w.value
1604
1609
  }, {
1605
1610
  title: "显示列",
@@ -1638,7 +1643,7 @@ const cr = /* @__PURE__ */ B({
1638
1643
  })), P = {
1639
1644
  tableEvents: R,
1640
1645
  tableForm: s,
1641
- tableSource: c,
1646
+ tableSource: i,
1642
1647
  formInstance: a,
1643
1648
  pageService: m,
1644
1649
  formOptions: e.formOptions
@@ -1649,7 +1654,7 @@ const cr = /* @__PURE__ */ B({
1649
1654
  onSelectAll: xe,
1650
1655
  reloadSelection: Se,
1651
1656
  resetSelection: Me
1652
- } = lr(e, t, P), Te = j(() => ({
1657
+ } = lr(e, t, P), Te = L(() => ({
1653
1658
  rowKey: e.rowKey,
1654
1659
  size: e.size,
1655
1660
  bordered: e.bordered,
@@ -1666,7 +1671,10 @@ const cr = /* @__PURE__ */ B({
1666
1671
  } : void 0,
1667
1672
  pagination: e.pageable === void 0 || e.pageable === "client",
1668
1673
  selectedKeys: Q.value,
1669
- expandable: e.expandable
1674
+ expandable: e.expandable,
1675
+ virtualListProps: e.virtualList ? {
1676
+ height: e.height
1677
+ } : void 0
1670
1678
  }));
1671
1679
  function _e() {
1672
1680
  J.value = de({
@@ -1683,15 +1691,15 @@ const cr = /* @__PURE__ */ B({
1683
1691
  }), {
1684
1692
  tableId: r,
1685
1693
  tableInstance: l,
1686
- tableSource: c,
1694
+ tableSource: i,
1687
1695
  tableOptions: Te,
1688
1696
  tableColumns: J,
1689
1697
  tableEvents: R,
1690
1698
  tableForm: s,
1691
- tableLoading: i,
1699
+ tableLoading: c,
1692
1700
  modalInstance: n,
1693
1701
  tableRenderElement: u,
1694
- formSource: se(j(() => {
1702
+ formSource: se(L(() => {
1695
1703
  var d;
1696
1704
  return (d = a == null ? void 0 : a.value) == null ? void 0 : d.formSource;
1697
1705
  })),
@@ -151,6 +151,11 @@ export declare const TableRender: import('vue').DefineComponent<{
151
151
  default: boolean;
152
152
  required: false;
153
153
  };
154
+ virtualList: {
155
+ type: BooleanConstructor;
156
+ default: boolean;
157
+ required: false;
158
+ };
154
159
  }, {
155
160
  tableId: string;
156
161
  tableInstance: Ref<import('vue').CreateComponentPublicInstance<Readonly<{
@@ -1743,6 +1748,11 @@ export declare const TableRender: import('vue').DefineComponent<{
1743
1748
  default: boolean;
1744
1749
  required: false;
1745
1750
  };
1751
+ virtualList: {
1752
+ type: BooleanConstructor;
1753
+ default: boolean;
1754
+ required: false;
1755
+ };
1746
1756
  }>>, {
1747
1757
  autoLoad: boolean;
1748
1758
  size: "mini" | "small" | "medium" | "large";
@@ -1764,6 +1774,7 @@ export declare const TableRender: import('vue').DefineComponent<{
1764
1774
  grabbable: boolean;
1765
1775
  autoFill: boolean;
1766
1776
  alwayShowPagination: boolean;
1777
+ virtualList: boolean;
1767
1778
  }, {}>;
1768
1779
  export type TableRenderInstance = InstanceType<typeof TableRender>;
1769
1780
  export type TableRenderProps = TableRenderInstance['$props'];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gopowerteam/table-render",
3
3
  "type": "module",
4
- "version": "0.0.166",
4
+ "version": "0.0.168",
5
5
  "author": {
6
6
  "name": "zhuchentong",
7
7
  "email": "2037630@gmail.com"
@@ -54,7 +54,7 @@
54
54
  },
55
55
  "peerDependencies": {
56
56
  "@arco-design/web-vue": "^2.56.3",
57
- "@gopowerteam/form-render": "^0.0.90",
57
+ "@gopowerteam/form-render": "^0.0.91",
58
58
  "@gopowerteam/modal-render": "^0.0.48",
59
59
  "exceljs": "^4.4.0",
60
60
  "vue": "^3.0.0"