sunyard-szyy-ui 0.7.14 → 0.7.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.full.js +4 -4
- package/dist/index.full.mjs +1746 -1740
- package/dist/utils/index.d.cts +11 -0
- package/dist/utils/index.d.ts +11 -0
- package/es/hooks/dist/index.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/make-installer.mjs +1 -1
- package/es/pro-table/src/ProTable.vue.mjs +1 -1
- package/es/pro-table/src/context.d.ts +2 -0
- package/es/pro-table/src/context.d.ts.map +1 -1
- package/es/pro-table/src/hooks/use-pro-table.d.ts +1 -1
- package/es/pro-table/src/hooks/use-pro-table.d.ts.map +1 -1
- package/es/pro-table/src/hooks/use-pro-table.mjs +1 -1
- package/es/pro-table/src/shared/ProTableSearchRenderer.vue.mjs +1 -1
- package/es/pro-table/src/shared/ProTableTable.vue.mjs +1 -1
- package/es/pro-table/src/types.d.ts +13 -0
- package/es/pro-table/src/types.d.ts.map +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +2 -2
- package/lib/hooks/dist/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/make-installer.js +1 -1
- package/lib/pro-table/src/ProTable.vue.js +1 -1
- package/lib/pro-table/src/context.d.ts +2 -0
- package/lib/pro-table/src/hooks/use-pro-table.d.ts +1 -1
- package/lib/pro-table/src/hooks/use-pro-table.js +1 -1
- package/lib/pro-table/src/shared/ProTableSearchRenderer.vue.js +1 -1
- package/lib/pro-table/src/shared/ProTableTable.vue.js +1 -1
- package/lib/pro-table/src/types.d.ts +13 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +2 -2
- package/package.json +4 -4
package/dist/index.full.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
(function(f,h){typeof exports=="object"&&typeof module!="undefined"?h(exports,require("@sunyard-szyy-ui/utils"),require("vue"),require("@sunyard-szyy-ui/hooks"),require("@sunyard-szyy-ui/adapter"),require("@element-plus/icons-vue"),require("sortablejs")):typeof define=="function"&&define.amd?define(["exports","@sunyard-szyy-ui/utils","vue","@sunyard-szyy-ui/hooks","@sunyard-szyy-ui/adapter","@element-plus/icons-vue","sortablejs"],h):(f=typeof globalThis!="undefined"?globalThis:f||self,h(f.SunyardSzyyUI={},f.utils,f.Vue,f.hooks,f.adapter,f.iconsVue,f.Sortable))})(this,function(f,h,e,
|
|
2
|
-
* sunyard-szyy-ui v0.7.
|
|
1
|
+
(function(f,h){typeof exports=="object"&&typeof module!="undefined"?h(exports,require("@sunyard-szyy-ui/utils"),require("vue"),require("@sunyard-szyy-ui/hooks"),require("@sunyard-szyy-ui/adapter"),require("@element-plus/icons-vue"),require("sortablejs")):typeof define=="function"&&define.amd?define(["exports","@sunyard-szyy-ui/utils","vue","@sunyard-szyy-ui/hooks","@sunyard-szyy-ui/adapter","@element-plus/icons-vue","sortablejs"],h):(f=typeof globalThis!="undefined"?globalThis:f||self,h(f.SunyardSzyyUI={},f.utils,f.Vue,f.hooks,f.adapter,f.iconsVue,f.Sortable))})(this,function(f,h,e,N,p,v,$e){"use strict";var Os=Object.defineProperty,Hs=Object.defineProperties;var Us=Object.getOwnPropertyDescriptors;var Tt=Object.getOwnPropertySymbols;var qs=Object.prototype.hasOwnProperty,js=Object.prototype.propertyIsEnumerable;var It=(f,h,e)=>h in f?Os(f,h,{enumerable:!0,configurable:!0,writable:!0,value:e}):f[h]=e,_=(f,h)=>{for(var e in h||(h={}))qs.call(h,e)&&It(f,e,h[e]);if(Tt)for(var e of Tt(h))js.call(h,e)&&It(f,e,h[e]);return f},J=(f,h)=>Hs(f,Us(h));var Ie=(f,h,e)=>new Promise((N,p)=>{var v=de=>{try{ye(e.next(de))}catch(Se){p(Se)}},$e=de=>{try{ye(e.throw(de))}catch(Se){p(Se)}},ye=de=>de.done?N(de.value):Promise.resolve(de.value).then(v,$e);ye((e=e.apply(f,h)).next())});/*!
|
|
2
|
+
* sunyard-szyy-ui v0.7.16
|
|
3
3
|
* (c) 2026 Sunyard SZYY Base Team
|
|
4
|
-
*/const ye=e.defineComponent({name:"SyAutocomplete",inheritAttrs:!1,setup(o,{expose:s}){const r=A.useNamespace("autocomplete"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({focus:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.blur)==null?void 0:t.call(n)},close:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.close)==null?void 0:t.call(n)},highlight:n=>{var t,l;return(l=(t=a.value)==null?void 0:t.highlight)==null?void 0:l.call(t,n)},handleKeyEnter:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.handleKeyEnter)==null?void 0:t.call(n)},handleSelect:n=>{var t,l;return(l=(t=a.value)==null?void 0:t.handleSelect)==null?void 0:l.call(t,n)}}),()=>e.h(p.AdapterAutocomplete,e.mergeProps({ref:a,class:r.b()},c),i)}}),ie=h.withInstall(ye),Se=e.defineComponent({name:"SyAlert",inheritAttrs:!1,setup(){const o=A.useNamespace("alert"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterAlert,e.mergeProps({class:o.b()},s),r)}}),Tt=h.withInstall(Se),It=e.defineComponent({name:"SyBacktop",inheritAttrs:!1,setup(){const o=A.useNamespace("backtop"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterBacktop,e.mergeProps({class:o.b()},s),r)}}),$t=h.withInstall(It),Et=e.defineComponent({name:"SyButton",inheritAttrs:!1,setup(o,{expose:s}){const r=A.useNamespace("button"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({focus:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.blur)==null?void 0:t.call(n)}}),()=>e.h(p.AdapterButton,e.mergeProps({ref:a,class:r.b()},c),i)}}),Y=h.withInstall(Et),Lt=e.defineComponent({name:"SyCard",inheritAttrs:!1,setup(){const o=A.useNamespace("card"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterCard,e.mergeProps({class:o.b()},s),r)}}),Mt=h.withInstall(Lt),Ft=e.defineComponent({name:"SyCascader",inheritAttrs:!1,setup(){const o=A.useNamespace("cascader"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterCascader,e.mergeProps({class:o.b()},s),r)}}),Ge=h.withInstall(Ft),Dt=e.defineComponent({name:"SyCheckbox",inheritAttrs:!1,setup(){const o=A.useNamespace("checkbox"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterCheckbox,e.mergeProps({class:o.b()},s),r)}}),zt=e.defineComponent({name:"SyCheckboxGroup",inheritAttrs:!1,setup(){const o=A.useNamespace("checkbox-group"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterCheckboxGroup,e.mergeProps({class:o.b()},s),r)}}),Ye=h.withInstall(Dt),We=h.withInstall(zt),Ot=e.defineComponent({name:"SyCheckboxButton",inheritAttrs:!1,setup(){const o=A.useNamespace("checkbox-button"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterCheckboxButton,e.mergeProps({class:o.b()},s),r)}}),Ht=h.withInstall(Ot),Ut=e.defineComponent({name:"SyColorPicker",inheritAttrs:!1,setup(o,{expose:s}){const r=A.useNamespace("color-picker"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({show:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.show)==null?void 0:t.call(n)},hide:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.hide)==null?void 0:t.call(n)},focus:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.blur)==null?void 0:t.call(n)}}),()=>e.h(p.AdapterColorPicker,e.mergeProps({ref:a,class:r.b()},c),i)}}),qt=h.withInstall(Ut),jt=e.defineComponent({name:"SyCollapse",inheritAttrs:!1,setup(){const o=A.useNamespace("collapse"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterCollapse,e.mergeProps({class:o.b()},s),r)}}),Kt=e.defineComponent({name:"SyCollapseItem",inheritAttrs:!1,setup(){const o=A.useNamespace("collapse-item"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterCollapseItem,e.mergeProps({class:o.b()},s),r)}}),Gt=h.withInstall(jt),Yt=h.withInstall(Kt),Wt=new Set(["SyHeader","SyFooter","ElHeader","ElFooter"]);function Qt(o){return o.some(s=>{var c;const r=(c=s.type)==null?void 0:c.name;return!!r&&Wt.has(r)})}const Jt=e.defineComponent({name:"SyContainer",inheritAttrs:!1,setup(){const o=A.useNamespace("container"),s=e.useAttrs(),r=e.useSlots();return()=>{const c={class:o.b()};if(!("direction"in s)&&r.default){const i=r.default();Qt(i)&&(c.direction="vertical")}return e.h(p.AdapterContainer,e.mergeProps(c,s),r)}}}),Zt=e.defineComponent({name:"SyHeader",inheritAttrs:!1,setup(){const o=A.useNamespace("header"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterHeader,e.mergeProps({class:o.b()},s),r)}}),Xt=e.defineComponent({name:"SyAside",inheritAttrs:!1,setup(){const o=A.useNamespace("aside"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterAside,e.mergeProps({class:o.b()},s),r)}}),vt=e.defineComponent({name:"SyMain",inheritAttrs:!1,setup(){const o=A.useNamespace("main"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterMain,e.mergeProps({class:o.b()},s),r)}}),en=e.defineComponent({name:"SyFooter",inheritAttrs:!1,setup(){const o=A.useNamespace("footer"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterFooter,e.mergeProps({class:o.b()},s),r)}}),tn=h.withInstall(Jt),nn=h.withInstall(Zt),on=h.withInstall(Xt),sn=h.withInstall(vt),rn=h.withInstall(en),ln=e.defineComponent({name:"SyConfigProvider",inheritAttrs:!1,setup(o,{expose:s}){const r=e.useAttrs(),c=e.useSlots(),i=e.ref();return s({}),()=>e.h(p.AdapterConfigProvider,e.mergeProps({ref:i},r),c)}}),an=h.withInstall(ln),cn=e.defineComponent({name:"SyDatePicker",inheritAttrs:!1,setup(o,{expose:s}){const r=A.useNamespace("date-picker"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({focus:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.blur)==null?void 0:t.call(n)},handleOpen:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.handleOpen)==null?void 0:t.call(n)},handleClose:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.handleClose)==null?void 0:t.call(n)}}),()=>e.h(p.AdapterDatePicker,e.mergeProps({ref:a,class:r.b()},c),i)}}),Qe=h.withInstall(cn),dn=e.defineComponent({name:"SyDateTimePicker",inheritAttrs:!1,setup(o,{expose:s}){const r=A.useNamespace("date-time-picker"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({focus:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.blur)==null?void 0:t.call(n)},handleOpen:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.handleOpen)==null?void 0:t.call(n)},handleClose:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.handleClose)==null?void 0:t.call(n)}}),()=>e.h(p.AdapterDatePicker,e.mergeProps({ref:a,class:r.b(),type:"datetime"},c),i)}}),pn=h.withInstall(dn),mn=e.defineComponent({name:"SyDescriptions",inheritAttrs:!1,setup(){const o=A.useNamespace("descriptions"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterDescriptions,e.mergeProps({class:o.b()},s),r)}}),fn=e.defineComponent({name:"ElDescriptionsItem",inheritAttrs:!1,setup(){const o=A.useNamespace("descriptions-item"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterDescriptionsItem,e.mergeProps({class:o.b()},s),r)}}),hn=h.withInstall(mn),un=h.withInstall(fn,"SyDescriptionsItem"),yn=e.defineComponent({name:"SyDialog",inheritAttrs:!1,setup(){const o=A.useNamespace("dialog"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterDialog,e.mergeProps({class:o.b()},s),r)}}),Sn=h.withInstall(yn),gn=e.defineComponent({name:"SyDivider",inheritAttrs:!1,setup(){const o=A.useNamespace("divider"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterDivider,e.mergeProps({class:o.b()},s),r)}}),bn=h.withInstall(gn),Cn=e.defineComponent({name:"SyDrawer",inheritAttrs:!1,setup(){const o=A.useNamespace("drawer"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterDrawer,e.mergeProps({class:o.b()},s),r)}}),Je=h.withInstall(Cn),wn=e.defineComponent({name:"SyDropdown",inheritAttrs:!1,setup(){const o=A.useNamespace("dropdown"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterDropdown,e.mergeProps({class:o.b()},s),r)}}),An=e.defineComponent({name:"SyDropdownMenu",inheritAttrs:!1,setup(){const o=A.useNamespace("dropdown-menu"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterDropdownMenu,e.mergeProps({class:o.b()},s),r)}}),kn=e.defineComponent({name:"SyDropdownItem",inheritAttrs:!1,setup(){const o=A.useNamespace("dropdown-item"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterDropdownItem,e.mergeProps({class:o.b()},s),r)}}),Nn=h.withInstall(wn),xn=h.withInstall(An),Bn=h.withInstall(kn),Pn=e.defineComponent({name:"SyEmpty",inheritAttrs:!1,setup(){const o=A.useNamespace("empty"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterEmpty,e.mergeProps({class:o.b()},s),r)}}),Ze=h.withInstall(Pn),Vn=e.defineComponent({name:"SyForm",inheritAttrs:!1,setup(o,{expose:s}){const r=A.useNamespace("form"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({validate:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.validate)==null?void 0:l.call(t,...n)},validateField:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.validateField)==null?void 0:l.call(t,...n)},resetFields:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.resetFields)==null?void 0:l.call(t,...n)},scrollToField:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.scrollToField)==null?void 0:l.call(t,...n)},clearValidate:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.clearValidate)==null?void 0:l.call(t,...n)}}),()=>e.h(p.AdapterForm,e.mergeProps({ref:a,class:r.b()},c),i)}}),_n=e.defineComponent({name:"SyFormItem",inheritAttrs:!1,setup(o,{expose:s}){const r=A.useNamespace("form-item"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({resetField:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.resetField)==null?void 0:t.call(n)},clearValidate:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.clearValidate)==null?void 0:t.call(n)}}),()=>e.h(p.AdapterFormItem,e.mergeProps({ref:a,class:r.b()},c),i)}}),Xe=h.withInstall(Vn),ve=h.withInstall(_n),Rn=e.defineComponent({name:"SyIcon",inheritAttrs:!1,setup(){const o=e.useAttrs(),s=e.useSlots();return()=>e.h(p.AdapterIcon,e.mergeProps(o),s)}}),fe=h.withInstall(Rn),Tn=e.defineComponent({name:"SyImage",inheritAttrs:!1,setup(o,{expose:s}){const r=A.useNamespace("image"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({showPreview:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.showPreview)==null?void 0:t.call(n)}}),()=>e.h(p.AdapterImage,e.mergeProps({ref:a,class:r.b()},c),i)}}),In=h.withInstall(Tn),$n=e.defineComponent({name:"SyInput",inheritAttrs:!1,setup(o,{expose:s}){const r=A.useNamespace("input"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({focus:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.blur)==null?void 0:t.call(n)},clear:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.clear)==null?void 0:t.call(n)},select:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.select)==null?void 0:t.call(n)},resizeTextarea:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.resizeTextarea)==null?void 0:t.call(n)}}),()=>e.h(p.AdapterInput,e.mergeProps({ref:a,class:r.b()},c),i)}}),$e=h.withInstall($n),En=e.defineComponent({name:"SyInputNumber",inheritAttrs:!1,setup(o,{expose:s}){const r=A.useNamespace("input-number"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({focus:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.blur)==null?void 0:t.call(n)}}),()=>e.h(p.AdapterInputNumber,e.mergeProps({ref:a,class:r.b()},c),i)}}),et=h.withInstall(En),Ln=e.defineComponent({name:"SyRow",inheritAttrs:!1,setup(){const o=A.useNamespace("row"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterRow,e.mergeProps({class:o.b()},s),r)}}),Mn=e.defineComponent({name:"SyCol",inheritAttrs:!1,setup(){const o=A.useNamespace("col"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterCol,e.mergeProps({class:o.b()},s),r)}}),Fn=h.withInstall(Ln),Dn=h.withInstall(Mn),zn=e.defineComponent({name:"SyLink",inheritAttrs:!1,setup(){const o=A.useNamespace("link"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterLink,e.mergeProps({class:o.b()},s),r)}}),On=h.withInstall(zn),de="sy-loading",Ee="element-loading-custom-class";function Hn(o){return o!==null&&typeof o=="object"&&!Array.isArray(o)}function Un(o){if(o==null||o==="")return de;const s=String(e.unref(o));return s.includes(de)?s:`${de} ${s}`}function qn(o){if(o===void 0)return{customClass:de};const s=R({},o),r=s.customClass;return r===void 0?s.customClass=de:typeof r=="string"&&(s.customClass=`${de} ${r}`),s}function tt(o,s){if(!s.value)return s;if(Hn(s.value))return Q(R({},s),{value:Q(R({},s.value),{customClass:Un(s.value.customClass)})});const r=o.getAttribute(Ee);return r?r.includes(de)||o.setAttribute(Ee,`${de} ${r}`):o.setAttribute(Ee,de),s}const se=p.AdapterLoadingDirective,ke=(o,s)=>p.AdapterLoading.service(qn(o),s);Object.defineProperty(ke,"_context",{get(){return p.AdapterLoading.service._context},set(o){p.AdapterLoading.service._context=o}});const Ne={mounted(o,s,r,c){var i;(i=se.mounted)==null||i.call(se,o,tt(o,s),r,c)},updated(o,s,r,c){var i;(i=se.updated)==null||i.call(se,o,tt(o,s),r,c)},unmounted(o,s,r,c){var i;(i=se.unmounted)==null||i.call(se,o,s,r,c)},get _context(){return se._context},set _context(o){se._context=o}},jn={install(o){ke._context=o._context,Ne._context=o._context,o.directive("loading",Ne),o.config.globalProperties.$loading=ke},directive:Ne,service:ke},Kn=e.defineComponent({name:"SyMenu",inheritAttrs:!1,setup(){const o=A.useNamespace("menu"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterMenu,e.mergeProps({class:o.b()},s),r)}}),Gn=e.defineComponent({name:"SySubMenu",inheritAttrs:!1,setup(){const o=A.useNamespace("sub-menu"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterSubMenu,e.mergeProps({class:o.b()},s),r)}}),Yn=e.defineComponent({name:"SyMenuItem",inheritAttrs:!1,setup(){const o=A.useNamespace("menu-item"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterMenuItem,e.mergeProps({class:o.b()},s),r)}}),Wn=e.defineComponent({name:"SyMenuItemGroup",inheritAttrs:!1,setup(){const o=A.useNamespace("menu-item-group"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterMenuItemGroup,e.mergeProps({class:o.b()},s),r)}}),Qn=h.withInstall(Kn),Jn=h.withInstall(Gn),Zn=h.withInstall(Yn),Xn=h.withInstall(Wn),xe="sy-message";function ge(o){if(o===void 0)return{customClass:xe};if(typeof o!="object"||o.__v_isVNode===!0)return{message:o,customClass:xe};const s=o;return Q(R({},s),{customClass:s.customClass?`${xe} ${s.customClass}`:xe})}const Le=(o,s)=>p.AdapterMessage(ge(o),s);Le.closeAll=o=>p.AdapterMessage.closeAll(o),Le.closeAllByPlacement=o=>p.AdapterMessage.closeAllByPlacement(o);const he=Le;he.success=(o,s)=>p.AdapterMessage.success(ge(o),s),he.warning=(o,s)=>p.AdapterMessage.warning(ge(o),s),he.info=(o,s)=>p.AdapterMessage.info(ge(o),s),he.error=(o,s)=>p.AdapterMessage.error(ge(o),s),Object.defineProperty(he,"_context",{get(){return p.AdapterMessage._context},set(o){p.AdapterMessage._context=o}});const Me="sy-message-box";function Be(o){return o?Q(R({},o),{customClass:o.customClass?`${Me} ${o.customClass}`:Me}):{customClass:Me}}const be=(o,s)=>p.AdapterMessageBox(Be(o),s);be.alert=(...o)=>{const[s,r,c,i]=o;return p.AdapterMessageBox.alert(s,r,Be(c),i)},be.confirm=(...o)=>{const[s,r,c,i]=o;return p.AdapterMessageBox.confirm(s,r,Be(c),i)},be.prompt=(...o)=>{const[s,r,c,i]=o;return p.AdapterMessageBox.prompt(s,r,Be(c),i)},be.close=()=>p.AdapterMessageBox.close();const nt=be;Object.defineProperty(nt,"_context",{get(){return p.AdapterMessageBox._context},set(o){p.AdapterMessageBox._context=o}});const Pe="sy-notification";function Ce(o){if(o===void 0)return{customClass:Pe};if(typeof o!="object"||o.__v_isVNode===!0)return{message:o,customClass:Pe};const s=o;return Q(R({},s),{customClass:s.customClass?`${Pe} ${s.customClass}`:Pe})}const ue=(o,s)=>p.AdapterNotification(Ce(o),s);ue.success=(o,s)=>p.AdapterNotification.success(Ce(o),s),ue.warning=(o,s)=>p.AdapterNotification.warning(Ce(o),s),ue.info=(o,s)=>p.AdapterNotification.info(Ce(o),s),ue.error=(o,s)=>p.AdapterNotification.error(Ce(o),s),ue.closeAll=()=>p.AdapterNotification.closeAll();const ot=ue;Object.defineProperty(ot,"_context",{get(){return p.AdapterNotification._context},set(o){p.AdapterNotification._context=o}});const vn=e.defineComponent({name:"SyPagination",inheritAttrs:!1,setup(){const o=A.useNamespace("pagination"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterPagination,e.mergeProps({class:o.b()},s),r)}}),st=h.withInstall(vn),eo=e.defineComponent({name:"SyPopconfirm",inheritAttrs:!1,setup(){const o=A.useNamespace("popconfirm"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterPopconfirm,e.mergeProps({class:o.b()},s),r)}}),to=h.withInstall(eo);function no(o,s){var n;const r=R({},o),c=r.class,i=(n=r.popperClass)!=null?n:r["popper-class"];delete r.class,delete r.popperClass,delete r["popper-class"];const a=[s,i,c].flat(10).filter(t=>typeof t=="string"&&t.length>0);return{rest:r,popperClass:a.length?a:[s]}}const oo=e.defineComponent({name:"SyPopover",inheritAttrs:!1,setup(){const o=A.useNamespace("popover"),s=e.useAttrs(),r=e.useSlots();return()=>{const{rest:c,popperClass:i}=no(s,o.b());return e.h(p.AdapterPopover,e.mergeProps(c,{popperClass:i}),r)}}}),so=h.withInstall(oo),ro=e.defineComponent({name:"SyProgress",inheritAttrs:!1,setup(){const o=A.useNamespace("progress"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterProgress,e.mergeProps({class:o.b()},s),r)}}),lo=h.withInstall(ro),ao=e.defineComponent({name:"SyRadio",inheritAttrs:!1,setup(){const o=A.useNamespace("radio"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterRadio,e.mergeProps({class:o.b()},s),r)}}),co=e.defineComponent({name:"SyRadioGroup",inheritAttrs:!1,setup(){const o=A.useNamespace("radio-group"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterRadioGroup,e.mergeProps({class:o.b()},s),r)}}),Fe=h.withInstall(ao),rt=h.withInstall(co),io=e.defineComponent({name:"SyRadioButton",inheritAttrs:!1,setup(){const o=A.useNamespace("radio-button"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterRadioButton,e.mergeProps({class:o.b()},s),r)}}),lt=h.withInstall(io),po=e.defineComponent({name:"SyScrollbar",inheritAttrs:!1,setup(o,{expose:s}){const r=A.useNamespace("scrollbar"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({handleScroll:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.handleScroll)==null?void 0:t.call(n)},scrollTo:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.scrollTo)==null?void 0:l.call(t,...n)},setScrollTop:n=>{var t,l;return(l=(t=a.value)==null?void 0:t.setScrollTop)==null?void 0:l.call(t,n)},setScrollLeft:n=>{var t,l;return(l=(t=a.value)==null?void 0:t.setScrollLeft)==null?void 0:l.call(t,n)},update:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.update)==null?void 0:t.call(n)},wrapRef:()=>{var n;return(n=a.value)==null?void 0:n.wrapRef}}),()=>e.h(p.AdapterScrollbar,e.mergeProps({ref:a,class:r.b()},c),i)}}),mo=h.withInstall(po),fo=e.defineComponent({name:"SySelect",inheritAttrs:!1,setup(o,{expose:s}){const r=A.useNamespace("select"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({focus:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.blur)==null?void 0:t.call(n)}}),()=>e.h(p.AdapterSelect,e.mergeProps({ref:a,class:r.b()},c),i)}}),ho=e.defineComponent({name:"SyOption",inheritAttrs:!1,setup(){const o=A.useNamespace("option"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterOption,e.mergeProps({class:o.b()},s),r)}}),at=h.withInstall(fo),ct=h.withInstall(ho),uo=p.AdapterSelectV2,yo=e.defineComponent({name:"SySelectV2",inheritAttrs:!1,setup(o,{expose:s}){const r=A.useNamespace("select-v2"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({focus:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.blur)==null?void 0:t.call(n)},scrollTo:n=>{var t,l;return(l=(t=a.value)==null?void 0:t.scrollTo)==null?void 0:l.call(t,n)},toggleMenu:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.toggleMenu)==null?void 0:t.call(n)}}),()=>e.h(uo,e.mergeProps({ref:a,class:r.b()},c),i)}}),So=h.withInstall(yo),go=e.defineComponent({name:"SySkeleton",inheritAttrs:!1,setup(o,{expose:s}){const r=A.useNamespace("skeleton"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({get uiLoading(){var n;return(n=a.value)==null?void 0:n.uiLoading}}),()=>e.h(p.AdapterSkeleton,e.mergeProps({ref:a,class:r.b()},c),i)}}),bo=e.defineComponent({name:"SySkeletonItem",inheritAttrs:!1,setup(){const o=A.useNamespace("skeleton-item"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterSkeletonItem,e.mergeProps({class:o.b()},s),r)}}),Co=h.withInstall(go),wo=h.withInstall(bo),Ao=e.defineComponent({name:"SySlider",inheritAttrs:!1,setup(){const o=A.useNamespace("slider"),s=e.useAttrs(),r=e.useSlots(),c=e.ref();return()=>e.h(p.AdapterSlider,e.mergeProps({ref:c,class:o.b()},s),r)}}),ko=h.withInstall(Ao),No=e.defineComponent({name:"SySpace",inheritAttrs:!1,setup(){const o=A.useNamespace("space"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterSpace,e.mergeProps({class:o.b()},s),r)}}),xo=h.withInstall(No),Bo=e.defineComponent({name:"SySteps",inheritAttrs:!1,setup(){const o=A.useNamespace("steps"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterSteps,e.mergeProps({class:o.b()},s),r)}}),Po=e.defineComponent({name:"SyStep",inheritAttrs:!1,setup(){const o=A.useNamespace("step"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterStep,e.mergeProps({class:o.b()},s),r)}}),Vo=h.withInstall(Bo),_o=h.withInstall(Po),Ro=e.defineComponent({name:"SySwitch",inheritAttrs:!1,setup(o,{expose:s}){const r=A.useNamespace("switch"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({focus:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.focus)==null?void 0:t.call(n)}}),()=>e.h(p.AdapterSwitch,e.mergeProps({ref:a,class:r.b()},c),i)}}),Ve=h.withInstall(Ro),To=e.defineComponent({name:"SyTable",inheritAttrs:!1,setup(o,{expose:s}){const r=A.useNamespace("table"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({clearSelection:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.clearSelection)==null?void 0:t.call(n)},getSelectionRows:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.getSelectionRows)==null?void 0:t.call(n)},toggleRowSelection:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.toggleRowSelection)==null?void 0:l.call(t,...n)},toggleAllSelection:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.toggleAllSelection)==null?void 0:t.call(n)},toggleRowExpansion:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.toggleRowExpansion)==null?void 0:l.call(t,...n)},setCurrentRow:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.setCurrentRow)==null?void 0:l.call(t,...n)},clearSort:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.clearSort)==null?void 0:t.call(n)},clearFilter:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.clearFilter)==null?void 0:l.call(t,...n)},doLayout:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.doLayout)==null?void 0:t.call(n)},sort:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.sort)==null?void 0:l.call(t,...n)},scrollTo:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.scrollTo)==null?void 0:l.call(t,...n)},setScrollTop:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.setScrollTop)==null?void 0:l.call(t,...n)},setScrollLeft:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.setScrollLeft)==null?void 0:l.call(t,...n)}}),()=>e.h(p.AdapterTable,e.mergeProps({ref:a,class:r.b()},c),i)}}),Io=e.defineComponent({name:"SyTableColumn",inheritAttrs:!1,setup(){const o=A.useNamespace("table-column"),s=e.useAttrs(),r=e.useSlots();return()=>{const c=r.default?Q(R({},r),{default:(...i)=>{var a;return((a=r.default(...i))!=null?a:[]).map(n=>{var t;return((t=n==null?void 0:n.type)==null?void 0:t.name)==="SyTableColumn"?e.h(p.AdapterTableColumn,n.props,n.children):n})}}):r;return e.h(p.AdapterTableColumn,e.mergeProps({class:o.b()},s),c)}}}),De=h.withInstall(To),le=h.withInstall(Io),$o=e.defineComponent({name:"SyTabs",inheritAttrs:!1,setup(o,{expose:s}){const r=A.useNamespace("tabs"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({get currentName(){var n;return(n=a.value)==null?void 0:n.currentName},get tabNavRef(){var n;return(n=a.value)==null?void 0:n.tabNavRef}}),()=>e.h(p.AdapterTabs,e.mergeProps({ref:a,class:r.b()},c),i)}}),Eo=e.defineComponent({name:"SyTabPane",inheritAttrs:!1,setup(){const o=A.useNamespace("tab-pane"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterTabPane,e.mergeProps({class:o.b()},s),r)}}),Lo=h.withInstall($o),Mo=h.withInstall(Eo),Fo=e.defineComponent({name:"SyTag",inheritAttrs:!1,setup(o,{expose:s}){const r=A.useNamespace("tag"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({ref:()=>a.value}),()=>e.h(p.AdapterTag,e.mergeProps({ref:a,class:r.b()},c),i)}}),_e=h.withInstall(Fo),Do=e.defineComponent({name:"SyText",inheritAttrs:!1,setup(){const o=A.useNamespace("text"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterText,e.mergeProps({class:o.b()},s),r)}}),zo=h.withInstall(Do),Oo=e.defineComponent({name:"SyTimePicker",inheritAttrs:!1,setup(o,{expose:s}){const r=A.useNamespace("time-picker"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({focus:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.blur)==null?void 0:t.call(n)},handleOpen:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.handleOpen)==null?void 0:t.call(n)},handleClose:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.handleClose)==null?void 0:t.call(n)}}),()=>e.h(p.AdapterTimePicker,e.mergeProps({ref:a,class:r.b()},c),i)}}),it=h.withInstall(Oo),Ho=e.defineComponent({name:"SyTimeSelect",inheritAttrs:!1,setup(o,{expose:s}){const r=A.useNamespace("time-select"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({focus:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.blur)==null?void 0:t.call(n)}}),()=>e.h(p.AdapterTimeSelect,e.mergeProps({ref:a,class:r.b()},c),i)}}),dt=h.withInstall(Ho);function Uo(o,s){var n;const r=R({},o),c=r.class,i=(n=r.popperClass)!=null?n:r["popper-class"];delete r.class,delete r.popperClass,delete r["popper-class"];const a=[s,i,c].flat(10).filter(t=>typeof t=="string"&&t.length>0);return{rest:r,popperClass:a.length?a:[s]}}const qo=e.defineComponent({name:"SyTooltip",inheritAttrs:!1,setup(){const o=A.useNamespace("tooltip"),s=e.useAttrs(),r=e.useSlots();return()=>{const{rest:c,popperClass:i}=Uo(s,o.b());return e.h(p.AdapterTooltip,e.mergeProps(c,{popperClass:i}),r)}}}),pe=h.withInstall(qo),jo=e.defineComponent({name:"SyTree",inheritAttrs:!1,setup(o,{expose:s}){const r=A.useNamespace("tree"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({filter:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.filter)==null?void 0:l.call(t,...n)},updateKeyChildren:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.updateKeyChildren)==null?void 0:l.call(t,...n)},getCheckedNodes:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.getCheckedNodes)==null?void 0:l.call(t,...n)},getCheckedKeys:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.getCheckedKeys)==null?void 0:l.call(t,...n)},setCheckedNodes:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.setCheckedNodes)==null?void 0:l.call(t,...n)},setCheckedKeys:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.setCheckedKeys)==null?void 0:l.call(t,...n)},setChecked:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.setChecked)==null?void 0:l.call(t,...n)},getHalfCheckedNodes:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.getHalfCheckedNodes)==null?void 0:l.call(t,...n)},getHalfCheckedKeys:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.getHalfCheckedKeys)==null?void 0:l.call(t,...n)},getCurrentKey:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.getCurrentKey)==null?void 0:l.call(t,...n)},getCurrentNode:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.getCurrentNode)==null?void 0:l.call(t,...n)},setCurrentKey:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.setCurrentKey)==null?void 0:l.call(t,...n)},setCurrentNode:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.setCurrentNode)==null?void 0:l.call(t,...n)},getNode:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.getNode)==null?void 0:l.call(t,...n)},remove:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.remove)==null?void 0:l.call(t,...n)},append:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.append)==null?void 0:l.call(t,...n)},insertBefore:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.insertBefore)==null?void 0:l.call(t,...n)},insertAfter:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.insertAfter)==null?void 0:l.call(t,...n)}}),()=>e.h(p.AdapterTree,e.mergeProps({ref:a,class:r.b()},c),i)}}),Ko=h.withInstall(jo),Go=e.defineComponent({name:"SyTreeSelect",inheritAttrs:!1,setup(o,{expose:s}){const r=A.useNamespace("tree-select"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({focus:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.blur)==null?void 0:t.call(n)},filter:n=>{var t,l;return(l=(t=a.value)==null?void 0:t.filter)==null?void 0:l.call(t,n)},updateKeyChildren:(n,t)=>{var l,k;return(k=(l=a.value)==null?void 0:l.updateKeyChildren)==null?void 0:k.call(l,n,t)}}),()=>e.h(p.AdapterTreeSelect,e.mergeProps({ref:a,class:r.b()},c),i)}}),Yo=h.withInstall(Go),Wo=e.defineComponent({name:"SyUpload",inheritAttrs:!1,setup(o,{expose:s}){const r=A.useNamespace("upload"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({abort:n=>{var t,l;return(l=(t=a.value)==null?void 0:t.abort)==null?void 0:l.call(t,n)},submit:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.submit)==null?void 0:t.call(n)},clearFiles:n=>{var t,l;return(l=(t=a.value)==null?void 0:t.clearFiles)==null?void 0:l.call(t,n)},handleStart:n=>{var t,l;return(l=(t=a.value)==null?void 0:t.handleStart)==null?void 0:l.call(t,n)},handleRemove:n=>{var t,l;return(l=(t=a.value)==null?void 0:t.handleRemove)==null?void 0:l.call(t,n)}}),()=>e.h(p.AdapterUpload,e.mergeProps({ref:a,class:r.b()},c),i)}}),Qo=h.withInstall(Wo),Jo={input:$e,"input-number":et,"time-picker":it,"time-select":dt,autocomplete:p.AdapterAutocomplete,switch:Ve,slider:p.AdapterSlider,"color-picker":p.AdapterColorPicker},ze={input:o=>({placeholder:o.placeholder,clearable:o.clearable,style:"width: 100%"}),"input-number":o=>({placeholder:o.placeholder,style:"width: 100%"}),"time-picker":o=>({placeholder:o.placeholder,clearable:o.clearable,style:"width: 100%"}),"time-select":o=>({placeholder:o.placeholder,clearable:o.clearable,style:"width: 100%"}),autocomplete:o=>({placeholder:o.placeholder,clearable:o.clearable,style:"width: 100%"}),switch:()=>({}),slider:()=>({style:"width: 100%; padding: 0 6px"}),"color-picker":()=>({})};function Zo(o){return o?Object.fromEntries(Object.entries(o).map(([s,r])=>[s.startsWith("on")?s:`on${s[0].toUpperCase()}${s.slice(1)}`,r])):{}}const Oe=e.defineComponent({name:"ProFormItem",props:{schema:{type:Object,required:!0},model:{type:Object,required:!0},modelValue:{default:void 0}},emits:["update:modelValue"],setup(o,{emit:s}){const r=e.inject("proTableEnumMap",{value:new Map}),c=e.computed({get:()=>o.modelValue,set:u=>s("update:modelValue",u)}),i=e.computed(()=>{var u,m;return(m=(u=o.schema.fieldNames)==null?void 0:u.label)!=null?m:"label"}),a=e.computed(()=>{var u,m;return(m=(u=o.schema.fieldNames)==null?void 0:u.value)!=null?m:"value"}),n=e.computed(()=>{var u,m;return(m=(u=o.schema.fieldNames)==null?void 0:u.children)!=null?m:"children"}),t=e.computed(()=>{var u;return o.schema.options!=null?o.schema.options:(u=r.value.get(o.schema.field))!=null?u:[]}),l=e.computed(()=>{const{label:u,value:m}={label:i.value,value:a.value};return u==="label"&&m==="value"?t.value:t.value.map(y=>Q(R({},y),{label:y[u],value:y[m]}))}),k=e.computed(()=>{const u=R({},o.schema.props),{label:m,value:y,children:B}={label:i.value,value:a.value,children:n.value};return Q(R({},u),{props:Q(R({},u.props),{label:m,children:B}),nodeKey:y})}),w=e.computed(()=>{const u=R({},o.schema.props),{label:m,value:y,children:B}={label:i.value,value:a.value,children:n.value};return Q(R({},u),{props:Q(R({},u.props),{label:m,value:y,children:B})})}),x=e.computed(()=>R({},o.schema.props)),_=e.computed(()=>{var m,y,B;const u=(y=(m=o.schema.props)==null?void 0:m.type)!=null?y:"";return["daterange","datetimerange","monthrange","yearrange"].includes(u)||!!((B=o.schema.props)!=null&&B.isRange)}),T=e.computed(()=>{var m,y;if(((m=o.schema.props)==null?void 0:m.placeholder)!=null)return o.schema.props.placeholder;const u=(y=o.schema.component)!=null?y:"input";return["input","input-number","autocomplete"].includes(u)?"请输入":"请选择"}),g=e.computed(()=>{var u;return((u=o.schema.props)==null?void 0:u.clearable)!=null?o.schema.props.clearable:o.schema.defaultValue==null}),C=e.computed(()=>{var m,y,B;const u=R({},o.schema.props);return _.value?Q(R({},u),{rangeSeparator:(m=u.rangeSeparator)!=null?m:"至",startPlaceholder:(y=u.startPlaceholder)!=null?y:"开始时间",endPlaceholder:(B=u.endPlaceholder)!=null?B:"结束时间",clearable:g.value}):Q(R({},u),{placeholder:T.value,clearable:g.value})});return()=>{var F,M,D,E,L,K,q,J;const{schema:u}=o,m=(F=u.component)!=null?F:"input",y=Zo(u.events),B={modelValue:c.value,"onUpdate:modelValue":H=>c.value=H};if(u.render)return u.render(o.model);if(m==="text")return e.h("span",{class:"sy-pro-form-item__text"},String((M=c.value)!=null?M:""));if(m==="select")return e.h(at,Q(R(R(R({},B),x.value),y),{placeholder:T.value,clearable:g.value,style:"width: 100%"}),{default:e.withCtx(()=>t.value.map(H=>e.h(ct,{key:H[a.value],label:H[i.value],value:H[a.value]})))});if(m==="select-v2")return e.h(p.AdapterSelectV2,Q(R(R(R({},B),x.value),y),{placeholder:T.value,clearable:g.value,options:l.value,style:"width: 100%"}));if(m==="tree-select"){const H=(E=(D=o.schema.props)==null?void 0:D.data)!=null?E:t.value;return e.h(p.AdapterTreeSelect,Q(R(R(R({},B),k.value),y),{placeholder:T.value,clearable:g.value,data:H,style:"width: 100%"}))}if(m==="cascader"){const H=(K=(L=o.schema.props)==null?void 0:L.options)!=null?K:t.value;return e.h(Ge,Q(R(R(R({},B),w.value),y),{placeholder:T.value,clearable:g.value,options:H,style:"width: 100%"}))}if(m==="radio"||m==="radio-button"){const H=m==="radio"?Fe:lt;return e.h(rt,R(R(R({},B),x.value),y),{default:()=>t.value.map(Z=>e.h(H,{key:Z[a.value],value:Z[a.value]},{default:()=>String(Z[i.value])}))})}if(m==="checkbox")return e.h(We,R(R(R({},B),x.value),y),{default:()=>t.value.map(H=>e.h(Ye,{key:H[a.value],value:H[a.value]},{default:()=>String(H[i.value])}))});if(m==="date-picker")return e.h(Qe,Q(R(R(R({},B),C.value),y),{style:"width: 100%"}));const $=Jo[m];if($){const H=(J=(q=ze[m])==null?void 0:q.call(ze,{placeholder:T.value,clearable:g.value}))!=null?J:{};return e.h($,R(R(R(R({},B),x.value),y),H))}return e.h($e,Q(R(R(R({},B),x.value),y),{placeholder:T.value,clearable:g.value,style:"width: 100%"}))}}}),Xo=2,vo=e.defineComponent({name:"SyProForm",__name:"ProForm",props:{model:{},schema:{},cols:{},labelWidth:{},labelPosition:{},disabled:{type:Boolean,default:!1},size:{},showQueryBtn:{type:Boolean,default:!0},showResetBtn:{type:Boolean,default:!0},queryBtnText:{default:"查询"},resetBtnText:{default:"重置"},loading:{type:Boolean,default:!1},collapsible:{type:[Boolean,Number],default:!1},defaultCollapsed:{type:Boolean,default:!0},buttonAlign:{default:"inline"}},emits:["search","reset"],setup(o,{expose:s,emit:r}){var ae,ce;const c=e.useSlots(),i=o,a=(ae=e.inject(h.SY_UI_CONFIG_KEY,{}).proForm)!=null?ae:{},n=(ce=h.getMasterConfig(h.detectMicroAppName()).proForm)!=null?ce:{},t=e.computed(()=>{var S,P,N;return(N=(P=(S=n.cols)!=null?S:i.cols)!=null?P:a.cols)!=null?N:4}),l=e.computed(()=>{var S,P,N;return(N=(P=(S=n.labelWidth)!=null?S:i.labelWidth)!=null?P:a.labelWidth)!=null?N:"auto"}),k=e.computed(()=>{var S,P,N;return(N=(P=(S=n.labelPosition)!=null?S:i.labelPosition)!=null?P:a.labelPosition)!=null?N:"right"}),w=e.computed(()=>{var S,P;return(P=(S=n.size)!=null?S:i.size)!=null?P:a.size}),x=r;A.useNamespace("pro-form");const _=e.ref(),T=e.ref(i.defaultCollapsed),g=e.ref("xl");function C(){const S=window.innerWidth;return S<768?"xs":S<992?"sm":S<1200?"md":S<1920?"lg":"xl"}function u(){g.value=C()}e.onMounted(()=>{g.value=C(),window.addEventListener("resize",u)}),e.onUnmounted(()=>{window.removeEventListener("resize",u)});const m=e.computed(()=>i.schema.filter(S=>typeof S.hidden=="function"?!S.hidden(i.model):!S.hidden).sort((S,P)=>{var N,U;return((N=S.order)!=null?N:0)-((U=P.order)!=null?U:0)}));function y(S){var N,U,j;const P=g.value;return(j=(U=(N=S[P])==null?void 0:N.span)!=null?U:S.span)!=null?j:1}function B(S){var N,U,j;const P=g.value;return(j=(U=(N=S[P])==null?void 0:N.offset)!=null?U:S.offset)!=null?j:0}const $=e.computed(()=>{var N,U,j,ne,oe,re;const S=t.value;if(typeof S=="number")return S;const P=g.value;return(re=(oe=(ne=(j=(U=(N=S==null?void 0:S[P])!=null?N:S==null?void 0:S.xl)!=null?U:S==null?void 0:S.lg)!=null?j:S==null?void 0:S.md)!=null?ne:S==null?void 0:S.sm)!=null?oe:S==null?void 0:S.xs)!=null?re:4}),F=e.computed(()=>{const S=i.collapsible;return typeof S=="number"&&S>0?S:1}),M=e.computed(()=>{if(!i.collapsible)return-1;const S=i.buttonAlign==="inline"&&(i.showQueryBtn||i.showResetBtn||!!c["extra-buttons"]||!!c.buttons),P=$.value*F.value-(S?Xo:0);if(P<=0)return 0;let N=0;for(let U=0;U<m.value.length;U++){const j=m.value[U];if(N+=y(j)+B(j),N>P)return U}return-1}),D=e.computed(()=>M.value>=0),E=e.computed(()=>({display:"grid",gridTemplateColumns:`repeat(${$.value}, 1fr)`,gap:"0 16px"}));function L(S){const P=$.value,N=Math.min(y(S),P),U=B(S),j={gridColumn:`span ${N}`};return U>0&&(j.marginLeft=`calc(${U/P*100}% + ${U*16}px)`),j}const K=e.computed(()=>{const S=$.value,P=m.value,N=i.collapsible&&T.value&&M.value>=0?M.value:P.length;let U=0;for(let j=0;j<N;j++){const ne=y(P[j]),oe=B(P[j]),re=U+ne+oe;U=re>=S?re%S:re}return U}),q=e.computed(()=>{const S=K.value;return{gridColumn:`${S===0?1:S+1} / -1`}}),J={left:"flex-start",center:"center",right:"flex-end"},H=e.computed(()=>{var P;const S={justifyContent:(P=J[i.buttonAlign])!=null?P:"flex-start"};if(i.buttonAlign==="left"&&k.value!=="top"){const N=l.value;N&&N!=="auto"&&(S.paddingLeft=typeof N=="number"?`${N}px`:String(N))}return S}),Z=e.computed(()=>i.showQueryBtn||i.showResetBtn||!!c["extra-buttons"]||!!c.buttons);function W(S,P){i.model[S]=P}function ee(){var S;(S=_.value)==null||S.validate(P=>{P&&x("search",i.model)})}function te(){var S,P;for(const N of i.schema)W(N.field,(S=N.defaultValue)!=null?S:null);(P=_.value)==null||P.clearValidate(),x("reset",i.model)}return s({formRef:_,validate:S=>{var P;return(P=_.value)==null?void 0:P.validate(S)},validateField:(S,P)=>{var N;return(N=_.value)==null?void 0:N.validateField(S,P)},resetFields:te,clearValidate:S=>{var P;return(P=_.value)==null?void 0:P.clearValidate(S)}}),(S,P)=>(e.openBlock(),e.createBlock(e.unref(Xe),{ref_key:"formRef",ref:_,class:"sy-pro-form",model:o.model,"label-width":l.value,"label-position":k.value,disabled:o.disabled,size:w.value,onSubmit:P[2]||(P[2]=e.withModifiers(()=>{},["prevent"]))},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"sy-pro-form__grid",style:e.normalizeStyle(E.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(N,U)=>{var j;return e.openBlock(),e.createElementBlock(e.Fragment,{key:N.field},[!o.collapsible||!T.value||M.value<0||U<M.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"sy-pro-form__grid-item",style:e.normalizeStyle(L(N))},[e.createCommentVNode(" slot 类型:渲染具名插槽,用户自行提供完整的 sy-form-item 内容 "),N.component==="slot"?e.renderSlot(S.$slots,N.field,{key:0,item:N}):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createCommentVNode(" 内置组件类型:走原有渲染路径 "),e.createVNode(e.unref(ve),e.mergeProps({prop:N.field,label:(j=N.label)!=null?j:""},{ref_for:!0},N.labelWidth!=null?{labelWidth:N.labelWidth}:{},{rules:N.rules}),e.createSlots({default:e.withCtx(()=>[e.createVNode(Oe,{"model-value":o.model[N.field],schema:N,model:o.model,"onUpdate:modelValue":ne=>W(N.field,ne)},null,8,["model-value","schema","model","onUpdate:modelValue"])]),_:2},[N.tooltip?{name:"label",fn:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(N.label),1),e.createVNode(e.unref(pe),{content:N.tooltip,placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(fe),{class:"sy-pro-form__tip-icon",style:{"margin-left":"4px","vertical-align":"middle",cursor:"pointer"}},{default:e.withCtx(()=>[e.createVNode(e.unref(X.InfoFilled))]),_:1})]),_:1},8,["content"])]),key:"0"}:void 0]),1040,["prop","label","rules"])],2112))],4)):e.createCommentVNode("v-if",!0)],64)}),128)),e.createCommentVNode(" 默认插槽:额外自定义字段 "),e.renderSlot(S.$slots,"default"),e.createCommentVNode(" 按钮区 —— inline 模式:在网格内贴右 "),o.buttonAlign==="inline"&&(Z.value||o.collapsible&&D.value)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"sy-pro-form__grid-item sy-pro-form__buttons",style:e.normalizeStyle(q.value)},[e.renderSlot(S.$slots,"buttons",{},()=>[o.showQueryBtn?(e.openBlock(),e.createBlock(e.unref(Y),{key:0,type:"primary",loading:o.loading,onClick:ee},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.queryBtnText),1)]),_:1},8,["loading"])):e.createCommentVNode("v-if",!0),o.showResetBtn?(e.openBlock(),e.createBlock(e.unref(Y),{key:1,onClick:te},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.resetBtnText),1)]),_:1})):e.createCommentVNode("v-if",!0),e.renderSlot(S.$slots,"extra-buttons")]),o.collapsible&&D.value?(e.openBlock(),e.createBlock(e.unref(Y),{key:0,type:"primary",link:"",onClick:P[0]||(P[0]=N=>T.value=!T.value)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(T.value?"展开":"合并")+" ",1),e.createVNode(e.unref(fe),{style:{"margin-left":"2px"}},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(T.value?e.unref(X.ArrowDown):e.unref(X.ArrowUp))))]),_:1})]),_:1})):e.createCommentVNode("v-if",!0)],4)):e.createCommentVNode("v-if",!0)],4),e.createCommentVNode(" 按钮区 —— 独立成行模式(left / center / right) "),o.buttonAlign!=="inline"&&(Z.value||o.collapsible&&D.value)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"sy-pro-form__footer",style:e.normalizeStyle(H.value)},[e.renderSlot(S.$slots,"buttons",{},()=>[o.showQueryBtn?(e.openBlock(),e.createBlock(e.unref(Y),{key:0,type:"primary",loading:o.loading,onClick:ee},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.queryBtnText),1)]),_:1},8,["loading"])):e.createCommentVNode("v-if",!0),o.showResetBtn?(e.openBlock(),e.createBlock(e.unref(Y),{key:1,onClick:te},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.resetBtnText),1)]),_:1})):e.createCommentVNode("v-if",!0),e.renderSlot(S.$slots,"extra-buttons")]),o.collapsible&&D.value?(e.openBlock(),e.createBlock(e.unref(Y),{key:0,type:"primary",link:"",onClick:P[1]||(P[1]=N=>T.value=!T.value)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(T.value?"展开":"合并")+" ",1),e.createVNode(e.unref(fe),{style:{"margin-left":"2px"}},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(T.value?e.unref(X.ArrowDown):e.unref(X.ArrowUp))))]),_:1})]),_:1})):e.createCommentVNode("v-if",!0)],4)):e.createCommentVNode("v-if",!0)]),_:3},8,["model","label-width","label-position","disabled","size"]))}}),pt=h.withInstall(vo);function es(o="id"){const s=e.ref([]),r=e.computed(()=>s.value.length>0),c=e.computed(()=>s.value.map(n=>n[o]));function i(n){s.value=n}function a(){s.value=[]}return{selectedList:s,isSelected:r,selectedListIds:c,selectionChange:i,clearSelection:a}}function ts(o){const{request:s,params:r,searchParam:c,postData:i,requestError:a,pagination:n=!0,staticData:t,initialPageSize:l}=o,k=e.ref(!1),w=e.ref([]),x=e.reactive({pageNum:1,pageSize:l!=null?l:10,total:0}),_=e.reactive({}),T=e.reactive({}),g=e.computed(()=>{if(!(t!=null&&t.value))return w.value;if(!n)return t.value;const M=(x.pageNum-1)*x.pageSize;return t.value.slice(M,M+x.pageSize)});function C(M,D){for(const[E,L]of Object.entries(M))(L!=null&&L!==""||L===!1||L===0)&&(D[E]=L)}function u(){const M={};return C(T,M),c!=null&&c.value&&C(c.value,M),M}function m(){return Te(this,null,function*(){var M,D,E;if(t!=null&&t.value){x.total=t.value.length;return}if(s)try{k.value=!0;const L=u(),K=R(R(R({},_),L),(M=r==null?void 0:r.value)!=null?M:{});n&&(K.pageNum=x.pageNum,K.pageSize=x.pageSize);const q=yield s(K);if(!q.success){a==null||a(q);return}let J=(D=q.data)!=null?D:[];i&&(J=i(J)),w.value=J,n&&(x.total=(E=q.total)!=null?E:0)}catch(L){a==null||a(L)}finally{k.value=!1}})}function y(){x.pageNum=1,m()}function B(){var M;x.pageNum=1;for(const D of Object.keys(T))T[D]=(M=_[D])!=null?M:null;m()}function $(M){x.pageSize=M,x.pageNum=1,m()}function F(M){x.pageNum=M,m()}return r&&e.watch(r,()=>m(),{deep:!0}),{loading:k,tableData:w,pageable:x,processTableData:g,searchParam:T,searchInitParam:_,getTableList:m,search:y,reset:B,handleSizeChange:$,handleCurrentChange:F}}function mt(o){var r;const s=[];for(const c of o)(r=c.children)!=null&&r.length?s.push(c,...mt(c.children)):s.push(c);return s}const ft={border:!1,stripe:!1,rowKey:"id",type:"custom",searchCols:4,panelCols:1,filterChipWidth:140,filterChipMax:3,pageSizes:[10,20,50,100],pageLayout:"total, sizes, prev, pager, next, jumper",autoHeight:!1};function ns(o,s,r){var oe,re,Re,we;const i=(oe=e.inject(h.SY_UI_CONFIG_KEY,{}).proTable)!=null?oe:{},a=(re=h.getMasterConfig(h.detectMicroAppName()).proTable)!=null?re:{},n=new Proxy(o,{get(d,b,V){const I=a[b];if(I!==void 0)return I;const z=Reflect.get(d,b,V);if(z!==void 0)return z;const O=b;if(O in i&&i[O]!==void 0)return i[O];const v=b;if(v in ft)return ft[v]}}),t=n,l=e.ref(),k=e.ref(),w=e.ref(),x=e.ref(t.type!=="unify"&&t.type!=="custom"),_=e.ref(null),T=e.computed(()=>e.reactive(mt(o.columns))),g=e.ref(new Map);function C(d){return Te(this,null,function*(){var V;if(!d.enum||!d.prop)return;const b=d.enum;if(typeof b=="function"){g.value.set(d.prop,[]);try{const I=yield b();g.value.set(d.prop,I)}catch(I){}}else g.value.set(d.prop,Array.isArray(b)?b:(V=b.value)!=null?V:[])})}e.provide("proTableEnumMap",g),e.provide("proTableSlots",r);const u=e.computed(()=>T.value.filter(d=>{var b,V;return((b=d.search)==null?void 0:b.component)||((V=d.search)==null?void 0:V.render)}).sort((d,b)=>{var V,I,z,O;return((I=(V=d.search)==null?void 0:V.order)!=null?I:0)-((O=(z=b.search)==null?void 0:z.order)!=null?O:0)})),m=e.computed(()=>u.value.filter(d=>{var b;return!!((b=d.search)!=null&&b.quick)}).sort((d,b)=>{var z,O,v,G,me,Ae;const V=typeof((z=d.search)==null?void 0:z.quick)=="object"&&(v=(O=d.search)==null?void 0:O.quick.order)!=null?v:0,I=typeof((G=b.search)==null?void 0:G.quick)=="object"&&(Ae=(me=b.search)==null?void 0:me.quick.order)!=null?Ae:0;return V-I})),y=e.computed(()=>u.value.map(d=>{var b,V,I,z,O,v,G,me,Ae,yt,St,gt,bt,Ct,wt;return{field:(I=(V=(b=d.search)==null?void 0:b.key)!=null?V:d.prop)!=null?I:"",label:d.label,component:(z=d.search)==null?void 0:z.component,props:(O=d.search)==null?void 0:O.props,options:(()=>{var At,kt,Nt,xt,Bt,Pt,Vt;if(((At=d.search)==null?void 0:At.options)!==void 0){const Ke=d.search.options;return Array.isArray(Ke)?Ke:(kt=e.unref(Ke))!=null?kt:void 0}if(!(!d.enum||(xt=(Nt=d.search)==null?void 0:Nt.component)!=null&&xt.includes("tree")))return typeof d.enum=="function"?(Pt=g.value.get((Bt=d.prop)!=null?Bt:""))!=null?Pt:void 0:Array.isArray(d.enum)?d.enum:(Vt=e.unref(d.enum))!=null?Vt:void 0})(),fieldNames:d.fieldNames,defaultValue:(v=d.search)==null?void 0:v.defaultValue,span:(G=d.search)==null?void 0:G.span,offset:(me=d.search)==null?void 0:me.offset,order:(Ae=d.search)==null?void 0:Ae.order,render:(yt=d.search)==null?void 0:yt.render,xs:(St=d.search)==null?void 0:St.xs,sm:(gt=d.search)==null?void 0:gt.sm,md:(bt=d.search)==null?void 0:bt.md,lg:(Ct=d.search)==null?void 0:Ct.lg,xl:(wt=d.search)==null?void 0:wt.xl}})),B=e.ref({}),$={};function F(){var d,b,V,I,z;for(const O of Object.keys(B.value))delete B.value[O];for(const O of Object.keys($))delete $[O];for(const O of u.value){const v=(V=(b=(d=O.search)==null?void 0:d.key)!=null?b:O.prop)!=null?V:"",G=(z=(I=O.search)==null?void 0:I.defaultValue)!=null?z:null;B.value[v]=G,$[v]=G}}const{loading:M,processTableData:D,pageable:E,getTableList:L,handleSizeChange:K,handleCurrentChange:q}=ts({request:o.request,params:e.toRef(o,"params"),searchParam:B,postData:o.postData,requestError:o.requestError,pagination:o.pagination,staticData:e.computed(()=>o.data),initialPageSize:(we=(Re=t.pageSize)!=null?Re:i.pageSize)!=null?we:10});function J(){Object.assign(E,{pageNum:1}),L(),s("search")}function H(){F(),Object.assign(E,{pageNum:1}),L(),s("reset")}const{selectedList:Z,isSelected:W,selectedListIds:ee,selectionChange:te,clearSelection:ae}=es(t.rowKey);function ce(){var d,b;ae(),(b=(d=l.value)==null?void 0:d.clearSelection)==null||b.call(d)}function S(d){var b;_.value=d[(b=t.rowKey)!=null?b:"id"]}function P(){var d,b;_.value=null,(b=(d=l.value)==null?void 0:d.setCurrentRow)==null||b.call(d,void 0)}function N(d){L()}function U(d){return t.toolButton===!0?!0:t.toolButton===!1?!1:t.toolButton.includes(d)}function j(){x.value=!x.value}function ne(){var d,b;(b=(d=w.value)==null?void 0:d.open)==null||b.call(d)}return e.onMounted(()=>Te(this,null,function*(){for(const d of T.value)C(d);F(),o.manualRequest||L()})),{props:n,tableRef:l,formRef:k,colSettingRef:w,flatColumns:T,enumMap:g,searchColumns:u,quickSearchColumns:m,searchSchema:y,searchParam:B,searchInitParam:$,loading:M,tableData:D,pageable:E,selectedList:Z,selectedListIds:ee,isSelected:W,radio:_,isShowSearch:x,getTableList:L,search:J,reset:H,clearSelection:ce,clearRadio:P,handleSizeChange:K,handleCurrentChange:q,onSortChange:N,onRadioChange:S,selectionChange:te,showToolBtn:U,toggleSearch:j,openColSetting:ne}}const os={key:1,style:{color:"var(--el-text-color-placeholder)"}},ss=e.defineComponent({__name:"ColSetting",props:{columns:{}},setup(o,{expose:s}){const r=o,c=e.ref(!1),i=e.computed(()=>r.columns.filter(l=>{if(l.type&&["selection","index","expand","radio","sort"].includes(l.type))return!1;const k=l.isSetting;return k===void 0||k===!0}));e.computed(()=>i.value.every(l=>l.isShow!==!1)),e.computed(()=>{const l=i.value.length,k=i.value.filter(w=>w.isShow!==!1).length;return k>0&&k<l});const a=new WeakMap;function n(){i.value.forEach(l=>{a.has(l)||a.set(l,{isShow:l.isShow!==!1,sortable:l.sortable})})}function t(){n(),c.value=!0}return s({open:t}),(l,k)=>(e.openBlock(),e.createBlock(e.unref(Je),{modelValue:c.value,"onUpdate:modelValue":k[0]||(k[0]=w=>c.value=w),title:"列设置",size:"380px","append-to-body":!0,class:"sy-pro-table__col-setting"},{default:e.withCtx(()=>[e.createCommentVNode(" 全选 + 重置 "),e.createCommentVNode(` <div class="sy-pro-table__col-setting-toolbar">
|
|
4
|
+
*/const ye=e.defineComponent({name:"SyAutocomplete",inheritAttrs:!1,setup(o,{expose:s}){const r=N.useNamespace("autocomplete"),c=e.useAttrs(),i=e.useSlots(),l=e.ref();return s({focus:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.blur)==null?void 0:t.call(n)},close:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.close)==null?void 0:t.call(n)},highlight:n=>{var t,a;return(a=(t=l.value)==null?void 0:t.highlight)==null?void 0:a.call(t,n)},handleKeyEnter:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.handleKeyEnter)==null?void 0:t.call(n)},handleSelect:n=>{var t,a;return(a=(t=l.value)==null?void 0:t.handleSelect)==null?void 0:a.call(t,n)}}),()=>e.h(p.AdapterAutocomplete,e.mergeProps({ref:l,class:r.b()},c),i)}}),de=h.withInstall(ye),Se=e.defineComponent({name:"SyAlert",inheritAttrs:!1,setup(){const o=N.useNamespace("alert"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterAlert,e.mergeProps({class:o.b()},s),r)}}),$t=h.withInstall(Se),Lt=e.defineComponent({name:"SyBacktop",inheritAttrs:!1,setup(){const o=N.useNamespace("backtop"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterBacktop,e.mergeProps({class:o.b()},s),r)}}),Et=h.withInstall(Lt),Mt=e.defineComponent({name:"SyButton",inheritAttrs:!1,setup(o,{expose:s}){const r=N.useNamespace("button"),c=e.useAttrs(),i=e.useSlots(),l=e.ref();return s({focus:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.blur)==null?void 0:t.call(n)}}),()=>e.h(p.AdapterButton,e.mergeProps({ref:l,class:r.b()},c),i)}}),Y=h.withInstall(Mt),Ft=e.defineComponent({name:"SyCard",inheritAttrs:!1,setup(){const o=N.useNamespace("card"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterCard,e.mergeProps({class:o.b()},s),r)}}),Dt=h.withInstall(Ft),zt=e.defineComponent({name:"SyCascader",inheritAttrs:!1,setup(){const o=N.useNamespace("cascader"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterCascader,e.mergeProps({class:o.b()},s),r)}}),We=h.withInstall(zt),Ot=e.defineComponent({name:"SyCheckbox",inheritAttrs:!1,setup(){const o=N.useNamespace("checkbox"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterCheckbox,e.mergeProps({class:o.b()},s),r)}}),Ht=e.defineComponent({name:"SyCheckboxGroup",inheritAttrs:!1,setup(){const o=N.useNamespace("checkbox-group"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterCheckboxGroup,e.mergeProps({class:o.b()},s),r)}}),Ye=h.withInstall(Ot),Qe=h.withInstall(Ht),Ut=e.defineComponent({name:"SyCheckboxButton",inheritAttrs:!1,setup(){const o=N.useNamespace("checkbox-button"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterCheckboxButton,e.mergeProps({class:o.b()},s),r)}}),qt=h.withInstall(Ut),jt=e.defineComponent({name:"SyColorPicker",inheritAttrs:!1,setup(o,{expose:s}){const r=N.useNamespace("color-picker"),c=e.useAttrs(),i=e.useSlots(),l=e.ref();return s({show:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.show)==null?void 0:t.call(n)},hide:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.hide)==null?void 0:t.call(n)},focus:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.blur)==null?void 0:t.call(n)}}),()=>e.h(p.AdapterColorPicker,e.mergeProps({ref:l,class:r.b()},c),i)}}),Kt=h.withInstall(jt),Gt=e.defineComponent({name:"SyCollapse",inheritAttrs:!1,setup(){const o=N.useNamespace("collapse"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterCollapse,e.mergeProps({class:o.b()},s),r)}}),Wt=e.defineComponent({name:"SyCollapseItem",inheritAttrs:!1,setup(){const o=N.useNamespace("collapse-item"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterCollapseItem,e.mergeProps({class:o.b()},s),r)}}),Yt=h.withInstall(Gt),Qt=h.withInstall(Wt),Jt=new Set(["SyHeader","SyFooter","ElHeader","ElFooter"]);function Zt(o){return o.some(s=>{var c;const r=(c=s.type)==null?void 0:c.name;return!!r&&Jt.has(r)})}const Xt=e.defineComponent({name:"SyContainer",inheritAttrs:!1,setup(){const o=N.useNamespace("container"),s=e.useAttrs(),r=e.useSlots();return()=>{const c={class:o.b()};if(!("direction"in s)&&r.default){const i=r.default();Zt(i)&&(c.direction="vertical")}return e.h(p.AdapterContainer,e.mergeProps(c,s),r)}}}),vt=e.defineComponent({name:"SyHeader",inheritAttrs:!1,setup(){const o=N.useNamespace("header"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterHeader,e.mergeProps({class:o.b()},s),r)}}),en=e.defineComponent({name:"SyAside",inheritAttrs:!1,setup(){const o=N.useNamespace("aside"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterAside,e.mergeProps({class:o.b()},s),r)}}),tn=e.defineComponent({name:"SyMain",inheritAttrs:!1,setup(){const o=N.useNamespace("main"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterMain,e.mergeProps({class:o.b()},s),r)}}),nn=e.defineComponent({name:"SyFooter",inheritAttrs:!1,setup(){const o=N.useNamespace("footer"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterFooter,e.mergeProps({class:o.b()},s),r)}}),on=h.withInstall(Xt),sn=h.withInstall(vt),rn=h.withInstall(en),ln=h.withInstall(tn),an=h.withInstall(nn),cn=e.defineComponent({name:"SyConfigProvider",inheritAttrs:!1,setup(o,{expose:s}){const r=e.useAttrs(),c=e.useSlots(),i=e.ref();return s({}),()=>e.h(p.AdapterConfigProvider,e.mergeProps({ref:i},r),c)}}),dn=h.withInstall(cn),pn=e.defineComponent({name:"SyDatePicker",inheritAttrs:!1,setup(o,{expose:s}){const r=N.useNamespace("date-picker"),c=e.useAttrs(),i=e.useSlots(),l=e.ref();return s({focus:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.blur)==null?void 0:t.call(n)},handleOpen:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.handleOpen)==null?void 0:t.call(n)},handleClose:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.handleClose)==null?void 0:t.call(n)}}),()=>e.h(p.AdapterDatePicker,e.mergeProps({ref:l,class:r.b()},c),i)}}),Je=h.withInstall(pn),mn=e.defineComponent({name:"SyDateTimePicker",inheritAttrs:!1,setup(o,{expose:s}){const r=N.useNamespace("date-time-picker"),c=e.useAttrs(),i=e.useSlots(),l=e.ref();return s({focus:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.blur)==null?void 0:t.call(n)},handleOpen:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.handleOpen)==null?void 0:t.call(n)},handleClose:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.handleClose)==null?void 0:t.call(n)}}),()=>e.h(p.AdapterDatePicker,e.mergeProps({ref:l,class:r.b(),type:"datetime"},c),i)}}),fn=h.withInstall(mn),hn=e.defineComponent({name:"SyDescriptions",inheritAttrs:!1,setup(){const o=N.useNamespace("descriptions"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterDescriptions,e.mergeProps({class:o.b()},s),r)}}),un=e.defineComponent({name:"ElDescriptionsItem",inheritAttrs:!1,setup(){const o=N.useNamespace("descriptions-item"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterDescriptionsItem,e.mergeProps({class:o.b()},s),r)}}),yn=h.withInstall(hn),Sn=h.withInstall(un,"SyDescriptionsItem"),gn=e.defineComponent({name:"SyDialog",inheritAttrs:!1,setup(){const o=N.useNamespace("dialog"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterDialog,e.mergeProps({class:o.b()},s),r)}}),bn=h.withInstall(gn),Cn=e.defineComponent({name:"SyDivider",inheritAttrs:!1,setup(){const o=N.useNamespace("divider"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterDivider,e.mergeProps({class:o.b()},s),r)}}),wn=h.withInstall(Cn),An=e.defineComponent({name:"SyDrawer",inheritAttrs:!1,setup(){const o=N.useNamespace("drawer"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterDrawer,e.mergeProps({class:o.b()},s),r)}}),Ze=h.withInstall(An),kn=e.defineComponent({name:"SyDropdown",inheritAttrs:!1,setup(){const o=N.useNamespace("dropdown"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterDropdown,e.mergeProps({class:o.b()},s),r)}}),Nn=e.defineComponent({name:"SyDropdownMenu",inheritAttrs:!1,setup(){const o=N.useNamespace("dropdown-menu"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterDropdownMenu,e.mergeProps({class:o.b()},s),r)}}),xn=e.defineComponent({name:"SyDropdownItem",inheritAttrs:!1,setup(){const o=N.useNamespace("dropdown-item"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterDropdownItem,e.mergeProps({class:o.b()},s),r)}}),Bn=h.withInstall(kn),Pn=h.withInstall(Nn),Vn=h.withInstall(xn),_n=e.defineComponent({name:"SyEmpty",inheritAttrs:!1,setup(){const o=N.useNamespace("empty"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterEmpty,e.mergeProps({class:o.b()},s),r)}}),Xe=h.withInstall(_n),Rn=e.defineComponent({name:"SyForm",inheritAttrs:!1,setup(o,{expose:s}){const r=N.useNamespace("form"),c=e.useAttrs(),i=e.useSlots(),l=e.ref();return s({validate:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.validate)==null?void 0:a.call(t,...n)},validateField:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.validateField)==null?void 0:a.call(t,...n)},resetFields:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.resetFields)==null?void 0:a.call(t,...n)},scrollToField:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.scrollToField)==null?void 0:a.call(t,...n)},clearValidate:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.clearValidate)==null?void 0:a.call(t,...n)}}),()=>e.h(p.AdapterForm,e.mergeProps({ref:l,class:r.b()},c),i)}}),Tn=e.defineComponent({name:"SyFormItem",inheritAttrs:!1,setup(o,{expose:s}){const r=N.useNamespace("form-item"),c=e.useAttrs(),i=e.useSlots(),l=e.ref();return s({resetField:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.resetField)==null?void 0:t.call(n)},clearValidate:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.clearValidate)==null?void 0:t.call(n)}}),()=>e.h(p.AdapterFormItem,e.mergeProps({ref:l,class:r.b()},c),i)}}),ve=h.withInstall(Rn),et=h.withInstall(Tn),In=e.defineComponent({name:"SyIcon",inheritAttrs:!1,setup(){const o=e.useAttrs(),s=e.useSlots();return()=>e.h(p.AdapterIcon,e.mergeProps(o),s)}}),fe=h.withInstall(In),$n=e.defineComponent({name:"SyImage",inheritAttrs:!1,setup(o,{expose:s}){const r=N.useNamespace("image"),c=e.useAttrs(),i=e.useSlots(),l=e.ref();return s({showPreview:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.showPreview)==null?void 0:t.call(n)}}),()=>e.h(p.AdapterImage,e.mergeProps({ref:l,class:r.b()},c),i)}}),Ln=h.withInstall($n),En=e.defineComponent({name:"SyInput",inheritAttrs:!1,setup(o,{expose:s}){const r=N.useNamespace("input"),c=e.useAttrs(),i=e.useSlots(),l=e.ref();return s({focus:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.blur)==null?void 0:t.call(n)},clear:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.clear)==null?void 0:t.call(n)},select:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.select)==null?void 0:t.call(n)},resizeTextarea:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.resizeTextarea)==null?void 0:t.call(n)}}),()=>e.h(p.AdapterInput,e.mergeProps({ref:l,class:r.b()},c),i)}}),Le=h.withInstall(En),Mn=e.defineComponent({name:"SyInputNumber",inheritAttrs:!1,setup(o,{expose:s}){const r=N.useNamespace("input-number"),c=e.useAttrs(),i=e.useSlots(),l=e.ref();return s({focus:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.blur)==null?void 0:t.call(n)}}),()=>e.h(p.AdapterInputNumber,e.mergeProps({ref:l,class:r.b()},c),i)}}),tt=h.withInstall(Mn),Fn=e.defineComponent({name:"SyRow",inheritAttrs:!1,setup(){const o=N.useNamespace("row"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterRow,e.mergeProps({class:o.b()},s),r)}}),Dn=e.defineComponent({name:"SyCol",inheritAttrs:!1,setup(){const o=N.useNamespace("col"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterCol,e.mergeProps({class:o.b()},s),r)}}),zn=h.withInstall(Fn),On=h.withInstall(Dn),Hn=e.defineComponent({name:"SyLink",inheritAttrs:!1,setup(){const o=N.useNamespace("link"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterLink,e.mergeProps({class:o.b()},s),r)}}),Un=h.withInstall(Hn),pe="sy-loading",Ee="element-loading-custom-class";function qn(o){return o!==null&&typeof o=="object"&&!Array.isArray(o)}function jn(o){if(o==null||o==="")return pe;const s=String(e.unref(o));return s.includes(pe)?s:`${pe} ${s}`}function Kn(o){if(o===void 0)return{customClass:pe};const s=_({},o),r=s.customClass;return r===void 0?s.customClass=pe:typeof r=="string"&&(s.customClass=`${pe} ${r}`),s}function nt(o,s){if(!s.value)return s;if(qn(s.value))return J(_({},s),{value:J(_({},s.value),{customClass:jn(s.value.customClass)})});const r=o.getAttribute(Ee);return r?r.includes(pe)||o.setAttribute(Ee,`${pe} ${r}`):o.setAttribute(Ee,pe),s}const se=p.AdapterLoadingDirective,Ne=(o,s)=>p.AdapterLoading.service(Kn(o),s);Object.defineProperty(Ne,"_context",{get(){return p.AdapterLoading.service._context},set(o){p.AdapterLoading.service._context=o}});const xe={mounted(o,s,r,c){var i;(i=se.mounted)==null||i.call(se,o,nt(o,s),r,c)},updated(o,s,r,c){var i;(i=se.updated)==null||i.call(se,o,nt(o,s),r,c)},unmounted(o,s,r,c){var i;(i=se.unmounted)==null||i.call(se,o,s,r,c)},get _context(){return se._context},set _context(o){se._context=o}},Gn={install(o){Ne._context=o._context,xe._context=o._context,o.directive("loading",xe),o.config.globalProperties.$loading=Ne},directive:xe,service:Ne},Wn=e.defineComponent({name:"SyMenu",inheritAttrs:!1,setup(){const o=N.useNamespace("menu"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterMenu,e.mergeProps({class:o.b()},s),r)}}),Yn=e.defineComponent({name:"SySubMenu",inheritAttrs:!1,setup(){const o=N.useNamespace("sub-menu"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterSubMenu,e.mergeProps({class:o.b()},s),r)}}),Qn=e.defineComponent({name:"SyMenuItem",inheritAttrs:!1,setup(){const o=N.useNamespace("menu-item"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterMenuItem,e.mergeProps({class:o.b()},s),r)}}),Jn=e.defineComponent({name:"SyMenuItemGroup",inheritAttrs:!1,setup(){const o=N.useNamespace("menu-item-group"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterMenuItemGroup,e.mergeProps({class:o.b()},s),r)}}),Zn=h.withInstall(Wn),Xn=h.withInstall(Yn),vn=h.withInstall(Qn),eo=h.withInstall(Jn),Be="sy-message";function ge(o){if(o===void 0)return{customClass:Be};if(typeof o!="object"||o.__v_isVNode===!0)return{message:o,customClass:Be};const s=o;return J(_({},s),{customClass:s.customClass?`${Be} ${s.customClass}`:Be})}const Me=(o,s)=>p.AdapterMessage(ge(o),s);Me.closeAll=o=>p.AdapterMessage.closeAll(o),Me.closeAllByPlacement=o=>p.AdapterMessage.closeAllByPlacement(o);const he=Me;he.success=(o,s)=>p.AdapterMessage.success(ge(o),s),he.warning=(o,s)=>p.AdapterMessage.warning(ge(o),s),he.info=(o,s)=>p.AdapterMessage.info(ge(o),s),he.error=(o,s)=>p.AdapterMessage.error(ge(o),s),Object.defineProperty(he,"_context",{get(){return p.AdapterMessage._context},set(o){p.AdapterMessage._context=o}});const Fe="sy-message-box";function Pe(o){return o?J(_({},o),{customClass:o.customClass?`${Fe} ${o.customClass}`:Fe}):{customClass:Fe}}const be=(o,s)=>p.AdapterMessageBox(Pe(o),s);be.alert=(...o)=>{const[s,r,c,i]=o;return p.AdapterMessageBox.alert(s,r,Pe(c),i)},be.confirm=(...o)=>{const[s,r,c,i]=o;return p.AdapterMessageBox.confirm(s,r,Pe(c),i)},be.prompt=(...o)=>{const[s,r,c,i]=o;return p.AdapterMessageBox.prompt(s,r,Pe(c),i)},be.close=()=>p.AdapterMessageBox.close();const ot=be;Object.defineProperty(ot,"_context",{get(){return p.AdapterMessageBox._context},set(o){p.AdapterMessageBox._context=o}});const Ve="sy-notification";function Ce(o){if(o===void 0)return{customClass:Ve};if(typeof o!="object"||o.__v_isVNode===!0)return{message:o,customClass:Ve};const s=o;return J(_({},s),{customClass:s.customClass?`${Ve} ${s.customClass}`:Ve})}const ue=(o,s)=>p.AdapterNotification(Ce(o),s);ue.success=(o,s)=>p.AdapterNotification.success(Ce(o),s),ue.warning=(o,s)=>p.AdapterNotification.warning(Ce(o),s),ue.info=(o,s)=>p.AdapterNotification.info(Ce(o),s),ue.error=(o,s)=>p.AdapterNotification.error(Ce(o),s),ue.closeAll=()=>p.AdapterNotification.closeAll();const st=ue;Object.defineProperty(st,"_context",{get(){return p.AdapterNotification._context},set(o){p.AdapterNotification._context=o}});const to=e.defineComponent({name:"SyPagination",inheritAttrs:!1,setup(){const o=N.useNamespace("pagination"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterPagination,e.mergeProps({class:o.b()},s),r)}}),rt=h.withInstall(to),no=e.defineComponent({name:"SyPopconfirm",inheritAttrs:!1,setup(){const o=N.useNamespace("popconfirm"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterPopconfirm,e.mergeProps({class:o.b()},s),r)}}),oo=h.withInstall(no);function so(o,s){var n;const r=_({},o),c=r.class,i=(n=r.popperClass)!=null?n:r["popper-class"];delete r.class,delete r.popperClass,delete r["popper-class"];const l=[s,i,c].flat(10).filter(t=>typeof t=="string"&&t.length>0);return{rest:r,popperClass:l.length?l:[s]}}const ro=e.defineComponent({name:"SyPopover",inheritAttrs:!1,setup(){const o=N.useNamespace("popover"),s=e.useAttrs(),r=e.useSlots();return()=>{const{rest:c,popperClass:i}=so(s,o.b());return e.h(p.AdapterPopover,e.mergeProps(c,{popperClass:i}),r)}}}),lo=h.withInstall(ro),ao=e.defineComponent({name:"SyProgress",inheritAttrs:!1,setup(){const o=N.useNamespace("progress"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterProgress,e.mergeProps({class:o.b()},s),r)}}),co=h.withInstall(ao),io=e.defineComponent({name:"SyRadio",inheritAttrs:!1,setup(){const o=N.useNamespace("radio"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterRadio,e.mergeProps({class:o.b()},s),r)}}),po=e.defineComponent({name:"SyRadioGroup",inheritAttrs:!1,setup(){const o=N.useNamespace("radio-group"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterRadioGroup,e.mergeProps({class:o.b()},s),r)}}),De=h.withInstall(io),lt=h.withInstall(po),mo=e.defineComponent({name:"SyRadioButton",inheritAttrs:!1,setup(){const o=N.useNamespace("radio-button"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterRadioButton,e.mergeProps({class:o.b()},s),r)}}),at=h.withInstall(mo),fo=e.defineComponent({name:"SyScrollbar",inheritAttrs:!1,setup(o,{expose:s}){const r=N.useNamespace("scrollbar"),c=e.useAttrs(),i=e.useSlots(),l=e.ref();return s({handleScroll:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.handleScroll)==null?void 0:t.call(n)},scrollTo:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.scrollTo)==null?void 0:a.call(t,...n)},setScrollTop:n=>{var t,a;return(a=(t=l.value)==null?void 0:t.setScrollTop)==null?void 0:a.call(t,n)},setScrollLeft:n=>{var t,a;return(a=(t=l.value)==null?void 0:t.setScrollLeft)==null?void 0:a.call(t,n)},update:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.update)==null?void 0:t.call(n)},wrapRef:()=>{var n;return(n=l.value)==null?void 0:n.wrapRef}}),()=>e.h(p.AdapterScrollbar,e.mergeProps({ref:l,class:r.b()},c),i)}}),ho=h.withInstall(fo),uo=e.defineComponent({name:"SySelect",inheritAttrs:!1,setup(o,{expose:s}){const r=N.useNamespace("select"),c=e.useAttrs(),i=e.useSlots(),l=e.ref();return s({focus:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.blur)==null?void 0:t.call(n)}}),()=>e.h(p.AdapterSelect,e.mergeProps({ref:l,class:r.b()},c),i)}}),yo=e.defineComponent({name:"SyOption",inheritAttrs:!1,setup(){const o=N.useNamespace("option"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterOption,e.mergeProps({class:o.b()},s),r)}}),ct=h.withInstall(uo),it=h.withInstall(yo),So=p.AdapterSelectV2,go=e.defineComponent({name:"SySelectV2",inheritAttrs:!1,setup(o,{expose:s}){const r=N.useNamespace("select-v2"),c=e.useAttrs(),i=e.useSlots(),l=e.ref();return s({focus:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.blur)==null?void 0:t.call(n)},scrollTo:n=>{var t,a;return(a=(t=l.value)==null?void 0:t.scrollTo)==null?void 0:a.call(t,n)},toggleMenu:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.toggleMenu)==null?void 0:t.call(n)}}),()=>e.h(So,e.mergeProps({ref:l,class:r.b()},c),i)}}),bo=h.withInstall(go),Co=e.defineComponent({name:"SySkeleton",inheritAttrs:!1,setup(o,{expose:s}){const r=N.useNamespace("skeleton"),c=e.useAttrs(),i=e.useSlots(),l=e.ref();return s({get uiLoading(){var n;return(n=l.value)==null?void 0:n.uiLoading}}),()=>e.h(p.AdapterSkeleton,e.mergeProps({ref:l,class:r.b()},c),i)}}),wo=e.defineComponent({name:"SySkeletonItem",inheritAttrs:!1,setup(){const o=N.useNamespace("skeleton-item"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterSkeletonItem,e.mergeProps({class:o.b()},s),r)}}),Ao=h.withInstall(Co),ko=h.withInstall(wo),No=e.defineComponent({name:"SySlider",inheritAttrs:!1,setup(){const o=N.useNamespace("slider"),s=e.useAttrs(),r=e.useSlots(),c=e.ref();return()=>e.h(p.AdapterSlider,e.mergeProps({ref:c,class:o.b()},s),r)}}),xo=h.withInstall(No),Bo=e.defineComponent({name:"SySpace",inheritAttrs:!1,setup(){const o=N.useNamespace("space"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterSpace,e.mergeProps({class:o.b()},s),r)}}),Po=h.withInstall(Bo),Vo=e.defineComponent({name:"SySteps",inheritAttrs:!1,setup(){const o=N.useNamespace("steps"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterSteps,e.mergeProps({class:o.b()},s),r)}}),_o=e.defineComponent({name:"SyStep",inheritAttrs:!1,setup(){const o=N.useNamespace("step"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterStep,e.mergeProps({class:o.b()},s),r)}}),Ro=h.withInstall(Vo),To=h.withInstall(_o),Io=e.defineComponent({name:"SySwitch",inheritAttrs:!1,setup(o,{expose:s}){const r=N.useNamespace("switch"),c=e.useAttrs(),i=e.useSlots(),l=e.ref();return s({focus:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.focus)==null?void 0:t.call(n)}}),()=>e.h(p.AdapterSwitch,e.mergeProps({ref:l,class:r.b()},c),i)}}),_e=h.withInstall(Io),$o=e.defineComponent({name:"SyTable",inheritAttrs:!1,setup(o,{expose:s}){const r=N.useNamespace("table"),c=e.useAttrs(),i=e.useSlots(),l=e.ref();return s({clearSelection:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.clearSelection)==null?void 0:t.call(n)},getSelectionRows:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.getSelectionRows)==null?void 0:t.call(n)},toggleRowSelection:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.toggleRowSelection)==null?void 0:a.call(t,...n)},toggleAllSelection:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.toggleAllSelection)==null?void 0:t.call(n)},toggleRowExpansion:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.toggleRowExpansion)==null?void 0:a.call(t,...n)},setCurrentRow:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.setCurrentRow)==null?void 0:a.call(t,...n)},clearSort:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.clearSort)==null?void 0:t.call(n)},clearFilter:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.clearFilter)==null?void 0:a.call(t,...n)},doLayout:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.doLayout)==null?void 0:t.call(n)},sort:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.sort)==null?void 0:a.call(t,...n)},scrollTo:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.scrollTo)==null?void 0:a.call(t,...n)},setScrollTop:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.setScrollTop)==null?void 0:a.call(t,...n)},setScrollLeft:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.setScrollLeft)==null?void 0:a.call(t,...n)}}),()=>e.h(p.AdapterTable,e.mergeProps({ref:l,class:r.b()},c),i)}}),Lo=e.defineComponent({name:"SyTableColumn",inheritAttrs:!1,setup(){const o=N.useNamespace("table-column"),s=e.useAttrs(),r=e.useSlots();return()=>{const c=r.default?J(_({},r),{default:(...i)=>{var l;return((l=r.default(...i))!=null?l:[]).map(n=>{var t;return((t=n==null?void 0:n.type)==null?void 0:t.name)==="SyTableColumn"?e.h(p.AdapterTableColumn,n.props,n.children):n})}}):r;return e.h(p.AdapterTableColumn,e.mergeProps({class:o.b()},s),c)}}}),ze=h.withInstall($o),ae=h.withInstall(Lo),Eo=e.defineComponent({name:"SyTabs",inheritAttrs:!1,setup(o,{expose:s}){const r=N.useNamespace("tabs"),c=e.useAttrs(),i=e.useSlots(),l=e.ref();return s({get currentName(){var n;return(n=l.value)==null?void 0:n.currentName},get tabNavRef(){var n;return(n=l.value)==null?void 0:n.tabNavRef}}),()=>e.h(p.AdapterTabs,e.mergeProps({ref:l,class:r.b()},c),i)}}),Mo=e.defineComponent({name:"SyTabPane",inheritAttrs:!1,setup(){const o=N.useNamespace("tab-pane"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterTabPane,e.mergeProps({class:o.b()},s),r)}}),Fo=h.withInstall(Eo),Do=h.withInstall(Mo),zo=e.defineComponent({name:"SyTag",inheritAttrs:!1,setup(o,{expose:s}){const r=N.useNamespace("tag"),c=e.useAttrs(),i=e.useSlots(),l=e.ref();return s({ref:()=>l.value}),()=>e.h(p.AdapterTag,e.mergeProps({ref:l,class:r.b()},c),i)}}),Re=h.withInstall(zo),Oo=e.defineComponent({name:"SyText",inheritAttrs:!1,setup(){const o=N.useNamespace("text"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterText,e.mergeProps({class:o.b()},s),r)}}),Ho=h.withInstall(Oo),Uo=e.defineComponent({name:"SyTimePicker",inheritAttrs:!1,setup(o,{expose:s}){const r=N.useNamespace("time-picker"),c=e.useAttrs(),i=e.useSlots(),l=e.ref();return s({focus:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.blur)==null?void 0:t.call(n)},handleOpen:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.handleOpen)==null?void 0:t.call(n)},handleClose:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.handleClose)==null?void 0:t.call(n)}}),()=>e.h(p.AdapterTimePicker,e.mergeProps({ref:l,class:r.b()},c),i)}}),dt=h.withInstall(Uo),qo=e.defineComponent({name:"SyTimeSelect",inheritAttrs:!1,setup(o,{expose:s}){const r=N.useNamespace("time-select"),c=e.useAttrs(),i=e.useSlots(),l=e.ref();return s({focus:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.blur)==null?void 0:t.call(n)}}),()=>e.h(p.AdapterTimeSelect,e.mergeProps({ref:l,class:r.b()},c),i)}}),pt=h.withInstall(qo);function jo(o,s){var n;const r=_({},o),c=r.class,i=(n=r.popperClass)!=null?n:r["popper-class"];delete r.class,delete r.popperClass,delete r["popper-class"];const l=[s,i,c].flat(10).filter(t=>typeof t=="string"&&t.length>0);return{rest:r,popperClass:l.length?l:[s]}}const Ko=e.defineComponent({name:"SyTooltip",inheritAttrs:!1,setup(){const o=N.useNamespace("tooltip"),s=e.useAttrs(),r=e.useSlots();return()=>{const{rest:c,popperClass:i}=jo(s,o.b());return e.h(p.AdapterTooltip,e.mergeProps(c,{popperClass:i}),r)}}}),me=h.withInstall(Ko),Go=e.defineComponent({name:"SyTree",inheritAttrs:!1,setup(o,{expose:s}){const r=N.useNamespace("tree"),c=e.useAttrs(),i=e.useSlots(),l=e.ref();return s({filter:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.filter)==null?void 0:a.call(t,...n)},updateKeyChildren:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.updateKeyChildren)==null?void 0:a.call(t,...n)},getCheckedNodes:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.getCheckedNodes)==null?void 0:a.call(t,...n)},getCheckedKeys:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.getCheckedKeys)==null?void 0:a.call(t,...n)},setCheckedNodes:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.setCheckedNodes)==null?void 0:a.call(t,...n)},setCheckedKeys:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.setCheckedKeys)==null?void 0:a.call(t,...n)},setChecked:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.setChecked)==null?void 0:a.call(t,...n)},getHalfCheckedNodes:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.getHalfCheckedNodes)==null?void 0:a.call(t,...n)},getHalfCheckedKeys:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.getHalfCheckedKeys)==null?void 0:a.call(t,...n)},getCurrentKey:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.getCurrentKey)==null?void 0:a.call(t,...n)},getCurrentNode:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.getCurrentNode)==null?void 0:a.call(t,...n)},setCurrentKey:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.setCurrentKey)==null?void 0:a.call(t,...n)},setCurrentNode:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.setCurrentNode)==null?void 0:a.call(t,...n)},getNode:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.getNode)==null?void 0:a.call(t,...n)},remove:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.remove)==null?void 0:a.call(t,...n)},append:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.append)==null?void 0:a.call(t,...n)},insertBefore:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.insertBefore)==null?void 0:a.call(t,...n)},insertAfter:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.insertAfter)==null?void 0:a.call(t,...n)}}),()=>e.h(p.AdapterTree,e.mergeProps({ref:l,class:r.b()},c),i)}}),Wo=h.withInstall(Go),Yo=e.defineComponent({name:"SyTreeSelect",inheritAttrs:!1,setup(o,{expose:s}){const r=N.useNamespace("tree-select"),c=e.useAttrs(),i=e.useSlots(),l=e.ref();return s({focus:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.blur)==null?void 0:t.call(n)},filter:n=>{var t,a;return(a=(t=l.value)==null?void 0:t.filter)==null?void 0:a.call(t,n)},updateKeyChildren:(n,t)=>{var a,S;return(S=(a=l.value)==null?void 0:a.updateKeyChildren)==null?void 0:S.call(a,n,t)}}),()=>e.h(p.AdapterTreeSelect,e.mergeProps({ref:l,class:r.b()},c),i)}}),Qo=h.withInstall(Yo),Jo=e.defineComponent({name:"SyUpload",inheritAttrs:!1,setup(o,{expose:s}){const r=N.useNamespace("upload"),c=e.useAttrs(),i=e.useSlots(),l=e.ref();return s({abort:n=>{var t,a;return(a=(t=l.value)==null?void 0:t.abort)==null?void 0:a.call(t,n)},submit:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.submit)==null?void 0:t.call(n)},clearFiles:n=>{var t,a;return(a=(t=l.value)==null?void 0:t.clearFiles)==null?void 0:a.call(t,n)},handleStart:n=>{var t,a;return(a=(t=l.value)==null?void 0:t.handleStart)==null?void 0:a.call(t,n)},handleRemove:n=>{var t,a;return(a=(t=l.value)==null?void 0:t.handleRemove)==null?void 0:a.call(t,n)}}),()=>e.h(p.AdapterUpload,e.mergeProps({ref:l,class:r.b()},c),i)}}),Zo=h.withInstall(Jo),Xo={input:Le,"input-number":tt,"time-picker":dt,"time-select":pt,autocomplete:p.AdapterAutocomplete,switch:_e,slider:p.AdapterSlider,"color-picker":p.AdapterColorPicker},Oe={input:o=>({placeholder:o.placeholder,clearable:o.clearable,style:"width: 100%"}),"input-number":o=>({placeholder:o.placeholder,style:"width: 100%"}),"time-picker":o=>({placeholder:o.placeholder,clearable:o.clearable,style:"width: 100%"}),"time-select":o=>({placeholder:o.placeholder,clearable:o.clearable,style:"width: 100%"}),autocomplete:o=>({placeholder:o.placeholder,clearable:o.clearable,style:"width: 100%"}),switch:()=>({}),slider:()=>({style:"width: 100%; padding: 0 6px"}),"color-picker":()=>({})};function vo(o){return o?Object.fromEntries(Object.entries(o).map(([s,r])=>[s.startsWith("on")?s:`on${s[0].toUpperCase()}${s.slice(1)}`,r])):{}}const He=e.defineComponent({name:"ProFormItem",props:{schema:{type:Object,required:!0},model:{type:Object,required:!0},modelValue:{default:void 0}},emits:["update:modelValue"],setup(o,{emit:s}){const r=e.inject("proTableEnumMap",{value:new Map}),c=e.computed({get:()=>o.modelValue,set:g=>s("update:modelValue",g)}),i=e.computed(()=>{var g,m;return(m=(g=o.schema.fieldNames)==null?void 0:g.label)!=null?m:"label"}),l=e.computed(()=>{var g,m;return(m=(g=o.schema.fieldNames)==null?void 0:g.value)!=null?m:"value"}),n=e.computed(()=>{var g,m;return(m=(g=o.schema.fieldNames)==null?void 0:g.children)!=null?m:"children"}),t=e.computed(()=>{var g;return o.schema.options!=null?o.schema.options:(g=r.value.get(o.schema.field))!=null?g:[]}),a=e.computed(()=>{const{label:g,value:m}={label:i.value,value:l.value};return g==="label"&&m==="value"?t.value:t.value.map(u=>J(_({},u),{label:u[g],value:u[m]}))}),S=e.computed(()=>{const g=_({},o.schema.props),{label:m,value:u,children:B}={label:i.value,value:l.value,children:n.value};return J(_({},g),{props:J(_({},g.props),{label:m,children:B}),nodeKey:u})}),k=e.computed(()=>{const g=_({},o.schema.props),{label:m,value:u,children:B}={label:i.value,value:l.value,children:n.value};return J(_({},g),{props:J(_({},g.props),{label:m,value:u,children:B})})}),A=e.computed(()=>_({},o.schema.props)),V=e.computed(()=>{var m,u,B;const g=(u=(m=o.schema.props)==null?void 0:m.type)!=null?u:"";return["daterange","datetimerange","monthrange","yearrange"].includes(g)||!!((B=o.schema.props)!=null&&B.isRange)}),R=e.computed(()=>{var m,u;if(((m=o.schema.props)==null?void 0:m.placeholder)!=null)return o.schema.props.placeholder;const g=(u=o.schema.component)!=null?u:"input";return["input","input-number","autocomplete"].includes(g)?"请输入":"请选择"}),C=e.computed(()=>{var g;return((g=o.schema.props)==null?void 0:g.clearable)!=null?o.schema.props.clearable:o.schema.defaultValue==null}),b=e.computed(()=>{var m,u,B;const g=_({},o.schema.props);return V.value?J(_({},g),{rangeSeparator:(m=g.rangeSeparator)!=null?m:"至",startPlaceholder:(u=g.startPlaceholder)!=null?u:"开始时间",endPlaceholder:(B=g.endPlaceholder)!=null?B:"结束时间",clearable:C.value}):J(_({},g),{placeholder:R.value,clearable:C.value})});return()=>{var F,L,D,E,M,U,j,Z;const{schema:g}=o,m=(F=g.component)!=null?F:"input",u=vo(g.events),B={modelValue:c.value,"onUpdate:modelValue":O=>c.value=O};if(g.render)return g.render(o.model);if(m==="text")return e.h("span",{class:"sy-pro-form-item__text"},String((L=c.value)!=null?L:""));if(m==="select")return e.h(ct,J(_(_(_({},B),A.value),u),{placeholder:R.value,clearable:C.value,style:"width: 100%"}),{default:e.withCtx(()=>t.value.map(O=>e.h(it,{key:O[l.value],label:O[i.value],value:O[l.value]})))});if(m==="select-v2")return e.h(p.AdapterSelectV2,J(_(_(_({},B),A.value),u),{placeholder:R.value,clearable:C.value,options:a.value,style:"width: 100%"}));if(m==="tree-select"){const O=(E=(D=o.schema.props)==null?void 0:D.data)!=null?E:t.value;return e.h(p.AdapterTreeSelect,J(_(_(_({},B),S.value),u),{placeholder:R.value,clearable:C.value,data:O,style:"width: 100%"}))}if(m==="cascader"){const O=(U=(M=o.schema.props)==null?void 0:M.options)!=null?U:t.value;return e.h(We,J(_(_(_({},B),k.value),u),{placeholder:R.value,clearable:C.value,options:O,style:"width: 100%"}))}if(m==="radio"||m==="radio-button"){const O=m==="radio"?De:at;return e.h(lt,_(_(_({},B),A.value),u),{default:()=>t.value.map(X=>e.h(O,{key:X[l.value],value:X[l.value]},{default:()=>String(X[i.value])}))})}if(m==="checkbox")return e.h(Qe,_(_(_({},B),A.value),u),{default:()=>t.value.map(O=>e.h(Ye,{key:O[l.value],value:O[l.value]},{default:()=>String(O[i.value])}))});if(m==="date-picker")return e.h(Je,J(_(_(_({},B),b.value),u),{style:"width: 100%"}));const $=Xo[m];if($){const O=(Z=(j=Oe[m])==null?void 0:j.call(Oe,{placeholder:R.value,clearable:C.value}))!=null?Z:{};return e.h($,_(_(_(_({},B),A.value),u),O))}return e.h(Le,J(_(_(_({},B),A.value),u),{placeholder:R.value,clearable:C.value,style:"width: 100%"}))}}}),es=2,ts=e.defineComponent({name:"SyProForm",__name:"ProForm",props:{model:{},schema:{},cols:{},labelWidth:{},labelPosition:{},disabled:{type:Boolean,default:!1},size:{},showQueryBtn:{type:Boolean,default:!0},showResetBtn:{type:Boolean,default:!0},queryBtnText:{default:"查询"},resetBtnText:{default:"重置"},loading:{type:Boolean,default:!1},collapsible:{type:[Boolean,Number],default:!1},defaultCollapsed:{type:Boolean,default:!0},buttonAlign:{default:"inline"}},emits:["search","reset"],setup(o,{expose:s,emit:r}){var ce,ie;const c=e.useSlots(),i=o,l=(ce=e.inject(h.SY_UI_CONFIG_KEY,{}).proForm)!=null?ce:{},n=(ie=h.getMasterConfig(h.detectMicroAppName()).proForm)!=null?ie:{},t=e.computed(()=>{var y,P,x;return(x=(P=(y=n.cols)!=null?y:i.cols)!=null?P:l.cols)!=null?x:4}),a=e.computed(()=>{var y,P,x;return(x=(P=(y=n.labelWidth)!=null?y:i.labelWidth)!=null?P:l.labelWidth)!=null?x:"auto"}),S=e.computed(()=>{var y,P,x;return(x=(P=(y=n.labelPosition)!=null?y:i.labelPosition)!=null?P:l.labelPosition)!=null?x:"right"}),k=e.computed(()=>{var y,P;return(P=(y=n.size)!=null?y:i.size)!=null?P:l.size}),A=r;N.useNamespace("pro-form");const V=e.ref(),R=e.ref(i.defaultCollapsed),C=e.ref("xl");function b(){const y=window.innerWidth;return y<768?"xs":y<992?"sm":y<1200?"md":y<1920?"lg":"xl"}function g(){C.value=b()}e.onMounted(()=>{C.value=b(),window.addEventListener("resize",g)}),e.onUnmounted(()=>{window.removeEventListener("resize",g)});const m=e.computed(()=>i.schema.filter(y=>typeof y.hidden=="function"?!y.hidden(i.model):!y.hidden).sort((y,P)=>{var x,H;return((x=y.order)!=null?x:0)-((H=P.order)!=null?H:0)}));function u(y){var x,H,K;const P=C.value;return(K=(H=(x=y[P])==null?void 0:x.span)!=null?H:y.span)!=null?K:1}function B(y){var x,H,K;const P=C.value;return(K=(H=(x=y[P])==null?void 0:x.offset)!=null?H:y.offset)!=null?K:0}const $=e.computed(()=>{var x,H,K,ne,oe,re;const y=t.value;if(typeof y=="number")return y;const P=C.value;return(re=(oe=(ne=(K=(H=(x=y==null?void 0:y[P])!=null?x:y==null?void 0:y.xl)!=null?H:y==null?void 0:y.lg)!=null?K:y==null?void 0:y.md)!=null?ne:y==null?void 0:y.sm)!=null?oe:y==null?void 0:y.xs)!=null?re:4}),F=e.computed(()=>{const y=i.collapsible;return typeof y=="number"&&y>0?y:1}),L=e.computed(()=>{if(!i.collapsible)return-1;const y=i.buttonAlign==="inline"&&(i.showQueryBtn||i.showResetBtn||!!c["extra-buttons"]||!!c.buttons),P=$.value*F.value-(y?es:0);if(P<=0)return 0;let x=0;for(let H=0;H<m.value.length;H++){const K=m.value[H];if(x+=u(K)+B(K),x>P)return H}return-1}),D=e.computed(()=>L.value>=0),E=e.computed(()=>({display:"grid",gridTemplateColumns:`repeat(${$.value}, 1fr)`,gap:"0 16px"}));function M(y){const P=$.value,x=Math.min(u(y),P),H=B(y),K={gridColumn:`span ${x}`};return H>0&&(K.marginLeft=`calc(${H/P*100}% + ${H*16}px)`),K}const U=e.computed(()=>{const y=$.value,P=m.value,x=i.collapsible&&R.value&&L.value>=0?L.value:P.length;let H=0;for(let K=0;K<x;K++){const ne=u(P[K]),oe=B(P[K]),re=H+ne+oe;H=re>=y?re%y:re}return H}),j=e.computed(()=>{const y=U.value;return{gridColumn:`${y===0?1:y+1} / -1`}}),Z={left:"flex-start",center:"center",right:"flex-end"},O=e.computed(()=>{var P;const y={justifyContent:(P=Z[i.buttonAlign])!=null?P:"flex-start"};if(i.buttonAlign==="left"&&S.value!=="top"){const x=a.value;x&&x!=="auto"&&(y.paddingLeft=typeof x=="number"?`${x}px`:String(x))}return y}),X=e.computed(()=>i.showQueryBtn||i.showResetBtn||!!c["extra-buttons"]||!!c.buttons);function Q(y,P){i.model[y]=P}function ee(){var y;(y=V.value)==null||y.validate(P=>{P&&A("search",i.model)})}function te(){var y,P;for(const x of i.schema)Q(x.field,(y=x.defaultValue)!=null?y:null);(P=V.value)==null||P.clearValidate(),A("reset",i.model)}return s({formRef:V,validate:y=>{var P;return(P=V.value)==null?void 0:P.validate(y)},validateField:(y,P)=>{var x;return(x=V.value)==null?void 0:x.validateField(y,P)},resetFields:te,clearValidate:y=>{var P;return(P=V.value)==null?void 0:P.clearValidate(y)}}),(y,P)=>(e.openBlock(),e.createBlock(e.unref(ve),{ref_key:"formRef",ref:V,class:"sy-pro-form",model:o.model,"label-width":a.value,"label-position":S.value,disabled:o.disabled,size:k.value,onSubmit:P[2]||(P[2]=e.withModifiers(()=>{},["prevent"]))},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"sy-pro-form__grid",style:e.normalizeStyle(E.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(x,H)=>{var K;return e.openBlock(),e.createElementBlock(e.Fragment,{key:x.field},[!o.collapsible||!R.value||L.value<0||H<L.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"sy-pro-form__grid-item",style:e.normalizeStyle(M(x))},[e.createCommentVNode(" slot 类型:渲染具名插槽,用户自行提供完整的 sy-form-item 内容 "),x.component==="slot"?e.renderSlot(y.$slots,x.field,{key:0,item:x}):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createCommentVNode(" 内置组件类型:走原有渲染路径 "),e.createVNode(e.unref(et),e.mergeProps({prop:x.field,label:(K=x.label)!=null?K:""},{ref_for:!0},x.labelWidth!=null?{labelWidth:x.labelWidth}:{},{rules:x.rules}),e.createSlots({default:e.withCtx(()=>[e.createVNode(He,{"model-value":o.model[x.field],schema:x,model:o.model,"onUpdate:modelValue":ne=>Q(x.field,ne)},null,8,["model-value","schema","model","onUpdate:modelValue"])]),_:2},[x.tooltip?{name:"label",fn:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(x.label),1),e.createVNode(e.unref(me),{content:x.tooltip,placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(fe),{class:"sy-pro-form__tip-icon",style:{"margin-left":"4px","vertical-align":"middle",cursor:"pointer"}},{default:e.withCtx(()=>[e.createVNode(e.unref(v.InfoFilled))]),_:1})]),_:1},8,["content"])]),key:"0"}:void 0]),1040,["prop","label","rules"])],2112))],4)):e.createCommentVNode("v-if",!0)],64)}),128)),e.createCommentVNode(" 默认插槽:额外自定义字段 "),e.renderSlot(y.$slots,"default"),e.createCommentVNode(" 按钮区 —— inline 模式:在网格内贴右 "),o.buttonAlign==="inline"&&(X.value||o.collapsible&&D.value)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"sy-pro-form__grid-item sy-pro-form__buttons",style:e.normalizeStyle(j.value)},[e.renderSlot(y.$slots,"buttons",{},()=>[o.showQueryBtn?(e.openBlock(),e.createBlock(e.unref(Y),{key:0,type:"primary",loading:o.loading,onClick:ee},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.queryBtnText),1)]),_:1},8,["loading"])):e.createCommentVNode("v-if",!0),o.showResetBtn?(e.openBlock(),e.createBlock(e.unref(Y),{key:1,onClick:te},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.resetBtnText),1)]),_:1})):e.createCommentVNode("v-if",!0),e.renderSlot(y.$slots,"extra-buttons")]),o.collapsible&&D.value?(e.openBlock(),e.createBlock(e.unref(Y),{key:0,type:"primary",link:"",onClick:P[0]||(P[0]=x=>R.value=!R.value)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(R.value?"展开":"合并")+" ",1),e.createVNode(e.unref(fe),{style:{"margin-left":"2px"}},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(R.value?e.unref(v.ArrowDown):e.unref(v.ArrowUp))))]),_:1})]),_:1})):e.createCommentVNode("v-if",!0)],4)):e.createCommentVNode("v-if",!0)],4),e.createCommentVNode(" 按钮区 —— 独立成行模式(left / center / right) "),o.buttonAlign!=="inline"&&(X.value||o.collapsible&&D.value)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"sy-pro-form__footer",style:e.normalizeStyle(O.value)},[e.renderSlot(y.$slots,"buttons",{},()=>[o.showQueryBtn?(e.openBlock(),e.createBlock(e.unref(Y),{key:0,type:"primary",loading:o.loading,onClick:ee},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.queryBtnText),1)]),_:1},8,["loading"])):e.createCommentVNode("v-if",!0),o.showResetBtn?(e.openBlock(),e.createBlock(e.unref(Y),{key:1,onClick:te},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.resetBtnText),1)]),_:1})):e.createCommentVNode("v-if",!0),e.renderSlot(y.$slots,"extra-buttons")]),o.collapsible&&D.value?(e.openBlock(),e.createBlock(e.unref(Y),{key:0,type:"primary",link:"",onClick:P[1]||(P[1]=x=>R.value=!R.value)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(R.value?"展开":"合并")+" ",1),e.createVNode(e.unref(fe),{style:{"margin-left":"2px"}},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(R.value?e.unref(v.ArrowDown):e.unref(v.ArrowUp))))]),_:1})]),_:1})):e.createCommentVNode("v-if",!0)],4)):e.createCommentVNode("v-if",!0)]),_:3},8,["model","label-width","label-position","disabled","size"]))}}),mt=h.withInstall(ts);function ns(o="id"){const s=e.ref([]),r=e.computed(()=>s.value.length>0),c=e.computed(()=>s.value.map(n=>n[o]));function i(n){s.value=n}function l(){s.value=[]}return{selectedList:s,isSelected:r,selectedListIds:c,selectionChange:i,clearSelection:l}}function os(o){const{request:s,params:r,searchParam:c,postData:i,requestError:l,pagination:n=!0,staticData:t,initialPageSize:a}=o,S=e.ref(!1),k=e.ref([]),A=e.reactive({pageNum:1,pageSize:a!=null?a:10,total:0}),V=e.reactive({}),R=e.reactive({}),C=e.computed(()=>{if(!(t!=null&&t.value))return k.value;if(!n)return t.value;const L=(A.pageNum-1)*A.pageSize;return t.value.slice(L,L+A.pageSize)});function b(L,D){for(const[E,M]of Object.entries(L))(M!=null&&M!==""||M===!1||M===0)&&(D[E]=M)}function g(){const L={};return b(R,L),c!=null&&c.value&&b(c.value,L),L}function m(){return Ie(this,null,function*(){var L,D,E;if(t!=null&&t.value){A.total=t.value.length;return}if(s)try{S.value=!0;const M=g(),U=_(_(_({},V),M),(L=r==null?void 0:r.value)!=null?L:{});n&&(U.pageNum=A.pageNum,U.pageSize=A.pageSize);const j=yield s(U);if(!j.success){l==null||l(j);return}let Z=(D=j.data)!=null?D:[];i&&(Z=i(Z)),k.value=Z,n&&(A.total=(E=j.total)!=null?E:0)}catch(M){l==null||l(M)}finally{S.value=!1}})}function u(){A.pageNum=1,m()}function B(){var L;A.pageNum=1;for(const D of Object.keys(R))R[D]=(L=V[D])!=null?L:null;m()}function $(L){A.pageSize=L,A.pageNum=1,m()}function F(L){A.pageNum=L,m()}return r&&e.watch(r,()=>m(),{deep:!0}),{loading:S,tableData:k,pageable:A,processTableData:C,searchParam:R,searchInitParam:V,getTableList:m,search:u,reset:B,handleSizeChange:$,handleCurrentChange:F}}function ft(o){var r;const s=[];for(const c of o)(r=c.children)!=null&&r.length?s.push(c,...ft(c.children)):s.push(c);return s}const ht={border:!1,stripe:!1,rowKey:"id",type:"custom",searchCols:4,panelCols:1,filterChipWidth:140,filterChipMax:3,pageSizes:[10,20,50,100],pageLayout:"total, sizes, prev, pager, next, jumper",autoHeight:!1};function ss(o,s,r,c={}){var re,Te,we,T;const l=(re=e.inject(h.SY_UI_CONFIG_KEY,{}).proTable)!=null?re:{},n=(Te=h.getMasterConfig(h.detectMicroAppName()).proTable)!=null?Te:{},t=new Proxy(o,{get(d,w,I){const z=n[w];if(z!==void 0)return z;const G=Reflect.get(d,w,I);if(G!==void 0)return G;const W=w;if(W in l&&l[W]!==void 0)return l[W];const q=w;if(q in ht)return ht[q]}}),a=t,S=e.ref(),k=e.ref(),A=e.ref(),V=e.ref(a.type!=="unify"&&a.type!=="custom"),R=e.ref(null),C=e.computed(()=>e.reactive(ft(o.columns))),b=e.ref(new Map);function g(d){return Ie(this,null,function*(){var I;if(!d.enum||!d.prop)return;const w=d.enum;if(typeof w=="function"){b.value.set(d.prop,[]);try{const z=yield w();b.value.set(d.prop,z)}catch(z){}}else b.value.set(d.prop,Array.isArray(w)?w:(I=w.value)!=null?I:[])})}e.provide("proTableEnumMap",b),e.provide("proTableSlots",r);const m=e.computed(()=>C.value.filter(d=>{var w,I;return((w=d.search)==null?void 0:w.component)||((I=d.search)==null?void 0:I.render)}).sort((d,w)=>{var I,z,G,W;return((z=(I=d.search)==null?void 0:I.order)!=null?z:0)-((W=(G=w.search)==null?void 0:G.order)!=null?W:0)})),u=e.computed(()=>m.value.filter(d=>{var w;return!!((w=d.search)!=null&&w.quick)}).sort((d,w)=>{var G,W,q,le,Ae,ke;const I=typeof((G=d.search)==null?void 0:G.quick)=="object"&&(q=(W=d.search)==null?void 0:W.quick.order)!=null?q:0,z=typeof((le=w.search)==null?void 0:le.quick)=="object"&&(ke=(Ae=w.search)==null?void 0:Ae.quick.order)!=null?ke:0;return I-z})),B=e.computed(()=>m.value.map(d=>{var w,I,z,G,W,q,le,Ae,ke,St,gt,bt,Ct,wt,At,kt;return{field:(z=(I=(w=d.search)==null?void 0:w.key)!=null?I:d.prop)!=null?z:"",label:d.label,component:(G=d.search)==null?void 0:G.component,props:(W=d.search)==null?void 0:W.props,options:(()=>{var Nt,xt,Bt,Pt,Vt,_t,Rt;if(((Nt=d.search)==null?void 0:Nt.options)!==void 0){const Ge=d.search.options;return Array.isArray(Ge)?Ge:(xt=e.unref(Ge))!=null?xt:void 0}if(!(!d.enum||(Pt=(Bt=d.search)==null?void 0:Bt.component)!=null&&Pt.includes("tree")))return typeof d.enum=="function"?(_t=b.value.get((Vt=d.prop)!=null?Vt:""))!=null?_t:void 0:Array.isArray(d.enum)?d.enum:(Rt=e.unref(d.enum))!=null?Rt:void 0})(),fieldNames:d.fieldNames,defaultValue:(q=d.search)==null?void 0:q.defaultValue,span:(le=d.search)==null?void 0:le.span,offset:(Ae=d.search)==null?void 0:Ae.offset,order:(ke=d.search)==null?void 0:ke.order,render:(St=d.search)==null?void 0:St.render,xs:(gt=d.search)==null?void 0:gt.xs,sm:(bt=d.search)==null?void 0:bt.sm,md:(Ct=d.search)==null?void 0:Ct.md,lg:(wt=d.search)==null?void 0:wt.lg,xl:(At=d.search)==null?void 0:At.xl,labelWidth:(kt=d.search)==null?void 0:kt.labelWidth}})),$=e.ref({}),F={};function L(){var d,w,I,z,G;for(const W of Object.keys($.value))delete $.value[W];for(const W of Object.keys(F))delete F[W];for(const W of m.value){const q=(I=(w=(d=W.search)==null?void 0:d.key)!=null?w:W.prop)!=null?I:"",le=(G=(z=W.search)==null?void 0:z.defaultValue)!=null?G:null;$.value[q]=le,F[q]=le}}const{loading:D,processTableData:E,pageable:M,getTableList:U,handleSizeChange:j,handleCurrentChange:Z}=os({request:o.request,params:e.toRef(o,"params"),searchParam:$,postData:o.postData,requestError:o.requestError,pagination:o.pagination,staticData:e.computed(()=>o.data),initialPageSize:(T=(we=a.pageSize)!=null?we:l.pageSize)!=null?T:10});function O(){Object.assign(M,{pageNum:1}),U(),s("search")}function X(){L(),Object.assign(M,{pageNum:1}),U(),s("reset")}const{selectedList:Q,isSelected:ee,selectedListIds:te,selectionChange:ce,clearSelection:ie}=ns(a.rowKey);function y(){var d,w;ie(),(w=(d=S.value)==null?void 0:d.clearSelection)==null||w.call(d)}function P(d){var w;R.value=d[(w=a.rowKey)!=null?w:"id"]}function x(){var d,w;R.value=null,(w=(d=S.value)==null?void 0:d.setCurrentRow)==null||w.call(d,void 0)}function H(d){U()}function K(d){return a.toolButton===!0?!0:a.toolButton===!1?!1:a.toolButton.includes(d)}function ne(){V.value=!V.value}function oe(){var d,w;(w=(d=A.value)==null?void 0:d.open)==null||w.call(d)}return e.onMounted(()=>Ie(this,null,function*(){for(const d of C.value)g(d);L(),o.manualRequest||U()})),{props:t,tableAttrs:c,tableRef:S,formRef:k,colSettingRef:A,flatColumns:C,enumMap:b,searchColumns:m,quickSearchColumns:u,searchSchema:B,searchParam:$,searchInitParam:F,loading:D,tableData:E,pageable:M,selectedList:Q,selectedListIds:te,isSelected:ee,radio:R,isShowSearch:V,getTableList:U,search:O,reset:X,clearSelection:y,clearRadio:x,handleSizeChange:j,handleCurrentChange:Z,onSortChange:H,onRadioChange:P,selectionChange:ce,showToolBtn:K,toggleSearch:ne,openColSetting:oe}}const rs={key:1,style:{color:"var(--el-text-color-placeholder)"}},ls=e.defineComponent({__name:"ColSetting",props:{columns:{}},setup(o,{expose:s}){const r=o,c=e.ref(!1),i=e.computed(()=>r.columns.filter(a=>{if(a.type&&["selection","index","expand","radio","sort"].includes(a.type))return!1;const S=a.isSetting;return S===void 0||S===!0}));e.computed(()=>i.value.every(a=>a.isShow!==!1)),e.computed(()=>{const a=i.value.length,S=i.value.filter(k=>k.isShow!==!1).length;return S>0&&S<a});const l=new WeakMap;function n(){i.value.forEach(a=>{l.has(a)||l.set(a,{isShow:a.isShow!==!1,sortable:a.sortable})})}function t(){n(),c.value=!0}return s({open:t}),(a,S)=>(e.openBlock(),e.createBlock(e.unref(Ze),{modelValue:c.value,"onUpdate:modelValue":S[0]||(S[0]=k=>c.value=k),title:"列设置",size:"380px","append-to-body":!0,class:"sy-pro-table__col-setting"},{default:e.withCtx(()=>[e.createCommentVNode(" 全选 + 重置 "),e.createCommentVNode(` <div class="sy-pro-table__col-setting-toolbar">
|
|
5
5
|
<sy-checkbox :model-value="checkAll" :indeterminate="isIndeterminate" @change="onCheckAll"> 全部显示 </sy-checkbox>
|
|
6
6
|
<sy-button type="primary" link @click="onReset">重置</sy-button>
|
|
7
|
-
</div> `),e.createCommentVNode(" 列配置表格 "),e.createVNode(e.unref(De),{data:i.value,"row-key":"prop",border:!0,"default-expand-all":"","tree-props":{children:"_children"}},{empty:e.withCtx(()=>[...k[1]||(k[1]=[e.createElementVNode("div",{style:{padding:"24px 0",color:"var(--el-text-color-secondary)","font-size":"13px"}},"暂无可配置列",-1)])]),default:e.withCtx(()=>[e.createVNode(e.unref(le),{prop:"label",label:"列名",align:"left","min-width":"100"},{default:e.withCtx(({row:w})=>{var x,_;return[e.createTextVNode(e.toDisplayString((_=(x=w.label)!=null?x:w.prop)!=null?_:"—"),1)]}),_:1}),e.createVNode(e.unref(le),{prop:"isShow",label:"显示",align:"center",width:"80"},{default:e.withCtx(({row:w})=>[e.createVNode(e.unref(Ve),{"model-value":w.isShow!==!1,"onUpdate:modelValue":x=>{w.isShow=x}},null,8,["model-value","onUpdate:modelValue"])]),_:1}),e.createVNode(e.unref(le),{prop:"sortable",label:"排序",align:"center",width:"80"},{default:e.withCtx(({row:w})=>[typeof w.sortable=="boolean"?(e.openBlock(),e.createBlock(e.unref(Ve),{key:0,modelValue:w.sortable,"onUpdate:modelValue":x=>w.sortable=x},null,8,["modelValue","onUpdate:modelValue"])):(e.openBlock(),e.createElementBlock("span",os,"—"))]),_:1})]),_:1},8,["data"])]),_:1},8,["modelValue"]))}}),He=e.defineComponent({__name:"ProTableColSetting",props:{context:{}},setup(o,{expose:s}){const c=o.context.flatColumns,i=e.ref();function a(){var n,t;(t=(n=i.value)==null?void 0:n.open)==null||t.call(n)}return s({open:a}),(n,t)=>(e.openBlock(),e.createBlock(ss,{ref_key:"innerRef",ref:i,columns:e.unref(c)},null,8,["columns"]))}}),rs={key:0,class:"sy-pro-table__pagination"},Ue=e.defineComponent({__name:"ProTablePagination",props:{context:{}},setup(o){const s=o,r=s.context.props,c=s.context.pageable,i=s.context.handleSizeChange,a=s.context.handleCurrentChange;return(n,t)=>e.unref(r).pagination&&e.unref(c).total>0?(e.openBlock(),e.createElementBlock("div",rs,[e.renderSlot(n.$slots,"pagination",{},()=>[e.createVNode(e.unref(st),{"current-page":e.unref(c).pageNum,"onUpdate:currentPage":t[0]||(t[0]=l=>e.unref(c).pageNum=l),"page-size":e.unref(c).pageSize,"onUpdate:pageSize":t[1]||(t[1]=l=>e.unref(c).pageSize=l),total:e.unref(c).total,"page-sizes":e.unref(r).pageSizes,layout:e.unref(r).pageLayout,background:"",onSizeChange:e.unref(i),onCurrentChange:e.unref(a)},null,8,["current-page","page-size","total","page-sizes","layout","onSizeChange","onCurrentChange"])])])):e.createCommentVNode("v-if",!0)}}),qe=e.defineComponent({__name:"ProTableSearchRenderer",props:{context:{},cols:{default:4},showQueryBtn:{type:Boolean,default:!0},showResetBtn:{type:Boolean,default:!0},collapsible:{type:Boolean,default:!0}},setup(o,{expose:s}){const r=o,c=r.context.searchParam,i=r.context.searchSchema,a=r.context.search,n=r.context.reset,t=e.ref();return s({validate:l=>{var k,w;return(w=(k=t.value)==null?void 0:k.validate)==null?void 0:w.call(k,l)},resetFields:()=>{var l,k;return(k=(l=t.value)==null?void 0:l.resetFields)==null?void 0:k.call(l)},clearValidate:l=>{var k,w;return(w=(k=t.value)==null?void 0:k.clearValidate)==null?void 0:w.call(k,l)},formRef:t}),(l,k)=>(e.openBlock(),e.createBlock(e.unref(pt),{ref_key:"innerFormRef",ref:t,model:e.unref(c),schema:e.unref(i),cols:o.cols,"show-query-btn":o.showQueryBtn,"show-reset-btn":o.showResetBtn,collapsible:o.collapsible,onSearch:e.unref(a),onReset:e.unref(n)},null,8,["model","schema","cols","show-query-btn","show-reset-btn","collapsible","onSearch","onReset"]))}}),ls=e.defineComponent({__name:"ProTableColumn",props:{column:{}},emits:["radioChange"],setup(o){const s=o,r=e.inject("proTableEnumMap",{value:new Map}),c=e.inject("proTableSlots",{}),i=e.computed(()=>{const g=s.column.isShow;return g===void 0?!0:e.unref(g)}),a=e.computed(()=>{var C,u,m,y;const g=s.column.enum;return typeof g=="function"?(u=r.value.get((C=s.column.prop)!=null?C:""))!=null?u:[]:g?e.unref(g):(y=r.value.get((m=s.column.prop)!=null?m:""))!=null?y:[]});function n(g){var B,$;const{fieldNames:C}=s.column,u=(B=C==null?void 0:C.label)!=null?B:"label",m=($=C==null?void 0:C.value)!=null?$:"value",y=a.value.find(F=>F[m]===g);return y?y[u]:String(g!=null?g:"")}function t(g){var y;const{fieldNames:C}=s.column,u=(y=C==null?void 0:C.value)!=null?y:"value",m=a.value.find(B=>B[u]===g);return(m==null?void 0:m.tagType)||void 0}function l(g){return g.split(".").reduce((u,m,y)=>y===0?u+m:u+m.charAt(0).toUpperCase()+m.slice(1),"")}function k(g){var $;const{column:C}=s;if(C.render)return C.render(g);if(C.type==="expand"){const F="expand";return c[F]?c[F](g):null}const u=($=C.prop)!=null?$:"",m=g.row[u],y=l(u);if(c[y])return c[y](g);if(C.isFilterEnum!==!1&&a.value.length>0){if(C.tag){const F=t(m);return e.h(_e,F?{type:F}:{},()=>n(m))}return e.h("span",{},n(m))}return C.tag?e.h(_e,{},()=>String(m!=null?m:"")):e.h("span",{},String(m!=null?m:""))}function w(g){var m,y;const{column:C}=s;if(C.headerRender)return C.headerRender(g);const u=`${l((m=C.prop)!=null?m:"")}Header`;return c[u]?c[u](g):(y=C.label)!=null?y:""}const x=e.defineComponent({name:"ProTableExpandRenderer",props:{scope:{type:Object,required:!0}},setup(g){return()=>c.expand?c.expand(g.scope):null}}),_=e.defineComponent({name:"ProTableHeaderRenderer",props:{scope:{type:Object,required:!0}},setup(g){return()=>w(g.scope)}}),T=e.defineComponent({name:"ProTableCellRenderer",props:{scope:{type:Object,required:!0}},setup(g){return()=>k(g.scope)}});return(g,C)=>{var m;const u=e.resolveComponent("ProTableColumn",!0);return i.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createCommentVNode(" 多级表头 "),(m=o.column.children)!=null&&m.length?(e.openBlock(),e.createBlock(e.unref(le),{key:0,label:o.column.label,align:o.column.align},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.column.children,y=>{var B;return e.openBlock(),e.createBlock(u,{key:(B=y.prop)!=null?B:y.label,column:y},null,8,["column"])}),128))]),_:1},8,["label","align"])):o.column.type&&["selection","index"].includes(o.column.type)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createCommentVNode(" 特殊列:selection / index(自闭合,无需 slot) "),e.createVNode(e.unref(le),e.normalizeProps(e.guardReactiveProps(o.column)),null,16)],2112)):o.column.type==="expand"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createCommentVNode(" expand 列:必须通过 #default slot 提供展开行内容 "),e.createVNode(e.unref(le),e.normalizeProps(e.guardReactiveProps(o.column)),{default:e.withCtx(y=>[e.createVNode(e.unref(x),{scope:y},null,8,["scope"])]),_:1},16)],2112)):o.column.type==="radio"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createCommentVNode(" radio 列 "),e.createVNode(e.unref(le),e.mergeProps(o.column,{width:"60",align:"center"}),{default:e.withCtx(y=>[e.createVNode(e.unref(Fe),{modelValue:y.row.__radioSelected,"onUpdate:modelValue":B=>y.row.__radioSelected=B,value:!0,onChange:()=>g.$emit("radioChange",y.row)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:1},16)],2112)):o.column.type==="sort"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createCommentVNode(" sort 列(拖拽手柄) "),e.createVNode(e.unref(le),e.mergeProps(o.column,{width:"60",align:"center",label:"排序"}),{default:e.withCtx(()=>[e.createVNode(e.unref(_e),{class:"move",style:{cursor:"move"}},{default:e.withCtx(()=>[e.createVNode(e.unref(fe),null,{default:e.withCtx(()=>[e.createVNode(e.unref(X.DCaret))]),_:1})]),_:1})]),_:1},16)],2112)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:5},[e.createCommentVNode(" 普通列 "),e.createVNode(e.unref(le),e.normalizeProps(e.guardReactiveProps(o.column)),{header:e.withCtx(y=>[e.createVNode(e.unref(_),{scope:y},null,8,["scope"])]),default:e.withCtx(y=>[e.createVNode(e.unref(T),{scope:y},null,8,["scope"])]),_:1},16)],2112))],64)):e.createCommentVNode("v-if",!0)}}}),as={class:"sy-pro-table__table"},cs={class:"sy-pro-table__empty"},je=e.defineComponent({__name:"ProTableTable",props:{context:{},tableHeight:{},tableMaxHeight:{},onDragSort:{type:Function}},setup(o){const s=o,r=s.context.props,c=e.computed(()=>s.tableHeight),i=e.computed(()=>s.tableMaxHeight),a=s.context.tableRef,n=s.context.loading,t=s.context.tableData,l=s.context.flatColumns,k=s.context.selectionChange,w=s.context.onSortChange,x=s.context.onRadioChange;function _(g){a.value=g}function T(){var u;if(!r.columns.some(m=>m.type==="sort")||!a.value)return;const C=(u=a.value.$el)==null?void 0:u.querySelector("tbody");C&&Ie.create(C,{handle:".move",animation:150,onEnd({newIndex:m,oldIndex:y}){var F;if(m===y)return;const B=t.value,$=B.splice(y,1)[0];B.splice(m,0,$),(F=s.onDragSort)==null||F.call(s,{newIndex:m,oldIndex:y})}})}return e.onMounted(()=>{e.nextTick(()=>T())}),(g,C)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createCommentVNode(" wrapper 保证 querySelector 能找到 .sy-pro-table__table,height 直接传给 el-table "),e.createElementVNode("div",as,[e.withDirectives((e.openBlock(),e.createBlock(e.unref(De),{ref:_,height:c.value,"max-height":i.value,data:e.unref(t),border:e.unref(r).border,stripe:e.unref(r).stripe,"row-key":e.unref(r).rowKey,size:e.unref(r).size,"highlight-current-row":e.unref(r).highlightCurrentRow,onSelectionChange:e.unref(k),onSortChange:e.unref(w)},{append:e.withCtx(()=>[e.renderSlot(g.$slots,"append")]),empty:e.withCtx(()=>[e.renderSlot(g.$slots,"empty",{},()=>[e.createElementVNode("div",cs,[e.createVNode(e.unref(Ze),{description:"暂无数据"})])])]),default:e.withCtx(()=>[e.renderSlot(g.$slots,"default"),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),u=>{var m,y;return e.openBlock(),e.createBlock(ls,{key:(y=(m=u.prop)!=null?m:u.label)!=null?y:u.type,column:u,onRadioChange:e.unref(x)},null,8,["column","onRadioChange"])}),128))]),_:3},8,["height","max-height","data","border","stripe","row-key","size","highlight-current-row","onSelectionChange","onSortChange"])),[[e.unref(p.AdapterLoadingDirective),e.unref(n)]])])],2112))}}),is={key:0,class:"sy-pro-table__search"},ds={class:"sy-pro-table__main"},ps={key:0,class:"sy-pro-table__header"},ms={class:"sy-pro-table__header-left"},fs={class:"sy-pro-table__header-right"},hs=e.defineComponent({__name:"ClassicLayout",props:{context:{},onDragSort:{type:Function}},setup(o){var D;const s=o,r=s.context.props,c=s.context.isShowSearch,i=s.context.searchColumns,a=s.context.selectedList,n=s.context.selectedListIds,t=s.context.isSelected,l=s.context.getTableList,k=s.context.openColSetting,w=s.context.toggleSearch,x=s.context.showToolBtn,_=s.context.formRef,T=s.context.colSettingRef,g=e.ref(),C=e.ref(void 0),u=e.ref(void 0),m=(D=e.inject(h.SY_UI_CONFIG_KEY,{}).proTable)!=null?D:{};function y(){var W,ee;const E=g.value;if(!E)return;const L=E.querySelector(".sy-pro-table__table"),K=E.querySelector(".sy-pro-table__pagination");if(!L)return;const q=L.getBoundingClientRect().top,J=K?K.getBoundingClientRect().height:0,H=(ee=(W=r.heightOffset)!=null?W:m.heightOffset)!=null?ee:0,Z=Math.floor(window.innerHeight-q-J-H);return Z>80?Z:void 0}function B(){if(r.height!==void 0){C.value=r.height,u.value=void 0;return}if(r.autoHeight===!0){C.value=y(),u.value=void 0;return}if(r.maxHeight!==void 0){C.value=void 0,u.value=r.maxHeight;return}C.value=void 0,u.value=y()}e.watch(c,()=>e.nextTick(B));let $=null;e.onMounted(()=>{e.nextTick(B),window.addEventListener("resize",B),g.value&&($=new ResizeObserver(B),$.observe(g.value))}),e.onUnmounted(()=>{window.removeEventListener("resize",B),$==null||$.disconnect()});function F(E){_.value=E}function M(E){T.value=E}return(E,L)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"layoutRef",ref:g,class:"sy-pro-table sy-pro-table--classic"},[!e.unref(r).tableOnly&&e.unref(r).showSearch&&e.unref(c)&&e.unref(i).length>0?(e.openBlock(),e.createElementBlock("div",is,[e.createVNode(qe,{ref:F,context:o.context,cols:e.unref(r).searchCols},null,8,["context","cols"])])):e.createCommentVNode("v-if",!0),e.createElementVNode("div",ds,[e.unref(r).tableOnly?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("div",ps,[e.createElementVNode("div",ms,[e.createCommentVNode(" 业务操作按钮(新增/导出等),始终可见 "),e.renderSlot(E.$slots,"busActions"),e.createCommentVNode(" 批量操作,仅在有选中行时追加显示 "),e.unref(t)?e.renderSlot(E.$slots,"batchActions",{key:0,selectedList:e.unref(a),selectedListIds:e.unref(n),isSelected:e.unref(t)}):e.createCommentVNode("v-if",!0)]),e.createElementVNode("div",fs,[e.createCommentVNode(" 用户自定义工具按钮(追加在系统按钮之前) "),e.renderSlot(E.$slots,"toolButton"),e.createCommentVNode(" 系统工具按钮,始终渲染 "),e.unref(x)("refresh")?(e.openBlock(),e.createBlock(e.unref(pe),{key:0,content:"刷新",placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(Y),{icon:e.unref(X.Refresh),circle:"",onClick:e.unref(l)},null,8,["icon","onClick"])]),_:1})):e.createCommentVNode("v-if",!0),e.unref(x)("setting")?(e.openBlock(),e.createBlock(e.unref(pe),{key:1,content:"列设置",placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(Y),{icon:e.unref(X.Operation),circle:"",onClick:e.unref(k)},null,8,["icon","onClick"])]),_:1})):e.createCommentVNode("v-if",!0),e.unref(r).showSearch&&e.unref(x)("search")&&e.unref(i).length>0?(e.openBlock(),e.createBlock(e.unref(pe),{key:2,content:"搜索",placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(Y),{icon:e.unref(X.Search),circle:"",onClick:e.unref(w)},null,8,["icon","onClick"])]),_:1})):e.createCommentVNode("v-if",!0)])])),e.createVNode(je,{context:o.context,"table-height":C.value,"table-max-height":u.value,"on-drag-sort":o.onDragSort},{append:e.withCtx(()=>[e.renderSlot(E.$slots,"append")]),empty:e.withCtx(()=>[e.renderSlot(E.$slots,"empty")]),default:e.withCtx(()=>[e.renderSlot(E.$slots,"default")]),_:3},8,["context","table-height","table-max-height","on-drag-sort"]),e.createVNode(Ue,{context:o.context},{pagination:e.withCtx(()=>[e.renderSlot(E.$slots,"pagination")]),_:3},8,["context"])]),e.createVNode(He,{ref:M,context:o.context},null,8,["context"])],512))}}),ht=e.defineComponent({__name:"CustomFilterChip",props:{column:{},model:{},modelValue:{},width:{}},emits:["search","remove","update:modelValue"],setup(o,{emit:s}){const r=o,c=s,i=e.inject("proTableEnumMap",{value:new Map}),a=e.computed(()=>{var k,w,x,_,T,g,C;const t=r.column,l=(()=>{var u,m,y,B,$,F,M;if(((u=t.search)==null?void 0:u.options)!==void 0){const D=t.search.options;return Array.isArray(D)?D:(m=e.unref(D))!=null?m:void 0}if(!(!t.enum||(B=(y=t.search)==null?void 0:y.component)!=null&&B.includes("tree")))return typeof t.enum=="function"?(F=i.value.get(($=t.prop)!=null?$:""))!=null?F:void 0:Array.isArray(t.enum)?t.enum:(M=e.unref(t.enum))!=null?M:void 0})();return{field:(x=(w=(k=t.search)==null?void 0:k.key)!=null?w:t.prop)!=null?x:"",label:t.label,component:(_=t.search)==null?void 0:_.component,props:Q(R({},(T=t.search)==null?void 0:T.props),{clearable:!1}),options:l,fieldNames:t.fieldNames,defaultValue:(g=t.search)==null?void 0:g.defaultValue,render:(C=t.search)==null?void 0:C.render}});function n(t){c("update:modelValue",t)}return(t,l)=>{var k,w,x;return e.openBlock(),e.createElementBlock("div",{class:"sy-pro-table__custom-filter-chip",onKeyup:l[1]||(l[1]=e.withKeys(_=>c("search"),["enter"]))},[e.createElementVNode("div",{class:"sy-pro-table__custom-filter-chip-control",style:e.normalizeStyle({width:`${(x=(w=(k=r.column.search)==null?void 0:k.chipWidth)!=null?w:r.width)!=null?x:100}px`})},[e.createVNode(Oe,{schema:a.value,model:o.model,"model-value":o.modelValue,"onUpdate:modelValue":n},null,8,["schema","model","model-value"])],4),e.createElementVNode("span",{class:"sy-pro-table__custom-filter-chip-close",onClick:l[0]||(l[0]=e.withModifiers(_=>c("remove"),["stop"]))},[e.createVNode(e.unref(fe),null,{default:e.withCtx(()=>[e.createVNode(e.unref(X.Close))]),_:1})])],32)}}}),ut=e.defineComponent({__name:"UnifyQuickSearch",props:{column:{},model:{},modelValue:{}},emits:["search","update:modelValue"],setup(o,{emit:s}){const r=o,c=s,i=e.inject("proTableEnumMap",{value:new Map}),a=e.computed(()=>{var w;const l=(w=r.column.search)==null?void 0:w.quick,k=typeof l=="object"&&(l==null?void 0:l.width)||220;return{width:typeof k=="number"?`${k}px`:k}}),n=e.computed(()=>{var w,x,_,T,g,C,u;const l=r.column,k=(()=>{var m,y,B,$,F,M,D;if(((m=l.search)==null?void 0:m.options)!==void 0){const E=l.search.options;return Array.isArray(E)?E:(y=e.unref(E))!=null?y:void 0}if(!(!l.enum||($=(B=l.search)==null?void 0:B.component)!=null&&$.includes("tree")))return typeof l.enum=="function"?(M=i.value.get((F=l.prop)!=null?F:""))!=null?M:void 0:Array.isArray(l.enum)?l.enum:(D=e.unref(l.enum))!=null?D:void 0})();return{field:(_=(x=(w=l.search)==null?void 0:w.key)!=null?x:l.prop)!=null?_:"",label:l.label,component:(T=l.search)==null?void 0:T.component,props:(g=l.search)==null?void 0:g.props,options:k,fieldNames:l.fieldNames,defaultValue:(C=l.search)==null?void 0:C.defaultValue,render:(u=l.search)==null?void 0:u.render}});function t(l){c("update:modelValue",l)}return(l,k)=>(e.openBlock(),e.createElementBlock("div",{class:"sy-pro-table__unify-quick",style:e.normalizeStyle(a.value),onKeyup:k[0]||(k[0]=e.withKeys(w=>c("search"),["enter"]))},[e.createVNode(Oe,{schema:n.value,model:o.model,"model-value":o.modelValue,"onUpdate:modelValue":t},null,8,["schema","model","model-value"])],36))}}),us={class:"sy-pro-table__custom-search"},ys=e.defineComponent({__name:"CustomSearchBar",props:{quickSearchColumns:{},searchParam:{},showAdvanced:{type:Boolean},filterActive:{type:Boolean}},emits:["search","toggleAdvanced","updateParam"],setup(o,{emit:s}){const r=s;function c(){r("search")}return(i,a)=>(e.openBlock(),e.createElementBlock("div",us,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.quickSearchColumns,n=>{var t,l,k,w,x;return e.openBlock(),e.createBlock(ut,{key:(l=(t=n.search)==null?void 0:t.key)!=null?l:n.prop,"model-value":o.searchParam[(x=(w=(k=n.search)==null?void 0:k.key)!=null?w:n.prop)!=null?x:""],column:n,model:o.searchParam,"onUpdate:modelValue":_=>{var T,g,C;return r("updateParam",(C=(g=(T=n.search)==null?void 0:T.key)!=null?g:n.prop)!=null?C:"",_)},onSearch:c},null,8,["model-value","column","model","onUpdate:modelValue"])}),128)),e.createVNode(e.unref(pe),{content:"查询",placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(Y),{class:"sy-pro-table__custom-search-btn",icon:e.unref(X.Search),onClick:c},null,8,["icon"])]),_:1}),o.showAdvanced?(e.openBlock(),e.createBlock(e.unref(pe),{key:0,content:"高级筛选",placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(Y),{class:e.normalizeClass(["sy-pro-table__custom-filter-btn",{"is-active":o.filterActive}]),icon:e.unref(X.Filter),onClick:a[0]||(a[0]=n=>r("toggleAdvanced"))},null,8,["class","icon"])]),_:1})):e.createCommentVNode("v-if",!0)]))}}),Ss={class:"sy-pro-table__custom-panel-inner"},gs={class:"sy-pro-table__custom-panel-footer"},bs=e.defineComponent({__name:"CustomSearchPanel",props:{context:{},visible:{type:Boolean},excludeSelector:{default:""},cols:{default:1}},emits:["close","panelSearch"],setup(o,{emit:s}){const r=o,c=s,i=e.computed(()=>{const g=typeof r.cols=="number"?r.cols:1;return{width:`${Math.max(360,g*280+32)}px`}}),a=r.context.search,n=r.context.reset;function t(){a(),c("panelSearch"),c("close")}function l(){n(),c("close")}const k=r.context.formRef,w=e.ref();function x(g){k.value=g}let _=null;function T(g){var u;const C=g.composedPath();for(const m of C){const y=m;if(y!=null&&y.classList&&(y===w.value||r.excludeSelector&&((u=y.matches)!=null&&u.call(y,r.excludeSelector))||y.classList.contains("el-popper")||y.classList.contains("el-overlay")||y.classList.contains("el-picker__popper")||y.classList.contains("el-select__popper")||y.classList.contains("el-select-dropdown")||y.classList.contains("el-date-picker")||y.classList.contains("el-date-range-picker")))return}c("close")}return e.watch(()=>r.visible,g=>{_==null||_(),_=null,g&&e.nextTick(()=>{document.addEventListener("mousedown",T,!0),_=()=>document.removeEventListener("mousedown",T,!0)})}),e.onBeforeUnmount(()=>_==null?void 0:_()),(g,C)=>(e.openBlock(),e.createBlock(e.Transition,{name:"sy-pro-table-panel",persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"panelRootRef",ref:w,class:"sy-pro-table__custom-panel",style:e.normalizeStyle(i.value)},[e.createElementVNode("div",Ss,[e.createVNode(qe,{ref:x,context:o.context,cols:r.cols,"show-query-btn":!1,"show-reset-btn":!1,collapsible:!1},null,8,["context","cols"]),e.createElementVNode("div",gs,[e.createVNode(e.unref(Y),{onClick:l},{default:e.withCtx(()=>[...C[0]||(C[0]=[e.createTextVNode("重置",-1)])]),_:1}),e.createVNode(e.unref(Y),{type:"primary",onClick:t},{default:e.withCtx(()=>[...C[1]||(C[1]=[e.createTextVNode("查询",-1)])]),_:1})])])],4),[[e.vShow,o.visible]])]),_:1}))}}),Cs={class:"sy-pro-table__main sy-pro-table__main--custom"},ws={key:0,class:"sy-pro-table__header sy-pro-table__header--custom"},As={class:"sy-pro-table__custom-batch"},ks={class:"sy-pro-table__custom-batch-count"},Ns={class:"sy-pro-table__header-left"},xs={class:"sy-pro-table__header-right sy-pro-table__header-right--custom"},Bs={class:"sy-pro-table__custom-panel-inner sy-pro-table__chip-overflow-list"},Ps=e.defineComponent({__name:"CustomLayout",props:{context:{},onDragSort:{type:Function}},setup(o){var we;const s=o,r=s.context.props,c=s.context.isShowSearch,i=s.context.searchColumns,a=s.context.quickSearchColumns,n=s.context.searchParam,t=s.context.selectedList,l=s.context.selectedListIds,k=s.context.isSelected,w=s.context.search,x=s.context.toggleSearch,_=s.context.showToolBtn,T=s.context.getTableList,g=s.context.openColSetting,C=s.context.colSettingRef,u=s.context.clearSelection,m=s.context.searchInitParam,y=e.computed(()=>!!r.showSearch&&c.value&&i.value.length>0),B=e.computed(()=>{const d=new Set(a.value.map(b=>{var V,I,z;return(z=(I=(V=b.search)==null?void 0:V.key)!=null?I:b.prop)!=null?z:""}));return i.value.filter(b=>{var V,I,z;return!d.has((z=(I=(V=b.search)==null?void 0:V.key)!=null?I:b.prop)!=null?z:"")})}),$=e.ref(new Set),F=e.computed(()=>B.value.map(d=>{var I,z,O;const b=(O=(z=(I=d.search)==null?void 0:I.key)!=null?z:d.prop)!=null?O:"";if(!$.value.has(b))return null;const V=n.value[b];return V==null||V===""||Array.isArray(V)&&V.length===0?null:{key:b,column:d}}).filter(d=>d!==null)),M=e.computed(()=>{var b;const d=(b=r.filterChipMax)!=null?b:3;return F.value.slice(0,d)}),D=e.computed(()=>{var b;const d=(b=r.filterChipMax)!=null?b:3;return F.value.slice(d)}),E=e.ref(!1),L=e.ref(),K=e.ref(null),q=e.ref(null),J=e.computed(()=>{const d=q.value,b=S.value;if(!d||!b)return{left:"16px"};const V=b.getBoundingClientRect(),I=d.getBoundingClientRect();return{left:`${Math.round(I.left-V.left)}px`}});function H(){E.value=!E.value}e.watch(D,d=>{d.length===0&&(E.value=!1)});function Z(d){var I,z,O;const b=d.composedPath(),V=(z=(I=K.value)==null?void 0:I.$el)!=null?z:K.value;for(const v of b){const G=v;if(G!=null&&G.classList&&(G===L.value||(O=V==null?void 0:V.contains)!=null&&O.call(V,G)||G===V||G.classList.contains("el-popper")||G.classList.contains("el-overlay")||G.classList.contains("el-picker__popper")||G.classList.contains("el-select__popper")||G.classList.contains("el-select-dropdown")||G.classList.contains("el-date-picker")||G.classList.contains("el-date-range-picker")))return}E.value=!1}let W=null;e.watch(E,d=>{W==null||W(),W=null,d&&e.nextTick(()=>{document.addEventListener("mousedown",Z,!0),W=()=>document.removeEventListener("mousedown",Z,!0)})}),e.onBeforeUnmount(()=>W==null?void 0:W());function ee(){$.value=new Set(B.value.map(d=>{var b,V,I;return(I=(V=(b=d.search)==null?void 0:b.key)!=null?V:d.prop)!=null?I:""}).filter(d=>{const b=n.value[d];return b!=null&&b!==""&&!(Array.isArray(b)&&b.length===0)}))}function te(d,b){n.value[d]=b}function ae(d){var b;n.value[d]=(b=m[d])!=null?b:void 0,$.value.delete(d),w()}function ce(){B.value.forEach(d=>{var V,I,z,O;const b=(z=(I=(V=d.search)==null?void 0:V.key)!=null?I:d.prop)!=null?z:"";n.value[b]=(O=m[b])!=null?O:void 0}),$.value.clear(),w()}const S=e.ref(),P=e.ref(void 0),N=e.ref(void 0),U=(we=e.inject(h.SY_UI_CONFIG_KEY,{}).proTable)!=null?we:{};function j(){var G,me;const d=S.value;if(!d)return;const b=d.querySelector(".sy-pro-table__table"),V=d.querySelector(".sy-pro-table__pagination");if(!b)return;const I=b.getBoundingClientRect().top,z=V?V.getBoundingClientRect().height:0,O=(me=(G=r.heightOffset)!=null?G:U.heightOffset)!=null?me:0,v=Math.floor(window.innerHeight-I-z-O);return v>80?v:void 0}function ne(){if(r.height!==void 0){P.value=r.height,N.value=void 0;return}if(r.autoHeight===!0){P.value=j(),N.value=void 0;return}if(r.maxHeight!==void 0){P.value=void 0,N.value=r.maxHeight;return}P.value=void 0,N.value=j()}let oe=null;e.onMounted(()=>{e.nextTick(ne),window.addEventListener("resize",ne),S.value&&(oe=new ResizeObserver(ne),oe.observe(S.value))}),e.onUnmounted(()=>{window.removeEventListener("resize",ne),oe==null||oe.disconnect()});function re(d){C.value=d}function Re(){c.value&&x()}return(d,b)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"layoutRef",ref:S,class:"sy-pro-table sy-pro-table--custom"},[e.createElementVNode("div",Cs,[e.unref(r).tableOnly?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("div",ws,[e.createCommentVNode(" 批量操作模式:选中行时替换整个 header "),e.unref(k)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",As,[e.createElementVNode("span",ks,"已选 "+e.toDisplayString(e.unref(t).length)+" 条数据",1),b[1]||(b[1]=e.createElementVNode("span",{class:"sy-pro-table__custom-batch-divider"},null,-1)),e.renderSlot(d.$slots,"batchActions",{selectedList:e.unref(t),selectedListIds:e.unref(l),isSelected:e.unref(k)})]),e.createVNode(e.unref(Y),{class:"sy-pro-table__custom-batch-close",icon:e.unref(X.Close),circle:"",onClick:e.unref(u)},null,8,["icon","onClick"])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createCommentVNode(" 正常模式 "),e.createCommentVNode(" 左侧:快速查询 + 高级筛选 + 已应用筛选 tags "),e.createElementVNode("div",Ns,[e.createVNode(ys,{"quick-search-columns":e.unref(a),"search-param":e.unref(n),"show-advanced":e.unref(r).showSearch&&e.unref(_)("search")&&e.unref(i).length>0,"filter-active":y.value||F.value.length>0,onSearch:e.unref(w),onToggleAdvanced:e.unref(x),onUpdateParam:b[0]||(b[0]=(V,I)=>e.unref(n)[V]=I)},null,8,["quick-search-columns","search-param","show-advanced","filter-active","onSearch","onToggleAdvanced"]),e.createCommentVNode(" chips 行整体包一个 div,用于精确计算 overflow panel 的对齐 left "),F.value.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chipsRowRef",ref:q,class:"sy-pro-table__chip-row"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(M.value,V=>(e.openBlock(),e.createBlock(ht,{key:V.key,column:V.column,model:e.unref(n),"model-value":e.unref(n)[V.key],width:e.unref(r).filterChipWidth,"onUpdate:modelValue":I=>te(V.key,I),onSearch:e.unref(w),onRemove:I=>ae(V.key)},null,8,["column","model","model-value","width","onUpdate:modelValue","onSearch","onRemove"]))),128)),e.createCommentVNode(" 超出 filterChipMax 时的折叠入口 "),D.value.length>0?(e.openBlock(),e.createBlock(e.unref(Y),{key:0,ref_key:"overflowBtnRef",ref:K,class:"sy-pro-table__custom-filter-more",size:"small",type:"primary",plain:"",onClick:H},{default:e.withCtx(()=>[e.createTextVNode(" +"+e.toDisplayString(D.value.length),1)]),_:1},512)):e.createCommentVNode("v-if",!0),D.value.length===0?(e.openBlock(),e.createBlock(e.unref(Y),{key:1,link:"",size:"small",class:"sy-pro-table__custom-filter-clear",onClick:ce},{default:e.withCtx(()=>[...b[2]||(b[2]=[e.createTextVNode("清空",-1)])]),_:1})):e.createCommentVNode("v-if",!0)],512)):e.createCommentVNode("v-if",!0)]),e.createCommentVNode(" 右侧:业务操作按钮 + 工具按钮 + 刷新 + 列设置 "),e.createElementVNode("div",xs,[e.renderSlot(d.$slots,"busActions"),e.renderSlot(d.$slots,"toolButton"),e.unref(_)("refresh")?(e.openBlock(),e.createBlock(e.unref(pe),{key:0,content:"刷新",placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(Y),{icon:e.unref(X.Refresh),circle:"",onClick:e.unref(T)},null,8,["icon","onClick"])]),_:1})):e.createCommentVNode("v-if",!0),e.unref(_)("setting")?(e.openBlock(),e.createBlock(e.unref(pe),{key:1,content:"列设置",placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(Y),{icon:e.unref(X.Operation),circle:"",onClick:e.unref(g)},null,8,["icon","onClick"])]),_:1})):e.createCommentVNode("v-if",!0)])],64))])),e.createVNode(je,{context:o.context,"table-height":P.value,"table-max-height":N.value,"on-drag-sort":o.onDragSort},{append:e.withCtx(()=>[e.renderSlot(d.$slots,"append")]),empty:e.withCtx(()=>[e.renderSlot(d.$slots,"empty")]),default:e.withCtx(()=>[e.renderSlot(d.$slots,"default")]),_:3},8,["context","table-height","table-max-height","on-drag-sort"]),e.createVNode(Ue,{context:o.context},{pagination:e.withCtx(()=>[e.renderSlot(d.$slots,"pagination")]),_:3},8,["context"])]),e.createCommentVNode(" 两个浮层面板放在最外层容器下,避免被 __main 的 overflow:hidden 裁剪 "),e.createVNode(bs,{context:o.context,visible:y.value,cols:e.unref(r).panelCols,"exclude-selector":".sy-pro-table__custom-filter-btn",onClose:Re,onPanelSearch:ee},null,8,["context","visible","cols"]),e.createCommentVNode(" overflow chip 浮层:与第一个 chip 左对齐 "),e.createVNode(e.Transition,{name:"sy-pro-table-panel",persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"overflowPanelRef",ref:L,class:"sy-pro-table__custom-panel",style:e.normalizeStyle(J.value)},[e.createElementVNode("div",Bs,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(D.value,V=>(e.openBlock(),e.createBlock(ht,{key:V.key,column:V.column,model:e.unref(n),"model-value":e.unref(n)[V.key],width:e.unref(r).filterChipWidth,"onUpdate:modelValue":I=>te(V.key,I),onSearch:e.unref(w),onRemove:I=>ae(V.key)},null,8,["column","model","model-value","width","onUpdate:modelValue","onSearch","onRemove"]))),128)),e.createVNode(e.unref(Y),{link:"",size:"small",class:"sy-pro-table__custom-filter-clear",onClick:ce},{default:e.withCtx(()=>[...b[3]||(b[3]=[e.createTextVNode("清空全部",-1)])]),_:1})])],4),[[e.vShow,E.value]])]),_:1}),e.createVNode(He,{ref:re,context:o.context},null,8,["context"])],512))}}),Vs={class:"sy-pro-table__unify-panel-inner"},_s={class:"sy-pro-table__unify-panel-footer"},Rs=e.defineComponent({__name:"UnifySearchPanel",props:{context:{},visible:{type:Boolean},excludeSelector:{default:""},cols:{default:1}},emits:["close"],setup(o,{emit:s}){const r=o,c=s,i=e.computed(()=>{const g=typeof r.cols=="number"?r.cols:1;return{width:`${Math.max(360,g*280+32)}px`}}),a=r.context.search,n=r.context.reset;function t(){a(),c("close")}function l(){n(),c("close")}const k=r.context.formRef,w=e.ref();function x(g){k.value=g}let _=null;function T(g){var u;const C=g.target;C&&((u=w.value)!=null&&u.contains(C)||r.excludeSelector&&C.closest(r.excludeSelector)||C.closest(".el-popper")||C.closest(".el-overlay")||c("close"))}return e.watch(()=>r.visible,g=>{_==null||_(),_=null,g&&e.nextTick(()=>{document.addEventListener("mousedown",T,!0),_=()=>document.removeEventListener("mousedown",T,!0)})}),e.onBeforeUnmount(()=>_==null?void 0:_()),(g,C)=>(e.openBlock(),e.createBlock(e.Transition,{name:"sy-pro-table-panel",persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"panelRootRef",ref:w,class:"sy-pro-table__unify-panel",style:e.normalizeStyle(i.value)},[e.createElementVNode("div",Vs,[e.createVNode(qe,{ref:x,context:o.context,cols:r.cols,"show-query-btn":!1,"show-reset-btn":!1,collapsible:!1},null,8,["context","cols"]),e.createElementVNode("div",_s,[e.createVNode(e.unref(Y),{onClick:l},{default:e.withCtx(()=>[...C[0]||(C[0]=[e.createTextVNode("重置",-1)])]),_:1}),e.createVNode(e.unref(Y),{type:"primary",onClick:t},{default:e.withCtx(()=>[...C[1]||(C[1]=[e.createTextVNode("查询",-1)])]),_:1})])])],4),[[e.vShow,o.visible]])]),_:1}))}}),Ts={class:"sy-pro-table__main sy-pro-table__main--unify"},Is={key:0,class:"sy-pro-table__header sy-pro-table__header--unify"},$s={class:"sy-pro-table__header-left"},Es={class:"sy-pro-table__header-right sy-pro-table__header-right--unify"},Ls=e.defineComponent({__name:"UnifyLayout",props:{context:{},onDragSort:{type:Function}},setup(o){var E;const s=o,r=s.context.props,c=s.context.isShowSearch,i=s.context.searchColumns,a=s.context.quickSearchColumns,n=s.context.searchParam,t=s.context.selectedList,l=s.context.selectedListIds,k=s.context.isSelected,w=s.context.search,x=s.context.toggleSearch,_=s.context.showToolBtn,T=s.context.colSettingRef,g=e.computed(()=>!!r.showSearch&&c.value&&i.value.length>0),C=e.ref(),u=e.ref(void 0),m=e.ref(void 0),y=(E=e.inject(h.SY_UI_CONFIG_KEY,{}).proTable)!=null?E:{};function B(){var ee,te;const L=C.value;if(!L)return;const K=L.querySelector(".sy-pro-table__table"),q=L.querySelector(".sy-pro-table__pagination");if(!K)return;const J=K.getBoundingClientRect().top,H=q?q.getBoundingClientRect().height:0,Z=(te=(ee=r.heightOffset)!=null?ee:y.heightOffset)!=null?te:0,W=Math.floor(window.innerHeight-J-H-Z);return W>80?W:void 0}function $(){if(r.height!==void 0){u.value=r.height,m.value=void 0;return}if(r.autoHeight===!0){u.value=B(),m.value=void 0;return}if(r.maxHeight!==void 0){u.value=void 0,m.value=r.maxHeight;return}u.value=void 0,m.value=B()}let F=null;e.onMounted(()=>{e.nextTick($),window.addEventListener("resize",$),C.value&&(F=new ResizeObserver($),F.observe(C.value))}),e.onUnmounted(()=>{window.removeEventListener("resize",$),F==null||F.disconnect()});function M(L){T.value=L}function D(){c.value&&x()}return(L,K)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"layoutRef",ref:C,class:"sy-pro-table sy-pro-table--unify"},[e.createElementVNode("div",Ts,[e.unref(r).tableOnly?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("div",Is,[e.createElementVNode("div",$s,[e.createCommentVNode(" 业务操作按钮(新增/导出等),始终可见 "),e.renderSlot(L.$slots,"busActions"),e.createCommentVNode(" 批量操作,仅在有选中行时追加显示 "),e.unref(k)?e.renderSlot(L.$slots,"batchActions",{key:0,selectedList:e.unref(t),selectedListIds:e.unref(l),isSelected:e.unref(k)}):e.createCommentVNode("v-if",!0)]),e.createElementVNode("div",Es,[e.createCommentVNode(" 快速搜索始终渲染 "),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),q=>{var J,H,Z,W,ee;return e.openBlock(),e.createBlock(ut,{key:(H=(J=q.search)==null?void 0:J.key)!=null?H:q.prop,modelValue:e.unref(n)[(ee=(W=(Z=q.search)==null?void 0:Z.key)!=null?W:q.prop)!=null?ee:""],"onUpdate:modelValue":te=>{var ae,ce,S;return e.unref(n)[(S=(ce=(ae=q.search)==null?void 0:ae.key)!=null?ce:q.prop)!=null?S:""]=te},column:q,model:e.unref(n),onSearch:e.unref(w)},null,8,["modelValue","onUpdate:modelValue","column","model","onSearch"])}),128)),e.unref(a).length>0?(e.openBlock(),e.createBlock(e.unref(Y),{key:0,type:"primary",onClick:e.unref(w)},{default:e.withCtx(()=>[...K[0]||(K[0]=[e.createTextVNode("查询",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("v-if",!0),e.unref(r).showSearch&&e.unref(_)("search")&&e.unref(i).length>0?(e.openBlock(),e.createBlock(e.unref(Y),{key:1,class:"sy-pro-table__unify-advanced-btn",type:"primary",plain:"",onClick:e.unref(x)},{default:e.withCtx(()=>[...K[1]||(K[1]=[e.createTextVNode(" 高级筛选 ",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" 工具按钮区,用户可通过 #toolButton 追加自定义工具 "),e.renderSlot(L.$slots,"toolButton")])])),e.createVNode(je,{context:o.context,"table-height":u.value,"table-max-height":m.value,"on-drag-sort":o.onDragSort},{append:e.withCtx(()=>[e.renderSlot(L.$slots,"append")]),empty:e.withCtx(()=>[e.renderSlot(L.$slots,"empty")]),default:e.withCtx(()=>[e.renderSlot(L.$slots,"default")]),_:3},8,["context","table-height","table-max-height","on-drag-sort"]),e.createVNode(Ue,{context:o.context},{pagination:e.withCtx(()=>[e.renderSlot(L.$slots,"pagination")]),_:3},8,["context"])]),e.createCommentVNode(" 面板放在最外层容器下,避免被 __main 的 overflow:hidden 裁剪 "),e.createVNode(Rs,{context:o.context,visible:g.value,cols:e.unref(r).panelCols,"exclude-selector":".sy-pro-table__unify-advanced-btn",onClose:D},null,8,["context","visible","cols"]),e.createVNode(He,{ref:M,context:o.context},null,8,["context"])],512))}}),Ms=e.defineComponent({name:"SyProTable",inheritAttrs:!1,__name:"ProTable",props:{columns:{},data:{},request:{},params:{},postData:{},requestError:{},manualRequest:{type:Boolean,default:!1},pagination:{type:Boolean,default:!0},rowKey:{},border:{type:Boolean},stripe:{type:Boolean},showSearch:{type:Boolean,default:!0},searchCols:{},panelCols:{},filterChipWidth:{},filterChipMax:{},toolButton:{type:[Boolean,Array],default:!0},highlightCurrentRow:{type:Boolean,default:!1},size:{},pageSizes:{},pageSize:{},pageLayout:{},type:{},height:{},maxHeight:{},autoHeight:{type:Boolean},heightOffset:{},tableOnly:{type:Boolean,default:!1}},emits:["search","reset","dragSort"],setup(o,{expose:s,emit:r}){const c=o,i=r,a=e.useSlots(),n=ns(c,i,a);function t(l){i("dragSort",l)}return s({tableRef:n.tableRef,formRef:n.formRef,tableData:n.tableData,enumMap:n.enumMap,pageable:n.pageable,searchParam:n.searchParam,searchInitParam:n.searchInitParam,isSelected:n.isSelected,selectedList:n.selectedList,selectedListIds:n.selectedListIds,radio:n.radio,getTableList:n.getTableList,search:n.search,reset:n.reset,clearSelection:n.clearSelection,clearRadio:n.clearRadio,handleSizeChange:n.handleSizeChange,handleCurrentChange:n.handleCurrentChange}),(l,k)=>e.unref(n).props.type==="classic"?(e.openBlock(),e.createBlock(hs,{key:0,context:e.unref(n),"on-drag-sort":t},e.createSlots({batchActions:e.withCtx(w=>[e.unref(a).batchActions?e.renderSlot(l.$slots,"batchActions",e.normalizeProps(e.mergeProps({key:0},w))):e.renderSlot(l.$slots,"tableHeader",e.normalizeProps(e.mergeProps({key:1},w)))]),default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:2},[e.unref(a).busActions?{name:"busActions",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"busActions")]),key:"0"}:void 0,e.unref(a).toolButton?{name:"toolButton",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"toolButton")]),key:"1"}:void 0,e.unref(a).append?{name:"append",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"append")]),key:"2"}:void 0,e.unref(a).empty?{name:"empty",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"empty")]),key:"3"}:void 0,e.unref(a).pagination?{name:"pagination",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"pagination")]),key:"4"}:void 0]),1032,["context"])):e.unref(n).props.type==="unify"?(e.openBlock(),e.createBlock(Ls,{key:1,context:e.unref(n),"on-drag-sort":t},e.createSlots({batchActions:e.withCtx(w=>[e.unref(a).batchActions?e.renderSlot(l.$slots,"batchActions",e.normalizeProps(e.mergeProps({key:0},w))):e.renderSlot(l.$slots,"tableHeader",e.normalizeProps(e.mergeProps({key:1},w)))]),default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:2},[e.unref(a).busActions?{name:"busActions",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"busActions")]),key:"0"}:void 0,e.unref(a).toolButton?{name:"toolButton",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"toolButton")]),key:"1"}:void 0,e.unref(a).append?{name:"append",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"append")]),key:"2"}:void 0,e.unref(a).empty?{name:"empty",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"empty")]),key:"3"}:void 0,e.unref(a).pagination?{name:"pagination",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"pagination")]),key:"4"}:void 0]),1032,["context"])):(e.openBlock(),e.createBlock(Ps,{key:2,context:e.unref(n),"on-drag-sort":t},e.createSlots({batchActions:e.withCtx(w=>[e.unref(a).batchActions?e.renderSlot(l.$slots,"batchActions",e.normalizeProps(e.mergeProps({key:0},w))):e.renderSlot(l.$slots,"tableHeader",e.normalizeProps(e.mergeProps({key:1},w)))]),default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:2},[e.unref(a).busActions?{name:"busActions",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"busActions")]),key:"0"}:void 0,e.unref(a).toolButton?{name:"toolButton",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"toolButton")]),key:"1"}:void 0,e.unref(a).append?{name:"append",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"append")]),key:"2"}:void 0,e.unref(a).empty?{name:"empty",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"empty")]),key:"3"}:void 0,e.unref(a).pagination?{name:"pagination",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"pagination")]),key:"4"}:void 0]),1032,["context"]))}}),Fs=h.withInstall(Ms);Object.defineProperty(f,"SY_UI_CONFIG_KEY",{enumerable:!0,get:()=>h.SY_UI_CONFIG_KEY}),f.SyAlert=Tt,f.SyAside=on,f.SyAutocomplete=ie,f.SyBacktop=$t,f.SyButton=Y,f.SyCard=Mt,f.SyCascader=Ge,f.SyCheckbox=Ye,f.SyCheckboxButton=Ht,f.SyCheckboxGroup=We,f.SyCol=Dn,f.SyCollapse=Gt,f.SyCollapseItem=Yt,f.SyColorPicker=qt,f.SyConfigProvider=an,f.SyContainer=tn,f.SyDatePicker=Qe,f.SyDateTimePicker=pn,f.SyDescriptions=hn,f.SyDescriptionsItem=un,f.SyDialog=Sn,f.SyDivider=bn,f.SyDrawer=Je,f.SyDropdown=Nn,f.SyDropdownItem=Bn,f.SyDropdownMenu=xn,f.SyEmpty=Ze,f.SyFooter=rn,f.SyForm=Xe,f.SyFormItem=ve,f.SyHeader=nn,f.SyIcon=fe,f.SyImage=In,f.SyInput=$e,f.SyInputNumber=et,f.SyLink=On,f.SyLoading=jn,f.SyLoadingDirective=Ne,f.SyMain=sn,f.SyMenu=Qn,f.SyMenuItem=Zn,f.SyMenuItemGroup=Xn,f.SyMessage=he,f.SyMessageBox=nt,f.SyNotification=ot,f.SyOption=ct,f.SyPagination=st,f.SyPopconfirm=to,f.SyPopover=so,f.SyProForm=pt,f.SyProTable=Fs,f.SyProgress=lo,f.SyRadio=Fe,f.SyRadioButton=lt,f.SyRadioGroup=rt,f.SyRow=Fn,f.SyScrollbar=mo,f.SySelect=at,f.SySelectV2=So,f.SySkeleton=Co,f.SySkeletonItem=wo,f.SySlider=ko,f.SySpace=xo,f.SyStep=_o,f.SySteps=Vo,f.SySubMenu=Jn,f.SySwitch=Ve,f.SyTabPane=Mo,f.SyTable=De,f.SyTableColumn=le,f.SyTabs=Lo,f.SyTag=_e,f.SyText=zo,f.SyTimePicker=it,f.SyTimeSelect=dt,f.SyTooltip=pe,f.SyTree=Ko,f.SyTreeSelect=Yo,f.SyUpload=Qo,Object.defineProperty(f,Symbol.toStringTag,{value:"Module"})});
|
|
7
|
+
</div> `),e.createCommentVNode(" 列配置表格 "),e.createVNode(e.unref(ze),{data:i.value,"row-key":"prop",border:!0,"default-expand-all":"","tree-props":{children:"_children"}},{empty:e.withCtx(()=>[...S[1]||(S[1]=[e.createElementVNode("div",{style:{padding:"24px 0",color:"var(--el-text-color-secondary)","font-size":"13px"}},"暂无可配置列",-1)])]),default:e.withCtx(()=>[e.createVNode(e.unref(ae),{prop:"label",label:"列名",align:"left","min-width":"100"},{default:e.withCtx(({row:k})=>{var A,V;return[e.createTextVNode(e.toDisplayString((V=(A=k.label)!=null?A:k.prop)!=null?V:"—"),1)]}),_:1}),e.createVNode(e.unref(ae),{prop:"isShow",label:"显示",align:"center",width:"80"},{default:e.withCtx(({row:k})=>[e.createVNode(e.unref(_e),{"model-value":k.isShow!==!1,"onUpdate:modelValue":A=>{k.isShow=A}},null,8,["model-value","onUpdate:modelValue"])]),_:1}),e.createVNode(e.unref(ae),{prop:"sortable",label:"排序",align:"center",width:"80"},{default:e.withCtx(({row:k})=>[typeof k.sortable=="boolean"?(e.openBlock(),e.createBlock(e.unref(_e),{key:0,modelValue:k.sortable,"onUpdate:modelValue":A=>k.sortable=A},null,8,["modelValue","onUpdate:modelValue"])):(e.openBlock(),e.createElementBlock("span",rs,"—"))]),_:1})]),_:1},8,["data"])]),_:1},8,["modelValue"]))}}),Ue=e.defineComponent({__name:"ProTableColSetting",props:{context:{}},setup(o,{expose:s}){const c=o.context.flatColumns,i=e.ref();function l(){var n,t;(t=(n=i.value)==null?void 0:n.open)==null||t.call(n)}return s({open:l}),(n,t)=>(e.openBlock(),e.createBlock(ls,{ref_key:"innerRef",ref:i,columns:e.unref(c)},null,8,["columns"]))}}),as={key:0,class:"sy-pro-table__pagination"},qe=e.defineComponent({__name:"ProTablePagination",props:{context:{}},setup(o){const s=o,r=s.context.props,c=s.context.pageable,i=s.context.handleSizeChange,l=s.context.handleCurrentChange;return(n,t)=>e.unref(r).pagination&&e.unref(c).total>0?(e.openBlock(),e.createElementBlock("div",as,[e.renderSlot(n.$slots,"pagination",{},()=>[e.createVNode(e.unref(rt),{"current-page":e.unref(c).pageNum,"onUpdate:currentPage":t[0]||(t[0]=a=>e.unref(c).pageNum=a),"page-size":e.unref(c).pageSize,"onUpdate:pageSize":t[1]||(t[1]=a=>e.unref(c).pageSize=a),total:e.unref(c).total,"page-sizes":e.unref(r).pageSizes,layout:e.unref(r).pageLayout,background:"",onSizeChange:e.unref(i),onCurrentChange:e.unref(l)},null,8,["current-page","page-size","total","page-sizes","layout","onSizeChange","onCurrentChange"])])])):e.createCommentVNode("v-if",!0)}}),je=e.defineComponent({__name:"ProTableSearchRenderer",props:{context:{},cols:{default:4},showQueryBtn:{type:Boolean,default:!0},showResetBtn:{type:Boolean,default:!0},collapsible:{type:Boolean,default:!0}},setup(o,{expose:s}){const r=o,c=r.context.props,i=r.context.searchParam,l=r.context.searchSchema,n=r.context.search,t=r.context.reset,a=e.ref();return s({validate:S=>{var k,A;return(A=(k=a.value)==null?void 0:k.validate)==null?void 0:A.call(k,S)},resetFields:()=>{var S,k;return(k=(S=a.value)==null?void 0:S.resetFields)==null?void 0:k.call(S)},clearValidate:S=>{var k,A;return(A=(k=a.value)==null?void 0:k.clearValidate)==null?void 0:A.call(k,S)},formRef:a}),(S,k)=>(e.openBlock(),e.createBlock(e.unref(mt),{ref_key:"innerFormRef",ref:a,model:e.unref(i),schema:e.unref(l),cols:o.cols,"label-width":e.unref(c).searchLabelWidth,"label-position":e.unref(c).searchLabelPosition,"show-query-btn":o.showQueryBtn,"show-reset-btn":o.showResetBtn,collapsible:o.collapsible,onSearch:e.unref(n),onReset:e.unref(t)},null,8,["model","schema","cols","label-width","label-position","show-query-btn","show-reset-btn","collapsible","onSearch","onReset"]))}}),cs=e.defineComponent({__name:"ProTableColumn",props:{column:{}},emits:["radioChange"],setup(o){const s=o,r=e.inject("proTableEnumMap",{value:new Map}),c=e.inject("proTableSlots",{}),i=e.computed(()=>{const C=s.column.isShow;return C===void 0?!0:e.unref(C)}),l=e.computed(()=>{var b,g,m,u;const C=s.column.enum;return typeof C=="function"?(g=r.value.get((b=s.column.prop)!=null?b:""))!=null?g:[]:C?e.unref(C):(u=r.value.get((m=s.column.prop)!=null?m:""))!=null?u:[]});function n(C){var B,$;const{fieldNames:b}=s.column,g=(B=b==null?void 0:b.label)!=null?B:"label",m=($=b==null?void 0:b.value)!=null?$:"value",u=l.value.find(F=>F[m]===C);return u?u[g]:String(C!=null?C:"")}function t(C){var u;const{fieldNames:b}=s.column,g=(u=b==null?void 0:b.value)!=null?u:"value",m=l.value.find(B=>B[g]===C);return(m==null?void 0:m.tagType)||void 0}function a(C){return C.split(".").reduce((g,m,u)=>u===0?g+m:g+m.charAt(0).toUpperCase()+m.slice(1),"")}function S(C){var $;const{column:b}=s;if(b.render)return b.render(C);if(b.type==="expand"){const F="expand";return c[F]?c[F](C):null}const g=($=b.prop)!=null?$:"",m=C.row[g],u=a(g);if(c[u])return c[u](C);if(b.isFilterEnum!==!1&&l.value.length>0){if(b.tag){const F=t(m);return e.h(Re,F?{type:F}:{},()=>n(m))}return e.h("span",{},n(m))}return b.tag?e.h(Re,{},()=>String(m!=null?m:"")):e.h("span",{},String(m!=null?m:""))}function k(C){var m,u;const{column:b}=s;if(b.headerRender)return b.headerRender(C);const g=`${a((m=b.prop)!=null?m:"")}Header`;return c[g]?c[g](C):(u=b.label)!=null?u:""}const A=e.defineComponent({name:"ProTableExpandRenderer",props:{scope:{type:Object,required:!0}},setup(C){return()=>c.expand?c.expand(C.scope):null}}),V=e.defineComponent({name:"ProTableHeaderRenderer",props:{scope:{type:Object,required:!0}},setup(C){return()=>k(C.scope)}}),R=e.defineComponent({name:"ProTableCellRenderer",props:{scope:{type:Object,required:!0}},setup(C){return()=>S(C.scope)}});return(C,b)=>{var m;const g=e.resolveComponent("ProTableColumn",!0);return i.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createCommentVNode(" 多级表头 "),(m=o.column.children)!=null&&m.length?(e.openBlock(),e.createBlock(e.unref(ae),{key:0,label:o.column.label,align:o.column.align},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.column.children,u=>{var B;return e.openBlock(),e.createBlock(g,{key:(B=u.prop)!=null?B:u.label,column:u},null,8,["column"])}),128))]),_:1},8,["label","align"])):o.column.type&&["selection","index"].includes(o.column.type)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createCommentVNode(" 特殊列:selection / index(自闭合,无需 slot) "),e.createVNode(e.unref(ae),e.normalizeProps(e.guardReactiveProps(o.column)),null,16)],2112)):o.column.type==="expand"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createCommentVNode(" expand 列:必须通过 #default slot 提供展开行内容 "),e.createVNode(e.unref(ae),e.normalizeProps(e.guardReactiveProps(o.column)),{default:e.withCtx(u=>[e.createVNode(e.unref(A),{scope:u},null,8,["scope"])]),_:1},16)],2112)):o.column.type==="radio"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createCommentVNode(" radio 列 "),e.createVNode(e.unref(ae),e.mergeProps(o.column,{width:"60",align:"center"}),{default:e.withCtx(u=>[e.createVNode(e.unref(De),{modelValue:u.row.__radioSelected,"onUpdate:modelValue":B=>u.row.__radioSelected=B,value:!0,onChange:()=>C.$emit("radioChange",u.row)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:1},16)],2112)):o.column.type==="sort"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createCommentVNode(" sort 列(拖拽手柄) "),e.createVNode(e.unref(ae),e.mergeProps(o.column,{width:"60",align:"center",label:"排序"}),{default:e.withCtx(()=>[e.createVNode(e.unref(Re),{class:"move",style:{cursor:"move"}},{default:e.withCtx(()=>[e.createVNode(e.unref(fe),null,{default:e.withCtx(()=>[e.createVNode(e.unref(v.DCaret))]),_:1})]),_:1})]),_:1},16)],2112)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:5},[e.createCommentVNode(" 普通列 "),e.createVNode(e.unref(ae),e.normalizeProps(e.guardReactiveProps(o.column)),{header:e.withCtx(u=>[e.createVNode(e.unref(V),{scope:u},null,8,["scope"])]),default:e.withCtx(u=>[e.createVNode(e.unref(R),{scope:u},null,8,["scope"])]),_:1},16)],2112))],64)):e.createCommentVNode("v-if",!0)}}}),is={class:"sy-pro-table__table"},ds={class:"sy-pro-table__empty"},Ke=e.defineComponent({__name:"ProTableTable",props:{context:{},tableHeight:{},tableMaxHeight:{},onDragSort:{type:Function}},setup(o){const s=o,r=s.context.props,c=s.context.tableAttrs,i=e.computed(()=>s.tableHeight),l=e.computed(()=>s.tableMaxHeight),n=s.context.tableRef,t=s.context.loading,a=s.context.tableData,S=s.context.flatColumns,k=s.context.selectionChange,A=s.context.onSortChange,V=s.context.onRadioChange;function R(b){n.value=b}function C(){var m;if(!r.columns.some(u=>u.type==="sort")||!n.value)return;const g=(m=n.value.$el)==null?void 0:m.querySelector("tbody");g&&$e.create(g,{handle:".move",animation:150,onEnd({newIndex:u,oldIndex:B}){var L;if(u===B)return;const $=a.value,F=$.splice(B,1)[0];$.splice(u,0,F),(L=s.onDragSort)==null||L.call(s,{newIndex:u,oldIndex:B})}})}return e.onMounted(()=>{e.nextTick(()=>C())}),(b,g)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createCommentVNode(" wrapper 保证 querySelector 能找到 .sy-pro-table__table,height 直接传给 el-table "),e.createElementVNode("div",is,[e.withDirectives((e.openBlock(),e.createBlock(e.unref(ze),e.mergeProps(e.unref(c),{ref:R,height:i.value,"max-height":l.value,data:e.unref(a),border:e.unref(r).border,stripe:e.unref(r).stripe,"row-key":e.unref(r).rowKey,size:e.unref(r).size,"highlight-current-row":e.unref(r).highlightCurrentRow,onSelectionChange:e.unref(k),onSortChange:e.unref(A)}),{append:e.withCtx(()=>[e.renderSlot(b.$slots,"append")]),empty:e.withCtx(()=>[e.renderSlot(b.$slots,"empty",{},()=>[e.createElementVNode("div",ds,[e.createVNode(e.unref(Xe),{description:"暂无数据"})])])]),default:e.withCtx(()=>[e.renderSlot(b.$slots,"default"),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(S),m=>{var u,B;return e.openBlock(),e.createBlock(cs,{key:(B=(u=m.prop)!=null?u:m.label)!=null?B:m.type,column:m,onRadioChange:e.unref(V)},null,8,["column","onRadioChange"])}),128))]),_:3},16,["height","max-height","data","border","stripe","row-key","size","highlight-current-row","onSelectionChange","onSortChange"])),[[e.unref(p.AdapterLoadingDirective),e.unref(t)]])])],2112))}}),ps={key:0,class:"sy-pro-table__search"},ms={class:"sy-pro-table__main"},fs={key:0,class:"sy-pro-table__header"},hs={class:"sy-pro-table__header-left"},us={class:"sy-pro-table__header-right"},ys=e.defineComponent({__name:"ClassicLayout",props:{context:{},onDragSort:{type:Function}},setup(o){var D;const s=o,r=s.context.props,c=s.context.isShowSearch,i=s.context.searchColumns,l=s.context.selectedList,n=s.context.selectedListIds,t=s.context.isSelected,a=s.context.getTableList,S=s.context.openColSetting,k=s.context.toggleSearch,A=s.context.showToolBtn,V=s.context.formRef,R=s.context.colSettingRef,C=e.ref(),b=e.ref(void 0),g=e.ref(void 0),m=(D=e.inject(h.SY_UI_CONFIG_KEY,{}).proTable)!=null?D:{};function u(){var Q,ee;const E=C.value;if(!E)return;const M=E.querySelector(".sy-pro-table__table"),U=E.querySelector(".sy-pro-table__pagination");if(!M)return;const j=M.getBoundingClientRect().top,Z=U?U.getBoundingClientRect().height:0,O=(ee=(Q=r.heightOffset)!=null?Q:m.heightOffset)!=null?ee:0,X=Math.floor(window.innerHeight-j-Z-O);return X>80?X:void 0}function B(){if(r.height!==void 0){b.value=r.height,g.value=void 0;return}if(r.autoHeight===!0){b.value=u(),g.value=void 0;return}if(r.maxHeight!==void 0){b.value=void 0,g.value=r.maxHeight;return}b.value=void 0,g.value=u()}e.watch(c,()=>e.nextTick(B));let $=null;e.onMounted(()=>{e.nextTick(B),window.addEventListener("resize",B),C.value&&($=new ResizeObserver(B),$.observe(C.value))}),e.onUnmounted(()=>{window.removeEventListener("resize",B),$==null||$.disconnect()});function F(E){V.value=E}function L(E){R.value=E}return(E,M)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"layoutRef",ref:C,class:"sy-pro-table sy-pro-table--classic"},[!e.unref(r).tableOnly&&e.unref(r).showSearch&&e.unref(c)&&e.unref(i).length>0?(e.openBlock(),e.createElementBlock("div",ps,[e.createVNode(je,{ref:F,context:o.context,cols:e.unref(r).searchCols},null,8,["context","cols"])])):e.createCommentVNode("v-if",!0),e.createElementVNode("div",ms,[e.unref(r).tableOnly?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("div",fs,[e.createElementVNode("div",hs,[e.createCommentVNode(" 业务操作按钮(新增/导出等),始终可见 "),e.renderSlot(E.$slots,"busActions"),e.createCommentVNode(" 批量操作,仅在有选中行时追加显示 "),e.unref(t)?e.renderSlot(E.$slots,"batchActions",{key:0,selectedList:e.unref(l),selectedListIds:e.unref(n),isSelected:e.unref(t)}):e.createCommentVNode("v-if",!0)]),e.createElementVNode("div",us,[e.createCommentVNode(" 用户自定义工具按钮(追加在系统按钮之前) "),e.renderSlot(E.$slots,"toolButton"),e.createCommentVNode(" 系统工具按钮,始终渲染 "),e.unref(A)("refresh")?(e.openBlock(),e.createBlock(e.unref(me),{key:0,content:"刷新",placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(Y),{icon:e.unref(v.Refresh),circle:"",onClick:e.unref(a)},null,8,["icon","onClick"])]),_:1})):e.createCommentVNode("v-if",!0),e.unref(A)("setting")?(e.openBlock(),e.createBlock(e.unref(me),{key:1,content:"列设置",placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(Y),{icon:e.unref(v.Operation),circle:"",onClick:e.unref(S)},null,8,["icon","onClick"])]),_:1})):e.createCommentVNode("v-if",!0),e.unref(r).showSearch&&e.unref(A)("search")&&e.unref(i).length>0?(e.openBlock(),e.createBlock(e.unref(me),{key:2,content:"搜索",placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(Y),{icon:e.unref(v.Search),circle:"",onClick:e.unref(k)},null,8,["icon","onClick"])]),_:1})):e.createCommentVNode("v-if",!0)])])),e.createVNode(Ke,{context:o.context,"table-height":b.value,"table-max-height":g.value,"on-drag-sort":o.onDragSort},{append:e.withCtx(()=>[e.renderSlot(E.$slots,"append")]),empty:e.withCtx(()=>[e.renderSlot(E.$slots,"empty")]),default:e.withCtx(()=>[e.renderSlot(E.$slots,"default")]),_:3},8,["context","table-height","table-max-height","on-drag-sort"]),e.createVNode(qe,{context:o.context},{pagination:e.withCtx(()=>[e.renderSlot(E.$slots,"pagination")]),_:3},8,["context"])]),e.createVNode(Ue,{ref:L,context:o.context},null,8,["context"])],512))}}),ut=e.defineComponent({__name:"CustomFilterChip",props:{column:{},model:{},modelValue:{},width:{}},emits:["search","remove","update:modelValue"],setup(o,{emit:s}){const r=o,c=s,i=e.inject("proTableEnumMap",{value:new Map}),l=e.computed(()=>{var S,k,A,V,R,C,b;const t=r.column,a=(()=>{var g,m,u,B,$,F,L;if(((g=t.search)==null?void 0:g.options)!==void 0){const D=t.search.options;return Array.isArray(D)?D:(m=e.unref(D))!=null?m:void 0}if(!(!t.enum||(B=(u=t.search)==null?void 0:u.component)!=null&&B.includes("tree")))return typeof t.enum=="function"?(F=i.value.get(($=t.prop)!=null?$:""))!=null?F:void 0:Array.isArray(t.enum)?t.enum:(L=e.unref(t.enum))!=null?L:void 0})();return{field:(A=(k=(S=t.search)==null?void 0:S.key)!=null?k:t.prop)!=null?A:"",label:t.label,component:(V=t.search)==null?void 0:V.component,props:J(_({},(R=t.search)==null?void 0:R.props),{clearable:!1}),options:a,fieldNames:t.fieldNames,defaultValue:(C=t.search)==null?void 0:C.defaultValue,render:(b=t.search)==null?void 0:b.render}});function n(t){c("update:modelValue",t)}return(t,a)=>{var S,k,A;return e.openBlock(),e.createElementBlock("div",{class:"sy-pro-table__custom-filter-chip",onKeyup:a[1]||(a[1]=e.withKeys(V=>c("search"),["enter"]))},[e.createElementVNode("div",{class:"sy-pro-table__custom-filter-chip-control",style:e.normalizeStyle({width:`${(A=(k=(S=r.column.search)==null?void 0:S.chipWidth)!=null?k:r.width)!=null?A:100}px`})},[e.createVNode(He,{schema:l.value,model:o.model,"model-value":o.modelValue,"onUpdate:modelValue":n},null,8,["schema","model","model-value"])],4),e.createElementVNode("span",{class:"sy-pro-table__custom-filter-chip-close",onClick:a[0]||(a[0]=e.withModifiers(V=>c("remove"),["stop"]))},[e.createVNode(e.unref(fe),null,{default:e.withCtx(()=>[e.createVNode(e.unref(v.Close))]),_:1})])],32)}}}),yt=e.defineComponent({__name:"UnifyQuickSearch",props:{column:{},model:{},modelValue:{}},emits:["search","update:modelValue"],setup(o,{emit:s}){const r=o,c=s,i=e.inject("proTableEnumMap",{value:new Map}),l=e.computed(()=>{var k;const a=(k=r.column.search)==null?void 0:k.quick,S=typeof a=="object"&&(a==null?void 0:a.width)||220;return{width:typeof S=="number"?`${S}px`:S}}),n=e.computed(()=>{var k,A,V,R,C,b,g;const a=r.column,S=(()=>{var m,u,B,$,F,L,D;if(((m=a.search)==null?void 0:m.options)!==void 0){const E=a.search.options;return Array.isArray(E)?E:(u=e.unref(E))!=null?u:void 0}if(!(!a.enum||($=(B=a.search)==null?void 0:B.component)!=null&&$.includes("tree")))return typeof a.enum=="function"?(L=i.value.get((F=a.prop)!=null?F:""))!=null?L:void 0:Array.isArray(a.enum)?a.enum:(D=e.unref(a.enum))!=null?D:void 0})();return{field:(V=(A=(k=a.search)==null?void 0:k.key)!=null?A:a.prop)!=null?V:"",label:a.label,component:(R=a.search)==null?void 0:R.component,props:(C=a.search)==null?void 0:C.props,options:S,fieldNames:a.fieldNames,defaultValue:(b=a.search)==null?void 0:b.defaultValue,render:(g=a.search)==null?void 0:g.render}});function t(a){c("update:modelValue",a)}return(a,S)=>(e.openBlock(),e.createElementBlock("div",{class:"sy-pro-table__unify-quick",style:e.normalizeStyle(l.value),onKeyup:S[0]||(S[0]=e.withKeys(k=>c("search"),["enter"]))},[e.createVNode(He,{schema:n.value,model:o.model,"model-value":o.modelValue,"onUpdate:modelValue":t},null,8,["schema","model","model-value"])],36))}}),Ss={class:"sy-pro-table__custom-search"},gs=e.defineComponent({__name:"CustomSearchBar",props:{quickSearchColumns:{},searchParam:{},showAdvanced:{type:Boolean},filterActive:{type:Boolean}},emits:["search","toggleAdvanced","updateParam"],setup(o,{emit:s}){const r=s;function c(){r("search")}return(i,l)=>(e.openBlock(),e.createElementBlock("div",Ss,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.quickSearchColumns,n=>{var t,a,S,k,A;return e.openBlock(),e.createBlock(yt,{key:(a=(t=n.search)==null?void 0:t.key)!=null?a:n.prop,"model-value":o.searchParam[(A=(k=(S=n.search)==null?void 0:S.key)!=null?k:n.prop)!=null?A:""],column:n,model:o.searchParam,"onUpdate:modelValue":V=>{var R,C,b;return r("updateParam",(b=(C=(R=n.search)==null?void 0:R.key)!=null?C:n.prop)!=null?b:"",V)},onSearch:c},null,8,["model-value","column","model","onUpdate:modelValue"])}),128)),e.createVNode(e.unref(me),{content:"查询",placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(Y),{class:"sy-pro-table__custom-search-btn",icon:e.unref(v.Search),onClick:c},null,8,["icon"])]),_:1}),o.showAdvanced?(e.openBlock(),e.createBlock(e.unref(me),{key:0,content:"高级筛选",placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(Y),{class:e.normalizeClass(["sy-pro-table__custom-filter-btn",{"is-active":o.filterActive}]),icon:e.unref(v.Filter),onClick:l[0]||(l[0]=n=>r("toggleAdvanced"))},null,8,["class","icon"])]),_:1})):e.createCommentVNode("v-if",!0)]))}}),bs={class:"sy-pro-table__custom-panel-inner"},Cs={class:"sy-pro-table__custom-panel-footer"},ws=e.defineComponent({__name:"CustomSearchPanel",props:{context:{},visible:{type:Boolean},excludeSelector:{default:""},cols:{default:1}},emits:["close","panelSearch"],setup(o,{emit:s}){const r=o,c=s,i=e.computed(()=>{const C=typeof r.cols=="number"?r.cols:1;return{width:`${Math.max(360,C*280+32)}px`}}),l=r.context.search,n=r.context.reset;function t(){l(),c("panelSearch"),c("close")}function a(){n(),c("close")}const S=r.context.formRef,k=e.ref();function A(C){S.value=C}let V=null;function R(C){var g;const b=C.composedPath();for(const m of b){const u=m;if(u!=null&&u.classList&&(u===k.value||r.excludeSelector&&((g=u.matches)!=null&&g.call(u,r.excludeSelector))||u.classList.contains("el-popper")||u.classList.contains("el-overlay")||u.classList.contains("el-picker__popper")||u.classList.contains("el-select__popper")||u.classList.contains("el-select-dropdown")||u.classList.contains("el-date-picker")||u.classList.contains("el-date-range-picker")))return}c("close")}return e.watch(()=>r.visible,C=>{V==null||V(),V=null,C&&e.nextTick(()=>{document.addEventListener("mousedown",R,!0),V=()=>document.removeEventListener("mousedown",R,!0)})}),e.onBeforeUnmount(()=>V==null?void 0:V()),(C,b)=>(e.openBlock(),e.createBlock(e.Transition,{name:"sy-pro-table-panel",persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"panelRootRef",ref:k,class:"sy-pro-table__custom-panel",style:e.normalizeStyle(i.value)},[e.createElementVNode("div",bs,[e.createVNode(je,{ref:A,context:o.context,cols:r.cols,"show-query-btn":!1,"show-reset-btn":!1,collapsible:!1},null,8,["context","cols"]),e.createElementVNode("div",Cs,[e.createVNode(e.unref(Y),{onClick:a},{default:e.withCtx(()=>[...b[0]||(b[0]=[e.createTextVNode("重置",-1)])]),_:1}),e.createVNode(e.unref(Y),{type:"primary",onClick:t},{default:e.withCtx(()=>[...b[1]||(b[1]=[e.createTextVNode("查询",-1)])]),_:1})])])],4),[[e.vShow,o.visible]])]),_:1}))}}),As={class:"sy-pro-table__main sy-pro-table__main--custom"},ks={key:0,class:"sy-pro-table__header sy-pro-table__header--custom"},Ns={class:"sy-pro-table__custom-batch"},xs={class:"sy-pro-table__custom-batch-count"},Bs={class:"sy-pro-table__header-left"},Ps={class:"sy-pro-table__header-right sy-pro-table__header-right--custom"},Vs={class:"sy-pro-table__custom-panel-inner sy-pro-table__chip-overflow-list"},_s=e.defineComponent({__name:"CustomLayout",props:{context:{},onDragSort:{type:Function}},setup(o){var we;const s=o,r=s.context.props,c=s.context.isShowSearch,i=s.context.searchColumns,l=s.context.quickSearchColumns,n=s.context.searchParam,t=s.context.selectedList,a=s.context.selectedListIds,S=s.context.isSelected,k=s.context.search,A=s.context.toggleSearch,V=s.context.showToolBtn,R=s.context.getTableList,C=s.context.openColSetting,b=s.context.colSettingRef,g=s.context.clearSelection,m=s.context.searchInitParam,u=e.computed(()=>!!r.showSearch&&c.value&&i.value.length>0),B=e.computed(()=>{const T=new Set(l.value.map(d=>{var w,I,z;return(z=(I=(w=d.search)==null?void 0:w.key)!=null?I:d.prop)!=null?z:""}));return i.value.filter(d=>{var w,I,z;return!T.has((z=(I=(w=d.search)==null?void 0:w.key)!=null?I:d.prop)!=null?z:"")})}),$=e.ref(new Set),F=e.computed(()=>B.value.map(T=>{var I,z,G;const d=(G=(z=(I=T.search)==null?void 0:I.key)!=null?z:T.prop)!=null?G:"";if(!$.value.has(d))return null;const w=n.value[d];return w==null||w===""||Array.isArray(w)&&w.length===0?null:{key:d,column:T}}).filter(T=>T!==null)),L=e.computed(()=>{var d;const T=(d=r.filterChipMax)!=null?d:3;return F.value.slice(0,T)}),D=e.computed(()=>{var d;const T=(d=r.filterChipMax)!=null?d:3;return F.value.slice(T)}),E=e.ref(!1),M=e.ref(),U=e.ref(null),j=e.ref(null),Z=e.computed(()=>{const T=j.value,d=y.value;if(!T||!d)return{left:"16px"};const w=d.getBoundingClientRect(),I=T.getBoundingClientRect();return{left:`${Math.round(I.left-w.left)}px`}});function O(){E.value=!E.value}e.watch(D,T=>{T.length===0&&(E.value=!1)});function X(T){var I,z,G;const d=T.composedPath(),w=(z=(I=U.value)==null?void 0:I.$el)!=null?z:U.value;for(const W of d){const q=W;if(q!=null&&q.classList&&(q===M.value||(G=w==null?void 0:w.contains)!=null&&G.call(w,q)||q===w||q.classList.contains("el-popper")||q.classList.contains("el-overlay")||q.classList.contains("el-picker__popper")||q.classList.contains("el-select__popper")||q.classList.contains("el-select-dropdown")||q.classList.contains("el-date-picker")||q.classList.contains("el-date-range-picker")))return}E.value=!1}let Q=null;e.watch(E,T=>{Q==null||Q(),Q=null,T&&e.nextTick(()=>{document.addEventListener("mousedown",X,!0),Q=()=>document.removeEventListener("mousedown",X,!0)})}),e.onBeforeUnmount(()=>Q==null?void 0:Q());function ee(){$.value=new Set(B.value.map(T=>{var d,w,I;return(I=(w=(d=T.search)==null?void 0:d.key)!=null?w:T.prop)!=null?I:""}).filter(T=>{const d=n.value[T];return d!=null&&d!==""&&!(Array.isArray(d)&&d.length===0)}))}function te(T,d){n.value[T]=d}function ce(T){var d;n.value[T]=(d=m[T])!=null?d:void 0,$.value.delete(T),k()}function ie(){B.value.forEach(T=>{var w,I,z,G;const d=(z=(I=(w=T.search)==null?void 0:w.key)!=null?I:T.prop)!=null?z:"";n.value[d]=(G=m[d])!=null?G:void 0}),$.value.clear(),k()}const y=e.ref(),P=e.ref(void 0),x=e.ref(void 0),H=(we=e.inject(h.SY_UI_CONFIG_KEY,{}).proTable)!=null?we:{};function K(){var q,le;const T=y.value;if(!T)return;const d=T.querySelector(".sy-pro-table__table"),w=T.querySelector(".sy-pro-table__pagination");if(!d)return;const I=d.getBoundingClientRect().top,z=w?w.getBoundingClientRect().height:0,G=(le=(q=r.heightOffset)!=null?q:H.heightOffset)!=null?le:0,W=Math.floor(window.innerHeight-I-z-G);return W>80?W:void 0}function ne(){if(r.height!==void 0){P.value=r.height,x.value=void 0;return}if(r.autoHeight===!0){P.value=K(),x.value=void 0;return}if(r.maxHeight!==void 0){P.value=void 0,x.value=r.maxHeight;return}P.value=void 0,x.value=K()}let oe=null;e.onMounted(()=>{e.nextTick(ne),window.addEventListener("resize",ne),y.value&&(oe=new ResizeObserver(ne),oe.observe(y.value))}),e.onUnmounted(()=>{window.removeEventListener("resize",ne),oe==null||oe.disconnect()});function re(T){b.value=T}function Te(){c.value&&A()}return(T,d)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"layoutRef",ref:y,class:"sy-pro-table sy-pro-table--custom"},[e.createElementVNode("div",As,[e.unref(r).tableOnly?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("div",ks,[e.createCommentVNode(" 批量操作模式:选中行时替换整个 header "),e.unref(S)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",Ns,[e.createElementVNode("span",xs,"已选 "+e.toDisplayString(e.unref(t).length)+" 条数据",1),d[1]||(d[1]=e.createElementVNode("span",{class:"sy-pro-table__custom-batch-divider"},null,-1)),e.renderSlot(T.$slots,"batchActions",{selectedList:e.unref(t),selectedListIds:e.unref(a),isSelected:e.unref(S)})]),e.createVNode(e.unref(Y),{class:"sy-pro-table__custom-batch-close",icon:e.unref(v.Close),circle:"",onClick:e.unref(g)},null,8,["icon","onClick"])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createCommentVNode(" 正常模式 "),e.createCommentVNode(" 左侧:快速查询 + 高级筛选 + 已应用筛选 tags "),e.createElementVNode("div",Bs,[e.createVNode(gs,{"quick-search-columns":e.unref(l),"search-param":e.unref(n),"show-advanced":e.unref(r).showSearch&&e.unref(V)("search")&&e.unref(i).length>0,"filter-active":u.value||F.value.length>0,onSearch:e.unref(k),onToggleAdvanced:e.unref(A),onUpdateParam:d[0]||(d[0]=(w,I)=>e.unref(n)[w]=I)},null,8,["quick-search-columns","search-param","show-advanced","filter-active","onSearch","onToggleAdvanced"]),e.createCommentVNode(" chips 行整体包一个 div,用于精确计算 overflow panel 的对齐 left "),F.value.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chipsRowRef",ref:j,class:"sy-pro-table__chip-row"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(L.value,w=>(e.openBlock(),e.createBlock(ut,{key:w.key,column:w.column,model:e.unref(n),"model-value":e.unref(n)[w.key],width:e.unref(r).filterChipWidth,"onUpdate:modelValue":I=>te(w.key,I),onSearch:e.unref(k),onRemove:I=>ce(w.key)},null,8,["column","model","model-value","width","onUpdate:modelValue","onSearch","onRemove"]))),128)),e.createCommentVNode(" 超出 filterChipMax 时的折叠入口 "),D.value.length>0?(e.openBlock(),e.createBlock(e.unref(Y),{key:0,ref_key:"overflowBtnRef",ref:U,class:"sy-pro-table__custom-filter-more",size:"small",type:"primary",plain:"",onClick:O},{default:e.withCtx(()=>[e.createTextVNode(" +"+e.toDisplayString(D.value.length),1)]),_:1},512)):e.createCommentVNode("v-if",!0),D.value.length===0?(e.openBlock(),e.createBlock(e.unref(Y),{key:1,link:"",size:"small",class:"sy-pro-table__custom-filter-clear",onClick:ie},{default:e.withCtx(()=>[...d[2]||(d[2]=[e.createTextVNode("清空",-1)])]),_:1})):e.createCommentVNode("v-if",!0)],512)):e.createCommentVNode("v-if",!0)]),e.createCommentVNode(" 右侧:业务操作按钮 + 工具按钮 + 刷新 + 列设置 "),e.createElementVNode("div",Ps,[e.renderSlot(T.$slots,"busActions"),e.renderSlot(T.$slots,"toolButton"),e.unref(V)("refresh")?(e.openBlock(),e.createBlock(e.unref(me),{key:0,content:"刷新",placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(Y),{icon:e.unref(v.Refresh),circle:"",onClick:e.unref(R)},null,8,["icon","onClick"])]),_:1})):e.createCommentVNode("v-if",!0),e.unref(V)("setting")?(e.openBlock(),e.createBlock(e.unref(me),{key:1,content:"列设置",placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(Y),{icon:e.unref(v.Operation),circle:"",onClick:e.unref(C)},null,8,["icon","onClick"])]),_:1})):e.createCommentVNode("v-if",!0)])],64))])),e.createVNode(Ke,{context:o.context,"table-height":P.value,"table-max-height":x.value,"on-drag-sort":o.onDragSort},{append:e.withCtx(()=>[e.renderSlot(T.$slots,"append")]),empty:e.withCtx(()=>[e.renderSlot(T.$slots,"empty")]),default:e.withCtx(()=>[e.renderSlot(T.$slots,"default")]),_:3},8,["context","table-height","table-max-height","on-drag-sort"]),e.createVNode(qe,{context:o.context},{pagination:e.withCtx(()=>[e.renderSlot(T.$slots,"pagination")]),_:3},8,["context"])]),e.createCommentVNode(" 两个浮层面板放在最外层容器下,避免被 __main 的 overflow:hidden 裁剪 "),e.createVNode(ws,{context:o.context,visible:u.value,cols:e.unref(r).panelCols,"exclude-selector":".sy-pro-table__custom-filter-btn",onClose:Te,onPanelSearch:ee},null,8,["context","visible","cols"]),e.createCommentVNode(" overflow chip 浮层:与第一个 chip 左对齐 "),e.createVNode(e.Transition,{name:"sy-pro-table-panel",persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"overflowPanelRef",ref:M,class:"sy-pro-table__custom-panel",style:e.normalizeStyle(Z.value)},[e.createElementVNode("div",Vs,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(D.value,w=>(e.openBlock(),e.createBlock(ut,{key:w.key,column:w.column,model:e.unref(n),"model-value":e.unref(n)[w.key],width:e.unref(r).filterChipWidth,"onUpdate:modelValue":I=>te(w.key,I),onSearch:e.unref(k),onRemove:I=>ce(w.key)},null,8,["column","model","model-value","width","onUpdate:modelValue","onSearch","onRemove"]))),128)),e.createVNode(e.unref(Y),{link:"",size:"small",class:"sy-pro-table__custom-filter-clear",onClick:ie},{default:e.withCtx(()=>[...d[3]||(d[3]=[e.createTextVNode("清空全部",-1)])]),_:1})])],4),[[e.vShow,E.value]])]),_:1}),e.createVNode(Ue,{ref:re,context:o.context},null,8,["context"])],512))}}),Rs={class:"sy-pro-table__unify-panel-inner"},Ts={class:"sy-pro-table__unify-panel-footer"},Is=e.defineComponent({__name:"UnifySearchPanel",props:{context:{},visible:{type:Boolean},excludeSelector:{default:""},cols:{default:1}},emits:["close"],setup(o,{emit:s}){const r=o,c=s,i=e.computed(()=>{const C=typeof r.cols=="number"?r.cols:1;return{width:`${Math.max(360,C*280+32)}px`}}),l=r.context.search,n=r.context.reset;function t(){l(),c("close")}function a(){n(),c("close")}const S=r.context.formRef,k=e.ref();function A(C){S.value=C}let V=null;function R(C){var g;const b=C.target;b&&((g=k.value)!=null&&g.contains(b)||r.excludeSelector&&b.closest(r.excludeSelector)||b.closest(".el-popper")||b.closest(".el-overlay")||c("close"))}return e.watch(()=>r.visible,C=>{V==null||V(),V=null,C&&e.nextTick(()=>{document.addEventListener("mousedown",R,!0),V=()=>document.removeEventListener("mousedown",R,!0)})}),e.onBeforeUnmount(()=>V==null?void 0:V()),(C,b)=>(e.openBlock(),e.createBlock(e.Transition,{name:"sy-pro-table-panel",persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"panelRootRef",ref:k,class:"sy-pro-table__unify-panel",style:e.normalizeStyle(i.value)},[e.createElementVNode("div",Rs,[e.createVNode(je,{ref:A,context:o.context,cols:r.cols,"show-query-btn":!1,"show-reset-btn":!1,collapsible:!1},null,8,["context","cols"]),e.createElementVNode("div",Ts,[e.createVNode(e.unref(Y),{onClick:a},{default:e.withCtx(()=>[...b[0]||(b[0]=[e.createTextVNode("重置",-1)])]),_:1}),e.createVNode(e.unref(Y),{type:"primary",onClick:t},{default:e.withCtx(()=>[...b[1]||(b[1]=[e.createTextVNode("查询",-1)])]),_:1})])])],4),[[e.vShow,o.visible]])]),_:1}))}}),$s={class:"sy-pro-table__main sy-pro-table__main--unify"},Ls={key:0,class:"sy-pro-table__header sy-pro-table__header--unify"},Es={class:"sy-pro-table__header-left"},Ms={class:"sy-pro-table__header-right sy-pro-table__header-right--unify"},Fs=e.defineComponent({__name:"UnifyLayout",props:{context:{},onDragSort:{type:Function}},setup(o){var E;const s=o,r=s.context.props,c=s.context.isShowSearch,i=s.context.searchColumns,l=s.context.quickSearchColumns,n=s.context.searchParam,t=s.context.selectedList,a=s.context.selectedListIds,S=s.context.isSelected,k=s.context.search,A=s.context.toggleSearch,V=s.context.showToolBtn,R=s.context.colSettingRef,C=e.computed(()=>!!r.showSearch&&c.value&&i.value.length>0),b=e.ref(),g=e.ref(void 0),m=e.ref(void 0),u=(E=e.inject(h.SY_UI_CONFIG_KEY,{}).proTable)!=null?E:{};function B(){var ee,te;const M=b.value;if(!M)return;const U=M.querySelector(".sy-pro-table__table"),j=M.querySelector(".sy-pro-table__pagination");if(!U)return;const Z=U.getBoundingClientRect().top,O=j?j.getBoundingClientRect().height:0,X=(te=(ee=r.heightOffset)!=null?ee:u.heightOffset)!=null?te:0,Q=Math.floor(window.innerHeight-Z-O-X);return Q>80?Q:void 0}function $(){if(r.height!==void 0){g.value=r.height,m.value=void 0;return}if(r.autoHeight===!0){g.value=B(),m.value=void 0;return}if(r.maxHeight!==void 0){g.value=void 0,m.value=r.maxHeight;return}g.value=void 0,m.value=B()}let F=null;e.onMounted(()=>{e.nextTick($),window.addEventListener("resize",$),b.value&&(F=new ResizeObserver($),F.observe(b.value))}),e.onUnmounted(()=>{window.removeEventListener("resize",$),F==null||F.disconnect()});function L(M){R.value=M}function D(){c.value&&A()}return(M,U)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"layoutRef",ref:b,class:"sy-pro-table sy-pro-table--unify"},[e.createElementVNode("div",$s,[e.unref(r).tableOnly?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("div",Ls,[e.createElementVNode("div",Es,[e.createCommentVNode(" 业务操作按钮(新增/导出等),始终可见 "),e.renderSlot(M.$slots,"busActions"),e.createCommentVNode(" 批量操作,仅在有选中行时追加显示 "),e.unref(S)?e.renderSlot(M.$slots,"batchActions",{key:0,selectedList:e.unref(t),selectedListIds:e.unref(a),isSelected:e.unref(S)}):e.createCommentVNode("v-if",!0)]),e.createElementVNode("div",Ms,[e.createCommentVNode(" 快速搜索始终渲染 "),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),j=>{var Z,O,X,Q,ee;return e.openBlock(),e.createBlock(yt,{key:(O=(Z=j.search)==null?void 0:Z.key)!=null?O:j.prop,modelValue:e.unref(n)[(ee=(Q=(X=j.search)==null?void 0:X.key)!=null?Q:j.prop)!=null?ee:""],"onUpdate:modelValue":te=>{var ce,ie,y;return e.unref(n)[(y=(ie=(ce=j.search)==null?void 0:ce.key)!=null?ie:j.prop)!=null?y:""]=te},column:j,model:e.unref(n),onSearch:e.unref(k)},null,8,["modelValue","onUpdate:modelValue","column","model","onSearch"])}),128)),e.unref(l).length>0?(e.openBlock(),e.createBlock(e.unref(Y),{key:0,type:"primary",onClick:e.unref(k)},{default:e.withCtx(()=>[...U[0]||(U[0]=[e.createTextVNode("查询",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("v-if",!0),e.unref(r).showSearch&&e.unref(V)("search")&&e.unref(i).length>0?(e.openBlock(),e.createBlock(e.unref(Y),{key:1,class:"sy-pro-table__unify-advanced-btn",type:"primary",plain:"",onClick:e.unref(A)},{default:e.withCtx(()=>[...U[1]||(U[1]=[e.createTextVNode(" 高级筛选 ",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" 工具按钮区,用户可通过 #toolButton 追加自定义工具 "),e.renderSlot(M.$slots,"toolButton")])])),e.createVNode(Ke,{context:o.context,"table-height":g.value,"table-max-height":m.value,"on-drag-sort":o.onDragSort},{append:e.withCtx(()=>[e.renderSlot(M.$slots,"append")]),empty:e.withCtx(()=>[e.renderSlot(M.$slots,"empty")]),default:e.withCtx(()=>[e.renderSlot(M.$slots,"default")]),_:3},8,["context","table-height","table-max-height","on-drag-sort"]),e.createVNode(qe,{context:o.context},{pagination:e.withCtx(()=>[e.renderSlot(M.$slots,"pagination")]),_:3},8,["context"])]),e.createCommentVNode(" 面板放在最外层容器下,避免被 __main 的 overflow:hidden 裁剪 "),e.createVNode(Is,{context:o.context,visible:C.value,cols:e.unref(r).panelCols,"exclude-selector":".sy-pro-table__unify-advanced-btn",onClose:D},null,8,["context","visible","cols"]),e.createVNode(Ue,{ref:L,context:o.context},null,8,["context"])],512))}}),Ds=e.defineComponent({name:"SyProTable",inheritAttrs:!1,__name:"ProTable",props:{columns:{},data:{},request:{},params:{},postData:{},requestError:{},manualRequest:{type:Boolean,default:!1},pagination:{type:Boolean,default:!0},rowKey:{},border:{type:Boolean},stripe:{type:Boolean},showSearch:{type:Boolean,default:!0},searchCols:{},panelCols:{},filterChipWidth:{},filterChipMax:{},toolButton:{type:[Boolean,Array],default:!0},highlightCurrentRow:{type:Boolean,default:!1},size:{},pageSizes:{},pageSize:{},pageLayout:{},type:{},height:{},maxHeight:{},autoHeight:{type:Boolean},heightOffset:{},tableOnly:{type:Boolean,default:!1},searchLabelWidth:{},searchLabelPosition:{}},emits:["search","reset","dragSort"],setup(o,{expose:s,emit:r}){const c=o,i=r,l=e.useSlots(),n=e.useAttrs(),t=ss(c,i,l,n);function a(S){i("dragSort",S)}return s({tableRef:t.tableRef,formRef:t.formRef,tableData:t.tableData,enumMap:t.enumMap,pageable:t.pageable,searchParam:t.searchParam,searchInitParam:t.searchInitParam,isSelected:t.isSelected,selectedList:t.selectedList,selectedListIds:t.selectedListIds,radio:t.radio,getTableList:t.getTableList,search:t.search,reset:t.reset,clearSelection:t.clearSelection,clearRadio:t.clearRadio,handleSizeChange:t.handleSizeChange,handleCurrentChange:t.handleCurrentChange}),(S,k)=>e.unref(t).props.type==="classic"?(e.openBlock(),e.createBlock(ys,{key:0,context:e.unref(t),"on-drag-sort":a},e.createSlots({batchActions:e.withCtx(A=>[e.unref(l).batchActions?e.renderSlot(S.$slots,"batchActions",e.normalizeProps(e.mergeProps({key:0},A))):e.renderSlot(S.$slots,"tableHeader",e.normalizeProps(e.mergeProps({key:1},A)))]),default:e.withCtx(()=>[e.renderSlot(S.$slots,"default")]),_:2},[e.unref(l).busActions?{name:"busActions",fn:e.withCtx(()=>[e.renderSlot(S.$slots,"busActions")]),key:"0"}:void 0,e.unref(l).toolButton?{name:"toolButton",fn:e.withCtx(()=>[e.renderSlot(S.$slots,"toolButton")]),key:"1"}:void 0,e.unref(l).append?{name:"append",fn:e.withCtx(()=>[e.renderSlot(S.$slots,"append")]),key:"2"}:void 0,e.unref(l).empty?{name:"empty",fn:e.withCtx(()=>[e.renderSlot(S.$slots,"empty")]),key:"3"}:void 0,e.unref(l).pagination?{name:"pagination",fn:e.withCtx(()=>[e.renderSlot(S.$slots,"pagination")]),key:"4"}:void 0]),1032,["context"])):e.unref(t).props.type==="unify"?(e.openBlock(),e.createBlock(Fs,{key:1,context:e.unref(t),"on-drag-sort":a},e.createSlots({batchActions:e.withCtx(A=>[e.unref(l).batchActions?e.renderSlot(S.$slots,"batchActions",e.normalizeProps(e.mergeProps({key:0},A))):e.renderSlot(S.$slots,"tableHeader",e.normalizeProps(e.mergeProps({key:1},A)))]),default:e.withCtx(()=>[e.renderSlot(S.$slots,"default")]),_:2},[e.unref(l).busActions?{name:"busActions",fn:e.withCtx(()=>[e.renderSlot(S.$slots,"busActions")]),key:"0"}:void 0,e.unref(l).toolButton?{name:"toolButton",fn:e.withCtx(()=>[e.renderSlot(S.$slots,"toolButton")]),key:"1"}:void 0,e.unref(l).append?{name:"append",fn:e.withCtx(()=>[e.renderSlot(S.$slots,"append")]),key:"2"}:void 0,e.unref(l).empty?{name:"empty",fn:e.withCtx(()=>[e.renderSlot(S.$slots,"empty")]),key:"3"}:void 0,e.unref(l).pagination?{name:"pagination",fn:e.withCtx(()=>[e.renderSlot(S.$slots,"pagination")]),key:"4"}:void 0]),1032,["context"])):(e.openBlock(),e.createBlock(_s,{key:2,context:e.unref(t),"on-drag-sort":a},e.createSlots({batchActions:e.withCtx(A=>[e.unref(l).batchActions?e.renderSlot(S.$slots,"batchActions",e.normalizeProps(e.mergeProps({key:0},A))):e.renderSlot(S.$slots,"tableHeader",e.normalizeProps(e.mergeProps({key:1},A)))]),default:e.withCtx(()=>[e.renderSlot(S.$slots,"default")]),_:2},[e.unref(l).busActions?{name:"busActions",fn:e.withCtx(()=>[e.renderSlot(S.$slots,"busActions")]),key:"0"}:void 0,e.unref(l).toolButton?{name:"toolButton",fn:e.withCtx(()=>[e.renderSlot(S.$slots,"toolButton")]),key:"1"}:void 0,e.unref(l).append?{name:"append",fn:e.withCtx(()=>[e.renderSlot(S.$slots,"append")]),key:"2"}:void 0,e.unref(l).empty?{name:"empty",fn:e.withCtx(()=>[e.renderSlot(S.$slots,"empty")]),key:"3"}:void 0,e.unref(l).pagination?{name:"pagination",fn:e.withCtx(()=>[e.renderSlot(S.$slots,"pagination")]),key:"4"}:void 0]),1032,["context"]))}}),zs=h.withInstall(Ds);Object.defineProperty(f,"SY_UI_CONFIG_KEY",{enumerable:!0,get:()=>h.SY_UI_CONFIG_KEY}),f.SyAlert=$t,f.SyAside=rn,f.SyAutocomplete=de,f.SyBacktop=Et,f.SyButton=Y,f.SyCard=Dt,f.SyCascader=We,f.SyCheckbox=Ye,f.SyCheckboxButton=qt,f.SyCheckboxGroup=Qe,f.SyCol=On,f.SyCollapse=Yt,f.SyCollapseItem=Qt,f.SyColorPicker=Kt,f.SyConfigProvider=dn,f.SyContainer=on,f.SyDatePicker=Je,f.SyDateTimePicker=fn,f.SyDescriptions=yn,f.SyDescriptionsItem=Sn,f.SyDialog=bn,f.SyDivider=wn,f.SyDrawer=Ze,f.SyDropdown=Bn,f.SyDropdownItem=Vn,f.SyDropdownMenu=Pn,f.SyEmpty=Xe,f.SyFooter=an,f.SyForm=ve,f.SyFormItem=et,f.SyHeader=sn,f.SyIcon=fe,f.SyImage=Ln,f.SyInput=Le,f.SyInputNumber=tt,f.SyLink=Un,f.SyLoading=Gn,f.SyLoadingDirective=xe,f.SyMain=ln,f.SyMenu=Zn,f.SyMenuItem=vn,f.SyMenuItemGroup=eo,f.SyMessage=he,f.SyMessageBox=ot,f.SyNotification=st,f.SyOption=it,f.SyPagination=rt,f.SyPopconfirm=oo,f.SyPopover=lo,f.SyProForm=mt,f.SyProTable=zs,f.SyProgress=co,f.SyRadio=De,f.SyRadioButton=at,f.SyRadioGroup=lt,f.SyRow=zn,f.SyScrollbar=ho,f.SySelect=ct,f.SySelectV2=bo,f.SySkeleton=Ao,f.SySkeletonItem=ko,f.SySlider=xo,f.SySpace=Po,f.SyStep=To,f.SySteps=Ro,f.SySubMenu=Xn,f.SySwitch=_e,f.SyTabPane=Do,f.SyTable=ze,f.SyTableColumn=ae,f.SyTabs=Fo,f.SyTag=Re,f.SyText=Ho,f.SyTimePicker=dt,f.SyTimeSelect=pt,f.SyTooltip=me,f.SyTree=Wo,f.SyTreeSelect=Qo,f.SyUpload=Zo,Object.defineProperty(f,Symbol.toStringTag,{value:"Module"})});
|