@sc-guode/yzl-components 0.0.22 → 0.0.24
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/index.mjs +16 -2
- package/index.umd.js +1 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -27011,6 +27011,10 @@ const a_ = {
|
|
|
27011
27011
|
setCurrentRow(g) {
|
|
27012
27012
|
this.$refs.yzlTable.setCurrentRow.apply(this, [g]);
|
|
27013
27013
|
},
|
|
27014
|
+
toggleAllSelection() {
|
|
27015
|
+
var g;
|
|
27016
|
+
(g = this.$refs.yzlTable) == null || g.toggleAllSelection();
|
|
27017
|
+
},
|
|
27014
27018
|
doLayout() {
|
|
27015
27019
|
this.$refs.yzlTable.doLayout();
|
|
27016
27020
|
}
|
|
@@ -27503,7 +27507,10 @@ const B_ = {
|
|
|
27503
27507
|
return Object.keys(g).reduce((c, o) => (g[o].slotName && (c[o] = g[o]), c), {});
|
|
27504
27508
|
},
|
|
27505
27509
|
isHideSearchMore() {
|
|
27506
|
-
return !(Object.keys(this.mergedSearchs).findIndex((c) =>
|
|
27510
|
+
return !(Object.keys(this.mergedSearchs).findIndex((c) => {
|
|
27511
|
+
const o = this.mergedSearchs[c].hidden;
|
|
27512
|
+
return typeof o == "function" ? o() : o;
|
|
27513
|
+
}) >= 0);
|
|
27507
27514
|
},
|
|
27508
27515
|
paginationAttrs() {
|
|
27509
27516
|
var r, e;
|
|
@@ -27573,6 +27580,10 @@ const B_ = {
|
|
|
27573
27580
|
var g;
|
|
27574
27581
|
(g = this.$refs.inpRef) == null || g.clearSelection();
|
|
27575
27582
|
},
|
|
27583
|
+
toggleAllSelection() {
|
|
27584
|
+
var g;
|
|
27585
|
+
(g = this.$refs.inpRef) == null || g.toggleAllSelection();
|
|
27586
|
+
},
|
|
27576
27587
|
setCurrentRow(g) {
|
|
27577
27588
|
var c;
|
|
27578
27589
|
(c = this.$refs.inpRef) == null || c.setCurrentRow(g);
|
|
@@ -27918,7 +27929,10 @@ const H_ = {
|
|
|
27918
27929
|
return typeof this.autoReloadOnReset < "u" ? this.autoReloadOnReset : (c = (g = this.globalConfig) == null ? void 0 : g.autoReloadOnReset) != null ? c : !1;
|
|
27919
27930
|
},
|
|
27920
27931
|
isHideSearchMore() {
|
|
27921
|
-
return !(Object.keys(this.searchs).findIndex((c) =>
|
|
27932
|
+
return !(Object.keys(this.searchs).findIndex((c) => {
|
|
27933
|
+
const o = this.searchs[c].hidden;
|
|
27934
|
+
return typeof o == "function" ? o() : o;
|
|
27935
|
+
}) >= 0);
|
|
27922
27936
|
},
|
|
27923
27937
|
localData() {
|
|
27924
27938
|
const g = this.form || {};
|
package/index.umd.js
CHANGED
|
@@ -125,4 +125,4 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
125
125
|
`),x.bookType=="fods"?m.push("</office:document>"):m.push("</office:document-content>"),m.join("")}}();function g2(t,a){if(a.bookType=="fods")return sm(t,a);var n=new he,i="",f=[],h=[];return i="mimetype",n.file(i,"application/vnd.oasis.opendocument.spreadsheet"),i="content.xml",n.file(i,sm(t,a)),f.push([i,"text/xml"]),h.push([i,"ContentFile"]),i="styles.xml",n.file(i,G_(t,a)),f.push([i,"text/xml"]),h.push([i,"StylesFile"]),i="meta.xml",n.file(i,Ed()),f.push([i,"text/xml"]),h.push([i,"MetadataFile"]),i="manifest.rdf",n.file(i,Cd(h)),f.push([i,"application/rdf+xml"]),i="META-INF/manifest.xml",n.file(i,Ic(f)),n}function K_(t,a){if(!a)return 0;var n=t.SheetNames.indexOf(a);if(n==-1)throw new Error("Sheet not found: "+a);return n}function f0(t){return function(n,i){var f=K_(n,i.sheet);return t.from_sheet(n.Sheets[n.SheetNames[f]],i,n)}}var Y_=f0(Os),j_=f0({from_sheet:bh}),Z_=f0(_s),J_=f0(fi),Q_=f0(Na),q_=f0(Bu),eF=f0({from_sheet:vm}),tF=f0(vs),rF=f0(Kf);function om(t){return function(n){for(var i=0;i!=t.length;++i){var f=t[i];n[f[0]]===void 0&&(n[f[0]]=f[1]),f[2]==="n"&&(n[f[0]]=Number(n[f[0]]))}}}var m2=om([["cellNF",!1],["cellHTML",!0],["cellFormula",!0],["cellStyles",!1],["cellText",!0],["cellDates",!1],["sheetStubs",!1],["sheetRows",0,"n"],["bookDeps",!1],["bookSheets",!1],["bookProps",!1],["bookFiles",!1],["bookVBA",!1],["password",""],["WTF",!1]]),nF=om([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]]);function aF(t){return cr.WS.indexOf(t)>-1?"sheet":cr.CS&&t==cr.CS?"chart":cr.DS&&t==cr.DS?"dialog":cr.MS&&t==cr.MS?"macro":t&&t.length?t:"sheet"}function iF(t,a){if(!t)return 0;try{t=a.map(function(i){return i.id||(i.id=i.strRelID),[i.name,t["!id"][i.id].Target,aF(t["!id"][i.id].Type)]})}catch{return null}return!t||t.length===0?null:t}function sF(t,a,n,i,f,h,d,x,m,v,_,E){try{h[i]=fo(Ye(t,n,!0),a);var D=O(t,a),w;switch(x){case"sheet":w=bl(D,a,f,m,h[i],v,_,E);break;case"chart":if(w=yl(D,a,f,m,h[i],v,_,E),!w||!w["!chart"])break;var b=He(w["!chart"].Target,a),N=E0(b),V=ex(Ye(t,b,!0),fo(Ye(t,N,!0),b)),z=He(V,b),W=E0(z);w=kg(Ye(t,z,!0),z,m,fo(Ye(t,W,!0),z),v,w);break;case"macro":w=Zg(D,a,f,m,h[i],v,_,E);break;case"dialog":w=Jg(D,a,f,m,h[i],v,_,E);break}d[i]=w}catch(S){if(m.WTF)throw S}}function l0(t){return t.charAt(0)=="/"?t.slice(1):t}function fm(t,a){if(Be(ee),a=a||{},m2(a),ln(t,"META-INF/manifest.xml")||ln(t,"objectdata.xml"))return x2(t,a);if(ln(t,"Index/Document.iwa"))throw new Error("Unsupported NUMBERS file");var n=xt(t),i=yn(Ye(t,"[Content_Types].xml")),f=!1,h,d;if(i.workbooks.length===0&&(d="xl/workbook.xml",O(t,d,!0)&&i.workbooks.push(d)),i.workbooks.length===0){if(d="xl/workbook.bin",!O(t,d,!0))throw new Error("Could not find workbook");i.workbooks.push(d),f=!0}i.workbooks[0].slice(-3)=="bin"&&(f=!0);var x={},m={};if(!a.bookSheets&&!a.bookProps){if(ks=[],i.sst)try{ks=e2(O(t,l0(i.sst)),i.sst,a)}catch(ze){if(a.WTF)throw ze}a.cellStyles&&i.themes.length&&(x=qg(Ye(t,i.themes[0].replace(/^\//,""),!0)||"",i.themes[0],a)),i.style&&(m=Qg(O(t,l0(i.style)),i.style,x,a))}i.links.map(function(ze){return n2(O(t,l0(ze)),ze,a)});var v=jg(O(t,l0(i.workbooks[0])),i.workbooks[0],a),_={},E="";i.coreprops.length&&(E=O(t,l0(i.coreprops[0]),!0),E&&(_=ss(E)),i.extprops.length!==0&&(E=O(t,l0(i.extprops[0]),!0),E&&os(E,_,a)));var D={};(!a.bookSheets||a.bookProps)&&i.custprops.length!==0&&(E=Ye(t,l0(i.custprops[0]),!0),E&&(D=Sd(E,a)));var w={};if((a.bookSheets||a.bookProps)&&(v.Sheets?h=v.Sheets.map(function(Ot){return Ot.name}):_.Worksheets&&_.SheetNames.length>0&&(h=_.SheetNames),a.bookProps&&(w.Props=_,w.Custprops=D),a.bookSheets&&typeof h<"u"&&(w.SheetNames=h),a.bookSheets?w.SheetNames:a.bookProps))return w;h={};var b={};a.bookDeps&&i.calcchain&&(b=r2(O(t,l0(i.calcchain)),i.calcchain));var N=0,V={},z,W;{var S=v.Sheets;_.Worksheets=S.length,_.SheetNames=[];for(var ue=0;ue!=S.length;++ue)_.SheetNames[ue]=S[ue].name}var Se=f?"bin":"xml",me=i.workbooks[0].lastIndexOf("/"),Ne=(i.workbooks[0].slice(0,me+1)+"_rels/"+i.workbooks[0].slice(me+1)+".rels").replace(/^\//,"");ln(t,Ne)||(Ne="xl/_rels/workbook."+Se+".rels");var Ae=fo(Ye(t,Ne,!0),Ne);Ae&&(Ae=iF(Ae,v.Sheets));var nt=O(t,"xl/worksheets/sheet.xml",!0)?1:0;for(N=0;N!=_.Worksheets;++N){var Je="sheet";Ae&&Ae[N]?(z="xl/"+Ae[N][1].replace(/[\/]?xl\//,""),ln(t,z)||(z=Ae[N][1]),ln(t,z)||(z=Ne.replace(/_rels\/.*$/,"")+Ae[N][1]),Je=Ae[N][2]):(z="xl/worksheets/sheet"+(N+1-nt)+"."+Se,z=z.replace(/sheet0\./,"sheet.")),W=z.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),sF(t,z,W,_.SheetNames[N],N,V,h,Je,a,v,x,m)}return i.comments&&rx(t,i.comments,h,V,a),w={Directory:i,Workbook:v,Props:_,Custprops:D,Deps:b,Sheets:h,SheetNames:_.SheetNames,Strings:ks,Styles:m,Themes:x,SSF:ee.get_table()},a.bookFiles&&(w.keys=n,w.files=t.files),a.bookVBA&&(i.vba.length>0?w.vbaraw=O(t,l0(i.vba[0]),!0):i.defaults&&i.defaults.bin===hx&&(w.vbaraw=O(t,"xl/vbaProject.bin",!0))),w}function oF(t,a){var n=a||{},i="Workbook",f=_e.find(t,i);try{if(i="/!DataSpaces/Version",f=_e.find(t,i),!f||!f.content)throw new Error("ECMA-376 Encrypted file missing "+i);if(Fu(f.content),i="/!DataSpaces/DataSpaceMap",f=_e.find(t,i),!f||!f.content)throw new Error("ECMA-376 Encrypted file missing "+i);var h=Fs(f.content);if(h.length!==1||h[0].comps.length!==1||h[0].comps[0].t!==0||h[0].name!=="StrongEncryptionDataSpace"||h[0].comps[0].v!=="EncryptedPackage")throw new Error("ECMA-376 Encrypted file bad "+i);if(i="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",f=_e.find(t,i),!f||!f.content)throw new Error("ECMA-376 Encrypted file missing "+i);var d=m1(f.content);if(d.length!=1||d[0]!="StrongEncryptionTransform")throw new Error("ECMA-376 Encrypted file bad "+i);if(i="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",f=_e.find(t,i),!f||!f.content)throw new Error("ECMA-376 Encrypted file missing "+i);Eu(f.content)}catch{}if(i="/EncryptionInfo",f=_e.find(t,i),!f||!f.content)throw new Error("ECMA-376 Encrypted file missing "+i);var x=ko(f.content);if(i="/EncryptedPackage",f=_e.find(t,i),!f||!f.content)throw new Error("ECMA-376 Encrypted file missing "+i);if(x[0]==4&&typeof decrypt_agile<"u")return decrypt_agile(x[1],f.content,n.password||"",n);if(x[0]==2&&typeof decrypt_std76<"u")return decrypt_std76(x[1],f.content,n.password||"",n);throw new Error("File is password-protected")}function fF(t,a){if(Bs=1024,a.bookType=="ods")return g2(t,a);t&&!t.SSF&&(t.SSF=ee.get_table()),t&&t.SSF&&(Be(ee),ee.load_table(t.SSF),a.revssf=At(t.SSF),a.revssf[t.SSF[65535]]=0,a.ssf=t.SSF),a.rels={},a.wbrels={},a.Strings=[],a.Strings.Count=0,a.Strings.Unique=0,Ts?a.revStrings=new Map:(a.revStrings={},a.revStrings.foo=[],delete a.revStrings.foo);var n=a.bookType=="xlsb"?"bin":"xml",i=px.indexOf(a.bookType)>-1,f=Wr();nF(a=a||{});var h=new he,d="",x=0;if(a.cellXfs=[],$i(a.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={}),d="docProps/core.xml",h.file(d,Oc(t.Props,a)),f.coreprops.push(d),Un(a.rels,2,d,cr.CORE_PROPS),d="docProps/app.xml",!(t.Props&&t.Props.SheetNames))if(!t.Workbook||!t.Workbook.Sheets)t.Props.SheetNames=t.SheetNames;else{for(var m=[],v=0;v<t.SheetNames.length;++v)(t.Workbook.Sheets[v]||{}).Hidden!=2&&m.push(t.SheetNames[v]);t.Props.SheetNames=m}for(t.Props.Worksheets=t.Props.SheetNames.length,h.file(d,co(t.Props)),f.extprops.push(d),Un(a.rels,3,d,cr.EXT_PROPS),t.Custprops!==t.Props&&ot(t.Custprops||{}).length>0&&(d="docProps/custom.xml",h.file(d,uo(t.Custprops)),f.custprops.push(d),Un(a.rels,4,d,cr.CUST_PROPS)),x=1;x<=t.SheetNames.length;++x){var _={"!id":{}},E=t.Sheets[t.SheetNames[x-1]],D=(E||{})["!type"]||"sheet";switch(D){case"chart":default:d="xl/worksheets/sheet"+x+"."+n,h.file(d,i2(x-1,d,a,t,_)),f.sheets.push(d),Un(a.wbrels,-1,"worksheets/sheet"+x+"."+n,cr.WS[0])}if(E){var w=E["!comments"],b=!1;if(w&&w.length>0){var N="xl/comments"+x+"."+n;h.file(N,f2(w,N)),f.comments.push(N),Un(_,-1,"../comments"+x+"."+n,cr.CMNT),b=!0}E["!legacy"]&&b&&h.file("xl/drawings/vmlDrawing"+x+".vml",tx(x,E["!comments"])),delete E["!comments"],delete E["!legacy"]}_["!id"].rId1&&h.file(E0(d),S0(_))}return a.Strings!=null&&a.Strings.length>0&&(d="xl/sharedStrings."+n,h.file(d,o2(a.Strings,d,a)),f.strs.push(d),Un(a.wbrels,-1,"sharedStrings."+n,cr.SST)),d="xl/workbook."+n,h.file(d,a2(t,d)),f.workbooks.push(d),Un(a.rels,1,d,cr.WB),d="xl/theme/theme1.xml",h.file(d,al(t.Themes,a)),f.themes.push(d),Un(a.wbrels,-1,"theme/theme1.xml",cr.THEME),d="xl/styles."+n,h.file(d,s2(t,d,a)),f.styles.push(d),Un(a.wbrels,-1,"styles."+n,cr.STY),t.vbaraw&&i&&(d="xl/vbaProject.bin",h.file(d,t.vbaraw),f.vba.push(d),Un(a.wbrels,-1,"vbaProject.bin",cr.VBA)),h.file("[Content_Types].xml",vd(f,a)),h.file("_rels/.rels",S0(a.rels)),h.file("xl/_rels/workbook."+n+".rels",S0(a.wbrels)),delete a.revssf,delete a.ssf,h}function v2(t,a){var n="";switch((a||{}).type||"base64"){case"buffer":return[t[0],t[1],t[2],t[3]];case"base64":n=$e.decode(t.slice(0,24));break;case"binary":n=t;break;case"array":return[t[0],t[1],t[2],t[3]];default:throw new Error("Unrecognized type "+(a&&a.type||"undefined"))}return[n.charCodeAt(0),n.charCodeAt(1),n.charCodeAt(2),n.charCodeAt(3)]}function lF(t,a){return _e.find(t,"EncryptedPackage")?oF(t,a):d2(t,a)}function cF(t,a){var n,i=t,f=a||{};switch(f.type||(f.type=Et&&Buffer.isBuffer(t)?"buffer":"base64"),f.type){case"base64":n=new he(i,{base64:!0});break;case"binary":case"array":n=new he(i,{base64:!1});break;case"buffer":n=new he(i);break;default:throw new Error("Unrecognized type "+f.type)}return fm(n,f)}function lm(t,a){var n=0;e:for(;n<t.length;)switch(t.charCodeAt(n)){case 10:case 13:case 32:++n;break;case 60:return G(t.slice(n),a);default:break e}return Na.to_workbook(t,a)}function uF(t,a){var n="",i=v2(t,a);switch(a.type){case"base64":n=$e.decode(t);break;case"binary":n=t;break;case"buffer":n=t.toString("binary");break;case"array":n=Yr(t);break;default:throw new Error("Unrecognized type "+a.type)}return i[0]==239&&i[1]==187&&i[2]==191&&(n=Ur(n)),lm(n,a)}function hF(t,a){var n=t;return a.type=="base64"&&(n=$e.decode(n)),n=cptable.utils.decode(1200,n.slice(2),"str"),a.type="binary",lm(n,a)}function dF(t){return t.match(/[^\x00-\x7F]/)?en(t):t}function _2(t,a,n,i){return i?(n.type="string",Na.to_workbook(t,n)):Na.to_workbook(a,n)}function Ah(t,a){if(ie(),typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer)return Ah(new Uint8Array(t),a);var n=t,i=[0,0,0,0],f=!1,h=a||{};if(U0={},h.dateNF&&(U0.dateNF=h.dateNF),h.type||(h.type=Et&&Buffer.isBuffer(t)?"buffer":"base64"),h.type=="file"&&(h.type=Et?"buffer":"binary",n=Bt(t)),h.type=="string"&&(f=!0,h.type="binary",h.codepage=65001,n=dF(t)),h.type=="array"&&typeof Uint8Array<"u"&&t instanceof Uint8Array&&typeof ArrayBuffer<"u"){var d=new ArrayBuffer(3),x=new Uint8Array(d);if(x.foo="bar",!x.foo)return h=an(h),h.type="array",Ah(Ut(n),h)}switch((i=v2(n,h))[0]){case 208:return lF(_e.read(n,h),h);case 9:return d2(n,h);case 60:return G(n,h);case 73:if(i[1]===68)return pu(n,h);break;case 84:if(i[1]===65&&i[2]===66&&i[3]===76)return fi.to_workbook(n,h);break;case 80:return i[1]===75&&i[2]<9&&i[3]<9?cF(n,h):_2(t,n,h,f);case 239:return i[3]===60?G(n,h):_2(t,n,h,f);case 255:if(i[1]===254)return hF(n,h);break;case 0:if(i[1]===0&&i[2]>=2&&i[3]===0)return Bo.to_workbook(n,h);break;case 3:case 131:case 139:case 140:return vs.to_workbook(n,h);case 123:if(i[1]===92&&i[2]===114&&i[3]===116)return Bu.to_workbook(n,h);break;case 10:case 13:case 32:return uF(n,h)}return i[2]<=12&&i[3]<=31?vs.to_workbook(n,h):_2(t,n,h,f)}function cm(t,a){var n=a||{};return n.type="file",Ah(t,n)}function um(t,a){switch(a.type){case"base64":case"binary":break;case"buffer":case"array":a.type="";break;case"file":return Ge(a.file,_e.write(t,{type:Et?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+a.bookType+"' files");default:throw new Error("Unrecognized type "+a.type)}return _e.write(t,a)}function xF(t,a){var n=a||{},i=fF(t,n),f={};if(n.compression&&(f.compression="DEFLATE"),n.password)f.type=Et?"nodebuffer":"string";else switch(n.type){case"base64":f.type="base64";break;case"binary":f.type="string";break;case"string":throw new Error("'string' output type invalid for '"+n.bookType+"' files");case"buffer":case"file":f.type=Et?"nodebuffer":"string";break;default:throw new Error("Unrecognized type "+n.type)}var h=i.generate(f);return n.password&&typeof encrypt_agile<"u"?um(encrypt_agile(h,n.password),n):n.type==="file"?Ge(n.file,h):n.type=="string"?Ur(h):h}function pF(t,a){var n=a||{},i=B_(t,n);return um(i,n)}function zi(t,a,n){n||(n="");var i=n+t;switch(a.type){case"base64":return $e.encode(en(i));case"binary":return en(i);case"string":return t;case"file":return Ge(a.file,i,"utf8");case"buffer":return Et?Qe(i,"utf8"):zi(i,{type:"binary"}).split("").map(function(f){return f.charCodeAt(0)})}throw new Error("Unrecognized type "+a.type)}function gF(t,a){switch(a.type){case"base64":return $e.encode(t);case"binary":return t;case"string":return t;case"file":return Ge(a.file,t,"binary");case"buffer":return Et?Qe(t,"binary"):t.split("").map(function(n){return n.charCodeAt(0)})}throw new Error("Unrecognized type "+a.type)}function hm(t,a){switch(a.type){case"string":case"base64":case"binary":for(var n="",i=0;i<t.length;++i)n+=String.fromCharCode(t[i]);return a.type=="base64"?$e.encode(n):a.type=="string"?Ur(n):n;case"file":return Ge(a.file,t);case"buffer":return t;default:throw new Error("Unrecognized type "+a.type)}}function Dh(t,a){Lg(t);var n=a||{};if(n.type=="array"){n.type="binary";var i=Dh(t,n);return n.type="array",Tt(i)}switch(n.bookType||"xlsb"){case"xml":case"xlml":return zi(Aa(t,n),n);case"slk":case"sylk":return zi(Z_(t,n),n);case"htm":case"html":return zi(Y_(t,n),n);case"txt":return gF(eF(t,n),n);case"csv":return zi(j_(t,n),n,"\uFEFF");case"dif":return zi(J_(t,n),n);case"dbf":return hm(tF(t,n),n);case"prn":return zi(Q_(t,n),n);case"rtf":return zi(q_(t,n),n);case"eth":return zi(rF(t,n),n);case"fods":return zi(g2(t,n),n);case"biff2":n.biff||(n.biff=2);case"biff3":n.biff||(n.biff=3);case"biff4":return n.biff||(n.biff=4),hm(rm(t,n),n);case"biff5":n.biff||(n.biff=5);case"biff8":case"xla":case"xls":return n.biff||(n.biff=8),pF(t,n);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"ods":return xF(t,n);default:throw new Error("Unrecognized bookType |"+n.bookType+"|")}}function dm(t){if(!t.bookType){var a={xls:"biff8",htm:"html",slk:"sylk",socialcalc:"eth",Sh33tJS:"WTF"},n=t.file.slice(t.file.lastIndexOf(".")).toLowerCase();n.match(/^\.[a-z]+$/)&&(t.bookType=n.slice(1)),t.bookType=a[t.bookType]||t.bookType}}function xm(t,a,n){var i=n||{};return i.type="file",i.file=a,dm(i),Dh(t,i)}function mF(t,a,n,i){var f=n||{};f.type="file",f.file=t,dm(f),f.type="buffer";var h=i;return h instanceof Function||(h=n),oe.writeFile(t,Dh(a,f),h)}function pm(t,a,n,i,f,h,d,x){var m=xn(n),v=x.defval,_=x.raw||!x.hasOwnProperty("raw"),E=!0,D=f===1?[]:{};if(f!==1)if(Object.defineProperty)try{Object.defineProperty(D,"__rowNum__",{value:n,enumerable:!1})}catch{D.__rowNum__=n}else D.__rowNum__=n;if(!d||t[n])for(var w=a.s.c;w<=a.e.c;++w){var b=d?t[n][w]:t[i[w]+m];if(b===void 0||b.t===void 0){if(v===void 0)continue;h[w]!=null&&(D[h[w]]=v);continue}var N=b.v;switch(b.t){case"z":if(N==null)break;continue;case"e":N=void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+b.t)}if(h[w]!=null){if(N==null)if(v!==void 0)D[h[w]]=v;else if(_&&N===null)D[h[w]]=null;else continue;else D[h[w]]=_?N:wn(b,N,x);N!=null&&(E=!1)}}return{row:D,isempty:E}}function Bh(t,a){if(t==null||t["!ref"]==null)return[];var n={t:"n",v:0},i=0,f=1,h=[],d=0,x="",m={s:{r:0,c:0},e:{r:0,c:0}},v=a||{},_=v.range!=null?v.range:t["!ref"];switch(v.header===1?i=1:v.header==="A"?i=2:Array.isArray(v.header)&&(i=3),typeof _){case"string":m=kr(_);break;case"number":m=kr(t["!ref"]),m.s.r=_;break;default:m=_}i>0&&(f=0);var E=xn(m.s.r),D=[],w=[],b=0,N=0,V=Array.isArray(t),z=m.s.r,W=0,S=0;for(V&&!t[z]&&(t[z]=[]),W=m.s.c;W<=m.e.c;++W)switch(D[W]=jr(W),n=V?t[z][W]:t[D[W]+E],i){case 1:h[W]=W-m.s.c;break;case 2:h[W]=D[W];break;case 3:h[W]=v.header[W-m.s.c];break;default:for(n==null&&(n={w:"__EMPTY",t:"s"}),x=d=wn(n,null,v),N=0,S=0;S<h.length;++S)h[S]==x&&(x=d+"_"+ ++N);h[W]=x}for(z=m.s.r+f;z<=m.e.r;++z){var ue=pm(t,m,z,D,i,h,V,v);(ue.isempty===!1||(i===1?v.blankrows!==!1:!!v.blankrows))&&(w[b++]=ue.row)}return w.length=b,w}var gm=/"/g;function mm(t,a,n,i,f,h,d,x){for(var m=!0,v=[],_="",E=xn(n),D=a.s.c;D<=a.e.c;++D)if(!!i[D]){var w=x.dense?(t[n]||[])[D]:t[i[D]+E];if(w==null)_="";else if(w.v!=null){m=!1,_=""+wn(w,null,x);for(var b=0,N=0;b!==_.length;++b)if((N=_.charCodeAt(b))===f||N===h||N===34){_='"'+_.replace(gm,'""')+'"';break}_=="ID"&&(_='"ID"')}else w.f!=null&&!w.F?(m=!1,_="="+w.f,_.indexOf(",")>=0&&(_='"'+_.replace(gm,'""')+'"')):_="";v.push(_)}return x.blankrows===!1&&m?null:v.join(d)}function bh(t,a){var n=[],i=a==null?{}:a;if(t==null||t["!ref"]==null)return"";var f=kr(t["!ref"]),h=i.FS!==void 0?i.FS:",",d=h.charCodeAt(0),x=i.RS!==void 0?i.RS:`
|
|
126
126
|
`,m=x.charCodeAt(0),v=new RegExp((h=="|"?"\\|":h)+"+$"),_="",E=[];i.dense=Array.isArray(t);for(var D=i.skipHidden&&t["!cols"]||[],w=i.skipHidden&&t["!rows"]||[],b=f.s.c;b<=f.e.c;++b)(D[b]||{}).hidden||(E[b]=jr(b));for(var N=f.s.r;N<=f.e.r;++N)(w[N]||{}).hidden||(_=mm(t,f,N,E,d,m,h,i),_!=null&&(i.strip&&(_=_.replace(v,"")),n.push(_+x)));return delete i.dense,n.join("")}function vm(t,a){a||(a={}),a.FS=" ",a.RS=`
|
|
127
127
|
`;var n=bh(t,a);if(typeof cptable>"u"||a.type=="string")return n;var i=cptable.utils.encode(1200,n,"str");return String.fromCharCode(255)+String.fromCharCode(254)+i}function F2(t){var a="",n,i="";if(t==null||t["!ref"]==null)return[];var f=kr(t["!ref"]),h="",d=[],x,m=[],v=Array.isArray(t);for(x=f.s.c;x<=f.e.c;++x)d[x]=jr(x);for(var _=f.s.r;_<=f.e.r;++_)for(h=xn(_),x=f.s.c;x<=f.e.c;++x)if(a=d[x]+h,n=v?(t[_]||[])[x]:t[a],i="",n!==void 0){if(n.F!=null){if(a=n.F,!n.f)continue;i=n.f,a.indexOf(":")==-1&&(a=a+":"+a)}if(n.f!=null)i=n.f;else{if(n.t=="z")continue;if(n.t=="n"&&n.v!=null)i=""+n.v;else if(n.t=="b")i=n.v?"TRUE":"FALSE";else if(n.w!==void 0)i="'"+n.w;else{if(n.v===void 0)continue;n.t=="s"?i="'"+n.v:i=""+n.v}}m[m.length]=a+"="+i}return m}function _m(t,a,n){var i=n||{},f=+!i.skipHeader,h=t||{},d=0,x=0;if(h&&i.origin!=null)if(typeof i.origin=="number")d=i.origin;else{var m=typeof i.origin=="string"?Bn(i.origin):i.origin;d=m.r,x=m.c}var v,_={s:{c:0,r:0},e:{c:x,r:d+a.length-1+f}};if(h["!ref"]){var E=kr(h["!ref"]);_.e.c=Math.max(_.e.c,E.e.c),_.e.r=Math.max(_.e.r,E.e.r),d==-1&&(d=_.e.r+1,_.e.r=d+a.length-1+f)}var D=i.header||[],w=0;a.forEach(function(N,V){ot(N).forEach(function(z){(w=D.indexOf(z))==-1&&(D[w=D.length]=z);var W=N[z],S="z",ue="";W&&typeof W=="object"&&!(W instanceof Date)?h[or({c:x+w,r:d+V+f})]=W:(typeof W=="number"?S="n":typeof W=="boolean"?S="b":typeof W=="string"?S="s":W instanceof Date&&(S="d",i.cellDates||(S="n",W=wr(W)),ue=i.dateNF||ee._table[14]),h[or({c:x+w,r:d+V+f})]=v={t:S,v:W},ue&&(v.z=ue))})}),_.e.c=Math.max(_.e.c,x+D.length-1);var b=xn(d);if(f)for(w=0;w<D.length;++w)h[jr(w+x)+b]={t:"s",v:D[w]};return h["!ref"]=Er(_),h}function vF(t,a){return _m(null,t,a)}var Fm={encode_col:jr,encode_row:xn,encode_cell:or,encode_range:Er,decode_col:m0,decode_row:qs,split_cell:Ca,decode_cell:Bn,decode_range:ai,format_cell:wn,get_formulae:F2,make_csv:bh,make_json:Bh,make_formulae:F2,sheet_add_aoa:Ea,sheet_add_json:_m,aoa_to_sheet:v0,json_to_sheet:vF,table_to_sheet:nm,table_to_book:z_,sheet_to_csv:bh,sheet_to_txt:vm,sheet_to_json:Bh,sheet_to_html:Os.from_sheet,sheet_to_dif:fi.from_sheet,sheet_to_slk:_s.from_sheet,sheet_to_eth:Kf.from_sheet,sheet_to_formulae:F2,sheet_to_row_object_array:Bh};(function(t){t.consts=t.consts||{};function a(h){h.forEach(function(d){t.consts[d[0]]=d[1]})}function n(h,d,x){return h[d]!=null?h[d]:h[d]=x}function i(h,d,x){return typeof d=="string"?h[d]||(h[d]={t:"z"}):typeof d!="number"?i(h,or(d)):i(h,or({r:d,c:x||0}))}function f(h,d){if(typeof d=="number"){if(d>=0&&h.SheetNames.length>d)return d;throw new Error("Cannot find sheet # "+d)}else if(typeof d=="string"){var x=h.SheetNames.indexOf(d);if(x>-1)return x;throw new Error("Cannot find sheet name |"+d+"|")}else throw new Error("Cannot find sheet |"+d+"|")}return t.book_new=function(){return{SheetNames:[],Sheets:{}}},t.book_append_sheet=function(h,d,x){if(!x)for(var m=1;m<=65535&&h.SheetNames.indexOf(x="Sheet"+m)!=-1;++m);if(!x)throw new Error("Too many worksheets");if(vh(x),h.SheetNames.indexOf(x)>=0)throw new Error("Worksheet with name |"+x+"| already exists!");h.SheetNames.push(x),h.Sheets[x]=d},t.book_set_sheet_visibility=function(h,d,x){n(h,"Workbook",{}),n(h.Workbook,"Sheets",[]);var m=f(h,d);switch(n(h.Workbook.Sheets,m,{}),x){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+x)}h.Workbook.Sheets[m].Hidden=x},a([["SHEET_VISIBLE",0],["SHEET_HIDDEN",1],["SHEET_VERY_HIDDEN",2]]),t.cell_set_number_format=function(h,d){return h.z=d,h},t.cell_set_hyperlink=function(h,d,x){return d?(h.l={Target:d},x&&(h.l.Tooltip=x)):delete h.l,h},t.cell_set_internal_link=function(h,d,x){return t.cell_set_hyperlink(h,"#"+d,x)},t.cell_add_comment=function(h,d,x){h.c||(h.c=[]),h.c.push({t:d,a:x||"SheetJS"})},t.sheet_set_array_formula=function(h,d,x){for(var m=typeof d!="string"?d:kr(d),v=typeof d=="string"?d:Er(d),_=m.s.r;_<=m.e.r;++_)for(var E=m.s.c;E<=m.e.c;++E){var D=i(h,_,E);D.t="n",D.F=v,delete D.v,_==m.s.r&&E==m.s.c&&(D.f=x)}return h},t})(Fm),Et&&typeof ki<"u"&&function(){var t=Jl.Readable,a=function(f,h){var d=t(),x=h==null?{}:h;if(f==null||f["!ref"]==null)return d.push(null),d;var m=kr(f["!ref"]),v=x.FS!==void 0?x.FS:",",_=v.charCodeAt(0),E=x.RS!==void 0?x.RS:`
|
|
128
|
-
`,D=E.charCodeAt(0),w=new RegExp((v=="|"?"\\|":v)+"+$"),b="",N=[];x.dense=Array.isArray(f);for(var V=x.skipHidden&&f["!cols"]||[],z=x.skipHidden&&f["!rows"]||[],W=m.s.c;W<=m.e.c;++W)(V[W]||{}).hidden||(N[W]=jr(W));var S=m.s.r,ue=!1;return d._read=function(){if(!ue)return ue=!0,d.push("\uFEFF");for(;S<=m.e.r;)if(++S,!(z[S-1]||{}).hidden&&(b=mm(f,m,S-1,N,_,D,v,x),b!=null)){x.strip&&(b=b.replace(w,"")),d.push(b+E);break}if(S>m.e.r)return d.push(null)},d},n=function(f,h){var d=t(),x=h||{},m=x.header!=null?x.header:Os.BEGIN,v=x.footer!=null?x.footer:Os.END;d.push(m);var _=ai(f["!ref"]);x.dense=Array.isArray(f),d.push(Os._preamble(f,_,x));var E=_.s.r,D=!1;return d._read=function(){if(E>_.e.r)return D||(D=!0,d.push("</table>"+v)),d.push(null);for(;E<=_.e.r;){d.push(Os._row(f,_,E,x)),++E;break}},d},i=function(f,h){var d=t({objectMode:!0});if(f==null||f["!ref"]==null)return d.push(null),d;var x={t:"n",v:0},m=0,v=1,_=[],E=0,D="",w={s:{r:0,c:0},e:{r:0,c:0}},b=h||{},N=b.range!=null?b.range:f["!ref"];switch(b.header===1?m=1:b.header==="A"?m=2:Array.isArray(b.header)&&(m=3),typeof N){case"string":w=kr(N);break;case"number":w=kr(f["!ref"]),w.s.r=N;break;default:w=N}m>0&&(v=0);var V=xn(w.s.r),z=[],W=0,S=Array.isArray(f),ue=w.s.r,Se=0,me=0;for(S&&!f[ue]&&(f[ue]=[]),Se=w.s.c;Se<=w.e.c;++Se)switch(z[Se]=jr(Se),x=S?f[ue][Se]:f[z[Se]+V],m){case 1:_[Se]=Se-w.s.c;break;case 2:_[Se]=z[Se];break;case 3:_[Se]=b.header[Se-w.s.c];break;default:for(x==null&&(x={w:"__EMPTY",t:"s"}),D=E=wn(x,null,b),W=0,me=0;me<_.length;++me)_[me]==D&&(D=E+"_"+ ++W);_[Se]=D}return ue=w.s.r+v,d._read=function(){if(ue>w.e.r)return d.push(null);for(;ue<=w.e.r;){var Ne=pm(f,w,ue,z,m,_,S,b);if(++ue,Ne.isempty===!1||(m===1?b.blankrows!==!1:!!b.blankrows)){d.push(Ne.row);break}}},d};u.stream={to_json:i,to_html:n,to_csv:a}}(),u.parse_xlscfb=d2,u.parse_ods=x2,u.parse_fods=p2,u.write_ods=g2,u.parse_zip=fm,u.read=Ah,u.readFile=cm,u.readFileSync=cm,u.write=Dh,u.writeFile=xm,u.writeFileSync=xm,u.writeFileAsync=mF,u.utils=Fm,u.SSF=ee,u.CFB=_e}o(c)})($s,$s.exports);const BF="",av={name:"yzlTable",components:{TableColumnsManager:tv},mixins:[wm,Sm,kh],props:{data:{type:Array},columns:Array,pageInfo:{type:Object},loadingDelay:{type:Number,default:200},columnDefault:{type:Object},globalConfig:{type:Object},exports:{type:Object,default:()=>({})},model:{type:Object,default:()=>({})},tableId:{type:String,default:""},exportsLocal:{type:Boolean,default:!1},enableDynamicInSetting:{type:Boolean,default:!1},rowKey:{type:[String,Function],default:void 0},showIndex:{type:Boolean,default:!0}},data(){return{localColumns:[],initialColumns:[],serverColumns:[],dynamicColumns:[],columnsReady:!1,tableColumnsVisiable:!1,finallyColumns:[],selection:null,isFullscreen:!1}},watch:{columns:{handler(g){this.initialColumns=this.processColumns([...g]),this.localColumns=this.processColumns([...g])},immediate:!0},tableId:{handler(g,c){if(g!==c)if(g){if(this.loadingLock)return;this.loadingLock=!0,this.serverColumns=[],this.columnsReady=!1,this.fetchServerColumns().finally(()=>this.loadingLock=!1)}else this.columnsReady=!0},immediate:!0}},computed:{comp_columns(){if(!this.columnsReady)return[];let g=this.serverColumns.length>0?this.handleServerColumns([...this.serverColumns]):[...this.localColumns];const c=this.insertDynamicColumns(g);this.finallyColumns=[...c];const o=this.finallyColumns.findIndex(u=>u.type==="selection");return o!==-1&&(this.selection=this.finallyColumns.splice(o,1)[0]||null),this.finallyColumns.length?this.finallyColumns:[]},attrs(){const{"row-class-name":g,...c}=this.$attrs;return Object.assign({},this.globalConfig.table,c)},mergedListeners(){const g={...this.$listeners},c=o=>(...u)=>{var k;o==null||o(...u);const[r,e,A]=u,I=this.finallyColumns.findIndex(M=>M.prop===A.property);if(I>=0){if(I===this.finallyColumns.length-1){this.finallyColumns[I].width="",this.$nextTick(()=>{this.$nextTick(()=>this.doLayout())});return}this.finallyColumns[I].width=r,(k=this.$bus)==null||k.$emit("table-columns-resized",{tableId:this.tableId,columns:this.finallyColumns.filter(M=>!M.isDynamic)})}this.$nextTick(()=>{this.$nextTick(()=>this.doLayout())})};return g["header-dragend"]=c(g["header-dragend"]),g},mergedLocalColumns(){return this.mergedEnableDynamic?[...this.localColumns,...this.dynamicColumns]:this.localColumns},mergedEnableDynamic(){var c;return this.enableDynamicInSetting?this.enableDynamicInSetting:(c=this.globalConfig)==null?void 0:c.enableDynamicInSetting}},created(){this.isFullscreen=!!document.fullscreenElement,document.addEventListener("fullscreenchange",()=>{this.isFullscreen=!!document.fullscreenElement})},mounted(){this.initVirtualScroll()},methods:{getRowKey(g){var o;const c=this.rowKey||((o=this.model)==null?void 0:o.rowKey);return c&&g[c]!==void 0?g[c]:(this.selection&&!c&&(console.warn("[yzlTable] \u5F53\u4F7F\u7528\u884C\u9009\u62E9\u529F\u80FD\u65F6\uFF0C\u5EFA\u8BAE\u914D\u7F6E\u6709\u6548\u7684 rowKey\uFF08\u8BF7\u5728\u8868\u683C\u4E2D\u914D\u7F6E :row-key \u6216 model.rowKey\uFF09"),console.warn("[yzlTable] \u5F53\u524D\u6570\u636E\u884C\u7684\u53EF\u7528\u952E\uFF1A",Object.keys(g))),Symbol("fallbackRowKey"))},handleServerColumns(g){const c=[...this.localColumns];if(!g.some(o=>o.type==="selection")){const o=this.localColumns.find(u=>u.type==="selection");o&&g.unshift({...o})}return g.forEach(o=>{const u=c.find(r=>r.label===o.label);u&&Object.assign(o,{align:u.align||o.align,headerAlign:u.headerAlign||o.headerAlign,label:u.label||o.label,...o.label==="\u64CD\u4F5C"?u:rv.omit(u,["width","minWidth"])})}),g},insertDynamicColumns(g){const c=[...g];return this.mergedEnableDynamic||this.dynamicColumns.forEach(o=>{const u=o.position===-1?c.length:Math.min(o.position,c.length);c.splice(u,0,o)}),c},async fetchServerColumns(){var g,c;if(((c=(g=this.globalConfig)==null?void 0:g.api)==null?void 0:c.getTableColumnAPI)&&this.tableId)try{const o=this.globalConfig.api.getTableColumnAPI.replace(/\{table_id\}/g,this.tableId),u=await this.$http.get(o);if(u.fieldJson){const r=JSON.parse(u.fieldJson);this.serverColumns=r.map(e=>typeof e=="string"?JSON.parse(e):e)}else this.handleColumnsUpdate(this.processColumns([...this.initialColumns]))}catch(o){console.error("\u5217\u914D\u7F6E\u52A0\u8F7D\u5931\u8D25:",o),this.localColumns=this.processColumns([...this.initialColumns])}finally{this.columnsReady=!0}else this.columnsReady=!0},processColumns(g){return g.map(o=>{var r,e;const u={...(r=this.globalConfig)==null?void 0:r.tableColumn,...this.columnDefault,...o,...yh.handleFormatter(o)};if(u.width)u.minWidth=void 0;else if(!u.minWidth){const A=((e=u.label)==null?void 0:e.length)||0;u.minWidth=[90,110,130,150,170][A-4]||90}return u})},openTableHeadDialog(){this.tableColumnsVisiable=!0},handleColumnsUpdate(g){var c;this.serverColumns=[...g],this.columnsReady=!1,this.$nextTick(()=>{this.columnsReady=!0,this.$nextTick(()=>{this.$refs.yzlTable&&(this.$refs.yzlTable.doLayout(),this.$refs.yzlTable.store.scheduleLayout(!0))})});try{(c=this.$bus)==null||c.$emit("table-columns-resized",{tableId:this.tableId,columns:g})}catch(o){console.error("\u4E8B\u4EF6\u89E6\u53D1\u5931\u8D25:",o)}},exportExcel(){const g=$s.exports.utils.book_new(),c=this.data.reduce((A,I)=>{const k={};return this.columns.forEach(M=>{k[M.label]=I[M.prop]}),A.push(k),A},[]),o=$s.exports.utils.json_to_sheet(c);$s.exports.utils.book_append_sheet(g,o,"Sheet1");const u=$s.exports.write(g,{bookType:"xlsx",type:"array"}),r=new Blob([u],{type:"application/octet-stream"}),e=new Date().toLocaleString("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hour12:!1}).replace(/[\/\s:]/g,"").slice(0,12);Pl.exports.saveAs(r,`\u6570\u636E\u7ED3\u679C_${e}${this.tableId?`_${this.tableId}`:""}.xlsx`)},async handleExport(g){if(this.exportsLocal)this.exportExcel();else{const{api:c,tableId:o,fileName:u,onSearch:r,onPages:e,exportParams:A}=this.exports;try{this.startLoading(),await new Am(this,{api:c,fileName:u,onSearch:r,onPages:e}).execute({tableId:o||this.tableId,...A},g)}finally{this.stopLoading()}}},tableRowClassName({row:g,rowIndex:c}){const o=this.$attrs["row-class-name"];return[typeof o=="function"?o({row:g,rowIndex:c}):typeof o=="string"?o:"",c%2===0?"single-row":"double-row"].filter(r=>r).join(" ")},addColumn(g,c=-1){const o=[].concat(g).map(u=>({...u,position:c,isDynamic:!0}));this.dynamicColumns.push(...o),this.$nextTick(()=>this.doLayout())},resetColumns(){this.dynamicColumns=[],this.$nextTick(()=>{this.$nextTick(()=>{this.$refs.yzlTable?this.doLayout():(console.warn("\u8868\u683C\u5B9E\u4F8B\u672A\u5C31\u7EEA\uFF0C\u5EF6\u8FDF\u91CD\u8BD5\u5E03\u5C40"),setTimeout(()=>{var g,c;return(c=(g=this.$refs.yzlTable)==null?void 0:g.doLayout)==null?void 0:c.call(g)},100))})})},toggleRowSelection(){this.$refs.yzlTable.toggleRowSelection.apply(this,Array.from(arguments))},clearSelection(){var g,c;(c=(g=this.$refs.yzlTable)==null?void 0:g.clearSelection)==null||c.apply(this,Array.from(arguments))},setCurrentRow(g){this.$refs.yzlTable.setCurrentRow.apply(this,[g])},doLayout(){this.$refs.yzlTable.doLayout()}}};var iv=function(){var c=this,o=c._self._c;return o("div",{ref:"tableContainer",staticClass:"yzl-table-wrapper"},[c.columnsReady?o("el-table",c._g(c._b({directives:[{name:"loading",rawName:"v-loading",value:c.mergedLoading,expression:"mergedLoading"}],ref:"yzlTable",attrs:{"data-table-id":c.tableId,height:"100%","row-key":c.getRowKey,"header-row-class-name":"yzl-table-header",data:c.enableDeferRender?c.renderedData:c.tableData,pageInfo:c.pageInfo,"element-loading-delay":c.loadingDelay,"row-class-name":c.tableRowClassName},scopedSlots:c._u([{key:"append",fn:function(){return[c._t("append")]},proxy:!0}],null,!0)},"el-table",c.attrs,!1),c.mergedListeners),[c.selection?o("el-table-column",c._b({attrs:{type:"selection",width:c.selection.width||55}},"el-table-column",c.selection,!1)):c._e(),c.showIndex?o("el-table-column",{attrs:{type:"index",label:"\u5E8F\u53F7",width:"50",align:"center"},scopedSlots:c._u([{key:"header",fn:function(u){var r,e,A,I;return[c.tableId||((r=c.exports)==null?void 0:r.api)||c.exportsLocal?o("el-dropdown",{directives:[{name:"show",rawName:"v-show",value:!c.isFullscreen,expression:"!isFullscreen"}],staticStyle:{cursor:"pointer"},attrs:{placement:"bottom"}},[o("span",{staticClass:"el-dropdown-link"},[o("i",{staticClass:"el-icon-s-tools"})]),o("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[((e=c.exports)==null?void 0:e.api)||c.exportsLocal?o("el-dropdown-item",{nativeOn:{click:function(k){return c.handleExport.apply(null,arguments)}}},[c._v("\u6570\u636E\u5BFC\u51FA")]):c._e(),c.tableId?o("el-dropdown-item",{nativeOn:{click:function(k){return c.openTableHeadDialog.apply(null,arguments)}}},[c._v("\u8868\u5934\u8BBE\u7F6E")]):c._e()],1)],1):c._e(),c.tableId||((A=c.exports)==null?void 0:A.api)||c.exportsLocal?o("el-dropdown",{directives:[{name:"show",rawName:"v-show",value:c.isFullscreen,expression:"isFullscreen"}],staticStyle:{cursor:"pointer"},attrs:{placement:"bottom"}},[o("span",{staticClass:"el-dropdown-link"},[o("i",{staticClass:"el-icon-s-tools"})]),o("el-dropdown-menu",{staticStyle:{"font-weight":"normal"},attrs:{slot:"dropdown","append-to-body":!1},slot:"dropdown"},[((I=c.exports)==null?void 0:I.api)||c.exportsLocal?o("el-dropdown-item",{nativeOn:{click:function(k){return c.handleExport.apply(null,arguments)}}},[c._v("\u6570\u636E\u5BFC\u51FA")]):c._e(),c.tableId?o("el-dropdown-item",{nativeOn:{click:function(k){return c.openTableHeadDialog.apply(null,arguments)}}},[c._v("\u8868\u5934\u8BBE\u7F6E")]):c._e()],1)],1):o("span",{staticClass:"el-dropdown-link"},[o("i",{staticClass:"el-icon-s-tools"})])]}},{key:"default",fn:function(u){return[c._v(" "+c._s(c.pageInfo?(c.pageInfo.page-1)*c.pageInfo.size+u.$index+1:u.$index+1)+" ")]}}],null,!1,2846307281)}):c._e(),c._l(c.comp_columns,function(u,r){return o("el-table-column",c._b({key:u.prop||u.key||r,attrs:{prop:u.prop||u.key},scopedSlots:c._u([u.slotName?{key:"default",fn:function(e){return[c._t(u.slotName,null,{row:e.row,index:e.$index,column:u})]}}:null],null,!0)},"el-table-column",u,!1),[u.children?c._l(u.children,function(e,A){return o("el-table-column",c._b({key:e.prop||e.key||A,attrs:{prop:e.prop||e.key},scopedSlots:c._u([e.slotName?{key:"default",fn:function(I){return[c._t(e.slotName,null,{row:I.row,index:I.$index,column:e})]}}:null],null,!0)},"el-table-column",e,!1))}):c._e()],2)})],2):c._e(),o("TableColumnsManager",{attrs:{visible:c.tableColumnsVisiable,"table-id":c.tableId,serverColumns:c.serverColumns,localColumns:c.mergedLocalColumns},on:{"update:visible":function(u){c.tableColumnsVisiable=u},"columns-updated":c.handleColumnsUpdate}})],1)},sv=[],ov=Zn(av,iv,sv,!1,null,null,null,null);const Ql=ov.exports;Ql.install=function(g){g.component(Ql.name,Ql)};const bF="",fv={name:"yzlPagination",props:{pageInfo:{type:Object,default:()=>({total:0,size:50,page:1,hasMore:!1})},pageSizes:{type:Array,default:()=>[10,20,30,50,100,200,500,1e3]},layout:{type:String,default:"sizes, prev, pager, next, jumper"},align:{type:String,default:"right"},globalConfig:{type:Object},paginationTotalCount:{type:Number,default:null}},computed:{computedLayout(){return this.paginationTotalCount?this.layout.replace("total,",""):this.layout}},methods:{handleSizeChange(g){this.pageInfo.page=1,this.pageInfo.size=g,this.$emit("updateTable",g)},handleCurrentChange(g){this.pageInfo.page=g,this.$emit("updateTable",g)}}};var lv=function(){var c=this,o=c._self._c;return o("div",{class:["yzl-pagination-wrapper",c.align]},[o("el-pagination",c._b({attrs:{"current-page":c.pageInfo.page,"page-sizes":c.pageSizes,"page-size":c.pageInfo.size,layout:c.computedLayout,total:c.pageInfo.total},on:{"size-change":c.handleSizeChange,"current-change":c.handleCurrentChange,"update:currentPage":function(u){return c.$set(c.pageInfo,"page",u)},"update:current-page":function(u){return c.$set(c.pageInfo,"page",u)},"update:pageSize":function(u){return c.$set(c.pageInfo,"size",u)},"update:page-size":function(u){return c.$set(c.pageInfo,"size",u)}}},"el-pagination",c.$attrs,!1)),c.paginationTotalCount?o("div",{staticClass:"el-pagination is-background"},[o("div",{staticClass:"el-pagination__total",staticStyle:{"line-height":"28px"}},[c._v("\u5171 "+c._s(c.pageInfo.total||0)+" \u6761\uFF0C\u9009\u4E2D "+c._s(c.paginationTotalCount)+" \u6761")])]):c._e()],1)},cv=[],uv=Zn(fv,lv,cv,!1,null,null,null,null);const ql=uv.exports;ql.install=function(g){g.component(ql.name,ql)};const yF="",hv={name:"yzlForm",props:{schema:{type:[Object,Array],required:!0},value:{required:!0},rules:{type:Object},searchMore:{type:Boolean,default:!1},globalConfig:{type:Object}},computed:{inValue:{get(){return this.value},set(g){this.$emit("input",g)}},normalizedSchema(){const g=(o,u)=>{var e,A;const r={clearable:(A=(e=this.globalConfig)==null?void 0:e.tableColumn)==null?void 0:A.clearable,...typeof o=="object"?o:{},key:(o==null?void 0:o.key)||u};if(!r.placeholder){const I=r.component;/^el-input$/.test(I)?r.placeholder=`\u8BF7\u8F93\u5165${r.label}`:/^(el|yzl|guode)-?(select|DatePicker|date(-picker)?|time(-picker)?)/.test(I)&&(r.placeholder=`\u8BF7\u9009\u62E9${r.label}`)}return r};return Array.isArray(this.schema)?this.schema.map(o=>g(o,o.key)):Object.entries(this.schema).map(([o,u])=>g(u,o))},mergeRules(){return Array.isArray(this.schema)?{...this.schema.reduce((c,o)=>(o.rules&&(c[o.key]=o.rules),c),{}),...this.rules}:{...this.schema.rules,...this.rules}}},data(){return{isInDialog:!1}},mounted(){this.isInDialog=this.checkAncestorWithClass(this.$refs.yzlForm.$el,"el-dialog")},methods:{validate(g){return this.$refs.yzlForm.validate(g)},clearValidate(){return this.$refs.yzlForm.clearValidate()},resetFields(){return this.$refs.yzlForm.resetFields()},checkAncestorWithClass(g,c){if(g.classList&&g.classList.contains(c))return!0;let o=g.parentElement;for(;o;){if(o.classList&&o.classList.contains(c))return!0;o=o.parentElement}return!1}}};var dv=function(){var c=this,o=c._self._c;return o("div",{staticClass:"yzl-form-wrapper"},[o("el-row",{staticClass:"yzl-form-grid"},[o("el-form",c._g(c._b({ref:"yzlForm",attrs:{model:c.inValue,rules:c.mergeRules}},"el-form",c.$attrs,!1),c.$listeners),[c._l(c.normalizedSchema,function(u,r){return[u&&(c.searchMore||(typeof(u==null?void 0:u.hidden)=="function"?!(u!=null&&u.hidden()):!(u!=null&&u.hidden)))?o("yzlFormItem",{key:u==null?void 0:u.key,attrs:{"data-k":u==null?void 0:u.key,model:c.inValue,schema:u,isInDialog:c.isInDialog,name:u==null?void 0:u.key},on:{"update:model":function(e){c.inValue=e}},scopedSlots:c._u([u!=null&&u.hasOwnProperty("slotName")?{key:u.slotName,fn:function(e){return[c._t(u.slotName,null,null,e)]}}:null,c._l(c.$scopedSlots,function(e,A){return{key:A,fn:function(I){return[c._t(A,null,null,I)]}}})],null,!0),model:{value:c.inValue[u==null?void 0:u.key],callback:function(e){c.$set(c.inValue,u==null?void 0:u.key,e)},expression:"inValue[item?.key]"}}):c._e()]})],2)],1)],1)},xv=[],pv=Zn(hv,dv,xv,!1,null,null,null,null);const ec=pv.exports;ec.install=function(g){g.component(ec.name,ec)};const Zh=(g,c)=>(...o)=>{g(...o,c)},gv=(g,c)=>Object.entries(g).reduce((o,[u,r])=>(typeof r=="function"&&(o[u]=Zh(r,c)),o),{}),mv=(g,c)=>g.reduce((o,u)=>(u.handler&&typeof u.handler=="function"?o[u.name]=Zh(u.handler,c):u.eventName&&typeof u.event=="function"&&(o[u.eventName]=Zh(u.event,c)),o),{});function j0(g,c={}){return g!=null&&g.events?typeof g.events=="object"&&!Array.isArray(g.events)?gv(g.events,c):mv(g.events,c):{}}const tc=(g={})=>{const c=[],o={chinese:{condition:e=>"chineseOnly"in e?e.chineseOnly:!1,handler:e=>e.replace(/[^\u4e00-\u9fa5\s]/g,"")},space:{condition:e=>"noSpace"in e?e.noSpace:!0,handler:e=>e.replace(/\s/g,"")},specialSymbol:{condition:e=>"noSpecialSymbol"in e?e.noSpecialSymbol:!1,handler:e=>e.replace(/[^a-zA-Z0-9]/g,"")}},u=(...e)=>(e.forEach(A=>{o[A]&&c.push(o[A])}),r),r=(e,A)=>c.reduce((I,{condition:k,handler:M})=>k(A)?M(I):I,String(e));return r.extend=(e,A)=>(o[e]=A,r),{use:u,processor:r}},vv={name:"yzlDynamicFormItem",props:{schema:{type:Object,required:!0},name:{type:String,required:!0},value:{required:!0},model:{type:Object}},computed:{inValue:{get(){return this.value},set(g){this.$emit("input",g)}},componentName(){return this.schema.component},formItemAttrs(){const{label:g,required:c,rules:o,labelWidth:u}=this.schema;return{label:g,required:c,rules:o,labelWidth:u}},componentsAttrs(){const{label:g,col:c,rules:o,component:u,...r}=this.schema;return r},mergedListeners(){const g={...this.$listeners,...j0(this.schema,{content:this})};if(this.componentName==="el-input"){const c=g.input;let o=!1;const u=tc().use("chinese","space","specialSymbol");this.schema.hasOwnProperty("noSpace")&&typeof this.schema.noSpace!="boolean"&&console.error("[yzlDynamicFormItem] noSpace \u53EA\u652F\u6301 boolean \u7C7B\u578B\uFF0C\u5F53\u524D\u503C\uFF1A",this.schema.noSpace);const r=e=>{var A;if(!o){let I=u(e,this.schema);if((A=this.schema.events)!=null&&A.input){const k=this.schema.events.input(I,{content:this});I=k!==void 0?k:I}c==null||c(I),this.$emit("input",I)}};g.input=r,g.compositionstart=()=>o=!0,g.compositionend=e=>{o=!1;const A=u(e.target.value,this.schema);r(A)}}return g},mergedStyle(){const g={width:this.schema.width||"100%"};if(typeof this.schema.style=="string"){const c=this.schema.style.split(";").reduce((o,u)=>{const[r,e]=u.split(":").map(A=>A.trim());return r&&e&&(o[r]=e),o},{});return{...g,...c}}return{...g,...this.schema.style}}}};var _v=function(){var c=this,o=c._self._c;return o("el-form-item",c._b({attrs:{prop:c.name}},"el-form-item",c.formItemAttrs,!1),[c.componentName?o(c.componentName,c._g(c._b({ref:c.name,tag:"component",style:c.mergedStyle,attrs:{model:c.model,name:c.name,schema:c.schema},on:{"update:model":function(u){c.model=u}},scopedSlots:c._u([c.schema.slotName?{key:c.schema.slotName,fn:function(u){return[c._t(c.schema.slotName,null,null,{...u,item:c.schema,data:c.inValue,fmRef:c.$refs[`${c.name}Ref`]})]}}:null,c._l(c.$scopedSlots,function(u,r){return{key:r,fn:function(e){return[c._t(r,null,null,e)]}}})],null,!0),model:{value:c.inValue,callback:function(u){c.inValue=u},expression:"inValue"}},"component",c.componentsAttrs,!1),c.mergedListeners)):c._t(c.schema.slotName,null,{item:c.schema,data:c.inValue,fmRef:c.$refs[`${c.name}Ref`]})],2)},Fv=[],Cv=Zn(vv,_v,Fv,!1,null,null,null,null);const Ev={name:"yzlFormItem",components:{YzlDynamicFormItem:Cv.exports},props:{value:{required:!0},model:{type:Object},schema:{type:Object,required:!0},name:String,globalConfig:{type:Object},isInDialog:{type:Boolean}},computed:{inValue:{get(){return this.value},set(g){this.$emit("input",g)}},col(){var c;let g;if(this.schema.hasOwnProperty("col")&&JSON.stringify(this.schema.col)!=="{}")g=Object.assign({},this.schema.col);else if(this.schema.hasOwnProperty("span"))g=Object.assign({},{span:this.schema.span});else{const o=(((c=this.globalConfig)==null?void 0:c.searchForm)||{})[this.isInDialog?"dialogCol":"col"]||{};g=Object.assign({},o)}return g},colComponent(){var o,u;const g=this.schema.hasOwnProperty("col")||this.schema.hasOwnProperty("span"),c=!!((u=(o=this.globalConfig)==null?void 0:o.searchForm)!=null&&u[this.isInDialog?"dialogCol":"col"]);return g||c?"el-col":"div"},shouldShow(){var g;return typeof((g=this.schema)==null?void 0:g.visible)=="function"?this.schema.visible(this.model,this.schema):!0}}};var wv=function(){var c=this,o=c._self._c;return c.shouldShow?o(c.colComponent,c._b({tag:"component"},"component",c.col,!1),[o("yzlDynamicFormItem",c._g(c._b({attrs:{model:c.model,schema:c.schema,name:c.name},on:{"update:model":function(u){c.model=u}},scopedSlots:c._u([c.schema.hasOwnProperty("slotName")?{key:c.schema.slotName,fn:function(u){return[c._t(c.schema.slotName,null,{vBind:u})]}}:null,c._l(c.$scopedSlots,function(u,r){return{key:r,fn:function(e){return[c._t(r,null,null,e)]}}})],null,!0),model:{value:c.inValue,callback:function(u){c.inValue=u},expression:"inValue"}},"yzlDynamicFormItem",c.$attrs,!1),c.$listeners))],1):c._e()},Sv=[],Av=Zn(Ev,wv,Sv,!1,null,null,null,null);const rc=Av.exports;rc.install=function(g){g.component(rc.name,rc)};class zs{static register(c,o){this.strategies.set(c,o)}static create(c,o,u){return(this.strategies.get(c)||this.strategies.get("default")).create(o,u)}}Cm(zs,"strategies",new Map),zs.register("default",{create:(g,{form:c,excludeKeys:o})=>{const r=["el-select","yzlRangeInput","yzlRange","yzlDatePicker"].includes(g==null?void 0:g.component)?[]:"";if(o.has(g.key))return r;g.key in c||(c[g.key]=r)}}),zs.register("yzlCompositeSelect",{create:(g,{form:c,excludeKeys:o})=>{const u=Object.keys(g.children||{});if(u.length===0)return"";const r=g.key;return c[r]||(c[r]=u[0]),u.forEach(e=>{const A=g.children[e];A.key=e,A!=null&&A.alias?A.alias.forEach(I=>{I in c||(c[I]="")}):(A==null?void 0:A.component)&&!o.has(e)&&zs.create(A.component,A,{form:c,excludeKeys:o,parentKey:r})}),c[r]}}),zs.register("yzlRangeInput",{create:()=>[]});function nc(g,c={},o={deep:!1}){const u={...c},r=new Set(o.exclude||[]);return Object.entries(g).forEach(([e,A])=>{r.has(e)||zs.create(A.component,{...A,key:e},{form:u,excludeKeys:r})}),u}const Dv={name:"yzlPagelist",mixins:[kh],props:{data:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})},searchs:{type:Object,default:null},columns:{type:Array,default:null},exports:{type:Object,default:null},isPagination:{type:Boolean,default:!0},hideSearch:{type:Boolean,default:!1},hideSearchButton:{type:Boolean,default:!1},hideSearchReset:{type:Boolean,default:!1},hideSearchMore:{type:Boolean,default:!1},autoReloadOnReset:{type:Boolean,default:void 0},globalConfig:{type:Object},api:{type:Function},enableVirtualScroll:{type:Boolean,default:!1},enableEnterSearch:{type:Boolean,default:!0},tableId:{type:String,default:void 0},exportsLocal:{type:Boolean,default:!1},enableDynamicInSetting:{type:Boolean,default:!1},paginationTotalCount:{type:Number,default:null},rowKey:{type:[String,Function],default:void 0},showIndex:{type:Boolean,default:!0}},data(){return{searchMore:!1}},computed:{hasSearchForm(){return Object.keys(this.mergedSearchs).length>0},mergedSearchs(){return this.searchs||this.config.searchs||{}},mergedExports(){return this.exports||this.config.exports||{}},mergedColumns(){return this.columns||this.config.columns||[]},mergedAutoReload(){var c,o;return typeof this.autoReloadOnReset<"u"?this.autoReloadOnReset:(o=(c=this.globalConfig)==null?void 0:c.autoReloadOnReset)!=null?o:!1},localData(){const g=this.data||{},{pageInfo:c,data:o,...u}=this.data;if(this.mergedSearchs){const r=nc(this.mergedSearchs,u,{exclude:["_slotSearchButtons"]});Object.keys(r).forEach(e=>{e in g||this.$set(g,e,r[e])})}return this.data.pageInfo||this.$set(this.data,"pageInfo",JSON.parse(JSON.stringify(this.globalConfig.pageInfo||{page:1,size:50}))),g},searchSlots(){const g=this.mergedSearchs||{};return Object.keys(g).reduce((c,o)=>(g[o].slotName&&(c[o]=g[o]),c),{})},isHideSearchMore(){return!(Object.keys(this.mergedSearchs).findIndex(c=>this.mergedSearchs[c].hidden)>=0)},paginationAttrs(){var r,e;const{paginationLayout:g,paginationSmall:c,pageInfo:o}=this.$attrs,u={...this.globalConfig.pagination};return u.layout=g||((e=(r=this.globalConfig)==null?void 0:r.pagination)==null?void 0:e.layout),c&&(u.small=c),u},handleReset(){this.$emit("reset")},computedLabelWidth(){if(this.$attrs.labelWidth)return this.$attrs.labelWidth;const g=Object.values(this.mergedSearchs);return g.length===0?"auto":Math.max(...g.map(o=>(o.label||"").replace(/[^\\u4e00-\\u9fa5]/g,"").length))>6?"104px":"auto"}},mounted(){var g;!this.mergedSearchs||this.api&&!((g=this.localData.data)!=null&&g.length)&&this.loadTableData()},created(){!this.hideSearchButton&&this.hasSearchForm&&(this.mergedSearchs._slotSearchButtons={slotName:"searchButtons"}),this.resetForm=nc(this.mergedSearchs,this.data,{exclude:["_slotSearchButtons"]})},methods:{handleSubmit(g){if(this.enableEnterSearch)this.reloadTableData();else return console.log("\u975E\u56DE\u8F66\u641C\u7D22"),!1},async loadTableData(g=null){let c;if(this.api)try{this.startLoading(),await this.$nextTick(),c=await this.api(this.localData)}finally{this.$nextTick(()=>this.stopLoading()),this.$refs.inpRef.doLayout()}this.$emit("search",c,this.localData,g)},handleSearchReset(){Object.entries(this.resetForm).forEach(([g,c])=>{g!=="data"&&(this.localData[g]=c)}),this.$emit("reset",this.localData),this.mergedAutoReload&&!this.$listeners.reset&&this.reloadTableData()},reloadTableData(){this.data.pageInfo&&(this.data.pageInfo.page=1),this.loadTableData()},handleSearchMoreClick(){this.searchMore=!this.searchMore,this.searchMore&&this._setSearchHeight()},addColumn(...g){var c;(c=this.$refs.inpRef)==null||c.addColumn(...g)},resetColumns(...g){var c;(c=this.$refs.inpRef)==null||c.resetColumns(...g)},toggleRowSelection(g,c){var o;(o=this.$refs.inpRef)==null||o.toggleRowSelection(g,c)},clearSelection(){var g;(g=this.$refs.inpRef)==null||g.clearSelection()},setCurrentRow(g){var c;(c=this.$refs.inpRef)==null||c.setCurrentRow(g)},_setSearchHeight(){this.$nextTick(()=>{const g=this.$refs.PageListRef.$el.scrollHeight;this.$refs.PageListRef.$el.style.setProperty("--row-height",`${g}px`)})}}};var Bv=function(){var u,r;var c=this,o=c._self._c;return o("div",{staticClass:"yzl-pagelist-wrapper"},[!c.hideSearch&&c.hasSearchForm?o("yzlForm",{ref:"PageListRef",staticClass:"yzl-search-wrapper",class:{"search-more":c.searchMore},attrs:{"label-width":c.computedLabelWidth,schema:c.mergedSearchs,searchMore:c.searchMore,value:c.localData,size:c.$attrs.size||((r=(u=c.globalConfig)==null?void 0:u.global)==null?void 0:r.size)||"mini","v-bind":c.$attrs,enableEnterSearch:c.enableEnterSearch},nativeOn:{submit:function(e){return e.preventDefault(),c.handleSubmit.apply(null,arguments)}},scopedSlots:c._u([c._l(c.searchSlots,function(e,A){return{key:e.slotName,fn:function(I){return[o("div",{key:A,staticStyle:{display:"flex","align-items":"center",width:"100%"}},[c._t(e.slotName,null,{row:I.row,searchItem:e,index:A})],2)]}}}),{key:"searchButtons",fn:function(){return[c.hideSearchButton?c._e():o("el-button",{staticClass:"search-button",attrs:{icon:"el-icon-search",type:"primary","native-type":c.enableEnterSearch?"submit":"button",loading:c.mergedLoading},on:{click:function(e){c.enableEnterSearch||c.reloadTableData()}}},[c._v("\u67E5\u8BE2")]),c.hideSearchReset?c._e():o("el-button",{staticClass:"search-button",on:{click:c.handleSearchReset}},[c._v("\u91CD\u7F6E")]),c._t("searchExpandButton"),!c.isHideSearchMore&&!c.hideSearchMore?o("el-link",{staticClass:"search-more",attrs:{type:"primary",underline:!1},on:{click:c.handleSearchMoreClick}},[c._v(c._s(c.searchMore?"\u6536\u8D77":"\u5C55\u5F00")),o("i",{class:["el-icon-view","el-icon-arrow-up",{isUp:!c.searchMore}]})]):c._e()]},proxy:!0}],null,!0)}):c._e(),c.$slots.tableTop&&c.$slots.tableTop.length>0?o("div",{staticClass:"buttons-box"},[c._t("tableTop")],2):c._e(),c._t("noTable",function(){return[o("yzlTable",c._g(c._b({ref:"inpRef",staticClass:"flex-auto-full",attrs:{data:c.data.data,pageInfo:c.data.pageInfo,columns:c.mergedColumns,exports:c.mergedExports,loading:c.mergedLoading,useLoading:c.useLoading,model:c.localData,enableVirtualScroll:c.enableVirtualScroll,tableId:c.tableId||c.config.tableId||"",exportsLocal:c.exportsLocal,enableDynamicInSetting:c.enableDynamicInSetting,rowKey:c.rowKey,showIndex:c.showIndex},on:{"update:loading":e=>c.isLoading=e,search:c.loadTableData},scopedSlots:c._u([c._l(c.$scopedSlots,function(e,A){return{key:A,fn:function(I){return[c._t(A,null,null,I)]}}}),{key:"append",fn:function(){return[c._t("append")]},proxy:!0}],null,!0)},"yzlTable",c.$attrs,!1),c.$listeners))]}),c.isPagination?o("yzlPagination",c._g(c._b({staticClass:"pagination-style",attrs:{background:"",pageInfo:c.data.pageInfo,paginationTotalCount:c.paginationTotalCount},on:{updateTable:function(e){return c.loadTableData(!0)}}},"yzlPagination",c.paginationAttrs,!1),c.$listeners)):c._e()],2)},bv=[],yv=Zn(Dv,Bv,bv,!1,null,null,null,null);const ac=yv.exports;ac.install=function(g){g.component(ac.name,ac)};const TF="",kv={name:"yzlTree",props:{treeProps:{type:Object},hideSearchSwitch:{type:Boolean,default:!1},title:{type:String,default:""},flexible:{type:Boolean,default:!1},filterable:{type:Boolean,default:!1},globalConfig:{type:Object},isEdit:{type:Boolean,default:!0},placeholder:{type:String,default:"\u8BF7\u8F93\u5165"},hideSearchInput:{type:Boolean,default:!1},showIcon:{type:Boolean,default:!1},nodeIcons:{type:Object,default:()=>({1:{type:"icon",expand:"el-icon-folder-opened",collapse:"el-icon-takeaway-box"},2:{type:"icon",expand:"el-icon-folder-opened",collapse:"el-icon-folder"},3:{type:"img",expand:"/images/expanded.png",collapse:"/images/collapsed.png"}})},hideExpandButton:{type:Boolean,default:!0}},data(){return{isExpand:!0,filterText:""}},computed:{isEditLocal:{get(){return this.isEdit},set(g){this.$emit("update:isEdit",g)}}},watch:{filterText(g){this.$refs.yzlTree.filter(g)}},methods:{handleNodeClick(g,c,o){this.resetParentNodesStyle(),this.setParentsStyle(o.$el)},setParentsStyle(g){let c=g.parentNode.parentNode;g.parentNode.classList.contains("el-tree")||c&&(c.firstChild.classList.add("highlight-parent"),this.setParentsStyle(c))},resetParentNodesStyle(){this.$refs.yzlTree.$el.querySelectorAll(".highlight-parent").forEach(c=>{c.classList.remove("highlight-parent")})},handleChangeExpand(){this.isExpand=!this.isExpand},handleItemClick(g,c,o){this.$emit("operate-click",g,c,o)},setCheckedKeys(g){this.$refs.yzlTree.setCheckedKeys(g)},setChecked(g,c,o){this.$refs.yzlTree.setChecked(g,c,o)}}};var Tv=function(){var c=this,o=c._self._c;return o("div",{staticClass:"yzl-tree-wrapper"},[o("div",{directives:[{name:"show",rawName:"v-show",value:c.isExpand,expression:"isExpand"}],staticClass:"content"},[c.title||!c.hideSearchSwitch?o("div",{staticClass:"buttons"},[o("span",{staticClass:"name"},[c._v(c._s(c.title))]),c.hideSearchSwitch?c._e():o("el-switch",{staticClass:"edit",attrs:{size:c.$attrs.size||c.globalConfig.global.size||"mini"},model:{value:c.isEditLocal,callback:function(u){c.isEditLocal=u},expression:"isEditLocal"}})],1):c._e(),c._t("search-top"),c.hideSearchInput?c._e():o("div",{staticClass:"search"},[o("el-input",{staticClass:"search-input",attrs:{placeholder:c.placeholder,"suffix-icon":"el-icon-search",size:c.$attrs.size||c.globalConfig.global.size||"mini"},model:{value:c.filterText,callback:function(u){c.filterText=u},expression:"filterText"}})],1),o("el-tree",c._g(c._b({ref:"yzlTree",attrs:{"highlight-current":"",indent:8},on:{"node-click":c.handleNodeClick},scopedSlots:c._u([{key:"default",fn:function({node:u,data:r}){return o("span",{staticClass:"custom-tree-node"},[c._t("treeItem",function(){return[o("span",{staticClass:"left-align ellipsis"},[c.showIcon?[u.isCurrent&&c.nodeIcons[u.level].selected?[c.nodeIcons[u.level].type==="icon"?o("i",{class:c.nodeIcons[u.level].selected}):o("img",{staticClass:"icon-img",attrs:{src:c.nodeIcons[u.level].selected}})]:[c.nodeIcons[u.level].type==="icon"?o("i",{class:u.expanded?c.nodeIcons[u.level].expand:c.nodeIcons[u.level].collapse}):o("img",{staticClass:"icon-img",attrs:{src:u.expanded?c.nodeIcons[u.level].expand:c.nodeIcons[u.level].collapse}})]]:c._e(),c._v(" "+c._s(u.label)+" ")],2)]},null,{node:u,data:r})],2)}}],null,!0)},"el-tree",c.$attrs,!1),c.$listeners))],2),c.hideExpandButton?c._e():o("div",{class:["onoff",{"is-expand":!c.isExpand}],on:{click:function(u){return c.handleChangeExpand()}}},[o("i",{class:["el-icon-d-arrow-left",{"is-expand":!c.isExpand}]})])])},Iv=[],Rv=Zn(kv,Tv,Iv,!1,null,"62a0c54e",null,null);const ic=Rv.exports;ic.install=function(g){g.component(ic.name,ic)};const IF="",Jh={name:"guodeDialog",props:{width:{type:String,default:"500px"},height:{type:[Number,String],default:null},maxHeight:{type:[Number,String],default:.8},title:String,confirmText:String,draggable:Boolean,appendToBody:{type:Boolean,default:!0},modalAppendToBody:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!1},customFooter:{type:Boolean,default:!1},isCancelBtn:{type:Boolean,default:!0},isConfirmBtn:{type:Boolean,default:!0},customClass:{type:String,default:""},dialogTemplate:{type:[Object,Function],required:!0},events:{type:Object,default:()=>({})},onConfirm:{type:Function,default:()=>{}},onCancel:{type:Function,default:()=>{}}},data(){return{visible:!0,viewportHeight:window.innerHeight,confirmLoading:!1}},computed:{inVisible:{get(){return this.visible},set(g){this.$emit("update:visible",g)}},normalizedHeight(){return this.height?typeof this.height=="number"?this.height<1?`${this.height*this.viewportHeight}px`:`${this.height}px`:String(this.height).includes("%")?`${parseFloat(this.height)/100*this.viewportHeight}px`:this.height:null},normalizedMaxHeight(){return typeof this.maxHeight=="number"?this.maxHeight<1?`${this.maxHeight*this.viewportHeight}px`:`${this.maxHeight}px`:String(this.maxHeight).includes("%")?`${parseFloat(this.maxHeight)/100*this.viewportHeight}px`:this.maxHeight},normalizedWidth(){return typeof this.width=="number"?this.width<1?`${this.width*100}%`:`${this.width}px`:String(this.width).match(/(px|%)$/)?this.width:`${this.width}px`}},mounted(){if(!this.appendToBody){const g=document.fullscreenElement;g&&(console.log(this.$refs.dialogEl.$el),this.$nextTick(()=>{const{previousElementSibling:c}=this.$refs.dialogEl.$el;!this.modalAppendToBody&&c.classList.contains("v-modal")&&g.appendChild(c),g.appendChild(this.$refs.dialogEl.$el)}))}},methods:{close(){this.visible=!1,this.confirmLoading=!1,this.$nextTick(()=>{this.$destroy()})},handleCancel(){this.$emit("close"),this.close(),this.onCancel({el:this.$refs.dialogInComponent,close:this.close})},setLoading(g){this.confirmLoading=g},handleConfirm:af.exports.debounce(async function(){try{this.confirmLoading=!0,await this.onConfirm({el:this.$refs.dialogInComponent,close:this.close,setLoading:this.setLoading})}catch(g){console.error("Confirm error:",g)}},500,{leading:!0,trailing:!1})}},Z2=()=>{Ha.useCssVars((g,c)=>({"71fab338":g.normalizedHeight,"379c0d4e":g.normalizedMaxHeight}))},J2=Jh.setup;Jh.setup=J2?(g,c)=>(Z2(),J2(g,c)):Z2;const Ov=Jh;var Pv=function(){var c=this,o=c._self._c;return o("el-dialog",c._g(c._b({directives:[{name:"dialogDrag",rawName:"v-dialogDrag",value:c.draggable,expression:"draggable"}],ref:"dialogEl",attrs:{title:c.title,visible:c.visible,"append-to-body":c.appendToBody,"modal-append-to-body":c.modalAppendToBody,"close-on-press-escape":c.closeOnPressEscape,"close-on-click-modal":c.closeOnClickModal,width:c.normalizedWidth,"custom-class":c.customClass},on:{"update:visible":function(u){c.visible=u},close:c.handleCancel}},"el-dialog",c.$attrs,!1),c.$listeners),[o(c.dialogTemplate,c._g(c._b({ref:"dialogInComponent",tag:"component",on:{close:c.close}},"component",c.$attrs,!1),c.events)),o("div",{attrs:{slot:"footer"},slot:"footer"},[c.customFooter?c._e():[c.isConfirmBtn?o("el-button",{attrs:{size:"small",type:"primary",loading:c.confirmLoading},on:{click:c.handleConfirm}},[c._v(c._s(c.confirmText||"\u4FDD \u5B58"))]):c._e(),c.isCancelBtn?o("el-button",{attrs:{size:"small"},on:{click:()=>{this.visible=!1}}},[c._v("\u53D6 \u6D88")]):c._e()],c.customFooter?c._t("footer"):c._e()],2)],1)},Nv=[],Lv=Zn(Ov,Pv,Nv,!1,null,"690ca924",null,null);const Mv=Lv.exports;function Uv(g){let c=X0.default.extend({name:g.name,data(){return{visible:!0}},render(u){let r=af.exports.isPlainObject(g)?{...g}:{};return u(Mv,{ref:"dialogRef",props:{draggable:!0,appendToBody:r.appendToBody,modalAppendToBody:r.modalAppendToBody,closeOnClickModal:!1,maxHeight:r.maxHeight,onConfirm:e=>{var A;(A=r.onConfirm)==null||A.call(r,e)},onCancel:e=>{var A;(A=r.onCancel)==null||A.call(r,e)}},attrs:{...r}})}}),o;return o=new c().$mount(),document.body.appendChild(o.$el),o.visible=!0,o.close=()=>{o.$refs.dialogRef.close()},o.setLoading=u=>{o.$refs.dialogRef.setLoading(u)},o}const Wv={install(g){g.prototype.$dialog=Uv}},Hv={name:"yzlSearch",mixins:[kh],props:{searchs:{type:[Object,Array],required:!0,default:()=>({})},form:{type:Object,required:!0},globalConfig:{type:Object},hideSearchButton:{type:Boolean,default:!1},hideSearchReset:{type:Boolean,default:!1},hideSearchMore:{type:Boolean,default:!1},autoReloadOnReset:{type:Boolean,default:void 0},searchButttonText:{type:String,default:""},searchResetText:{type:String,default:""},enableEnterSearch:{type:Boolean,default:!0}},data(){return{searchMore:!1}},computed:{hasSearchForm(){return Object.keys(this.searchs).length>0},computedSearchButtonText(){var g,c;return this.searchButttonText||((c=(g=this.globalConfig)==null?void 0:g.searchForm)==null?void 0:c.searchButtonText)||"\u67E5\u8BE2"},computedSearchResetText(){var g,c;return this.searchResetText||((c=(g=this.globalConfig)==null?void 0:g.searchForm)==null?void 0:c.searchResetText)||"\u91CD\u7F6E"},searchSlots(){return Object.keys(this.searchs).reduce((g,c)=>{const o=this.searchs[c];return o&&typeof o=="object"&&o.slotName&&(g[c]=o),g},{})},mergedAutoReload(){var g,c;return typeof this.autoReloadOnReset<"u"?this.autoReloadOnReset:(c=(g=this.globalConfig)==null?void 0:g.autoReloadOnReset)!=null?c:!1},isHideSearchMore(){return!(Object.keys(this.searchs).findIndex(c=>this.searchs[c].hidden)>=0)},localData(){const g=this.form||{};if(this.searchs){const c=nc(this.searchs,this.form,{exclude:["_slotSearchButtons"]});Object.keys(c).forEach(o=>{o in g||this.$set(g,o,c[o])})}return g.pageInfo||this.$set(g,"pageInfo",JSON.parse(JSON.stringify(this.globalConfig.pageInfo||{page:1,size:50}))),g},computedLabelWidth(){if(this.$attrs.labelWidth)return this.$attrs.labelWidth;const g=Object.values(this.searchs);return g.length===0?"auto":Math.max(...g.map(o=>(o.label||"").replace(/[^\\u4e00-\\u9fa5]/g,"").length))>6?"104px":"auto"}},created(){!this.hideSearchButton&&this.hasSearchForm&&(this.searchs._slotSearchButtons={slotName:"searchButtons"}),this.resetForm=nc(this.searchs,this.form,{exclude:["_slotSearchButtons"]})},methods:{handleSubmit(g){if(this.enableEnterSearch)this.reloadTableData();else return!1},handleSearchReset(){var g;Object.entries(this.resetForm).forEach(([c,o])=>{c!=="data"&&(this.form[c]=o)}),this.$emit("reset",this.form),this.mergedAutoReload&&!((g=this.$listeners)!=null&&g.reset)&&this.reloadTableData()},getFormRef(){return this.$refs.formRef},async reloadTableData(){this.startLoading();try{this.form.pageInfo&&(this.form.pageInfo.page=1),await this.loadTableData()}finally{this.stopLoading()}},async loadTableData(){try{this.$emit("search")}catch(g){console.error("Search error:",g)}}}};var Vv=function(){var c=this,o=c._self._c;return o("yzlForm",c._b({ref:"formRef",staticClass:"yzl-search-wrapper",class:{"search-more":c.searchMore},attrs:{"label-width":c.computedLabelWidth,schema:c.searchs,searchMore:c.searchMore,value:c.localData},nativeOn:{submit:function(u){return u.preventDefault(),c.handleSubmit.apply(null,arguments)}},scopedSlots:c._u([c._l(c.searchSlots,function(u,r){return{key:u.slotName,fn:function(e){return[c._t(u.slotName,null,{row:e.row,searchItem:u,index:r})]}}}),{key:"searchButtons",fn:function(){return[c._t("searchButtons",function(){return[c.hideSearchButton?c._e():o("el-button",{staticClass:"search-button",attrs:{icon:"el-icon-search",type:"primary","native-type":c.enableEnterSearch?"submit":"button",loading:c.mergedLoading},on:{click:function(u){!c.enableEnterSearch&&c.reloadTableData}}},[c._v(c._s(c.computedSearchButtonText))]),c.hideSearchReset?c._e():o("el-button",{staticClass:"search-button",on:{click:c.handleSearchReset}},[c._v(c._s(c.computedSearchResetText))])]}),c._t("searchExpandButton"),!c.isHideSearchMore&&!c.hideSearchMore?o("el-link",{staticClass:"search-more",attrs:{type:"primary",underline:!1},on:{click:function(u){c.searchMore=!c.searchMore}}},[c._v(" "+c._s(c.searchMore?"\u6536\u8D77":"\u5C55\u5F00")),o("i",{class:["el-icon-view","el-icon-arrow-up",{isUp:!c.searchMore}]})]):c._e()]},proxy:!0}],null,!0)},"yzlForm",c.$attrs,!1))},$v=[],zv=Zn(Hv,Vv,$v,!1,null,null,null,null);const sc=zv.exports;sc.install=function(g){g.component(sc.name,sc)};const RF="",Xv={name:"yzlDrawer",model:{prop:"visible",event:"change"},props:{visible:{type:Boolean,default:!1,validator:g=>typeof g=="boolean"},title:{type:String,default:"\u62BD\u5C49\u6807\u9898"},showHeader:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},maxWidth:{type:Number,default:500},draggable:{type:Boolean,default:!0},width:{type:Number,default:300},minCloseWidth:{type:Number,default:100}},watch:{visible:{handler(g){if(!g){requestAnimationFrame(()=>{this.drawerWidth=0});return}try{const c=Number(localStorage.getItem(this.storageKey));this.drawerWidth=c>0?Math.min(c,this.maxWidth):this.width}catch(c){console.warn("LocalStorage access failed:",c),this.drawerWidth=this.width}},immediate:!0}},computed:{storageKey(){return`drawer_width_${this.$route.name}`}},data(){return{drawerWidth:0,startX:0,startWidth:0,isDragging:!1}},beforeDestroy(){["mousemove","mouseup"].forEach(g=>{document.removeEventListener(g,this.doDrag),document.removeEventListener(g,this.stopDrag)})},methods:{toggleDrawer(){this.$emit("change",!this.visible),this.$emit("toggle",!this.visible)},handleClose(){this.$emit("change",!1),this.$emit("close")},doDrag(g){requestAnimationFrame(()=>{const c=Math.min(Math.max(this.startWidth+(this.startX-g.clientX),100),this.maxWidth);this.drawerWidth=c})},stopDrag(g){document.removeEventListener("mousemove",this.doDrag),document.removeEventListener("mouseup",this.stopDrag),window.removeEventListener("blur",this.stopDrag),this.$refs.drawer.classList.remove("dragging"),this.drawerWidth>this.minCloseWidth?this.persistWidth():(this.drawerWidth=0,this.$emit("change",!1))},startDrag(g){this.$refs.drawer.classList.add("dragging"),this.startX=g.clientX,this.startWidth=this.drawerWidth,document.removeEventListener("mousemove",this.doDrag),document.removeEventListener("mouseup",this.stopDrag),window.removeEventListener("blur",this.stopDrag),document.addEventListener("mousemove",this.doDrag,{passive:!0}),document.addEventListener("mouseup",this.stopDrag,{passive:!0}),window.addEventListener("blur",this.stopDrag)},persistWidth(){localStorage.setItem(this.storageKey,this.drawerWidth)}}};var Gv=function(){var c=this,o=c._self._c;return o("div",{staticClass:"yzl-drawer-wrapper"},[o("div",{staticClass:"left"},[c._t("default")],2),o("div",{ref:"drawer",staticClass:"right",style:{width:c.drawerWidth+"px"}},[c.showHeader?o("div",{staticClass:"drawer-header"},[c._t("titleSlot",function(){return[o("span",{staticClass:"title"},[c._v(c._s(c.title))])]}),c.showClose?o("el-button",{staticClass:"close-btn",attrs:{type:"text"},on:{click:c.handleClose}},[o("i",{staticClass:"el-icon-close"})]):c._e()],2):c._e(),o("div",{staticClass:"drawer-content"},[c._t("drawer")],2),c.draggable?o("div",{staticClass:"dragger",on:{mousedown:c.startDrag}}):c._e()])])},Kv=[],Yv=Zn(Xv,Gv,Kv,!1,null,"ce66f1f9",null,null);const oc=Yv.exports;oc.install=function(g){g.component(oc.name,oc)};const jv={name:"yzlSelect",props:{value:{required:!0},schema:{type:Object,required:!0}},computed:{modelValue:{get(){return this.value},set(g){this.$emit("input",g)}},fieldNames(){return{label:this.schema.optionLabel||"label",value:this.schema.optionValue||"value"}},mergedListeners(){return{...this.$listeners,...j0(this.schema,{context:this}),change:this.handleSelectionChange}}},methods:{handleSelectionChange(g,...c){const o={selectedItem:this.schema.options.find(u=>u[this.fieldNames.value]===g),context:this};this.$emit("change",g,...c,o)}}};var Zv=function(){var c=this,o=c._self._c;return o("el-select",c._g(c._b({model:{value:c.modelValue,callback:function(u){c.modelValue=u},expression:"modelValue"}},"el-select",c.schema,!1),c.mergedListeners),c._l(c.schema.options,function(u,r){return o("el-option",{key:r,attrs:{label:u[c.fieldNames.label],value:u[c.fieldNames.value],disabled:u.disabled}},[c._t(c.schema.slotName,function(){return[c._v(" "+c._s(u[c.fieldNames.label])+" ")]},null,{optionItem:u,labelKey:c.fieldNames.label,valueKey:c.fieldNames.value})],2)}),1)},Jv=[],Qv=Zn(jv,Zv,Jv,!1,null,null,null,null);const fc=Qv.exports;fc.install=function(g){g.component(fc.name,fc)};const qv={name:"yzlRadio",props:{value:{required:!0},schema:{type:Object,required:!0}},computed:{modelValue:{get(){return this.value},set(g){this.$emit("input",g)}},fieldNames(){return{label:this.schema.optionLabel||"label",value:this.schema.optionValue||"value"}},radioGroupAttrs(){const{size:g,disabled:c,textColor:o,fill:u}=this.schema;return{size:g,disabled:c,textColor:o,fill:u}},radioAttrs(){const{label:g,border:c,size:o,name:u,value:r}=this.schema;return{label:g,border:c,size:o,name:u,value:r}},radioButtonAttrs(){const{label:g,disabled:c,name:o}=this.schema;return{label:g,disabled:c,name:o}}}};var e_=function(){var c=this,o=c._self._c;return o("el-radio-group",c._g(c._b({model:{value:c.modelValue,callback:function(u){c.modelValue=u},expression:"modelValue"}},"el-radio-group",c.radioGroupAttrs,!1),c.$listeners),[c._l(c.schema.options,function(u,r){return[u.type!=="button"?o("el-radio",c._b({key:"radio_"+r,attrs:{label:u[c.fieldNames.value]}},"el-radio",c.radioAttrs,!1),[c._v(" "+c._s(u[c.fieldNames.label])+" ")]):o("el-radio-button",c._b({key:"radio_button_"+r,attrs:{label:u[c.fieldNames.value]}},"el-radio-button",c.radioButtonAttrs,!1),[c._v(" "+c._s(u[c.fieldNames.label])+" ")])]})],2)},t_=[],r_=Zn(qv,e_,t_,!1,null,null,null,null);const lc=r_.exports;lc.install=function(g){g.component(lc.name,lc)};const n_={props:{model:{type:Object,default:()=>({})},schema:{type:Object,required:!0},value:{required:!0},name:{type:String}},computed:{aliasKeys(){return Array.isArray(this.schema.alias)?this.schema.alias:[]},hasAlias(){return!!this.schema.alias}},methods:{getAliasValue(g=0){var c;return this.hasAlias?this.model[this.aliasKeys[g]]:((c=this.value)==null?void 0:c[g])||""},updateModelValue(g,c=0){if(this.hasAlias){const o=this.aliasKeys[c];this.name&&this.model.hasOwnProperty(this.name)&&delete this.model[this.name],this.$set(this.model,o,g)}else this.$emit("input",[...this.value||[],g].slice(0,2))},valueProxy(g){return{get:()=>this.getAliasValue(g),set:c=>{const o=c===null?"":c;this.hasAlias?this.updateModelValue(o,g):this.updateModelValue(o,g)}}}}},OF="",a_={name:"yzlDatePicker",mixins:[n_],props:{value:{required:!0},schema:{type:Object,required:!0}},computed:{modelValue:{get(){return this.hasAlias?[this.getAliasValue(0)||"",this.getAliasValue(1)||""]:this.value===null?this.schema.type.includes("range")?[]:"":this.value},set(g){if(this.hasAlias){const[c="",o=""]=Array.isArray(g)?g:g!==null?[g,""]:["",""];this.updateModelValue(c,0),this.updateModelValue(o,1)}else this.$emit("input",g===null?this.schema.type.includes("range")?[]:null:g)}},mergedAttrs(){const g={rangeSeparator:"-"},c={shortcuts:[{text:"\u6700\u8FD1\u4E00\u5468",onClick(u){const r=new Date,e=new Date;e.setTime(e.getTime()-3600*1e3*24*7),u.$emit("pick",[e,r])}},{text:"\u6700\u8FD1\u4E00\u4E2A\u6708",onClick(u){const r=new Date,e=new Date;e.setTime(e.getTime()-3600*1e3*24*30),u.$emit("pick",[e,r])}},{text:"\u6700\u8FD1\u4E09\u4E2A\u6708",onClick(u){const r=new Date,e=new Date;e.setTime(e.getTime()-3600*1e3*24*90),u.$emit("pick",[e,r])}}]};return["daterange","datetimerange","monthrange"].includes(this.schema.type)&&(g.startPlaceholder="\u5F00\u59CB\u65E5\u671F",g.endPlaceholder="\u7ED3\u675F\u65E5\u671F"),this.schema.shortcuts&&(g["picker-options"]=c),{...g,...this.schema}},mergedListeners(){const{input:g,...c}=this.$listeners;return this.hasAlias?{...c,...j0(this.schema,{context:this})}:{...this.$listeners,...j0(this.schema,{context:this})}}}};var i_=function(){var c=this,o=c._self._c;return o("el-date-picker",c._g(c._b({model:{value:c.modelValue,callback:function(u){c.modelValue=u},expression:"modelValue"}},"el-date-picker",c.mergedAttrs,!1),c.mergedListeners))},s_=[],o_=Zn(a_,i_,s_,!1,null,null,null,null);const cc=o_.exports;cc.install=function(g){g.component(cc.name,cc)};const PF="",f_={name:"yzlCompositeSelect",props:{value:{required:!0},schema:{type:Object,required:!0},model:{type:Object},name:{type:String}},data(){return{selectedKey:this.getDefaultSelectKey(),initialValues:{}}},computed:{localValue:{get(){return this.value},set(g){this.$emit("input",g)}},mergedStyle(){const g={width:this.schema.selectWidth||"84px"};if(typeof this.schema.style=="string"){const c=this.schema.style.split(";").reduce((o,u)=>{const[r,e]=u.split(":").map(A=>A.trim());return r&&e&&(o[r]=e),o},{});return{...g,...c}}return{...g,...this.schema.style}},selectedChild(){return this.schema.children[this.localValue]||{}},childOptions(){return Object.keys(this.schema.children).map(g=>({label:this.schema.children[g].label,value:g}))},mergedListeners(){return{...this.$listeners,...j0(this.schema,{context:this,selectedKey:this.localValue}),change:this.handleChange}}},watch:{"schema.children":{handler(){this.selectedKey=this.getDefaultSelectKey()},deep:!0}},methods:{getDefaultSelectKey(){if(this.value)return this.value;const g=Object.keys(this.schema.children);return g.length>0?g[0]:""},getChildListeners(g,c){var u,r;const o={...this.$listeners,change:e=>{var A,I;(I=(A=c.events)==null?void 0:A.change)==null||I.call(A,e,{context:this,selectedKey:this.localValue})},blur:e=>{var A,I;(I=(A=c.events)==null?void 0:A.blur)==null||I.call(A,e,{context:this,selectedKey:this.localValue})}};if((((u=c.minConfig)==null?void 0:u.rules)||((r=c.maxConfig)==null?void 0:r.rules))&&(o["update:rules"]=e=>{c.minConfig&&(c.minConfig.rules=e),c.maxConfig&&(c.maxConfig.rules=e)}),!c.alias){const e=tc().use("chinese","space","specialSymbol");o.input=A=>{var k,M;const I=e(A,this.selectedChild);(M=(k=c.events)==null?void 0:k.input)==null||M.call(k,I),this.model[g]?this.model[g]=I:this.$set(this.model,g,I)}}return o},handleChange(g){Object.keys(this.schema.children).forEach(c=>{if(c!==g){const o=this.schema.children[c];o.alias?o.alias.forEach(u=>{this.$set(this.model,u,"")}):this.$set(this.model,c,["yzlRangeInput","yzlRange"].includes(o.component)?[]:"")}}),this.$emit("input",g),this.$emit("change",{key:this.name,value:g,childSchema:this.schema.children[g]})}}};var l_=function(){var c=this,o=c._self._c;return o("div",{staticClass:"composite-wrapper"},[o("el-select",c._g(c._b({staticClass:"main-select",style:c.mergedStyle,attrs:{clearable:!1},model:{value:c.localValue,callback:function(u){c.localValue=u},expression:"localValue"}},"el-select",c.$attrs,!1),c.mergedListeners),c._l(c.childOptions,function(u,r){return o("el-option",{key:r,attrs:{label:u.label,value:u.value}})}),1),o("div",{staticClass:"children-container"},[c.localValue?o(c.selectedChild.component,c._g(c._b({key:c.localValue,tag:"component",attrs:{value:c.model[c.localValue],fieldName:c.localValue,name:c.localValue,model:c.model,schema:c.selectedChild}},"component",c.selectedChild,!1),c.getChildListeners(c.localValue,c.selectedChild))):c._e()],1)],1)},c_=[],u_=Zn(f_,l_,c_,!1,null,null,null,null);const uc=u_.exports;uc.install=function(g){g.component(uc.name,uc)};const NF="",h_={name:"yzlUpload",props:{defaultValue:{type:Array,default:()=>[]},schema:{type:Object,required:!0},action:String,returnOssId:Boolean,uploadButtonText:{type:String,default:"\u4E0A\u4F20"},maxSize:{type:Number,default:10*1024*1024}},computed:{mergedProps(){return{...this.$attrs,...this.schema,"show-file-list":!1,action:this.$attrs.action||"#"}}},watch:{defaultValue:{immediate:!0,handler(g){const c=this.localFileList.map(o=>o.url);JSON.stringify(c)!==JSON.stringify(g)&&(this.localFileList=g.map(o=>({url:o,name:o.split("/").pop(),raw:new File([],o.split("/").pop())})))}}},data(){return{isMouseIn:!1,localFileList:[]}},methods:{isImage(g){const c=["jpg","jpeg","png","gif","bmp","webp","svg"],o=g.split("."),u=o[o.length-1].toLowerCase();return c.includes(u)},handleAvatarSuccess(g,c){this.schema.onSuccess(g,c)},async handleHttpRequest({file:g,onSuccess:c,onError:o}){this.schema.httpRequest({file:g,onSuccess:u=>this.handleUploadSuccess(u,g,c),onError:u=>this.handleUploadError(u,o),setFunc:u=>{u.func=()=>this.localFileList=[]}})},handleUploadSuccess(g,c,o){var u;o(g,c),this.localFileList.push({...g.data,raw:c,name:c.name,url:((u=g.data)==null?void 0:u.url)||URL.createObjectURL(c)}),this.updateModel()},handleUploadError(g,c){c(g),this.$message.error("\u4E0A\u4F20\u5931\u8D25: "+g.message)},handleOnRemove(g){this.localFileList.splice(g,1),this.updateModel()},handleMouseMove(g){this.isMouseIn=g},updateModel(){const g=this.localFileList.map(o=>o.url),c=this.localFileList.map(o=>o.ossId);this.$emit("input",this.returnOssId?c:g)}}};var d_=function(){var u,r;var c=this,o=c._self._c;return o("el-upload",c._g(c._b({ref:"uploader",attrs:{"file-list":c.localFileList,"on-success":c.handleAvatarSuccess,"http-request":c.handleHttpRequest}},"el-upload",c.mergedProps,!1),c.$listeners),[o("el-button",{attrs:{slot:"trigger",disabled:c.$attrs.disabled||((u=c.localFileList)==null?void 0:u.length)>=c.$attrs.limit,size:c.$attrs.size,type:"primary"},slot:"trigger"},[c._v(c._s(c.uploadButtonText))]),(r=c.localFileList)!=null&&r.length?o("div",{staticClass:"upload-list"},c._l(c.localFileList,function(e,A){return o("div",{key:A,staticClass:"upload-img",on:{mouseenter:function(I){return c.handleMouseMove(!0)},mouseleave:function(I){return c.handleMouseMove(!1)}}},[c.isImage(e.url)?o("el-image",{staticClass:"img-item",attrs:{"preview-src-list":[e.url],src:e.url}}):o("div",{staticClass:"file-doc"},[o("i",{staticClass:"el-icon-document"})]),o("p",{staticClass:"img-name"},[c._v(c._s(e.name||"\u6682\u65E0"))]),o("div",{staticClass:"triangle"},[c.isMouseIn&&!c.$attrs.disabled?o("i",{staticClass:"el-icon-close img-check",on:{click:function(I){return c.handleOnRemove(A)}}}):o("i",{staticClass:"el-icon-check img-check"})])],1)}),0):c._e(),o("div",{staticClass:"el-upload__tip"},[c._v(c._s(`\u6700\u591A\u4E0A\u4F20${c.$attrs.limit}\u4E2A\u6587\u4EF6\uFF0C\u5355\u4E2A\u6587\u4EF6\u4E0D\u8D85\u8FC7${this.maxSize/1024/1024}M`))])],1)},x_=[],p_=Zn(h_,d_,x_,!1,null,"1ae379ac",null,null);const hc=p_.exports;hc.install=function(g){g.component(hc.name,hc)};const LF="",g_={name:"YzlRangeInput",props:{value:{type:Array,default:()=>["",""]},schema:{type:Object,default:()=>({alias:[],minConfig:{},maxConfig:{}})},model:{type:Object,default:()=>({})},fieldName:{type:String,default:""}},data(){return{currentValues:["",""]}},computed:{aliasKeys(){return Array.isArray(this.schema.alias)?this.schema.alias.slice(0,2):[]},hasAlias(){return this.aliasKeys.length===2},minConfig(){return typeof this.schema.minConfig=="object"?{placeholder:"\u6700\u5C0F\u503C",...this.schema.minConfig}:{placeholder:"\u6700\u5C0F\u503C"}},maxConfig(){return typeof this.schema.maxConfig=="object"?{placeholder:"\u6700\u5927\u503C",...this.schema.maxConfig}:{placeholder:"\u6700\u5927\u503C"}},minValue:Q2(0),maxValue:Q2(1),mergedMinListeners(){const g=tc().use("chinese","space","specialSymbol");let c=!1;const o=j0(this.minConfig,{context:this});return{...o,input:u=>{var r;if(!c){const e=g(u,this.minConfig);this.minValue=e}(r=o.input)==null||r.call(o,u)},compositionstart:()=>{var u;c=!0,(u=o.compositionstart)==null||u.call(o)},compositionend:u=>{var e;c=!1;const r=g(u.target.value,this.minConfig);this.minValue=r,(e=o.compositionend)==null||e.call(o,u)},change:u=>{var r;this.handleChange(0),(r=o.change)==null||r.call(o,{value:this.minValue,fullValue:[...this.currentValues]},u)}}},mergedMaxListeners(){const g=tc().use("chinese","space","specialSymbol");let c=!1;const o=j0(this.maxConfig,{context:this});return{...o,input:u=>{var r;if(!c){const e=g(u,this.maxConfig);this.maxValue=e,(r=o.input)==null||r.call(o,u)}},compositionstart:()=>{var u;c=!0,(u=o.compositionstart)==null||u.call(o)},compositionend:u=>{var e;c=!1;const r=g(u.target.value,this.maxConfig);this.maxValue=r,(e=o.compositionend)==null||e.call(o,u)},change:u=>{var r;this.handleChange(1),(r=o.change)==null||r.call(o,{value:this.maxValue,fullValue:[...this.currentValues]},u)}}}},watch:{value:{immediate:!0,handler(g){this.hasAlias||this.syncValues(g)}},model:{deep:!0,handler(){this.hasAlias&&this.syncValues([this.model[this.aliasKeys[0]]||"",this.model[this.aliasKeys[1]]||""])}}},methods:{syncValues([g="",c=""]=[]){const o=typeof g=="string"?g:String(g),u=typeof c=="string"?c:String(c);this.currentValues=[o,u],this.minValue!==o&&(this.minValue=o),this.maxValue!==u&&(this.maxValue=u)},handleChange(g){this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>{const c={value:g===0?this.minValue:this.maxValue,fullValue:[...this.currentValues]};this.$emit("change",{min:this.minValue,max:this.maxValue,fullValue:c.fullValue})},300)}}};function Q2(g){return{get(){return this.hasAlias?this.model[this.aliasKeys[g]]||"":this.currentValues[g]},set(c){var r;let o=c;g===0&&((r=this.minConfig)==null?void 0:r.chineseOnly)&&(o=o.replace(/[^\u4e00-\u9fa5]/g,""));const u=o===null?"":o;u!==this.currentValues[g]&&(this.hasAlias?(this.$delete(this.model,this.fieldName),this.$set(this.model,this.aliasKeys[g],u)):(this.aliasKeys.forEach(e=>this.$delete(this.model,e)),this.$set(this.model,this.fieldName,u)),this.currentValues.splice(g,1,u))}}}var m_=function(){var c=this,o=c._self._c;return o("div",{staticClass:"range-input-wrapper"},[o("el-input",c._g(c._b({staticClass:"range-input__min",attrs:{placeholder:c.minConfig.placeholder||"\u6700\u5C0F\u503C"},scopedSlots:c._u([c.$slots["prepend-min"]?{key:"prepend",fn:function(){return[c._t("prepend-min")]},proxy:!0}:null],null,!0),model:{value:c.minValue,callback:function(u){c.minValue=u},expression:"minValue"}},"el-input",c.minConfig,!1),c.mergedMinListeners)),o("div",{staticClass:"range-input__separator"},[c._v("-")]),o("el-input",c._g(c._b({staticClass:"range-input__max",attrs:{placeholder:c.maxConfig.placeholder||"\u6700\u5927\u503C"},scopedSlots:c._u([c.$slots["prepend-max"]?{key:"prepend",fn:function(){return[c._t("prepend-max")]},proxy:!0}:null],null,!0),model:{value:c.maxValue,callback:function(u){c.maxValue=u},expression:"maxValue"}},"el-input",c.maxConfig,!1),c.mergedMaxListeners))],1)},v_=[],__=Zn(g_,m_,v_,!1,null,null,null,null);const dc=__.exports;dc.install=function(g){g.component(dc.name,dc)};const MF="",F_={name:"YzlRange",props:{value:{type:Array,default:()=>["",""]},schema:{type:Object,default:()=>({alias:[],minConfig:{},maxConfig:{}})},model:{type:Object,default:()=>({})},fieldName:{type:String,default:""}},data(){return{currentValues:["",""]}},computed:{minComponent(){var g;return((g=this.schema.minConfig)==null?void 0:g.component)||"el-input"},maxComponent(){var g;return((g=this.schema.maxConfig)==null?void 0:g.component)||"el-input"},minOptions(){var g;return((g=this.schema.minConfig)==null?void 0:g.options)||[]},maxOptions(){var g;return((g=this.schema.maxConfig)==null?void 0:g.options)||[]},aliasKeys(){return Array.isArray(this.schema.alias)?this.schema.alias.slice(0,2):[]},hasAlias(){return this.aliasKeys.length===2},minConfig(){return{placeholder:"\u6700\u5C0F\u503C",...typeof this.schema.minConfig=="object"?this.schema.minConfig:{}}},maxConfig(){return{placeholder:"\u6700\u5927\u503C",...typeof this.schema.maxConfig=="object"?this.schema.maxConfig:{}}},minValue:q2(0),maxValue:q2(1)},watch:{value:{immediate:!0,handler(g){this.hasAlias||this.syncValues(g)}}},methods:{syncValues([g="",c=""]=[]){const o=typeof g=="string"?g:String(g),u=typeof c=="string"?c:String(c);this.currentValues=[o,u],this.minValue!==o&&(this.minValue=o),this.maxValue!==u&&(this.maxValue=u)},handleChange(g){this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>{const c={min:this.minValue,max:this.maxValue,fullValue:[...this.currentValues]};this.$emit("change",c)},300)}}};function q2(g){return{get(){return this.hasAlias?this.model[this.aliasKeys[g]]||"":this.currentValues[g]},set(c){const o=c===null?"":c;o!==this.currentValues[g]&&(this.hasAlias?(this.$delete(this.model,this.fieldName),this.$set(this.model,this.aliasKeys[g],o)):(this.aliasKeys.forEach(u=>this.$delete(this.model,u)),this.$set(this.model,this.fieldName,o)),this.currentValues.splice(g,1,o))}}}var C_=function(){var c=this,o=c._self._c;return o("div",{staticClass:"range-input-wrapper"},[o(c.minComponent,c._b({tag:"component",staticClass:"range-input__min",attrs:{schema:c.minConfig},on:{input:function(u){return c.handleChange(0)}},scopedSlots:c._u([c.$slots["prepend-min"]?{key:"prepend",fn:function(){return[c._t("prepend-min")]},proxy:!0}:null],null,!0),model:{value:c.minValue,callback:function(u){c.minValue=u},expression:"minValue"}},"component",c.minConfig,!1),[["el-select"].includes(c.maxComponent)?c._l(c.minOptions,function(u,r){return o("el-option",{key:r,attrs:{label:u.label,value:u.value,disabled:u.disabled}})}):c._e()],2),o("div",{staticClass:"range-input__separator"},[c._v("-")]),o(c.maxComponent,c._b({tag:"component",staticClass:"range-input__max",attrs:{schema:c.maxConfig},on:{input:function(u){return c.handleChange(1)}},scopedSlots:c._u([c.$slots["prepend-max"]?{key:"prepend",fn:function(){return[c._t("prepend-max")]},proxy:!0}:null],null,!0),model:{value:c.maxValue,callback:function(u){c.maxValue=u},expression:"maxValue"}},"component",c.maxConfig,!1),[["el-select"].includes(c.maxComponent)?c._l(c.maxOptions,function(u,r){return o("el-option",{key:r,attrs:{label:u.label,value:u.value,disabled:u.disabled,"data-dis":u.disabled}})}):c._e()],2)],1)},E_=[],w_=Zn(F_,C_,E_,!1,null,null,null,null);const xc=w_.exports;xc.install=function(g){g.component(xc.name,xc)};const S_={install(g,c){const o="medium";g.mixin({data(){return{globalSize:this.getSizeFromOptions(c,o)}},created(){},methods:{getSizeFromOptions(u,r){return u&&u.size?u.size:r}}}),g.prototype.$setGlobalSize=function(u){this.$root.globalSize=u},g.prototype.$globalSize=function(){return this.$root.globalSize}}},em=function(g,c={}){[Ql,ql,ec,rc,ac,ic,sc,oc,fc,lc,cc,uc,dc,xc,hc].forEach(o=>{g.use(Wv),g.use(S_,{size:c.globalSize}),g.component(o.name,{extends:o,props:{globalConfig:{type:Object,default:()=>c}}})})};return typeof window<"u"&&window.Vue&&em(window.Vue),{version:"0.0.1",install:em}});
|
|
128
|
+
`,D=E.charCodeAt(0),w=new RegExp((v=="|"?"\\|":v)+"+$"),b="",N=[];x.dense=Array.isArray(f);for(var V=x.skipHidden&&f["!cols"]||[],z=x.skipHidden&&f["!rows"]||[],W=m.s.c;W<=m.e.c;++W)(V[W]||{}).hidden||(N[W]=jr(W));var S=m.s.r,ue=!1;return d._read=function(){if(!ue)return ue=!0,d.push("\uFEFF");for(;S<=m.e.r;)if(++S,!(z[S-1]||{}).hidden&&(b=mm(f,m,S-1,N,_,D,v,x),b!=null)){x.strip&&(b=b.replace(w,"")),d.push(b+E);break}if(S>m.e.r)return d.push(null)},d},n=function(f,h){var d=t(),x=h||{},m=x.header!=null?x.header:Os.BEGIN,v=x.footer!=null?x.footer:Os.END;d.push(m);var _=ai(f["!ref"]);x.dense=Array.isArray(f),d.push(Os._preamble(f,_,x));var E=_.s.r,D=!1;return d._read=function(){if(E>_.e.r)return D||(D=!0,d.push("</table>"+v)),d.push(null);for(;E<=_.e.r;){d.push(Os._row(f,_,E,x)),++E;break}},d},i=function(f,h){var d=t({objectMode:!0});if(f==null||f["!ref"]==null)return d.push(null),d;var x={t:"n",v:0},m=0,v=1,_=[],E=0,D="",w={s:{r:0,c:0},e:{r:0,c:0}},b=h||{},N=b.range!=null?b.range:f["!ref"];switch(b.header===1?m=1:b.header==="A"?m=2:Array.isArray(b.header)&&(m=3),typeof N){case"string":w=kr(N);break;case"number":w=kr(f["!ref"]),w.s.r=N;break;default:w=N}m>0&&(v=0);var V=xn(w.s.r),z=[],W=0,S=Array.isArray(f),ue=w.s.r,Se=0,me=0;for(S&&!f[ue]&&(f[ue]=[]),Se=w.s.c;Se<=w.e.c;++Se)switch(z[Se]=jr(Se),x=S?f[ue][Se]:f[z[Se]+V],m){case 1:_[Se]=Se-w.s.c;break;case 2:_[Se]=z[Se];break;case 3:_[Se]=b.header[Se-w.s.c];break;default:for(x==null&&(x={w:"__EMPTY",t:"s"}),D=E=wn(x,null,b),W=0,me=0;me<_.length;++me)_[me]==D&&(D=E+"_"+ ++W);_[Se]=D}return ue=w.s.r+v,d._read=function(){if(ue>w.e.r)return d.push(null);for(;ue<=w.e.r;){var Ne=pm(f,w,ue,z,m,_,S,b);if(++ue,Ne.isempty===!1||(m===1?b.blankrows!==!1:!!b.blankrows)){d.push(Ne.row);break}}},d};u.stream={to_json:i,to_html:n,to_csv:a}}(),u.parse_xlscfb=d2,u.parse_ods=x2,u.parse_fods=p2,u.write_ods=g2,u.parse_zip=fm,u.read=Ah,u.readFile=cm,u.readFileSync=cm,u.write=Dh,u.writeFile=xm,u.writeFileSync=xm,u.writeFileAsync=mF,u.utils=Fm,u.SSF=ee,u.CFB=_e}o(c)})($s,$s.exports);const BF="",av={name:"yzlTable",components:{TableColumnsManager:tv},mixins:[wm,Sm,kh],props:{data:{type:Array},columns:Array,pageInfo:{type:Object},loadingDelay:{type:Number,default:200},columnDefault:{type:Object},globalConfig:{type:Object},exports:{type:Object,default:()=>({})},model:{type:Object,default:()=>({})},tableId:{type:String,default:""},exportsLocal:{type:Boolean,default:!1},enableDynamicInSetting:{type:Boolean,default:!1},rowKey:{type:[String,Function],default:void 0},showIndex:{type:Boolean,default:!0}},data(){return{localColumns:[],initialColumns:[],serverColumns:[],dynamicColumns:[],columnsReady:!1,tableColumnsVisiable:!1,finallyColumns:[],selection:null,isFullscreen:!1}},watch:{columns:{handler(g){this.initialColumns=this.processColumns([...g]),this.localColumns=this.processColumns([...g])},immediate:!0},tableId:{handler(g,c){if(g!==c)if(g){if(this.loadingLock)return;this.loadingLock=!0,this.serverColumns=[],this.columnsReady=!1,this.fetchServerColumns().finally(()=>this.loadingLock=!1)}else this.columnsReady=!0},immediate:!0}},computed:{comp_columns(){if(!this.columnsReady)return[];let g=this.serverColumns.length>0?this.handleServerColumns([...this.serverColumns]):[...this.localColumns];const c=this.insertDynamicColumns(g);this.finallyColumns=[...c];const o=this.finallyColumns.findIndex(u=>u.type==="selection");return o!==-1&&(this.selection=this.finallyColumns.splice(o,1)[0]||null),this.finallyColumns.length?this.finallyColumns:[]},attrs(){const{"row-class-name":g,...c}=this.$attrs;return Object.assign({},this.globalConfig.table,c)},mergedListeners(){const g={...this.$listeners},c=o=>(...u)=>{var k;o==null||o(...u);const[r,e,A]=u,I=this.finallyColumns.findIndex(M=>M.prop===A.property);if(I>=0){if(I===this.finallyColumns.length-1){this.finallyColumns[I].width="",this.$nextTick(()=>{this.$nextTick(()=>this.doLayout())});return}this.finallyColumns[I].width=r,(k=this.$bus)==null||k.$emit("table-columns-resized",{tableId:this.tableId,columns:this.finallyColumns.filter(M=>!M.isDynamic)})}this.$nextTick(()=>{this.$nextTick(()=>this.doLayout())})};return g["header-dragend"]=c(g["header-dragend"]),g},mergedLocalColumns(){return this.mergedEnableDynamic?[...this.localColumns,...this.dynamicColumns]:this.localColumns},mergedEnableDynamic(){var c;return this.enableDynamicInSetting?this.enableDynamicInSetting:(c=this.globalConfig)==null?void 0:c.enableDynamicInSetting}},created(){this.isFullscreen=!!document.fullscreenElement,document.addEventListener("fullscreenchange",()=>{this.isFullscreen=!!document.fullscreenElement})},mounted(){this.initVirtualScroll()},methods:{getRowKey(g){var o;const c=this.rowKey||((o=this.model)==null?void 0:o.rowKey);return c&&g[c]!==void 0?g[c]:(this.selection&&!c&&(console.warn("[yzlTable] \u5F53\u4F7F\u7528\u884C\u9009\u62E9\u529F\u80FD\u65F6\uFF0C\u5EFA\u8BAE\u914D\u7F6E\u6709\u6548\u7684 rowKey\uFF08\u8BF7\u5728\u8868\u683C\u4E2D\u914D\u7F6E :row-key \u6216 model.rowKey\uFF09"),console.warn("[yzlTable] \u5F53\u524D\u6570\u636E\u884C\u7684\u53EF\u7528\u952E\uFF1A",Object.keys(g))),Symbol("fallbackRowKey"))},handleServerColumns(g){const c=[...this.localColumns];if(!g.some(o=>o.type==="selection")){const o=this.localColumns.find(u=>u.type==="selection");o&&g.unshift({...o})}return g.forEach(o=>{const u=c.find(r=>r.label===o.label);u&&Object.assign(o,{align:u.align||o.align,headerAlign:u.headerAlign||o.headerAlign,label:u.label||o.label,...o.label==="\u64CD\u4F5C"?u:rv.omit(u,["width","minWidth"])})}),g},insertDynamicColumns(g){const c=[...g];return this.mergedEnableDynamic||this.dynamicColumns.forEach(o=>{const u=o.position===-1?c.length:Math.min(o.position,c.length);c.splice(u,0,o)}),c},async fetchServerColumns(){var g,c;if(((c=(g=this.globalConfig)==null?void 0:g.api)==null?void 0:c.getTableColumnAPI)&&this.tableId)try{const o=this.globalConfig.api.getTableColumnAPI.replace(/\{table_id\}/g,this.tableId),u=await this.$http.get(o);if(u.fieldJson){const r=JSON.parse(u.fieldJson);this.serverColumns=r.map(e=>typeof e=="string"?JSON.parse(e):e)}else this.handleColumnsUpdate(this.processColumns([...this.initialColumns]))}catch(o){console.error("\u5217\u914D\u7F6E\u52A0\u8F7D\u5931\u8D25:",o),this.localColumns=this.processColumns([...this.initialColumns])}finally{this.columnsReady=!0}else this.columnsReady=!0},processColumns(g){return g.map(o=>{var r,e;const u={...(r=this.globalConfig)==null?void 0:r.tableColumn,...this.columnDefault,...o,...yh.handleFormatter(o)};if(u.width)u.minWidth=void 0;else if(!u.minWidth){const A=((e=u.label)==null?void 0:e.length)||0;u.minWidth=[90,110,130,150,170][A-4]||90}return u})},openTableHeadDialog(){this.tableColumnsVisiable=!0},handleColumnsUpdate(g){var c;this.serverColumns=[...g],this.columnsReady=!1,this.$nextTick(()=>{this.columnsReady=!0,this.$nextTick(()=>{this.$refs.yzlTable&&(this.$refs.yzlTable.doLayout(),this.$refs.yzlTable.store.scheduleLayout(!0))})});try{(c=this.$bus)==null||c.$emit("table-columns-resized",{tableId:this.tableId,columns:g})}catch(o){console.error("\u4E8B\u4EF6\u89E6\u53D1\u5931\u8D25:",o)}},exportExcel(){const g=$s.exports.utils.book_new(),c=this.data.reduce((A,I)=>{const k={};return this.columns.forEach(M=>{k[M.label]=I[M.prop]}),A.push(k),A},[]),o=$s.exports.utils.json_to_sheet(c);$s.exports.utils.book_append_sheet(g,o,"Sheet1");const u=$s.exports.write(g,{bookType:"xlsx",type:"array"}),r=new Blob([u],{type:"application/octet-stream"}),e=new Date().toLocaleString("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hour12:!1}).replace(/[\/\s:]/g,"").slice(0,12);Pl.exports.saveAs(r,`\u6570\u636E\u7ED3\u679C_${e}${this.tableId?`_${this.tableId}`:""}.xlsx`)},async handleExport(g){if(this.exportsLocal)this.exportExcel();else{const{api:c,tableId:o,fileName:u,onSearch:r,onPages:e,exportParams:A}=this.exports;try{this.startLoading(),await new Am(this,{api:c,fileName:u,onSearch:r,onPages:e}).execute({tableId:o||this.tableId,...A},g)}finally{this.stopLoading()}}},tableRowClassName({row:g,rowIndex:c}){const o=this.$attrs["row-class-name"];return[typeof o=="function"?o({row:g,rowIndex:c}):typeof o=="string"?o:"",c%2===0?"single-row":"double-row"].filter(r=>r).join(" ")},addColumn(g,c=-1){const o=[].concat(g).map(u=>({...u,position:c,isDynamic:!0}));this.dynamicColumns.push(...o),this.$nextTick(()=>this.doLayout())},resetColumns(){this.dynamicColumns=[],this.$nextTick(()=>{this.$nextTick(()=>{this.$refs.yzlTable?this.doLayout():(console.warn("\u8868\u683C\u5B9E\u4F8B\u672A\u5C31\u7EEA\uFF0C\u5EF6\u8FDF\u91CD\u8BD5\u5E03\u5C40"),setTimeout(()=>{var g,c;return(c=(g=this.$refs.yzlTable)==null?void 0:g.doLayout)==null?void 0:c.call(g)},100))})})},toggleRowSelection(){this.$refs.yzlTable.toggleRowSelection.apply(this,Array.from(arguments))},clearSelection(){var g,c;(c=(g=this.$refs.yzlTable)==null?void 0:g.clearSelection)==null||c.apply(this,Array.from(arguments))},setCurrentRow(g){this.$refs.yzlTable.setCurrentRow.apply(this,[g])},toggleAllSelection(){var g;(g=this.$refs.yzlTable)==null||g.toggleAllSelection()},doLayout(){this.$refs.yzlTable.doLayout()}}};var iv=function(){var c=this,o=c._self._c;return o("div",{ref:"tableContainer",staticClass:"yzl-table-wrapper"},[c.columnsReady?o("el-table",c._g(c._b({directives:[{name:"loading",rawName:"v-loading",value:c.mergedLoading,expression:"mergedLoading"}],ref:"yzlTable",attrs:{"data-table-id":c.tableId,height:"100%","row-key":c.getRowKey,"header-row-class-name":"yzl-table-header",data:c.enableDeferRender?c.renderedData:c.tableData,pageInfo:c.pageInfo,"element-loading-delay":c.loadingDelay,"row-class-name":c.tableRowClassName},scopedSlots:c._u([{key:"append",fn:function(){return[c._t("append")]},proxy:!0}],null,!0)},"el-table",c.attrs,!1),c.mergedListeners),[c.selection?o("el-table-column",c._b({attrs:{type:"selection",width:c.selection.width||55}},"el-table-column",c.selection,!1)):c._e(),c.showIndex?o("el-table-column",{attrs:{type:"index",label:"\u5E8F\u53F7",width:"50",align:"center"},scopedSlots:c._u([{key:"header",fn:function(u){var r,e,A,I;return[c.tableId||((r=c.exports)==null?void 0:r.api)||c.exportsLocal?o("el-dropdown",{directives:[{name:"show",rawName:"v-show",value:!c.isFullscreen,expression:"!isFullscreen"}],staticStyle:{cursor:"pointer"},attrs:{placement:"bottom"}},[o("span",{staticClass:"el-dropdown-link"},[o("i",{staticClass:"el-icon-s-tools"})]),o("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[((e=c.exports)==null?void 0:e.api)||c.exportsLocal?o("el-dropdown-item",{nativeOn:{click:function(k){return c.handleExport.apply(null,arguments)}}},[c._v("\u6570\u636E\u5BFC\u51FA")]):c._e(),c.tableId?o("el-dropdown-item",{nativeOn:{click:function(k){return c.openTableHeadDialog.apply(null,arguments)}}},[c._v("\u8868\u5934\u8BBE\u7F6E")]):c._e()],1)],1):c._e(),c.tableId||((A=c.exports)==null?void 0:A.api)||c.exportsLocal?o("el-dropdown",{directives:[{name:"show",rawName:"v-show",value:c.isFullscreen,expression:"isFullscreen"}],staticStyle:{cursor:"pointer"},attrs:{placement:"bottom"}},[o("span",{staticClass:"el-dropdown-link"},[o("i",{staticClass:"el-icon-s-tools"})]),o("el-dropdown-menu",{staticStyle:{"font-weight":"normal"},attrs:{slot:"dropdown","append-to-body":!1},slot:"dropdown"},[((I=c.exports)==null?void 0:I.api)||c.exportsLocal?o("el-dropdown-item",{nativeOn:{click:function(k){return c.handleExport.apply(null,arguments)}}},[c._v("\u6570\u636E\u5BFC\u51FA")]):c._e(),c.tableId?o("el-dropdown-item",{nativeOn:{click:function(k){return c.openTableHeadDialog.apply(null,arguments)}}},[c._v("\u8868\u5934\u8BBE\u7F6E")]):c._e()],1)],1):o("span",{staticClass:"el-dropdown-link"},[o("i",{staticClass:"el-icon-s-tools"})])]}},{key:"default",fn:function(u){return[c._v(" "+c._s(c.pageInfo?(c.pageInfo.page-1)*c.pageInfo.size+u.$index+1:u.$index+1)+" ")]}}],null,!1,2846307281)}):c._e(),c._l(c.comp_columns,function(u,r){return o("el-table-column",c._b({key:u.prop||u.key||r,attrs:{prop:u.prop||u.key},scopedSlots:c._u([u.slotName?{key:"default",fn:function(e){return[c._t(u.slotName,null,{row:e.row,index:e.$index,column:u})]}}:null],null,!0)},"el-table-column",u,!1),[u.children?c._l(u.children,function(e,A){return o("el-table-column",c._b({key:e.prop||e.key||A,attrs:{prop:e.prop||e.key},scopedSlots:c._u([e.slotName?{key:"default",fn:function(I){return[c._t(e.slotName,null,{row:I.row,index:I.$index,column:e})]}}:null],null,!0)},"el-table-column",e,!1))}):c._e()],2)})],2):c._e(),o("TableColumnsManager",{attrs:{visible:c.tableColumnsVisiable,"table-id":c.tableId,serverColumns:c.serverColumns,localColumns:c.mergedLocalColumns},on:{"update:visible":function(u){c.tableColumnsVisiable=u},"columns-updated":c.handleColumnsUpdate}})],1)},sv=[],ov=Zn(av,iv,sv,!1,null,null,null,null);const Ql=ov.exports;Ql.install=function(g){g.component(Ql.name,Ql)};const bF="",fv={name:"yzlPagination",props:{pageInfo:{type:Object,default:()=>({total:0,size:50,page:1,hasMore:!1})},pageSizes:{type:Array,default:()=>[10,20,30,50,100,200,500,1e3]},layout:{type:String,default:"sizes, prev, pager, next, jumper"},align:{type:String,default:"right"},globalConfig:{type:Object},paginationTotalCount:{type:Number,default:null}},computed:{computedLayout(){return this.paginationTotalCount?this.layout.replace("total,",""):this.layout}},methods:{handleSizeChange(g){this.pageInfo.page=1,this.pageInfo.size=g,this.$emit("updateTable",g)},handleCurrentChange(g){this.pageInfo.page=g,this.$emit("updateTable",g)}}};var lv=function(){var c=this,o=c._self._c;return o("div",{class:["yzl-pagination-wrapper",c.align]},[o("el-pagination",c._b({attrs:{"current-page":c.pageInfo.page,"page-sizes":c.pageSizes,"page-size":c.pageInfo.size,layout:c.computedLayout,total:c.pageInfo.total},on:{"size-change":c.handleSizeChange,"current-change":c.handleCurrentChange,"update:currentPage":function(u){return c.$set(c.pageInfo,"page",u)},"update:current-page":function(u){return c.$set(c.pageInfo,"page",u)},"update:pageSize":function(u){return c.$set(c.pageInfo,"size",u)},"update:page-size":function(u){return c.$set(c.pageInfo,"size",u)}}},"el-pagination",c.$attrs,!1)),c.paginationTotalCount?o("div",{staticClass:"el-pagination is-background"},[o("div",{staticClass:"el-pagination__total",staticStyle:{"line-height":"28px"}},[c._v("\u5171 "+c._s(c.pageInfo.total||0)+" \u6761\uFF0C\u9009\u4E2D "+c._s(c.paginationTotalCount)+" \u6761")])]):c._e()],1)},cv=[],uv=Zn(fv,lv,cv,!1,null,null,null,null);const ql=uv.exports;ql.install=function(g){g.component(ql.name,ql)};const yF="",hv={name:"yzlForm",props:{schema:{type:[Object,Array],required:!0},value:{required:!0},rules:{type:Object},searchMore:{type:Boolean,default:!1},globalConfig:{type:Object}},computed:{inValue:{get(){return this.value},set(g){this.$emit("input",g)}},normalizedSchema(){const g=(o,u)=>{var e,A;const r={clearable:(A=(e=this.globalConfig)==null?void 0:e.tableColumn)==null?void 0:A.clearable,...typeof o=="object"?o:{},key:(o==null?void 0:o.key)||u};if(!r.placeholder){const I=r.component;/^el-input$/.test(I)?r.placeholder=`\u8BF7\u8F93\u5165${r.label}`:/^(el|yzl|guode)-?(select|DatePicker|date(-picker)?|time(-picker)?)/.test(I)&&(r.placeholder=`\u8BF7\u9009\u62E9${r.label}`)}return r};return Array.isArray(this.schema)?this.schema.map(o=>g(o,o.key)):Object.entries(this.schema).map(([o,u])=>g(u,o))},mergeRules(){return Array.isArray(this.schema)?{...this.schema.reduce((c,o)=>(o.rules&&(c[o.key]=o.rules),c),{}),...this.rules}:{...this.schema.rules,...this.rules}}},data(){return{isInDialog:!1}},mounted(){this.isInDialog=this.checkAncestorWithClass(this.$refs.yzlForm.$el,"el-dialog")},methods:{validate(g){return this.$refs.yzlForm.validate(g)},clearValidate(){return this.$refs.yzlForm.clearValidate()},resetFields(){return this.$refs.yzlForm.resetFields()},checkAncestorWithClass(g,c){if(g.classList&&g.classList.contains(c))return!0;let o=g.parentElement;for(;o;){if(o.classList&&o.classList.contains(c))return!0;o=o.parentElement}return!1}}};var dv=function(){var c=this,o=c._self._c;return o("div",{staticClass:"yzl-form-wrapper"},[o("el-row",{staticClass:"yzl-form-grid"},[o("el-form",c._g(c._b({ref:"yzlForm",attrs:{model:c.inValue,rules:c.mergeRules}},"el-form",c.$attrs,!1),c.$listeners),[c._l(c.normalizedSchema,function(u,r){return[u&&(c.searchMore||(typeof(u==null?void 0:u.hidden)=="function"?!(u!=null&&u.hidden()):!(u!=null&&u.hidden)))?o("yzlFormItem",{key:u==null?void 0:u.key,attrs:{"data-k":u==null?void 0:u.key,model:c.inValue,schema:u,isInDialog:c.isInDialog,name:u==null?void 0:u.key},on:{"update:model":function(e){c.inValue=e}},scopedSlots:c._u([u!=null&&u.hasOwnProperty("slotName")?{key:u.slotName,fn:function(e){return[c._t(u.slotName,null,null,e)]}}:null,c._l(c.$scopedSlots,function(e,A){return{key:A,fn:function(I){return[c._t(A,null,null,I)]}}})],null,!0),model:{value:c.inValue[u==null?void 0:u.key],callback:function(e){c.$set(c.inValue,u==null?void 0:u.key,e)},expression:"inValue[item?.key]"}}):c._e()]})],2)],1)],1)},xv=[],pv=Zn(hv,dv,xv,!1,null,null,null,null);const ec=pv.exports;ec.install=function(g){g.component(ec.name,ec)};const Zh=(g,c)=>(...o)=>{g(...o,c)},gv=(g,c)=>Object.entries(g).reduce((o,[u,r])=>(typeof r=="function"&&(o[u]=Zh(r,c)),o),{}),mv=(g,c)=>g.reduce((o,u)=>(u.handler&&typeof u.handler=="function"?o[u.name]=Zh(u.handler,c):u.eventName&&typeof u.event=="function"&&(o[u.eventName]=Zh(u.event,c)),o),{});function j0(g,c={}){return g!=null&&g.events?typeof g.events=="object"&&!Array.isArray(g.events)?gv(g.events,c):mv(g.events,c):{}}const tc=(g={})=>{const c=[],o={chinese:{condition:e=>"chineseOnly"in e?e.chineseOnly:!1,handler:e=>e.replace(/[^\u4e00-\u9fa5\s]/g,"")},space:{condition:e=>"noSpace"in e?e.noSpace:!0,handler:e=>e.replace(/\s/g,"")},specialSymbol:{condition:e=>"noSpecialSymbol"in e?e.noSpecialSymbol:!1,handler:e=>e.replace(/[^a-zA-Z0-9]/g,"")}},u=(...e)=>(e.forEach(A=>{o[A]&&c.push(o[A])}),r),r=(e,A)=>c.reduce((I,{condition:k,handler:M})=>k(A)?M(I):I,String(e));return r.extend=(e,A)=>(o[e]=A,r),{use:u,processor:r}},vv={name:"yzlDynamicFormItem",props:{schema:{type:Object,required:!0},name:{type:String,required:!0},value:{required:!0},model:{type:Object}},computed:{inValue:{get(){return this.value},set(g){this.$emit("input",g)}},componentName(){return this.schema.component},formItemAttrs(){const{label:g,required:c,rules:o,labelWidth:u}=this.schema;return{label:g,required:c,rules:o,labelWidth:u}},componentsAttrs(){const{label:g,col:c,rules:o,component:u,...r}=this.schema;return r},mergedListeners(){const g={...this.$listeners,...j0(this.schema,{content:this})};if(this.componentName==="el-input"){const c=g.input;let o=!1;const u=tc().use("chinese","space","specialSymbol");this.schema.hasOwnProperty("noSpace")&&typeof this.schema.noSpace!="boolean"&&console.error("[yzlDynamicFormItem] noSpace \u53EA\u652F\u6301 boolean \u7C7B\u578B\uFF0C\u5F53\u524D\u503C\uFF1A",this.schema.noSpace);const r=e=>{var A;if(!o){let I=u(e,this.schema);if((A=this.schema.events)!=null&&A.input){const k=this.schema.events.input(I,{content:this});I=k!==void 0?k:I}c==null||c(I),this.$emit("input",I)}};g.input=r,g.compositionstart=()=>o=!0,g.compositionend=e=>{o=!1;const A=u(e.target.value,this.schema);r(A)}}return g},mergedStyle(){const g={width:this.schema.width||"100%"};if(typeof this.schema.style=="string"){const c=this.schema.style.split(";").reduce((o,u)=>{const[r,e]=u.split(":").map(A=>A.trim());return r&&e&&(o[r]=e),o},{});return{...g,...c}}return{...g,...this.schema.style}}}};var _v=function(){var c=this,o=c._self._c;return o("el-form-item",c._b({attrs:{prop:c.name}},"el-form-item",c.formItemAttrs,!1),[c.componentName?o(c.componentName,c._g(c._b({ref:c.name,tag:"component",style:c.mergedStyle,attrs:{model:c.model,name:c.name,schema:c.schema},on:{"update:model":function(u){c.model=u}},scopedSlots:c._u([c.schema.slotName?{key:c.schema.slotName,fn:function(u){return[c._t(c.schema.slotName,null,null,{...u,item:c.schema,data:c.inValue,fmRef:c.$refs[`${c.name}Ref`]})]}}:null,c._l(c.$scopedSlots,function(u,r){return{key:r,fn:function(e){return[c._t(r,null,null,e)]}}})],null,!0),model:{value:c.inValue,callback:function(u){c.inValue=u},expression:"inValue"}},"component",c.componentsAttrs,!1),c.mergedListeners)):c._t(c.schema.slotName,null,{item:c.schema,data:c.inValue,fmRef:c.$refs[`${c.name}Ref`]})],2)},Fv=[],Cv=Zn(vv,_v,Fv,!1,null,null,null,null);const Ev={name:"yzlFormItem",components:{YzlDynamicFormItem:Cv.exports},props:{value:{required:!0},model:{type:Object},schema:{type:Object,required:!0},name:String,globalConfig:{type:Object},isInDialog:{type:Boolean}},computed:{inValue:{get(){return this.value},set(g){this.$emit("input",g)}},col(){var c;let g;if(this.schema.hasOwnProperty("col")&&JSON.stringify(this.schema.col)!=="{}")g=Object.assign({},this.schema.col);else if(this.schema.hasOwnProperty("span"))g=Object.assign({},{span:this.schema.span});else{const o=(((c=this.globalConfig)==null?void 0:c.searchForm)||{})[this.isInDialog?"dialogCol":"col"]||{};g=Object.assign({},o)}return g},colComponent(){var o,u;const g=this.schema.hasOwnProperty("col")||this.schema.hasOwnProperty("span"),c=!!((u=(o=this.globalConfig)==null?void 0:o.searchForm)!=null&&u[this.isInDialog?"dialogCol":"col"]);return g||c?"el-col":"div"},shouldShow(){var g;return typeof((g=this.schema)==null?void 0:g.visible)=="function"?this.schema.visible(this.model,this.schema):!0}}};var wv=function(){var c=this,o=c._self._c;return c.shouldShow?o(c.colComponent,c._b({tag:"component"},"component",c.col,!1),[o("yzlDynamicFormItem",c._g(c._b({attrs:{model:c.model,schema:c.schema,name:c.name},on:{"update:model":function(u){c.model=u}},scopedSlots:c._u([c.schema.hasOwnProperty("slotName")?{key:c.schema.slotName,fn:function(u){return[c._t(c.schema.slotName,null,{vBind:u})]}}:null,c._l(c.$scopedSlots,function(u,r){return{key:r,fn:function(e){return[c._t(r,null,null,e)]}}})],null,!0),model:{value:c.inValue,callback:function(u){c.inValue=u},expression:"inValue"}},"yzlDynamicFormItem",c.$attrs,!1),c.$listeners))],1):c._e()},Sv=[],Av=Zn(Ev,wv,Sv,!1,null,null,null,null);const rc=Av.exports;rc.install=function(g){g.component(rc.name,rc)};class zs{static register(c,o){this.strategies.set(c,o)}static create(c,o,u){return(this.strategies.get(c)||this.strategies.get("default")).create(o,u)}}Cm(zs,"strategies",new Map),zs.register("default",{create:(g,{form:c,excludeKeys:o})=>{const r=["el-select","yzlRangeInput","yzlRange","yzlDatePicker"].includes(g==null?void 0:g.component)?[]:"";if(o.has(g.key))return r;g.key in c||(c[g.key]=r)}}),zs.register("yzlCompositeSelect",{create:(g,{form:c,excludeKeys:o})=>{const u=Object.keys(g.children||{});if(u.length===0)return"";const r=g.key;return c[r]||(c[r]=u[0]),u.forEach(e=>{const A=g.children[e];A.key=e,A!=null&&A.alias?A.alias.forEach(I=>{I in c||(c[I]="")}):(A==null?void 0:A.component)&&!o.has(e)&&zs.create(A.component,A,{form:c,excludeKeys:o,parentKey:r})}),c[r]}}),zs.register("yzlRangeInput",{create:()=>[]});function nc(g,c={},o={deep:!1}){const u={...c},r=new Set(o.exclude||[]);return Object.entries(g).forEach(([e,A])=>{r.has(e)||zs.create(A.component,{...A,key:e},{form:u,excludeKeys:r})}),u}const Dv={name:"yzlPagelist",mixins:[kh],props:{data:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})},searchs:{type:Object,default:null},columns:{type:Array,default:null},exports:{type:Object,default:null},isPagination:{type:Boolean,default:!0},hideSearch:{type:Boolean,default:!1},hideSearchButton:{type:Boolean,default:!1},hideSearchReset:{type:Boolean,default:!1},hideSearchMore:{type:Boolean,default:!1},autoReloadOnReset:{type:Boolean,default:void 0},globalConfig:{type:Object},api:{type:Function},enableVirtualScroll:{type:Boolean,default:!1},enableEnterSearch:{type:Boolean,default:!0},tableId:{type:String,default:void 0},exportsLocal:{type:Boolean,default:!1},enableDynamicInSetting:{type:Boolean,default:!1},paginationTotalCount:{type:Number,default:null},rowKey:{type:[String,Function],default:void 0},showIndex:{type:Boolean,default:!0}},data(){return{searchMore:!1}},computed:{hasSearchForm(){return Object.keys(this.mergedSearchs).length>0},mergedSearchs(){return this.searchs||this.config.searchs||{}},mergedExports(){return this.exports||this.config.exports||{}},mergedColumns(){return this.columns||this.config.columns||[]},mergedAutoReload(){var c,o;return typeof this.autoReloadOnReset<"u"?this.autoReloadOnReset:(o=(c=this.globalConfig)==null?void 0:c.autoReloadOnReset)!=null?o:!1},localData(){const g=this.data||{},{pageInfo:c,data:o,...u}=this.data;if(this.mergedSearchs){const r=nc(this.mergedSearchs,u,{exclude:["_slotSearchButtons"]});Object.keys(r).forEach(e=>{e in g||this.$set(g,e,r[e])})}return this.data.pageInfo||this.$set(this.data,"pageInfo",JSON.parse(JSON.stringify(this.globalConfig.pageInfo||{page:1,size:50}))),g},searchSlots(){const g=this.mergedSearchs||{};return Object.keys(g).reduce((c,o)=>(g[o].slotName&&(c[o]=g[o]),c),{})},isHideSearchMore(){return!(Object.keys(this.mergedSearchs).findIndex(c=>{const o=this.mergedSearchs[c].hidden;return typeof o=="function"?o():o})>=0)},paginationAttrs(){var r,e;const{paginationLayout:g,paginationSmall:c,pageInfo:o}=this.$attrs,u={...this.globalConfig.pagination};return u.layout=g||((e=(r=this.globalConfig)==null?void 0:r.pagination)==null?void 0:e.layout),c&&(u.small=c),u},handleReset(){this.$emit("reset")},computedLabelWidth(){if(this.$attrs.labelWidth)return this.$attrs.labelWidth;const g=Object.values(this.mergedSearchs);return g.length===0?"auto":Math.max(...g.map(o=>(o.label||"").replace(/[^\\u4e00-\\u9fa5]/g,"").length))>6?"104px":"auto"}},mounted(){var g;!this.mergedSearchs||this.api&&!((g=this.localData.data)!=null&&g.length)&&this.loadTableData()},created(){!this.hideSearchButton&&this.hasSearchForm&&(this.mergedSearchs._slotSearchButtons={slotName:"searchButtons"}),this.resetForm=nc(this.mergedSearchs,this.data,{exclude:["_slotSearchButtons"]})},methods:{handleSubmit(g){if(this.enableEnterSearch)this.reloadTableData();else return console.log("\u975E\u56DE\u8F66\u641C\u7D22"),!1},async loadTableData(g=null){let c;if(this.api)try{this.startLoading(),await this.$nextTick(),c=await this.api(this.localData)}finally{this.$nextTick(()=>this.stopLoading()),this.$refs.inpRef.doLayout()}this.$emit("search",c,this.localData,g)},handleSearchReset(){Object.entries(this.resetForm).forEach(([g,c])=>{g!=="data"&&(this.localData[g]=c)}),this.$emit("reset",this.localData),this.mergedAutoReload&&!this.$listeners.reset&&this.reloadTableData()},reloadTableData(){this.data.pageInfo&&(this.data.pageInfo.page=1),this.loadTableData()},handleSearchMoreClick(){this.searchMore=!this.searchMore,this.searchMore&&this._setSearchHeight()},addColumn(...g){var c;(c=this.$refs.inpRef)==null||c.addColumn(...g)},resetColumns(...g){var c;(c=this.$refs.inpRef)==null||c.resetColumns(...g)},toggleRowSelection(g,c){var o;(o=this.$refs.inpRef)==null||o.toggleRowSelection(g,c)},clearSelection(){var g;(g=this.$refs.inpRef)==null||g.clearSelection()},toggleAllSelection(){var g;(g=this.$refs.inpRef)==null||g.toggleAllSelection()},setCurrentRow(g){var c;(c=this.$refs.inpRef)==null||c.setCurrentRow(g)},_setSearchHeight(){this.$nextTick(()=>{const g=this.$refs.PageListRef.$el.scrollHeight;this.$refs.PageListRef.$el.style.setProperty("--row-height",`${g}px`)})}}};var Bv=function(){var u,r;var c=this,o=c._self._c;return o("div",{staticClass:"yzl-pagelist-wrapper"},[!c.hideSearch&&c.hasSearchForm?o("yzlForm",{ref:"PageListRef",staticClass:"yzl-search-wrapper",class:{"search-more":c.searchMore},attrs:{"label-width":c.computedLabelWidth,schema:c.mergedSearchs,searchMore:c.searchMore,value:c.localData,size:c.$attrs.size||((r=(u=c.globalConfig)==null?void 0:u.global)==null?void 0:r.size)||"mini","v-bind":c.$attrs,enableEnterSearch:c.enableEnterSearch},nativeOn:{submit:function(e){return e.preventDefault(),c.handleSubmit.apply(null,arguments)}},scopedSlots:c._u([c._l(c.searchSlots,function(e,A){return{key:e.slotName,fn:function(I){return[o("div",{key:A,staticStyle:{display:"flex","align-items":"center",width:"100%"}},[c._t(e.slotName,null,{row:I.row,searchItem:e,index:A})],2)]}}}),{key:"searchButtons",fn:function(){return[c.hideSearchButton?c._e():o("el-button",{staticClass:"search-button",attrs:{icon:"el-icon-search",type:"primary","native-type":c.enableEnterSearch?"submit":"button",loading:c.mergedLoading},on:{click:function(e){c.enableEnterSearch||c.reloadTableData()}}},[c._v("\u67E5\u8BE2")]),c.hideSearchReset?c._e():o("el-button",{staticClass:"search-button",on:{click:c.handleSearchReset}},[c._v("\u91CD\u7F6E")]),c._t("searchExpandButton"),!c.isHideSearchMore&&!c.hideSearchMore?o("el-link",{staticClass:"search-more",attrs:{type:"primary",underline:!1},on:{click:c.handleSearchMoreClick}},[c._v(c._s(c.searchMore?"\u6536\u8D77":"\u5C55\u5F00")),o("i",{class:["el-icon-view","el-icon-arrow-up",{isUp:!c.searchMore}]})]):c._e()]},proxy:!0}],null,!0)}):c._e(),c.$slots.tableTop&&c.$slots.tableTop.length>0?o("div",{staticClass:"buttons-box"},[c._t("tableTop")],2):c._e(),c._t("noTable",function(){return[o("yzlTable",c._g(c._b({ref:"inpRef",staticClass:"flex-auto-full",attrs:{data:c.data.data,pageInfo:c.data.pageInfo,columns:c.mergedColumns,exports:c.mergedExports,loading:c.mergedLoading,useLoading:c.useLoading,model:c.localData,enableVirtualScroll:c.enableVirtualScroll,tableId:c.tableId||c.config.tableId||"",exportsLocal:c.exportsLocal,enableDynamicInSetting:c.enableDynamicInSetting,rowKey:c.rowKey,showIndex:c.showIndex},on:{"update:loading":e=>c.isLoading=e,search:c.loadTableData},scopedSlots:c._u([c._l(c.$scopedSlots,function(e,A){return{key:A,fn:function(I){return[c._t(A,null,null,I)]}}}),{key:"append",fn:function(){return[c._t("append")]},proxy:!0}],null,!0)},"yzlTable",c.$attrs,!1),c.$listeners))]}),c.isPagination?o("yzlPagination",c._g(c._b({staticClass:"pagination-style",attrs:{background:"",pageInfo:c.data.pageInfo,paginationTotalCount:c.paginationTotalCount},on:{updateTable:function(e){return c.loadTableData(!0)}}},"yzlPagination",c.paginationAttrs,!1),c.$listeners)):c._e()],2)},bv=[],yv=Zn(Dv,Bv,bv,!1,null,null,null,null);const ac=yv.exports;ac.install=function(g){g.component(ac.name,ac)};const TF="",kv={name:"yzlTree",props:{treeProps:{type:Object},hideSearchSwitch:{type:Boolean,default:!1},title:{type:String,default:""},flexible:{type:Boolean,default:!1},filterable:{type:Boolean,default:!1},globalConfig:{type:Object},isEdit:{type:Boolean,default:!0},placeholder:{type:String,default:"\u8BF7\u8F93\u5165"},hideSearchInput:{type:Boolean,default:!1},showIcon:{type:Boolean,default:!1},nodeIcons:{type:Object,default:()=>({1:{type:"icon",expand:"el-icon-folder-opened",collapse:"el-icon-takeaway-box"},2:{type:"icon",expand:"el-icon-folder-opened",collapse:"el-icon-folder"},3:{type:"img",expand:"/images/expanded.png",collapse:"/images/collapsed.png"}})},hideExpandButton:{type:Boolean,default:!0}},data(){return{isExpand:!0,filterText:""}},computed:{isEditLocal:{get(){return this.isEdit},set(g){this.$emit("update:isEdit",g)}}},watch:{filterText(g){this.$refs.yzlTree.filter(g)}},methods:{handleNodeClick(g,c,o){this.resetParentNodesStyle(),this.setParentsStyle(o.$el)},setParentsStyle(g){let c=g.parentNode.parentNode;g.parentNode.classList.contains("el-tree")||c&&(c.firstChild.classList.add("highlight-parent"),this.setParentsStyle(c))},resetParentNodesStyle(){this.$refs.yzlTree.$el.querySelectorAll(".highlight-parent").forEach(c=>{c.classList.remove("highlight-parent")})},handleChangeExpand(){this.isExpand=!this.isExpand},handleItemClick(g,c,o){this.$emit("operate-click",g,c,o)},setCheckedKeys(g){this.$refs.yzlTree.setCheckedKeys(g)},setChecked(g,c,o){this.$refs.yzlTree.setChecked(g,c,o)}}};var Tv=function(){var c=this,o=c._self._c;return o("div",{staticClass:"yzl-tree-wrapper"},[o("div",{directives:[{name:"show",rawName:"v-show",value:c.isExpand,expression:"isExpand"}],staticClass:"content"},[c.title||!c.hideSearchSwitch?o("div",{staticClass:"buttons"},[o("span",{staticClass:"name"},[c._v(c._s(c.title))]),c.hideSearchSwitch?c._e():o("el-switch",{staticClass:"edit",attrs:{size:c.$attrs.size||c.globalConfig.global.size||"mini"},model:{value:c.isEditLocal,callback:function(u){c.isEditLocal=u},expression:"isEditLocal"}})],1):c._e(),c._t("search-top"),c.hideSearchInput?c._e():o("div",{staticClass:"search"},[o("el-input",{staticClass:"search-input",attrs:{placeholder:c.placeholder,"suffix-icon":"el-icon-search",size:c.$attrs.size||c.globalConfig.global.size||"mini"},model:{value:c.filterText,callback:function(u){c.filterText=u},expression:"filterText"}})],1),o("el-tree",c._g(c._b({ref:"yzlTree",attrs:{"highlight-current":"",indent:8},on:{"node-click":c.handleNodeClick},scopedSlots:c._u([{key:"default",fn:function({node:u,data:r}){return o("span",{staticClass:"custom-tree-node"},[c._t("treeItem",function(){return[o("span",{staticClass:"left-align ellipsis"},[c.showIcon?[u.isCurrent&&c.nodeIcons[u.level].selected?[c.nodeIcons[u.level].type==="icon"?o("i",{class:c.nodeIcons[u.level].selected}):o("img",{staticClass:"icon-img",attrs:{src:c.nodeIcons[u.level].selected}})]:[c.nodeIcons[u.level].type==="icon"?o("i",{class:u.expanded?c.nodeIcons[u.level].expand:c.nodeIcons[u.level].collapse}):o("img",{staticClass:"icon-img",attrs:{src:u.expanded?c.nodeIcons[u.level].expand:c.nodeIcons[u.level].collapse}})]]:c._e(),c._v(" "+c._s(u.label)+" ")],2)]},null,{node:u,data:r})],2)}}],null,!0)},"el-tree",c.$attrs,!1),c.$listeners))],2),c.hideExpandButton?c._e():o("div",{class:["onoff",{"is-expand":!c.isExpand}],on:{click:function(u){return c.handleChangeExpand()}}},[o("i",{class:["el-icon-d-arrow-left",{"is-expand":!c.isExpand}]})])])},Iv=[],Rv=Zn(kv,Tv,Iv,!1,null,"62a0c54e",null,null);const ic=Rv.exports;ic.install=function(g){g.component(ic.name,ic)};const IF="",Jh={name:"guodeDialog",props:{width:{type:String,default:"500px"},height:{type:[Number,String],default:null},maxHeight:{type:[Number,String],default:.8},title:String,confirmText:String,draggable:Boolean,appendToBody:{type:Boolean,default:!0},modalAppendToBody:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!1},customFooter:{type:Boolean,default:!1},isCancelBtn:{type:Boolean,default:!0},isConfirmBtn:{type:Boolean,default:!0},customClass:{type:String,default:""},dialogTemplate:{type:[Object,Function],required:!0},events:{type:Object,default:()=>({})},onConfirm:{type:Function,default:()=>{}},onCancel:{type:Function,default:()=>{}}},data(){return{visible:!0,viewportHeight:window.innerHeight,confirmLoading:!1}},computed:{inVisible:{get(){return this.visible},set(g){this.$emit("update:visible",g)}},normalizedHeight(){return this.height?typeof this.height=="number"?this.height<1?`${this.height*this.viewportHeight}px`:`${this.height}px`:String(this.height).includes("%")?`${parseFloat(this.height)/100*this.viewportHeight}px`:this.height:null},normalizedMaxHeight(){return typeof this.maxHeight=="number"?this.maxHeight<1?`${this.maxHeight*this.viewportHeight}px`:`${this.maxHeight}px`:String(this.maxHeight).includes("%")?`${parseFloat(this.maxHeight)/100*this.viewportHeight}px`:this.maxHeight},normalizedWidth(){return typeof this.width=="number"?this.width<1?`${this.width*100}%`:`${this.width}px`:String(this.width).match(/(px|%)$/)?this.width:`${this.width}px`}},mounted(){if(!this.appendToBody){const g=document.fullscreenElement;g&&(console.log(this.$refs.dialogEl.$el),this.$nextTick(()=>{const{previousElementSibling:c}=this.$refs.dialogEl.$el;!this.modalAppendToBody&&c.classList.contains("v-modal")&&g.appendChild(c),g.appendChild(this.$refs.dialogEl.$el)}))}},methods:{close(){this.visible=!1,this.confirmLoading=!1,this.$nextTick(()=>{this.$destroy()})},handleCancel(){this.$emit("close"),this.close(),this.onCancel({el:this.$refs.dialogInComponent,close:this.close})},setLoading(g){this.confirmLoading=g},handleConfirm:af.exports.debounce(async function(){try{this.confirmLoading=!0,await this.onConfirm({el:this.$refs.dialogInComponent,close:this.close,setLoading:this.setLoading})}catch(g){console.error("Confirm error:",g)}},500,{leading:!0,trailing:!1})}},Z2=()=>{Ha.useCssVars((g,c)=>({"71fab338":g.normalizedHeight,"379c0d4e":g.normalizedMaxHeight}))},J2=Jh.setup;Jh.setup=J2?(g,c)=>(Z2(),J2(g,c)):Z2;const Ov=Jh;var Pv=function(){var c=this,o=c._self._c;return o("el-dialog",c._g(c._b({directives:[{name:"dialogDrag",rawName:"v-dialogDrag",value:c.draggable,expression:"draggable"}],ref:"dialogEl",attrs:{title:c.title,visible:c.visible,"append-to-body":c.appendToBody,"modal-append-to-body":c.modalAppendToBody,"close-on-press-escape":c.closeOnPressEscape,"close-on-click-modal":c.closeOnClickModal,width:c.normalizedWidth,"custom-class":c.customClass},on:{"update:visible":function(u){c.visible=u},close:c.handleCancel}},"el-dialog",c.$attrs,!1),c.$listeners),[o(c.dialogTemplate,c._g(c._b({ref:"dialogInComponent",tag:"component",on:{close:c.close}},"component",c.$attrs,!1),c.events)),o("div",{attrs:{slot:"footer"},slot:"footer"},[c.customFooter?c._e():[c.isConfirmBtn?o("el-button",{attrs:{size:"small",type:"primary",loading:c.confirmLoading},on:{click:c.handleConfirm}},[c._v(c._s(c.confirmText||"\u4FDD \u5B58"))]):c._e(),c.isCancelBtn?o("el-button",{attrs:{size:"small"},on:{click:()=>{this.visible=!1}}},[c._v("\u53D6 \u6D88")]):c._e()],c.customFooter?c._t("footer"):c._e()],2)],1)},Nv=[],Lv=Zn(Ov,Pv,Nv,!1,null,"690ca924",null,null);const Mv=Lv.exports;function Uv(g){let c=X0.default.extend({name:g.name,data(){return{visible:!0}},render(u){let r=af.exports.isPlainObject(g)?{...g}:{};return u(Mv,{ref:"dialogRef",props:{draggable:!0,appendToBody:r.appendToBody,modalAppendToBody:r.modalAppendToBody,closeOnClickModal:!1,maxHeight:r.maxHeight,onConfirm:e=>{var A;(A=r.onConfirm)==null||A.call(r,e)},onCancel:e=>{var A;(A=r.onCancel)==null||A.call(r,e)}},attrs:{...r}})}}),o;return o=new c().$mount(),document.body.appendChild(o.$el),o.visible=!0,o.close=()=>{o.$refs.dialogRef.close()},o.setLoading=u=>{o.$refs.dialogRef.setLoading(u)},o}const Wv={install(g){g.prototype.$dialog=Uv}},Hv={name:"yzlSearch",mixins:[kh],props:{searchs:{type:[Object,Array],required:!0,default:()=>({})},form:{type:Object,required:!0},globalConfig:{type:Object},hideSearchButton:{type:Boolean,default:!1},hideSearchReset:{type:Boolean,default:!1},hideSearchMore:{type:Boolean,default:!1},autoReloadOnReset:{type:Boolean,default:void 0},searchButttonText:{type:String,default:""},searchResetText:{type:String,default:""},enableEnterSearch:{type:Boolean,default:!0}},data(){return{searchMore:!1}},computed:{hasSearchForm(){return Object.keys(this.searchs).length>0},computedSearchButtonText(){var g,c;return this.searchButttonText||((c=(g=this.globalConfig)==null?void 0:g.searchForm)==null?void 0:c.searchButtonText)||"\u67E5\u8BE2"},computedSearchResetText(){var g,c;return this.searchResetText||((c=(g=this.globalConfig)==null?void 0:g.searchForm)==null?void 0:c.searchResetText)||"\u91CD\u7F6E"},searchSlots(){return Object.keys(this.searchs).reduce((g,c)=>{const o=this.searchs[c];return o&&typeof o=="object"&&o.slotName&&(g[c]=o),g},{})},mergedAutoReload(){var g,c;return typeof this.autoReloadOnReset<"u"?this.autoReloadOnReset:(c=(g=this.globalConfig)==null?void 0:g.autoReloadOnReset)!=null?c:!1},isHideSearchMore(){return!(Object.keys(this.searchs).findIndex(c=>{const o=this.searchs[c].hidden;return typeof o=="function"?o():o})>=0)},localData(){const g=this.form||{};if(this.searchs){const c=nc(this.searchs,this.form,{exclude:["_slotSearchButtons"]});Object.keys(c).forEach(o=>{o in g||this.$set(g,o,c[o])})}return g.pageInfo||this.$set(g,"pageInfo",JSON.parse(JSON.stringify(this.globalConfig.pageInfo||{page:1,size:50}))),g},computedLabelWidth(){if(this.$attrs.labelWidth)return this.$attrs.labelWidth;const g=Object.values(this.searchs);return g.length===0?"auto":Math.max(...g.map(o=>(o.label||"").replace(/[^\\u4e00-\\u9fa5]/g,"").length))>6?"104px":"auto"}},created(){!this.hideSearchButton&&this.hasSearchForm&&(this.searchs._slotSearchButtons={slotName:"searchButtons"}),this.resetForm=nc(this.searchs,this.form,{exclude:["_slotSearchButtons"]})},methods:{handleSubmit(g){if(this.enableEnterSearch)this.reloadTableData();else return!1},handleSearchReset(){var g;Object.entries(this.resetForm).forEach(([c,o])=>{c!=="data"&&(this.form[c]=o)}),this.$emit("reset",this.form),this.mergedAutoReload&&!((g=this.$listeners)!=null&&g.reset)&&this.reloadTableData()},getFormRef(){return this.$refs.formRef},async reloadTableData(){this.startLoading();try{this.form.pageInfo&&(this.form.pageInfo.page=1),await this.loadTableData()}finally{this.stopLoading()}},async loadTableData(){try{this.$emit("search")}catch(g){console.error("Search error:",g)}}}};var Vv=function(){var c=this,o=c._self._c;return o("yzlForm",c._b({ref:"formRef",staticClass:"yzl-search-wrapper",class:{"search-more":c.searchMore},attrs:{"label-width":c.computedLabelWidth,schema:c.searchs,searchMore:c.searchMore,value:c.localData},nativeOn:{submit:function(u){return u.preventDefault(),c.handleSubmit.apply(null,arguments)}},scopedSlots:c._u([c._l(c.searchSlots,function(u,r){return{key:u.slotName,fn:function(e){return[c._t(u.slotName,null,{row:e.row,searchItem:u,index:r})]}}}),{key:"searchButtons",fn:function(){return[c._t("searchButtons",function(){return[c.hideSearchButton?c._e():o("el-button",{staticClass:"search-button",attrs:{icon:"el-icon-search",type:"primary","native-type":c.enableEnterSearch?"submit":"button",loading:c.mergedLoading},on:{click:function(u){!c.enableEnterSearch&&c.reloadTableData}}},[c._v(c._s(c.computedSearchButtonText))]),c.hideSearchReset?c._e():o("el-button",{staticClass:"search-button",on:{click:c.handleSearchReset}},[c._v(c._s(c.computedSearchResetText))])]}),c._t("searchExpandButton"),!c.isHideSearchMore&&!c.hideSearchMore?o("el-link",{staticClass:"search-more",attrs:{type:"primary",underline:!1},on:{click:function(u){c.searchMore=!c.searchMore}}},[c._v(" "+c._s(c.searchMore?"\u6536\u8D77":"\u5C55\u5F00")),o("i",{class:["el-icon-view","el-icon-arrow-up",{isUp:!c.searchMore}]})]):c._e()]},proxy:!0}],null,!0)},"yzlForm",c.$attrs,!1))},$v=[],zv=Zn(Hv,Vv,$v,!1,null,null,null,null);const sc=zv.exports;sc.install=function(g){g.component(sc.name,sc)};const RF="",Xv={name:"yzlDrawer",model:{prop:"visible",event:"change"},props:{visible:{type:Boolean,default:!1,validator:g=>typeof g=="boolean"},title:{type:String,default:"\u62BD\u5C49\u6807\u9898"},showHeader:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},maxWidth:{type:Number,default:500},draggable:{type:Boolean,default:!0},width:{type:Number,default:300},minCloseWidth:{type:Number,default:100}},watch:{visible:{handler(g){if(!g){requestAnimationFrame(()=>{this.drawerWidth=0});return}try{const c=Number(localStorage.getItem(this.storageKey));this.drawerWidth=c>0?Math.min(c,this.maxWidth):this.width}catch(c){console.warn("LocalStorage access failed:",c),this.drawerWidth=this.width}},immediate:!0}},computed:{storageKey(){return`drawer_width_${this.$route.name}`}},data(){return{drawerWidth:0,startX:0,startWidth:0,isDragging:!1}},beforeDestroy(){["mousemove","mouseup"].forEach(g=>{document.removeEventListener(g,this.doDrag),document.removeEventListener(g,this.stopDrag)})},methods:{toggleDrawer(){this.$emit("change",!this.visible),this.$emit("toggle",!this.visible)},handleClose(){this.$emit("change",!1),this.$emit("close")},doDrag(g){requestAnimationFrame(()=>{const c=Math.min(Math.max(this.startWidth+(this.startX-g.clientX),100),this.maxWidth);this.drawerWidth=c})},stopDrag(g){document.removeEventListener("mousemove",this.doDrag),document.removeEventListener("mouseup",this.stopDrag),window.removeEventListener("blur",this.stopDrag),this.$refs.drawer.classList.remove("dragging"),this.drawerWidth>this.minCloseWidth?this.persistWidth():(this.drawerWidth=0,this.$emit("change",!1))},startDrag(g){this.$refs.drawer.classList.add("dragging"),this.startX=g.clientX,this.startWidth=this.drawerWidth,document.removeEventListener("mousemove",this.doDrag),document.removeEventListener("mouseup",this.stopDrag),window.removeEventListener("blur",this.stopDrag),document.addEventListener("mousemove",this.doDrag,{passive:!0}),document.addEventListener("mouseup",this.stopDrag,{passive:!0}),window.addEventListener("blur",this.stopDrag)},persistWidth(){localStorage.setItem(this.storageKey,this.drawerWidth)}}};var Gv=function(){var c=this,o=c._self._c;return o("div",{staticClass:"yzl-drawer-wrapper"},[o("div",{staticClass:"left"},[c._t("default")],2),o("div",{ref:"drawer",staticClass:"right",style:{width:c.drawerWidth+"px"}},[c.showHeader?o("div",{staticClass:"drawer-header"},[c._t("titleSlot",function(){return[o("span",{staticClass:"title"},[c._v(c._s(c.title))])]}),c.showClose?o("el-button",{staticClass:"close-btn",attrs:{type:"text"},on:{click:c.handleClose}},[o("i",{staticClass:"el-icon-close"})]):c._e()],2):c._e(),o("div",{staticClass:"drawer-content"},[c._t("drawer")],2),c.draggable?o("div",{staticClass:"dragger",on:{mousedown:c.startDrag}}):c._e()])])},Kv=[],Yv=Zn(Xv,Gv,Kv,!1,null,"ce66f1f9",null,null);const oc=Yv.exports;oc.install=function(g){g.component(oc.name,oc)};const jv={name:"yzlSelect",props:{value:{required:!0},schema:{type:Object,required:!0}},computed:{modelValue:{get(){return this.value},set(g){this.$emit("input",g)}},fieldNames(){return{label:this.schema.optionLabel||"label",value:this.schema.optionValue||"value"}},mergedListeners(){return{...this.$listeners,...j0(this.schema,{context:this}),change:this.handleSelectionChange}}},methods:{handleSelectionChange(g,...c){const o={selectedItem:this.schema.options.find(u=>u[this.fieldNames.value]===g),context:this};this.$emit("change",g,...c,o)}}};var Zv=function(){var c=this,o=c._self._c;return o("el-select",c._g(c._b({model:{value:c.modelValue,callback:function(u){c.modelValue=u},expression:"modelValue"}},"el-select",c.schema,!1),c.mergedListeners),c._l(c.schema.options,function(u,r){return o("el-option",{key:r,attrs:{label:u[c.fieldNames.label],value:u[c.fieldNames.value],disabled:u.disabled}},[c._t(c.schema.slotName,function(){return[c._v(" "+c._s(u[c.fieldNames.label])+" ")]},null,{optionItem:u,labelKey:c.fieldNames.label,valueKey:c.fieldNames.value})],2)}),1)},Jv=[],Qv=Zn(jv,Zv,Jv,!1,null,null,null,null);const fc=Qv.exports;fc.install=function(g){g.component(fc.name,fc)};const qv={name:"yzlRadio",props:{value:{required:!0},schema:{type:Object,required:!0}},computed:{modelValue:{get(){return this.value},set(g){this.$emit("input",g)}},fieldNames(){return{label:this.schema.optionLabel||"label",value:this.schema.optionValue||"value"}},radioGroupAttrs(){const{size:g,disabled:c,textColor:o,fill:u}=this.schema;return{size:g,disabled:c,textColor:o,fill:u}},radioAttrs(){const{label:g,border:c,size:o,name:u,value:r}=this.schema;return{label:g,border:c,size:o,name:u,value:r}},radioButtonAttrs(){const{label:g,disabled:c,name:o}=this.schema;return{label:g,disabled:c,name:o}}}};var e_=function(){var c=this,o=c._self._c;return o("el-radio-group",c._g(c._b({model:{value:c.modelValue,callback:function(u){c.modelValue=u},expression:"modelValue"}},"el-radio-group",c.radioGroupAttrs,!1),c.$listeners),[c._l(c.schema.options,function(u,r){return[u.type!=="button"?o("el-radio",c._b({key:"radio_"+r,attrs:{label:u[c.fieldNames.value]}},"el-radio",c.radioAttrs,!1),[c._v(" "+c._s(u[c.fieldNames.label])+" ")]):o("el-radio-button",c._b({key:"radio_button_"+r,attrs:{label:u[c.fieldNames.value]}},"el-radio-button",c.radioButtonAttrs,!1),[c._v(" "+c._s(u[c.fieldNames.label])+" ")])]})],2)},t_=[],r_=Zn(qv,e_,t_,!1,null,null,null,null);const lc=r_.exports;lc.install=function(g){g.component(lc.name,lc)};const n_={props:{model:{type:Object,default:()=>({})},schema:{type:Object,required:!0},value:{required:!0},name:{type:String}},computed:{aliasKeys(){return Array.isArray(this.schema.alias)?this.schema.alias:[]},hasAlias(){return!!this.schema.alias}},methods:{getAliasValue(g=0){var c;return this.hasAlias?this.model[this.aliasKeys[g]]:((c=this.value)==null?void 0:c[g])||""},updateModelValue(g,c=0){if(this.hasAlias){const o=this.aliasKeys[c];this.name&&this.model.hasOwnProperty(this.name)&&delete this.model[this.name],this.$set(this.model,o,g)}else this.$emit("input",[...this.value||[],g].slice(0,2))},valueProxy(g){return{get:()=>this.getAliasValue(g),set:c=>{const o=c===null?"":c;this.hasAlias?this.updateModelValue(o,g):this.updateModelValue(o,g)}}}}},OF="",a_={name:"yzlDatePicker",mixins:[n_],props:{value:{required:!0},schema:{type:Object,required:!0}},computed:{modelValue:{get(){return this.hasAlias?[this.getAliasValue(0)||"",this.getAliasValue(1)||""]:this.value===null?this.schema.type.includes("range")?[]:"":this.value},set(g){if(this.hasAlias){const[c="",o=""]=Array.isArray(g)?g:g!==null?[g,""]:["",""];this.updateModelValue(c,0),this.updateModelValue(o,1)}else this.$emit("input",g===null?this.schema.type.includes("range")?[]:null:g)}},mergedAttrs(){const g={rangeSeparator:"-"},c={shortcuts:[{text:"\u6700\u8FD1\u4E00\u5468",onClick(u){const r=new Date,e=new Date;e.setTime(e.getTime()-3600*1e3*24*7),u.$emit("pick",[e,r])}},{text:"\u6700\u8FD1\u4E00\u4E2A\u6708",onClick(u){const r=new Date,e=new Date;e.setTime(e.getTime()-3600*1e3*24*30),u.$emit("pick",[e,r])}},{text:"\u6700\u8FD1\u4E09\u4E2A\u6708",onClick(u){const r=new Date,e=new Date;e.setTime(e.getTime()-3600*1e3*24*90),u.$emit("pick",[e,r])}}]};return["daterange","datetimerange","monthrange"].includes(this.schema.type)&&(g.startPlaceholder="\u5F00\u59CB\u65E5\u671F",g.endPlaceholder="\u7ED3\u675F\u65E5\u671F"),this.schema.shortcuts&&(g["picker-options"]=c),{...g,...this.schema}},mergedListeners(){const{input:g,...c}=this.$listeners;return this.hasAlias?{...c,...j0(this.schema,{context:this})}:{...this.$listeners,...j0(this.schema,{context:this})}}}};var i_=function(){var c=this,o=c._self._c;return o("el-date-picker",c._g(c._b({model:{value:c.modelValue,callback:function(u){c.modelValue=u},expression:"modelValue"}},"el-date-picker",c.mergedAttrs,!1),c.mergedListeners))},s_=[],o_=Zn(a_,i_,s_,!1,null,null,null,null);const cc=o_.exports;cc.install=function(g){g.component(cc.name,cc)};const PF="",f_={name:"yzlCompositeSelect",props:{value:{required:!0},schema:{type:Object,required:!0},model:{type:Object},name:{type:String}},data(){return{selectedKey:this.getDefaultSelectKey(),initialValues:{}}},computed:{localValue:{get(){return this.value},set(g){this.$emit("input",g)}},mergedStyle(){const g={width:this.schema.selectWidth||"84px"};if(typeof this.schema.style=="string"){const c=this.schema.style.split(";").reduce((o,u)=>{const[r,e]=u.split(":").map(A=>A.trim());return r&&e&&(o[r]=e),o},{});return{...g,...c}}return{...g,...this.schema.style}},selectedChild(){return this.schema.children[this.localValue]||{}},childOptions(){return Object.keys(this.schema.children).map(g=>({label:this.schema.children[g].label,value:g}))},mergedListeners(){return{...this.$listeners,...j0(this.schema,{context:this,selectedKey:this.localValue}),change:this.handleChange}}},watch:{"schema.children":{handler(){this.selectedKey=this.getDefaultSelectKey()},deep:!0}},methods:{getDefaultSelectKey(){if(this.value)return this.value;const g=Object.keys(this.schema.children);return g.length>0?g[0]:""},getChildListeners(g,c){var u,r;const o={...this.$listeners,change:e=>{var A,I;(I=(A=c.events)==null?void 0:A.change)==null||I.call(A,e,{context:this,selectedKey:this.localValue})},blur:e=>{var A,I;(I=(A=c.events)==null?void 0:A.blur)==null||I.call(A,e,{context:this,selectedKey:this.localValue})}};if((((u=c.minConfig)==null?void 0:u.rules)||((r=c.maxConfig)==null?void 0:r.rules))&&(o["update:rules"]=e=>{c.minConfig&&(c.minConfig.rules=e),c.maxConfig&&(c.maxConfig.rules=e)}),!c.alias){const e=tc().use("chinese","space","specialSymbol");o.input=A=>{var k,M;const I=e(A,this.selectedChild);(M=(k=c.events)==null?void 0:k.input)==null||M.call(k,I),this.model[g]?this.model[g]=I:this.$set(this.model,g,I)}}return o},handleChange(g){Object.keys(this.schema.children).forEach(c=>{if(c!==g){const o=this.schema.children[c];o.alias?o.alias.forEach(u=>{this.$set(this.model,u,"")}):this.$set(this.model,c,["yzlRangeInput","yzlRange"].includes(o.component)?[]:"")}}),this.$emit("input",g),this.$emit("change",{key:this.name,value:g,childSchema:this.schema.children[g]})}}};var l_=function(){var c=this,o=c._self._c;return o("div",{staticClass:"composite-wrapper"},[o("el-select",c._g(c._b({staticClass:"main-select",style:c.mergedStyle,attrs:{clearable:!1},model:{value:c.localValue,callback:function(u){c.localValue=u},expression:"localValue"}},"el-select",c.$attrs,!1),c.mergedListeners),c._l(c.childOptions,function(u,r){return o("el-option",{key:r,attrs:{label:u.label,value:u.value}})}),1),o("div",{staticClass:"children-container"},[c.localValue?o(c.selectedChild.component,c._g(c._b({key:c.localValue,tag:"component",attrs:{value:c.model[c.localValue],fieldName:c.localValue,name:c.localValue,model:c.model,schema:c.selectedChild}},"component",c.selectedChild,!1),c.getChildListeners(c.localValue,c.selectedChild))):c._e()],1)],1)},c_=[],u_=Zn(f_,l_,c_,!1,null,null,null,null);const uc=u_.exports;uc.install=function(g){g.component(uc.name,uc)};const NF="",h_={name:"yzlUpload",props:{defaultValue:{type:Array,default:()=>[]},schema:{type:Object,required:!0},action:String,returnOssId:Boolean,uploadButtonText:{type:String,default:"\u4E0A\u4F20"},maxSize:{type:Number,default:10*1024*1024}},computed:{mergedProps(){return{...this.$attrs,...this.schema,"show-file-list":!1,action:this.$attrs.action||"#"}}},watch:{defaultValue:{immediate:!0,handler(g){const c=this.localFileList.map(o=>o.url);JSON.stringify(c)!==JSON.stringify(g)&&(this.localFileList=g.map(o=>({url:o,name:o.split("/").pop(),raw:new File([],o.split("/").pop())})))}}},data(){return{isMouseIn:!1,localFileList:[]}},methods:{isImage(g){const c=["jpg","jpeg","png","gif","bmp","webp","svg"],o=g.split("."),u=o[o.length-1].toLowerCase();return c.includes(u)},handleAvatarSuccess(g,c){this.schema.onSuccess(g,c)},async handleHttpRequest({file:g,onSuccess:c,onError:o}){this.schema.httpRequest({file:g,onSuccess:u=>this.handleUploadSuccess(u,g,c),onError:u=>this.handleUploadError(u,o),setFunc:u=>{u.func=()=>this.localFileList=[]}})},handleUploadSuccess(g,c,o){var u;o(g,c),this.localFileList.push({...g.data,raw:c,name:c.name,url:((u=g.data)==null?void 0:u.url)||URL.createObjectURL(c)}),this.updateModel()},handleUploadError(g,c){c(g),this.$message.error("\u4E0A\u4F20\u5931\u8D25: "+g.message)},handleOnRemove(g){this.localFileList.splice(g,1),this.updateModel()},handleMouseMove(g){this.isMouseIn=g},updateModel(){const g=this.localFileList.map(o=>o.url),c=this.localFileList.map(o=>o.ossId);this.$emit("input",this.returnOssId?c:g)}}};var d_=function(){var u,r;var c=this,o=c._self._c;return o("el-upload",c._g(c._b({ref:"uploader",attrs:{"file-list":c.localFileList,"on-success":c.handleAvatarSuccess,"http-request":c.handleHttpRequest}},"el-upload",c.mergedProps,!1),c.$listeners),[o("el-button",{attrs:{slot:"trigger",disabled:c.$attrs.disabled||((u=c.localFileList)==null?void 0:u.length)>=c.$attrs.limit,size:c.$attrs.size,type:"primary"},slot:"trigger"},[c._v(c._s(c.uploadButtonText))]),(r=c.localFileList)!=null&&r.length?o("div",{staticClass:"upload-list"},c._l(c.localFileList,function(e,A){return o("div",{key:A,staticClass:"upload-img",on:{mouseenter:function(I){return c.handleMouseMove(!0)},mouseleave:function(I){return c.handleMouseMove(!1)}}},[c.isImage(e.url)?o("el-image",{staticClass:"img-item",attrs:{"preview-src-list":[e.url],src:e.url}}):o("div",{staticClass:"file-doc"},[o("i",{staticClass:"el-icon-document"})]),o("p",{staticClass:"img-name"},[c._v(c._s(e.name||"\u6682\u65E0"))]),o("div",{staticClass:"triangle"},[c.isMouseIn&&!c.$attrs.disabled?o("i",{staticClass:"el-icon-close img-check",on:{click:function(I){return c.handleOnRemove(A)}}}):o("i",{staticClass:"el-icon-check img-check"})])],1)}),0):c._e(),o("div",{staticClass:"el-upload__tip"},[c._v(c._s(`\u6700\u591A\u4E0A\u4F20${c.$attrs.limit}\u4E2A\u6587\u4EF6\uFF0C\u5355\u4E2A\u6587\u4EF6\u4E0D\u8D85\u8FC7${this.maxSize/1024/1024}M`))])],1)},x_=[],p_=Zn(h_,d_,x_,!1,null,"1ae379ac",null,null);const hc=p_.exports;hc.install=function(g){g.component(hc.name,hc)};const LF="",g_={name:"YzlRangeInput",props:{value:{type:Array,default:()=>["",""]},schema:{type:Object,default:()=>({alias:[],minConfig:{},maxConfig:{}})},model:{type:Object,default:()=>({})},fieldName:{type:String,default:""}},data(){return{currentValues:["",""]}},computed:{aliasKeys(){return Array.isArray(this.schema.alias)?this.schema.alias.slice(0,2):[]},hasAlias(){return this.aliasKeys.length===2},minConfig(){return typeof this.schema.minConfig=="object"?{placeholder:"\u6700\u5C0F\u503C",...this.schema.minConfig}:{placeholder:"\u6700\u5C0F\u503C"}},maxConfig(){return typeof this.schema.maxConfig=="object"?{placeholder:"\u6700\u5927\u503C",...this.schema.maxConfig}:{placeholder:"\u6700\u5927\u503C"}},minValue:Q2(0),maxValue:Q2(1),mergedMinListeners(){const g=tc().use("chinese","space","specialSymbol");let c=!1;const o=j0(this.minConfig,{context:this});return{...o,input:u=>{var r;if(!c){const e=g(u,this.minConfig);this.minValue=e}(r=o.input)==null||r.call(o,u)},compositionstart:()=>{var u;c=!0,(u=o.compositionstart)==null||u.call(o)},compositionend:u=>{var e;c=!1;const r=g(u.target.value,this.minConfig);this.minValue=r,(e=o.compositionend)==null||e.call(o,u)},change:u=>{var r;this.handleChange(0),(r=o.change)==null||r.call(o,{value:this.minValue,fullValue:[...this.currentValues]},u)}}},mergedMaxListeners(){const g=tc().use("chinese","space","specialSymbol");let c=!1;const o=j0(this.maxConfig,{context:this});return{...o,input:u=>{var r;if(!c){const e=g(u,this.maxConfig);this.maxValue=e,(r=o.input)==null||r.call(o,u)}},compositionstart:()=>{var u;c=!0,(u=o.compositionstart)==null||u.call(o)},compositionend:u=>{var e;c=!1;const r=g(u.target.value,this.maxConfig);this.maxValue=r,(e=o.compositionend)==null||e.call(o,u)},change:u=>{var r;this.handleChange(1),(r=o.change)==null||r.call(o,{value:this.maxValue,fullValue:[...this.currentValues]},u)}}}},watch:{value:{immediate:!0,handler(g){this.hasAlias||this.syncValues(g)}},model:{deep:!0,handler(){this.hasAlias&&this.syncValues([this.model[this.aliasKeys[0]]||"",this.model[this.aliasKeys[1]]||""])}}},methods:{syncValues([g="",c=""]=[]){const o=typeof g=="string"?g:String(g),u=typeof c=="string"?c:String(c);this.currentValues=[o,u],this.minValue!==o&&(this.minValue=o),this.maxValue!==u&&(this.maxValue=u)},handleChange(g){this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>{const c={value:g===0?this.minValue:this.maxValue,fullValue:[...this.currentValues]};this.$emit("change",{min:this.minValue,max:this.maxValue,fullValue:c.fullValue})},300)}}};function Q2(g){return{get(){return this.hasAlias?this.model[this.aliasKeys[g]]||"":this.currentValues[g]},set(c){var r;let o=c;g===0&&((r=this.minConfig)==null?void 0:r.chineseOnly)&&(o=o.replace(/[^\u4e00-\u9fa5]/g,""));const u=o===null?"":o;u!==this.currentValues[g]&&(this.hasAlias?(this.$delete(this.model,this.fieldName),this.$set(this.model,this.aliasKeys[g],u)):(this.aliasKeys.forEach(e=>this.$delete(this.model,e)),this.$set(this.model,this.fieldName,u)),this.currentValues.splice(g,1,u))}}}var m_=function(){var c=this,o=c._self._c;return o("div",{staticClass:"range-input-wrapper"},[o("el-input",c._g(c._b({staticClass:"range-input__min",attrs:{placeholder:c.minConfig.placeholder||"\u6700\u5C0F\u503C"},scopedSlots:c._u([c.$slots["prepend-min"]?{key:"prepend",fn:function(){return[c._t("prepend-min")]},proxy:!0}:null],null,!0),model:{value:c.minValue,callback:function(u){c.minValue=u},expression:"minValue"}},"el-input",c.minConfig,!1),c.mergedMinListeners)),o("div",{staticClass:"range-input__separator"},[c._v("-")]),o("el-input",c._g(c._b({staticClass:"range-input__max",attrs:{placeholder:c.maxConfig.placeholder||"\u6700\u5927\u503C"},scopedSlots:c._u([c.$slots["prepend-max"]?{key:"prepend",fn:function(){return[c._t("prepend-max")]},proxy:!0}:null],null,!0),model:{value:c.maxValue,callback:function(u){c.maxValue=u},expression:"maxValue"}},"el-input",c.maxConfig,!1),c.mergedMaxListeners))],1)},v_=[],__=Zn(g_,m_,v_,!1,null,null,null,null);const dc=__.exports;dc.install=function(g){g.component(dc.name,dc)};const MF="",F_={name:"YzlRange",props:{value:{type:Array,default:()=>["",""]},schema:{type:Object,default:()=>({alias:[],minConfig:{},maxConfig:{}})},model:{type:Object,default:()=>({})},fieldName:{type:String,default:""}},data(){return{currentValues:["",""]}},computed:{minComponent(){var g;return((g=this.schema.minConfig)==null?void 0:g.component)||"el-input"},maxComponent(){var g;return((g=this.schema.maxConfig)==null?void 0:g.component)||"el-input"},minOptions(){var g;return((g=this.schema.minConfig)==null?void 0:g.options)||[]},maxOptions(){var g;return((g=this.schema.maxConfig)==null?void 0:g.options)||[]},aliasKeys(){return Array.isArray(this.schema.alias)?this.schema.alias.slice(0,2):[]},hasAlias(){return this.aliasKeys.length===2},minConfig(){return{placeholder:"\u6700\u5C0F\u503C",...typeof this.schema.minConfig=="object"?this.schema.minConfig:{}}},maxConfig(){return{placeholder:"\u6700\u5927\u503C",...typeof this.schema.maxConfig=="object"?this.schema.maxConfig:{}}},minValue:q2(0),maxValue:q2(1)},watch:{value:{immediate:!0,handler(g){this.hasAlias||this.syncValues(g)}}},methods:{syncValues([g="",c=""]=[]){const o=typeof g=="string"?g:String(g),u=typeof c=="string"?c:String(c);this.currentValues=[o,u],this.minValue!==o&&(this.minValue=o),this.maxValue!==u&&(this.maxValue=u)},handleChange(g){this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>{const c={min:this.minValue,max:this.maxValue,fullValue:[...this.currentValues]};this.$emit("change",c)},300)}}};function q2(g){return{get(){return this.hasAlias?this.model[this.aliasKeys[g]]||"":this.currentValues[g]},set(c){const o=c===null?"":c;o!==this.currentValues[g]&&(this.hasAlias?(this.$delete(this.model,this.fieldName),this.$set(this.model,this.aliasKeys[g],o)):(this.aliasKeys.forEach(u=>this.$delete(this.model,u)),this.$set(this.model,this.fieldName,o)),this.currentValues.splice(g,1,o))}}}var C_=function(){var c=this,o=c._self._c;return o("div",{staticClass:"range-input-wrapper"},[o(c.minComponent,c._b({tag:"component",staticClass:"range-input__min",attrs:{schema:c.minConfig},on:{input:function(u){return c.handleChange(0)}},scopedSlots:c._u([c.$slots["prepend-min"]?{key:"prepend",fn:function(){return[c._t("prepend-min")]},proxy:!0}:null],null,!0),model:{value:c.minValue,callback:function(u){c.minValue=u},expression:"minValue"}},"component",c.minConfig,!1),[["el-select"].includes(c.maxComponent)?c._l(c.minOptions,function(u,r){return o("el-option",{key:r,attrs:{label:u.label,value:u.value,disabled:u.disabled}})}):c._e()],2),o("div",{staticClass:"range-input__separator"},[c._v("-")]),o(c.maxComponent,c._b({tag:"component",staticClass:"range-input__max",attrs:{schema:c.maxConfig},on:{input:function(u){return c.handleChange(1)}},scopedSlots:c._u([c.$slots["prepend-max"]?{key:"prepend",fn:function(){return[c._t("prepend-max")]},proxy:!0}:null],null,!0),model:{value:c.maxValue,callback:function(u){c.maxValue=u},expression:"maxValue"}},"component",c.maxConfig,!1),[["el-select"].includes(c.maxComponent)?c._l(c.maxOptions,function(u,r){return o("el-option",{key:r,attrs:{label:u.label,value:u.value,disabled:u.disabled,"data-dis":u.disabled}})}):c._e()],2)],1)},E_=[],w_=Zn(F_,C_,E_,!1,null,null,null,null);const xc=w_.exports;xc.install=function(g){g.component(xc.name,xc)};const S_={install(g,c){const o="medium";g.mixin({data(){return{globalSize:this.getSizeFromOptions(c,o)}},created(){},methods:{getSizeFromOptions(u,r){return u&&u.size?u.size:r}}}),g.prototype.$setGlobalSize=function(u){this.$root.globalSize=u},g.prototype.$globalSize=function(){return this.$root.globalSize}}},em=function(g,c={}){[Ql,ql,ec,rc,ac,ic,sc,oc,fc,lc,cc,uc,dc,xc,hc].forEach(o=>{g.use(Wv),g.use(S_,{size:c.globalSize}),g.component(o.name,{extends:o,props:{globalConfig:{type:Object,default:()=>c}}})})};return typeof window<"u"&&window.Vue&&em(window.Vue),{version:"0.0.1",install:em}});
|