This commit is contained in:
XiaoDaiGua-Ray 2026-11-03 08:08:12 +00:00
parent c90505070e
commit 9c981c960f
249 changed files with 4464 additions and 4517 deletions

File diff suppressed because one or more lines are too long

Binary file not shown.

1
css/index-gBvadnO5.css Normal file

File diff suppressed because one or more lines are too long

BIN
css/index-gBvadnO5.css.gz Normal file

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -8,35 +8,20 @@
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
/>
<title>Ray Template</title>
<script type="module" crossorigin src="/ray-template/js/index-DEOhsyt2.js"></script>
<script type="module" crossorigin src="/ray-template/js/index-rJvBcjbC.js"></script>
<link rel="modulepreload" crossorigin href="/ray-template/js/rolldown-runtime-COiEfhsA.js">
<link rel="modulepreload" crossorigin href="/ray-template/js/toString-BWDzaUQG.js">
<link rel="modulepreload" crossorigin href="/ray-template/js/replaceable-B-PFC1y9.js">
<link rel="modulepreload" crossorigin href="/ray-template/js/replaceable-DW6s2lkT.js">
<link rel="modulepreload" crossorigin href="/ray-template/js/cache-O_hPMSdv.js">
<link rel="modulepreload" crossorigin href="/ray-template/js/_toKey-BqfG5Sv9.js">
<link rel="modulepreload" crossorigin href="/ray-template/js/preload-helper-B5zr4nmU.js">
<link rel="modulepreload" crossorigin href="/ray-template/js/utils-DNIGt12f.js">
<link rel="modulepreload" crossorigin href="/ray-template/js/utils-DRbs97yB.js">
<link rel="modulepreload" crossorigin href="/ray-template/js/interceptor-D4X1SS-Z.js">
<link rel="modulepreload" crossorigin href="/ray-template/js/browser-B_-ntbg5.js">
<link rel="modulepreload" crossorigin href="/ray-template/js/Input-DtTntG9_.js">
<link rel="modulepreload" crossorigin href="/ray-template/js/Card-BB74FRP1.js">
<link rel="modulepreload" crossorigin href="/ray-template/js/misc-DDs3MKLt.js">
<link rel="modulepreload" crossorigin href="/ray-template/js/Switch-DQsfv1yf.js">
<link rel="modulepreload" crossorigin href="/ray-template/js/use-compitable-16C6-x7r.js">
<link rel="modulepreload" crossorigin href="/ray-template/js/get-slot-DHGzMRu-.js">
<link rel="modulepreload" crossorigin href="/ray-template/js/color-to-class-G4jmrDIg.js">
<link rel="modulepreload" crossorigin href="/ray-template/js/Tag-RbmRKtRT.js">
<link rel="modulepreload" crossorigin href="/ray-template/js/Button-BgNmP7qu.js">
<link rel="modulepreload" crossorigin href="/ray-template/js/InputGroup-uRA4XApJ.js">
<link rel="modulepreload" crossorigin href="/ray-template/js/InputNumber-BrI5eB33.js">
<link rel="modulepreload" crossorigin href="/ray-template/js/DynamicTags-CWqeJnJ2.js">
<link rel="modulepreload" crossorigin href="/ray-template/js/Flex-CsQ_DC64.js">
<link rel="modulepreload" crossorigin href="/ray-template/js/Layout-DjT66MMh.js">
<link rel="modulepreload" crossorigin href="/ray-template/js/useApi-CUWMwLLw-F5BxF7nP.js">
<link rel="modulepreload" crossorigin href="/ray-template/js/store-CqvdPZxw.js">
<link rel="stylesheet" crossorigin href="/ray-template/css/store-B5CeXloT.css">
<link rel="stylesheet" crossorigin href="/ray-template/css/index-DB2lpjVx.css">
<link rel="modulepreload" crossorigin href="/ray-template/js/Card-D38P0NK6.js">
<link rel="modulepreload" crossorigin href="/ray-template/js/Tag-B0MkmlBr.js">
<link rel="modulepreload" crossorigin href="/ray-template/js/browser-m4QWgN_p.js">
<link rel="modulepreload" crossorigin href="/ray-template/js/Button-vr5e8LJV.js">
<link rel="modulepreload" crossorigin href="/ray-template/js/get-slot-jO3Rp7n2.js">
<link rel="modulepreload" crossorigin href="/ray-template/js/Input-CcCbIWFY.js">
<link rel="stylesheet" crossorigin href="/ray-template/css/index-gBvadnO5.css">
</head>
<style>:root{--preloading-tag-color:#ff6700;--preloading-title-color:#2d8cf0;--r-theme-primary-fade-color:#3b63d9d9;--r-theme-primary-color:#3b63d9;--global-loading-bg-color:#fff}@media (prefers-color-scheme:dark){#pre-loading-animation{background-color:var(--global-loading-bg-color)}}@media (prefers-color-scheme:light){#pre-loading-animation{background-color:var(--global-loading-bg-color)}}html.dark #pre-loading-animation,html.light #pre-loading-animation{background-color:var(--global-loading-bg-color)}#pre-loading-animation{color:var(--preloading-title-color);text-align:center;background-color:var(--global-loading-bg-color);position:fixed;inset:0}#pre-loading-animation .pre-loading-animation__wrapper{flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;display:flex}#pre-loading-animation .pre-loading-animation__wrapper .pre-loading-animation__wrapper-title{padding-bottom:48px;font-size:32px;font-weight:500}.pre-loading-animation__wrapper-loading{background-color:var(--preloading-tag-color);width:6px;height:10px;animation:1s ease-in-out -.2s infinite rectangle;display:block;position:relative}.pre-loading-animation__wrapper-loading:before,.pre-loading-animation__wrapper-loading:after{content:"";background-color:var(--preloading-tag-color);width:6px;height:10px;position:absolute}.pre-loading-animation__wrapper-loading:before{animation:1s ease-in-out -.4s infinite rectangle;left:-14px}.pre-loading-animation__wrapper-loading:after{animation:1s ease-in-out infinite rectangle;right:-14px}@keyframes rectangle{0%,80%,to{height:20px;box-shadow:0 0 var(--preloading-tag-color)}40%{height:30px;box-shadow:0 -20px var(--preloading-tag-color)}}</style>
<script>

Binary file not shown.

View File

@ -1,48 +0,0 @@
import{D as e,E as t,J as n,Mn as r,Q as i,S as a,T as o,_n as s,_t as c,bt as l,dn as u,f as d,fn as f,ht as p,l as m,m as h,mn as g,mt as _,ot as v,tt as y,un as b,vt as x,wn as S,x as C,y as w}from"./replaceable-B-PFC1y9.js";import{d as T,f as E,l as D,p as O,u as k}from"./Switch-DQsfv1yf.js";import{s as A}from"./Card-BB74FRP1.js";import{a as j}from"./Button-BgNmP7qu.js";import{a as M}from"./index-DEOhsyt2.js";import{z as N}from"./toString-BWDzaUQG.js";function P(n){let{lineHeight:r,borderRadius:i,fontWeightStrong:a,baseColor:o,dividerColor:s,actionColor:c,textColor1:l,textColor2:u,closeColorHover:d,closeColorPressed:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,infoColor:g,successColor:_,warningColor:v,errorColor:y,fontSize:b}=n;return{...M,fontSize:b,lineHeight:r,titleFontWeight:a,borderRadius:i,border:`1px solid ${s}`,color:c,titleTextColor:l,iconColor:u,contentTextColor:u,closeBorderRadius:i,closeColorHover:d,closeColorPressed:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,borderInfo:`1px solid ${e(o,t(g,{alpha:.25}))}`,colorInfo:e(o,t(g,{alpha:.08})),titleTextColorInfo:l,iconColorInfo:g,contentTextColorInfo:u,closeColorHoverInfo:d,closeColorPressedInfo:f,closeIconColorInfo:p,closeIconColorHoverInfo:m,closeIconColorPressedInfo:h,borderSuccess:`1px solid ${e(o,t(_,{alpha:.25}))}`,colorSuccess:e(o,t(_,{alpha:.08})),titleTextColorSuccess:l,iconColorSuccess:_,contentTextColorSuccess:u,closeColorHoverSuccess:d,closeColorPressedSuccess:f,closeIconColorSuccess:p,closeIconColorHoverSuccess:m,closeIconColorPressedSuccess:h,borderWarning:`1px solid ${e(o,t(v,{alpha:.33}))}`,colorWarning:e(o,t(v,{alpha:.08})),titleTextColorWarning:l,iconColorWarning:v,contentTextColorWarning:u,closeColorHoverWarning:d,closeColorPressedWarning:f,closeIconColorWarning:p,closeIconColorHoverWarning:m,closeIconColorPressedWarning:h,borderError:`1px solid ${e(o,t(y,{alpha:.25}))}`,colorError:e(o,t(y,{alpha:.08})),titleTextColorError:l,iconColorError:y,contentTextColorError:u,closeColorHoverError:d,closeColorPressedError:f,closeIconColorError:p,closeIconColorHoverError:m,closeIconColorPressedError:h}}var F={name:`Alert`,common:o,self:P},I=p(`alert`,`
line-height: var(--n-line-height);
border-radius: var(--n-border-radius);
position: relative;
transition: background-color .3s var(--n-bezier);
background-color: var(--n-color);
text-align: start;
word-break: break-word;
`,[c(`border`,`
border-radius: inherit;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
transition: border-color .3s var(--n-bezier);
border: var(--n-border);
pointer-events: none;
`),x(`closable`,[p(`alert-body`,[c(`title`,`
padding-right: 24px;
`)])]),c(`icon`,{color:`var(--n-icon-color)`}),p(`alert-body`,{padding:`var(--n-padding)`},[c(`title`,{color:`var(--n-title-text-color)`}),c(`content`,{color:`var(--n-content-text-color)`})]),D({originalTransition:`transform .3s var(--n-bezier)`,enterToProps:{transform:`scale(1)`},leaveToProps:{transform:`scale(0.9)`}}),c(`icon`,`
position: absolute;
left: 0;
top: 0;
align-items: center;
justify-content: center;
display: flex;
width: var(--n-icon-size);
height: var(--n-icon-size);
font-size: var(--n-icon-size);
margin: var(--n-icon-margin);
`),c(`close`,`
transition:
color .3s var(--n-bezier),
background-color .3s var(--n-bezier);
position: absolute;
right: 0;
top: 0;
margin: var(--n-close-margin);
`),x(`show-icon`,[p(`alert-body`,{paddingLeft:`calc(var(--n-icon-margin-left) + var(--n-icon-size) + var(--n-icon-margin-right))`})]),x(`right-adjust`,[p(`alert-body`,{paddingRight:`calc(var(--n-close-size) + var(--n-padding) + 2px)`})]),p(`alert-body`,`
border-radius: var(--n-border-radius);
transition: border-color .3s var(--n-bezier);
`,[c(`title`,`
transition: color .3s var(--n-bezier);
font-size: 16px;
line-height: 19px;
font-weight: var(--n-title-font-weight);
`,[_(`& +`,[c(`content`,{marginTop:`9px`})])]),c(`content`,{transition:`color .3s var(--n-bezier)`,fontSize:`var(--n-font-size)`})]),c(`icon`,{transition:`color .3s var(--n-bezier)`})]),L={...C.props,title:String,showIcon:{type:Boolean,default:!0},type:{type:String,default:`default`},bordered:{type:Boolean,default:!0},closable:Boolean,onClose:Function,onAfterLeave:Function,onAfterHide:Function},R=s({name:`Alert`,inheritAttrs:!1,props:L,slots:Object,setup(e){let{mergedClsPrefixRef:t,mergedBorderedRef:r,inlineThemeDisabled:i,mergedRtlRef:o}=v(e),s=C(`Alert`,`-alert`,I,F,e,t),c=m(`Alert`,o,t),u=b(()=>{let{common:{cubicBezierEaseInOut:t},self:r}=s.value,{fontSize:i,borderRadius:a,titleFontWeight:o,lineHeight:c,iconSize:u,iconMargin:d,iconMarginRtl:f,closeIconSize:p,closeBorderRadius:m,closeSize:h,closeMargin:g,closeMarginRtl:_,padding:v}=r,{type:y}=e,{left:b,right:x}=n(d);return{"--n-bezier":t,"--n-color":r[l(`color`,y)],"--n-close-icon-size":p,"--n-close-border-radius":m,"--n-close-color-hover":r[l(`closeColorHover`,y)],"--n-close-color-pressed":r[l(`closeColorPressed`,y)],"--n-close-icon-color":r[l(`closeIconColor`,y)],"--n-close-icon-color-hover":r[l(`closeIconColorHover`,y)],"--n-close-icon-color-pressed":r[l(`closeIconColorPressed`,y)],"--n-icon-color":r[l(`iconColor`,y)],"--n-border":r[l(`border`,y)],"--n-title-text-color":r[l(`titleTextColor`,y)],"--n-content-text-color":r[l(`contentTextColor`,y)],"--n-line-height":c,"--n-border-radius":a,"--n-font-size":i,"--n-title-font-weight":o,"--n-icon-size":u,"--n-icon-margin":d,"--n-icon-margin-rtl":f,"--n-close-size":h,"--n-close-margin":g,"--n-close-margin-rtl":_,"--n-padding":v,"--n-icon-margin-left":b,"--n-icon-margin-right":x}}),d=i?a(`alert`,b(()=>e.type[0]),u,e):void 0,f=N(!0),p=()=>{let{onAfterLeave:t,onAfterHide:n}=e;t&&t(),n&&n()};return{rtlEnabled:c,mergedClsPrefix:t,mergedBordered:r,visible:f,handleCloseClick:()=>{Promise.resolve(e.onClose?.()).then(e=>{e!==!1&&(f.value=!1)})},handleAfterLeave:()=>{p()},mergedTheme:s,cssVars:i?void 0:u,themeClass:d?.themeClass,onRender:d?.onRender}},render(){return this.onRender?.(),r(),f(j,{onAfterLeave:this.handleAfterLeave},{default:()=>{let{mergedClsPrefix:e,$slots:t}=this,n={class:[`${e}-alert`,this.themeClass,this.closable&&`${e}-alert--closable`,this.showIcon&&`${e}-alert--show-icon`,!this.title&&this.closable&&`${e}-alert--right-adjust`,this.rtlEnabled&&`${e}-alert--rtl`],style:this.cssVars,role:`alert`};return this.visible?(r(),g(`div`,S({key:1},S(this.$attrs,n)),[y(()=>this.closable&&(r(),f(A,{clsPrefix:e,class:i(`${e}-alert__close`),onClick:this.handleCloseClick},null,8,[`clsPrefix`,`class`,`onClick`]))),y(()=>this.bordered&&(r(),g(`div`,{class:i(`${e}-alert__border`)},null,2))),y(()=>this.showIcon&&(r(),g(`div`,{class:i(`${e}-alert__icon`),"aria-hidden":`true`},[y(()=>d(t.icon,()=>[(r(),f(w,{clsPrefix:e},{default:()=>{switch(this.type){case`success`:return r(),f(T,{key:3});case`info`:return r(),f(E,{key:4});case`warning`:return r(),f(k,{key:5});case`error`:return r(),f(O,{key:6});default:return null}}},1032,[`clsPrefix`]))]))],2))),u(`div`,{class:i([`${e}-alert-body`,this.mergedBordered&&`${e}-alert-body--bordered`])},[y(()=>h(t.header,t=>{let n=t||this.title;return n?(r(),g(`div`,{key:2,class:i(`${e}-alert-body__title`)},[y(()=>n)],2)):null})),y(()=>t.default&&(r(),g(`div`,{class:i(`${e}-alert-body__content`)},[y(()=>t.default())],2)))],2)],16)):null}},1032,[`onAfterLeave`])}});export{R as t};

Binary file not shown.

Binary file not shown.

View File

@ -1 +1 @@
import{_n as e,gn as t}from"./replaceable-B-PFC1y9.js";var n=e({name:`AppPageHeader`,props:{title:{type:String,required:!0},description:{type:String,default:``},eyebrow:{type:String,default:`RAY TEMPLATE`}},setup(e,{slots:n}){return()=>t(`header`,{class:`r-page-header`},[t(`div`,{class:`r-page-header__copy`},[t(`p`,{class:`r-page-header__eyebrow`},[e.eyebrow]),t(`h1`,null,[e.title]),e.description?t(`p`,{class:`r-page-header__description`},[e.description]):null]),n.default?t(`div`,{class:`r-page-header__actions`},[n.default()]):null])}});export{n as t};
import{_n as e,gn as t}from"./replaceable-DW6s2lkT.js";var n=e({name:`AppPageHeader`,props:{title:{type:String,required:!0},description:{type:String,default:``},eyebrow:{type:String,default:`RAY TEMPLATE`}},setup(e,{slots:n}){return()=>t(`header`,{class:`r-page-header`},[t(`div`,{class:`r-page-header__copy`},[t(`p`,{class:`r-page-header__eyebrow`},[e.eyebrow]),t(`h1`,null,[e.title]),e.description?t(`p`,{class:`r-page-header__description`},[e.description]):null]),n.default?t(`div`,{class:`r-page-header__actions`},[n.default()]):null])}});export{n as t};

Binary file not shown.

Binary file not shown.

View File

@ -1 +1 @@
import{_n as e,gn as t}from"./replaceable-B-PFC1y9.js";import{$ as n,j as r,sn as i}from"./store-CqvdPZxw.js";var a=e({name:`AppShareLink`,props:{variant:{type:String,default:`compact`}},setup(){let{t:e}=n(`dashboard`);return{avatarOptions:[{key:`ray-js-note`,src:`https://note.youdao.com/s/ObWEe2BB`,tooltip:`links.notes`,icon:`https://avatars.githubusercontent.com/u/51957438?v=4`},{key:`ray-js-cover`,src:`https://note.youdao.com/s/IC8xKPdB`,tooltip:`links.interviews`,icon:`https://avatars.githubusercontent.com/u/51957438?v=4`},{key:`ray-template-doc`,src:`https://xiaodaigua-ray.github.io/ray-template-doc/`,tooltip:`links.docs`,icon:`https://avatars.githubusercontent.com/u/51957438?v=4`},{key:`ray-template-doc-out`,src:`https://ray-template.yunkuangao.com/`,tooltip:`links.docsMirror`,icon:`https://avatars.githubusercontent.com/u/51957438?v=4`}],t:e}},render(){return t(`div`,{class:[`r-share-links`,`r-share-links--${this.variant}`]},[t(`div`,{class:`r-share-links__grid`},[this.avatarOptions.map(e=>t(`a`,{class:`r-share-link`,href:e.src,"aria-label":this.t(e.tooltip),title:this.t(e.tooltip),target:`_blank`,rel:`noreferrer`,key:e.key},[t(i,{round:!0,src:e.icon,size:24},null),t(`span`,null,[this.t(e.tooltip)]),t(r,{name:`action/shared`,size:13},null)]))])])}});export{a as t};
import{_n as e,gn as t}from"./replaceable-DW6s2lkT.js";import{E as n,K as r,Tt as i}from"./index-rJvBcjbC.js";var a=e({name:`AppShareLink`,props:{variant:{type:String,default:`compact`}},setup(){let{t:e}=r(`dashboard`);return{avatarOptions:[{key:`ray-js-note`,src:`https://note.youdao.com/s/ObWEe2BB`,tooltip:`links.notes`,icon:`https://avatars.githubusercontent.com/u/51957438?v=4`},{key:`ray-js-cover`,src:`https://note.youdao.com/s/IC8xKPdB`,tooltip:`links.interviews`,icon:`https://avatars.githubusercontent.com/u/51957438?v=4`},{key:`ray-template-doc`,src:`https://xiaodaigua-ray.github.io/ray-template-doc/`,tooltip:`links.docs`,icon:`https://avatars.githubusercontent.com/u/51957438?v=4`},{key:`ray-template-doc-out`,src:`https://ray-template.yunkuangao.com/`,tooltip:`links.docsMirror`,icon:`https://avatars.githubusercontent.com/u/51957438?v=4`}],t:e}},render(){return t(`div`,{class:[`r-share-links`,`r-share-links--${this.variant}`]},[t(`div`,{class:`r-share-links__grid`},[this.avatarOptions.map(e=>t(`a`,{class:`r-share-link`,href:e.src,"aria-label":this.t(e.tooltip),title:this.t(e.tooltip),target:`_blank`,rel:`noreferrer`,key:e.key},[t(i,{round:!0,src:e.icon,size:24},null),t(`span`,null,[this.t(e.tooltip)]),t(n,{name:`action/shared`,size:13},null)]))])])}});export{a as t};

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

BIN
js/Button-vr5e8LJV.js.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,4 +1,4 @@
import{J as e,Mn as t,Q as n,S as r,St as i,T as a,Vn as o,Z as s,_n as c,_t as l,bt as u,dn as d,fn as f,g as p,ht as m,l as h,m as g,mn as _,mt as v,n as y,nt as b,ot as x,pt as S,t as C,tt as w,u as T,un as E,vt as D,x as O,xt as k,y as A,yt as j}from"./replaceable-B-PFC1y9.js";import{At as M,J as N}from"./toString-BWDzaUQG.js";function P(e){return Object.keys(e)}var F=C(`close`,()=>(()=>{let e=s(`6b30a2290cd08d4`);return e[0]||=d(`svg`,{viewBox:`0 0 12 12`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":!0},[d(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},[d(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},[d(`path`,{d:`M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z`})])])],-1)})()),I=m(`base-close`,`
import{Hn as e,J as t,Mn as n,Q as r,S as i,St as a,T as o,Z as s,_n as c,_t as l,bt as u,dn as d,fn as f,g as p,ht as m,l as h,m as g,mn as _,mt as v,n as y,nt as b,ot as x,pt as S,t as C,tt as w,u as T,un as E,vt as D,x as O,xt as k,y as A,yt as j}from"./replaceable-DW6s2lkT.js";import{At as M,J as N}from"./toString-BWDzaUQG.js";function P(e){return Object.keys(e)}var F=C(`close`,()=>(()=>{let e=s(`6b30a2290cd08d4`);return e[0]||=d(`svg`,{viewBox:`0 0 12 12`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":!0},[d(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},[d(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},[d(`path`,{d:`M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z`})])])],-1)})()),I=m(`base-close`,`
display: flex;
align-items: center;
justify-content: center;
@ -42,7 +42,7 @@ import{J as e,Mn as t,Q as n,S as r,St as i,T as a,Vn as o,Z as s,_n as c,_t as
background-color: transparent;
`),D(`round`,[v(`&::before`,`
border-radius: 50%;
`)])]),L=c({name:`BaseClose`,props:{isButtonTag:{type:Boolean,default:!0},clsPrefix:{type:String,required:!0},disabled:{type:Boolean,default:void 0},focusable:{type:Boolean,default:!0},round:Boolean,onClick:Function,absolute:Boolean},setup(e){return b(`-base-close`,I,N(e,`clsPrefix`)),()=>{let{clsPrefix:r,disabled:i,absolute:a,round:c,isButtonTag:l}=e,u=l?`button`:`div`;return(()=>{let d=s(`b5bdc9fe09f5ae00`);return t(),f(u,{type:l?`button`:void 0,tabindex:i||!e.focusable?-1:0,"aria-disabled":i,"aria-label":`close`,role:l?void 0:`button`,disabled:i,class:n([`${r}-base-close`,a&&`${r}-base-close--absolute`,i&&`${r}-base-close--disabled`,c&&`${r}-base-close--round`]),onMousedown:d[0]||=t=>{e.focusable||t.preventDefault()},onClick:e.onClick},{default:o(()=>[(t(),f(A,{clsPrefix:r},{default:()=>(t(),f(F))},1032,[`clsPrefix`]))]),_:2},1032,[`type`,`tabindex`,`aria-disabled`,`role`,`disabled`,`class`,`onClick`])})()}}}),R={paddingSmall:`12px 16px 12px`,paddingMedium:`19px 24px 20px`,paddingLarge:`23px 32px 24px`,paddingHuge:`27px 40px 28px`,titleFontSizeSmall:`16px`,titleFontSizeMedium:`18px`,titleFontSizeLarge:`18px`,titleFontSizeHuge:`18px`,closeIconSize:`18px`,closeSize:`22px`};function z(e){let{primaryColor:t,borderRadius:n,lineHeight:r,fontSize:i,cardColor:a,textColor2:o,textColor1:s,dividerColor:c,fontWeightStrong:l,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,closeColorHover:p,closeColorPressed:m,modalColor:h,boxShadow1:g,popoverColor:_,actionColor:v}=e;return{...R,lineHeight:r,color:a,colorModal:h,colorPopover:_,colorTarget:t,colorEmbedded:v,colorEmbeddedModal:v,colorEmbeddedPopover:v,textColor:o,titleTextColor:s,borderColor:c,actionColor:v,titleFontWeight:l,closeColorHover:p,closeColorPressed:m,closeBorderRadius:n,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,fontSizeSmall:i,fontSizeMedium:i,fontSizeLarge:i,fontSizeHuge:i,boxShadow:g,borderRadius:n}}var B={name:`Card`,common:a,self:z},V=m(`card-content`,`
`)])]),L=c({name:`BaseClose`,props:{isButtonTag:{type:Boolean,default:!0},clsPrefix:{type:String,required:!0},disabled:{type:Boolean,default:void 0},focusable:{type:Boolean,default:!0},round:Boolean,onClick:Function,absolute:Boolean},setup(t){return b(`-base-close`,I,N(t,`clsPrefix`)),()=>{let{clsPrefix:i,disabled:a,absolute:o,round:c,isButtonTag:l}=t,u=l?`button`:`div`;return(()=>{let d=s(`b5bdc9fe09f5ae00`);return n(),f(u,{type:l?`button`:void 0,tabindex:a||!t.focusable?-1:0,"aria-disabled":a,"aria-label":`close`,role:l?void 0:`button`,disabled:a,class:r([`${i}-base-close`,o&&`${i}-base-close--absolute`,a&&`${i}-base-close--disabled`,c&&`${i}-base-close--round`]),onMousedown:d[0]||=e=>{t.focusable||e.preventDefault()},onClick:t.onClick},{default:e(()=>[(n(),f(A,{clsPrefix:i},{default:()=>(n(),f(F))},1032,[`clsPrefix`]))]),_:2},1032,[`type`,`tabindex`,`aria-disabled`,`role`,`disabled`,`class`,`onClick`])})()}}}),R={paddingSmall:`12px 16px 12px`,paddingMedium:`19px 24px 20px`,paddingLarge:`23px 32px 24px`,paddingHuge:`27px 40px 28px`,titleFontSizeSmall:`16px`,titleFontSizeMedium:`18px`,titleFontSizeLarge:`18px`,titleFontSizeHuge:`18px`,closeIconSize:`18px`,closeSize:`22px`};function z(e){let{primaryColor:t,borderRadius:n,lineHeight:r,fontSize:i,cardColor:a,textColor2:o,textColor1:s,dividerColor:c,fontWeightStrong:l,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,closeColorHover:p,closeColorPressed:m,modalColor:h,boxShadow1:g,popoverColor:_,actionColor:v}=e;return{...R,lineHeight:r,color:a,colorModal:h,colorPopover:_,colorTarget:t,colorEmbedded:v,colorEmbeddedModal:v,colorEmbeddedPopover:v,textColor:o,titleTextColor:s,borderColor:c,actionColor:v,titleFontWeight:l,closeColorHover:p,closeColorPressed:m,closeBorderRadius:n,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,fontSizeSmall:i,fontSizeMedium:i,fontSizeLarge:i,fontSizeHuge:i,boxShadow:g,borderRadius:n}}var B={name:`Card`,common:o,self:z},V=m(`card-content`,`
flex: 1;
min-width: 0;
box-sizing: border-box;
@ -162,8 +162,8 @@ import{J as e,Mn as t,Q as n,S as r,St as i,T as a,Vn as o,Z as s,_n as c,_t as
background: var(--n-color-modal);
`,[D(`embedded`,`
background-color: var(--n-color-embedded-modal);
`)])),i(m(`card`,`
`)])),a(m(`card`,`
background: var(--n-color-popover);
`,[D(`embedded`,`
background-color: var(--n-color-embedded-popover);
`)]))]),U={title:[String,Function],contentClass:String,contentStyle:[Object,String],contentScrollable:Boolean,headerClass:String,headerStyle:[Object,String],headerExtraClass:String,headerExtraStyle:[Object,String],footerClass:String,footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:String,bordered:{type:Boolean,default:!0},closable:Boolean,hoverable:Boolean,role:String,onClose:[Function,Array],tag:{type:String,default:`div`},cover:Function,content:[String,Function],footer:Function,action:Function,headerExtra:Function,closeFocusable:Boolean},W=P(U),G={...O.props,...U},K=c({name:`Card`,props:G,slots:Object,setup(t){let n=()=>{let{onClose:e}=t;e&&p(e)},{inlineThemeDisabled:i,mergedClsPrefixRef:a,mergedRtlRef:o,mergedComponentPropsRef:s}=x(t),c=O(`Card`,`-card`,H,B,t,a),l=h(`Card`,o,a),d=E(()=>t.size||s?.value?.Card?.size||`medium`),f=E(()=>{let t=d.value,{self:{color:n,colorModal:r,colorTarget:i,textColor:a,titleTextColor:o,titleFontWeight:s,borderColor:l,actionColor:f,borderRadius:p,lineHeight:m,closeIconColor:h,closeIconColorHover:g,closeIconColorPressed:_,closeColorHover:v,closeColorPressed:y,closeBorderRadius:b,closeIconSize:x,closeSize:S,boxShadow:C,colorPopover:w,colorEmbedded:T,colorEmbeddedModal:E,colorEmbeddedPopover:D,[u(`padding`,t)]:O,[u(`fontSize`,t)]:k,[u(`titleFontSize`,t)]:A},common:{cubicBezierEaseInOut:j}}=c.value,{top:M,left:N,bottom:P}=e(O);return{"--n-bezier":j,"--n-border-radius":p,"--n-color":n,"--n-color-modal":r,"--n-color-popover":w,"--n-color-embedded":T,"--n-color-embedded-modal":E,"--n-color-embedded-popover":D,"--n-color-target":i,"--n-text-color":a,"--n-line-height":m,"--n-action-color":f,"--n-title-text-color":o,"--n-title-font-weight":s,"--n-close-icon-color":h,"--n-close-icon-color-hover":g,"--n-close-icon-color-pressed":_,"--n-close-color-hover":v,"--n-close-color-pressed":y,"--n-border-color":l,"--n-box-shadow":C,"--n-padding-top":M,"--n-padding-bottom":P,"--n-padding-left":N,"--n-font-size":k,"--n-title-font-size":A,"--n-close-size":S,"--n-close-icon-size":x,"--n-close-border-radius":b}}),m=i?r(`card`,E(()=>d.value[0]),f,t):void 0;return{rtlEnabled:l,mergedClsPrefix:a,mergedTheme:c,handleCloseClick:n,cssVars:i?void 0:f,themeClass:m?.themeClass,onRender:m?.onRender}},render(){let{segmented:e,bordered:r,hoverable:i,mergedClsPrefix:a,rtlEnabled:s,onRender:c,embedded:l,tag:u,$slots:p}=this;return c?.(),t(),f(u,{class:n([`${a}-card`,this.themeClass,l&&`${a}-card--embedded`,{[`${a}-card--rtl`]:s,[`${a}-card--content-scrollable`]:this.contentScrollable,[`${a}-card--content${typeof e!=`boolean`&&e.content===`soft`?`-soft`:``}-segmented`]:e===!0||e!==!1&&e.content,[`${a}-card--footer${typeof e!=`boolean`&&e.footer===`soft`?`-soft`:``}-segmented`]:e===!0||e!==!1&&e.footer,[`${a}-card--action-segmented`]:e===!0||e!==!1&&e.action,[`${a}-card--bordered`]:r,[`${a}-card--hoverable`]:i}]),style:M(this.cssVars),role:this.role},{default:o(()=>[w(()=>g(p.cover,e=>{let r=this.cover?T([this.cover()]):e;return r&&(t(),_(`div`,{class:n(`${a}-card-cover`),role:`none`},[w(()=>r)],2))})),w(()=>g(p.header,e=>{let{title:r}=this,i=r?T(typeof r==`function`?[r()]:[r]):e;return i||this.closable?(t(),_(`div`,{key:1,class:n([`${a}-card-header`,this.headerClass]),style:M(this.headerStyle),role:`heading`},[d(`div`,{class:n(`${a}-card-header__main`),role:`heading`},[w(()=>i)],2),w(()=>g(p[`header-extra`],e=>{let r=this.headerExtra?T([this.headerExtra()]):e;return r&&(t(),_(`div`,{class:n([`${a}-card-header__extra`,this.headerExtraClass]),style:M(this.headerExtraStyle)},[w(()=>r)],6))})),w(()=>this.closable&&(t(),f(L,{clsPrefix:a,class:n(`${a}-card-header__close`),onClick:this.handleCloseClick,focusable:this.closeFocusable,absolute:!0},null,8,[`clsPrefix`,`class`,`onClick`,`focusable`])))],6)):null})),w(()=>g(p.default,e=>{let{content:r}=this,i=r?T(typeof r==`function`?[r()]:[r]):e;return i?this.contentScrollable?(t(),f(y,{key:2,class:n(`${a}-card__content-scrollbar`),contentClass:[`${a}-card-content`,this.contentClass],contentStyle:this.contentStyle},{default:()=>i},1032,[`class`,`contentClass`,`contentStyle`])):(t(),_(`div`,{key:3,class:n([`${a}-card-content`,this.contentClass]),style:M(this.contentStyle),role:`none`},[w(()=>i)],6)):null})),w(()=>g(p.footer,e=>{let r=this.footer?T([this.footer()]):e;return r&&(t(),_(`div`,{class:n([`${a}-card__footer`,this.footerClass]),style:M(this.footerStyle),role:`none`},[w(()=>r)],6))})),w(()=>g(p.action,e=>{let r=this.action?T([this.action()]):e;return r&&(t(),_(`div`,{class:n(`${a}-card__action`),role:`none`},[w(()=>r)],2))}))]),_:2},1032,[`class`,`style`,`role`])}});export{B as a,P as c,G as i,W as n,z as o,U as r,L as s,K as t};
`)]))]),U={title:[String,Function],contentClass:String,contentStyle:[Object,String],contentScrollable:Boolean,headerClass:String,headerStyle:[Object,String],headerExtraClass:String,headerExtraStyle:[Object,String],footerClass:String,footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:String,bordered:{type:Boolean,default:!0},closable:Boolean,hoverable:Boolean,role:String,onClose:[Function,Array],tag:{type:String,default:`div`},cover:Function,content:[String,Function],footer:Function,action:Function,headerExtra:Function,closeFocusable:Boolean},W=P(U),G={...O.props,...U},K=c({name:`Card`,props:G,slots:Object,setup(e){let n=()=>{let{onClose:t}=e;t&&p(t)},{inlineThemeDisabled:r,mergedClsPrefixRef:a,mergedRtlRef:o,mergedComponentPropsRef:s}=x(e),c=O(`Card`,`-card`,H,B,e,a),l=h(`Card`,o,a),d=E(()=>e.size||s?.value?.Card?.size||`medium`),f=E(()=>{let e=d.value,{self:{color:n,colorModal:r,colorTarget:i,textColor:a,titleTextColor:o,titleFontWeight:s,borderColor:l,actionColor:f,borderRadius:p,lineHeight:m,closeIconColor:h,closeIconColorHover:g,closeIconColorPressed:_,closeColorHover:v,closeColorPressed:y,closeBorderRadius:b,closeIconSize:x,closeSize:S,boxShadow:C,colorPopover:w,colorEmbedded:T,colorEmbeddedModal:E,colorEmbeddedPopover:D,[u(`padding`,e)]:O,[u(`fontSize`,e)]:k,[u(`titleFontSize`,e)]:A},common:{cubicBezierEaseInOut:j}}=c.value,{top:M,left:N,bottom:P}=t(O);return{"--n-bezier":j,"--n-border-radius":p,"--n-color":n,"--n-color-modal":r,"--n-color-popover":w,"--n-color-embedded":T,"--n-color-embedded-modal":E,"--n-color-embedded-popover":D,"--n-color-target":i,"--n-text-color":a,"--n-line-height":m,"--n-action-color":f,"--n-title-text-color":o,"--n-title-font-weight":s,"--n-close-icon-color":h,"--n-close-icon-color-hover":g,"--n-close-icon-color-pressed":_,"--n-close-color-hover":v,"--n-close-color-pressed":y,"--n-border-color":l,"--n-box-shadow":C,"--n-padding-top":M,"--n-padding-bottom":P,"--n-padding-left":N,"--n-font-size":k,"--n-title-font-size":A,"--n-close-size":S,"--n-close-icon-size":x,"--n-close-border-radius":b}}),m=r?i(`card`,E(()=>d.value[0]),f,e):void 0;return{rtlEnabled:l,mergedClsPrefix:a,mergedTheme:c,handleCloseClick:n,cssVars:r?void 0:f,themeClass:m?.themeClass,onRender:m?.onRender}},render(){let{segmented:t,bordered:i,hoverable:a,mergedClsPrefix:o,rtlEnabled:s,onRender:c,embedded:l,tag:u,$slots:p}=this;return c?.(),n(),f(u,{class:r([`${o}-card`,this.themeClass,l&&`${o}-card--embedded`,{[`${o}-card--rtl`]:s,[`${o}-card--content-scrollable`]:this.contentScrollable,[`${o}-card--content${typeof t!=`boolean`&&t.content===`soft`?`-soft`:``}-segmented`]:t===!0||t!==!1&&t.content,[`${o}-card--footer${typeof t!=`boolean`&&t.footer===`soft`?`-soft`:``}-segmented`]:t===!0||t!==!1&&t.footer,[`${o}-card--action-segmented`]:t===!0||t!==!1&&t.action,[`${o}-card--bordered`]:i,[`${o}-card--hoverable`]:a}]),style:M(this.cssVars),role:this.role},{default:e(()=>[w(()=>g(p.cover,e=>{let t=this.cover?T([this.cover()]):e;return t&&(n(),_(`div`,{class:r(`${o}-card-cover`),role:`none`},[w(()=>t)],2))})),w(()=>g(p.header,e=>{let{title:t}=this,i=t?T(typeof t==`function`?[t()]:[t]):e;return i||this.closable?(n(),_(`div`,{key:1,class:r([`${o}-card-header`,this.headerClass]),style:M(this.headerStyle),role:`heading`},[d(`div`,{class:r(`${o}-card-header__main`),role:`heading`},[w(()=>i)],2),w(()=>g(p[`header-extra`],e=>{let t=this.headerExtra?T([this.headerExtra()]):e;return t&&(n(),_(`div`,{class:r([`${o}-card-header__extra`,this.headerExtraClass]),style:M(this.headerExtraStyle)},[w(()=>t)],6))})),w(()=>this.closable&&(n(),f(L,{clsPrefix:o,class:r(`${o}-card-header__close`),onClick:this.handleCloseClick,focusable:this.closeFocusable,absolute:!0},null,8,[`clsPrefix`,`class`,`onClick`,`focusable`])))],6)):null})),w(()=>g(p.default,e=>{let{content:t}=this,i=t?T(typeof t==`function`?[t()]:[t]):e;return i?this.contentScrollable?(n(),f(y,{key:2,class:r(`${o}-card__content-scrollbar`),contentClass:[`${o}-card-content`,this.contentClass],contentStyle:this.contentStyle},{default:()=>i},1032,[`class`,`contentClass`,`contentStyle`])):(n(),_(`div`,{key:3,class:r([`${o}-card-content`,this.contentClass]),style:M(this.contentStyle),role:`none`},[w(()=>i)],6)):null})),w(()=>g(p.footer,e=>{let t=this.footer?T([this.footer()]):e;return t&&(n(),_(`div`,{class:r([`${o}-card__footer`,this.footerClass]),style:M(this.footerStyle),role:`none`},[w(()=>t)],6))})),w(()=>g(p.action,e=>{let t=this.action?T([this.action()]):e;return t&&(n(),_(`div`,{class:r(`${o}-card__action`),role:`none`},[w(()=>t)],2))}))]),_:2},1032,[`class`,`style`,`role`])}});export{B as a,P as c,G as i,W as n,z as o,U as r,L as s,K as t};

BIN
js/Card-D38P0NK6.js.gz Normal file

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

View File

@ -1 +1 @@
import{_n as e,gn as t}from"./replaceable-B-PFC1y9.js";import{t as n}from"./AppPageHeader-DJ17-vNG.js";var r=e({name:`DemoPage`,props:{title:{type:String,required:!0},description:{type:String,default:``},eyebrow:{type:String,default:`RAY TEMPLATE`},meta:{type:String,default:``}},setup(e,{slots:r}){return()=>t(`section`,{class:`r-showcase-page`},[t(n,{title:e.title,description:e.description,eyebrow:e.eyebrow},{default:()=>[e.meta?t(`span`,{class:`r-showcase-meta`},[e.meta]):null,r.actions?.()]}),t(`div`,{class:`r-showcase-content`},[r.default?.()])])}});export{r as t};
import{_n as e,gn as t}from"./replaceable-DW6s2lkT.js";import{t as n}from"./AppPageHeader-D_gXdS5y.js";var r=e({name:`DemoPage`,props:{title:{type:String,required:!0},description:{type:String,default:``},eyebrow:{type:String,default:`RAY TEMPLATE`},meta:{type:String,default:``}},setup(e,{slots:r}){return()=>t(`section`,{class:`r-showcase-page`},[t(n,{title:e.title,description:e.description,eyebrow:e.eyebrow},{default:()=>[e.meta?t(`span`,{class:`r-showcase-meta`},[e.meta]):null,r.actions?.()]}),t(`div`,{class:`r-showcase-content`},[r.default?.()])])}});export{r as t};

BIN
js/DemoPage-C9W0vUGi.js.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,4 +1,4 @@
import{At as e}from"./toString-BWDzaUQG.js";import{Mn as t,Q as n,S as r,St as i,_n as a,_t as o,bt as s,dn as c,ht as l,mn as u,mt as d,ot as f,tt as p,un as m,vt as h,x as g,xt as _,yt as v}from"./replaceable-B-PFC1y9.js";import{n as y}from"./misc-DDs3MKLt.js";import{t as b}from"./use-compitable-16C6-x7r.js";import{n as x,t as S}from"./get-slot-DHGzMRu-.js";import{n as C}from"./index-DEOhsyt2.js";function w(e,t=`default`,n=[]){let{children:r}=e;if(typeof r==`object`&&r&&!Array.isArray(r)){let e=r[t];if(typeof e==`function`)return e()}return n}var T=d([l(`descriptions`,{fontSize:`var(--n-font-size)`},[l(`descriptions-separator`,`
import{At as e}from"./toString-BWDzaUQG.js";import{Mn as t,Q as n,S as r,St as i,_n as a,_t as o,bt as s,dn as c,ht as l,mn as u,mt as d,ot as f,tt as p,un as m,vt as h,x as g,xt as _,yt as v}from"./replaceable-DW6s2lkT.js";import{n as y,t as b}from"./get-slot-jO3Rp7n2.js";import{Bt as x,Ht as S,ut as C}from"./index-rJvBcjbC.js";function w(e,t=`default`,n=[]){let{children:r}=e;if(typeof r==`object`&&r&&!Array.isArray(r)){let e=r[t];if(typeof e==`function`)return e()}return n}var T=d([l(`descriptions`,{fontSize:`var(--n-font-size)`},[l(`descriptions-separator`,`
display: inline-block;
margin: 0 8px 0 2px;
`),l(`descriptions-table-wrapper`,[l(`descriptions-table`,[l(`descriptions-table-row`,[l(`descriptions-table-header`,{padding:`var(--n-th-padding)`}),l(`descriptions-table-content`,{padding:`var(--n-td-padding)`})])])]),v(`bordered`,[l(`descriptions-table-wrapper`,[l(`descriptions-table`,[l(`descriptions-table-row`,[d(`&:last-child`,[l(`descriptions-table-content`,{paddingBottom:0})])])])])]),h(`left-label-placement`,[l(`descriptions-table-content`,[d(`> *`,{verticalAlign:`top`})])]),h(`left-label-align`,[d(`th`,{textAlign:`left`})]),h(`center-label-align`,[d(`th`,{textAlign:`center`})]),h(`right-label-align`,[d(`th`,{textAlign:`right`})]),h(`bordered`,[l(`descriptions-table-wrapper`,`
@ -71,4 +71,4 @@ import{At as e}from"./toString-BWDzaUQG.js";import{Mn as t,Q as n,S as r,St as i
--n-merged-th-color: var(--n-th-color-popover);
--n-merged-td-color: var(--n-td-color-popover);
--n-merged-border-color: var(--n-border-color-popover);
`))]),E=`DESCRIPTION_ITEM_FLAG`;function D(e){return typeof e==`object`&&e&&!Array.isArray(e)?e.type&&e.type.DESCRIPTION_ITEM_FLAG:!1}var O=[`colspan`],k=[`colspan`],A=[`colspan`],j=[`colspan`],M={...g.props,title:String,column:{type:Number,default:3},columns:Number,labelPlacement:{type:String,default:`top`},labelAlign:{type:String,default:`left`},separator:{type:String,default:`:`},size:String,bordered:Boolean,labelClass:String,labelStyle:[Object,String],contentClass:String,contentStyle:[Object,String]},N=a({name:`Descriptions`,props:M,slots:Object,setup(e){let{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedComponentPropsRef:i}=f(e),a=m(()=>e.size||i?.value?.Descriptions?.size||`medium`),o=g(`Descriptions`,`-descriptions`,T,C,e,t),c=m(()=>{let{bordered:t}=e,n=a.value,{common:{cubicBezierEaseInOut:r},self:{titleTextColor:i,thColor:c,thColorModal:l,thColorPopover:u,thTextColor:d,thFontWeight:f,tdTextColor:p,tdColor:m,tdColorModal:h,tdColorPopover:g,borderColor:_,borderColorModal:v,borderColorPopover:y,borderRadius:b,lineHeight:x,[s(`fontSize`,n)]:S,[s(t?`thPaddingBordered`:`thPadding`,n)]:C,[s(t?`tdPaddingBordered`:`tdPadding`,n)]:w}}=o.value;return{"--n-title-text-color":i,"--n-th-padding":C,"--n-td-padding":w,"--n-font-size":S,"--n-bezier":r,"--n-th-font-weight":f,"--n-line-height":x,"--n-th-text-color":d,"--n-td-text-color":p,"--n-th-color":c,"--n-th-color-modal":l,"--n-th-color-popover":u,"--n-td-color":m,"--n-td-color-modal":h,"--n-td-color-popover":g,"--n-border-radius":b,"--n-border-color":_,"--n-border-color-modal":v,"--n-border-color-popover":y}}),l=n?r(`descriptions`,m(()=>{let t=``,{bordered:n}=e;return n&&(t+=`a`),t+=a.value[0],t}),c,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:c,themeClass:l?.themeClass,onRender:l?.onRender,compitableColumn:b(e,[`columns`,`column`]),inlineThemeDisabled:n,mergedSize:a}},render(){let r=this.$slots.default,i=r?x(r()):[];i.length;let{contentClass:a,labelClass:o,compitableColumn:s,labelPlacement:l,labelAlign:d,mergedSize:f,bordered:m,title:h,cssVars:g,mergedClsPrefix:_,separator:v,onRender:b}=this;b?.();let C=i.filter(e=>D(e)),T=C.reduce((r,i,d)=>{let f=i.props||{},h=C.length-1===d,g=[`label`in f?f.label:w(i,`label`)],y=[w(i)],b=f.span||1,x=r.span;r.span+=b;let S=f.labelStyle||f[`label-style`]||this.labelStyle,T=f.contentStyle||f[`content-style`]||this.contentStyle;if(l===`left`)m?r.row.push((t(),u(`th`,{key:1,class:n([`${_}-descriptions-table-header`,o]),colspan:1,style:e(S)},[p(()=>g)],6)),(t(),u(`td`,{key:2,class:n([`${_}-descriptions-table-content`,a]),colspan:h?(s-x)*2+1:b*2-1,style:e(T)},[p(()=>y)],14,O))):r.row.push((t(),u(`td`,{key:3,class:n(`${_}-descriptions-table-content`),colspan:h?(s-x)*2:b*2},[c(`span`,{class:n([`${_}-descriptions-table-content__label`,o]),style:e(S)},[p(()=>[...g,v&&(t(),u(`span`,{key:4,class:n(`${_}-descriptions-separator`)},[p(()=>v)],2))])],6),c(`span`,{class:n([`${_}-descriptions-table-content__content`,a]),style:e(T)},[p(()=>y)],6)],10,k)));else{let i=h?(s-x)*2:b*2;r.row.push((t(),u(`th`,{key:5,class:n([`${_}-descriptions-table-header`,o]),colspan:i,style:e(S)},[p(()=>g)],14,A))),r.secondRow.push((t(),u(`td`,{key:6,class:n([`${_}-descriptions-table-content`,a]),colspan:i,style:e(T)},[p(()=>y)],14,j)))}return(r.span>=s||h)&&(r.span=0,r.row.length&&(r.rows.push(r.row),r.row=[]),l!==`left`&&r.secondRow.length&&(r.rows.push(r.secondRow),r.secondRow=[])),r},{span:0,row:[],secondRow:[],rows:[]}).rows.map(e=>(t(),u(`tr`,{class:n(`${_}-descriptions-table-row`)},[p(()=>e)],2)));return t(),u(`div`,{style:e(g),class:n([`${_}-descriptions`,this.themeClass,`${_}-descriptions--${l}-label-placement`,`${_}-descriptions--${d}-label-align`,`${_}-descriptions--${f}-size`,m&&`${_}-descriptions--bordered`])},[h||this.$slots.header?(t(),u(`div`,{key:0,class:n(`${_}-descriptions-header`)},[p(()=>h||S(this,`header`))],2)):p(()=>null),c(`div`,{class:n(`${_}-descriptions-table-wrapper`)},[c(`table`,{class:n(`${_}-descriptions-table`)},[c(`tbody`,null,[p(()=>l===`top`&&(t(),u(`tr`,{class:n(`${_}-descriptions-table-row`),style:{visibility:`collapse`}},[p(()=>y(s*2,(t(),u(`td`))))],2))),p(()=>T)])],2)],2)],6)}}),P={label:String,span:{type:Number,default:1},labelClass:String,labelStyle:[Object,String],contentClass:String,contentStyle:[Object,String]},F=a({name:`DescriptionsItem`,[E]:!0,props:P,slots:Object,render(){return null}});export{N as n,F as t};
`))]),E=`DESCRIPTION_ITEM_FLAG`;function D(e){return typeof e==`object`&&e&&!Array.isArray(e)?e.type&&e.type.DESCRIPTION_ITEM_FLAG:!1}var O=[`colspan`],k=[`colspan`],A=[`colspan`],j=[`colspan`],M={...g.props,title:String,column:{type:Number,default:3},columns:Number,labelPlacement:{type:String,default:`top`},labelAlign:{type:String,default:`left`},separator:{type:String,default:`:`},size:String,bordered:Boolean,labelClass:String,labelStyle:[Object,String],contentClass:String,contentStyle:[Object,String]},N=a({name:`Descriptions`,props:M,slots:Object,setup(e){let{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedComponentPropsRef:i}=f(e),a=m(()=>e.size||i?.value?.Descriptions?.size||`medium`),o=g(`Descriptions`,`-descriptions`,T,C,e,t),c=m(()=>{let{bordered:t}=e,n=a.value,{common:{cubicBezierEaseInOut:r},self:{titleTextColor:i,thColor:c,thColorModal:l,thColorPopover:u,thTextColor:d,thFontWeight:f,tdTextColor:p,tdColor:m,tdColorModal:h,tdColorPopover:g,borderColor:_,borderColorModal:v,borderColorPopover:y,borderRadius:b,lineHeight:x,[s(`fontSize`,n)]:S,[s(t?`thPaddingBordered`:`thPadding`,n)]:C,[s(t?`tdPaddingBordered`:`tdPadding`,n)]:w}}=o.value;return{"--n-title-text-color":i,"--n-th-padding":C,"--n-td-padding":w,"--n-font-size":S,"--n-bezier":r,"--n-th-font-weight":f,"--n-line-height":x,"--n-th-text-color":d,"--n-td-text-color":p,"--n-th-color":c,"--n-th-color-modal":l,"--n-th-color-popover":u,"--n-td-color":m,"--n-td-color-modal":h,"--n-td-color-popover":g,"--n-border-radius":b,"--n-border-color":_,"--n-border-color-modal":v,"--n-border-color-popover":y}}),l=n?r(`descriptions`,m(()=>{let t=``,{bordered:n}=e;return n&&(t+=`a`),t+=a.value[0],t}),c,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:c,themeClass:l?.themeClass,onRender:l?.onRender,compitableColumn:x(e,[`columns`,`column`]),inlineThemeDisabled:n,mergedSize:a}},render(){let r=this.$slots.default,i=r?y(r()):[];i.length;let{contentClass:a,labelClass:o,compitableColumn:s,labelPlacement:l,labelAlign:d,mergedSize:f,bordered:m,title:h,cssVars:g,mergedClsPrefix:_,separator:v,onRender:x}=this;x?.();let C=i.filter(e=>D(e)),T=C.reduce((r,i,d)=>{let f=i.props||{},h=C.length-1===d,g=[`label`in f?f.label:w(i,`label`)],y=[w(i)],b=f.span||1,x=r.span;r.span+=b;let S=f.labelStyle||f[`label-style`]||this.labelStyle,T=f.contentStyle||f[`content-style`]||this.contentStyle;if(l===`left`)m?r.row.push((t(),u(`th`,{key:1,class:n([`${_}-descriptions-table-header`,o]),colspan:1,style:e(S)},[p(()=>g)],6)),(t(),u(`td`,{key:2,class:n([`${_}-descriptions-table-content`,a]),colspan:h?(s-x)*2+1:b*2-1,style:e(T)},[p(()=>y)],14,O))):r.row.push((t(),u(`td`,{key:3,class:n(`${_}-descriptions-table-content`),colspan:h?(s-x)*2:b*2},[c(`span`,{class:n([`${_}-descriptions-table-content__label`,o]),style:e(S)},[p(()=>[...g,v&&(t(),u(`span`,{key:4,class:n(`${_}-descriptions-separator`)},[p(()=>v)],2))])],6),c(`span`,{class:n([`${_}-descriptions-table-content__content`,a]),style:e(T)},[p(()=>y)],6)],10,k)));else{let i=h?(s-x)*2:b*2;r.row.push((t(),u(`th`,{key:5,class:n([`${_}-descriptions-table-header`,o]),colspan:i,style:e(S)},[p(()=>g)],14,A))),r.secondRow.push((t(),u(`td`,{key:6,class:n([`${_}-descriptions-table-content`,a]),colspan:i,style:e(T)},[p(()=>y)],14,j)))}return(r.span>=s||h)&&(r.span=0,r.row.length&&(r.rows.push(r.row),r.row=[]),l!==`left`&&r.secondRow.length&&(r.rows.push(r.secondRow),r.secondRow=[])),r},{span:0,row:[],secondRow:[],rows:[]}).rows.map(e=>(t(),u(`tr`,{class:n(`${_}-descriptions-table-row`)},[p(()=>e)],2)));return t(),u(`div`,{style:e(g),class:n([`${_}-descriptions`,this.themeClass,`${_}-descriptions--${l}-label-placement`,`${_}-descriptions--${d}-label-align`,`${_}-descriptions--${f}-size`,m&&`${_}-descriptions--bordered`])},[h||this.$slots.header?(t(),u(`div`,{key:0,class:n(`${_}-descriptions-header`)},[p(()=>h||b(this,`header`))],2)):p(()=>null),c(`div`,{class:n(`${_}-descriptions-table-wrapper`)},[c(`table`,{class:n(`${_}-descriptions-table`)},[c(`tbody`,null,[p(()=>l===`top`&&(t(),u(`tr`,{class:n(`${_}-descriptions-table-row`),style:{visibility:`collapse`}},[p(()=>S(s*2,(t(),u(`td`))))],2))),p(()=>T)])],2)],2)],6)}}),P={label:String,span:{type:Number,default:1},labelClass:String,labelStyle:[Object,String],contentClass:String,contentStyle:[Object,String]},F=a({name:`DescriptionsItem`,[E]:!0,props:P,slots:Object,render(){return null}});export{N as n,F as t};

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -1 +0,0 @@
import{_n as e,gn as t,hn as n,wn as r}from"./replaceable-B-PFC1y9.js";import{X as i,a,ot as o,st as s}from"./store-CqvdPZxw.js";import{t as c}from"./Button-BgNmP7qu.js";import{t as l}from"./Flex-CsQ_DC64.js";import{_ as u}from"./useApi-CUWMwLLw-F5BxF7nP.js";var d=e({name:`PageResult`,props:{...s},setup(){let{replace:e}=u();return{goBack:()=>{let{getAppRootRoute:t}=a();t.value?.path&&e(t.value.path)}}},render(){let{goBack:e}=this;return t(`div`,{class:`error-page`},[t(o,r(this.$props,{status:`500`,title:`404 资源不存在`,description:`小调皮你走错地方了`}),{...this.$slots,footer:()=>t(l,{align:`center`,justify:`center`},{default:()=>[t(c,{onClick:i.bind(this,!0)},{default:()=>[n(`返回首页`)]}),t(c,{type:`primary`,onClick:e.bind(this)},{default:()=>[n(`返回上一页面`)]})]})})])}}),f=e({name:`ErrorPage404`,setup(){return{}},render(){return t(d,{status:`404`},null)}});export{f as default};

Binary file not shown.

1
js/Error404-DTnhSWUT.js Normal file
View File

@ -0,0 +1 @@
import{_n as e,gn as t,hn as n,wn as r}from"./replaceable-DW6s2lkT.js";import{H as i,Q as a,U as o,Z as s,i as c,st as l}from"./index-rJvBcjbC.js";import{t as u}from"./Button-vr5e8LJV.js";var d=e({name:`PageResult`,props:{...a},setup(){let{replace:e}=i();return{goBack:()=>{let{getAppRootRoute:t}=c();t.value?.path&&e(t.value.path)}}},render(){let{goBack:e}=this;return t(`div`,{class:`error-page`},[t(s,r(this.$props,{status:`500`,title:`404 资源不存在`,description:`小调皮你走错地方了`}),{...this.$slots,footer:()=>t(l,{align:`center`,justify:`center`},{default:()=>[t(u,{onClick:o.bind(this,!0)},{default:()=>[n(`返回首页`)]}),t(u,{type:`primary`,onClick:e.bind(this)},{default:()=>[n(`返回上一页面`)]})]})})])}}),f=e({name:`ErrorPage404`,setup(){return{}},render(){return t(d,{status:`404`},null)}});export{f as default};

BIN
js/Error404-DTnhSWUT.js.gz Normal file

Binary file not shown.

View File

@ -1 +0,0 @@
import{K as e,Mn as t,Q as n,_n as r,bt as i,l as a,mn as o,ot as s,q as c,tt as l,un as u,x as d}from"./replaceable-B-PFC1y9.js";import{n as f,t as p}from"./get-slot-DHGzMRu-.js";import{At as m}from"./toString-BWDzaUQG.js";var h={gapSmall:`4px 8px`,gapMedium:`8px 12px`,gapLarge:`12px 16px`};function g(){return h}var _={name:`Flex`,self:g},v={...d.props,align:String,justify:{type:String,default:`start`},inline:Boolean,vertical:Boolean,reverse:Boolean,size:{type:[String,Number,Array],default:`medium`},wrap:{type:Boolean,default:!0}},y=r({name:`Flex`,props:v,setup(t){let{mergedClsPrefixRef:n,mergedRtlRef:r}=s(t),o=d(`Flex`,`-flex`,void 0,_,t,n);return{rtlEnabled:a(`Flex`,r,n),mergedClsPrefix:n,margin:u(()=>{let{size:n}=t;if(Array.isArray(n))return{horizontal:n[0],vertical:n[1]};if(typeof n==`number`)return{horizontal:n,vertical:n};let{self:{[i(`gap`,n)]:r}}=o.value,{row:a,col:s}=c(r);return{horizontal:e(s),vertical:e(a)}})}},render(){let{vertical:e,reverse:r,align:i,inline:a,justify:s,margin:c,wrap:u,mergedClsPrefix:d,rtlEnabled:h}=this,g=f(p(this),!1);return g.length?(t(),o(`div`,{role:`none`,class:n([`${d}-flex`,h&&`${d}-flex--rtl`]),style:m({display:a?`inline-flex`:`flex`,flexDirection:e&&!r?`column`:e&&r?`column-reverse`:!e&&r?`row-reverse`:`row`,justifyContent:s,flexWrap:!u||e?`nowrap`:`wrap`,alignItems:i,gap:`${c.vertical}px ${c.horizontal}px`})},[l(()=>g)],6)):null}});export{h as n,y as t};

Binary file not shown.

View File

@ -1 +0,0 @@
import{dt as e,lt as t,ut as n,xn as r}from"./store-CqvdPZxw.js";import{c as i}from"./Card-BB74FRP1.js";import{i as a,n as o,r as s}from"./Switch-DQsfv1yf.js";import{_n as c,yn as l}from"./replaceable-B-PFC1y9.js";import{z as u}from"./toString-BWDzaUQG.js";var d={...e,...a};i(d);var f=c({__GRID_ITEM__:!0,name:`FormItemGridItem`,alias:[`FormItemGi`],props:d,slots:Object,setup(){let e=u(null);return{formItemInstRef:e,validate:(...t)=>{let{value:n}=e;if(n)return n.validate(...t)},restoreValidation:()=>{let{value:t}=e;t&&t.restoreValidation()}}},render(){return l(t,r(this.$.vnode.props||{},n),{default:()=>{let e=r(this.$props,s);return l(o,{ref:`formItemInstRef`,...e},this.$slots)}})}});export{f as t};

Binary file not shown.

View File

@ -0,0 +1 @@
import{Lt as e,at as t,it as n,rt as r}from"./index-rJvBcjbC.js";import{c as i}from"./Card-D38P0NK6.js";import{n as a,r as o,t as s}from"./GridItem-7jxm1aOw.js";import{_n as c,yn as l}from"./replaceable-DW6s2lkT.js";import{z as u}from"./toString-BWDzaUQG.js";var d={...o,...t};i(d);var f=c({__GRID_ITEM__:!0,name:`FormItemGridItem`,alias:[`FormItemGi`],props:d,slots:Object,setup(){let e=u(null);return{formItemInstRef:e,validate:(...t)=>{let{value:n}=e;if(n)return n.validate(...t)},restoreValidation:()=>{let{value:t}=e;t&&t.restoreValidation()}}},render(){return l(s,e(this.$.vnode.props||{},a),{default:()=>{let t=e(this.$props,n);return l(r,{ref:`formItemInstRef`,...t},this.$slots)}})}});export{f as t};

Binary file not shown.

1
js/GridItem-7jxm1aOw.js Normal file
View File

@ -0,0 +1 @@
import{c as e}from"./Card-D38P0NK6.js";import{Mn as t,Y as n,_n as r,mn as i,tt as a,un as o,vn as s,xn as c}from"./replaceable-DW6s2lkT.js";import{nt as l}from"./index-rJvBcjbC.js";import{At as u}from"./toString-BWDzaUQG.js";var d={span:{type:[Number,String],default:1},offset:{type:[Number,String],default:0},suffix:Boolean,privateOffset:Number,privateSpan:Number,privateColStart:Number,privateShow:{type:Boolean,default:!0}},f=e(d),p=r({__GRID_ITEM__:!0,name:`GridItem`,alias:[`Gi`],props:d,setup(){let{isSsrRef:e,xGapRef:t,itemStyleRef:r,overflowRef:i,layoutShiftDisabledRef:a}=c(l),u=s();return{overflow:i,itemStyle:r,layoutShiftDisabled:a,mergedXGap:o(()=>n(t.value||0)),deriveStyle:()=>{e.value;let{privateSpan:r=1,privateShow:i=!0,privateColStart:a=void 0,privateOffset:o=0}=u.vnode.props,{value:s}=t,c=n(s||0);return{display:i?``:`none`,gridColumn:`${a??`span ${r}`} / span ${r}`,marginLeft:o?`calc((100% - (${r} - 1) * ${c}) / ${r} * ${o} + ${c} * ${o})`:``}}}},render(){if(this.layoutShiftDisabled){let{span:e,offset:n,mergedXGap:r}=this;return t(),i(`div`,{key:1,style:u({gridColumn:`span ${e} / span ${e}`,marginLeft:n?`calc((100% - (${e} - 1) * ${r}) / ${e} * ${n} + ${r} * ${n})`:``})},[a(()=>this.$slots.default?.())],4)}return t(),i(`div`,{style:u([this.itemStyle,this.deriveStyle()])},[a(()=>this.$slots.default?.({overflow:this.overflow}))],4)}});export{f as n,d as r,p as t};

BIN
js/GridItem-7jxm1aOw.js.gz Normal file

Binary file not shown.

View File

@ -1 +0,0 @@
import{Hn as e,In as t,Sn as n,_n as r,gn as i,hn as a}from"./replaceable-B-PFC1y9.js";/* empty css */import{$ as o,j as s}from"./store-CqvdPZxw.js";import{t as c}from"./Button-BgNmP7qu.js";import{t as l}from"./Card-BB74FRP1.js";function u(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!n(e)}var d=r({name:`HookExample`,props:{name:{type:String,required:!0},description:{type:String,required:!0},code:{type:String,required:!0}},setup(n,{slots:r}){let{t:d}=o(`showcase`);return()=>{let o;return i(l,{tag:`article`,class:`r-hook-example`,contentStyle:{padding:0}},{default:()=>[i(`header`,{class:`r-hook-example__header`},[i(`span`,{class:`r-hook-example__symbol`,"aria-hidden":`true`},[a(`ƒ`)]),i(`h2`,null,[n.name]),i(`span`,{class:`r-hook-example__type`},[a(`Hook`)])]),i(`p`,{class:`r-hook-example__description`},[n.description]),i(`div`,{class:`r-hook-preview`},[i(`span`,{class:`r-hook-preview__label`},[d(`preview`)]),r.default?.()]),i(`details`,{class:`r-hook-code`},[i(`summary`,null,[i(`span`,null,[i(s,{name:`directional/expanded`,size:12},null),d(`code`)]),i(`span`,{class:`r-hook-code__format`},[a(`TS / TSX`)])]),i(`div`,{class:`r-hook-code__toolbar`},[i(`span`,null,[a(`TypeScript`)]),e(i(c,{text:!0,size:`tiny`},u(o=d(`copyCode`))?o:{default:()=>[o]}),[[t(`copy`),n.code]])]),i(`pre`,{class:`r-demo-code`},[i(`code`,null,[n.code])])])]})}}});export{d as t};

Binary file not shown.

View File

@ -0,0 +1 @@
import{In as e,Sn as t,Un as n,_n as r,gn as i,hn as a}from"./replaceable-DW6s2lkT.js";/* empty css */import{E as o,K as s}from"./index-rJvBcjbC.js";import{t as c}from"./Button-vr5e8LJV.js";import{t as l}from"./Card-D38P0NK6.js";function u(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!t(e)}var d=r({name:`HookExample`,props:{name:{type:String,required:!0},description:{type:String,required:!0},code:{type:String,required:!0}},setup(t,{slots:r}){let{t:d}=s(`showcase`);return()=>{let s;return i(l,{tag:`article`,class:`r-hook-example`,contentStyle:{padding:0}},{default:()=>[i(`header`,{class:`r-hook-example__header`},[i(`span`,{class:`r-hook-example__symbol`,"aria-hidden":`true`},[a(`ƒ`)]),i(`h2`,null,[t.name]),i(`span`,{class:`r-hook-example__type`},[a(`Hook`)])]),i(`p`,{class:`r-hook-example__description`},[t.description]),i(`div`,{class:`r-hook-preview`},[i(`span`,{class:`r-hook-preview__label`},[d(`preview`)]),r.default?.()]),i(`details`,{class:`r-hook-code`},[i(`summary`,null,[i(`span`,null,[i(o,{name:`directional/expanded`,size:12},null),d(`code`)]),i(`span`,{class:`r-hook-code__format`},[a(`TS / TSX`)])]),i(`div`,{class:`r-hook-code__toolbar`},[i(`span`,null,[a(`TypeScript`)]),n(i(c,{text:!0,size:`tiny`},u(s=d(`copyCode`))?s:{default:()=>[s]}),[[e(`copy`),t.code]])]),i(`pre`,{class:`r-demo-code`},[i(`code`,null,[t.code])])])]})}}});export{d as t};

Binary file not shown.

258
js/Input-CcCbIWFY.js Normal file

File diff suppressed because one or more lines are too long

BIN
js/Input-CcCbIWFY.js.gz Normal file

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -1,56 +0,0 @@
import{Mn as e,Q as t,_n as n,_t as r,ht as i,mn as a,mt as o,nt as s,ot as c,tt as l}from"./replaceable-B-PFC1y9.js";var u=i(`input-group`,`
display: inline-flex;
width: 100%;
flex-wrap: nowrap;
vertical-align: bottom;
`,[o(`>`,[i(`input`,[o(`&:not(:last-child)`,`
border-top-right-radius: 0!important;
border-bottom-right-radius: 0!important;
`),o(`&:not(:first-child)`,`
border-top-left-radius: 0!important;
border-bottom-left-radius: 0!important;
margin-left: -1px!important;
`)]),i(`button`,[o(`&:not(:last-child)`,`
border-top-right-radius: 0!important;
border-bottom-right-radius: 0!important;
`,[r(`state-border, border`,`
border-top-right-radius: 0!important;
border-bottom-right-radius: 0!important;
`)]),o(`&:not(:first-child)`,`
border-top-left-radius: 0!important;
border-bottom-left-radius: 0!important;
`,[r(`state-border, border`,`
border-top-left-radius: 0!important;
border-bottom-left-radius: 0!important;
`)])]),o(`*`,[o(`&:not(:last-child)`,`
border-top-right-radius: 0!important;
border-bottom-right-radius: 0!important;
`,[o(`>`,[i(`input`,`
border-top-right-radius: 0!important;
border-bottom-right-radius: 0!important;
`),i(`base-selection`,[i(`base-selection-label`,`
border-top-right-radius: 0!important;
border-bottom-right-radius: 0!important;
`),i(`base-selection-tags`,`
border-top-right-radius: 0!important;
border-bottom-right-radius: 0!important;
`),r(`box-shadow, border, state-border`,`
border-top-right-radius: 0!important;
border-bottom-right-radius: 0!important;
`)])])]),o(`&:not(:first-child)`,`
margin-left: -1px!important;
border-top-left-radius: 0!important;
border-bottom-left-radius: 0!important;
`,[o(`>`,[i(`input`,`
border-top-left-radius: 0!important;
border-bottom-left-radius: 0!important;
`),i(`base-selection`,[i(`base-selection-label`,`
border-top-left-radius: 0!important;
border-bottom-left-radius: 0!important;
`),i(`base-selection-tags`,`
border-top-left-radius: 0!important;
border-bottom-left-radius: 0!important;
`),r(`box-shadow, border, state-border`,`
border-top-left-radius: 0!important;
border-bottom-left-radius: 0!important;
`)])])])])])]),d=n({name:`InputGroup`,props:{},setup(e){let{mergedClsPrefixRef:t}=c(e);return s(`-input-group`,u,t),{mergedClsPrefix:t}},render(){let{mergedClsPrefix:n}=this;return e(),a(`div`,{class:t(`${n}-input-group`)},[l(()=>this.$slots.default?.())],2)}});export{d as t};

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -1,23 +0,0 @@
import{C as e,D as t,Mn as n,Nn as r,Q as i,S as a,T as o,_n as s,b as c,c as l,et as u,fn as d,ht as f,lt as p,mn as m,n as h,ot as g,tt as _,un as v,vt as y,wn as b,x}from"./replaceable-B-PFC1y9.js";import{At as S,z as C}from"./toString-BWDzaUQG.js";function w(e){let{baseColor:n,textColor2:r,bodyColor:i,cardColor:a,dividerColor:o,actionColor:s,scrollbarColor:c,scrollbarColorHover:l,invertedColor:u}=e;return{textColor:r,textColorInverted:`#FFF`,color:i,colorEmbedded:s,headerColor:a,headerColorInverted:u,footerColor:s,footerColorInverted:u,headerBorderColor:o,headerBorderColorInverted:u,footerBorderColor:o,footerBorderColorInverted:u,siderBorderColor:o,siderBorderColorInverted:u,siderColor:a,siderColorInverted:u,siderToggleButtonBorder:`1px solid ${o}`,siderToggleButtonColor:n,siderToggleButtonIconColor:r,siderToggleButtonIconColorInverted:r,siderToggleBarColor:t(i,c),siderToggleBarColorHover:t(i,l),__invertScrollbar:`true`}}var T=c({name:`Layout`,common:o,peers:{Scrollbar:e},self:w}),E=p(`n-layout-sider`),D={type:String,default:`static`},O=f(`layout`,`
color: var(--n-text-color);
background-color: var(--n-color);
box-sizing: border-box;
position: relative;
z-index: auto;
flex: auto;
overflow: hidden;
transition:
box-shadow .3s var(--n-bezier),
background-color .3s var(--n-bezier),
color .3s var(--n-bezier);
`,[f(`layout-scroll-container`,`
overflow-x: hidden;
box-sizing: border-box;
height: 100%;
`),y(`absolute-positioned`,`
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
`)]),k={embedded:Boolean,position:D,nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,onScroll:Function,contentClass:String,contentStyle:{type:[String,Object],default:``},hasSider:Boolean,siderPlacement:{type:String,default:`left`}},A=p(`n-layout`);function j(e){return s({name:e?`LayoutContent`:`Layout`,props:{...x.props,...k},setup(e){let t=C(null),n=C(null),{mergedClsPrefixRef:i,inlineThemeDisabled:o}=g(e),s=x(`Layout`,`-layout`,O,T,e,i);function c(r,i){if(e.nativeScrollbar){let{value:e}=t;e&&(i===void 0?e.scrollTo(r):e.scrollTo(r,i))}else{let{value:e}=n;e&&e.scrollTo(r,i)}}r(A,e);let u=0,d=0,f=t=>{let n=t.target;u=n.scrollLeft,d=n.scrollTop,e.onScroll?.(t)};l(()=>{if(e.nativeScrollbar){let e=t.value;e&&(e.scrollTop=d,e.scrollLeft=u)}});let p={display:`flex`,flexWrap:`nowrap`,width:`100%`,flexDirection:`row`},m={scrollTo:c},h=v(()=>{let{common:{cubicBezierEaseInOut:t},self:n}=s.value;return{"--n-bezier":t,"--n-color":e.embedded?n.colorEmbedded:n.color,"--n-text-color":n.textColor}}),_=o?a(`layout`,v(()=>e.embedded?`e`:``),h,e):void 0;return{mergedClsPrefix:i,scrollableElRef:t,scrollbarInstRef:n,hasSiderStyle:p,mergedTheme:s,handleNativeElScroll:f,cssVars:o?void 0:h,themeClass:_?.themeClass,onRender:_?.onRender,...m}},render(){let{mergedClsPrefix:t,hasSider:r}=this;this.onRender?.();let a=r?this.hasSiderStyle:void 0,o=[this.themeClass,e&&`${t}-layout-content`,`${t}-layout`,`${t}-layout--${this.position}-positioned`];return n(),m(`div`,{class:i(o),style:S(this.cssVars)},[this.nativeScrollbar?(n(),m(`div`,{key:0,ref:`scrollableElRef`,class:i([`${t}-layout-scroll-container`,this.contentClass]),style:S([this.contentStyle,a]),onScroll:this.handleNativeElScroll},[_(()=>this.$slots.default?.())],46,[`onScroll`])):(n(),d(h,b({key:1},this.scrollbarProps,{onScroll:this.onScroll,ref:`scrollbarInstRef`,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:this.contentClass,contentStyle:[this.contentStyle,a]}),u(this.$slots),1040,[`onScroll`,`theme`,`themeOverrides`,`contentClass`,`contentStyle`]))],6)}})}var M=j(!1);export{D as a,E as i,j as n,T as o,A as r,M as t};

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -1,4 +1,4 @@
import{E as e,J as t,Mn as n,Nn as r,Q as i,S as a,T as o,_n as s,_t as c,bt as l,dn as u,fn as d,g as f,ht as p,l as m,lt as h,m as g,mn as _,mt as v,ot as y,tt as b,un as x,vt as S,x as C,yt as w}from"./replaceable-B-PFC1y9.js";import{t as T}from"./color-to-class-G4jmrDIg.js";import{s as E}from"./Card-BB74FRP1.js";import{At as D,J as O,z as k}from"./toString-BWDzaUQG.js";var A={closeIconSizeTiny:`12px`,closeIconSizeSmall:`12px`,closeIconSizeMedium:`14px`,closeIconSizeLarge:`14px`,closeSizeTiny:`16px`,closeSizeSmall:`16px`,closeSizeMedium:`18px`,closeSizeLarge:`18px`,padding:`0 7px`,closeMargin:`0 0 0 4px`};function j(t){let{textColor2:n,primaryColorHover:r,primaryColorPressed:i,primaryColor:a,infoColor:o,successColor:s,warningColor:c,errorColor:l,baseColor:u,borderColor:d,opacityDisabled:f,tagColor:p,closeIconColor:m,closeIconColorHover:h,closeIconColorPressed:g,borderRadiusSmall:_,fontSizeMini:v,fontSizeTiny:y,fontSizeSmall:b,fontSizeMedium:x,heightMini:S,heightTiny:C,heightSmall:w,heightMedium:T,closeColorHover:E,closeColorPressed:D,buttonColor2Hover:O,buttonColor2Pressed:k,fontWeightStrong:j}=t;return{...A,closeBorderRadius:_,heightTiny:S,heightSmall:C,heightMedium:w,heightLarge:T,borderRadius:_,opacityDisabled:f,fontSizeTiny:v,fontSizeSmall:y,fontSizeMedium:b,fontSizeLarge:x,fontWeightStrong:j,textColorCheckable:n,textColorHoverCheckable:n,textColorPressedCheckable:n,textColorChecked:u,colorCheckable:`#0000`,colorHoverCheckable:O,colorPressedCheckable:k,colorChecked:a,colorCheckedHover:r,colorCheckedPressed:i,border:`1px solid ${d}`,textColor:n,color:p,colorBordered:`rgb(250, 250, 252)`,closeIconColor:m,closeIconColorHover:h,closeIconColorPressed:g,closeColorHover:E,closeColorPressed:D,borderPrimary:`1px solid ${e(a,{alpha:.3})}`,textColorPrimary:a,colorPrimary:e(a,{alpha:.12}),colorBorderedPrimary:e(a,{alpha:.1}),closeIconColorPrimary:a,closeIconColorHoverPrimary:a,closeIconColorPressedPrimary:a,closeColorHoverPrimary:e(a,{alpha:.12}),closeColorPressedPrimary:e(a,{alpha:.18}),borderInfo:`1px solid ${e(o,{alpha:.3})}`,textColorInfo:o,colorInfo:e(o,{alpha:.12}),colorBorderedInfo:e(o,{alpha:.1}),closeIconColorInfo:o,closeIconColorHoverInfo:o,closeIconColorPressedInfo:o,closeColorHoverInfo:e(o,{alpha:.12}),closeColorPressedInfo:e(o,{alpha:.18}),borderSuccess:`1px solid ${e(s,{alpha:.3})}`,textColorSuccess:s,colorSuccess:e(s,{alpha:.12}),colorBorderedSuccess:e(s,{alpha:.1}),closeIconColorSuccess:s,closeIconColorHoverSuccess:s,closeIconColorPressedSuccess:s,closeColorHoverSuccess:e(s,{alpha:.12}),closeColorPressedSuccess:e(s,{alpha:.18}),borderWarning:`1px solid ${e(c,{alpha:.35})}`,textColorWarning:c,colorWarning:e(c,{alpha:.15}),colorBorderedWarning:e(c,{alpha:.12}),closeIconColorWarning:c,closeIconColorHoverWarning:c,closeIconColorPressedWarning:c,closeColorHoverWarning:e(c,{alpha:.12}),closeColorPressedWarning:e(c,{alpha:.18}),borderError:`1px solid ${e(l,{alpha:.23})}`,textColorError:l,colorError:e(l,{alpha:.1}),colorBorderedError:e(l,{alpha:.08}),closeIconColorError:l,closeIconColorHoverError:l,closeIconColorPressedError:l,closeColorHoverError:e(l,{alpha:.12}),closeColorPressedError:e(l,{alpha:.18})}}var M={name:`Tag`,common:o,self:j},N={color:Object,type:{type:String,default:`default`},round:Boolean,size:String,closable:Boolean,disabled:{type:Boolean,default:void 0}},P=p(`tag`,`
import{E as e,J as t,Mn as n,Nn as r,Q as i,S as a,T as o,_n as s,_t as c,bt as l,dn as u,fn as d,g as f,ht as p,l as m,lt as h,m as g,mn as _,mt as v,ot as y,tt as b,un as x,vt as S,x as C,yt as w}from"./replaceable-DW6s2lkT.js";import{t as T}from"./color-to-class-G4jmrDIg.js";import{s as E}from"./Card-D38P0NK6.js";import{At as D,J as O,z as k}from"./toString-BWDzaUQG.js";var A={closeIconSizeTiny:`12px`,closeIconSizeSmall:`12px`,closeIconSizeMedium:`14px`,closeIconSizeLarge:`14px`,closeSizeTiny:`16px`,closeSizeSmall:`16px`,closeSizeMedium:`18px`,closeSizeLarge:`18px`,padding:`0 7px`,closeMargin:`0 0 0 4px`};function j(t){let{textColor2:n,primaryColorHover:r,primaryColorPressed:i,primaryColor:a,infoColor:o,successColor:s,warningColor:c,errorColor:l,baseColor:u,borderColor:d,opacityDisabled:f,tagColor:p,closeIconColor:m,closeIconColorHover:h,closeIconColorPressed:g,borderRadiusSmall:_,fontSizeMini:v,fontSizeTiny:y,fontSizeSmall:b,fontSizeMedium:x,heightMini:S,heightTiny:C,heightSmall:w,heightMedium:T,closeColorHover:E,closeColorPressed:D,buttonColor2Hover:O,buttonColor2Pressed:k,fontWeightStrong:j}=t;return{...A,closeBorderRadius:_,heightTiny:S,heightSmall:C,heightMedium:w,heightLarge:T,borderRadius:_,opacityDisabled:f,fontSizeTiny:v,fontSizeSmall:y,fontSizeMedium:b,fontSizeLarge:x,fontWeightStrong:j,textColorCheckable:n,textColorHoverCheckable:n,textColorPressedCheckable:n,textColorChecked:u,colorCheckable:`#0000`,colorHoverCheckable:O,colorPressedCheckable:k,colorChecked:a,colorCheckedHover:r,colorCheckedPressed:i,border:`1px solid ${d}`,textColor:n,color:p,colorBordered:`rgb(250, 250, 252)`,closeIconColor:m,closeIconColorHover:h,closeIconColorPressed:g,closeColorHover:E,closeColorPressed:D,borderPrimary:`1px solid ${e(a,{alpha:.3})}`,textColorPrimary:a,colorPrimary:e(a,{alpha:.12}),colorBorderedPrimary:e(a,{alpha:.1}),closeIconColorPrimary:a,closeIconColorHoverPrimary:a,closeIconColorPressedPrimary:a,closeColorHoverPrimary:e(a,{alpha:.12}),closeColorPressedPrimary:e(a,{alpha:.18}),borderInfo:`1px solid ${e(o,{alpha:.3})}`,textColorInfo:o,colorInfo:e(o,{alpha:.12}),colorBorderedInfo:e(o,{alpha:.1}),closeIconColorInfo:o,closeIconColorHoverInfo:o,closeIconColorPressedInfo:o,closeColorHoverInfo:e(o,{alpha:.12}),closeColorPressedInfo:e(o,{alpha:.18}),borderSuccess:`1px solid ${e(s,{alpha:.3})}`,textColorSuccess:s,colorSuccess:e(s,{alpha:.12}),colorBorderedSuccess:e(s,{alpha:.1}),closeIconColorSuccess:s,closeIconColorHoverSuccess:s,closeIconColorPressedSuccess:s,closeColorHoverSuccess:e(s,{alpha:.12}),closeColorPressedSuccess:e(s,{alpha:.18}),borderWarning:`1px solid ${e(c,{alpha:.35})}`,textColorWarning:c,colorWarning:e(c,{alpha:.15}),colorBorderedWarning:e(c,{alpha:.12}),closeIconColorWarning:c,closeIconColorHoverWarning:c,closeIconColorPressedWarning:c,closeColorHoverWarning:e(c,{alpha:.12}),closeColorPressedWarning:e(c,{alpha:.18}),borderError:`1px solid ${e(l,{alpha:.23})}`,textColorError:l,colorError:e(l,{alpha:.1}),colorBorderedError:e(l,{alpha:.08}),closeIconColorError:l,closeIconColorHoverError:l,closeIconColorPressedError:l,closeColorHoverError:e(l,{alpha:.12}),closeColorPressedError:e(l,{alpha:.18})}}var M={name:`Tag`,common:o,self:j},N={color:Object,type:{type:String,default:`default`},round:Boolean,size:String,closable:Boolean,disabled:{type:Boolean,default:void 0}},P=p(`tag`,`
--n-close-margin: var(--n-close-margin-top) var(--n-close-margin-right) var(--n-close-margin-bottom) var(--n-close-margin-left);
white-space: nowrap;
position: relative;

BIN
js/Tag-B0MkmlBr.js.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1 @@
import{Sn as e,_n as t,gn as n,in as r,un as i}from"./replaceable-DW6s2lkT.js";import{z as a}from"./toString-BWDzaUQG.js";import{K as o,wt as s,x as c}from"./index-rJvBcjbC.js";import{listPeople as l}from"./people-BA0yvZ_x.js";import{t as u}from"./people-C08APQny.js";function d(t){return typeof t==`function`||Object.prototype.toString.call(t)===`[object Object]`&&!e(t)}var f=t({name:`TableDemoAutoHeight`,setup(){let{t:e}=o(`table`),{data:t}=l(),f=a(!1),p=a(!1),m=a(!1),h=i(()=>u(e)),g=[...new Set(t.slice(0,10).map(({age:e})=>e))].sort((e,t)=>e-t);return()=>n(c,{autoHeight:!0,virtualScroll:f.value,data:t,columns:h.value,scrollX:944,pageSize:20,search:[{key:`name`,label:e(`name`),placeholder:e(`nameHint`)},{key:`age`,label:e(`age`),options:g.map(e=>({value:e,label:String(e)}))}]},{toolbar:()=>{let t,i,a;return n(r,null,[n(s,{checked:f.value,"onUpdate:checked":e=>f.value=e},d(t=e(`virtualRows`))?t:{default:()=>[t]}),n(s,{checked:p.value,"onUpdate:checked":e=>p.value=e},d(i=e(`showFooter`))?i:{default:()=>[i]}),n(s,{checked:m.value,"onUpdate:checked":e=>m.value=e},d(a=e(`showAction`))?a:{default:()=>[a]})])},tableFooter:p.value?()=>e(`footerExample`):void 0,tableAction:m.value?()=>e(`actionExample`):void 0})}});export{f as default};

Binary file not shown.

Binary file not shown.

View File

@ -1 +0,0 @@
import{_n as e,gn as t,hn as n}from"./replaceable-B-PFC1y9.js";import{L as r,Y as i}from"./toString-BWDzaUQG.js";import{n as a,t as o}from"./axios-6teNbjiy.js";import{r as s}from"./interceptor-D4X1SS-Z.js";import{t as c}from"./Button-BgNmP7qu.js";import{t as l}from"./Card-BB74FRP1.js";import{t as u}from"./Flex-CsQ_DC64.js";import{t as d}from"./Input-DtTntG9_.js";import{t as f}from"./Layout-DjT66MMh.js";var p=e=>a({url:`https://www.tianqiapi.com/api?version=v9&appid=23035354&appsecret=8YvlPNrz&city=${e}`,method:`get`}),m=()=>a({url:`https://jsonplaceholder.typicode.com/todos/1`,method:`get`}),h=e({name:`RAxios`,setup(){let e=r({weatherData:[],inputCityValue:null,throttleDemoInputValue:null,debounceDemoInputValue:null,weatherDemoInputValue:null}),{data:t,loading:n,run:a}=s(m,{throttleWait:1e3,manual:!0}),{data:c,loading:l,run:u}=s(m,{debounceWait:1e3,manual:!0}),{data:d,loading:f,run:h}=s(p,{throttleWait:1e3,manual:!0}),{data:g,loading:_,run:v}=o({url:`https://jsonplaceholder.typicode.com/todos/1`,method:`get`,cancelConfig:{cancel:!0}},{manual:!0,onError:()=>{window.$message.error(`接口出现异常`)}});return{...i(e),throttleDemoValue:t,throttleDemoLoading:n,throttleDemoRun:a,debounceDemoValue:c,debounceDemoLoading:l,debounceDemoRun:u,weatherDemoValue:d,weatherDemoLoading:f,weatherDemoRun:h,demoData:g,demoLoading:_,demoRun:v}},render(){return t(f,null,{default:()=>[t(u,{vertical:!0},{default:()=>[t(`h1`,null,[n(`请求`)]),t(l,null,{default:()=>[t(`h2`,null,[n(`useRequest`)]),t(`p`,null,[n(`支持配置化请求数据`)]),t(`h2`,null,[n(`useHookPlusRequest`)]),t(`p`,null,[n(`支持包裹一个拥有 promise 状态的异步函数,可以用来包裹一个 axios 请求返回值方法`)])]}),t(`h1`,null,[n(`使用 useRequest 获取`)]),t(l,{title:`请求函数`},{default:()=>[t(`h3`,null,[n(`1.基于 axios 封装,能够自动取消连续请求,避免重复渲染造成问题`)]),t(`h3`,null,[n(`2.打开控制台 => 网络 => 使用低速3g网络 => 查看控制台被取消的请求`)]),t(`h3`,null,[n(`3.详情请查看文档`)])]}),t(l,{title:`useRequest示例(手动触发)`},{default:()=>[t(u,{vertical:!0},{default:()=>[t(c,{onClick:this.demoRun.bind(this)},{default:()=>[n(`获取数据`)]}),t(`h3`,null,[n(`结果:\xA0`),this.demoLoading?`获取中...`:this.demoData?.title])]})]}),t(`h1`,null,[n(`使用 useHookPlusRequest 获取`)]),t(l,{title:`节流`},{default:()=>[t(u,{vertical:!0},{default:()=>[t(d,{value:this.throttleDemoInputValue,"onUpdate:value":e=>this.throttleDemoInputValue=e,onUpdateValue:()=>{this.throttleDemoRun()}},null),t(`h3`,null,[n(`不论触发多少次,一秒钟之内仅会触发一次`)]),t(`h3`,null,[n(`当前状态:\xA0`),this.throttleDemoLoading?`获取中...`:`获取成功!!!`])]})]}),t(l,{title:`防抖`},{default:()=>[t(u,{vertical:!0},{default:()=>[t(d,{value:this.debounceDemoInputValue,"onUpdate:value":e=>this.debounceDemoInputValue=e,onUpdateValue:()=>{this.debounceDemoRun()}},null),t(`h3`,null,[n(`一秒后才会执行,如果中途重新请求,则会重新计时`)]),t(`h3`,null,[n(`当前状态:\xA0`),this.debounceDemoLoading?`获取中...`:`获取成功!!!`])]})]}),t(l,{title:`获取气候`},{default:()=>[t(u,{vertical:!0},{default:()=>[t(d,{value:this.weatherDemoInputValue,"onUpdate:value":e=>this.weatherDemoInputValue=e,onUpdateValue:e=>{this.weatherDemoRun(e)}},null),t(`h3`,null,[n(`该示例演示了如何根据动态值获取数据`)]),t(`h3`,null,[n(`当前状态:\xA0`),this.weatherDemoLoading?`获取中...`:`获取成功!!!`])]})]})]})]})}});export{h as default};

Binary file not shown.

1
js/axios-BOSgO-SZ.js Normal file
View File

@ -0,0 +1 @@
import{_n as e,gn as t,hn as n}from"./replaceable-DW6s2lkT.js";import{L as r,Y as i}from"./toString-BWDzaUQG.js";import{n as a,t as o}from"./axios-BycRQuV2.js";import{t as s}from"./Button-vr5e8LJV.js";import{t as c}from"./Card-D38P0NK6.js";import{$ as l,S as u,st as d}from"./index-rJvBcjbC.js";import{t as f}from"./Input-CcCbIWFY.js";var p=e=>a({url:`https://www.tianqiapi.com/api?version=v9&appid=23035354&appsecret=8YvlPNrz&city=${e}`,method:`get`}),m=()=>a({url:`https://jsonplaceholder.typicode.com/todos/1`,method:`get`}),h=e({name:`RAxios`,setup(){let e=r({weatherData:[],inputCityValue:null,throttleDemoInputValue:null,debounceDemoInputValue:null,weatherDemoInputValue:null}),{data:t,loading:n,run:a}=u(m,{throttleWait:1e3,manual:!0}),{data:s,loading:c,run:l}=u(m,{debounceWait:1e3,manual:!0}),{data:d,loading:f,run:h}=u(p,{throttleWait:1e3,manual:!0}),{data:g,loading:_,run:v}=o({url:`https://jsonplaceholder.typicode.com/todos/1`,method:`get`,cancelConfig:{cancel:!0}},{manual:!0,onError:()=>{window.$message.error(`接口出现异常`)}});return{...i(e),throttleDemoValue:t,throttleDemoLoading:n,throttleDemoRun:a,debounceDemoValue:s,debounceDemoLoading:c,debounceDemoRun:l,weatherDemoValue:d,weatherDemoLoading:f,weatherDemoRun:h,demoData:g,demoLoading:_,demoRun:v}},render(){return t(l,null,{default:()=>[t(d,{vertical:!0},{default:()=>[t(`h1`,null,[n(`请求`)]),t(c,null,{default:()=>[t(`h2`,null,[n(`useRequest`)]),t(`p`,null,[n(`支持配置化请求数据`)]),t(`h2`,null,[n(`useHookPlusRequest`)]),t(`p`,null,[n(`支持包裹一个拥有 promise 状态的异步函数,可以用来包裹一个 axios 请求返回值方法`)])]}),t(`h1`,null,[n(`使用 useRequest 获取`)]),t(c,{title:`请求函数`},{default:()=>[t(`h3`,null,[n(`1.基于 axios 封装,能够自动取消连续请求,避免重复渲染造成问题`)]),t(`h3`,null,[n(`2.打开控制台 => 网络 => 使用低速3g网络 => 查看控制台被取消的请求`)]),t(`h3`,null,[n(`3.详情请查看文档`)])]}),t(c,{title:`useRequest示例(手动触发)`},{default:()=>[t(d,{vertical:!0},{default:()=>[t(s,{onClick:this.demoRun.bind(this)},{default:()=>[n(`获取数据`)]}),t(`h3`,null,[n(`结果:\xA0`),this.demoLoading?`获取中...`:this.demoData?.title])]})]}),t(`h1`,null,[n(`使用 useHookPlusRequest 获取`)]),t(c,{title:`节流`},{default:()=>[t(d,{vertical:!0},{default:()=>[t(f,{value:this.throttleDemoInputValue,"onUpdate:value":e=>this.throttleDemoInputValue=e,onUpdateValue:()=>{this.throttleDemoRun()}},null),t(`h3`,null,[n(`不论触发多少次,一秒钟之内仅会触发一次`)]),t(`h3`,null,[n(`当前状态:\xA0`),this.throttleDemoLoading?`获取中...`:`获取成功!!!`])]})]}),t(c,{title:`防抖`},{default:()=>[t(d,{vertical:!0},{default:()=>[t(f,{value:this.debounceDemoInputValue,"onUpdate:value":e=>this.debounceDemoInputValue=e,onUpdateValue:()=>{this.debounceDemoRun()}},null),t(`h3`,null,[n(`一秒后才会执行,如果中途重新请求,则会重新计时`)]),t(`h3`,null,[n(`当前状态:\xA0`),this.debounceDemoLoading?`获取中...`:`获取成功!!!`])]})]}),t(c,{title:`获取气候`},{default:()=>[t(d,{vertical:!0},{default:()=>[t(f,{value:this.weatherDemoInputValue,"onUpdate:value":e=>this.weatherDemoInputValue=e,onUpdateValue:e=>{this.weatherDemoRun(e)}},null),t(`h3`,null,[n(`该示例演示了如何根据动态值获取数据`)]),t(`h3`,null,[n(`当前状态:\xA0`),this.weatherDemoLoading?`获取中...`:`获取成功!!!`])]})]})]})]})}});export{h as default};

BIN
js/axios-BOSgO-SZ.js.gz Normal file

Binary file not shown.

File diff suppressed because one or more lines are too long

BIN
js/axios-BycRQuV2.js.gz Normal file

Binary file not shown.

View File

@ -1 +0,0 @@
import{_n as e,gn as t,hn as n}from"./replaceable-B-PFC1y9.js";import{z as r}from"./toString-BWDzaUQG.js";import{b as i,ct as a,lt as o}from"./store-CqvdPZxw.js";import{t as s}from"./Alert-C8z0JGXo.js";import{t as c}from"./Card-BB74FRP1.js";import{t as l}from"./Flex-CsQ_DC64.js";import{t as u}from"./Input-DtTntG9_.js";import{t as d}from"./Switch-DQsfv1yf.js";var f=e({name:`BarcodeDemo`,setup(){return{baseOptions:{width:4},loading:r(!1),text:r(`RayTemplate`)}},render(){let{baseOptions:e}=this;return t(a,{cols:2,xGap:12,yGap:12},{default:()=>[t(o,{span:2},{default:()=>[t(c,{title:`详细配置项说明`},{default:()=>[n(`点击查看详细配置项:`),t(`a`,{href:`https://github.com/lindell/JsBarcode/wiki/Options`},[n(`js-barcode options`)]),n(`。`)]})]}),t(o,{span:1},{default:()=>[t(c,{title:`根据尺寸自动更新的条形码`},{default:()=>[t(i,{text:`RayTemplate`,options:{...e},responsive:!0},null)]})]}),t(o,{span:1},{default:()=>[t(c,{title:`自定义颜色条形码`},{default:()=>[t(i,{text:`RayTemplate`,options:{...e,lineColor:`red`}},null)]})]}),t(o,{span:1},{default:()=>[t(c,{title:`pharmacode 模式`},{default:()=>[t(l,{vertical:!0},{default:()=>[t(s,{type:`warning`,title:`注意`},{default:()=>[n(`该模式下,条形码只能渲染有效数值,否则将会渲染失败。可以查看官网说明:`),t(`a`,{href:`https://github.com/lindell/JsBarcode/wiki/pharmacode`},[n(`pharmacode`)]),n(`。`)]}),t(i,{text:`1234`,format:`pharmacode`,options:{width:4,height:40,displayValue:!1,background:`#eee`}},null)]})]})]}),t(o,{span:1},{default:()=>[t(c,{title:`codabar 模式`},{default:()=>[t(l,{vertical:!0},{default:()=>[t(s,{type:`warning`,title:`注意`},{default:()=>[n(`该模式下,需要注意 text 中的特殊字符,可以查看官网说明:`),t(`a`,{href:`https://github.com/lindell/JsBarcode/wiki/codabar`},[n(`codabar`)]),n(`。`)]}),t(i,{text:`1234`,format:`codabar`,options:{width:4,height:40,displayValue:!1,background:`#eee`}},null)]})]})]}),t(o,{span:1},{default:()=>[t(c,{title:`有状态的条形码`},{default:()=>[t(l,{vertical:!0,size:`large`,justify:`flex-start`,inline:!0},{default:()=>[t(d,{value:this.loading,"onUpdate:value":e=>this.loading=e,style:`width: fit-content`},{checked:()=>`loading...`,unchecked:()=>`success!`}),t(i,{text:`RayTemplate`,loading:this.loading},null)]})]})]}),t(o,{span:1},{default:()=>[t(c,{title:`watchText 主动监听 text 变化`},{default:()=>[t(l,{vertical:!0},{default:()=>[t(u,{value:this.text,"onUpdate:value":e=>this.text=e},null),t(i,{text:this.text,watchText:!0},null)]})]})]})]})}});export{f as default};

Binary file not shown.

View File

@ -0,0 +1 @@
import{_n as e,gn as t,hn as n}from"./replaceable-DW6s2lkT.js";import{z as r}from"./toString-BWDzaUQG.js";import{X as i,_ as a,kt as o,st as s,tt as c}from"./index-rJvBcjbC.js";import{t as l}from"./Card-D38P0NK6.js";import{t as u}from"./GridItem-7jxm1aOw.js";import{t as d}from"./Input-CcCbIWFY.js";var f=e({name:`BarcodeDemo`,setup(){return{baseOptions:{width:4},loading:r(!1),text:r(`RayTemplate`)}},render(){let{baseOptions:e}=this;return t(c,{cols:2,xGap:12,yGap:12},{default:()=>[t(u,{span:2},{default:()=>[t(l,{title:`详细配置项说明`},{default:()=>[n(`点击查看详细配置项:`),t(`a`,{href:`https://github.com/lindell/JsBarcode/wiki/Options`},[n(`js-barcode options`)]),n(`。`)]})]}),t(u,{span:1},{default:()=>[t(l,{title:`根据尺寸自动更新的条形码`},{default:()=>[t(a,{text:`RayTemplate`,options:{...e},responsive:!0},null)]})]}),t(u,{span:1},{default:()=>[t(l,{title:`自定义颜色条形码`},{default:()=>[t(a,{text:`RayTemplate`,options:{...e,lineColor:`red`}},null)]})]}),t(u,{span:1},{default:()=>[t(l,{title:`pharmacode 模式`},{default:()=>[t(s,{vertical:!0},{default:()=>[t(o,{type:`warning`,title:`注意`},{default:()=>[n(`该模式下,条形码只能渲染有效数值,否则将会渲染失败。可以查看官网说明:`),t(`a`,{href:`https://github.com/lindell/JsBarcode/wiki/pharmacode`},[n(`pharmacode`)]),n(`。`)]}),t(a,{text:`1234`,format:`pharmacode`,options:{width:4,height:40,displayValue:!1,background:`#eee`}},null)]})]})]}),t(u,{span:1},{default:()=>[t(l,{title:`codabar 模式`},{default:()=>[t(s,{vertical:!0},{default:()=>[t(o,{type:`warning`,title:`注意`},{default:()=>[n(`该模式下,需要注意 text 中的特殊字符,可以查看官网说明:`),t(`a`,{href:`https://github.com/lindell/JsBarcode/wiki/codabar`},[n(`codabar`)]),n(`。`)]}),t(a,{text:`1234`,format:`codabar`,options:{width:4,height:40,displayValue:!1,background:`#eee`}},null)]})]})]}),t(u,{span:1},{default:()=>[t(l,{title:`有状态的条形码`},{default:()=>[t(s,{vertical:!0,size:`large`,justify:`flex-start`,inline:!0},{default:()=>[t(i,{value:this.loading,"onUpdate:value":e=>this.loading=e,style:`width: fit-content`},{checked:()=>`loading...`,unchecked:()=>`success!`}),t(a,{text:`RayTemplate`,loading:this.loading},null)]})]})]}),t(u,{span:1},{default:()=>[t(l,{title:`watchText 主动监听 text 变化`},{default:()=>[t(s,{vertical:!0},{default:()=>[t(d,{value:this.text,"onUpdate:value":e=>this.text=e},null),t(a,{text:this.text,watchText:!0},null)]})]})]})]})}});export{f as default};

Binary file not shown.

1
js/basic-D8TS51IG.js Normal file
View File

@ -0,0 +1 @@
import{_n as e,gn as t,un as n}from"./replaceable-DW6s2lkT.js";import{K as r,x as i}from"./index-rJvBcjbC.js";import{listPeople as a}from"./people-BA0yvZ_x.js";import{t as o}from"./people-C08APQny.js";var s=e({name:`TableDemoBasic`,setup(){let{t:e}=r(`table`),{data:s}=a({page:1,pageSize:10}),c=n(()=>o(e).map(e=>`key`in e&&e.key===`age`?{...e,sorter:(e,t)=>e.age-t.age}:e));return()=>t(i,{bare:!0,data:s,columns:c.value,scrollX:944},null)}});export{s as default};

BIN
js/basic-D8TS51IG.js.gz Normal file

Binary file not shown.

View File

@ -1,28 +0,0 @@
import{At as e,J as t,R as n,z as r}from"./toString-BWDzaUQG.js";import{$t as i,An as a,Mn as o,Nn as s,On as c,Q as l,_n as u,_t as d,dn as f,et as p,fn as m,gn as h,ht as g,it as _,lt as v,mn as y,mt as b,nt as x,tt as S,un as C,xn as w,zn as T}from"./replaceable-B-PFC1y9.js";function E(e){let t=C(e),n=r(t.value);return T(t,e=>{n.value=e}),typeof e==`function`?n:{__v_isRef:!0,get value(){return n.value},set value(t){e.set(t)}}}function D(){let e=r(!1);return a(()=>{e.value=!0}),n(e)}var O=v(`n-form-item`);function k(e,{defaultSize:t=`medium`,mergedSize:n,mergedDisabled:r}={}){let i=w(O,null);s(O,null);let a=C(n?()=>n(i):()=>{let{size:n}=e;if(n)return n;if(i){let{mergedSize:e}=i;if(e.value!==void 0)return e.value}return t}),o=C(r?()=>r(i):()=>{let{disabled:t}=e;return t===void 0?i?i.disabled.value:!1:t}),l=C(()=>{let{status:t}=e;return t||i?.mergedValidationStatus.value});return c(()=>{i&&i.restoreValidation()}),{mergedSizeRef:a,mergedDisabledRef:o,mergedStatusRef:l,nTriggerFormBlur(){i&&i.handleContentBlur()},nTriggerFormChange(){i&&i.handleContentChange()},nTriggerFormFocus(){i&&i.handleContentFocus()},nTriggerFormInput(){i&&i.handleContentInput()}}}var A=u({name:`BaseIconSwitchTransition`,setup(e,{slots:t}){let n=D();return()=>(o(),m(i,{name:`icon-switch-transition`,appear:n.value},p(t),1032,[`appear`]))}}),{cubicBezierEaseInOut:j}=_;function M({originalTransform:e=``,left:t=0,top:n=0,transition:r=`all .3s ${j} !important`}={}){return[b(`&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to`,{transform:`${e} scale(0.75)`,left:t,top:n,opacity:0}),b(`&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from`,{transform:`scale(1) ${e}`,left:t,top:n,opacity:1}),b(`&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active`,{transformOrigin:`center`,position:`absolute`,left:t,top:n,transition:r})]}var N=b([b(`@keyframes rotator`,`
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}`),g(`base-loading`,`
position: relative;
line-height: 0;
width: 1em;
height: 1em;
`,[d(`transition-wrapper`,`
position: absolute;
width: 100%;
height: 100%;
`,[M()]),d(`placeholder`,`
position: absolute;
left: 50%;
top: 50%;
transform: translateX(-50%) translateY(-50%);
`,[M({left:`50%`,top:`50%`,originalTransform:`translateX(-50%) translateY(-50%)`})]),d(`container`,`
animation: rotator 3s linear infinite both;
`,[d(`icon`,`
height: 1em;
width: 1em;
`)])])]),P=[`viewBox`],F=[`values`,`dur`],I=[`stroke-width`,`cx`,`cy`,`r`,`stroke-dasharray`,`stroke-dashoffset`],L=[`values`,`dur`],R=[`values`,`dur`],z=`1.6s`,B={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0},scale:{type:Number,default:1},radius:{type:Number,default:100}},V=u({name:`BaseLoading`,props:{clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},...B},setup(e){x(`-base-loading`,N,t(e,`clsPrefix`))},render(){let{clsPrefix:t,radius:n,strokeWidth:r,stroke:i,scale:a}=this,s=n/a;return o(),y(`div`,{class:l(`${t}-base-loading`),role:`img`,"aria-label":`loading`},[h(A,null,{default:()=>this.show?(o(),y(`div`,{key:`icon`,class:l(`${t}-base-loading__transition-wrapper`)},[f(`div`,{class:l(`${t}-base-loading__container`)},[(o(),y(`svg`,{class:l(`${t}-base-loading__icon`),viewBox:`0 0 ${2*s} ${2*s}`,xmlns:`http://www.w3.org/2000/svg`,style:e({color:i})},[f(`g`,null,[f(`animateTransform`,{attributeName:`transform`,type:`rotate`,values:`0 ${s} ${s};270 ${s} ${s}`,begin:`0s`,dur:z,fill:`freeze`,repeatCount:`indefinite`},null,8,F),f(`circle`,{class:l(`${t}-base-loading__icon`),fill:`none`,stroke:`currentColor`,"stroke-width":r,"stroke-linecap":`round`,cx:s,cy:s,r:n-r/2,"stroke-dasharray":5.67*n,"stroke-dashoffset":18.48*n},[f(`animateTransform`,{attributeName:`transform`,type:`rotate`,values:`0 ${s} ${s};135 ${s} ${s};450 ${s} ${s}`,begin:`0s`,dur:z,fill:`freeze`,repeatCount:`indefinite`},null,8,L),f(`animate`,{attributeName:`stroke-dashoffset`,values:`${5.67*n};${1.42*n};${5.67*n}`,begin:`0s`,dur:z,fill:`freeze`,repeatCount:`indefinite`},null,8,R)],10,I)])],14,P))],2)],2)):(o(),y(`div`,{key:`placeholder`,class:l(`${t}-base-loading__placeholder`)},[S(()=>this.$slots.default?.())],2))},1024)],2)}}),H=typeof document<`u`&&typeof window<`u`,U=H&&`chrome`in window;H&&navigator.userAgent.includes(`Firefox`);var W=H&&navigator.userAgent.includes(`Safari`)&&!U;export{M as a,k as c,B as i,D as l,H as n,A as o,V as r,O as s,W as t,E as u};

Binary file not shown.

28
js/browser-m4QWgN_p.js Normal file
View File

@ -0,0 +1,28 @@
import{At as e,J as t,R as n,z as r}from"./toString-BWDzaUQG.js";import{$t as i,An as a,Bn as o,Mn as s,Nn as c,On as l,Q as u,_n as d,_t as f,dn as p,et as m,fn as h,gn as g,ht as _,it as v,lt as y,mn as b,mt as x,nt as S,tt as C,un as w,xn as T}from"./replaceable-DW6s2lkT.js";function E(e){let t=w(e),n=r(t.value);return o(t,e=>{n.value=e}),typeof e==`function`?n:{__v_isRef:!0,get value(){return n.value},set value(t){e.set(t)}}}function D(){let e=r(!1);return a(()=>{e.value=!0}),n(e)}var O=y(`n-form-item`);function k(e,{defaultSize:t=`medium`,mergedSize:n,mergedDisabled:r}={}){let i=T(O,null);c(O,null);let a=w(n?()=>n(i):()=>{let{size:n}=e;if(n)return n;if(i){let{mergedSize:e}=i;if(e.value!==void 0)return e.value}return t}),o=w(r?()=>r(i):()=>{let{disabled:t}=e;return t===void 0?i?i.disabled.value:!1:t}),s=w(()=>{let{status:t}=e;return t||i?.mergedValidationStatus.value});return l(()=>{i&&i.restoreValidation()}),{mergedSizeRef:a,mergedDisabledRef:o,mergedStatusRef:s,nTriggerFormBlur(){i&&i.handleContentBlur()},nTriggerFormChange(){i&&i.handleContentChange()},nTriggerFormFocus(){i&&i.handleContentFocus()},nTriggerFormInput(){i&&i.handleContentInput()}}}var A=d({name:`BaseIconSwitchTransition`,setup(e,{slots:t}){let n=D();return()=>(s(),h(i,{name:`icon-switch-transition`,appear:n.value},m(t),1032,[`appear`]))}}),{cubicBezierEaseInOut:j}=v;function M({originalTransform:e=``,left:t=0,top:n=0,transition:r=`all .3s ${j} !important`}={}){return[x(`&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to`,{transform:`${e} scale(0.75)`,left:t,top:n,opacity:0}),x(`&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from`,{transform:`scale(1) ${e}`,left:t,top:n,opacity:1}),x(`&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active`,{transformOrigin:`center`,position:`absolute`,left:t,top:n,transition:r})]}var N=x([x(`@keyframes rotator`,`
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}`),_(`base-loading`,`
position: relative;
line-height: 0;
width: 1em;
height: 1em;
`,[f(`transition-wrapper`,`
position: absolute;
width: 100%;
height: 100%;
`,[M()]),f(`placeholder`,`
position: absolute;
left: 50%;
top: 50%;
transform: translateX(-50%) translateY(-50%);
`,[M({left:`50%`,top:`50%`,originalTransform:`translateX(-50%) translateY(-50%)`})]),f(`container`,`
animation: rotator 3s linear infinite both;
`,[f(`icon`,`
height: 1em;
width: 1em;
`)])])]),P=[`viewBox`],F=[`values`,`dur`],I=[`stroke-width`,`cx`,`cy`,`r`,`stroke-dasharray`,`stroke-dashoffset`],L=[`values`,`dur`],R=[`values`,`dur`],z=`1.6s`,B={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0},scale:{type:Number,default:1},radius:{type:Number,default:100}},V=d({name:`BaseLoading`,props:{clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},...B},setup(e){S(`-base-loading`,N,t(e,`clsPrefix`))},render(){let{clsPrefix:t,radius:n,strokeWidth:r,stroke:i,scale:a}=this,o=n/a;return s(),b(`div`,{class:u(`${t}-base-loading`),role:`img`,"aria-label":`loading`},[g(A,null,{default:()=>this.show?(s(),b(`div`,{key:`icon`,class:u(`${t}-base-loading__transition-wrapper`)},[p(`div`,{class:u(`${t}-base-loading__container`)},[(s(),b(`svg`,{class:u(`${t}-base-loading__icon`),viewBox:`0 0 ${2*o} ${2*o}`,xmlns:`http://www.w3.org/2000/svg`,style:e({color:i})},[p(`g`,null,[p(`animateTransform`,{attributeName:`transform`,type:`rotate`,values:`0 ${o} ${o};270 ${o} ${o}`,begin:`0s`,dur:z,fill:`freeze`,repeatCount:`indefinite`},null,8,F),p(`circle`,{class:u(`${t}-base-loading__icon`),fill:`none`,stroke:`currentColor`,"stroke-width":r,"stroke-linecap":`round`,cx:o,cy:o,r:n-r/2,"stroke-dasharray":5.67*n,"stroke-dashoffset":18.48*n},[p(`animateTransform`,{attributeName:`transform`,type:`rotate`,values:`0 ${o} ${o};135 ${o} ${o};450 ${o} ${o}`,begin:`0s`,dur:z,fill:`freeze`,repeatCount:`indefinite`},null,8,L),p(`animate`,{attributeName:`stroke-dashoffset`,values:`${5.67*n};${1.42*n};${5.67*n}`,begin:`0s`,dur:z,fill:`freeze`,repeatCount:`indefinite`},null,8,R)],10,I)])],14,P))],2)],2)):(s(),b(`div`,{key:`placeholder`,class:u(`${t}-base-loading__placeholder`)},[C(()=>this.$slots.default?.())],2))},1024)],2)}}),H=typeof document<`u`&&typeof window<`u`,U=H&&`chrome`in window;H&&navigator.userAgent.includes(`Firefox`);var W=H&&navigator.userAgent.includes(`Safari`)&&!U;export{M as a,k as c,B as i,D as l,H as n,A as o,V as r,O as s,W as t,E as u};

BIN
js/browser-m4QWgN_p.js.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,4 +1,4 @@
import{Mn as e,Q as t,S as n,_n as r,_t as i,bt as a,gn as o,hn as s,ht as c,mn as l,ot as u,tt as d,un as f,x as p}from"./replaceable-B-PFC1y9.js";import{At as m,z as h}from"./toString-BWDzaUQG.js";import{i as g,n as _,r as v,t as y}from"./cache-O_hPMSdv.js";import"./utils-DRbs97yB.js";import{t as b}from"./Button-BgNmP7qu.js";import{t as x}from"./Card-BB74FRP1.js";import{t as S}from"./Flex-CsQ_DC64.js";import{n as C,t as w}from"./Input-DtTntG9_.js";import{t as T}from"./InputGroup-uRA4XApJ.js";import{c as E}from"./browser-B_-ntbg5.js";var D=c(`input-group-label`,`
import{Mn as e,Q as t,S as n,_n as r,_t as i,bt as a,gn as o,hn as s,ht as c,mn as l,ot as u,tt as d,un as f,x as p}from"./replaceable-DW6s2lkT.js";import{At as m,z as h}from"./toString-BWDzaUQG.js";import{i as g,n as _,r as v,t as y}from"./cache-O_hPMSdv.js";import{Ot as b,st as x}from"./index-rJvBcjbC.js";import{t as S}from"./Button-vr5e8LJV.js";import{t as C}from"./Card-D38P0NK6.js";import{n as w,t as T}from"./Input-CcCbIWFY.js";import{c as E}from"./browser-m4QWgN_p.js";var D=c(`input-group-label`,`
position: relative;
user-select: none;
-webkit-user-select: none;
@ -26,4 +26,4 @@ import{Mn as e,Q as t,S as n,_n as r,_t as i,bt as a,gn as o,hn as s,ht as c,mn
border-radius: inherit;
border: var(--n-group-label-border);
transition: border-color .3s var(--n-bezier);
`)]),O={...p.props,size:String,bordered:{type:Boolean,default:void 0}},k=r({name:`InputGroupLabel`,props:O,setup(e){let{mergedBorderedRef:t,mergedClsPrefixRef:r,inlineThemeDisabled:i,mergedComponentPropsRef:o}=u(e),s=p(`Input`,`-input-group-label`,D,C,e,r),{mergedSizeRef:c}=E(e,{mergedSize(t){return e.size===void 0?t?t.mergedSize.value:o?.value?.Input?.size||`medium`:e.size}}),l=f(()=>{let{value:e}=c,{common:{cubicBezierEaseInOut:t},self:{groupLabelColor:n,borderRadius:r,groupLabelTextColor:i,lineHeight:o,groupLabelBorder:l,[a(`fontSize`,e)]:u,[a(`height`,e)]:d}}=s.value;return{"--n-bezier":t,"--n-group-label-color":n,"--n-group-label-border":l,"--n-border-radius":r,"--n-group-label-text-color":i,"--n-font-size":u,"--n-line-height":o,"--n-height":d}}),d=i?n(`input-group-label`,f(()=>c.value[0]),l,e):void 0;return{mergedClsPrefix:r,mergedBordered:t,cssVars:i?void 0:l,themeClass:d?.themeClass,onRender:d?.onRender}},render(){let{mergedClsPrefix:n}=this;return this.onRender?.(),e(),l(`div`,{class:t([`${n}-input-group-label`,this.themeClass]),style:m(this.cssVars)},[d(()=>this.$slots.default?.()),this.mergedBordered?(e(),l(`div`,{key:0,class:t(`${n}-input-group-label__border`)},null,2)):d(()=>null)],6)}}),A=r({name:`CacheDemo`,setup(){return{nameValue:h(`Ray`),currentPrefix:h(`ray:`)}},render(){return o(x,{title:`cache 工具包示例`},{default:()=>o(S,{vertical:!0},{default:()=>[o(`h3`,null,[s(`点击 setStorage 按钮,设置缓存示例`)]),o(T,null,{default:()=>[o(k,null,{default:()=>[s(`设置缓存内容`)]}),o(w,{value:this.nameValue,"onUpdate:value":e=>this.nameValue=e,placeholder:`请输入姓名`},null)]}),o(T,null,{default:()=>[o(k,null,{default:()=>[s(`设置前缀`)]}),o(w,{value:this.currentPrefix,"onUpdate:value":e=>this.currentPrefix=e,placeholder:`请输入前缀`},null)]})]}),action:()=>o(S,null,{default:()=>[o(b,{onClick:()=>{g(`name`,this.nameValue,`sessionStorage`,{prefix:!0,prefixKey:this.currentPrefix}),window.$message.success(`设置成功`)}},{default:()=>[s(`setStorage`)]}),o(b,{onClick:()=>{let e=y(`name`,`sessionStorage`,{prefix:!0,prefixKey:this.currentPrefix});window.$message.success(`获取到的姓名为:${e}`)}},{default:()=>[s(`getStorage`)]}),o(b,{onClick:()=>{v(`name`,`sessionStorage`,{prefix:!0,prefixKey:this.currentPrefix}),window.$message.success(`删除成功`)}},{default:()=>[s(`removeStorage`)]}),o(b,{onClick:()=>{let e=_(`name`,`sessionStorage`,{prefix:!0,prefixKey:this.currentPrefix});window.$message.success(`是否存在:${e}`)}},{default:()=>[s(`hasStorage`)]})]})})}});export{A as default};
`)]),O={...p.props,size:String,bordered:{type:Boolean,default:void 0}},k=r({name:`InputGroupLabel`,props:O,setup(e){let{mergedBorderedRef:t,mergedClsPrefixRef:r,inlineThemeDisabled:i,mergedComponentPropsRef:o}=u(e),s=p(`Input`,`-input-group-label`,D,w,e,r),{mergedSizeRef:c}=E(e,{mergedSize(t){return e.size===void 0?t?t.mergedSize.value:o?.value?.Input?.size||`medium`:e.size}}),l=f(()=>{let{value:e}=c,{common:{cubicBezierEaseInOut:t},self:{groupLabelColor:n,borderRadius:r,groupLabelTextColor:i,lineHeight:o,groupLabelBorder:l,[a(`fontSize`,e)]:u,[a(`height`,e)]:d}}=s.value;return{"--n-bezier":t,"--n-group-label-color":n,"--n-group-label-border":l,"--n-border-radius":r,"--n-group-label-text-color":i,"--n-font-size":u,"--n-line-height":o,"--n-height":d}}),d=i?n(`input-group-label`,f(()=>c.value[0]),l,e):void 0;return{mergedClsPrefix:r,mergedBordered:t,cssVars:i?void 0:l,themeClass:d?.themeClass,onRender:d?.onRender}},render(){let{mergedClsPrefix:n}=this;return this.onRender?.(),e(),l(`div`,{class:t([`${n}-input-group-label`,this.themeClass]),style:m(this.cssVars)},[d(()=>this.$slots.default?.()),this.mergedBordered?(e(),l(`div`,{key:0,class:t(`${n}-input-group-label__border`)},null,2)):d(()=>null)],6)}}),A=r({name:`CacheDemo`,setup(){return{nameValue:h(`Ray`),currentPrefix:h(`ray:`)}},render(){return o(C,{title:`cache 工具包示例`},{default:()=>o(x,{vertical:!0},{default:()=>[o(`h3`,null,[s(`点击 setStorage 按钮,设置缓存示例`)]),o(b,null,{default:()=>[o(k,null,{default:()=>[s(`设置缓存内容`)]}),o(T,{value:this.nameValue,"onUpdate:value":e=>this.nameValue=e,placeholder:`请输入姓名`},null)]}),o(b,null,{default:()=>[o(k,null,{default:()=>[s(`设置前缀`)]}),o(T,{value:this.currentPrefix,"onUpdate:value":e=>this.currentPrefix=e,placeholder:`请输入前缀`},null)]})]}),action:()=>o(x,null,{default:()=>[o(S,{onClick:()=>{g(`name`,this.nameValue,`sessionStorage`,{prefix:!0,prefixKey:this.currentPrefix}),window.$message.success(`设置成功`)}},{default:()=>[s(`setStorage`)]}),o(S,{onClick:()=>{let e=y(`name`,`sessionStorage`,{prefix:!0,prefixKey:this.currentPrefix});window.$message.success(`获取到的姓名为:${e}`)}},{default:()=>[s(`getStorage`)]}),o(S,{onClick:()=>{v(`name`,`sessionStorage`,{prefix:!0,prefixKey:this.currentPrefix}),window.$message.success(`删除成功`)}},{default:()=>[s(`removeStorage`)]}),o(S,{onClick:()=>{let e=_(`name`,`sessionStorage`,{prefix:!0,prefixKey:this.currentPrefix});window.$message.success(`是否存在:${e}`)}},{default:()=>[s(`hasStorage`)]})]})})}});export{A as default};

Binary file not shown.

1
js/columns-CbNqUdkR.js Normal file
View File

@ -0,0 +1 @@
import{Sn as e,_n as t,gn as n,un as r}from"./replaceable-DW6s2lkT.js";import{z as i}from"./toString-BWDzaUQG.js";import{K as a,wt as o,x as s}from"./index-rJvBcjbC.js";import{listPeople as c}from"./people-BA0yvZ_x.js";import{t as l}from"./people-C08APQny.js";function u(t){return typeof t==`function`||Object.prototype.toString.call(t)===`[object Object]`&&!e(t)}var d=t({name:`TableDemoColumns`,setup(){let{t:e}=a(`table`),{data:t}=c(),d=i(!0),f=r(()=>[{type:`selection`,width:44},{title:e(`contactGroup`),key:`contact`,children:[{title:e(`name`),key:`name`,width:120},{title:e(`email`),key:`email`,width:250}]},...l(e).slice(2)].filter(e=>d.value||!(`key`in e&&e.key===`id`)));return()=>n(s,{data:t,columns:f.value,columnStateKey:`demo:columns`,scrollX:960},{title:()=>{let t;return n(o,{checked:d.value,"onUpdate:checked":e=>d.value=e},u(t=e(`includeIdField`))?t:{default:()=>[t]})}})}});export{d as default};

BIN
js/columns-CbNqUdkR.js.gz Normal file

Binary file not shown.

View File

@ -1 +0,0 @@
import{r as e}from"./utils-DNIGt12f.js";var t=(t,n)=>{if(typeof n!=`string`||!n.trim())throw TypeError(`Expected prefix to be a non-empty string`);let r={};return Object.keys(t).forEach(i=>{let a=t[i].default,o=i.replace(`./${n}/`,``).replace(/^\.\//,``),s=o.lastIndexOf(`.`);o=o.substring(0,s);let c=o.split(`/`),l=c.shift(),u=c.join(`.`);l&&(u?(e(r,l,r[l]||{}),e(r[l],u,a)):e(r,l,a||{}))}),r};export{t};

View File

@ -0,0 +1 @@
import{an as e}from"./index-rJvBcjbC.js";var t=(t,n)=>{if(typeof n!=`string`||!n.trim())throw TypeError(`Expected prefix to be a non-empty string`);let r={};return Object.keys(t).forEach(i=>{let a=t[i].default,o=i.replace(`./${n}/`,``).replace(/^\.\//,``),s=o.lastIndexOf(`.`);o=o.substring(0,s);let c=o.split(`/`),l=c.shift(),u=c.join(`.`);l&&(u?(e(r,l,r[l]||{}),e(r[l],u,a)):e(r,l,a||{}))}),r};export{t};

Binary file not shown.

View File

@ -1 +0,0 @@
import{_n as e,gn as t,hn as n}from"./replaceable-B-PFC1y9.js";import{z as r}from"./toString-BWDzaUQG.js";import{Ft as i}from"./store-CqvdPZxw.js";import{t as a}from"./useContextmenuCoordinate-CLcC1u1j.js";import{t as o}from"./Card-BB74FRP1.js";import{t as s}from"./Flex-CsQ_DC64.js";var c=e({name:`ContextMenuDemo`,setup(){let e=r(),t=r(!1),n=r([{label:`杰·盖茨比`,key:`jay gatsby`},{label:`黛西·布坎南`,key:`daisy buchanan`},{type:`divider`,key:`d1`},{label:`尼克·卡拉威`,key:`nick caraway`}]),{x:i,y:o,show:s,updateShow:c}=a(e);return{demoOneRef:e,demoOneShow:t,x:i,y:o,show:s,options:n,clickOutside:e=>{e.preventDefault(),c(!1)},updateShow:c}},render(){let{x:e,y:r,show:a}=this,{clickOutside:c,updateShow:l}=this;return t(s,{vertical:!0},{default:()=>[t(o,{title:`useContextmenuCoordinate + NDropdown 实现右键菜单`},{default:()=>[t(s,{vertical:!0},{default:()=>[t(`h3`,null,[n(`默认点击元素外部会关闭菜单。`)]),t(`div`,{ref:`demoOneRef`,style:`width: 100%; height: 200px; background-color: rgba(0, 128, 0, 0.5)`},[n(`右击`)])]})]}),t(i,{show:a,x:e,y:r,options:this.options,trigger:`manual`,placement:`bottom-start`,onSelect:(e,t)=>{window.$message.info(`选中了 ${t.label}`),l(!1)},onClickoutside:c.bind(this)},null)]})}});export{c as default};

Binary file not shown.

View File

@ -0,0 +1 @@
import{_n as e,gn as t,hn as n}from"./replaceable-DW6s2lkT.js";import{z as r}from"./toString-BWDzaUQG.js";import{t as i}from"./useContextmenuCoordinate-Doe5Jjzm.js";import{pt as a,st as o}from"./index-rJvBcjbC.js";import{t as s}from"./Card-D38P0NK6.js";var c=e({name:`ContextMenuDemo`,setup(){let e=r(),t=r(!1),n=r([{label:`杰·盖茨比`,key:`jay gatsby`},{label:`黛西·布坎南`,key:`daisy buchanan`},{type:`divider`,key:`d1`},{label:`尼克·卡拉威`,key:`nick caraway`}]),{x:a,y:o,show:s,updateShow:c}=i(e);return{demoOneRef:e,demoOneShow:t,x:a,y:o,show:s,options:n,clickOutside:e=>{e.preventDefault(),c(!1)},updateShow:c}},render(){let{x:e,y:r,show:i}=this,{clickOutside:c,updateShow:l}=this;return t(o,{vertical:!0},{default:()=>[t(s,{title:`useContextmenuCoordinate + NDropdown 实现右键菜单`},{default:()=>[t(o,{vertical:!0},{default:()=>[t(`h3`,null,[n(`默认点击元素外部会关闭菜单。`)]),t(`div`,{ref:`demoOneRef`,style:`width: 100%; height: 200px; background-color: rgba(0, 128, 0, 0.5)`},[n(`右击`)])]})]}),t(a,{show:i,x:e,y:r,options:this.options,trigger:`manual`,placement:`bottom-start`,onSelect:(e,t)=>{window.$message.info(`选中了 ${t.label}`),l(!1)},onClickoutside:c.bind(this)},null)]})}});export{c as default};

Binary file not shown.

1
js/custom-BOkeH4qo.js Normal file
View File

@ -0,0 +1 @@
import{Sn as e,_n as t,gn as n,un as r}from"./replaceable-DW6s2lkT.js";import{W as i,z as a}from"./toString-BWDzaUQG.js";import{K as o,st as s,x as c}from"./index-rJvBcjbC.js";import{listPeople as l}from"./people-BA0yvZ_x.js";import{t as u}from"./Button-vr5e8LJV.js";import{t as d}from"./Input-CcCbIWFY.js";import{t as f}from"./people-C08APQny.js";function p(t){return typeof t==`function`||Object.prototype.toString.call(t)===`[object Object]`&&!e(t)}var m=t({name:`TableDemoCustom`,setup(){let{t:e}=o(`table`),{data:t}=l(),m=i(),h=a(``),g=a([]),_=r(()=>[{type:`selection`,width:44},...f(e)]);return()=>n(c,{ref:m,columns:_.value,data:t,checkedRowKeys:g.value,"onUpdate:checkedRowKeys":e=>g.value=e,scrollX:944,contextMenuOptions:[{label:e(`contextAction`),key:`example`}],onContextMenuClick:()=>window.$message?.info(e(`contextAction`))},{filters:({submit:t})=>{let r;return n(`form`,{class:`r-table-search`,onSubmit:e=>{e.preventDefault(),t(h.value?{email:h.value.trim()}:{})}},[n(`div`,{class:`r-table-search__field`},[n(d,{inputProps:{"aria-label":e(`email`)},value:h.value,"onUpdate:value":e=>h.value=e,placeholder:e(`emailHint`),clearable:!0},null)]),n(u,{attrType:`submit`},p(r=e(`search`))?r:{default:()=>[r]})])},title:()=>{let t,r;return n(s,{size:6},{default:()=>[n(u,{size:`small`,secondary:!0,onClick:()=>m.value?.setPage(1)},p(t=e(`firstPage`))?t:{default:()=>[t]}),n(u,{size:`small`,secondary:!0,onClick:()=>m.value?.setPageSize(20)},p(r=e(`twentyRows`))?r:{default:()=>[r]})]})},tableFooter:()=>e(`customFooter`),tableAction:()=>{let t;return n(u,{size:`small`,text:!0,disabled:!g.value.length,onClick:()=>{g.value=[]}},p(t=e(`clearSelection`,{count:g.value.length}))?t:{default:()=>[t]})}})}});export{m as default};

BIN
js/custom-BOkeH4qo.js.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1 +1 @@
import{Sn as e,_n as t,gn as n,hn as r,un as i}from"./replaceable-B-PFC1y9.js";import{t as a}from"./AppPageHeader-DJ17-vNG.js";import{t as o}from"./AppShareLink-D2_e4AGi.js";import{$ as s,J as c,j as l,o as u}from"./store-CqvdPZxw.js";import{t as d}from"./Card-BB74FRP1.js";import{n as f,t as p}from"./DescriptionsItem-Bx17vHyH.js";function m(t){return typeof t==`function`||Object.prototype.toString.call(t)===`[object Object]`&&!e(t)}var h=t({name:`RDashboard`,setup(){let{t:e}=s(`dashboard`),t=t=>e(t),{getMenuOptions:h}=u(),{dependencies:g,devDependencies:_}={pkg:{dependencies:{"@faker-js/faker":`10.6.0`,"@logicflow/core":`2.2.5`,"@logicflow/extension":`2.3.1`,"@vueuse/core":`15.0.0`,axios:`1.21.0`,clipboard:`2.0.11`,"crypto-js":`4.2.0`,"currency.js":`2.0.4`,dayjs:`1.11.23`,echarts:`6.1.0`,"html-to-image":`1.11.13`,interactjs:`1.10.28`,jsbarcode:`3.12.3`,"lodash-es":`4.18.1`,"naive-ui":`2.45.3`,pinia:`4.1.0`,"pinia-plugin-persistedstate":`4.7.1`,"print-js":`1.6.0`,vue:`3.5.44`,"vue-demi":`0.14.10`,"vue-hooks-plus":`2.4.3`,"vue-i18n":`11.4.17`,"vue-router":`5.4.0`,"vue3-next-qrcode":`4.1.1`},devDependencies:{"@commitlint/cli":`21.2.4`,"@commitlint/config-conventional":`21.2.4`,"@eslint/js":`10.0.1`,"@ianvs/prettier-plugin-sort-imports":`4.7.1`,"@intlify/unplugin-vue-i18n":`11.2.8`,"@spiriit/vite-plugin-svg-spritemap":`7.2.0`,"@types/crypto-js":`4.2.2`,"@types/jsbarcode":`3.11.4`,"@types/lodash-es":`4.17.12`,"@types/node":`26.6.6`,"@vitejs/plugin-vue":`6.0.10`,"@vitejs/plugin-vue-jsx":`5.1.6`,"@vitest/ui":`5.0.5`,"@vue/test-utils":`2.5.1`,autoprefixer:`10.6.2`,eslint:`10.14.0`,"eslint-config-prettier":`10.1.8`,"eslint-plugin-vue":`10.12.0`,globals:`17.14.0`,"happy-dom":`21.0.4`,husky:`9.1.7`,"lint-staged":`17.6.0`,postcss:`8.5.32`,"postcss-px-to-viewport-8-with-include":`1.2.2`,prettier:`3.9.10`,"rollup-plugin-gzip":`4.2.1`,sass:`1.107.1`,typescript:`6.0.3`,"typescript-eslint":`8.72.1`,unocss:`66.12.0`,"unplugin-auto-import":`21.1.0`,"unplugin-vue-components":`32.1.0`,vite:`8.3.5`,"vite-bundle-analyzer":`1.3.9`,"vite-plugin-cdn2":`1.1.0`,"vite-plugin-ejs":`2.0.0`,"vite-plugin-inspect":`12.1.0`,"vite-plugin-mock-dev-server":`2.7.1`,"vite-svg-loader":`5.1.3`,vitest:`5.0.5`,"vue-eslint-parser":`10.4.1`,"vue-tsc":`3.3.14`},name:`ray-template`,version:`5.2.5`},layout:{copyright:`Copyright © 2022-present Ray`},appPrimaryColor:{primaryColor:`#3b63d9`,primaryFadeColor:`rgba(59, 99, 217, 0.85)`}}.pkg,v=[{name:`Vue`,version:g.vue,detail:`Composition API`},{name:`Vite`,version:_.vite,detail:`Rolldown`},{name:`TypeScript`,version:_.typescript,detail:`TSX`},{name:`Pinia`,version:g.pinia,detail:t(`stateManagement`)}],y=[{path:`/template-hooks`,icon:`action/setting`,title:`hooks`,description:`hooksDescription`},{path:`/layout-demo`,icon:`navigation/menu`,title:`layout`,description:`layoutDescription`},{path:`/svg-icons`,icon:`directional/resize_h`,title:`icons`,description:`iconsDescription`}],b=i(()=>y.filter(e=>h.value.some(t=>t.fullPath===e.path&&t.show!==!1)));return()=>{let e,i;return n(`section`,{class:`r-dashboard`},[n(a,{title:t(`title`),description:t(`description`),eyebrow:`RAY TEMPLATE / WORKSPACE`},{default:()=>[n(`span`,{class:`r-dashboard__brand`},[n(l,{name:`logo/ray`,size:44},null)])]}),n(`div`,{class:`r-dashboard-stack`},[v.map(e=>n(`article`,{key:e.name,class:`r-dashboard-stack__item`},[n(`span`,null,[e.name]),n(`strong`,null,[e.version]),n(`small`,null,[e.name===`Pinia`?t(`stateManagement`):e.detail])]))]),b.value.length?n(d,{title:t(`explore`)},{default:()=>[n(`div`,{class:`r-dashboard-shortcuts`},[b.value.map(e=>n(c,{key:e.path,to:e.path,class:`r-dashboard-shortcut`},{default:()=>[n(`span`,{class:`r-dashboard-shortcut__icon`},[n(l,{name:e.icon,size:20},null)]),n(`span`,null,[n(`strong`,null,[t(e.title)]),n(`small`,null,[t(e.description)])]),n(l,{class:`r-dashboard-shortcut__arrow`,name:`directional/expanded`,size:14},null)]}))])]}):null,n(`div`,{class:`r-dashboard-info`},[n(d,{title:t(`project`)},{default:()=>[n(`p`,{class:`r-dashboard-info__intro`},[t(`projectDescription`)]),n(`div`,{class:`r-dashboard-features`},[n(`span`,null,[r(`Vue 3 + TSX`)]),n(`span`,null,[r(`Naive UI`)]),n(`span`,null,[t(`routing`)]),n(`span`,null,[t(`themeAndLocale`)])]),n(`p`,{class:`r-dashboard-info__feedback`},[t(`feedbackBefore`),` `,n(`a`,{href:`https://github.com/XiaoDaiGua-Ray/ray-template/issues`,target:`_blank`,rel:`noreferrer`},[r(`GitHub Issues `),n(l,{name:`action/shared`,size:12},null)]),t(`feedbackAfter`)])]}),n(d,{title:t(`author`)},{default:()=>[n(f,{column:1,labelPlacement:`left`,labelStyle:{width:`92px`}},{default:()=>[n(p,{label:t(`frameworks`)},{default:()=>[r(`Vue3.x / React`)]}),n(p,{label:t(`experience`)},m(e=t(`experienceValue`))?e:{default:()=>[e]}),n(p,{label:t(`bio`)},m(i=t(`bioValue`))?i:{default:()=>[i]})]})]})]),n(d,{title:t(`linksTitle`)},{default:()=>[n(o,{variant:`cards`},null)]})])}}});export{h as default};
import{Sn as e,_n as t,gn as n,hn as r,un as i}from"./replaceable-DW6s2lkT.js";import{t as a}from"./AppPageHeader-D_gXdS5y.js";import{t as o}from"./AppShareLink-OJRQw31G.js";import{B as s,E as c,K as l,a as u}from"./index-rJvBcjbC.js";import{t as d}from"./Card-D38P0NK6.js";import{n as f,t as p}from"./DescriptionsItem-CWvDt-OY.js";function m(t){return typeof t==`function`||Object.prototype.toString.call(t)===`[object Object]`&&!e(t)}var h=t({name:`RDashboard`,setup(){let{t:e}=l(`dashboard`),t=t=>e(t),{getMenuOptions:h}=u(),{dependencies:g,devDependencies:_}={pkg:{dependencies:{"@faker-js/faker":`10.6.0`,"@logicflow/core":`2.2.5`,"@logicflow/extension":`2.3.1`,"@vueuse/core":`15.0.0`,axios:`1.21.0`,clipboard:`2.0.11`,"crypto-js":`4.2.0`,"currency.js":`2.0.4`,dayjs:`1.11.23`,echarts:`6.1.0`,"html-to-image":`1.11.13`,interactjs:`1.10.28`,jsbarcode:`3.12.3`,"lodash-es":`4.18.1`,"naive-ui":`2.45.3`,pinia:`4.1.0`,"pinia-plugin-persistedstate":`4.7.1`,"print-js":`1.6.0`,vue:`3.5.44`,"vue-demi":`0.14.10`,"vue-hooks-plus":`2.4.3`,"vue-i18n":`11.4.17`,"vue-router":`5.4.0`,"vue3-next-qrcode":`4.1.1`},devDependencies:{"@commitlint/cli":`21.2.4`,"@commitlint/config-conventional":`21.2.4`,"@eslint/js":`10.0.1`,"@ianvs/prettier-plugin-sort-imports":`4.7.1`,"@intlify/unplugin-vue-i18n":`11.2.8`,"@spiriit/vite-plugin-svg-spritemap":`7.2.0`,"@types/crypto-js":`4.2.2`,"@types/jsbarcode":`3.11.4`,"@types/lodash-es":`4.17.12`,"@types/node":`26.6.6`,"@vitejs/plugin-vue":`6.0.10`,"@vitejs/plugin-vue-jsx":`5.1.6`,"@vitest/ui":`5.0.5`,"@vue/test-utils":`2.5.1`,autoprefixer:`10.6.2`,eslint:`10.14.0`,"eslint-config-prettier":`10.1.8`,"eslint-plugin-vue":`10.12.0`,globals:`17.14.0`,"happy-dom":`21.0.4`,husky:`9.1.7`,"lint-staged":`17.6.0`,postcss:`8.5.32`,"postcss-px-to-viewport-8-with-include":`1.2.2`,prettier:`3.9.10`,"rollup-plugin-gzip":`4.2.1`,sass:`1.107.1`,typescript:`6.0.3`,"typescript-eslint":`8.72.1`,unocss:`66.12.0`,"unplugin-auto-import":`21.1.0`,"unplugin-vue-components":`32.1.0`,vite:`8.3.5`,"vite-bundle-analyzer":`1.3.9`,"vite-plugin-cdn2":`1.1.0`,"vite-plugin-ejs":`2.0.0`,"vite-plugin-inspect":`12.1.0`,"vite-plugin-mock-dev-server":`2.7.1`,"vite-svg-loader":`5.1.3`,vitest:`5.0.5`,"vue-eslint-parser":`10.4.1`,"vue-tsc":`3.3.14`},name:`ray-template`,version:`5.2.5`},layout:{copyright:`Copyright © 2022-present Ray`},appPrimaryColor:{primaryColor:`#3b63d9`,primaryFadeColor:`rgba(59, 99, 217, 0.85)`}}.pkg,v=[{name:`Vue`,version:g.vue,detail:`Composition API`},{name:`Vite`,version:_.vite,detail:`Rolldown`},{name:`TypeScript`,version:_.typescript,detail:`TSX`},{name:`Pinia`,version:g.pinia,detail:t(`stateManagement`)}],y=[{path:`/template-hooks`,icon:`action/setting`,title:`hooks`,description:`hooksDescription`},{path:`/layout-demo`,icon:`navigation/menu`,title:`layout`,description:`layoutDescription`},{path:`/svg-icons`,icon:`directional/resize_h`,title:`icons`,description:`iconsDescription`}],b=i(()=>y.filter(e=>h.value.some(t=>t.fullPath===e.path&&t.show!==!1)));return()=>{let e,i;return n(`section`,{class:`r-dashboard`},[n(a,{title:t(`title`),description:t(`description`),eyebrow:`RAY TEMPLATE / WORKSPACE`},{default:()=>[n(`span`,{class:`r-dashboard__brand`},[n(c,{name:`logo/ray`,size:44},null)])]}),n(`div`,{class:`r-dashboard-stack`},[v.map(e=>n(`article`,{key:e.name,class:`r-dashboard-stack__item`},[n(`span`,null,[e.name]),n(`strong`,null,[e.version]),n(`small`,null,[e.name===`Pinia`?t(`stateManagement`):e.detail])]))]),b.value.length?n(d,{title:t(`explore`)},{default:()=>[n(`div`,{class:`r-dashboard-shortcuts`},[b.value.map(e=>n(s,{key:e.path,to:e.path,class:`r-dashboard-shortcut`},{default:()=>[n(`span`,{class:`r-dashboard-shortcut__icon`},[n(c,{name:e.icon,size:20},null)]),n(`span`,null,[n(`strong`,null,[t(e.title)]),n(`small`,null,[t(e.description)])]),n(c,{class:`r-dashboard-shortcut__arrow`,name:`directional/expanded`,size:14},null)]}))])]}):null,n(`div`,{class:`r-dashboard-info`},[n(d,{title:t(`project`)},{default:()=>[n(`p`,{class:`r-dashboard-info__intro`},[t(`projectDescription`)]),n(`div`,{class:`r-dashboard-features`},[n(`span`,null,[r(`Vue 3 + TSX`)]),n(`span`,null,[r(`Naive UI`)]),n(`span`,null,[t(`routing`)]),n(`span`,null,[t(`themeAndLocale`)])]),n(`p`,{class:`r-dashboard-info__feedback`},[t(`feedbackBefore`),` `,n(`a`,{href:`https://github.com/XiaoDaiGua-Ray/ray-template/issues`,target:`_blank`,rel:`noreferrer`},[r(`GitHub Issues `),n(c,{name:`action/shared`,size:12},null)]),t(`feedbackAfter`)])]}),n(d,{title:t(`author`)},{default:()=>[n(f,{column:1,labelPlacement:`left`,labelStyle:{width:`92px`}},{default:()=>[n(p,{label:t(`frameworks`)},{default:()=>[r(`Vue3.x / React`)]}),n(p,{label:t(`experience`)},m(e=t(`experienceValue`))?e:{default:()=>[e]}),n(p,{label:t(`bio`)},m(i=t(`bioValue`))?i:{default:()=>[i]})]})]})]),n(d,{title:t(`linksTitle`)},{default:()=>[n(o,{variant:`cards`},null)]})])}}});export{h as default};

BIN
js/dashboard-XU-xziVL.js.gz Normal file

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More