vue-amazing-ui 2.4.13 → 2.4.14
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 +1 -1
- package/dist/index.umd.cjs +1 -1
- package/es/utils/resolver.js +1 -1
- package/lib/utils/resolver.cjs +1 -1
- package/package.json +21 -2
package/dist/index.iife.js
CHANGED
|
@@ -269,4 +269,4 @@ Minimum version required to store current data is: `+$+`.
|
|
|
269
269
|
--waterfall-bg-color: ${b.backgroundColor};
|
|
270
270
|
--waterfall-width: ${d.value};
|
|
271
271
|
--waterfall-height: ${u.value}px;
|
|
272
|
-
`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(M,B)=>(e.openBlock(),e.createBlock(e.unref(ra),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:!r.value[B],size:"small",indicator:"dynamic-circle"},{ref_for:!0},b.spinProps,{key:B}),{default:e.withCtx(()=>[e.createElementVNode("a",{class:e.normalizeClass(["image-link",{"link-cursor":b.images[B].link}]),href:b.images[B].link,target:b.images[B].target?b.images[B].target:"_blank"},[e.createElementVNode("img",{class:"image-item",src:b.images[B].src,alt:m(b.images[B]),onLoad:C=>y(B)},null,40,Cy)],10,Sy)]),_:2},1040,["style","spinning"]))),128))],4))}}),[["__scopeId","data-v-1fa11414"]])),nd=3,rd=Be(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 $;return(($=t.gap)==null?void 0:$[0])??100}),c=e.computed(()=>{var $;return(($=t.gap)==null?void 0:$[1])??100}),d=e.computed(()=>i.value/2),u=e.computed(()=>c.value/2),f=e.computed(()=>{var $;return(($=t.offset)==null?void 0:$[0])??d.value}),p=e.computed(()=>{var $;return(($=t.offset)==null?void 0:$[1])??u.value}),w=e.computed(()=>({parallel:1,alternate:2})[t.layout]),g=e.computed(()=>t.fullscreen&&t.fixed),S=e.computed(()=>{const $={zIndex:t.zIndex??9,position:g.value?"fixed":"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};o.value&&($.filter="invert(1) hue-rotate(180deg)");let z=f.value-d.value,x=p.value-u.value;return z>0&&($.left=`${z}px`,$.width=`calc(100% - ${z}px)`,z=0),x>0&&($.top=`${x}px`,$.height=`calc(100% - ${x}px)`,x=0),$.backgroundPosition=`${z}px ${x}px`,$});e.watch(()=>[t],()=>{C()},{deep:!0,flush:"post"}),e.onMounted(()=>{C()}),e.onBeforeUnmount(()=>{h()}),ul(r,()=>{o.value=r.value.classList.contains("dark"),h(),C()},{attributeFilter:["class"]}),ul(t.fullscreen?r:a,v,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["style","class"]});function v($){s.value||$.forEach(z=>{E(z,n.value)&&(h(),C())})}function h(){n.value&&(n.value.remove(),n.value=void 0)}function y($,z){var x;a.value&&n.value&&(s.value=!0,n.value.setAttribute("style",b({...S.value,backgroundImage:`url('${$}')`,backgroundSize:`${(i.value+z)*w.value}px`})),t.fullscreen?(r.value.setAttribute("style","position: relative"),r.value.append(n.value)):(x=a.value)==null||x.append(n.value),setTimeout(()=>{s.value=!1}))}function m($){return $.replace(/([A-Z])/g,"-$1").toLowerCase()}function b($){return Object.keys($).map(z=>`${m(z)}: ${$[z]};`).join(" ")}function T($){let z=120,x=64;const N=t.content,A=t.image,_=t.width,R=t.height,I=t.textStyle.fontSize??16,K=t.textStyle.fontFamily??"sans-serif";if(!A&&$.measureText){$.font=`${Number(I)}px ${K}`;const U=Array.isArray(N)?N:[N],P=U.map(j=>$.measureText(j).width);z=Math.ceil(Math.max(...P)),x=Number(I)*U.length+(U.length-1)*nd}return[_??z,R??x]}function M(){return window.devicePixelRatio||1}function B($,z,x,N,A){const _=M(),R=t.content,I=t.textStyle.fontSize??16,K=t.textStyle.fontWeight??"normal",U=t.textStyle.fontFamily??"sans-serif",P=t.textStyle.fontStyle??"normal",j=t.textStyle.color??"rgba(0, 0, 0, 0.15)",F=Number(I)*_;$.font=`${P} normal ${K} ${F}px/${A}px ${U}`,$.fillStyle=j,$.textAlign="center",$.textBaseline="top",$.translate(N/2,0);const q=Array.isArray(R)?R:[R];q==null||q.forEach((G,le)=>{$.fillText(G??"",z,x+le*(F+nd*_))})}function C(){const $=document.createElement("canvas"),z=$.getContext("2d"),x=t.image,N=t.rotate??-22;if(z){n.value||(n.value=document.createElement("div"));const A=M(),[_,R]=T(z),I=(i.value+_)*A,K=(c.value+R)*A;$.setAttribute("width",`${I*w.value}px`),$.setAttribute("height",`${K*w.value}px`);const U=i.value*A/2,P=c.value*A/2,j=_*A,F=R*A,q=(j+i.value*A)/2,G=(F+c.value*A)/2,le=U+I,V=P+K,O=q+I,Z=G+K;if(z.save(),k(z,q,G,N),x){const ue=new Image;ue.onload=()=>{z.drawImage(ue,U,P,j,F),z.restore(),k(z,O,Z,N),z.drawImage(ue,le,V,j,F),y($.toDataURL(),_)},ue.crossOrigin="anonymous",ue.referrerPolicy="no-referrer",ue.src=x}else B(z,U,P,j,F),z.restore(),k(z,O,Z,N),B(z,le,V,j,F),y($.toDataURL(),_)}}function k($,z,x,N){$.translate(z,x),$.rotate(Math.PI/180*Number(N)),$.translate(-z,-x)}function E($,z){let x=!1;return $.removedNodes.length&&(x=Array.from($.removedNodes).some(N=>N===z)),$.type==="attributes"&&$.target===z&&(x=!0),x}return($,z)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"containerRef",ref:a,style:{position:"relative"}},[e.renderSlot($.$slots,"default")],512))}})),By=Object.freeze(Object.defineProperty({__proto__:null,Alert:Ao,Avatar:Dn,BackTop:_o,Badge:An,Breadcrumb:Lo,Button:gt,Calendar:ws,Card:bs,Carousel:Cs,Cascader:Bs,Checkbox:kl,Col:$i,Collapse:Es,ColorPicker:Ps,ConfigProvider:Ds,Countdown:As,DatePicker:mi,Descriptions:hi,DescriptionsItem:gi,Dialog:yi,Divider:wi,Drawer:bi,Ellipsis:Ha,Empty:Va,Flex:ki,FloatButton:vi,GradientText:Bi,Highlight:Mi,Image:Nr,Input:Ll,InputNumber:Ti,InputSearch:Vi,List:Ni,ListItem:xi,LoadingBar:zi,Message:xr,Modal:Pi,Notification:Di,NumberAnimation:Ai,Pagination:hn,Popconfirm:_i,Popover:Li,Progress:Fi,QRCode:yc,Radio:Al,Rate:wc,Result:bc,Row:Ei,Scrollbar:ha,Segmented:kc,Select:Na,Skeleton:qn,Slider:vc,Space:ql,Spin:ra,Statistic:Sc,Steps:Cc,Swiper:Uc,Switch:Gc,Table:Kc,Tabs:Xc,Tag:Qc,TextScroll:Jc,Textarea:Zc,Timeline:ed,Tooltip:Ut,Upload:td,Video:ad,Waterfall:ld,Watermark:rd},Symbol.toStringTag,{value:"Module"})),od={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",ConfigProvider:"configprovider",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",Highlight:"highlight",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"},sd={BackTop:["Tooltip"],Calendar:["Radio","Select","Empty","Scrollbar"],Card:["Skeleton"],Carousel:["Spin"],Cascader:["Select","Empty","Scrollbar"],Collapse:["Button"],ColorPicker:["Button","Input","Tooltip"],Dialog:["Button","Scrollbar"],Drawer:["Scrollbar"],Ellipsis:["Tooltip"],FloatButton:["Badge","Tooltip"],Image:["Space","Spin"],InputSearch:["Button"],List:["Empty","Pagination","Input","Select","Scrollbar","Spin"],ListItem:["Avatar"],Modal:["Button"],Pagination:["Input","Select","Empty","Scrollbar"],Popconfirm:["Button","Tooltip"],Popover:["Tooltip"],Rate:["Tooltip"],Select:["Empty","Scrollbar"],Table:["Checkbox","Ellipsis","Empty","Pagination","Input","Select","Radio","Scrollbar","Spin","Tooltip"],Tag:["Space"],Upload:["Image","Message","Space","Spin"],Waterfall:["Spin"]};function Ey(l,t){if(["ConfigProvider","Highlight","NumberAnimation","Watermark"].includes(l))return[];const a=[l];l in sd&&a.push(...sd[l]);const n=t!=null&&t.cjs?"lib":"es",r=[`vue-amazing-ui/${n}/style/global.css`];return a.forEach(o=>{r.push(`vue-amazing-ui/${n}/${od[o]}/${o}.css`)}),l==="DatePicker"&&r.push(`vue-amazing-ui/${n}/node_modules/.pnpm/@vuepic_vue-datepicker@11.0.2_vue@3.5.16_typescript@5.8.3_/node_modules/@vuepic/vue-datepicker/dist/main.css`),l==="Swiper"&&(r.push(`vue-amazing-ui/${n}/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/swiper.css`),["effect-cards","effect-creative","effect-cube","effect-fade","effect-flip","navigation","pagination"].forEach(s=>{r.push(`vue-amazing-ui/${n}/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/${s}.css`)})),r}function $y(l){return{type:"component",resolve:t=>{if(t in od)return{name:t,from:"vue-amazing-ui",sideEffects:Ey(t,l)}}}}const id=function(l){return Object.values(By).forEach(t=>{t.install&&l.use(t)}),l},My={install:id};return me.Alert=Ao,me.Avatar=Dn,me.BackTop=_o,me.Badge=An,me.Breadcrumb=Lo,me.Button=gt,me.Calendar=ws,me.Card=bs,me.Carousel=Cs,me.Cascader=Bs,me.Checkbox=kl,me.Col=$i,me.Collapse=Es,me.ColorPicker=Ps,me.ConfigProvider=Ds,me.Countdown=As,me.DatePicker=mi,me.Descriptions=hi,me.DescriptionsItem=gi,me.Dialog=yi,me.Divider=wi,me.Drawer=bi,me.Ellipsis=Ha,me.Empty=Va,me.Flex=ki,me.FloatButton=vi,me.GradientText=Bi,me.Highlight=Mi,me.Image=Nr,me.Input=Ll,me.InputNumber=Ti,me.InputSearch=Vi,me.List=Ni,me.ListItem=xi,me.LoadingBar=zi,me.Message=xr,me.Modal=Pi,me.Notification=Di,me.NumberAnimation=Ai,me.Pagination=hn,me.Popconfirm=_i,me.Popover=Li,me.Progress=Fi,me.QRCode=yc,me.Radio=Al,me.Rate=wc,me.Result=bc,me.Row=Ei,me.Scrollbar=ha,me.Segmented=kc,me.Select=Na,me.Skeleton=qn,me.Slider=vc,me.Space=ql,me.Spin=ra,me.Statistic=Sc,me.Steps=Cc,me.Swiper=Uc,me.Switch=Gc,me.Table=Kc,me.Tabs=Xc,me.Tag=Qc,me.TextScroll=Jc,me.Textarea=Zc,me.Timeline=ed,me.Tooltip=Ut,me.Upload=td,me.Video=ad,me.VueAmazingUIResolver=$y,me.Waterfall=ld,me.Watermark=rd,me.add=dl,me.cancelRaf=mt,me.dateFormat=zd,me.debounce=ja,me.default=My,me.downloadFile=zo,me.formatNumber=zn,me.install=id,me.rafTimeout=ta,me.throttle=xo,me.toggleDark=Pd,me.useEventListener=Ua,me.useFps=Ad,me.useInject=Ye,me.useMediaQuery=_d,me.useMutationObserver=ul,me.useOptionsSupported=fl,me.useResizeObserver=jt,me.useScroll=Do,me.useSlotsExist=He,Object.defineProperties(me,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),me}({},Vue);
|
|
272
|
+
`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(M,B)=>(e.openBlock(),e.createBlock(e.unref(ra),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:!r.value[B],size:"small",indicator:"dynamic-circle"},{ref_for:!0},b.spinProps,{key:B}),{default:e.withCtx(()=>[e.createElementVNode("a",{class:e.normalizeClass(["image-link",{"link-cursor":b.images[B].link}]),href:b.images[B].link,target:b.images[B].target?b.images[B].target:"_blank"},[e.createElementVNode("img",{class:"image-item",src:b.images[B].src,alt:m(b.images[B]),onLoad:C=>y(B)},null,40,Cy)],10,Sy)]),_:2},1040,["style","spinning"]))),128))],4))}}),[["__scopeId","data-v-1fa11414"]])),nd=3,rd=Be(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 $;return(($=t.gap)==null?void 0:$[0])??100}),c=e.computed(()=>{var $;return(($=t.gap)==null?void 0:$[1])??100}),d=e.computed(()=>i.value/2),u=e.computed(()=>c.value/2),f=e.computed(()=>{var $;return(($=t.offset)==null?void 0:$[0])??d.value}),p=e.computed(()=>{var $;return(($=t.offset)==null?void 0:$[1])??u.value}),w=e.computed(()=>({parallel:1,alternate:2})[t.layout]),g=e.computed(()=>t.fullscreen&&t.fixed),S=e.computed(()=>{const $={zIndex:t.zIndex??9,position:g.value?"fixed":"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};o.value&&($.filter="invert(1) hue-rotate(180deg)");let z=f.value-d.value,x=p.value-u.value;return z>0&&($.left=`${z}px`,$.width=`calc(100% - ${z}px)`,z=0),x>0&&($.top=`${x}px`,$.height=`calc(100% - ${x}px)`,x=0),$.backgroundPosition=`${z}px ${x}px`,$});e.watch(()=>[t],()=>{C()},{deep:!0,flush:"post"}),e.onMounted(()=>{C()}),e.onBeforeUnmount(()=>{h()}),ul(r,()=>{o.value=r.value.classList.contains("dark"),h(),C()},{attributeFilter:["class"]}),ul(t.fullscreen?r:a,v,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["style","class"]});function v($){s.value||$.forEach(z=>{E(z,n.value)&&(h(),C())})}function h(){n.value&&(n.value.remove(),n.value=void 0)}function y($,z){var x;a.value&&n.value&&(s.value=!0,n.value.setAttribute("style",b({...S.value,backgroundImage:`url('${$}')`,backgroundSize:`${(i.value+z)*w.value}px`})),t.fullscreen?(r.value.setAttribute("style","position: relative"),r.value.append(n.value)):(x=a.value)==null||x.append(n.value),setTimeout(()=>{s.value=!1}))}function m($){return $.replace(/([A-Z])/g,"-$1").toLowerCase()}function b($){return Object.keys($).map(z=>`${m(z)}: ${$[z]};`).join(" ")}function T($){let z=120,x=64;const N=t.content,A=t.image,_=t.width,R=t.height,I=t.textStyle.fontSize??16,K=t.textStyle.fontFamily??"sans-serif";if(!A&&$.measureText){$.font=`${Number(I)}px ${K}`;const U=Array.isArray(N)?N:[N],P=U.map(j=>$.measureText(j).width);z=Math.ceil(Math.max(...P)),x=Number(I)*U.length+(U.length-1)*nd}return[_??z,R??x]}function M(){return window.devicePixelRatio||1}function B($,z,x,N,A){const _=M(),R=t.content,I=t.textStyle.fontSize??16,K=t.textStyle.fontWeight??"normal",U=t.textStyle.fontFamily??"sans-serif",P=t.textStyle.fontStyle??"normal",j=t.textStyle.color??"rgba(0, 0, 0, 0.15)",F=Number(I)*_;$.font=`${P} normal ${K} ${F}px/${A}px ${U}`,$.fillStyle=j,$.textAlign="center",$.textBaseline="top",$.translate(N/2,0);const q=Array.isArray(R)?R:[R];q==null||q.forEach((G,le)=>{$.fillText(G??"",z,x+le*(F+nd*_))})}function C(){const $=document.createElement("canvas"),z=$.getContext("2d"),x=t.image,N=t.rotate??-22;if(z){n.value||(n.value=document.createElement("div"));const A=M(),[_,R]=T(z),I=(i.value+_)*A,K=(c.value+R)*A;$.setAttribute("width",`${I*w.value}px`),$.setAttribute("height",`${K*w.value}px`);const U=i.value*A/2,P=c.value*A/2,j=_*A,F=R*A,q=(j+i.value*A)/2,G=(F+c.value*A)/2,le=U+I,V=P+K,O=q+I,Z=G+K;if(z.save(),k(z,q,G,N),x){const ue=new Image;ue.onload=()=>{z.drawImage(ue,U,P,j,F),z.restore(),k(z,O,Z,N),z.drawImage(ue,le,V,j,F),y($.toDataURL(),_)},ue.crossOrigin="anonymous",ue.referrerPolicy="no-referrer",ue.src=x}else B(z,U,P,j,F),z.restore(),k(z,O,Z,N),B(z,le,V,j,F),y($.toDataURL(),_)}}function k($,z,x,N){$.translate(z,x),$.rotate(Math.PI/180*Number(N)),$.translate(-z,-x)}function E($,z){let x=!1;return $.removedNodes.length&&(x=Array.from($.removedNodes).some(N=>N===z)),$.type==="attributes"&&$.target===z&&(x=!0),x}return($,z)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"containerRef",ref:a,style:{position:"relative"}},[e.renderSlot($.$slots,"default")],512))}})),By=Object.freeze(Object.defineProperty({__proto__:null,Alert:Ao,Avatar:Dn,BackTop:_o,Badge:An,Breadcrumb:Lo,Button:gt,Calendar:ws,Card:bs,Carousel:Cs,Cascader:Bs,Checkbox:kl,Col:$i,Collapse:Es,ColorPicker:Ps,ConfigProvider:Ds,Countdown:As,DatePicker:mi,Descriptions:hi,DescriptionsItem:gi,Dialog:yi,Divider:wi,Drawer:bi,Ellipsis:Ha,Empty:Va,Flex:ki,FloatButton:vi,GradientText:Bi,Highlight:Mi,Image:Nr,Input:Ll,InputNumber:Ti,InputSearch:Vi,List:Ni,ListItem:xi,LoadingBar:zi,Message:xr,Modal:Pi,Notification:Di,NumberAnimation:Ai,Pagination:hn,Popconfirm:_i,Popover:Li,Progress:Fi,QRCode:yc,Radio:Al,Rate:wc,Result:bc,Row:Ei,Scrollbar:ha,Segmented:kc,Select:Na,Skeleton:qn,Slider:vc,Space:ql,Spin:ra,Statistic:Sc,Steps:Cc,Swiper:Uc,Switch:Gc,Table:Kc,Tabs:Xc,Tag:Qc,TextScroll:Jc,Textarea:Zc,Timeline:ed,Tooltip:Ut,Upload:td,Video:ad,Waterfall:ld,Watermark:rd},Symbol.toStringTag,{value:"Module"})),od={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",ConfigProvider:"configprovider",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",Highlight:"highlight",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"},sd={BackTop:["Tooltip"],Calendar:["Radio","Select","Empty","Scrollbar"],Card:["Skeleton"],Carousel:["Spin"],Cascader:["Select","Empty","Scrollbar"],Collapse:["Button"],ColorPicker:["Button","Input","Tooltip"],Dialog:["Button","Scrollbar"],Drawer:["Scrollbar"],Ellipsis:["Tooltip"],FloatButton:["Badge","Tooltip"],Image:["Space","Spin"],InputSearch:["Button"],List:["Empty","Pagination","Input","Select","Scrollbar","Spin"],ListItem:["Avatar"],Modal:["Button"],Pagination:["Input","Select","Empty","Scrollbar"],Popconfirm:["Button","Tooltip"],Popover:["Tooltip"],Rate:["Tooltip"],Select:["Empty","Scrollbar"],Table:["Checkbox","Ellipsis","Empty","Pagination","Input","Select","Radio","Scrollbar","Spin","Tooltip"],Tag:["Space"],Upload:["Image","Message","Space","Spin"],Waterfall:["Spin"]};function Ey(l,t){if(["ConfigProvider","Highlight","NumberAnimation","Watermark"].includes(l))return[];const a=[l];l in sd&&a.push(...sd[l]);const n=t!=null&&t.cjs?"lib":"es",r=[`vue-amazing-ui/${n}/style/global.css`];return a.forEach(o=>{r.push(`vue-amazing-ui/${n}/${od[o]}/${o}.css`)}),l==="DatePicker"&&r.push(`vue-amazing-ui/${n}/node_modules/.pnpm/@vuepic_vue-datepicker@11.0.2_vue@3.5.16_typescript@5.8.3_/node_modules/@vuepic/vue-datepicker/dist/main.css`),l==="Swiper"&&(r.push(`vue-amazing-ui/${n}/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/swiper.css`),["effect-cards","effect-creative","effect-cube","effect-fade","effect-flip","navigation","pagination"].forEach(s=>{r.push(`vue-amazing-ui/${n}/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/${s}.css`)})),r}function $y(l){return{type:"component",resolve:t=>{if(t in od)return{name:t,from:"vue-amazing-ui",sideEffects:Ey(t,l)}}}}const id=function(l){return Object.values(By).forEach(t=>{t.install&&l.use(t)}),l},My={install:id};return me.Alert=Ao,me.Avatar=Dn,me.BackTop=_o,me.Badge=An,me.Breadcrumb=Lo,me.Button=gt,me.Calendar=ws,me.Card=bs,me.Carousel=Cs,me.Cascader=Bs,me.Checkbox=kl,me.Col=$i,me.Collapse=Es,me.ColorPicker=Ps,me.ConfigProvider=Ds,me.Countdown=As,me.DatePicker=mi,me.Descriptions=hi,me.DescriptionsItem=gi,me.Dialog=yi,me.Divider=wi,me.Drawer=bi,me.Ellipsis=Ha,me.Empty=Va,me.Flex=ki,me.FloatButton=vi,me.GradientText=Bi,me.Highlight=Mi,me.Image=Nr,me.Input=Ll,me.InputNumber=Ti,me.InputSearch=Vi,me.List=Ni,me.ListItem=xi,me.LoadingBar=zi,me.Message=xr,me.Modal=Pi,me.Notification=Di,me.NumberAnimation=Ai,me.Pagination=hn,me.Popconfirm=_i,me.Popover=Li,me.Progress=Fi,me.QRCode=yc,me.Radio=Al,me.Rate=wc,me.Result=bc,me.Row=Ei,me.Scrollbar=ha,me.Segmented=kc,me.Select=Na,me.Skeleton=qn,me.Slider=vc,me.Space=ql,me.Spin=ra,me.Statistic=Sc,me.Steps=Cc,me.Swiper=Uc,me.Switch=Gc,me.Table=Kc,me.Tabs=Xc,me.Tag=Qc,me.TextScroll=Jc,me.Textarea=Zc,me.Timeline=ed,me.Tooltip=Ut,me.Upload=td,me.Video=ad,me.VueAmazingUIResolver=$y,me.Waterfall=ld,me.Watermark=rd,me.add=dl,me.cancelRaf=mt,me.dateFormat=zd,me.debounce=ja,me.default=My,me.downloadFile=zo,me.formatNumber=zn,me.install=id,me.rafTimeout=ta,me.throttle=xo,me.toggleDark=Pd,me.useEventListener=Ua,me.useFps=Ad,me.useInject=Ye,me.useMediaQuery=_d,me.useMutationObserver=ul,me.useOptionsSupported=fl,me.useResizeObserver=jt,me.useScroll=Do,me.useSlotsExist=He,Object.defineProperties(me,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),me}({},Vue);
|
package/dist/index.js
CHANGED
|
@@ -13001,7 +13001,7 @@ function xc($, l) {
|
|
|
13001
13001
|
"pagination"
|
|
13002
13002
|
].forEach((u) => {
|
|
13003
13003
|
r.push(
|
|
13004
|
-
`vue-amazing-ui/${t}/node_modules/.pnpm/swiper@11.2.
|
|
13004
|
+
`vue-amazing-ui/${t}/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/${u}.css`
|
|
13005
13005
|
);
|
|
13006
13006
|
})), r;
|
|
13007
13007
|
}
|
package/dist/index.umd.cjs
CHANGED
|
@@ -258,4 +258,4 @@
|
|
|
258
258
|
--waterfall-bg-color: ${h.backgroundColor};
|
|
259
259
|
--waterfall-width: ${i.value};
|
|
260
260
|
--waterfall-height: ${g.value}px;
|
|
261
|
-
`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(D,S)=>(e.openBlock(),e.createBlock(e.unref(Qe),e.mergeProps({class:"waterfall-image",style:`width: ${D.width}px; height: ${D.height}px; top: ${D&&D.top}px; left: ${D&&D.left}px;`,spinning:!n.value[S],size:"small",indicator:"dynamic-circle"},{ref_for:!0},h.spinProps,{key:S}),{default:e.withCtx(()=>[e.createElementVNode("a",{class:e.normalizeClass(["image-link",{"link-cursor":h.images[S].link}]),href:h.images[S].link,target:h.images[S].target?h.images[S].target:"_blank"},[e.createElementVNode("img",{class:"image-item",src:h.images[S].src,alt:k(h.images[S]),onLoad:w=>v(S)},null,40,Tc)],10,Lc)]),_:2},1040,["style","spinning"]))),128))],4))}}),[["__scopeId","data-v-1fa11414"]])),Ul=3,Yl=ne(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(y){const o=y,t=e.shallowRef(),l=e.shallowRef(),n=e.shallowRef(document.documentElement),r=e.shallowRef(n.value.classList.contains("dark")),s=e.shallowRef(!1),a=e.computed(()=>{var B;return((B=o.gap)==null?void 0:B[0])??100}),d=e.computed(()=>{var B;return((B=o.gap)==null?void 0:B[1])??100}),i=e.computed(()=>a.value/2),g=e.computed(()=>d.value/2),f=e.computed(()=>{var B;return((B=o.offset)==null?void 0:B[0])??i.value}),u=e.computed(()=>{var B;return((B=o.offset)==null?void 0:B[1])??g.value}),$=e.computed(()=>({parallel:1,alternate:2})[o.layout]),m=e.computed(()=>o.fullscreen&&o.fixed),C=e.computed(()=>{const B={zIndex:o.zIndex??9,position:m.value?"fixed":"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};r.value&&(B.filter="invert(1) hue-rotate(180deg)");let P=f.value-i.value,F=u.value-g.value;return P>0&&(B.left=`${P}px`,B.width=`calc(100% - ${P}px)`,P=0),F>0&&(B.top=`${F}px`,B.height=`calc(100% - ${F}px)`,F=0),B.backgroundPosition=`${P}px ${F}px`,B});e.watch(()=>[o],()=>{w()},{deep:!0,flush:"post"}),e.onMounted(()=>{w()}),e.onBeforeUnmount(()=>{c()}),ht(n,()=>{r.value=n.value.classList.contains("dark"),c(),w()},{attributeFilter:["class"]}),ht(o.fullscreen?n:t,p,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["style","class"]});function p(B){s.value||B.forEach(P=>{M(P,l.value)&&(c(),w())})}function c(){l.value&&(l.value.remove(),l.value=void 0)}function v(B,P){var F;t.value&&l.value&&(s.value=!0,l.value.setAttribute("style",h({...C.value,backgroundImage:`url('${B}')`,backgroundSize:`${(a.value+P)*$.value}px`})),o.fullscreen?(n.value.setAttribute("style","position: relative"),n.value.append(l.value)):(F=t.value)==null||F.append(l.value),setTimeout(()=>{s.value=!1}))}function k(B){return B.replace(/([A-Z])/g,"-$1").toLowerCase()}function h(B){return Object.keys(B).map(P=>`${k(P)}: ${B[P]};`).join(" ")}function N(B){let P=120,F=64;const X=o.content,j=o.image,q=o.width,W=o.height,K=o.textStyle.fontSize??16,fe=o.textStyle.fontFamily??"sans-serif";if(!j&&B.measureText){B.font=`${Number(K)}px ${fe}`;const Q=Array.isArray(X)?X:[X],z=Q.map(I=>B.measureText(I).width);P=Math.ceil(Math.max(...z)),F=Number(K)*Q.length+(Q.length-1)*Ul}return[q??P,W??F]}function D(){return window.devicePixelRatio||1}function S(B,P,F,X,j){const q=D(),W=o.content,K=o.textStyle.fontSize??16,fe=o.textStyle.fontWeight??"normal",Q=o.textStyle.fontFamily??"sans-serif",z=o.textStyle.fontStyle??"normal",I=o.textStyle.color??"rgba(0, 0, 0, 0.15)",G=Number(K)*q;B.font=`${z} normal ${fe} ${G}px/${j}px ${Q}`,B.fillStyle=I,B.textAlign="center",B.textBaseline="top",B.translate(X/2,0);const re=Array.isArray(W)?W:[W];re==null||re.forEach((oe,me)=>{B.fillText(oe??"",P,F+me*(G+Ul*q))})}function w(){const B=document.createElement("canvas"),P=B.getContext("2d"),F=o.image,X=o.rotate??-22;if(P){l.value||(l.value=document.createElement("div"));const j=D(),[q,W]=N(P),K=(a.value+q)*j,fe=(d.value+W)*j;B.setAttribute("width",`${K*$.value}px`),B.setAttribute("height",`${fe*$.value}px`);const Q=a.value*j/2,z=d.value*j/2,I=q*j,G=W*j,re=(I+a.value*j)/2,oe=(G+d.value*j)/2,me=Q+K,Ce=z+fe,_=re+K,Z=oe+fe;if(P.save(),E(P,re,oe,X),F){const ae=new Image;ae.onload=()=>{P.drawImage(ae,Q,z,I,G),P.restore(),E(P,_,Z,X),P.drawImage(ae,me,Ce,I,G),v(B.toDataURL(),q)},ae.crossOrigin="anonymous",ae.referrerPolicy="no-referrer",ae.src=F}else S(P,Q,z,I,G),P.restore(),E(P,_,Z,X),S(P,me,Ce,I,G),v(B.toDataURL(),q)}}function E(B,P,F,X){B.translate(P,F),B.rotate(Math.PI/180*Number(X)),B.translate(-P,-F)}function M(B,P){let F=!1;return B.removedNodes.length&&(F=Array.from(B.removedNodes).some(X=>X===P)),B.type==="attributes"&&B.target===P&&(F=!0),F}return(B,P)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"containerRef",ref:t,style:{position:"relative"}},[e.renderSlot(B.$slots,"default")],512))}})),Dc=Object.freeze(Object.defineProperty({__proto__:null,Alert:Kt,Avatar:Ft,BackTop:Ut,Badge:Rt,Breadcrumb:Yt,Button:Ie,Calendar:qt,Card:Gt,Carousel:Xt,Cascader:_t,Checkbox:kt,Col:ml,Collapse:Zt,ColorPicker:Jt,ConfigProvider:el,Countdown:tl,DatePicker:ll,Descriptions:ol,DescriptionsItem:al,Dialog:nl,Divider:rl,Drawer:sl,Ellipsis:rt,Empty:at,Flex:il,FloatButton:cl,GradientText:pl,Highlight:hl,Image:xt,Input:Ct,InputNumber:gl,InputSearch:kl,List:yl,ListItem:wl,LoadingBar:bl,Message:Ht,Modal:Cl,Notification:Bl,NumberAnimation:Sl,Pagination:Vt,Popconfirm:vl,Popover:$l,Progress:El,QRCode:Vl,Radio:bt,Rate:zl,Result:Nl,Row:ul,Scrollbar:tt,Segmented:Ml,Select:nt,Skeleton:At,Slider:Ll,Space:Bt,Spin:Qe,Statistic:Tl,Steps:Dl,Swiper:Pl,Switch:Fl,Table:Rl,Tabs:Al,Tag:xl,TextScroll:Il,Textarea:Hl,Timeline:Wl,Tooltip:Xe,Upload:Ol,Video:jl,Waterfall:Kl,Watermark:Yl},Symbol.toStringTag,{value:"Module"})),ql={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",ConfigProvider:"configprovider",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",Highlight:"highlight",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"},Gl={BackTop:["Tooltip"],Calendar:["Radio","Select","Empty","Scrollbar"],Card:["Skeleton"],Carousel:["Spin"],Cascader:["Select","Empty","Scrollbar"],Collapse:["Button"],ColorPicker:["Button","Input","Tooltip"],Dialog:["Button","Scrollbar"],Drawer:["Scrollbar"],Ellipsis:["Tooltip"],FloatButton:["Badge","Tooltip"],Image:["Space","Spin"],InputSearch:["Button"],List:["Empty","Pagination","Input","Select","Scrollbar","Spin"],ListItem:["Avatar"],Modal:["Button"],Pagination:["Input","Select","Empty","Scrollbar"],Popconfirm:["Button","Tooltip"],Popover:["Tooltip"],Rate:["Tooltip"],Select:["Empty","Scrollbar"],Table:["Checkbox","Ellipsis","Empty","Pagination","Input","Select","Radio","Scrollbar","Spin","Tooltip"],Tag:["Space"],Upload:["Image","Message","Space","Spin"],Waterfall:["Spin"]};function Pc(y,o){if(["ConfigProvider","Highlight","NumberAnimation","Watermark"].includes(y))return[];const t=[y];y in Gl&&t.push(...Gl[y]);const l=o!=null&&o.cjs?"lib":"es",n=[`vue-amazing-ui/${l}/style/global.css`];return t.forEach(r=>{n.push(`vue-amazing-ui/${l}/${ql[r]}/${r}.css`)}),y==="DatePicker"&&n.push(`vue-amazing-ui/${l}/node_modules/.pnpm/@vuepic_vue-datepicker@11.0.2_vue@3.5.16_typescript@5.8.3_/node_modules/@vuepic/vue-datepicker/dist/main.css`),y==="Swiper"&&(n.push(`vue-amazing-ui/${l}/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/swiper.css`),["effect-cards","effect-creative","effect-cube","effect-fade","effect-flip","navigation","pagination"].forEach(s=>{n.push(`vue-amazing-ui/${l}/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/${s}.css`)})),n}function Fc(y){return{type:"component",resolve:o=>{if(o in ql)return{name:o,from:"vue-amazing-ui",sideEffects:Pc(o,y)}}}}const Xl=function(y){return Object.values(Dc).forEach(o=>{o.install&&y.use(o)}),y},Rc={install:Xl};Y.Alert=Kt,Y.Avatar=Ft,Y.BackTop=Ut,Y.Badge=Rt,Y.Breadcrumb=Yt,Y.Button=Ie,Y.Calendar=qt,Y.Card=Gt,Y.Carousel=Xt,Y.Cascader=_t,Y.Checkbox=kt,Y.Col=ml,Y.Collapse=Zt,Y.ColorPicker=Jt,Y.ConfigProvider=el,Y.Countdown=tl,Y.DatePicker=ll,Y.Descriptions=ol,Y.DescriptionsItem=al,Y.Dialog=nl,Y.Divider=rl,Y.Drawer=sl,Y.Ellipsis=rt,Y.Empty=at,Y.Flex=il,Y.FloatButton=cl,Y.GradientText=pl,Y.Highlight=hl,Y.Image=xt,Y.Input=Ct,Y.InputNumber=gl,Y.InputSearch=kl,Y.List=yl,Y.ListItem=wl,Y.LoadingBar=bl,Y.Message=Ht,Y.Modal=Cl,Y.Notification=Bl,Y.NumberAnimation=Sl,Y.Pagination=Vt,Y.Popconfirm=vl,Y.Popover=$l,Y.Progress=El,Y.QRCode=Vl,Y.Radio=bt,Y.Rate=zl,Y.Result=Nl,Y.Row=ul,Y.Scrollbar=tt,Y.Segmented=Ml,Y.Select=nt,Y.Skeleton=At,Y.Slider=Ll,Y.Space=Bt,Y.Spin=Qe,Y.Statistic=Tl,Y.Steps=Dl,Y.Swiper=Pl,Y.Switch=Fl,Y.Table=Rl,Y.Tabs=Al,Y.Tag=xl,Y.TextScroll=Il,Y.Textarea=Hl,Y.Timeline=Wl,Y.Tooltip=Xe,Y.Upload=Ol,Y.Video=jl,Y.VueAmazingUIResolver=Fc,Y.Waterfall=Kl,Y.Watermark=Yl,Y.add=mt,Y.cancelRaf=He,Y.dateFormat=ao,Y.debounce=dt,Y.default=Rc,Y.downloadFile=Wt,Y.formatNumber=Dt,Y.install=Xl,Y.rafTimeout=Ze,Y.throttle=It,Y.toggleDark=no,Y.useEventListener=ft,Y.useFps=so,Y.useInject=Ne,Y.useMediaQuery=io,Y.useMutationObserver=ht,Y.useOptionsSupported=gt,Y.useResizeObserver=Ge,Y.useScroll=jt,Y.useSlotsExist=ze,Object.defineProperties(Y,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
261
|
+
`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(D,S)=>(e.openBlock(),e.createBlock(e.unref(Qe),e.mergeProps({class:"waterfall-image",style:`width: ${D.width}px; height: ${D.height}px; top: ${D&&D.top}px; left: ${D&&D.left}px;`,spinning:!n.value[S],size:"small",indicator:"dynamic-circle"},{ref_for:!0},h.spinProps,{key:S}),{default:e.withCtx(()=>[e.createElementVNode("a",{class:e.normalizeClass(["image-link",{"link-cursor":h.images[S].link}]),href:h.images[S].link,target:h.images[S].target?h.images[S].target:"_blank"},[e.createElementVNode("img",{class:"image-item",src:h.images[S].src,alt:k(h.images[S]),onLoad:w=>v(S)},null,40,Tc)],10,Lc)]),_:2},1040,["style","spinning"]))),128))],4))}}),[["__scopeId","data-v-1fa11414"]])),Ul=3,Yl=ne(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(y){const o=y,t=e.shallowRef(),l=e.shallowRef(),n=e.shallowRef(document.documentElement),r=e.shallowRef(n.value.classList.contains("dark")),s=e.shallowRef(!1),a=e.computed(()=>{var B;return((B=o.gap)==null?void 0:B[0])??100}),d=e.computed(()=>{var B;return((B=o.gap)==null?void 0:B[1])??100}),i=e.computed(()=>a.value/2),g=e.computed(()=>d.value/2),f=e.computed(()=>{var B;return((B=o.offset)==null?void 0:B[0])??i.value}),u=e.computed(()=>{var B;return((B=o.offset)==null?void 0:B[1])??g.value}),$=e.computed(()=>({parallel:1,alternate:2})[o.layout]),m=e.computed(()=>o.fullscreen&&o.fixed),C=e.computed(()=>{const B={zIndex:o.zIndex??9,position:m.value?"fixed":"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};r.value&&(B.filter="invert(1) hue-rotate(180deg)");let P=f.value-i.value,F=u.value-g.value;return P>0&&(B.left=`${P}px`,B.width=`calc(100% - ${P}px)`,P=0),F>0&&(B.top=`${F}px`,B.height=`calc(100% - ${F}px)`,F=0),B.backgroundPosition=`${P}px ${F}px`,B});e.watch(()=>[o],()=>{w()},{deep:!0,flush:"post"}),e.onMounted(()=>{w()}),e.onBeforeUnmount(()=>{c()}),ht(n,()=>{r.value=n.value.classList.contains("dark"),c(),w()},{attributeFilter:["class"]}),ht(o.fullscreen?n:t,p,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["style","class"]});function p(B){s.value||B.forEach(P=>{M(P,l.value)&&(c(),w())})}function c(){l.value&&(l.value.remove(),l.value=void 0)}function v(B,P){var F;t.value&&l.value&&(s.value=!0,l.value.setAttribute("style",h({...C.value,backgroundImage:`url('${B}')`,backgroundSize:`${(a.value+P)*$.value}px`})),o.fullscreen?(n.value.setAttribute("style","position: relative"),n.value.append(l.value)):(F=t.value)==null||F.append(l.value),setTimeout(()=>{s.value=!1}))}function k(B){return B.replace(/([A-Z])/g,"-$1").toLowerCase()}function h(B){return Object.keys(B).map(P=>`${k(P)}: ${B[P]};`).join(" ")}function N(B){let P=120,F=64;const X=o.content,j=o.image,q=o.width,W=o.height,K=o.textStyle.fontSize??16,fe=o.textStyle.fontFamily??"sans-serif";if(!j&&B.measureText){B.font=`${Number(K)}px ${fe}`;const Q=Array.isArray(X)?X:[X],z=Q.map(I=>B.measureText(I).width);P=Math.ceil(Math.max(...z)),F=Number(K)*Q.length+(Q.length-1)*Ul}return[q??P,W??F]}function D(){return window.devicePixelRatio||1}function S(B,P,F,X,j){const q=D(),W=o.content,K=o.textStyle.fontSize??16,fe=o.textStyle.fontWeight??"normal",Q=o.textStyle.fontFamily??"sans-serif",z=o.textStyle.fontStyle??"normal",I=o.textStyle.color??"rgba(0, 0, 0, 0.15)",G=Number(K)*q;B.font=`${z} normal ${fe} ${G}px/${j}px ${Q}`,B.fillStyle=I,B.textAlign="center",B.textBaseline="top",B.translate(X/2,0);const re=Array.isArray(W)?W:[W];re==null||re.forEach((oe,me)=>{B.fillText(oe??"",P,F+me*(G+Ul*q))})}function w(){const B=document.createElement("canvas"),P=B.getContext("2d"),F=o.image,X=o.rotate??-22;if(P){l.value||(l.value=document.createElement("div"));const j=D(),[q,W]=N(P),K=(a.value+q)*j,fe=(d.value+W)*j;B.setAttribute("width",`${K*$.value}px`),B.setAttribute("height",`${fe*$.value}px`);const Q=a.value*j/2,z=d.value*j/2,I=q*j,G=W*j,re=(I+a.value*j)/2,oe=(G+d.value*j)/2,me=Q+K,Ce=z+fe,_=re+K,Z=oe+fe;if(P.save(),E(P,re,oe,X),F){const ae=new Image;ae.onload=()=>{P.drawImage(ae,Q,z,I,G),P.restore(),E(P,_,Z,X),P.drawImage(ae,me,Ce,I,G),v(B.toDataURL(),q)},ae.crossOrigin="anonymous",ae.referrerPolicy="no-referrer",ae.src=F}else S(P,Q,z,I,G),P.restore(),E(P,_,Z,X),S(P,me,Ce,I,G),v(B.toDataURL(),q)}}function E(B,P,F,X){B.translate(P,F),B.rotate(Math.PI/180*Number(X)),B.translate(-P,-F)}function M(B,P){let F=!1;return B.removedNodes.length&&(F=Array.from(B.removedNodes).some(X=>X===P)),B.type==="attributes"&&B.target===P&&(F=!0),F}return(B,P)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"containerRef",ref:t,style:{position:"relative"}},[e.renderSlot(B.$slots,"default")],512))}})),Dc=Object.freeze(Object.defineProperty({__proto__:null,Alert:Kt,Avatar:Ft,BackTop:Ut,Badge:Rt,Breadcrumb:Yt,Button:Ie,Calendar:qt,Card:Gt,Carousel:Xt,Cascader:_t,Checkbox:kt,Col:ml,Collapse:Zt,ColorPicker:Jt,ConfigProvider:el,Countdown:tl,DatePicker:ll,Descriptions:ol,DescriptionsItem:al,Dialog:nl,Divider:rl,Drawer:sl,Ellipsis:rt,Empty:at,Flex:il,FloatButton:cl,GradientText:pl,Highlight:hl,Image:xt,Input:Ct,InputNumber:gl,InputSearch:kl,List:yl,ListItem:wl,LoadingBar:bl,Message:Ht,Modal:Cl,Notification:Bl,NumberAnimation:Sl,Pagination:Vt,Popconfirm:vl,Popover:$l,Progress:El,QRCode:Vl,Radio:bt,Rate:zl,Result:Nl,Row:ul,Scrollbar:tt,Segmented:Ml,Select:nt,Skeleton:At,Slider:Ll,Space:Bt,Spin:Qe,Statistic:Tl,Steps:Dl,Swiper:Pl,Switch:Fl,Table:Rl,Tabs:Al,Tag:xl,TextScroll:Il,Textarea:Hl,Timeline:Wl,Tooltip:Xe,Upload:Ol,Video:jl,Waterfall:Kl,Watermark:Yl},Symbol.toStringTag,{value:"Module"})),ql={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",ConfigProvider:"configprovider",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",Highlight:"highlight",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"},Gl={BackTop:["Tooltip"],Calendar:["Radio","Select","Empty","Scrollbar"],Card:["Skeleton"],Carousel:["Spin"],Cascader:["Select","Empty","Scrollbar"],Collapse:["Button"],ColorPicker:["Button","Input","Tooltip"],Dialog:["Button","Scrollbar"],Drawer:["Scrollbar"],Ellipsis:["Tooltip"],FloatButton:["Badge","Tooltip"],Image:["Space","Spin"],InputSearch:["Button"],List:["Empty","Pagination","Input","Select","Scrollbar","Spin"],ListItem:["Avatar"],Modal:["Button"],Pagination:["Input","Select","Empty","Scrollbar"],Popconfirm:["Button","Tooltip"],Popover:["Tooltip"],Rate:["Tooltip"],Select:["Empty","Scrollbar"],Table:["Checkbox","Ellipsis","Empty","Pagination","Input","Select","Radio","Scrollbar","Spin","Tooltip"],Tag:["Space"],Upload:["Image","Message","Space","Spin"],Waterfall:["Spin"]};function Pc(y,o){if(["ConfigProvider","Highlight","NumberAnimation","Watermark"].includes(y))return[];const t=[y];y in Gl&&t.push(...Gl[y]);const l=o!=null&&o.cjs?"lib":"es",n=[`vue-amazing-ui/${l}/style/global.css`];return t.forEach(r=>{n.push(`vue-amazing-ui/${l}/${ql[r]}/${r}.css`)}),y==="DatePicker"&&n.push(`vue-amazing-ui/${l}/node_modules/.pnpm/@vuepic_vue-datepicker@11.0.2_vue@3.5.16_typescript@5.8.3_/node_modules/@vuepic/vue-datepicker/dist/main.css`),y==="Swiper"&&(n.push(`vue-amazing-ui/${l}/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/swiper.css`),["effect-cards","effect-creative","effect-cube","effect-fade","effect-flip","navigation","pagination"].forEach(s=>{n.push(`vue-amazing-ui/${l}/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/${s}.css`)})),n}function Fc(y){return{type:"component",resolve:o=>{if(o in ql)return{name:o,from:"vue-amazing-ui",sideEffects:Pc(o,y)}}}}const Xl=function(y){return Object.values(Dc).forEach(o=>{o.install&&y.use(o)}),y},Rc={install:Xl};Y.Alert=Kt,Y.Avatar=Ft,Y.BackTop=Ut,Y.Badge=Rt,Y.Breadcrumb=Yt,Y.Button=Ie,Y.Calendar=qt,Y.Card=Gt,Y.Carousel=Xt,Y.Cascader=_t,Y.Checkbox=kt,Y.Col=ml,Y.Collapse=Zt,Y.ColorPicker=Jt,Y.ConfigProvider=el,Y.Countdown=tl,Y.DatePicker=ll,Y.Descriptions=ol,Y.DescriptionsItem=al,Y.Dialog=nl,Y.Divider=rl,Y.Drawer=sl,Y.Ellipsis=rt,Y.Empty=at,Y.Flex=il,Y.FloatButton=cl,Y.GradientText=pl,Y.Highlight=hl,Y.Image=xt,Y.Input=Ct,Y.InputNumber=gl,Y.InputSearch=kl,Y.List=yl,Y.ListItem=wl,Y.LoadingBar=bl,Y.Message=Ht,Y.Modal=Cl,Y.Notification=Bl,Y.NumberAnimation=Sl,Y.Pagination=Vt,Y.Popconfirm=vl,Y.Popover=$l,Y.Progress=El,Y.QRCode=Vl,Y.Radio=bt,Y.Rate=zl,Y.Result=Nl,Y.Row=ul,Y.Scrollbar=tt,Y.Segmented=Ml,Y.Select=nt,Y.Skeleton=At,Y.Slider=Ll,Y.Space=Bt,Y.Spin=Qe,Y.Statistic=Tl,Y.Steps=Dl,Y.Swiper=Pl,Y.Switch=Fl,Y.Table=Rl,Y.Tabs=Al,Y.Tag=xl,Y.TextScroll=Il,Y.Textarea=Hl,Y.Timeline=Wl,Y.Tooltip=Xe,Y.Upload=Ol,Y.Video=jl,Y.VueAmazingUIResolver=Fc,Y.Waterfall=Kl,Y.Watermark=Yl,Y.add=mt,Y.cancelRaf=He,Y.dateFormat=ao,Y.debounce=dt,Y.default=Rc,Y.downloadFile=Wt,Y.formatNumber=Dt,Y.install=Xl,Y.rafTimeout=Ze,Y.throttle=It,Y.toggleDark=no,Y.useEventListener=ft,Y.useFps=so,Y.useInject=Ne,Y.useMediaQuery=io,Y.useMutationObserver=ht,Y.useOptionsSupported=gt,Y.useResizeObserver=Ge,Y.useScroll=jt,Y.useSlotsExist=ze,Object.defineProperties(Y,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/es/utils/resolver.js
CHANGED
|
@@ -124,7 +124,7 @@ function c(e, t) {
|
|
|
124
124
|
"pagination"
|
|
125
125
|
].forEach((n) => {
|
|
126
126
|
a.push(
|
|
127
|
-
`vue-amazing-ui/${i}/node_modules/.pnpm/swiper@11.2.
|
|
127
|
+
`vue-amazing-ui/${i}/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/${n}.css`
|
|
128
128
|
);
|
|
129
129
|
})), a;
|
|
130
130
|
}
|
package/lib/utils/resolver.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",Calendar:"calendar",Card:"card",Carousel:"carousel",Cascader:"cascader",Checkbox:"checkbox",Collapse:"collapse",ColorPicker:"colorpicker",ConfigProvider:"configprovider",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",Highlight:"highlight",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"},l={BackTop:["Tooltip"],Calendar:["Radio","Select","Empty","Scrollbar"],Card:["Skeleton"],Carousel:["Spin"],Cascader:["Select","Empty","Scrollbar"],Collapse:["Button"],ColorPicker:["Button","Input","Tooltip"],Dialog:["Button","Scrollbar"],Drawer:["Scrollbar"],Ellipsis:["Tooltip"],FloatButton:["Badge","Tooltip"],Image:["Space","Spin"],InputSearch:["Button"],List:["Empty","Pagination","Input","Select","Scrollbar","Spin"],ListItem:["Avatar"],Modal:["Button"],Pagination:["Input","Select","Empty","Scrollbar"],Popconfirm:["Button","Tooltip"],Popover:["Tooltip"],Rate:["Tooltip"],Select:["Empty","Scrollbar"],Table:["Checkbox","Ellipsis","Empty","Pagination","Input","Select","Radio","Scrollbar","Spin","Tooltip"],Tag:["Space"],Upload:["Image","Message","Space","Spin"],Waterfall:["Spin"]};function c(e,t){if(["ConfigProvider","Highlight","NumberAnimation","Watermark"].includes(e))return[];const r=[e];e in l&&r.push(...l[e]);const i=t!=null&&t.cjs?"lib":"es",a=[`vue-amazing-ui/${i}/style/global.css`];return r.forEach(o=>{a.push(`vue-amazing-ui/${i}/${s[o]}/${o}.css`)}),e==="DatePicker"&&a.push(`vue-amazing-ui/${i}/node_modules/.pnpm/@vuepic_vue-datepicker@11.0.2_vue@3.5.16_typescript@5.8.3_/node_modules/@vuepic/vue-datepicker/dist/main.css`),e==="Swiper"&&(a.push(`vue-amazing-ui/${i}/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/swiper.css`),["effect-cards","effect-creative","effect-cube","effect-fade","effect-flip","navigation","pagination"].forEach(n=>{a.push(`vue-amazing-ui/${i}/node_modules/.pnpm/swiper@11.2.
|
|
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",ConfigProvider:"configprovider",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",Highlight:"highlight",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"},l={BackTop:["Tooltip"],Calendar:["Radio","Select","Empty","Scrollbar"],Card:["Skeleton"],Carousel:["Spin"],Cascader:["Select","Empty","Scrollbar"],Collapse:["Button"],ColorPicker:["Button","Input","Tooltip"],Dialog:["Button","Scrollbar"],Drawer:["Scrollbar"],Ellipsis:["Tooltip"],FloatButton:["Badge","Tooltip"],Image:["Space","Spin"],InputSearch:["Button"],List:["Empty","Pagination","Input","Select","Scrollbar","Spin"],ListItem:["Avatar"],Modal:["Button"],Pagination:["Input","Select","Empty","Scrollbar"],Popconfirm:["Button","Tooltip"],Popover:["Tooltip"],Rate:["Tooltip"],Select:["Empty","Scrollbar"],Table:["Checkbox","Ellipsis","Empty","Pagination","Input","Select","Radio","Scrollbar","Spin","Tooltip"],Tag:["Space"],Upload:["Image","Message","Space","Spin"],Waterfall:["Spin"]};function c(e,t){if(["ConfigProvider","Highlight","NumberAnimation","Watermark"].includes(e))return[];const r=[e];e in l&&r.push(...l[e]);const i=t!=null&&t.cjs?"lib":"es",a=[`vue-amazing-ui/${i}/style/global.css`];return r.forEach(o=>{a.push(`vue-amazing-ui/${i}/${s[o]}/${o}.css`)}),e==="DatePicker"&&a.push(`vue-amazing-ui/${i}/node_modules/.pnpm/@vuepic_vue-datepicker@11.0.2_vue@3.5.16_typescript@5.8.3_/node_modules/@vuepic/vue-datepicker/dist/main.css`),e==="Swiper"&&(a.push(`vue-amazing-ui/${i}/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/swiper.css`),["effect-cards","effect-creative","effect-cube","effect-fade","effect-flip","navigation","pagination"].forEach(n=>{a.push(`vue-amazing-ui/${i}/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/${n}.css`)})),a}function p(e){return{type:"component",resolve:t=>{if(t in s)return{name:t,from:"vue-amazing-ui",sideEffects:c(t,e)}}}}exports.VueAmazingUIResolver=p;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-amazing-ui",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.14",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "theMuseCatcher",
|
|
@@ -70,7 +70,9 @@
|
|
|
70
70
|
"ant-design-vue": "^4.2.6",
|
|
71
71
|
"eslint": "^9.27.0",
|
|
72
72
|
"eslint-plugin-vue": "^10.1.0",
|
|
73
|
+
"husky": "^9.1.7",
|
|
73
74
|
"less": "^4.3.0",
|
|
75
|
+
"lint-staged": "^16.1.0",
|
|
74
76
|
"minimist": "^1.2.8",
|
|
75
77
|
"naive-ui": "^2.41.0",
|
|
76
78
|
"npm-run-all2": "^8.0.4",
|
|
@@ -86,7 +88,7 @@
|
|
|
86
88
|
"vite-plugin-vue-devtools": "^7.7.6",
|
|
87
89
|
"vitepress": "^1.6.3",
|
|
88
90
|
"vue": "^3.5.16",
|
|
89
|
-
"vue-amazing-ui": "2.4.
|
|
91
|
+
"vue-amazing-ui": "2.4.13",
|
|
90
92
|
"vue-router": "^4.5.1",
|
|
91
93
|
"vue-tsc": "^2.2.10"
|
|
92
94
|
},
|
|
@@ -99,6 +101,23 @@
|
|
|
99
101
|
"last 2 versions",
|
|
100
102
|
"not dead"
|
|
101
103
|
],
|
|
104
|
+
"lint-staged": {
|
|
105
|
+
"*.{js,ts}": [
|
|
106
|
+
"prettier --write",
|
|
107
|
+
"eslint --fix"
|
|
108
|
+
],
|
|
109
|
+
"*.vue": [
|
|
110
|
+
"prettier --parser=vue --write",
|
|
111
|
+
"eslint --fix"
|
|
112
|
+
],
|
|
113
|
+
"*.{html,css,less}": [
|
|
114
|
+
"prettier --write"
|
|
115
|
+
],
|
|
116
|
+
"*.md": [
|
|
117
|
+
"prettier --write --parser markdown --prose-wrap never",
|
|
118
|
+
"eslint --fix"
|
|
119
|
+
]
|
|
120
|
+
},
|
|
102
121
|
"scripts": {
|
|
103
122
|
"docs:dev": "vitepress dev docs --port 8000 --open",
|
|
104
123
|
"docs:build": "vitepress build docs",
|