vue-amazing-ui 2.1.7 → 2.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.iife.js +1 -1
- package/dist/index.js +2 -0
- package/dist/index.umd.cjs +1 -1
- package/es/utils/resolvers.js +4 -2
- package/lib/utils/resolvers.cjs +1 -1
- package/package.json +2 -2
package/dist/index.iife.js
CHANGED
|
@@ -111,4 +111,4 @@ Minimum version required to store current data is: `+N+`.
|
|
|
111
111
|
--scroll-delay: 0s;
|
|
112
112
|
--scroll-iteration-count: infinite;
|
|
113
113
|
`]),onMouseenter:P[0]||(P[0]=A=>T.pauseOnMouseEnter?x():()=>!1),onMouseleave:P[1]||(P[1]=A=>T.pauseOnMouseEnter?N():()=>!1)},[e.createElementVNode("div",{ref_key:"groupRef",ref:i,class:e.normalizeClass(["scroll-items-group",{"scroll-items-reset":c.value}]),onAnimationiteration:$},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(A,q)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(A.href?"a":"div"),{class:e.normalizeClass(["scroll-item",{"href-item":A.href}]),style:e.normalizeStyle([T.itemStyle,`width: ${p.value}px;`]),key:q,title:A.title,href:A.href,target:A.target,onClick:_=>M(A)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A.title),1)]),_:2},1032,["class","style","title","href","target","onClick"]))),128))],34),e.createElementVNode("div",{class:e.normalizeClass(["scroll-items-group",{"scroll-items-reset":c.value}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(A,q)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(A.href?"a":"div"),{class:e.normalizeClass(["scroll-item",{"href-item":A.href}]),style:e.normalizeStyle([T.itemStyle,`width: ${p.value}px;`]),key:q,title:A.title,href:A.href,target:A.target,onClick:_=>M(A)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A.title),1)]),_:2},1032,["class","style","title","href","target","onClick"]))),128))],2)],36))}}),[["__scopeId","data-v-2c649d2c"]])),od=Se(Ee(e.defineComponent({__name:"Timeline",props:{items:{default:()=>[]},width:{default:"100%"},lineStyle:{default:"solid"},mode:{default:"left"},position:{default:"left"}},setup(l){const t=l,a=e.ref(),n=e.ref([]),r=e.computed(()=>typeof t.width=="number"?`${t.width}px`:t.width),o=e.computed(()=>t.items.length);function s(){for(let i=0;i<o.value;i++)n.value[i]=getComputedStyle(a.value[i].firstElementChild||a.value[i],null).getPropertyValue("line-height")}return e.watchEffect(()=>{s()},{flush:"post"}),e.watchEffect(()=>{if(t.mode==="center")for(let i=0;i<o.value;i++)(i+1)%2?t.position==="left"?a.value[i].classList.add("desc-alternate-left"):a.value[i].classList.add("desc-alternate-right"):t.position==="left"?a.value[i].classList.add("desc-alternate-right"):a.value[i].classList.add("desc-alternate-left")},{flush:"post"}),(i,d)=>(e.openBlock(),e.createElementBlock("div",{class:"m-timeline",style:e.normalizeStyle(`width: ${r.value};`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.items,(u,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["timeline-item",{"item-last":c===i.items.length-1}]),key:c},[e.createElementVNode("span",{class:e.normalizeClass(["timeline-tail",`tail-${i.mode}`]),style:e.normalizeStyle(`border-left-style: ${i.lineStyle};`)},null,6),e.createElementVNode("div",{class:e.normalizeClass(["timeline-dot",`dot-${i.mode}`]),style:e.normalizeStyle(`height: ${n.value[c]}`)},[e.renderSlot(i.$slots,"dot",{item:u,index:c},()=>[u.color==="red"?(e.openBlock(),e.createElementBlock("span",{key:0,class:"dot-item",style:e.normalizeStyle({borderColor:"#ff4d4f"})},null,4)):u.color==="gray"?(e.openBlock(),e.createElementBlock("span",{key:1,class:"dot-item",style:e.normalizeStyle({borderColor:"#00000040"})},null,4)):u.color==="green"?(e.openBlock(),e.createElementBlock("span",{key:2,class:"dot-item",style:e.normalizeStyle({borderColor:"#52c41a"})},null,4)):u.color==="blue"?(e.openBlock(),e.createElementBlock("span",{key:3,class:"dot-item",style:e.normalizeStyle({borderColor:"#1677ff"})},null,4)):(e.openBlock(),e.createElementBlock("span",{key:4,class:"dot-item",style:e.normalizeStyle({borderColor:u.color||"#1677ff"})},null,4))],!0)],6),e.createElementVNode("div",{ref_for:!0,ref_key:"descRef",ref:a,class:e.normalizeClass(`timeline-desc desc-${i.mode}`)},[e.renderSlot(i.$slots,"desc",{item:u,index:c},()=>[e.createTextVNode(e.toDisplayString(u.desc||"--"),1)],!0)],2)],2))),128))],4))}}),[["__scopeId","data-v-c9112a5f"]])),Lg={class:"m-upload-wrap"},Fg=["onDrop","onClick"],Rg=["accept","multiple","onChange"],Ig={class:"upload-tip"},Og={class:"file-uploading"},Hg={key:0,class:"file-preview"},Yg={key:1,class:"file-svg",focusable:"false","data-icon":"file-pdf",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"64 64 896 896"},Wg={key:2,class:"file-svg",focusable:"false","data-icon":"file",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"64 64 896 896"},qg={class:"file-mask"},Ug=["onClick"],jg=["onClick"],sd=Se(Ee(e.defineComponent({__name:"Upload",props:{accept:{default:"*"},multiple:{type:Boolean,default:!1},maxCount:{default:void 0},tip:{default:"Upload"},fit:{default:"contain"},draggable:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},spaceProps:{default:()=>({})},spinProps:{default:()=>({})},imageProps:{default:()=>({})},messageProps:{default:()=>({})},actionMessage:{default:()=>({upload:"上传成功",remove:"删除成功"})},beforeUpload:{type:Function,default:()=>!0},uploadMode:{default:"base64"},customRequest:{type:Function,default:()=>{}},fileList:{default:()=>[]}},emits:["update:fileList","drop","change","preview","remove"],setup(l,{expose:t,emit:a}){const n=l,r=e.ref([]),o=e.ref(1),s=e.ref([]),i=e.ref(),d=e.ref(),u=e.ref(),c=a,f=e.computed(()=>n.maxCount===void 0?1/0:n.maxCount);e.watchEffect(()=>{m()});function m(){r.value=[...n.fileList],r.value.length>f.value&&r.value.splice(f.value),n.disabled?o.value=r.value.length:r.value.length<f.value?o.value=n.fileList.length+1:o.value=f.value}function h(x){const z=/\.(jpg|jpeg|png|gif)$/i,T=/^data:image/;return z.test(x)||T.test(x)}function k(x){const z=/\.pdf$/i,T=/^data:application\/pdf/;return z.test(x)||T.test(x)}function y(x,z){var P;const T=(P=x.dataTransfer)==null?void 0:P.files;if(T!=null&&T.length){const A=T.length;for(let q=0;q<A&&z+q<=f.value;q++)g(T[q],z+q);i.value[z].value=""}c("drop",x)}function v(x){i.value[x].click()}function b(x,z){const T=x.target.files;if(T!=null&&T.length){const P=T.length;for(let A=0;A<P&&z+A<f.value;A++)g(T[A],z+A);i.value[z].value=""}}const g=async(x,z)=>{new Promise((P,A)=>{try{const q=n.beforeUpload(x);q instanceof Promise?q.then(P,A):typeof q=="boolean"?q?P(q):A(new Error("Function returned false")):P(q)}catch(q){A(q)}}).then(()=>{f.value>o.value&&o.value++,n.uploadMode==="base64"&&(s.value[z]=!0,p(x,z)),n.uploadMode==="custom"&&(s.value[z]=!0,w(x,z))}).catch(P=>{console.log("beforeUpload error:",P)})};function p(x,z){var T=new FileReader;T.readAsDataURL(x),T.onloadstart=function(P){},T.onabort=function(P){},T.onerror=function(P){},T.onprogress=function(P){P.loaded===P.total&&(s.value[z]=!1)},T.onload=function(P){var A;r.value.push({name:x.name,url:(A=P.target)==null?void 0:A.result}),n.actionMessage.upload&&u.value.success(n.actionMessage.upload),c("update:fileList",r.value),c("change",r.value)},T.onloadend=function(P){}}function w(x,z){n.customRequest(x).then(T=>{r.value.push(T),n.actionMessage.upload&&u.value.success(n.actionMessage.upload),c("update:fileList",r.value),c("change",r.value)}).catch(T=>{f.value>1&&(o.value=r.value.length+1),u.value.error(T)}).finally(()=>{s.value[z]=!1})}function V(x,z){if(h(z)){const T=r.value.slice(0,x).filter(P=>!h(P.url));d.value[x-T.length].preview(0)}else window.open(z);c("preview",r.value[x])}function C(x){r.value.length<f.value&&o.value--;const z=r.value.splice(x,1);n.actionMessage.remove&&u.value.success(n.actionMessage.remove),c("remove",z[0]),c("update:fileList",r.value),c("change",r.value)}function S(x){u.value.info(x)}function $(x){u.value.success(x)}function B(x){u.value.error(x)}function M(x){u.value.warning(x)}function N(x){u.value.loading(x)}return t({info:S,success:$,error:B,warning:M,loading:N}),(x,z)=>(e.openBlock(),e.createElementBlock("div",Lg,[e.createVNode(e.unref(Tl),e.mergeProps({gap:"small"},x.spaceProps),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,T=>(e.openBlock(),e.createElementBlock("div",{class:"upload-item-panel",key:T},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["upload-item",{"upload-disabled":x.disabled}]),onDragenter:z[1]||(z[1]=e.withModifiers(()=>{},["stop","prevent"])),onDragover:z[2]||(z[2]=e.withModifiers(()=>{},["stop","prevent"])),onDrop:e.withModifiers(P=>x.draggable&&!x.disabled?y(P,T-1):()=>!1,["stop","prevent"]),onClick:P=>x.disabled?()=>!1:v(T-1)},[e.createElementVNode("input",{ref_for:!0,ref_key:"uploadInputRef",ref:i,type:"file",onClick:z[0]||(z[0]=e.withModifiers(()=>{},["stop"])),accept:x.accept,multiple:x.multiple,onChange:P=>b(P,T-1),style:{display:"none"}},null,40,Rg),e.createElementVNode("div",null,[z[3]||(z[3]=e.createElementVNode("svg",{focusable:"false",class:"plus-svg","data-icon":"plus",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"64 64 896 896"},[e.createElementVNode("defs"),e.createElementVNode("path",{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}),e.createElementVNode("path",{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"})],-1)),e.createElementVNode("p",Ig,[e.renderSlot(x.$slots,"tip",{},()=>[e.createTextVNode(e.toDisplayString(x.tip),1)],!0)])])],42,Fg),[[e.vShow,!s.value[T-1]&&!r.value[T-1]]]),e.withDirectives(e.createElementVNode("div",Og,[e.createVNode(e.unref(la),e.mergeProps({class:"spin-uploading",tip:"uploading",size:"small",indicator:"spin-line",ref_for:!0},x.spinProps),null,16)],512),[[e.vShow,s.value[T-1]]]),r.value[T-1]?(e.openBlock(),e.createElementBlock("div",Hg,[h(r.value[T-1].url)?(e.openBlock(),e.createBlock(e.unref(tr),e.mergeProps({key:0,ref_for:!0,ref_key:"imageRef",ref:d,bordered:!1,width:82,height:82,fit:x.fit,src:r.value[T-1].url,name:r.value[T-1].name},x.imageProps),null,16,["fit","src","name"])):k(r.value[T-1].url)?(e.openBlock(),e.createElementBlock("svg",Yg,z[4]||(z[4]=[e.createElementVNode("path",{d:"M531.3 574.4l.3-1.4c5.8-23.9 13.1-53.7 7.4-80.7-3.8-21.3-19.5-29.6-32.9-30.2-15.8-.7-29.9 8.3-33.4 21.4-6.6 24-.7 56.8 10.1 98.6-13.6 32.4-35.3 79.5-51.2 107.5-29.6 15.3-69.3 38.9-75.2 68.7-1.2 5.5.2 12.5 3.5 18.8 3.7 7 9.6 12.4 16.5 15 3 1.1 6.6 2 10.8 2 17.6 0 46.1-14.2 84.1-79.4 5.8-1.9 11.8-3.9 17.6-5.9 27.2-9.2 55.4-18.8 80.9-23.1 28.2 15.1 60.3 24.8 82.1 24.8 21.6 0 30.1-12.8 33.3-20.5 5.6-13.5 2.9-30.5-6.2-39.6-13.2-13-45.3-16.4-95.3-10.2-24.6-15-40.7-35.4-52.4-65.8zM421.6 726.3c-13.9 20.2-24.4 30.3-30.1 34.7 6.7-12.3 19.8-25.3 30.1-34.7zm87.6-235.5c5.2 8.9 4.5 35.8.5 49.4-4.9-19.9-5.6-48.1-2.7-51.4.8.1 1.5.7 2.2 2zm-1.6 120.5c10.7 18.5 24.2 34.4 39.1 46.2-21.6 4.9-41.3 13-58.9 20.2-4.2 1.7-8.3 3.4-12.3 5 13.3-24.1 24.4-51.4 32.1-71.4zm155.6 65.5c.1.2.2.5-.4.9h-.2l-.2.3c-.8.5-9 5.3-44.3-8.6 40.6-1.9 45 7.3 45.1 7.4zm191.4-388.2L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"},null,-1)]))):(e.openBlock(),e.createElementBlock("svg",Wg,z[5]||(z[5]=[e.createElementVNode("path",{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"},null,-1)]))),e.createElementVNode("div",qg,[e.createElementVNode("a",{class:"file-icon",title:"预览",onClick:P=>V(T-1,r.value[T-1].url)},z[6]||(z[6]=[e.createElementVNode("svg",{class:"icon-svg",focusable:"false","data-icon":"eye",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"64 64 896 896"},[e.createElementVNode("path",{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"})],-1)]),8,Ug),e.withDirectives(e.createElementVNode("a",{class:"file-icon",title:"删除",onClick:e.withModifiers(P=>C(T-1),["prevent","stop"])},z[7]||(z[7]=[e.createElementVNode("svg",{class:"icon-svg",focusable:"false","data-icon":"delete",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"64 64 896 896"},[e.createElementVNode("path",{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"})],-1)]),8,jg),[[e.vShow,!x.disabled]])])])):e.createCommentVNode("",!0)]))),128))]),_:3},16),e.createVNode(e.unref(ar),e.mergeProps({ref_key:"messageRef",ref:u},x.messageProps),null,16)]))}}),[["__scopeId","data-v-65fdf777"]])),Gg=["src","poster","autoplay","controls","loop","muted","preload"],id=Se(Ee(e.defineComponent({__name:"Video",props:{width:{default:800},height:{default:450},src:{default:void 0},poster:{default:void 0},second:{default:.5},fit:{default:"contain"},autoplay:{type:Boolean,default:!1},controls:{type:Boolean,default:!0},loop:{type:Boolean,default:!1},muted:{type:Boolean,default:!1},preload:{default:"metadata"},playIcon:{type:Boolean,default:!0},iconSize:{default:80}},emits:["play","pause"],setup(l,{expose:t,emit:a}){const n=l,r=e.ref(),o=e.ref(),s=e.ref(!1),i=e.ref(!0),d=e.ref(!1),u=a,c=e.computed(()=>typeof n.width=="number"?`${n.width}px`:n.width),f=e.computed(()=>typeof n.height=="number"?`${n.height}px`:n.height);e.watch(()=>n.second,()=>{m()}),e.watch(()=>n.autoplay,g=>{var p;g?(d.value=!1,i.value=!1,s.value=!0):(d.value=!0,i.value=!0,s.value=!1,(p=r.value)==null||p.pause())},{immediate:!0,flush:"post"});function m(){if(r.value){r.value.currentTime=n.second;const g=document.createElement("canvas"),p=g.getContext("2d");g.width=r.value.videoWidth,g.height=r.value.videoHeight,p==null||p.drawImage(r.value,0,0,g.width,g.height),o.value=g.toDataURL("image/png")}}function h(){i.value&&(i.value=!1,r.value.currentTime=0),s.value?r.value.pause():r.value.play()}function k(){s.value=!1,n.playIcon&&(d.value=!0),u("pause")}function y(){s.value=!0,n.playIcon&&(d.value=!1),u("play")}function v(){i.value&&(i.value=!1,r.value.currentTime=0),s.value||r.value.play()}function b(){s.value&&r.value.pause()}return t({play:v,pause:b}),(g,p)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["m-video",{"video-hover":d.value}]),style:e.normalizeStyle(`--video-width: ${c.value}; --video-height: ${f.value}; --video-icon-scale: ${g.iconSize/80};`)},[e.createElementVNode("video",e.mergeProps({ref_key:"veoRef",ref:r,class:"video-element",style:`object-fit: ${g.fit};`,src:g.src,poster:g.poster?g.poster:o.value,autoplay:g.autoplay,controls:!i.value&&g.controls,loop:g.loop,muted:g.autoplay||g.muted,preload:g.preload,crossorigin:"anonymous",onLoadedmetadata:p[0]||(p[0]=w=>g.poster?()=>!1:m()),onPause:p[1]||(p[1]=w=>k()),onPlay:p[2]||(p[2]=w=>y()),onClick:e.withModifiers(h,["prevent"])},g.$attrs)," 您的浏览器不支持video标签。 ",16,Gg),e.withDirectives(e.createElementVNode("span",{class:e.normalizeClass(["icon-play",{"icon-show":d.value}])},p[3]||(p[3]=[e.createElementVNode("svg",{class:"play-svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 34 34"},[e.createElementVNode("path",{d:`M28.26,11.961L11.035,0.813C7.464-1.498,3,1.391,3,6.013v21.974c0,4.622,4.464,7.511,8.035,5.2L28.26,22.039
|
|
114
|
-
C31.913,19.675,31.913,14.325,28.26,11.961z`})],-1)]),2),[[e.vShow,i.value||g.playIcon]])],6))}}),[["__scopeId","data-v-2bf18f3d"]])),Xg=["href","target"],Kg=["src","alt","onLoad"],dd=Se(Ee(e.defineComponent({__name:"Waterfall",props:{images:{default:()=>[]},columnCount:{default:3},columnGap:{default:20},width:{default:"100%"},borderRadius:{default:8},backgroundColor:{default:"#F2F4F8"},spinProps:{default:()=>({})}},setup(l){const t=l,a=e.ref(),n=e.ref(),r=e.ref(Array(t.images.length).fill(!1)),o=e.ref(),s=e.ref([]),i=e.ref(Array(t.columnCount).fill(0)),d=e.ref(0),u=e.computed(()=>typeof t.width=="number"?`${t.width}px`:t.width),c=e.computed(()=>Math.max(...i.value)+t.columnGap),f=e.computed(()=>t.images.length);e.watch(()=>[t.images,t.columnCount,t.columnGap,t.width],()=>{n.value=a.value.offsetWidth,i.value=Array(t.columnCount).fill(0),d.value++,h(d.value)},{deep:!0,flush:"post"}),e.onMounted(()=>{n.value=a.value.offsetWidth,h(d.value)});function m(){const g=a.value.offsetWidth;t.images.length&&g!==n.value&&(n.value=g,d.value++,h(d.value))}Dt(a,m);async function h(g){o.value=(n.value-(t.columnCount+1)*t.columnGap)/t.columnCount,s.value=[];for(let p=0;p<f.value;p++)if(g===d.value)await k(t.images[p].src,p);else return!1}function k(g,p){return new Promise(w=>{const V=new Image;V.src=g,V.onload=function(){const C=V.height/(V.width/o.value);s.value[p]={width:o.value,height:C,...y(p,C)},w("load")}})}function y(g,p){if(g<t.columnCount)return i.value[g]=t.columnGap+p,{top:t.columnGap,left:(o.value+t.columnGap)*g+t.columnGap};{const w=Math.min(...i.value);let V=0;for(let C=0;C<t.columnCount;C++)if(i.value[C]===w){V=C;break}return i.value[V]=w+t.columnGap+p,{top:w+t.columnGap,left:(o.value+t.columnGap)*V+t.columnGap}}}function v(g){r.value[g]=!0}function b(g){if(g){if(g.name)return g.name;{const p=g.src.split("?")[0].split("/");return p[p.length-1]}}}return(g,p)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"waterfallRef",ref:a,class:"m-waterfall",style:e.normalizeStyle(`--border-radius: ${g.borderRadius}px; background-color: ${g.backgroundColor}; width: ${u.value}; height: ${c.value}px;`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(w,V)=>(e.openBlock(),e.createBlock(e.unref(la),e.mergeProps({class:"waterfall-image",style:`width: ${w.width}px; height: ${w.height}px; top: ${w&&w.top}px; left: ${w&&w.left}px;`,spinning:!r.value[V],size:"small",indicator:"dynamic-circle",ref_for:!0},g.spinProps,{key:V}),{default:e.withCtx(()=>[e.createElementVNode("a",{class:e.normalizeClass(["image-link",{"link-cursor":g.images[V].link}]),href:g.images[V].link,target:g.images[V].target?g.images[V].target:"_blank"},[e.createElementVNode("img",{class:"image-item",src:g.images[V].src,alt:b(g.images[V]),onLoad:C=>v(V)},null,40,Kg)],10,Xg)]),_:2},1040,["style","spinning"]))),128))],4))}}),[["__scopeId","data-v-cc6560f9"]])),cd=3,ud=Se(e.defineComponent({__name:"Watermark",props:{width:{default:void 0},height:{default:void 0},layout:{default:"alternate"},rotate:{default:-22},zIndex:{default:90},image:{default:void 0},content:{default:void 0},fullscreen:{type:Boolean,default:!1},fixed:{type:Boolean,default:!0},textStyle:{default:()=>({color:"rgba(0, 0, 0, 0.15)",fontSize:16,fontWeight:"normal",fontFamily:"sans-serif",fontStyle:"normal"})},gap:{default:()=>[100,100]},offset:{default:()=>[50,50]}},setup(l){const t=l,a=e.shallowRef(),n=e.shallowRef(),r=e.shallowRef(document.documentElement),o=e.shallowRef(r.value.classList.contains("dark")),s=e.shallowRef(!1),i=e.computed(()=>{var N;return((N=t.gap)==null?void 0:N[0])??100}),d=e.computed(()=>{var N;return((N=t.gap)==null?void 0:N[1])??100}),u=e.computed(()=>i.value/2),c=e.computed(()=>d.value/2),f=e.computed(()=>{var N;return((N=t.offset)==null?void 0:N[0])??u.value}),m=e.computed(()=>{var N;return((N=t.offset)==null?void 0:N[1])??c.value}),h=e.computed(()=>({parallel:1,alternate:2})[t.layout]),k=e.computed(()=>t.fullscreen&&t.fixed),y=e.computed(()=>{const N={zIndex:t.zIndex??9,position:k.value?"fixed":"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};o.value&&(N.filter="invert(1) hue-rotate(180deg)");let x=f.value-u.value,z=m.value-c.value;return x>0&&(N.left=`${x}px`,N.width=`calc(100% - ${x}px)`,x=0),z>0&&(N.top=`${z}px`,N.height=`calc(100% - ${z}px)`,z=0),N.backgroundPosition=`${x}px ${z}px`,N});e.watch(()=>[t],()=>{$()},{deep:!0,flush:"post"}),e.onMounted(()=>{$()}),e.onBeforeUnmount(()=>{b()}),Xa(r,()=>{o.value=r.value.classList.contains("dark"),b(),$()},{attributeFilter:["class"]}),Xa(t.fullscreen?r:a,v,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["style","class"]});function v(N){s.value||N.forEach(x=>{M(x,n.value)&&(b(),$())})}function b(){n.value&&(n.value.remove(),n.value=void 0)}function g(N,x){var z;a.value&&n.value&&(s.value=!0,n.value.setAttribute("style",w({...y.value,backgroundImage:`url('${N}')`,backgroundSize:`${(i.value+x)*h.value}px`})),t.fullscreen?(r.value.setAttribute("style","position: relative"),r.value.append(n.value)):(z=a.value)==null||z.append(n.value),setTimeout(()=>{s.value=!1}))}function p(N){return N.replace(/([A-Z])/g,"-$1").toLowerCase()}function w(N){return Object.keys(N).map(x=>`${p(x)}: ${N[x]};`).join(" ")}function V(N){let x=120,z=64;const T=t.content,P=t.image,A=t.width,q=t.height,_=t.textStyle.fontSize??16,H=t.textStyle.fontFamily??"sans-serif";if(!P&&N.measureText){N.font=`${Number(_)}px ${H}`;const K=Array.isArray(T)?T:[T],O=K.map(Z=>N.measureText(Z).width);x=Math.ceil(Math.max(...O)),z=Number(_)*K.length+(K.length-1)*cd}return[A??x,q??z]}function C(){return window.devicePixelRatio||1}function S(N,x,z,T,P){const A=C(),q=t.content,_=t.textStyle.fontSize??16,H=t.textStyle.fontWeight??"normal",K=t.textStyle.fontFamily??"sans-serif",O=t.textStyle.fontStyle??"normal",Z=t.textStyle.color??"rgba(0, 0, 0, 0.15)",I=Number(_)*A;N.font=`${O} normal ${H} ${I}px/${P}px ${K}`,N.fillStyle=Z,N.textAlign="center",N.textBaseline="top",N.translate(T/2,0);const L=Array.isArray(q)?q:[q];L==null||L.forEach((F,Y)=>{N.fillText(F??"",x,z+Y*(I+cd*A))})}function $(){const N=document.createElement("canvas"),x=N.getContext("2d"),z=t.image,T=t.rotate??-22;if(x){n.value||(n.value=document.createElement("div"));const P=C(),[A,q]=V(x),_=(i.value+A)*P,H=(d.value+q)*P;N.setAttribute("width",`${_*h.value}px`),N.setAttribute("height",`${H*h.value}px`);const K=i.value*P/2,O=d.value*P/2,Z=A*P,I=q*P,L=(Z+i.value*P)/2,F=(I+d.value*P)/2,Y=K+_,E=O+H,W=L+_,oe=F+H;if(x.save(),B(x,L,F,T),z){const ye=new Image;ye.onload=()=>{x.drawImage(ye,K,O,Z,I),x.restore(),B(x,W,oe,T),x.drawImage(ye,Y,E,Z,I),g(N.toDataURL(),A)},ye.crossOrigin="anonymous",ye.referrerPolicy="no-referrer",ye.src=z}else S(x,K,O,Z,I),x.restore(),B(x,W,oe,T),S(x,Y,E,Z,I),g(N.toDataURL(),A)}}function B(N,x,z,T){N.translate(x,z),N.rotate(Math.PI/180*Number(T)),N.translate(-x,-z)}function M(N,x){let z=!1;return N.removedNodes.length&&(z=Array.from(N.removedNodes).some(T=>T===x)),N.type==="attributes"&&N.target===x&&(z=!0),z}return(N,x)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"containerRef",ref:a,class:"watermark-container"},[e.renderSlot(N.$slots,"default")],512))}})),Qg=Object.freeze(Object.defineProperty({__proto__:null,Alert:qr,Avatar:ln,BackTop:Ur,Badge:nn,Breadcrumb:jr,Button:dt,Card:Gr,Carousel:Zr,Cascader:Jr,Checkbox:Qa,Col:Ds,Collapse:eo,ColorPicker:io,Countdown:co,DatePicker:vs,Descriptions:Ss,DescriptionsItem:Cs,Dialog:Es,Divider:Bs,Drawer:$s,Ellipsis:Ta,Empty:ma,Flex:Ms,FloatButton:Ts,GradientText:xs,Image:tr,Input:hl,InputNumber:Ps,InputSearch:As,List:_s,ListItem:Ls,LoadingBar:Fs,Message:ar,Modal:Rs,Notification:Is,NumberAnimation:Os,Pagination:ql,Popconfirm:Hs,Popover:Ys,Progress:Ws,QRCode:Ci,Radio:jl,Rate:Ei,Result:Bi,Row:zs,Scrollbar:na,Segmented:$i,Select:Ka,Skeleton:rn,Slider:Mi,Space:Tl,Spin:la,Statistic:Ti,Steps:Ni,Swiper:Ji,Switch:ed,Table:td,Tabs:ad,Tag:ld,TextScroll:rd,Textarea:nd,Timeline:od,Tooltip:Pt,Upload:sd,Video:id,Waterfall:dd,Watermark:ud},Symbol.toStringTag,{value:"Module"})),fd={Alert:"alert",Avatar:"avatar",BackTop:"backtop",Badge:"badge",Breadcrumb:"breadcrumb",Button:"button",Card:"card",Carousel:"carousel",Cascader:"cascader",Checkbox:"checkbox",Collapse:"collapse",Countdown:"countdown",DatePicker:"datepicker",Descriptions:"descriptions/descriptions",DescriptionsItem:"descriptions/descriptionsitem",Dialog:"dialog",Divider:"divider",Drawer:"drawer",Ellipsis:"ellipsis",Empty:"empty",Flex:"flex",FloatButton:"floatbutton",GradientText:"gradienttext",Row:"grid/row",Col:"grid/col",Image:"image",Input:"input",InputNumber:"inputnumber",InputSearch:"inputsearch",Layout:"layout",LayoutHeader:"layout/layoutheader",LayoutSider:"layout/layoutsider",LayoutContent:"layout/layoutcontent",LayoutFooter:"layout/layoutfooter",List:"list/list",ListItem:"list/listitem",LoadingBar:"loadingbar",Message:"message",Modal:"modal",Notification:"notification",NumberAnimation:"numberanimation",Pagination:"pagination",Popconfirm:"popconfirm",Popover:"popover",Progress:"progress",QRCode:"qrcode",Radio:"radio",Rate:"rate",Result:"result",Scrollbar:"scrollbar",Segmented:"segmented",Select:"select",Skeleton:"skeleton",Slider:"slider",Space:"space",Spin:"spin",Statistic:"statistic",Steps:"steps",Swiper:"swiper",Switch:"switch",Table:"table",Tabs:"tabs",Tag:"tag",Textarea:"textarea",TextScroll:"textscroll",Timeline:"timeline",TimePicker:"timepicker",Tooltip:"tooltip",Upload:"upload",Video:"video",Waterfall:"waterfall",Watermark:"watermark"};function Zg(l,t){const a=t!=null&&t.cjs?"lib":"es",n=[`vue-amazing-ui/${a}/${fd[l]}/${l}.css`];return["ListItem"].includes(l)&&n.push(`vue-amazing-ui/${a}/avatar/Avatar.css`),["FloatButton"].includes(l)&&n.push(`vue-amazing-ui/${a}/badge/Badge.css`),["Collapse","ColorPicker","Dialog","InputSearch","Modal","Popconfirm"].includes(l)&&n.push(`vue-amazing-ui/${a}/button/Button.css`),["Table"].includes(l)&&n.push(`vue-amazing-ui/${a}/checkbox/Checkbox.css`),["Table"].includes(l)&&n.push(`vue-amazing-ui/${a}/ellipsis/Ellipsis.css`),["List","Select","Table"].includes(l)&&n.push(`vue-amazing-ui/${a}/empty/Empty.css`),["Upload"].includes(l)&&n.push(`vue-amazing-ui/${a}/image/Image.css`),["ColorPicker","Pagination"].includes(l)&&n.push(`vue-amazing-ui/${a}/input/Input.css`),["Upload"].includes(l)&&n.push(`vue-amazing-ui/${a}/message/Message.css`),["List","Table"].includes(l)&&n.push(`vue-amazing-ui/${a}/pagination/Pagination.css`),["Table"].includes(l)&&n.push(`vue-amazing-ui/${a}/radio/Radio.css`),["Dialog","Drawer","Select","Table"].includes(l)&&n.push(`vue-amazing-ui/${a}/scrollbar/Scrollbar.css`),["Cascader","Pagination"].includes(l)&&n.push(`vue-amazing-ui/${a}/select/Select.css`),["Card"].includes(l)&&n.push(`vue-amazing-ui/${a}/skeleton/Skeleton.css`),["Image","Tag","Upload"].includes(l)&&n.push(`vue-amazing-ui/${a}/space/Space.css`),["Carousel","Image","List","Table","Upload","Waterfall"].includes(l)&&n.push(`vue-amazing-ui/${a}/spin/Spin.css`),["BackTop","ColorPicker","Ellipsis","FloatButton","Popconfirm","Popover","Rate","Table"].includes(l)&&n.push(`vue-amazing-ui/${a}/tooltip/Tooltip.css`),n}function Jg(l){return{type:"component",resolve:t=>{if(t in fd)return{name:t,from:"vue-amazing-ui",sideEffects:Zg(t,l)}}}}const pd=function(l){return Object.values(Qg).forEach(t=>{t.install&&l.use(t)}),l},e3={install:pd};return he.Alert=qr,he.Avatar=ln,he.BackTop=Ur,he.Badge=nn,he.Breadcrumb=jr,he.Button=dt,he.Card=Gr,he.Carousel=Zr,he.Cascader=Jr,he.Checkbox=Qa,he.Col=Ds,he.Collapse=eo,he.ColorPicker=io,he.Countdown=co,he.DatePicker=vs,he.Descriptions=Ss,he.DescriptionsItem=Cs,he.Dialog=Es,he.Divider=Bs,he.Drawer=$s,he.Ellipsis=Ta,he.Empty=ma,he.Flex=Ms,he.FloatButton=Ts,he.GradientText=xs,he.Image=tr,he.Input=hl,he.InputNumber=Ps,he.InputSearch=As,he.List=_s,he.ListItem=Ls,he.LoadingBar=Fs,he.Message=ar,he.Modal=Rs,he.Notification=Is,he.NumberAnimation=Os,he.Pagination=ql,he.Popconfirm=Hs,he.Popover=Ys,he.Progress=Ws,he.QRCode=Ci,he.Radio=jl,he.Rate=Ei,he.Result=Bi,he.Row=zs,he.Scrollbar=na,he.Segmented=$i,he.Select=Ka,he.Skeleton=rn,he.Slider=Mi,he.Space=Tl,he.Spin=la,he.Statistic=Ti,he.Steps=Ni,he.Swiper=Ji,he.Switch=ed,he.Table=td,he.Tabs=ad,he.Tag=ld,he.TextScroll=rd,he.Textarea=nd,he.Timeline=od,he.Tooltip=Pt,he.Upload=sd,he.Video=id,he.VueAmazingUIResolver=Jg,he.Waterfall=dd,he.Watermark=ud,he.add=Ga,he.cancelRaf=pt,he.dateFormat=ja,he.debounce=xa,he.default=e3,he.downloadFile=vd,he.formatNumber=an,he.install=pd,he.rafTimeout=qt,he.throttle=Hr,he.toggleDark=Sd,he.useEventListener=za,he.useFps=Ed,he.useMediaQuery=Bd,he.useMutationObserver=Xa,he.useResizeObserver=Dt,he.useScroll=Wr,he.useSlotsExist=Fe,Object.defineProperties(he,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),he}({},Vue);
|
|
114
|
+
C31.913,19.675,31.913,14.325,28.26,11.961z`})],-1)]),2),[[e.vShow,i.value||g.playIcon]])],6))}}),[["__scopeId","data-v-2bf18f3d"]])),Xg=["href","target"],Kg=["src","alt","onLoad"],dd=Se(Ee(e.defineComponent({__name:"Waterfall",props:{images:{default:()=>[]},columnCount:{default:3},columnGap:{default:20},width:{default:"100%"},borderRadius:{default:8},backgroundColor:{default:"#F2F4F8"},spinProps:{default:()=>({})}},setup(l){const t=l,a=e.ref(),n=e.ref(),r=e.ref(Array(t.images.length).fill(!1)),o=e.ref(),s=e.ref([]),i=e.ref(Array(t.columnCount).fill(0)),d=e.ref(0),u=e.computed(()=>typeof t.width=="number"?`${t.width}px`:t.width),c=e.computed(()=>Math.max(...i.value)+t.columnGap),f=e.computed(()=>t.images.length);e.watch(()=>[t.images,t.columnCount,t.columnGap,t.width],()=>{n.value=a.value.offsetWidth,i.value=Array(t.columnCount).fill(0),d.value++,h(d.value)},{deep:!0,flush:"post"}),e.onMounted(()=>{n.value=a.value.offsetWidth,h(d.value)});function m(){const g=a.value.offsetWidth;t.images.length&&g!==n.value&&(n.value=g,d.value++,h(d.value))}Dt(a,m);async function h(g){o.value=(n.value-(t.columnCount+1)*t.columnGap)/t.columnCount,s.value=[];for(let p=0;p<f.value;p++)if(g===d.value)await k(t.images[p].src,p);else return!1}function k(g,p){return new Promise(w=>{const V=new Image;V.src=g,V.onload=function(){const C=V.height/(V.width/o.value);s.value[p]={width:o.value,height:C,...y(p,C)},w("load")}})}function y(g,p){if(g<t.columnCount)return i.value[g]=t.columnGap+p,{top:t.columnGap,left:(o.value+t.columnGap)*g+t.columnGap};{const w=Math.min(...i.value);let V=0;for(let C=0;C<t.columnCount;C++)if(i.value[C]===w){V=C;break}return i.value[V]=w+t.columnGap+p,{top:w+t.columnGap,left:(o.value+t.columnGap)*V+t.columnGap}}}function v(g){r.value[g]=!0}function b(g){if(g){if(g.name)return g.name;{const p=g.src.split("?")[0].split("/");return p[p.length-1]}}}return(g,p)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"waterfallRef",ref:a,class:"m-waterfall",style:e.normalizeStyle(`--border-radius: ${g.borderRadius}px; background-color: ${g.backgroundColor}; width: ${u.value}; height: ${c.value}px;`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(w,V)=>(e.openBlock(),e.createBlock(e.unref(la),e.mergeProps({class:"waterfall-image",style:`width: ${w.width}px; height: ${w.height}px; top: ${w&&w.top}px; left: ${w&&w.left}px;`,spinning:!r.value[V],size:"small",indicator:"dynamic-circle",ref_for:!0},g.spinProps,{key:V}),{default:e.withCtx(()=>[e.createElementVNode("a",{class:e.normalizeClass(["image-link",{"link-cursor":g.images[V].link}]),href:g.images[V].link,target:g.images[V].target?g.images[V].target:"_blank"},[e.createElementVNode("img",{class:"image-item",src:g.images[V].src,alt:b(g.images[V]),onLoad:C=>v(V)},null,40,Kg)],10,Xg)]),_:2},1040,["style","spinning"]))),128))],4))}}),[["__scopeId","data-v-cc6560f9"]])),cd=3,ud=Se(e.defineComponent({__name:"Watermark",props:{width:{default:void 0},height:{default:void 0},layout:{default:"alternate"},rotate:{default:-22},zIndex:{default:90},image:{default:void 0},content:{default:void 0},fullscreen:{type:Boolean,default:!1},fixed:{type:Boolean,default:!0},textStyle:{default:()=>({color:"rgba(0, 0, 0, 0.15)",fontSize:16,fontWeight:"normal",fontFamily:"sans-serif",fontStyle:"normal"})},gap:{default:()=>[100,100]},offset:{default:()=>[50,50]}},setup(l){const t=l,a=e.shallowRef(),n=e.shallowRef(),r=e.shallowRef(document.documentElement),o=e.shallowRef(r.value.classList.contains("dark")),s=e.shallowRef(!1),i=e.computed(()=>{var N;return((N=t.gap)==null?void 0:N[0])??100}),d=e.computed(()=>{var N;return((N=t.gap)==null?void 0:N[1])??100}),u=e.computed(()=>i.value/2),c=e.computed(()=>d.value/2),f=e.computed(()=>{var N;return((N=t.offset)==null?void 0:N[0])??u.value}),m=e.computed(()=>{var N;return((N=t.offset)==null?void 0:N[1])??c.value}),h=e.computed(()=>({parallel:1,alternate:2})[t.layout]),k=e.computed(()=>t.fullscreen&&t.fixed),y=e.computed(()=>{const N={zIndex:t.zIndex??9,position:k.value?"fixed":"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};o.value&&(N.filter="invert(1) hue-rotate(180deg)");let x=f.value-u.value,z=m.value-c.value;return x>0&&(N.left=`${x}px`,N.width=`calc(100% - ${x}px)`,x=0),z>0&&(N.top=`${z}px`,N.height=`calc(100% - ${z}px)`,z=0),N.backgroundPosition=`${x}px ${z}px`,N});e.watch(()=>[t],()=>{$()},{deep:!0,flush:"post"}),e.onMounted(()=>{$()}),e.onBeforeUnmount(()=>{b()}),Xa(r,()=>{o.value=r.value.classList.contains("dark"),b(),$()},{attributeFilter:["class"]}),Xa(t.fullscreen?r:a,v,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["style","class"]});function v(N){s.value||N.forEach(x=>{M(x,n.value)&&(b(),$())})}function b(){n.value&&(n.value.remove(),n.value=void 0)}function g(N,x){var z;a.value&&n.value&&(s.value=!0,n.value.setAttribute("style",w({...y.value,backgroundImage:`url('${N}')`,backgroundSize:`${(i.value+x)*h.value}px`})),t.fullscreen?(r.value.setAttribute("style","position: relative"),r.value.append(n.value)):(z=a.value)==null||z.append(n.value),setTimeout(()=>{s.value=!1}))}function p(N){return N.replace(/([A-Z])/g,"-$1").toLowerCase()}function w(N){return Object.keys(N).map(x=>`${p(x)}: ${N[x]};`).join(" ")}function V(N){let x=120,z=64;const T=t.content,P=t.image,A=t.width,q=t.height,_=t.textStyle.fontSize??16,H=t.textStyle.fontFamily??"sans-serif";if(!P&&N.measureText){N.font=`${Number(_)}px ${H}`;const K=Array.isArray(T)?T:[T],O=K.map(Z=>N.measureText(Z).width);x=Math.ceil(Math.max(...O)),z=Number(_)*K.length+(K.length-1)*cd}return[A??x,q??z]}function C(){return window.devicePixelRatio||1}function S(N,x,z,T,P){const A=C(),q=t.content,_=t.textStyle.fontSize??16,H=t.textStyle.fontWeight??"normal",K=t.textStyle.fontFamily??"sans-serif",O=t.textStyle.fontStyle??"normal",Z=t.textStyle.color??"rgba(0, 0, 0, 0.15)",I=Number(_)*A;N.font=`${O} normal ${H} ${I}px/${P}px ${K}`,N.fillStyle=Z,N.textAlign="center",N.textBaseline="top",N.translate(T/2,0);const L=Array.isArray(q)?q:[q];L==null||L.forEach((F,Y)=>{N.fillText(F??"",x,z+Y*(I+cd*A))})}function $(){const N=document.createElement("canvas"),x=N.getContext("2d"),z=t.image,T=t.rotate??-22;if(x){n.value||(n.value=document.createElement("div"));const P=C(),[A,q]=V(x),_=(i.value+A)*P,H=(d.value+q)*P;N.setAttribute("width",`${_*h.value}px`),N.setAttribute("height",`${H*h.value}px`);const K=i.value*P/2,O=d.value*P/2,Z=A*P,I=q*P,L=(Z+i.value*P)/2,F=(I+d.value*P)/2,Y=K+_,E=O+H,W=L+_,oe=F+H;if(x.save(),B(x,L,F,T),z){const ye=new Image;ye.onload=()=>{x.drawImage(ye,K,O,Z,I),x.restore(),B(x,W,oe,T),x.drawImage(ye,Y,E,Z,I),g(N.toDataURL(),A)},ye.crossOrigin="anonymous",ye.referrerPolicy="no-referrer",ye.src=z}else S(x,K,O,Z,I),x.restore(),B(x,W,oe,T),S(x,Y,E,Z,I),g(N.toDataURL(),A)}}function B(N,x,z,T){N.translate(x,z),N.rotate(Math.PI/180*Number(T)),N.translate(-x,-z)}function M(N,x){let z=!1;return N.removedNodes.length&&(z=Array.from(N.removedNodes).some(T=>T===x)),N.type==="attributes"&&N.target===x&&(z=!0),z}return(N,x)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"containerRef",ref:a,class:"watermark-container"},[e.renderSlot(N.$slots,"default")],512))}})),Qg=Object.freeze(Object.defineProperty({__proto__:null,Alert:qr,Avatar:ln,BackTop:Ur,Badge:nn,Breadcrumb:jr,Button:dt,Card:Gr,Carousel:Zr,Cascader:Jr,Checkbox:Qa,Col:Ds,Collapse:eo,ColorPicker:io,Countdown:co,DatePicker:vs,Descriptions:Ss,DescriptionsItem:Cs,Dialog:Es,Divider:Bs,Drawer:$s,Ellipsis:Ta,Empty:ma,Flex:Ms,FloatButton:Ts,GradientText:xs,Image:tr,Input:hl,InputNumber:Ps,InputSearch:As,List:_s,ListItem:Ls,LoadingBar:Fs,Message:ar,Modal:Rs,Notification:Is,NumberAnimation:Os,Pagination:ql,Popconfirm:Hs,Popover:Ys,Progress:Ws,QRCode:Ci,Radio:jl,Rate:Ei,Result:Bi,Row:zs,Scrollbar:na,Segmented:$i,Select:Ka,Skeleton:rn,Slider:Mi,Space:Tl,Spin:la,Statistic:Ti,Steps:Ni,Swiper:Ji,Switch:ed,Table:td,Tabs:ad,Tag:ld,TextScroll:rd,Textarea:nd,Timeline:od,Tooltip:Pt,Upload:sd,Video:id,Waterfall:dd,Watermark:ud},Symbol.toStringTag,{value:"Module"})),fd={Alert:"alert",Avatar:"avatar",BackTop:"backtop",Badge:"badge",Breadcrumb:"breadcrumb",Button:"button",Calendar:"calendar",Card:"card",Carousel:"carousel",Cascader:"cascader",Checkbox:"checkbox",Collapse:"collapse",ColorPicker:"colorpicker",Countdown:"countdown",DatePicker:"datepicker",Descriptions:"descriptions/descriptions",DescriptionsItem:"descriptions/descriptionsitem",Dialog:"dialog",Divider:"divider",Drawer:"drawer",Ellipsis:"ellipsis",Empty:"empty",Flex:"flex",FloatButton:"floatbutton",GradientText:"gradienttext",Row:"grid/row",Col:"grid/col",Image:"image",Input:"input",InputNumber:"inputnumber",InputSearch:"inputsearch",Layout:"layout",LayoutHeader:"layout/layoutheader",LayoutSider:"layout/layoutsider",LayoutContent:"layout/layoutcontent",LayoutFooter:"layout/layoutfooter",List:"list/list",ListItem:"list/listitem",LoadingBar:"loadingbar",Message:"message",Modal:"modal",Notification:"notification",NumberAnimation:"numberanimation",Pagination:"pagination",Popconfirm:"popconfirm",Popover:"popover",Progress:"progress",QRCode:"qrcode",Radio:"radio",Rate:"rate",Result:"result",Scrollbar:"scrollbar",Segmented:"segmented",Select:"select",Skeleton:"skeleton",Slider:"slider",Space:"space",Spin:"spin",Statistic:"statistic",Steps:"steps",Swiper:"swiper",Switch:"switch",Table:"table",Tabs:"tabs",Tag:"tag",Textarea:"textarea",TextScroll:"textscroll",Timeline:"timeline",TimePicker:"timepicker",Tooltip:"tooltip",Upload:"upload",Video:"video",Waterfall:"waterfall",Watermark:"watermark"};function Zg(l,t){const a=t!=null&&t.cjs?"lib":"es",n=[`vue-amazing-ui/${a}/${fd[l]}/${l}.css`];return["ListItem"].includes(l)&&n.push(`vue-amazing-ui/${a}/avatar/Avatar.css`),["FloatButton"].includes(l)&&n.push(`vue-amazing-ui/${a}/badge/Badge.css`),["Collapse","ColorPicker","Dialog","InputSearch","Modal","Popconfirm"].includes(l)&&n.push(`vue-amazing-ui/${a}/button/Button.css`),["Table"].includes(l)&&n.push(`vue-amazing-ui/${a}/checkbox/Checkbox.css`),["Table"].includes(l)&&n.push(`vue-amazing-ui/${a}/ellipsis/Ellipsis.css`),["List","Select","Table"].includes(l)&&n.push(`vue-amazing-ui/${a}/empty/Empty.css`),["Upload"].includes(l)&&n.push(`vue-amazing-ui/${a}/image/Image.css`),["ColorPicker","Pagination"].includes(l)&&n.push(`vue-amazing-ui/${a}/input/Input.css`),["Upload"].includes(l)&&n.push(`vue-amazing-ui/${a}/message/Message.css`),["List","Table"].includes(l)&&n.push(`vue-amazing-ui/${a}/pagination/Pagination.css`),["Table"].includes(l)&&n.push(`vue-amazing-ui/${a}/radio/Radio.css`),["Dialog","Drawer","Select","Table"].includes(l)&&n.push(`vue-amazing-ui/${a}/scrollbar/Scrollbar.css`),["Cascader","Pagination"].includes(l)&&n.push(`vue-amazing-ui/${a}/select/Select.css`),["Card"].includes(l)&&n.push(`vue-amazing-ui/${a}/skeleton/Skeleton.css`),["Image","Tag","Upload"].includes(l)&&n.push(`vue-amazing-ui/${a}/space/Space.css`),["Carousel","Image","List","Table","Upload","Waterfall"].includes(l)&&n.push(`vue-amazing-ui/${a}/spin/Spin.css`),["BackTop","ColorPicker","Ellipsis","FloatButton","Popconfirm","Popover","Rate","Table"].includes(l)&&n.push(`vue-amazing-ui/${a}/tooltip/Tooltip.css`),n}function Jg(l){return{type:"component",resolve:t=>{if(t in fd)return{name:t,from:"vue-amazing-ui",sideEffects:Zg(t,l)}}}}const pd=function(l){return Object.values(Qg).forEach(t=>{t.install&&l.use(t)}),l},e3={install:pd};return he.Alert=qr,he.Avatar=ln,he.BackTop=Ur,he.Badge=nn,he.Breadcrumb=jr,he.Button=dt,he.Card=Gr,he.Carousel=Zr,he.Cascader=Jr,he.Checkbox=Qa,he.Col=Ds,he.Collapse=eo,he.ColorPicker=io,he.Countdown=co,he.DatePicker=vs,he.Descriptions=Ss,he.DescriptionsItem=Cs,he.Dialog=Es,he.Divider=Bs,he.Drawer=$s,he.Ellipsis=Ta,he.Empty=ma,he.Flex=Ms,he.FloatButton=Ts,he.GradientText=xs,he.Image=tr,he.Input=hl,he.InputNumber=Ps,he.InputSearch=As,he.List=_s,he.ListItem=Ls,he.LoadingBar=Fs,he.Message=ar,he.Modal=Rs,he.Notification=Is,he.NumberAnimation=Os,he.Pagination=ql,he.Popconfirm=Hs,he.Popover=Ys,he.Progress=Ws,he.QRCode=Ci,he.Radio=jl,he.Rate=Ei,he.Result=Bi,he.Row=zs,he.Scrollbar=na,he.Segmented=$i,he.Select=Ka,he.Skeleton=rn,he.Slider=Mi,he.Space=Tl,he.Spin=la,he.Statistic=Ti,he.Steps=Ni,he.Swiper=Ji,he.Switch=ed,he.Table=td,he.Tabs=ad,he.Tag=ld,he.TextScroll=rd,he.Textarea=nd,he.Timeline=od,he.Tooltip=Pt,he.Upload=sd,he.Video=id,he.VueAmazingUIResolver=Jg,he.Waterfall=dd,he.Watermark=ud,he.add=Ga,he.cancelRaf=pt,he.dateFormat=ja,he.debounce=xa,he.default=e3,he.downloadFile=vd,he.formatNumber=an,he.install=pd,he.rafTimeout=qt,he.throttle=Hr,he.toggleDark=Sd,he.useEventListener=za,he.useFps=Ed,he.useMediaQuery=Bd,he.useMutationObserver=Xa,he.useResizeObserver=Dt,he.useScroll=Wr,he.useSlotsExist=Fe,Object.defineProperties(he,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),he}({},Vue);
|
package/dist/index.js
CHANGED
|
@@ -11686,11 +11686,13 @@ const si = /* @__PURE__ */ ve({
|
|
|
11686
11686
|
Badge: "badge",
|
|
11687
11687
|
Breadcrumb: "breadcrumb",
|
|
11688
11688
|
Button: "button",
|
|
11689
|
+
Calendar: "calendar",
|
|
11689
11690
|
Card: "card",
|
|
11690
11691
|
Carousel: "carousel",
|
|
11691
11692
|
Cascader: "cascader",
|
|
11692
11693
|
Checkbox: "checkbox",
|
|
11693
11694
|
Collapse: "collapse",
|
|
11695
|
+
ColorPicker: "colorpicker",
|
|
11694
11696
|
Countdown: "countdown",
|
|
11695
11697
|
DatePicker: "datepicker",
|
|
11696
11698
|
Descriptions: "descriptions/descriptions",
|
package/dist/index.umd.cjs
CHANGED
|
@@ -100,4 +100,4 @@
|
|
|
100
100
|
--scroll-delay: 0s;
|
|
101
101
|
--scroll-iteration-count: infinite;
|
|
102
102
|
`]),onMouseenter:G[0]||(G[0]=K=>H.pauseOnMouseEnter?V():()=>!1),onMouseleave:G[1]||(G[1]=K=>H.pauseOnMouseEnter?N():()=>!1)},[e.createElementVNode("div",{ref_key:"groupRef",ref:o,class:e.normalizeClass(["scroll-items-group",{"scroll-items-reset":E.value}]),onAnimationiteration:z},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(K,_)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(K.href?"a":"div"),{class:e.normalizeClass(["scroll-item",{"href-item":K.href}]),style:e.normalizeStyle([H.itemStyle,`width: ${u.value}px;`]),key:_,title:K.title,href:K.href,target:K.target,onClick:F=>I(K)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(K.title),1)]),_:2},1032,["class","style","title","href","target","onClick"]))),128))],34),e.createElementVNode("div",{class:e.normalizeClass(["scroll-items-group",{"scroll-items-reset":E.value}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(K,_)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(K.href?"a":"div"),{class:e.normalizeClass(["scroll-item",{"href-item":K.href}]),style:e.normalizeStyle([H.itemStyle,`width: ${u.value}px;`]),key:_,title:K.title,href:K.href,target:K.target,onClick:F=>I(K)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(K.title),1)]),_:2},1032,["class","style","title","href","target","onClick"]))),128))],2)],36))}}),[["__scopeId","data-v-2c649d2c"]])),vl=te(le(e.defineComponent({__name:"Timeline",props:{items:{default:()=>[]},width:{default:"100%"},lineStyle:{default:"solid"},mode:{default:"left"},position:{default:"left"}},setup(k){const a=k,t=e.ref(),l=e.ref([]),n=e.computed(()=>typeof a.width=="number"?`${a.width}px`:a.width),s=e.computed(()=>a.items.length);function r(){for(let o=0;o<s.value;o++)l.value[o]=getComputedStyle(t.value[o].firstElementChild||t.value[o],null).getPropertyValue("line-height")}return e.watchEffect(()=>{r()},{flush:"post"}),e.watchEffect(()=>{if(a.mode==="center")for(let o=0;o<s.value;o++)(o+1)%2?a.position==="left"?t.value[o].classList.add("desc-alternate-left"):t.value[o].classList.add("desc-alternate-right"):a.position==="left"?t.value[o].classList.add("desc-alternate-right"):t.value[o].classList.add("desc-alternate-left")},{flush:"post"}),(o,d)=>(e.openBlock(),e.createElementBlock("div",{class:"m-timeline",style:e.normalizeStyle(`width: ${n.value};`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,(c,E)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["timeline-item",{"item-last":E===o.items.length-1}]),key:E},[e.createElementVNode("span",{class:e.normalizeClass(["timeline-tail",`tail-${o.mode}`]),style:e.normalizeStyle(`border-left-style: ${o.lineStyle};`)},null,6),e.createElementVNode("div",{class:e.normalizeClass(["timeline-dot",`dot-${o.mode}`]),style:e.normalizeStyle(`height: ${l.value[E]}`)},[e.renderSlot(o.$slots,"dot",{item:c,index:E},()=>[c.color==="red"?(e.openBlock(),e.createElementBlock("span",{key:0,class:"dot-item",style:e.normalizeStyle({borderColor:"#ff4d4f"})},null,4)):c.color==="gray"?(e.openBlock(),e.createElementBlock("span",{key:1,class:"dot-item",style:e.normalizeStyle({borderColor:"#00000040"})},null,4)):c.color==="green"?(e.openBlock(),e.createElementBlock("span",{key:2,class:"dot-item",style:e.normalizeStyle({borderColor:"#52c41a"})},null,4)):c.color==="blue"?(e.openBlock(),e.createElementBlock("span",{key:3,class:"dot-item",style:e.normalizeStyle({borderColor:"#1677ff"})},null,4)):(e.openBlock(),e.createElementBlock("span",{key:4,class:"dot-item",style:e.normalizeStyle({borderColor:c.color||"#1677ff"})},null,4))],!0)],6),e.createElementVNode("div",{ref_for:!0,ref_key:"descRef",ref:t,class:e.normalizeClass(`timeline-desc desc-${o.mode}`)},[e.renderSlot(o.$slots,"desc",{item:c,index:E},()=>[e.createTextVNode(e.toDisplayString(c.desc||"--"),1)],!0)],2)],2))),128))],4))}}),[["__scopeId","data-v-c9112a5f"]])),xi={class:"m-upload-wrap"},Hi=["onDrop","onClick"],Wi=["accept","multiple","onChange"],Ii={class:"upload-tip"},Oi={class:"file-uploading"},ji={key:0,class:"file-preview"},Ui={key:1,class:"file-svg",focusable:"false","data-icon":"file-pdf",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"64 64 896 896"},Ki={key:2,class:"file-svg",focusable:"false","data-icon":"file",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"64 64 896 896"},Yi={class:"file-mask"},qi=["onClick"],Xi=["onClick"],zl=te(le(e.defineComponent({__name:"Upload",props:{accept:{default:"*"},multiple:{type:Boolean,default:!1},maxCount:{default:void 0},tip:{default:"Upload"},fit:{default:"contain"},draggable:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},spaceProps:{default:()=>({})},spinProps:{default:()=>({})},imageProps:{default:()=>({})},messageProps:{default:()=>({})},actionMessage:{default:()=>({upload:"上传成功",remove:"删除成功"})},beforeUpload:{type:Function,default:()=>!0},uploadMode:{default:"base64"},customRequest:{type:Function,default:()=>{}},fileList:{default:()=>[]}},emits:["update:fileList","drop","change","preview","remove"],setup(k,{expose:a,emit:t}){const l=k,n=e.ref([]),s=e.ref(1),r=e.ref([]),o=e.ref(),d=e.ref(),c=e.ref(),E=t,g=e.computed(()=>l.maxCount===void 0?1/0:l.maxCount);e.watchEffect(()=>{y()});function y(){n.value=[...l.fileList],n.value.length>g.value&&n.value.splice(g.value),l.disabled?s.value=n.value.length:n.value.length<g.value?s.value=l.fileList.length+1:s.value=g.value}function S(V){const L=/\.(jpg|jpeg|png|gif)$/i,H=/^data:image/;return L.test(V)||H.test(V)}function C(V){const L=/\.pdf$/i,H=/^data:application\/pdf/;return L.test(V)||H.test(V)}function f(V,L){var G;const H=(G=V.dataTransfer)==null?void 0:G.files;if(H!=null&&H.length){const K=H.length;for(let _=0;_<K&&L+_<=g.value;_++)B(H[_],L+_);o.value[L].value=""}E("drop",V)}function i(V){o.value[V].click()}function b(V,L){const H=V.target.files;if(H!=null&&H.length){const G=H.length;for(let K=0;K<G&&L+K<g.value;K++)B(H[K],L+K);o.value[L].value=""}}const B=async(V,L)=>{new Promise((G,K)=>{try{const _=l.beforeUpload(V);_ instanceof Promise?_.then(G,K):typeof _=="boolean"?_?G(_):K(new Error("Function returned false")):G(_)}catch(_){K(_)}}).then(()=>{g.value>s.value&&s.value++,l.uploadMode==="base64"&&(r.value[L]=!0,u(V,L)),l.uploadMode==="custom"&&(r.value[L]=!0,m(V,L))}).catch(G=>{console.log("beforeUpload error:",G)})};function u(V,L){var H=new FileReader;H.readAsDataURL(V),H.onloadstart=function(G){},H.onabort=function(G){},H.onerror=function(G){},H.onprogress=function(G){G.loaded===G.total&&(r.value[L]=!1)},H.onload=function(G){var K;n.value.push({name:V.name,url:(K=G.target)==null?void 0:K.result}),l.actionMessage.upload&&c.value.success(l.actionMessage.upload),E("update:fileList",n.value),E("change",n.value)},H.onloadend=function(G){}}function m(V,L){l.customRequest(V).then(H=>{n.value.push(H),l.actionMessage.upload&&c.value.success(l.actionMessage.upload),E("update:fileList",n.value),E("change",n.value)}).catch(H=>{g.value>1&&(s.value=n.value.length+1),c.value.error(H)}).finally(()=>{r.value[L]=!1})}function D(V,L){if(S(L)){const H=n.value.slice(0,V).filter(G=>!S(G.url));d.value[V-H.length].preview(0)}else window.open(L);E("preview",n.value[V])}function h(V){n.value.length<g.value&&s.value--;const L=n.value.splice(V,1);l.actionMessage.remove&&c.value.success(l.actionMessage.remove),E("remove",L[0]),E("update:fileList",n.value),E("change",n.value)}function p(V){c.value.info(V)}function z(V){c.value.success(V)}function P(V){c.value.error(V)}function I(V){c.value.warning(V)}function N(V){c.value.loading(V)}return a({info:p,success:z,error:P,warning:I,loading:N}),(V,L)=>(e.openBlock(),e.createElementBlock("div",xi,[e.createVNode(e.unref(mt),e.mergeProps({gap:"small"},V.spaceProps),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,H=>(e.openBlock(),e.createElementBlock("div",{class:"upload-item-panel",key:H},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["upload-item",{"upload-disabled":V.disabled}]),onDragenter:L[1]||(L[1]=e.withModifiers(()=>{},["stop","prevent"])),onDragover:L[2]||(L[2]=e.withModifiers(()=>{},["stop","prevent"])),onDrop:e.withModifiers(G=>V.draggable&&!V.disabled?f(G,H-1):()=>!1,["stop","prevent"]),onClick:G=>V.disabled?()=>!1:i(H-1)},[e.createElementVNode("input",{ref_for:!0,ref_key:"uploadInputRef",ref:o,type:"file",onClick:L[0]||(L[0]=e.withModifiers(()=>{},["stop"])),accept:V.accept,multiple:V.multiple,onChange:G=>b(G,H-1),style:{display:"none"}},null,40,Wi),e.createElementVNode("div",null,[L[3]||(L[3]=e.createElementVNode("svg",{focusable:"false",class:"plus-svg","data-icon":"plus",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"64 64 896 896"},[e.createElementVNode("defs"),e.createElementVNode("path",{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}),e.createElementVNode("path",{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"})],-1)),e.createElementVNode("p",Ii,[e.renderSlot(V.$slots,"tip",{},()=>[e.createTextVNode(e.toDisplayString(V.tip),1)],!0)])])],42,Hi),[[e.vShow,!r.value[H-1]&&!n.value[H-1]]]),e.withDirectives(e.createElementVNode("div",Oi,[e.createVNode(e.unref(Ze),e.mergeProps({class:"spin-uploading",tip:"uploading",size:"small",indicator:"spin-line",ref_for:!0},V.spinProps),null,16)],512),[[e.vShow,r.value[H-1]]]),n.value[H-1]?(e.openBlock(),e.createElementBlock("div",ji,[S(n.value[H-1].url)?(e.openBlock(),e.createBlock(e.unref(zt),e.mergeProps({key:0,ref_for:!0,ref_key:"imageRef",ref:d,bordered:!1,width:82,height:82,fit:V.fit,src:n.value[H-1].url,name:n.value[H-1].name},V.imageProps),null,16,["fit","src","name"])):C(n.value[H-1].url)?(e.openBlock(),e.createElementBlock("svg",Ui,L[4]||(L[4]=[e.createElementVNode("path",{d:"M531.3 574.4l.3-1.4c5.8-23.9 13.1-53.7 7.4-80.7-3.8-21.3-19.5-29.6-32.9-30.2-15.8-.7-29.9 8.3-33.4 21.4-6.6 24-.7 56.8 10.1 98.6-13.6 32.4-35.3 79.5-51.2 107.5-29.6 15.3-69.3 38.9-75.2 68.7-1.2 5.5.2 12.5 3.5 18.8 3.7 7 9.6 12.4 16.5 15 3 1.1 6.6 2 10.8 2 17.6 0 46.1-14.2 84.1-79.4 5.8-1.9 11.8-3.9 17.6-5.9 27.2-9.2 55.4-18.8 80.9-23.1 28.2 15.1 60.3 24.8 82.1 24.8 21.6 0 30.1-12.8 33.3-20.5 5.6-13.5 2.9-30.5-6.2-39.6-13.2-13-45.3-16.4-95.3-10.2-24.6-15-40.7-35.4-52.4-65.8zM421.6 726.3c-13.9 20.2-24.4 30.3-30.1 34.7 6.7-12.3 19.8-25.3 30.1-34.7zm87.6-235.5c5.2 8.9 4.5 35.8.5 49.4-4.9-19.9-5.6-48.1-2.7-51.4.8.1 1.5.7 2.2 2zm-1.6 120.5c10.7 18.5 24.2 34.4 39.1 46.2-21.6 4.9-41.3 13-58.9 20.2-4.2 1.7-8.3 3.4-12.3 5 13.3-24.1 24.4-51.4 32.1-71.4zm155.6 65.5c.1.2.2.5-.4.9h-.2l-.2.3c-.8.5-9 5.3-44.3-8.6 40.6-1.9 45 7.3 45.1 7.4zm191.4-388.2L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"},null,-1)]))):(e.openBlock(),e.createElementBlock("svg",Ki,L[5]||(L[5]=[e.createElementVNode("path",{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"},null,-1)]))),e.createElementVNode("div",Yi,[e.createElementVNode("a",{class:"file-icon",title:"预览",onClick:G=>D(H-1,n.value[H-1].url)},L[6]||(L[6]=[e.createElementVNode("svg",{class:"icon-svg",focusable:"false","data-icon":"eye",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"64 64 896 896"},[e.createElementVNode("path",{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"})],-1)]),8,qi),e.withDirectives(e.createElementVNode("a",{class:"file-icon",title:"删除",onClick:e.withModifiers(G=>h(H-1),["prevent","stop"])},L[7]||(L[7]=[e.createElementVNode("svg",{class:"icon-svg",focusable:"false","data-icon":"delete",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"64 64 896 896"},[e.createElementVNode("path",{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"})],-1)]),8,Xi),[[e.vShow,!V.disabled]])])])):e.createCommentVNode("",!0)]))),128))]),_:3},16),e.createVNode(e.unref(Nt),e.mergeProps({ref_key:"messageRef",ref:c},V.messageProps),null,16)]))}}),[["__scopeId","data-v-65fdf777"]])),Gi=["src","poster","autoplay","controls","loop","muted","preload"],Nl=te(le(e.defineComponent({__name:"Video",props:{width:{default:800},height:{default:450},src:{default:void 0},poster:{default:void 0},second:{default:.5},fit:{default:"contain"},autoplay:{type:Boolean,default:!1},controls:{type:Boolean,default:!0},loop:{type:Boolean,default:!1},muted:{type:Boolean,default:!1},preload:{default:"metadata"},playIcon:{type:Boolean,default:!0},iconSize:{default:80}},emits:["play","pause"],setup(k,{expose:a,emit:t}){const l=k,n=e.ref(),s=e.ref(),r=e.ref(!1),o=e.ref(!0),d=e.ref(!1),c=t,E=e.computed(()=>typeof l.width=="number"?`${l.width}px`:l.width),g=e.computed(()=>typeof l.height=="number"?`${l.height}px`:l.height);e.watch(()=>l.second,()=>{y()}),e.watch(()=>l.autoplay,B=>{var u;B?(d.value=!1,o.value=!1,r.value=!0):(d.value=!0,o.value=!0,r.value=!1,(u=n.value)==null||u.pause())},{immediate:!0,flush:"post"});function y(){if(n.value){n.value.currentTime=l.second;const B=document.createElement("canvas"),u=B.getContext("2d");B.width=n.value.videoWidth,B.height=n.value.videoHeight,u==null||u.drawImage(n.value,0,0,B.width,B.height),s.value=B.toDataURL("image/png")}}function S(){o.value&&(o.value=!1,n.value.currentTime=0),r.value?n.value.pause():n.value.play()}function C(){r.value=!1,l.playIcon&&(d.value=!0),c("pause")}function f(){r.value=!0,l.playIcon&&(d.value=!1),c("play")}function i(){o.value&&(o.value=!1,n.value.currentTime=0),r.value||n.value.play()}function b(){r.value&&n.value.pause()}return a({play:i,pause:b}),(B,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["m-video",{"video-hover":d.value}]),style:e.normalizeStyle(`--video-width: ${E.value}; --video-height: ${g.value}; --video-icon-scale: ${B.iconSize/80};`)},[e.createElementVNode("video",e.mergeProps({ref_key:"veoRef",ref:n,class:"video-element",style:`object-fit: ${B.fit};`,src:B.src,poster:B.poster?B.poster:s.value,autoplay:B.autoplay,controls:!o.value&&B.controls,loop:B.loop,muted:B.autoplay||B.muted,preload:B.preload,crossorigin:"anonymous",onLoadedmetadata:u[0]||(u[0]=m=>B.poster?()=>!1:y()),onPause:u[1]||(u[1]=m=>C()),onPlay:u[2]||(u[2]=m=>f()),onClick:e.withModifiers(S,["prevent"])},B.$attrs)," 您的浏览器不支持video标签。 ",16,Gi),e.withDirectives(e.createElementVNode("span",{class:e.normalizeClass(["icon-play",{"icon-show":d.value}])},u[3]||(u[3]=[e.createElementVNode("svg",{class:"play-svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 34 34"},[e.createElementVNode("path",{d:`M28.26,11.961L11.035,0.813C7.464-1.498,3,1.391,3,6.013v21.974c0,4.622,4.464,7.511,8.035,5.2L28.26,22.039
|
|
103
|
-
C31.913,19.675,31.913,14.325,28.26,11.961z`})],-1)]),2),[[e.vShow,o.value||B.playIcon]])],6))}}),[["__scopeId","data-v-2bf18f3d"]])),Zi=["href","target"],Qi=["src","alt","onLoad"],Ml=te(le(e.defineComponent({__name:"Waterfall",props:{images:{default:()=>[]},columnCount:{default:3},columnGap:{default:20},width:{default:"100%"},borderRadius:{default:8},backgroundColor:{default:"#F2F4F8"},spinProps:{default:()=>({})}},setup(k){const a=k,t=e.ref(),l=e.ref(),n=e.ref(Array(a.images.length).fill(!1)),s=e.ref(),r=e.ref([]),o=e.ref(Array(a.columnCount).fill(0)),d=e.ref(0),c=e.computed(()=>typeof a.width=="number"?`${a.width}px`:a.width),E=e.computed(()=>Math.max(...o.value)+a.columnGap),g=e.computed(()=>a.images.length);e.watch(()=>[a.images,a.columnCount,a.columnGap,a.width],()=>{l.value=t.value.offsetWidth,o.value=Array(a.columnCount).fill(0),d.value++,S(d.value)},{deep:!0,flush:"post"}),e.onMounted(()=>{l.value=t.value.offsetWidth,S(d.value)});function y(){const B=t.value.offsetWidth;a.images.length&&B!==l.value&&(l.value=B,d.value++,S(d.value))}je(t,y);async function S(B){s.value=(l.value-(a.columnCount+1)*a.columnGap)/a.columnCount,r.value=[];for(let u=0;u<g.value;u++)if(B===d.value)await C(a.images[u].src,u);else return!1}function C(B,u){return new Promise(m=>{const D=new Image;D.src=B,D.onload=function(){const h=D.height/(D.width/s.value);r.value[u]={width:s.value,height:h,...f(u,h)},m("load")}})}function f(B,u){if(B<a.columnCount)return o.value[B]=a.columnGap+u,{top:a.columnGap,left:(s.value+a.columnGap)*B+a.columnGap};{const m=Math.min(...o.value);let D=0;for(let h=0;h<a.columnCount;h++)if(o.value[h]===m){D=h;break}return o.value[D]=m+a.columnGap+u,{top:m+a.columnGap,left:(s.value+a.columnGap)*D+a.columnGap}}}function i(B){n.value[B]=!0}function b(B){if(B){if(B.name)return B.name;{const u=B.src.split("?")[0].split("/");return u[u.length-1]}}}return(B,u)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"waterfallRef",ref:t,class:"m-waterfall",style:e.normalizeStyle(`--border-radius: ${B.borderRadius}px; background-color: ${B.backgroundColor}; width: ${c.value}; height: ${E.value}px;`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(m,D)=>(e.openBlock(),e.createBlock(e.unref(Ze),e.mergeProps({class:"waterfall-image",style:`width: ${m.width}px; height: ${m.height}px; top: ${m&&m.top}px; left: ${m&&m.left}px;`,spinning:!n.value[D],size:"small",indicator:"dynamic-circle",ref_for:!0},B.spinProps,{key:D}),{default:e.withCtx(()=>[e.createElementVNode("a",{class:e.normalizeClass(["image-link",{"link-cursor":B.images[D].link}]),href:B.images[D].link,target:B.images[D].target?B.images[D].target:"_blank"},[e.createElementVNode("img",{class:"image-item",src:B.images[D].src,alt:b(B.images[D]),onLoad:h=>i(D)},null,40,Qi)],10,Zi)]),_:2},1040,["style","spinning"]))),128))],4))}}),[["__scopeId","data-v-cc6560f9"]])),Ll=3,Tl=te(e.defineComponent({__name:"Watermark",props:{width:{default:void 0},height:{default:void 0},layout:{default:"alternate"},rotate:{default:-22},zIndex:{default:90},image:{default:void 0},content:{default:void 0},fullscreen:{type:Boolean,default:!1},fixed:{type:Boolean,default:!0},textStyle:{default:()=>({color:"rgba(0, 0, 0, 0.15)",fontSize:16,fontWeight:"normal",fontFamily:"sans-serif",fontStyle:"normal"})},gap:{default:()=>[100,100]},offset:{default:()=>[50,50]}},setup(k){const a=k,t=e.shallowRef(),l=e.shallowRef(),n=e.shallowRef(document.documentElement),s=e.shallowRef(n.value.classList.contains("dark")),r=e.shallowRef(!1),o=e.computed(()=>{var N;return((N=a.gap)==null?void 0:N[0])??100}),d=e.computed(()=>{var N;return((N=a.gap)==null?void 0:N[1])??100}),c=e.computed(()=>o.value/2),E=e.computed(()=>d.value/2),g=e.computed(()=>{var N;return((N=a.offset)==null?void 0:N[0])??c.value}),y=e.computed(()=>{var N;return((N=a.offset)==null?void 0:N[1])??E.value}),S=e.computed(()=>({parallel:1,alternate:2})[a.layout]),C=e.computed(()=>a.fullscreen&&a.fixed),f=e.computed(()=>{const N={zIndex:a.zIndex??9,position:C.value?"fixed":"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};s.value&&(N.filter="invert(1) hue-rotate(180deg)");let V=g.value-c.value,L=y.value-E.value;return V>0&&(N.left=`${V}px`,N.width=`calc(100% - ${V}px)`,V=0),L>0&&(N.top=`${L}px`,N.height=`calc(100% - ${L}px)`,L=0),N.backgroundPosition=`${V}px ${L}px`,N});e.watch(()=>[a],()=>{z()},{deep:!0,flush:"post"}),e.onMounted(()=>{z()}),e.onBeforeUnmount(()=>{b()}),st(n,()=>{s.value=n.value.classList.contains("dark"),b(),z()},{attributeFilter:["class"]}),st(a.fullscreen?n:t,i,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["style","class"]});function i(N){r.value||N.forEach(V=>{I(V,l.value)&&(b(),z())})}function b(){l.value&&(l.value.remove(),l.value=void 0)}function B(N,V){var L;t.value&&l.value&&(r.value=!0,l.value.setAttribute("style",m({...f.value,backgroundImage:`url('${N}')`,backgroundSize:`${(o.value+V)*S.value}px`})),a.fullscreen?(n.value.setAttribute("style","position: relative"),n.value.append(l.value)):(L=t.value)==null||L.append(l.value),setTimeout(()=>{r.value=!1}))}function u(N){return N.replace(/([A-Z])/g,"-$1").toLowerCase()}function m(N){return Object.keys(N).map(V=>`${u(V)}: ${N[V]};`).join(" ")}function D(N){let V=120,L=64;const H=a.content,G=a.image,K=a.width,_=a.height,F=a.textStyle.fontSize??16,Z=a.textStyle.fontFamily??"sans-serif";if(!G&&N.measureText){N.font=`${Number(F)}px ${Z}`;const ae=Array.isArray(H)?H:[H],ee=ae.map(ie=>N.measureText(ie).width);V=Math.ceil(Math.max(...ee)),L=Number(F)*ae.length+(ae.length-1)*Ll}return[K??V,_??L]}function h(){return window.devicePixelRatio||1}function p(N,V,L,H,G){const K=h(),_=a.content,F=a.textStyle.fontSize??16,Z=a.textStyle.fontWeight??"normal",ae=a.textStyle.fontFamily??"sans-serif",ee=a.textStyle.fontStyle??"normal",ie=a.textStyle.color??"rgba(0, 0, 0, 0.15)",oe=Number(F)*K;N.font=`${ee} normal ${Z} ${oe}px/${G}px ${ae}`,N.fillStyle=ie,N.textAlign="center",N.textBaseline="top",N.translate(H/2,0);const O=Array.isArray(_)?_:[_];O==null||O.forEach((j,x)=>{N.fillText(j??"",V,L+x*(oe+Ll*K))})}function z(){const N=document.createElement("canvas"),V=N.getContext("2d"),L=a.image,H=a.rotate??-22;if(V){l.value||(l.value=document.createElement("div"));const G=h(),[K,_]=D(V),F=(o.value+K)*G,Z=(d.value+_)*G;N.setAttribute("width",`${F*S.value}px`),N.setAttribute("height",`${Z*S.value}px`);const ae=o.value*G/2,ee=d.value*G/2,ie=K*G,oe=_*G,O=(ie+o.value*G)/2,j=(oe+d.value*G)/2,x=ae+F,R=ee+Z,J=O+F,he=j+Z;if(V.save(),P(V,O,j,H),L){const ce=new Image;ce.onload=()=>{V.drawImage(ce,ae,ee,ie,oe),V.restore(),P(V,J,he,H),V.drawImage(ce,x,R,ie,oe),B(N.toDataURL(),K)},ce.crossOrigin="anonymous",ce.referrerPolicy="no-referrer",ce.src=L}else p(V,ae,ee,ie,oe),V.restore(),P(V,J,he,H),p(V,x,R,ie,oe),B(N.toDataURL(),K)}}function P(N,V,L,H){N.translate(V,L),N.rotate(Math.PI/180*Number(H)),N.translate(-V,-L)}function I(N,V){let L=!1;return N.removedNodes.length&&(L=Array.from(N.removedNodes).some(H=>H===V)),N.type==="attributes"&&N.target===V&&(L=!0),L}return(N,V)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"containerRef",ref:t,class:"watermark-container"},[e.renderSlot(N.$slots,"default")],512))}})),_i=Object.freeze(Object.defineProperty({__proto__:null,Alert:Dt,Avatar:$t,BackTop:Ft,Badge:Vt,Breadcrumb:Rt,Button:Te,Card:At,Carousel:Pt,Cascader:xt,Checkbox:ct,Col:tl,Collapse:Ht,ColorPicker:It,Countdown:Ot,DatePicker:jt,Descriptions:Ut,DescriptionsItem:Kt,Dialog:Yt,Divider:qt,Drawer:Xt,Ellipsis:Je,Empty:_e,Flex:Gt,FloatButton:Zt,GradientText:Jt,Image:zt,Input:ut,InputNumber:ll,InputSearch:al,List:ol,ListItem:nl,LoadingBar:rl,Message:Nt,Modal:sl,Notification:il,NumberAnimation:cl,Pagination:bt,Popconfirm:dl,Popover:fl,Progress:pl,QRCode:ul,Radio:Bt,Rate:ml,Result:hl,Row:el,Scrollbar:Qe,Segmented:gl,Select:it,Skeleton:vt,Slider:kl,Space:mt,Spin:Ze,Statistic:yl,Steps:wl,Swiper:bl,Switch:Bl,Table:Cl,Tabs:Sl,Tag:El,TextScroll:Vl,Textarea:$l,Timeline:vl,Tooltip:Ue,Upload:zl,Video:Nl,Waterfall:Ml,Watermark:Tl},Symbol.toStringTag,{value:"Module"})),Dl={Alert:"alert",Avatar:"avatar",BackTop:"backtop",Badge:"badge",Breadcrumb:"breadcrumb",Button:"button",Card:"card",Carousel:"carousel",Cascader:"cascader",Checkbox:"checkbox",Collapse:"collapse",Countdown:"countdown",DatePicker:"datepicker",Descriptions:"descriptions/descriptions",DescriptionsItem:"descriptions/descriptionsitem",Dialog:"dialog",Divider:"divider",Drawer:"drawer",Ellipsis:"ellipsis",Empty:"empty",Flex:"flex",FloatButton:"floatbutton",GradientText:"gradienttext",Row:"grid/row",Col:"grid/col",Image:"image",Input:"input",InputNumber:"inputnumber",InputSearch:"inputsearch",Layout:"layout",LayoutHeader:"layout/layoutheader",LayoutSider:"layout/layoutsider",LayoutContent:"layout/layoutcontent",LayoutFooter:"layout/layoutfooter",List:"list/list",ListItem:"list/listitem",LoadingBar:"loadingbar",Message:"message",Modal:"modal",Notification:"notification",NumberAnimation:"numberanimation",Pagination:"pagination",Popconfirm:"popconfirm",Popover:"popover",Progress:"progress",QRCode:"qrcode",Radio:"radio",Rate:"rate",Result:"result",Scrollbar:"scrollbar",Segmented:"segmented",Select:"select",Skeleton:"skeleton",Slider:"slider",Space:"space",Spin:"spin",Statistic:"statistic",Steps:"steps",Swiper:"swiper",Switch:"switch",Table:"table",Tabs:"tabs",Tag:"tag",Textarea:"textarea",TextScroll:"textscroll",Timeline:"timeline",TimePicker:"timepicker",Tooltip:"tooltip",Upload:"upload",Video:"video",Waterfall:"waterfall",Watermark:"watermark"};function Ji(k,a){const t=a!=null&&a.cjs?"lib":"es",l=[`vue-amazing-ui/${t}/${Dl[k]}/${k}.css`];return["ListItem"].includes(k)&&l.push(`vue-amazing-ui/${t}/avatar/Avatar.css`),["FloatButton"].includes(k)&&l.push(`vue-amazing-ui/${t}/badge/Badge.css`),["Collapse","ColorPicker","Dialog","InputSearch","Modal","Popconfirm"].includes(k)&&l.push(`vue-amazing-ui/${t}/button/Button.css`),["Table"].includes(k)&&l.push(`vue-amazing-ui/${t}/checkbox/Checkbox.css`),["Table"].includes(k)&&l.push(`vue-amazing-ui/${t}/ellipsis/Ellipsis.css`),["List","Select","Table"].includes(k)&&l.push(`vue-amazing-ui/${t}/empty/Empty.css`),["Upload"].includes(k)&&l.push(`vue-amazing-ui/${t}/image/Image.css`),["ColorPicker","Pagination"].includes(k)&&l.push(`vue-amazing-ui/${t}/input/Input.css`),["Upload"].includes(k)&&l.push(`vue-amazing-ui/${t}/message/Message.css`),["List","Table"].includes(k)&&l.push(`vue-amazing-ui/${t}/pagination/Pagination.css`),["Table"].includes(k)&&l.push(`vue-amazing-ui/${t}/radio/Radio.css`),["Dialog","Drawer","Select","Table"].includes(k)&&l.push(`vue-amazing-ui/${t}/scrollbar/Scrollbar.css`),["Cascader","Pagination"].includes(k)&&l.push(`vue-amazing-ui/${t}/select/Select.css`),["Card"].includes(k)&&l.push(`vue-amazing-ui/${t}/skeleton/Skeleton.css`),["Image","Tag","Upload"].includes(k)&&l.push(`vue-amazing-ui/${t}/space/Space.css`),["Carousel","Image","List","Table","Upload","Waterfall"].includes(k)&&l.push(`vue-amazing-ui/${t}/spin/Spin.css`),["BackTop","ColorPicker","Ellipsis","FloatButton","Popconfirm","Popover","Rate","Table"].includes(k)&&l.push(`vue-amazing-ui/${t}/tooltip/Tooltip.css`),l}function ec(k){return{type:"component",resolve:a=>{if(a in Dl)return{name:a,from:"vue-amazing-ui",sideEffects:Ji(a,k)}}}}const Fl=function(k){return Object.values(_i).forEach(a=>{a.install&&k.use(a)}),k},tc={install:Fl};Y.Alert=Dt,Y.Avatar=$t,Y.BackTop=Ft,Y.Badge=Vt,Y.Breadcrumb=Rt,Y.Button=Te,Y.Card=At,Y.Carousel=Pt,Y.Cascader=xt,Y.Checkbox=ct,Y.Col=tl,Y.Collapse=Ht,Y.ColorPicker=It,Y.Countdown=Ot,Y.DatePicker=jt,Y.Descriptions=Ut,Y.DescriptionsItem=Kt,Y.Dialog=Yt,Y.Divider=qt,Y.Drawer=Xt,Y.Ellipsis=Je,Y.Empty=_e,Y.Flex=Gt,Y.FloatButton=Zt,Y.GradientText=Jt,Y.Image=zt,Y.Input=ut,Y.InputNumber=ll,Y.InputSearch=al,Y.List=ol,Y.ListItem=nl,Y.LoadingBar=rl,Y.Message=Nt,Y.Modal=sl,Y.Notification=il,Y.NumberAnimation=cl,Y.Pagination=bt,Y.Popconfirm=dl,Y.Popover=fl,Y.Progress=pl,Y.QRCode=ul,Y.Radio=Bt,Y.Rate=ml,Y.Result=hl,Y.Row=el,Y.Scrollbar=Qe,Y.Segmented=gl,Y.Select=it,Y.Skeleton=vt,Y.Slider=kl,Y.Space=mt,Y.Spin=Ze,Y.Statistic=yl,Y.Steps=wl,Y.Swiper=bl,Y.Switch=Bl,Y.Table=Cl,Y.Tabs=Sl,Y.Tag=El,Y.TextScroll=Vl,Y.Textarea=$l,Y.Timeline=vl,Y.Tooltip=Ue,Y.Upload=zl,Y.Video=Nl,Y.VueAmazingUIResolver=ec,Y.Waterfall=Ml,Y.Watermark=Tl,Y.add=rt,Y.cancelRaf=De,Y.dateFormat=Ul,Y.debounce=tt,Y.default=tc,Y.downloadFile=Kl,Y.formatNumber=Et,Y.install=Fl,Y.rafTimeout=qe,Y.throttle=Mt,Y.toggleDark=Yl,Y.useEventListener=lt,Y.useFps=Xl,Y.useMediaQuery=Gl,Y.useMutationObserver=st,Y.useResizeObserver=je,Y.useScroll=Tt,Y.useSlotsExist=Ce,Object.defineProperties(Y,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
103
|
+
C31.913,19.675,31.913,14.325,28.26,11.961z`})],-1)]),2),[[e.vShow,o.value||B.playIcon]])],6))}}),[["__scopeId","data-v-2bf18f3d"]])),Zi=["href","target"],Qi=["src","alt","onLoad"],Ml=te(le(e.defineComponent({__name:"Waterfall",props:{images:{default:()=>[]},columnCount:{default:3},columnGap:{default:20},width:{default:"100%"},borderRadius:{default:8},backgroundColor:{default:"#F2F4F8"},spinProps:{default:()=>({})}},setup(k){const a=k,t=e.ref(),l=e.ref(),n=e.ref(Array(a.images.length).fill(!1)),s=e.ref(),r=e.ref([]),o=e.ref(Array(a.columnCount).fill(0)),d=e.ref(0),c=e.computed(()=>typeof a.width=="number"?`${a.width}px`:a.width),E=e.computed(()=>Math.max(...o.value)+a.columnGap),g=e.computed(()=>a.images.length);e.watch(()=>[a.images,a.columnCount,a.columnGap,a.width],()=>{l.value=t.value.offsetWidth,o.value=Array(a.columnCount).fill(0),d.value++,S(d.value)},{deep:!0,flush:"post"}),e.onMounted(()=>{l.value=t.value.offsetWidth,S(d.value)});function y(){const B=t.value.offsetWidth;a.images.length&&B!==l.value&&(l.value=B,d.value++,S(d.value))}je(t,y);async function S(B){s.value=(l.value-(a.columnCount+1)*a.columnGap)/a.columnCount,r.value=[];for(let u=0;u<g.value;u++)if(B===d.value)await C(a.images[u].src,u);else return!1}function C(B,u){return new Promise(m=>{const D=new Image;D.src=B,D.onload=function(){const h=D.height/(D.width/s.value);r.value[u]={width:s.value,height:h,...f(u,h)},m("load")}})}function f(B,u){if(B<a.columnCount)return o.value[B]=a.columnGap+u,{top:a.columnGap,left:(s.value+a.columnGap)*B+a.columnGap};{const m=Math.min(...o.value);let D=0;for(let h=0;h<a.columnCount;h++)if(o.value[h]===m){D=h;break}return o.value[D]=m+a.columnGap+u,{top:m+a.columnGap,left:(s.value+a.columnGap)*D+a.columnGap}}}function i(B){n.value[B]=!0}function b(B){if(B){if(B.name)return B.name;{const u=B.src.split("?")[0].split("/");return u[u.length-1]}}}return(B,u)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"waterfallRef",ref:t,class:"m-waterfall",style:e.normalizeStyle(`--border-radius: ${B.borderRadius}px; background-color: ${B.backgroundColor}; width: ${c.value}; height: ${E.value}px;`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(m,D)=>(e.openBlock(),e.createBlock(e.unref(Ze),e.mergeProps({class:"waterfall-image",style:`width: ${m.width}px; height: ${m.height}px; top: ${m&&m.top}px; left: ${m&&m.left}px;`,spinning:!n.value[D],size:"small",indicator:"dynamic-circle",ref_for:!0},B.spinProps,{key:D}),{default:e.withCtx(()=>[e.createElementVNode("a",{class:e.normalizeClass(["image-link",{"link-cursor":B.images[D].link}]),href:B.images[D].link,target:B.images[D].target?B.images[D].target:"_blank"},[e.createElementVNode("img",{class:"image-item",src:B.images[D].src,alt:b(B.images[D]),onLoad:h=>i(D)},null,40,Qi)],10,Zi)]),_:2},1040,["style","spinning"]))),128))],4))}}),[["__scopeId","data-v-cc6560f9"]])),Ll=3,Tl=te(e.defineComponent({__name:"Watermark",props:{width:{default:void 0},height:{default:void 0},layout:{default:"alternate"},rotate:{default:-22},zIndex:{default:90},image:{default:void 0},content:{default:void 0},fullscreen:{type:Boolean,default:!1},fixed:{type:Boolean,default:!0},textStyle:{default:()=>({color:"rgba(0, 0, 0, 0.15)",fontSize:16,fontWeight:"normal",fontFamily:"sans-serif",fontStyle:"normal"})},gap:{default:()=>[100,100]},offset:{default:()=>[50,50]}},setup(k){const a=k,t=e.shallowRef(),l=e.shallowRef(),n=e.shallowRef(document.documentElement),s=e.shallowRef(n.value.classList.contains("dark")),r=e.shallowRef(!1),o=e.computed(()=>{var N;return((N=a.gap)==null?void 0:N[0])??100}),d=e.computed(()=>{var N;return((N=a.gap)==null?void 0:N[1])??100}),c=e.computed(()=>o.value/2),E=e.computed(()=>d.value/2),g=e.computed(()=>{var N;return((N=a.offset)==null?void 0:N[0])??c.value}),y=e.computed(()=>{var N;return((N=a.offset)==null?void 0:N[1])??E.value}),S=e.computed(()=>({parallel:1,alternate:2})[a.layout]),C=e.computed(()=>a.fullscreen&&a.fixed),f=e.computed(()=>{const N={zIndex:a.zIndex??9,position:C.value?"fixed":"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};s.value&&(N.filter="invert(1) hue-rotate(180deg)");let V=g.value-c.value,L=y.value-E.value;return V>0&&(N.left=`${V}px`,N.width=`calc(100% - ${V}px)`,V=0),L>0&&(N.top=`${L}px`,N.height=`calc(100% - ${L}px)`,L=0),N.backgroundPosition=`${V}px ${L}px`,N});e.watch(()=>[a],()=>{z()},{deep:!0,flush:"post"}),e.onMounted(()=>{z()}),e.onBeforeUnmount(()=>{b()}),st(n,()=>{s.value=n.value.classList.contains("dark"),b(),z()},{attributeFilter:["class"]}),st(a.fullscreen?n:t,i,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["style","class"]});function i(N){r.value||N.forEach(V=>{I(V,l.value)&&(b(),z())})}function b(){l.value&&(l.value.remove(),l.value=void 0)}function B(N,V){var L;t.value&&l.value&&(r.value=!0,l.value.setAttribute("style",m({...f.value,backgroundImage:`url('${N}')`,backgroundSize:`${(o.value+V)*S.value}px`})),a.fullscreen?(n.value.setAttribute("style","position: relative"),n.value.append(l.value)):(L=t.value)==null||L.append(l.value),setTimeout(()=>{r.value=!1}))}function u(N){return N.replace(/([A-Z])/g,"-$1").toLowerCase()}function m(N){return Object.keys(N).map(V=>`${u(V)}: ${N[V]};`).join(" ")}function D(N){let V=120,L=64;const H=a.content,G=a.image,K=a.width,_=a.height,F=a.textStyle.fontSize??16,Z=a.textStyle.fontFamily??"sans-serif";if(!G&&N.measureText){N.font=`${Number(F)}px ${Z}`;const ae=Array.isArray(H)?H:[H],ee=ae.map(ie=>N.measureText(ie).width);V=Math.ceil(Math.max(...ee)),L=Number(F)*ae.length+(ae.length-1)*Ll}return[K??V,_??L]}function h(){return window.devicePixelRatio||1}function p(N,V,L,H,G){const K=h(),_=a.content,F=a.textStyle.fontSize??16,Z=a.textStyle.fontWeight??"normal",ae=a.textStyle.fontFamily??"sans-serif",ee=a.textStyle.fontStyle??"normal",ie=a.textStyle.color??"rgba(0, 0, 0, 0.15)",oe=Number(F)*K;N.font=`${ee} normal ${Z} ${oe}px/${G}px ${ae}`,N.fillStyle=ie,N.textAlign="center",N.textBaseline="top",N.translate(H/2,0);const O=Array.isArray(_)?_:[_];O==null||O.forEach((j,x)=>{N.fillText(j??"",V,L+x*(oe+Ll*K))})}function z(){const N=document.createElement("canvas"),V=N.getContext("2d"),L=a.image,H=a.rotate??-22;if(V){l.value||(l.value=document.createElement("div"));const G=h(),[K,_]=D(V),F=(o.value+K)*G,Z=(d.value+_)*G;N.setAttribute("width",`${F*S.value}px`),N.setAttribute("height",`${Z*S.value}px`);const ae=o.value*G/2,ee=d.value*G/2,ie=K*G,oe=_*G,O=(ie+o.value*G)/2,j=(oe+d.value*G)/2,x=ae+F,R=ee+Z,J=O+F,he=j+Z;if(V.save(),P(V,O,j,H),L){const ce=new Image;ce.onload=()=>{V.drawImage(ce,ae,ee,ie,oe),V.restore(),P(V,J,he,H),V.drawImage(ce,x,R,ie,oe),B(N.toDataURL(),K)},ce.crossOrigin="anonymous",ce.referrerPolicy="no-referrer",ce.src=L}else p(V,ae,ee,ie,oe),V.restore(),P(V,J,he,H),p(V,x,R,ie,oe),B(N.toDataURL(),K)}}function P(N,V,L,H){N.translate(V,L),N.rotate(Math.PI/180*Number(H)),N.translate(-V,-L)}function I(N,V){let L=!1;return N.removedNodes.length&&(L=Array.from(N.removedNodes).some(H=>H===V)),N.type==="attributes"&&N.target===V&&(L=!0),L}return(N,V)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"containerRef",ref:t,class:"watermark-container"},[e.renderSlot(N.$slots,"default")],512))}})),_i=Object.freeze(Object.defineProperty({__proto__:null,Alert:Dt,Avatar:$t,BackTop:Ft,Badge:Vt,Breadcrumb:Rt,Button:Te,Card:At,Carousel:Pt,Cascader:xt,Checkbox:ct,Col:tl,Collapse:Ht,ColorPicker:It,Countdown:Ot,DatePicker:jt,Descriptions:Ut,DescriptionsItem:Kt,Dialog:Yt,Divider:qt,Drawer:Xt,Ellipsis:Je,Empty:_e,Flex:Gt,FloatButton:Zt,GradientText:Jt,Image:zt,Input:ut,InputNumber:ll,InputSearch:al,List:ol,ListItem:nl,LoadingBar:rl,Message:Nt,Modal:sl,Notification:il,NumberAnimation:cl,Pagination:bt,Popconfirm:dl,Popover:fl,Progress:pl,QRCode:ul,Radio:Bt,Rate:ml,Result:hl,Row:el,Scrollbar:Qe,Segmented:gl,Select:it,Skeleton:vt,Slider:kl,Space:mt,Spin:Ze,Statistic:yl,Steps:wl,Swiper:bl,Switch:Bl,Table:Cl,Tabs:Sl,Tag:El,TextScroll:Vl,Textarea:$l,Timeline:vl,Tooltip:Ue,Upload:zl,Video:Nl,Waterfall:Ml,Watermark:Tl},Symbol.toStringTag,{value:"Module"})),Dl={Alert:"alert",Avatar:"avatar",BackTop:"backtop",Badge:"badge",Breadcrumb:"breadcrumb",Button:"button",Calendar:"calendar",Card:"card",Carousel:"carousel",Cascader:"cascader",Checkbox:"checkbox",Collapse:"collapse",ColorPicker:"colorpicker",Countdown:"countdown",DatePicker:"datepicker",Descriptions:"descriptions/descriptions",DescriptionsItem:"descriptions/descriptionsitem",Dialog:"dialog",Divider:"divider",Drawer:"drawer",Ellipsis:"ellipsis",Empty:"empty",Flex:"flex",FloatButton:"floatbutton",GradientText:"gradienttext",Row:"grid/row",Col:"grid/col",Image:"image",Input:"input",InputNumber:"inputnumber",InputSearch:"inputsearch",Layout:"layout",LayoutHeader:"layout/layoutheader",LayoutSider:"layout/layoutsider",LayoutContent:"layout/layoutcontent",LayoutFooter:"layout/layoutfooter",List:"list/list",ListItem:"list/listitem",LoadingBar:"loadingbar",Message:"message",Modal:"modal",Notification:"notification",NumberAnimation:"numberanimation",Pagination:"pagination",Popconfirm:"popconfirm",Popover:"popover",Progress:"progress",QRCode:"qrcode",Radio:"radio",Rate:"rate",Result:"result",Scrollbar:"scrollbar",Segmented:"segmented",Select:"select",Skeleton:"skeleton",Slider:"slider",Space:"space",Spin:"spin",Statistic:"statistic",Steps:"steps",Swiper:"swiper",Switch:"switch",Table:"table",Tabs:"tabs",Tag:"tag",Textarea:"textarea",TextScroll:"textscroll",Timeline:"timeline",TimePicker:"timepicker",Tooltip:"tooltip",Upload:"upload",Video:"video",Waterfall:"waterfall",Watermark:"watermark"};function Ji(k,a){const t=a!=null&&a.cjs?"lib":"es",l=[`vue-amazing-ui/${t}/${Dl[k]}/${k}.css`];return["ListItem"].includes(k)&&l.push(`vue-amazing-ui/${t}/avatar/Avatar.css`),["FloatButton"].includes(k)&&l.push(`vue-amazing-ui/${t}/badge/Badge.css`),["Collapse","ColorPicker","Dialog","InputSearch","Modal","Popconfirm"].includes(k)&&l.push(`vue-amazing-ui/${t}/button/Button.css`),["Table"].includes(k)&&l.push(`vue-amazing-ui/${t}/checkbox/Checkbox.css`),["Table"].includes(k)&&l.push(`vue-amazing-ui/${t}/ellipsis/Ellipsis.css`),["List","Select","Table"].includes(k)&&l.push(`vue-amazing-ui/${t}/empty/Empty.css`),["Upload"].includes(k)&&l.push(`vue-amazing-ui/${t}/image/Image.css`),["ColorPicker","Pagination"].includes(k)&&l.push(`vue-amazing-ui/${t}/input/Input.css`),["Upload"].includes(k)&&l.push(`vue-amazing-ui/${t}/message/Message.css`),["List","Table"].includes(k)&&l.push(`vue-amazing-ui/${t}/pagination/Pagination.css`),["Table"].includes(k)&&l.push(`vue-amazing-ui/${t}/radio/Radio.css`),["Dialog","Drawer","Select","Table"].includes(k)&&l.push(`vue-amazing-ui/${t}/scrollbar/Scrollbar.css`),["Cascader","Pagination"].includes(k)&&l.push(`vue-amazing-ui/${t}/select/Select.css`),["Card"].includes(k)&&l.push(`vue-amazing-ui/${t}/skeleton/Skeleton.css`),["Image","Tag","Upload"].includes(k)&&l.push(`vue-amazing-ui/${t}/space/Space.css`),["Carousel","Image","List","Table","Upload","Waterfall"].includes(k)&&l.push(`vue-amazing-ui/${t}/spin/Spin.css`),["BackTop","ColorPicker","Ellipsis","FloatButton","Popconfirm","Popover","Rate","Table"].includes(k)&&l.push(`vue-amazing-ui/${t}/tooltip/Tooltip.css`),l}function ec(k){return{type:"component",resolve:a=>{if(a in Dl)return{name:a,from:"vue-amazing-ui",sideEffects:Ji(a,k)}}}}const Fl=function(k){return Object.values(_i).forEach(a=>{a.install&&k.use(a)}),k},tc={install:Fl};Y.Alert=Dt,Y.Avatar=$t,Y.BackTop=Ft,Y.Badge=Vt,Y.Breadcrumb=Rt,Y.Button=Te,Y.Card=At,Y.Carousel=Pt,Y.Cascader=xt,Y.Checkbox=ct,Y.Col=tl,Y.Collapse=Ht,Y.ColorPicker=It,Y.Countdown=Ot,Y.DatePicker=jt,Y.Descriptions=Ut,Y.DescriptionsItem=Kt,Y.Dialog=Yt,Y.Divider=qt,Y.Drawer=Xt,Y.Ellipsis=Je,Y.Empty=_e,Y.Flex=Gt,Y.FloatButton=Zt,Y.GradientText=Jt,Y.Image=zt,Y.Input=ut,Y.InputNumber=ll,Y.InputSearch=al,Y.List=ol,Y.ListItem=nl,Y.LoadingBar=rl,Y.Message=Nt,Y.Modal=sl,Y.Notification=il,Y.NumberAnimation=cl,Y.Pagination=bt,Y.Popconfirm=dl,Y.Popover=fl,Y.Progress=pl,Y.QRCode=ul,Y.Radio=Bt,Y.Rate=ml,Y.Result=hl,Y.Row=el,Y.Scrollbar=Qe,Y.Segmented=gl,Y.Select=it,Y.Skeleton=vt,Y.Slider=kl,Y.Space=mt,Y.Spin=Ze,Y.Statistic=yl,Y.Steps=wl,Y.Swiper=bl,Y.Switch=Bl,Y.Table=Cl,Y.Tabs=Sl,Y.Tag=El,Y.TextScroll=Vl,Y.Textarea=$l,Y.Timeline=vl,Y.Tooltip=Ue,Y.Upload=zl,Y.Video=Nl,Y.VueAmazingUIResolver=ec,Y.Waterfall=Ml,Y.Watermark=Tl,Y.add=rt,Y.cancelRaf=De,Y.dateFormat=Ul,Y.debounce=tt,Y.default=tc,Y.downloadFile=Kl,Y.formatNumber=Et,Y.install=Fl,Y.rafTimeout=qe,Y.throttle=Mt,Y.toggleDark=Yl,Y.useEventListener=lt,Y.useFps=Xl,Y.useMediaQuery=Gl,Y.useMutationObserver=st,Y.useResizeObserver=je,Y.useScroll=Tt,Y.useSlotsExist=Ce,Object.defineProperties(Y,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/es/utils/resolvers.js
CHANGED
|
@@ -5,11 +5,13 @@ const s = {
|
|
|
5
5
|
Badge: "badge",
|
|
6
6
|
Breadcrumb: "breadcrumb",
|
|
7
7
|
Button: "button",
|
|
8
|
+
Calendar: "calendar",
|
|
8
9
|
Card: "card",
|
|
9
10
|
Carousel: "carousel",
|
|
10
11
|
Cascader: "cascader",
|
|
11
12
|
Checkbox: "checkbox",
|
|
12
13
|
Collapse: "collapse",
|
|
14
|
+
ColorPicker: "colorpicker",
|
|
13
15
|
Countdown: "countdown",
|
|
14
16
|
DatePicker: "datepicker",
|
|
15
17
|
Descriptions: "descriptions/descriptions",
|
|
@@ -78,7 +80,7 @@ function l(e, a) {
|
|
|
78
80
|
];
|
|
79
81
|
return ["ListItem"].includes(e) && i.push(`vue-amazing-ui/${t}/avatar/Avatar.css`), ["FloatButton"].includes(e) && i.push(`vue-amazing-ui/${t}/badge/Badge.css`), ["Collapse", "ColorPicker", "Dialog", "InputSearch", "Modal", "Popconfirm"].includes(e) && i.push(`vue-amazing-ui/${t}/button/Button.css`), ["Table"].includes(e) && i.push(`vue-amazing-ui/${t}/checkbox/Checkbox.css`), ["Table"].includes(e) && i.push(`vue-amazing-ui/${t}/ellipsis/Ellipsis.css`), ["List", "Select", "Table"].includes(e) && i.push(`vue-amazing-ui/${t}/empty/Empty.css`), ["Upload"].includes(e) && i.push(`vue-amazing-ui/${t}/image/Image.css`), ["ColorPicker", "Pagination"].includes(e) && i.push(`vue-amazing-ui/${t}/input/Input.css`), ["Upload"].includes(e) && i.push(`vue-amazing-ui/${t}/message/Message.css`), ["List", "Table"].includes(e) && i.push(`vue-amazing-ui/${t}/pagination/Pagination.css`), ["Table"].includes(e) && i.push(`vue-amazing-ui/${t}/radio/Radio.css`), ["Dialog", "Drawer", "Select", "Table"].includes(e) && i.push(`vue-amazing-ui/${t}/scrollbar/Scrollbar.css`), ["Cascader", "Pagination"].includes(e) && i.push(`vue-amazing-ui/${t}/select/Select.css`), ["Card"].includes(e) && i.push(`vue-amazing-ui/${t}/skeleton/Skeleton.css`), ["Image", "Tag", "Upload"].includes(e) && i.push(`vue-amazing-ui/${t}/space/Space.css`), ["Carousel", "Image", "List", "Table", "Upload", "Waterfall"].includes(e) && i.push(`vue-amazing-ui/${t}/spin/Spin.css`), ["BackTop", "ColorPicker", "Ellipsis", "FloatButton", "Popconfirm", "Popover", "Rate", "Table"].includes(e) && i.push(`vue-amazing-ui/${t}/tooltip/Tooltip.css`), i;
|
|
80
82
|
}
|
|
81
|
-
function
|
|
83
|
+
function C(e) {
|
|
82
84
|
return {
|
|
83
85
|
type: "component",
|
|
84
86
|
resolve: (a) => {
|
|
@@ -95,5 +97,5 @@ function z(e) {
|
|
|
95
97
|
};
|
|
96
98
|
}
|
|
97
99
|
export {
|
|
98
|
-
|
|
100
|
+
C as VueAmazingUIResolver
|
|
99
101
|
};
|
package/lib/utils/resolvers.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s={Alert:"alert",Avatar:"avatar",BackTop:"backtop",Badge:"badge",Breadcrumb:"breadcrumb",Button:"button",Card:"card",Carousel:"carousel",Cascader:"cascader",Checkbox:"checkbox",Collapse:"collapse",Countdown:"countdown",DatePicker:"datepicker",Descriptions:"descriptions/descriptions",DescriptionsItem:"descriptions/descriptionsitem",Dialog:"dialog",Divider:"divider",Drawer:"drawer",Ellipsis:"ellipsis",Empty:"empty",Flex:"flex",FloatButton:"floatbutton",GradientText:"gradienttext",Row:"grid/row",Col:"grid/col",Image:"image",Input:"input",InputNumber:"inputnumber",InputSearch:"inputsearch",Layout:"layout",LayoutHeader:"layout/layoutheader",LayoutSider:"layout/layoutsider",LayoutContent:"layout/layoutcontent",LayoutFooter:"layout/layoutfooter",List:"list/list",ListItem:"list/listitem",LoadingBar:"loadingbar",Message:"message",Modal:"modal",Notification:"notification",NumberAnimation:"numberanimation",Pagination:"pagination",Popconfirm:"popconfirm",Popover:"popover",Progress:"progress",QRCode:"qrcode",Radio:"radio",Rate:"rate",Result:"result",Scrollbar:"scrollbar",Segmented:"segmented",Select:"select",Skeleton:"skeleton",Slider:"slider",Space:"space",Spin:"spin",Statistic:"statistic",Steps:"steps",Swiper:"swiper",Switch:"switch",Table:"table",Tabs:"tabs",Tag:"tag",Textarea:"textarea",TextScroll:"textscroll",Timeline:"timeline",TimePicker:"timepicker",Tooltip:"tooltip",Upload:"upload",Video:"video",Waterfall:"waterfall",Watermark:"watermark"};function l(e,a){const t=a!=null&&a.cjs?"lib":"es",i=[`vue-amazing-ui/${t}/${s[e]}/${e}.css`];return["ListItem"].includes(e)&&i.push(`vue-amazing-ui/${t}/avatar/Avatar.css`),["FloatButton"].includes(e)&&i.push(`vue-amazing-ui/${t}/badge/Badge.css`),["Collapse","ColorPicker","Dialog","InputSearch","Modal","Popconfirm"].includes(e)&&i.push(`vue-amazing-ui/${t}/button/Button.css`),["Table"].includes(e)&&i.push(`vue-amazing-ui/${t}/checkbox/Checkbox.css`),["Table"].includes(e)&&i.push(`vue-amazing-ui/${t}/ellipsis/Ellipsis.css`),["List","Select","Table"].includes(e)&&i.push(`vue-amazing-ui/${t}/empty/Empty.css`),["Upload"].includes(e)&&i.push(`vue-amazing-ui/${t}/image/Image.css`),["ColorPicker","Pagination"].includes(e)&&i.push(`vue-amazing-ui/${t}/input/Input.css`),["Upload"].includes(e)&&i.push(`vue-amazing-ui/${t}/message/Message.css`),["List","Table"].includes(e)&&i.push(`vue-amazing-ui/${t}/pagination/Pagination.css`),["Table"].includes(e)&&i.push(`vue-amazing-ui/${t}/radio/Radio.css`),["Dialog","Drawer","Select","Table"].includes(e)&&i.push(`vue-amazing-ui/${t}/scrollbar/Scrollbar.css`),["Cascader","Pagination"].includes(e)&&i.push(`vue-amazing-ui/${t}/select/Select.css`),["Card"].includes(e)&&i.push(`vue-amazing-ui/${t}/skeleton/Skeleton.css`),["Image","Tag","Upload"].includes(e)&&i.push(`vue-amazing-ui/${t}/space/Space.css`),["Carousel","Image","List","Table","Upload","Waterfall"].includes(e)&&i.push(`vue-amazing-ui/${t}/spin/Spin.css`),["BackTop","ColorPicker","Ellipsis","FloatButton","Popconfirm","Popover","Rate","Table"].includes(e)&&i.push(`vue-amazing-ui/${t}/tooltip/Tooltip.css`),i}function o(e){return{type:"component",resolve:a=>{if(a in s)return{name:a,from:"vue-amazing-ui",sideEffects:l(a,e)}}}}exports.VueAmazingUIResolver=o;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s={Alert:"alert",Avatar:"avatar",BackTop:"backtop",Badge:"badge",Breadcrumb:"breadcrumb",Button:"button",Calendar:"calendar",Card:"card",Carousel:"carousel",Cascader:"cascader",Checkbox:"checkbox",Collapse:"collapse",ColorPicker:"colorpicker",Countdown:"countdown",DatePicker:"datepicker",Descriptions:"descriptions/descriptions",DescriptionsItem:"descriptions/descriptionsitem",Dialog:"dialog",Divider:"divider",Drawer:"drawer",Ellipsis:"ellipsis",Empty:"empty",Flex:"flex",FloatButton:"floatbutton",GradientText:"gradienttext",Row:"grid/row",Col:"grid/col",Image:"image",Input:"input",InputNumber:"inputnumber",InputSearch:"inputsearch",Layout:"layout",LayoutHeader:"layout/layoutheader",LayoutSider:"layout/layoutsider",LayoutContent:"layout/layoutcontent",LayoutFooter:"layout/layoutfooter",List:"list/list",ListItem:"list/listitem",LoadingBar:"loadingbar",Message:"message",Modal:"modal",Notification:"notification",NumberAnimation:"numberanimation",Pagination:"pagination",Popconfirm:"popconfirm",Popover:"popover",Progress:"progress",QRCode:"qrcode",Radio:"radio",Rate:"rate",Result:"result",Scrollbar:"scrollbar",Segmented:"segmented",Select:"select",Skeleton:"skeleton",Slider:"slider",Space:"space",Spin:"spin",Statistic:"statistic",Steps:"steps",Swiper:"swiper",Switch:"switch",Table:"table",Tabs:"tabs",Tag:"tag",Textarea:"textarea",TextScroll:"textscroll",Timeline:"timeline",TimePicker:"timepicker",Tooltip:"tooltip",Upload:"upload",Video:"video",Waterfall:"waterfall",Watermark:"watermark"};function l(e,a){const t=a!=null&&a.cjs?"lib":"es",i=[`vue-amazing-ui/${t}/${s[e]}/${e}.css`];return["ListItem"].includes(e)&&i.push(`vue-amazing-ui/${t}/avatar/Avatar.css`),["FloatButton"].includes(e)&&i.push(`vue-amazing-ui/${t}/badge/Badge.css`),["Collapse","ColorPicker","Dialog","InputSearch","Modal","Popconfirm"].includes(e)&&i.push(`vue-amazing-ui/${t}/button/Button.css`),["Table"].includes(e)&&i.push(`vue-amazing-ui/${t}/checkbox/Checkbox.css`),["Table"].includes(e)&&i.push(`vue-amazing-ui/${t}/ellipsis/Ellipsis.css`),["List","Select","Table"].includes(e)&&i.push(`vue-amazing-ui/${t}/empty/Empty.css`),["Upload"].includes(e)&&i.push(`vue-amazing-ui/${t}/image/Image.css`),["ColorPicker","Pagination"].includes(e)&&i.push(`vue-amazing-ui/${t}/input/Input.css`),["Upload"].includes(e)&&i.push(`vue-amazing-ui/${t}/message/Message.css`),["List","Table"].includes(e)&&i.push(`vue-amazing-ui/${t}/pagination/Pagination.css`),["Table"].includes(e)&&i.push(`vue-amazing-ui/${t}/radio/Radio.css`),["Dialog","Drawer","Select","Table"].includes(e)&&i.push(`vue-amazing-ui/${t}/scrollbar/Scrollbar.css`),["Cascader","Pagination"].includes(e)&&i.push(`vue-amazing-ui/${t}/select/Select.css`),["Card"].includes(e)&&i.push(`vue-amazing-ui/${t}/skeleton/Skeleton.css`),["Image","Tag","Upload"].includes(e)&&i.push(`vue-amazing-ui/${t}/space/Space.css`),["Carousel","Image","List","Table","Upload","Waterfall"].includes(e)&&i.push(`vue-amazing-ui/${t}/spin/Spin.css`),["BackTop","ColorPicker","Ellipsis","FloatButton","Popconfirm","Popover","Rate","Table"].includes(e)&&i.push(`vue-amazing-ui/${t}/tooltip/Tooltip.css`),i}function o(e){return{type:"component",resolve:a=>{if(a in s)return{name:a,from:"vue-amazing-ui",sideEffects:l(a,e)}}}}exports.VueAmazingUIResolver=o;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-amazing-ui",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.8",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "theMuseCatcher",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"vite-plugin-dts": "^4.5.0",
|
|
84
84
|
"vitepress": "^1.6.3",
|
|
85
85
|
"vue": "^3.5.13",
|
|
86
|
-
"vue-amazing-ui": "2.1.
|
|
86
|
+
"vue-amazing-ui": "2.1.7",
|
|
87
87
|
"vue-router": "^4.5.0",
|
|
88
88
|
"vue-tsc": "^2.2.0"
|
|
89
89
|
},
|