This commit is contained in:
XiaoDaiGua-Ray 2026-11-03 08:55:49 +00:00
parent 9c981c960f
commit 7d23232817
140 changed files with 263 additions and 233 deletions

View File

@ -1 +0,0 @@
.login{width:100%;display:flex;overflow:hidden}.login .login-wrapper{flex:auto;position:relative}.login .login-wrapper.login-wrapper--divider{position:relative}.login .login-wrapper.login-wrapper--divider:before{content:"";width:var(--login-height);transform-origin:0;background-color:#0000;background-image:linear-gradient(135deg,#0000,#0000 75%,#2080f0,#0000 80% 100%),linear-gradient(45deg,#0000,#0000 75%,#2080f0,#0000 80% 100%);background-position:0 0,0 0;background-repeat:repeat-x,repeat-x;background-size:1em 1em;background-attachment:scroll,scroll;background-origin:padding-box,padding-box;background-clip:border-box,border-box;height:2px;position:absolute;left:50%;transform:rotate(90deg)}.login .login-wrapper .login-title__wrapper{position:absolute;top:24px;left:24px}.login .login-wrapper .login-action__wrapper{height:54.4px;position:absolute;top:24px;right:24px}.login .login-wrapper .login-copyright__wrapper{text-align:center;width:100%;font-size:14px;position:absolute;bottom:24px}.login .login-wrapper .login-wrapper__content{width:100%;height:100%}.login .login-wrapper .login-wrapper__content .n-grid{height:100%}.login .login-wrapper .login-wrapper__content .login__left-wrapper{transition:background-color .3s var(--r-bezier);flex-direction:column;justify-content:center;align-items:center;display:flex}.login .login-wrapper .login-wrapper__content .login__right-wrapper{justify-content:center;align-items:center;display:flex}.login .login-wrapper .login-wrapper__content .login__right-wrapper .login__right-wrapper__content{background-color:#0000;width:50%}.r-template--light .login__left-wrapper{background-color:#2080f038}.r-template--light .login__right-wrapper{background-color:#fff}.r-template--dark .login__left-wrapper{background-color:#2c354b}.r-template--dark .login__right-wrapper{background-color:#2a3146}@media screen and (width<=1200px){.login__left-wrapper{display:none!important}}@media screen and (width>=768px) and (width<=992px){.login__right-wrapper .login__right-wrapper__content{width:55%!important}}@media screen and (width<=768px){.login__right-wrapper .login__right-wrapper__content{width:100%!important}}.qrcode-signing{justify-content:center;align-items:center;width:100%;height:240px;display:flex}.r-template--light .sso-signing{color:#878787}

Binary file not shown.

1
css/login-yf7q8Gdt.css Normal file
View File

@ -0,0 +1 @@
.login{width:100%;display:flex;overflow:hidden}.login .login-heading{margin:0;line-height:1}.login .login-template-description{margin:0 0 12px;font-size:14px}.login .login-wrapper{flex:auto;position:relative}.login .login-wrapper.login-wrapper--divider{position:relative}.login .login-wrapper.login-wrapper--divider:before{content:"";width:var(--login-height);transform-origin:0;background-color:#0000;background-image:linear-gradient(135deg,#0000,#0000 75%,#2080f0,#0000 80% 100%),linear-gradient(45deg,#0000,#0000 75%,#2080f0,#0000 80% 100%);background-position:0 0,0 0;background-repeat:repeat-x,repeat-x;background-size:1em 1em;background-attachment:scroll,scroll;background-origin:padding-box,padding-box;background-clip:border-box,border-box;height:2px;position:absolute;left:50%;transform:rotate(90deg)}.login .login-wrapper .login-title__wrapper{position:absolute;top:24px;left:24px}.login .login-wrapper .login-action__wrapper{height:54.4px;position:absolute;top:24px;right:24px}.login .login-wrapper .login-copyright__wrapper{text-align:center;width:100%;font-size:14px;position:absolute;bottom:24px}.login .login-wrapper .login-wrapper__content{width:100%;height:100%}.login .login-wrapper .login-wrapper__content .login-grid{grid-template-columns:repeat(2,minmax(0,1fr));block-size:100%;display:grid}.login .login-wrapper .login-wrapper__content .login__left-wrapper{transition:background-color .3s var(--r-bezier);flex-direction:column;justify-content:center;align-items:center;display:flex}.login .login-wrapper .login-wrapper__content .login__right-wrapper{justify-content:center;align-items:center;display:flex}.login .login-wrapper .login-wrapper__content .login__right-wrapper .login__right-wrapper__content{background-color:#0000;width:50%}@media screen and (width<=1200px){.login .login-wrapper .login-wrapper__content .login-grid{grid-template-columns:minmax(0,1fr)}.login .login-wrapper .login-wrapper__content .login__left-wrapper{display:none}}.r-template--light .login__left-wrapper{background-color:#2080f038}.r-template--light .login__right-wrapper{background-color:#fff}.r-template--dark .login__left-wrapper{background-color:#2c354b}.r-template--dark .login__right-wrapper{background-color:#2a3146}@media screen and (width>=768px) and (width<=992px){.login__right-wrapper .login__right-wrapper__content{width:55%!important}}@media screen and (width<=768px){.login__right-wrapper .login__right-wrapper__content{width:100%!important}}.qrcode-signing{justify-content:center;align-items:center;width:100%;height:240px;display:flex}.r-template--light .sso-signing{color:#878787}

BIN
css/login-yf7q8Gdt.css.gz Normal file

Binary file not shown.

BIN
dashboard-preview.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 302 KiB

View File

@ -1,14 +1,39 @@
<!doctype html>
<html lang="en">
<html lang="zh-CN">
<head>
<link rel="canonical" href="https://xiaodaigua-ray.github.io/ray-template/">
<meta property="og:type" content="website">
<meta property="og:locale" content="zh_CN">
<meta property="og:site_name" content="Ray Template">
<meta property="og:title" content="Ray Template - Vue 3 中后台管理模板">
<meta property="og:description" content="Ray Template 是基于 Vue 3、TypeScript(TSX)、Vite 和 Naive UI 的开源中后台管理模板,内置权限路由、响应式布局、数据表格和中英文切换。">
<meta property="og:url" content="https://xiaodaigua-ray.github.io/ray-template/">
<meta property="og:image" content="https://xiaodaigua-ray.github.io/ray-template/dashboard-preview.jpg">
<meta property="og:image:alt" content="Ray Template 工作台和侧栏导航">
<meta name="twitter:card" content="summary_large_image">
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/ray-template/ray.svg" />
<meta
name="viewport"
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-rJvBcjbC.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Ray Template - Vue 3 中后台管理模板</title>
<meta name="description" content="Ray Template 是基于 Vue 3、TypeScript(TSX)、Vite 和 Naive UI 的开源中后台管理模板,内置权限路由、响应式布局、数据表格和中英文切换。" />
<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>
;(function () {
const html = document.documentElement
const store = window.localStorage.getItem('piniaSettingStore')
const { _appTheme = false } = store ? JSON.parse(store) : {}
const loadingBgColor = _appTheme ? '#1c1e23' : '#ffffff'
html.classList.add(_appTheme ? 'dark' : 'light')
html.style.setProperty('--global-loading-bg-color', loadingBgColor)
html.style.setProperty('background-color', loadingBgColor)
})()
</script>
<noscript>
<style>#pre-loading-animation{display:none}</style>
</noscript>
<script type="module" crossorigin src="/ray-template/js/index-DO-N-bSc.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-DW6s2lkT.js">
@ -23,21 +48,22 @@
<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>
;(function () {
const html = document.documentElement
const store = window.localStorage.getItem('piniaSettingStore')
const { _appTheme = false } = store ? JSON.parse(store) : {}
const loadingBgColor = _appTheme ? '#1c1e23' : '#ffffff'
html.classList.add(_appTheme ? 'dark' : 'light')
html.style.setProperty('--global-loading-bg-color', loadingBgColor)
html.style.setProperty('background-color', loadingBgColor)
})()
</script>
<body>
<div id="app"></div>
<noscript>
<main>
<h1>Ray Template - Vue 3 中后台管理模板</h1>
<p>Ray Template 是基于 Vue 3、TypeScript(TSX)、Vite 和 Naive UI 的开源中后台管理模板,内置权限路由、响应式布局、数据表格和中英文切换。</p>
<p>启用 JavaScript 后可体验在线演示。</p>
<p>
<a href="https://github.com/XiaoDaiGua-Ray/ray-template">GitHub 源码</a>
·
<a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/main/README.zh-CN.md"
>中文使用指南</a
>
</p>
</main>
</noscript>
<div id="pre-loading-animation">
<div class="pre-loading-animation__wrapper">
<div class="pre-loading-animation__wrapper-title">

Binary file not shown.

View File

@ -1 +1 @@
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};
import{_n as e,gn as t}from"./replaceable-DW6s2lkT.js";import{E as n,K as r,Tt as i}from"./index-DO-N-bSc.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.

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-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`,`
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-DO-N-bSc.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`,`

Binary file not shown.

Binary file not shown.

View File

@ -1 +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};
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-DO-N-bSc.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-Dseba94H.js.gz Normal file

Binary file not shown.

View File

@ -1 +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};
import{Lt as e,at as t,it as n,rt as r}from"./index-DO-N-bSc.js";import{c as i}from"./Card-D38P0NK6.js";import{n as a,r as o,t as s}from"./GridItem-B18BbS4R.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.

Binary file not shown.

Binary file not shown.

View File

@ -1 +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};
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-DO-N-bSc.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-B18BbS4R.js.gz Normal file

Binary file not shown.

View File

@ -1 +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};
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-DO-N-bSc.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.

Binary file not shown.

Binary file not shown.

View File

@ -1 +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};
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-DO-N-bSc.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.

Binary file not shown.

View File

@ -1 +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};
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-CZYLvkgM.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-DO-N-bSc.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-CWlvLNZR.js.gz Normal file

Binary file not shown.

File diff suppressed because one or more lines are too long

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

Binary file not shown.

View File

@ -1 +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};
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-DO-N-bSc.js";import{t as l}from"./Card-D38P0NK6.js";import{t as u}from"./GridItem-B18BbS4R.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.

Binary file not shown.

Binary file not shown.

View File

@ -1 +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};
import{_n as e,gn as t,un as n}from"./replaceable-DW6s2lkT.js";import{K as r,x as i}from"./index-DO-N-bSc.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-DTUbjb4M.js.gz Normal file

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-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`,`
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-DO-N-bSc.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;

Binary file not shown.

Binary file not shown.

View File

@ -1 +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};
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-DO-N-bSc.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-BdmJOOP-.js.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1 +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};
import{an as e}from"./index-DO-N-bSc.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 +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};
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-BmIt6HOc.js";import{pt as a,st as o}from"./index-DO-N-bSc.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.

Binary file not shown.

View File

@ -1 +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};
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-DO-N-bSc.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-B5wQ7ddX.js.gz Normal file

Binary file not shown.

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-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};
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-CSXPB9ks.js";import{B as s,E as c,K as l,a as u}from"./index-DO-N-bSc.js";import{t as d}from"./Card-D38P0NK6.js";import{n as f,t as p}from"./DescriptionsItem-MB_CWh8Z.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-gFn433CS.js.gz Normal file

Binary file not shown.

File diff suppressed because one or more lines are too long

BIN
js/directive-BBScappl.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,zn as i}from"./replaceable-DW6s2lkT.js";import{z as a}from"./toString-BWDzaUQG.js";import{A as o,X as s,gt as c,ht as l,st as u}from"./index-rJvBcjbC.js";import{t as d}from"./Button-vr5e8LJV.js";import{t as f}from"./Card-D38P0NK6.js";function p(t){return typeof t==`function`||Object.prototype.toString.call(t)===`[object Object]`&&!e(t)}var m=t({name:`DraggableCardDemo`,setup(){let e=a(!1),t=i(`domRef`),n=[{label:`center`,value:`center`},{label:`top-center`,value:`top-center`},{label:`bottom-center`,value:`bottom-center`},{label:`top-left`,value:`top-left`},{label:`top-right`,value:`top-right`},{label:`bottom-left`,value:`bottom-left`},{label:`bottom-right`,value:`bottom-right`}],r=a(`center`);return{card3:e,card3Dad:a(!0),domRef:t,positionRadioOptions:n,positionRadioValue:r}},render(){let e,{card3:t,domRef:i,positionRadioOptions:a}=this;return n(`div`,null,[n(`div`,{ref:`domRef`,style:{width:`100%`,height:`400px`,backgroundColor:`rgba(255, 10, 20, 1)`}},null),n(o,{animation:!0,title:`Body`},{default:()=>[r(`我被限制在 body 中。`)]}),t?n(o,{animation:!0,title:`Custom Container`,restrictionElement:i,closable:!0,onClose:()=>this.card3=!1,defaultPosition:this.positionRadioValue,dad:this.card3Dad},{default:()=>`我被限制在红色区域中。并且我支持 NCard 的所有配置与插槽。`,"header-extra":()=>`其实我就是 NCard 封装的`,footer:()=>`我支持 footer 插槽`,action:()=>`我支持 action 插槽`}):null,n(f,{title:`显示与隐藏卡片`},{default:()=>[n(u,{vertical:!0},{default:()=>[n(u,null,{default:()=>[n(s,{value:this.card3Dad,"onUpdate:value":e=>this.card3Dad=e},{checked:()=>`拖拽`,unchecked:()=>`禁用`})]}),n(u,null,{default:()=>[n(l,{value:this.positionRadioValue,"onUpdate:value":e=>this.positionRadioValue=e},p(e=a.map(e=>n(c,{key:e.value,value:e.value},{default:()=>[e.label]})))?e:{default:()=>[e]})]}),n(u,null,{default:()=>[n(d,{type:`primary`,onClick:()=>this.card3=!this.card3},{default:()=>[r(`点一下试试`)]})]})]})]})])}});export{m as default};
import{Sn as e,_n as t,gn as n,hn as r,zn as i}from"./replaceable-DW6s2lkT.js";import{z as a}from"./toString-BWDzaUQG.js";import{A as o,X as s,gt as c,ht as l,st as u}from"./index-DO-N-bSc.js";import{t as d}from"./Button-vr5e8LJV.js";import{t as f}from"./Card-D38P0NK6.js";function p(t){return typeof t==`function`||Object.prototype.toString.call(t)===`[object Object]`&&!e(t)}var m=t({name:`DraggableCardDemo`,setup(){let e=a(!1),t=i(`domRef`),n=[{label:`center`,value:`center`},{label:`top-center`,value:`top-center`},{label:`bottom-center`,value:`bottom-center`},{label:`top-left`,value:`top-left`},{label:`top-right`,value:`top-right`},{label:`bottom-left`,value:`bottom-left`},{label:`bottom-right`,value:`bottom-right`}],r=a(`center`);return{card3:e,card3Dad:a(!0),domRef:t,positionRadioOptions:n,positionRadioValue:r}},render(){let e,{card3:t,domRef:i,positionRadioOptions:a}=this;return n(`div`,null,[n(`div`,{ref:`domRef`,style:{width:`100%`,height:`400px`,backgroundColor:`rgba(255, 10, 20, 1)`}},null),n(o,{animation:!0,title:`Body`},{default:()=>[r(`我被限制在 body 中。`)]}),t?n(o,{animation:!0,title:`Custom Container`,restrictionElement:i,closable:!0,onClose:()=>this.card3=!1,defaultPosition:this.positionRadioValue,dad:this.card3Dad},{default:()=>`我被限制在红色区域中。并且我支持 NCard 的所有配置与插槽。`,"header-extra":()=>`其实我就是 NCard 封装的`,footer:()=>`我支持 footer 插槽`,action:()=>`我支持 action 插槽`}):null,n(f,{title:`显示与隐藏卡片`},{default:()=>[n(u,{vertical:!0},{default:()=>[n(u,null,{default:()=>[n(s,{value:this.card3Dad,"onUpdate:value":e=>this.card3Dad=e},{checked:()=>`拖拽`,unchecked:()=>`禁用`})]}),n(u,null,{default:()=>[n(l,{value:this.positionRadioValue,"onUpdate:value":e=>this.positionRadioValue=e},p(e=a.map(e=>n(c,{key:e.value,value:e.value},{default:()=>[e.label]})))?e:{default:()=>[e]})]}),n(u,null,{default:()=>[n(d,{type:`primary`,onClick:()=>this.card3=!this.card3},{default:()=>[r(`点一下试试`)]})]})]})]})])}});export{m as default};

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

BIN
js/echart-QhikxRZn.js.gz Normal file

Binary file not shown.

File diff suppressed because one or more lines are too long

BIN
js/en-US-BbvtuE7i.js.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1 +1 @@
import{An as e,_n as t,gn as n}from"./replaceable-DW6s2lkT.js";import{z as r}from"./toString-BWDzaUQG.js";import{X as i,b as a,g 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"./FormItemGridItem-xNNBU3_-.js";var d=()=>{let e;return[t=>{t&&(e=t)},{getFlowInstance:()=>{if(!e)throw Error(`[useFlow]: flow instance is not ready yet. if you are using useFlow, please make sure you have called register method in onRegister event.`);return e}}]},f=t({name:`RFlowDemo`,setup(){let[t,{getFlowInstance:n}]=d(),i=r(),a=r({readonly:!1}),o=()=>{window.$message.info(`获取实例成功,请在 console 中查看`)};return setTimeout(()=>{i.value={nodes:[{id:`21`,type:`rect`,x:300,y:100,text:`rect node`},{id:`50`,type:`circle`,x:500,y:100,text:`circle node`}],edges:[{id:`21`,type:`polyline`,sourceNodeId:`50`,targetNodeId:`21`}]}},1e3),e(()=>{o()}),{register:t,flowDataRef:i,settingRef:a}},render(){let{register:e,flowDataRef:t,settingRef:r}=this;return n(s,{vertical:!0},{default:()=>[n(l,null,{default:()=>[n(a,null,{default:()=>[n(c,{xGap:4,yGap:18,cols:4},{default:()=>[n(u,{label:`禁用流程图`},{default:()=>[n(i,{value:r.readonly,"onUpdate:value":e=>r.readonly=e},null)]})]})]})]}),n(l,null,{default:()=>[n(o,{height:500,onRegister:e,data:t,readonly:r.readonly},null)]})]})}});export{f as default};
import{An as e,_n as t,gn as n}from"./replaceable-DW6s2lkT.js";import{z as r}from"./toString-BWDzaUQG.js";import{X as i,b as a,g as o,st as s,tt as c}from"./index-DO-N-bSc.js";import{t as l}from"./Card-D38P0NK6.js";import{t as u}from"./FormItemGridItem-DifzjqiG.js";var d=()=>{let e;return[t=>{t&&(e=t)},{getFlowInstance:()=>{if(!e)throw Error(`[useFlow]: flow instance is not ready yet. if you are using useFlow, please make sure you have called register method in onRegister event.`);return e}}]},f=t({name:`RFlowDemo`,setup(){let[t,{getFlowInstance:n}]=d(),i=r(),a=r({readonly:!1}),o=()=>{window.$message.info(`获取实例成功,请在 console 中查看`)};return setTimeout(()=>{i.value={nodes:[{id:`21`,type:`rect`,x:300,y:100,text:`rect node`},{id:`50`,type:`circle`,x:500,y:100,text:`circle node`}],edges:[{id:`21`,type:`polyline`,sourceNodeId:`50`,targetNodeId:`21`}]}},1e3),e(()=>{o()}),{register:t,flowDataRef:i,settingRef:a}},render(){let{register:e,flowDataRef:t,settingRef:r}=this;return n(s,{vertical:!0},{default:()=>[n(l,null,{default:()=>[n(a,null,{default:()=>[n(c,{xGap:4,yGap:18,cols:4},{default:()=>[n(u,{label:`禁用流程图`},{default:()=>[n(i,{value:r.readonly,"onUpdate:value":e=>r.readonly=e},null)]})]})]})]}),n(l,null,{default:()=>[n(o,{height:500,onRegister:e,data:t,readonly:r.readonly},null)]})]})}});export{f as default};

BIN
js/flow-demo-CyE7RkI4.js.gz Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

BIN
js/form-CYP50NeJ.js.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1 +1 @@
import{_n as e,gn as t}from"./replaceable-DW6s2lkT.js";import{T as n,st as r}from"./index-rJvBcjbC.js";import{t as i}from"./Card-D38P0NK6.js";var a=e({name:`IframeDemo`,setup(){return{}},render(){return t(r,{vertical:!0,size:[20,20]},{default:()=>[t(i,{title:`naive ui(延迟加载)`},{default:()=>[t(n,{src:`https://www.naiveui.com/zh-CN/dark`,height:`300`,allow:`fullscreen`},null)]}),t(i,{title:`vue-hooks-plus(立即加载)`},{default:()=>[t(n,{src:`https://inhiblabcore.github.io/docs/hooks/`,height:`300`,lazy:!1},null)]})]})}});export{a as default};
import{_n as e,gn as t}from"./replaceable-DW6s2lkT.js";import{T as n,st as r}from"./index-DO-N-bSc.js";import{t as i}from"./Card-D38P0NK6.js";var a=e({name:`IframeDemo`,setup(){return{}},render(){return t(r,{vertical:!0,size:[20,20]},{default:()=>[t(i,{title:`naive ui(延迟加载)`},{default:()=>[t(n,{src:`https://www.naiveui.com/zh-CN/dark`,height:`300`,allow:`fullscreen`},null)]}),t(i,{title:`vue-hooks-plus(立即加载)`},{default:()=>[t(n,{src:`https://inhiblabcore.github.io/docs/hooks/`,height:`300`,lazy:!1},null)]})]})}});export{a as default};

BIN
js/iframe-DeABI2Ge.js.gz Normal file

Binary file not shown.

File diff suppressed because one or more lines are too long

BIN
js/index-DO-N-bSc.js.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,4 +1,4 @@
import{_n as e,gn as t}from"./replaceable-DW6s2lkT.js";/* empty css */import{K as n,i as r,p as i}from"./index-rJvBcjbC.js";import{t as a}from"./Card-D38P0NK6.js";import{t as o}from"./DemoPage-C9W0vUGi.js";var s=e({name:`LayoutDemo`,setup(){let{t:e}=n(`layout`),{t:s}=n(`showcase`),{getLayoutConfig:c}=r();return()=>t(o,{title:e(`title`),description:e(`description`),eyebrow:s(`layoutEyebrow`),meta:s(`livePreferences`)},{default:()=>[t(`div`,{class:`r-layout-playground`},[t(a,{title:s(`layoutControls`)},{default:()=>[t(i,{showDescription:!1},null)]}),t(`div`,{class:`r-layout-playground__aside`},[t(a,{title:e(`current`)},{default:()=>[t(`pre`,{class:`r-demo-code`},[t(`code`,null,[JSON.stringify(c.value,null,2)])])]}),t(a,{title:e(`extension`)},{default:()=>[t(`p`,{class:`r-layout-extension-description`},[e(`slots`)]),t(`pre`,{class:`r-demo-code`},[t(`code`,null,[`const { updateSettingState } = useSettingActions()
import{_n as e,gn as t}from"./replaceable-DW6s2lkT.js";/* empty css */import{K as n,i as r,p as i}from"./index-DO-N-bSc.js";import{t as a}from"./Card-D38P0NK6.js";import{t as o}from"./DemoPage-C9W0vUGi.js";var s=e({name:`LayoutDemo`,setup(){let{t:e}=n(`layout`),{t:s}=n(`showcase`),{getLayoutConfig:c}=r();return()=>t(o,{title:e(`title`),description:e(`description`),eyebrow:s(`layoutEyebrow`),meta:s(`livePreferences`)},{default:()=>[t(`div`,{class:`r-layout-playground`},[t(a,{title:s(`layoutControls`)},{default:()=>[t(i,{showDescription:!1},null)]}),t(`div`,{class:`r-layout-playground__aside`},[t(a,{title:e(`current`)},{default:()=>[t(`pre`,{class:`r-demo-code`},[t(`code`,null,[JSON.stringify(c.value,null,2)])])]}),t(a,{title:e(`extension`)},{default:()=>[t(`p`,{class:`r-layout-extension-description`},[e(`slots`)]),t(`pre`,{class:`r-demo-code`},[t(`code`,null,[`const { updateSettingState } = useSettingActions()
updateSettingState('layoutConfig', {
mode: 'mixed',

Binary file not shown.

Binary file not shown.

12
js/login-BMrk-WqX.js Normal file

File diff suppressed because one or more lines are too long

BIN
js/login-BMrk-WqX.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 +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{C as a,st as o,w as s}from"./index-rJvBcjbC.js";import{t as c}from"./Button-vr5e8LJV.js";import{t as l}from"./Card-D38P0NK6.js";var u=e({name:`ModalDemo`,setup(){let e=r({modal1:!1,modal2:!1,modal3:!1}),{create:a}=s(),o=()=>{a({title:`卡片模态框`,draggable:!0,preset:`card`,content:()=>t(`div`,{style:`height: 3000px;`},[n(`我可以被拖拽的全屏card模态框`)]),fullscreen:!0})},c=()=>{a({title:`模态框`,content:`内容`,preset:`dialog`,draggable:!0})};return{...i(e),createCardModal:o,createDialogModal:c}},render(){let{createCardModal:e,createDialogModal:r}=this;return t(o,{vertical:!0},{default:()=>[t(l,{title:`props`},{default:()=>[t(o,{vertical:!0},{default:()=>[t(`h3`,null,[n(`fullscreen: 全屏模态框。`)])]})]}),t(a,{show:this.modal1,"onUpdate:show":e=>this.modal1=e,title:`全屏模态框`,fullscreen:!0,preset:`card`},{default:()=>[t(`div`,{style:`height: 3000px;`},[n(`我可以被拖拽的全屏card模态框`)])]}),t(a,{show:this.modal2,"onUpdate:show":e=>this.modal2=e,preset:`card`,title:`可拖拽卡片模态框`,draggable:!0},{default:()=>[t(`p`,null,[n(`我可以被拖拽`)])]}),t(a,{show:this.modal3,"onUpdate:show":e=>this.modal3=e,preset:`dialog`,title:`可拖拽卡片模态框`,draggable:!0},{default:()=>[t(`p`,null,[n(`我可以被拖拽`)])]}),t(l,{title:`可拖拽模态框`},{default:()=>[t(c,{onClick:()=>this.modal2=!0},{default:()=>[n(`卡片模态框`)]}),t(c,{onClick:()=>this.modal3=!0},{default:()=>[n(`对话框模态框`)]})]}),t(l,{title:`全屏模态框`},{default:()=>[t(o,{vertical:!0},{default:()=>[t(`h4`,null,[n(`全屏模态框需要同时设置:fullscreen 为 true,并且 preset 为 card 时才会生效。`)]),t(c,{onClick:()=>this.modal1=!0},{default:()=>[n(`打开`)]})]})]}),t(l,{title:`手动设置宽度`},{default:()=>[t(`h4`,null,[n(`width(--r-modal-width): 当 preset 不为 dialog 或者 card 的时候,你可能用得上。`)]),t(`h4`,null,[n(`dialogWidth(--r-modal-dialog-width): 当 preset 为 dialog,你可能用得上。`)]),t(`h4`,null,[n(`cardWidth(--r-modal-card-width): 当 preset 为 card,你可能用得上。`)]),t(`h4`,null,[n("所有的宽度配置属性都会注入一个对应的 `css variable`,有时候会用上。")])]}),t(l,{title:`重写 useModal`},{default:()=>[t(c,{onClick:e.bind(this)},{default:()=>[n(`创建卡片模态框`)]}),t(c,{onClick:r.bind(this)},{default:()=>[n(`创建对话框模态框`)]})]})]})}});export{u as default};
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{C as a,st as o,w as s}from"./index-DO-N-bSc.js";import{t as c}from"./Button-vr5e8LJV.js";import{t as l}from"./Card-D38P0NK6.js";var u=e({name:`ModalDemo`,setup(){let e=r({modal1:!1,modal2:!1,modal3:!1}),{create:a}=s(),o=()=>{a({title:`卡片模态框`,draggable:!0,preset:`card`,content:()=>t(`div`,{style:`height: 3000px;`},[n(`我可以被拖拽的全屏card模态框`)]),fullscreen:!0})},c=()=>{a({title:`模态框`,content:`内容`,preset:`dialog`,draggable:!0})};return{...i(e),createCardModal:o,createDialogModal:c}},render(){let{createCardModal:e,createDialogModal:r}=this;return t(o,{vertical:!0},{default:()=>[t(l,{title:`props`},{default:()=>[t(o,{vertical:!0},{default:()=>[t(`h3`,null,[n(`fullscreen: 全屏模态框。`)])]})]}),t(a,{show:this.modal1,"onUpdate:show":e=>this.modal1=e,title:`全屏模态框`,fullscreen:!0,preset:`card`},{default:()=>[t(`div`,{style:`height: 3000px;`},[n(`我可以被拖拽的全屏card模态框`)])]}),t(a,{show:this.modal2,"onUpdate:show":e=>this.modal2=e,preset:`card`,title:`可拖拽卡片模态框`,draggable:!0},{default:()=>[t(`p`,null,[n(`我可以被拖拽`)])]}),t(a,{show:this.modal3,"onUpdate:show":e=>this.modal3=e,preset:`dialog`,title:`可拖拽卡片模态框`,draggable:!0},{default:()=>[t(`p`,null,[n(`我可以被拖拽`)])]}),t(l,{title:`可拖拽模态框`},{default:()=>[t(c,{onClick:()=>this.modal2=!0},{default:()=>[n(`卡片模态框`)]}),t(c,{onClick:()=>this.modal3=!0},{default:()=>[n(`对话框模态框`)]})]}),t(l,{title:`全屏模态框`},{default:()=>[t(o,{vertical:!0},{default:()=>[t(`h4`,null,[n(`全屏模态框需要同时设置:fullscreen 为 true,并且 preset 为 card 时才会生效。`)]),t(c,{onClick:()=>this.modal1=!0},{default:()=>[n(`打开`)]})]})]}),t(l,{title:`手动设置宽度`},{default:()=>[t(`h4`,null,[n(`width(--r-modal-width): 当 preset 不为 dialog 或者 card 的时候,你可能用得上。`)]),t(`h4`,null,[n(`dialogWidth(--r-modal-dialog-width): 当 preset 为 dialog,你可能用得上。`)]),t(`h4`,null,[n(`cardWidth(--r-modal-card-width): 当 preset 为 card,你可能用得上。`)]),t(`h4`,null,[n("所有的宽度配置属性都会注入一个对应的 `css variable`,有时候会用上。")])]}),t(l,{title:`重写 useModal`},{default:()=>[t(c,{onClick:e.bind(this)},{default:()=>[n(`创建卡片模态框`)]}),t(c,{onClick:r.bind(this)},{default:()=>[n(`创建对话框模态框`)]})]})]})}});export{u as default};

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1 +1 @@
import{Tn as e,_n as t,gn as n,hn as r}from"./replaceable-DW6s2lkT.js";import{L as i,Y as a}from"./toString-BWDzaUQG.js";import{$ as o,F as s,I as c,L as l,M as u,N as d,P as f,ct as p,et as m,st as h}from"./index-rJvBcjbC.js";import{t as g}from"./Card-D38P0NK6.js";var _=t({name:`CalculatePrecision`,setup(){let t=i({addOptions:[`1`,`0.2`,`0.1`,`1.1`],subtractOptions:[`1`,`0.2`,`0.1`,`1.1`],multiplyOptions:[`1`,`0.2`,`0.1`,`1.1`],divideOptions:[`1`,`0.2`,`0.1`,`1.1`],distributeValue:12,distributeOutputValue:[],distributeLength:3}),n={addOptions:u,subtractOptions:l,multiplyOptions:c,divideOptions:f},r=(e,t)=>{let r=n[t],i=r(...e);return`结果: `+s(i)},o=()=>{e().then(()=>{t.distributeOutputValue=d(t.distributeValue,t.distributeLength)})};return o(),{...a(t),copilotFunc:r,updateDistributeValue:o}},render(){return n(o,null,{default:()=>[n(`h2`,{style:`margin: 0 0 20px 0`},[r(`计算方法,默认都保留八位小数与四舍五入,可以根据 format 方法自行转换`)]),n(`h3`,{style:`margin: 0 0 20px 0`},[r(`示例方法都基于 currency.js 封装,利用其精度处理能力封装了常用的一些计算方法,解决精度问题。如果需要其他的方法请阅读官方文档 https://currency.js.org/#subtract`)]),n(h,{vertical:!0},{default:()=>[n(g,{title:`加法`},{default:()=>n(p,{value:this.addOptions,"onUpdate:value":e=>this.addOptions=e,onUpdateValue:e=>{this.copilotFunc(e,`addOptions`)}},null),footer:()=>this.copilotFunc(this.addOptions,`addOptions`)}),n(g,{title:`减法`},{default:()=>n(p,{value:this.subtractOptions,"onUpdate:value":e=>this.subtractOptions=e,onUpdateValue:e=>{this.copilotFunc(e,`subtractOptions`)}},null),footer:()=>this.copilotFunc(this.subtractOptions,`subtractOptions`)}),n(g,{title:`乘法`},{default:()=>n(p,{value:this.multiplyOptions,"onUpdate:value":e=>this.multiplyOptions=e,onUpdateValue:e=>{this.copilotFunc(e,`multiplyOptions`)}},null),footer:()=>this.copilotFunc(this.multiplyOptions,`multiplyOptions`)}),n(g,{title:`除法(非取模)`},{default:()=>n(p,{value:this.divideOptions,"onUpdate:value":e=>this.divideOptions=e,onUpdateValue:e=>{this.copilotFunc(e,`divideOptions`)}},null),footer:()=>this.copilotFunc(this.divideOptions,`divideOptions`)}),n(g,{title:`平分一个值`},{default:()=>n(h,null,{default:()=>[n(m,{value:this.distributeValue,"onUpdate:value":e=>this.distributeValue=e,onUpdateValue:()=>{this.updateDistributeValue()}},null),n(m,{value:this.distributeLength,"onUpdate:value":e=>this.distributeLength=e,onUpdateValue:()=>{this.updateDistributeValue()}},null)]}),footer:()=>`结果: `+this.distributeOutputValue.join(`, `)})]})]})}});export{_ as default};
import{Tn as e,_n as t,gn as n,hn as r}from"./replaceable-DW6s2lkT.js";import{L as i,Y as a}from"./toString-BWDzaUQG.js";import{$ as o,F as s,I as c,L as l,M as u,N as d,P as f,ct as p,et as m,st as h}from"./index-DO-N-bSc.js";import{t as g}from"./Card-D38P0NK6.js";var _=t({name:`CalculatePrecision`,setup(){let t=i({addOptions:[`1`,`0.2`,`0.1`,`1.1`],subtractOptions:[`1`,`0.2`,`0.1`,`1.1`],multiplyOptions:[`1`,`0.2`,`0.1`,`1.1`],divideOptions:[`1`,`0.2`,`0.1`,`1.1`],distributeValue:12,distributeOutputValue:[],distributeLength:3}),n={addOptions:u,subtractOptions:l,multiplyOptions:c,divideOptions:f},r=(e,t)=>{let r=n[t],i=r(...e);return`结果: `+s(i)},o=()=>{e().then(()=>{t.distributeOutputValue=d(t.distributeValue,t.distributeLength)})};return o(),{...a(t),copilotFunc:r,updateDistributeValue:o}},render(){return n(o,null,{default:()=>[n(`h2`,{style:`margin: 0 0 20px 0`},[r(`计算方法,默认都保留八位小数与四舍五入,可以根据 format 方法自行转换`)]),n(`h3`,{style:`margin: 0 0 20px 0`},[r(`示例方法都基于 currency.js 封装,利用其精度处理能力封装了常用的一些计算方法,解决精度问题。如果需要其他的方法请阅读官方文档 https://currency.js.org/#subtract`)]),n(h,{vertical:!0},{default:()=>[n(g,{title:`加法`},{default:()=>n(p,{value:this.addOptions,"onUpdate:value":e=>this.addOptions=e,onUpdateValue:e=>{this.copilotFunc(e,`addOptions`)}},null),footer:()=>this.copilotFunc(this.addOptions,`addOptions`)}),n(g,{title:`减法`},{default:()=>n(p,{value:this.subtractOptions,"onUpdate:value":e=>this.subtractOptions=e,onUpdateValue:e=>{this.copilotFunc(e,`subtractOptions`)}},null),footer:()=>this.copilotFunc(this.subtractOptions,`subtractOptions`)}),n(g,{title:`乘法`},{default:()=>n(p,{value:this.multiplyOptions,"onUpdate:value":e=>this.multiplyOptions=e,onUpdateValue:e=>{this.copilotFunc(e,`multiplyOptions`)}},null),footer:()=>this.copilotFunc(this.multiplyOptions,`multiplyOptions`)}),n(g,{title:`除法(非取模)`},{default:()=>n(p,{value:this.divideOptions,"onUpdate:value":e=>this.divideOptions=e,onUpdateValue:e=>{this.copilotFunc(e,`divideOptions`)}},null),footer:()=>this.copilotFunc(this.divideOptions,`divideOptions`)}),n(g,{title:`平分一个值`},{default:()=>n(h,null,{default:()=>[n(m,{value:this.distributeValue,"onUpdate:value":e=>this.distributeValue=e,onUpdateValue:()=>{this.updateDistributeValue()}},null),n(m,{value:this.distributeLength,"onUpdate:value":e=>this.distributeLength=e,onUpdateValue:()=>{this.updateDistributeValue()}},null)]}),footer:()=>`结果: `+this.distributeOutputValue.join(`, `)})]})]})}});export{_ as default};

BIN
js/precision-DPOiCP8y.js.gz Normal file

Binary file not shown.

View File

@ -1 +1 @@
import{Sn as e,_n as t,gn as n,zn as r}from"./replaceable-DW6s2lkT.js";import{W as i}from"./toString-BWDzaUQG.js";import{K as a,x as o}from"./index-rJvBcjbC.js";import{listPeople as s}from"./people-BA0yvZ_x.js";import{t as c}from"./Button-vr5e8LJV.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:`TableDemoPrinting`,setup(){let{t:e}=a(`table`),{data:t}=s(),d=i(),f=r(`summary`);return()=>n(o,{ref:d,title:e(`printDemoTitle`),columns:l(e),data:t,pageSize:20,scrollX:920,search:[{key:`name`,label:e(`name`),placeholder:e(`nameHint`)}]},{toolbar:()=>{let t;return n(c,{size:`small`,secondary:!0,onClick:()=>d.value?.print({target:f,title:e(`printSummary`),style:`.demo-print-summary { border: 1px solid #b7bec6; padding: 12pt; }`})},u(t=e(`printSummary`))?t:{default:()=>[t]})},tableFooter:()=>n(`section`,{ref:`summary`,class:`demo-print-summary`},[n(`h3`,null,[e(`printSummary`)]),n(`p`,null,[e(`printSummaryText`)])])})}});export{d as default};
import{Sn as e,_n as t,gn as n,zn as r}from"./replaceable-DW6s2lkT.js";import{W as i}from"./toString-BWDzaUQG.js";import{K as a,x as o}from"./index-DO-N-bSc.js";import{listPeople as s}from"./people-BA0yvZ_x.js";import{t as c}from"./Button-vr5e8LJV.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:`TableDemoPrinting`,setup(){let{t:e}=a(`table`),{data:t}=s(),d=i(),f=r(`summary`);return()=>n(o,{ref:d,title:e(`printDemoTitle`),columns:l(e),data:t,pageSize:20,scrollX:920,search:[{key:`name`,label:e(`name`),placeholder:e(`nameHint`)}]},{toolbar:()=>{let t;return n(c,{size:`small`,secondary:!0,onClick:()=>d.value?.print({target:f,title:e(`printSummary`),style:`.demo-print-summary { border: 1px solid #b7bec6; padding: 12pt; }`})},u(t=e(`printSummary`))?t:{default:()=>[t]})},tableFooter:()=>n(`section`,{ref:`summary`,class:`demo-print-summary`},[n(`h3`,null,[e(`printSummary`)]),n(`p`,null,[e(`printSummaryText`)])])})}});export{d as default};

BIN
js/printing-C2WgsdYy.js.gz Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1 +1 @@
import{_n as e,gn as t,hn as n}from"./replaceable-DW6s2lkT.js";import{z as r}from"./toString-BWDzaUQG.js";import{n as i,t as a}from"./qrcode-hLDuJ0BK.js";import{t as o}from"./Button-vr5e8LJV.js";import{t as s}from"./Card-D38P0NK6.js";import{st as c}from"./index-rJvBcjbC.js";var l=e({name:`RQRCodeDemo`,setup(){return{qrcodeText:r(`ray template yes`),qrcodeStatus:r(),rayQRCodeRef:r()}},render(){return t(c,null,{default:()=>[t(s,null,{default:()=>[t(`h2`,null,[n(`基于 awesome-qr 进行封装,支持 LOGO、gif、backgroundImage 等属性。`)]),t(`h2`,null,[n(`该组件会自动监听文本内容变化,然后重新渲染(watchText)`)]),t(`h2`,null,[n(`具体使用请参考 props 配置项`)])]}),t(s,{title:`基础二维码`},{default:()=>[t(c,null,{default:()=>[t(a,{text:`ray template yes`},null),t(a,{text:`ray template yes`,logoImage:i},null),t(a,{text:`ray template yes`,gifBackgroundURL:`https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif?imageView2/1/w/80/h/80`,dotScale:.5,colorDark:`#64d9d6`},null)]})]}),t(s,{title:`状态二维码`},{default:()=>[t(c,null,{default:()=>[t(a,{text:`ray template yes`,logoImage:i,status:`error`,onReload:()=>{window.$message.info(`reload event`)}},null),t(a,{text:`ray template yes`,logoImage:i,status:`loading`},null)]})]}),t(s,{title:`监听内容变化`},{default:()=>[t(c,{vertical:!0},{default:()=>[t(c,null,{default:()=>[t(o,{onClick:()=>{this.qrcodeStatus=`loading`,setTimeout(()=>{this.qrcodeText=`text updated: `+new Date().getTime(),this.qrcodeStatus=void 0},1e3)}},{default:()=>[n(`更新二维码内容`)]}),t(o,{onClick:()=>{this.rayQRCodeRef?.downloadQRCode()}},{default:()=>[n(`下载二维码`)]})]}),t(c,null,{default:()=>[t(a,{text:this.qrcodeText,status:this.qrcodeStatus,logoImage:i,ref:`rayQRCodeRef`},null),n(`当前二维码内容:`),this.qrcodeText]})]})]})]})}});export{l as default};
import{_n as e,gn as t,hn as n}from"./replaceable-DW6s2lkT.js";import{z as r}from"./toString-BWDzaUQG.js";import{n as i,t as a}from"./qrcode-zRRgTfFJ.js";import{t as o}from"./Button-vr5e8LJV.js";import{t as s}from"./Card-D38P0NK6.js";import{st as c}from"./index-DO-N-bSc.js";var l=e({name:`RQRCodeDemo`,setup(){return{qrcodeText:r(`ray template yes`),qrcodeStatus:r(),rayQRCodeRef:r()}},render(){return t(c,null,{default:()=>[t(s,null,{default:()=>[t(`h2`,null,[n(`基于 awesome-qr 进行封装,支持 LOGO、gif、backgroundImage 等属性。`)]),t(`h2`,null,[n(`该组件会自动监听文本内容变化,然后重新渲染(watchText)`)]),t(`h2`,null,[n(`具体使用请参考 props 配置项`)])]}),t(s,{title:`基础二维码`},{default:()=>[t(c,null,{default:()=>[t(a,{text:`ray template yes`},null),t(a,{text:`ray template yes`,logoImage:i},null),t(a,{text:`ray template yes`,gifBackgroundURL:`https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif?imageView2/1/w/80/h/80`,dotScale:.5,colorDark:`#64d9d6`},null)]})]}),t(s,{title:`状态二维码`},{default:()=>[t(c,null,{default:()=>[t(a,{text:`ray template yes`,logoImage:i,status:`error`,onReload:()=>{window.$message.info(`reload event`)}},null),t(a,{text:`ray template yes`,logoImage:i,status:`loading`},null)]})]}),t(s,{title:`监听内容变化`},{default:()=>[t(c,{vertical:!0},{default:()=>[t(c,null,{default:()=>[t(o,{onClick:()=>{this.qrcodeStatus=`loading`,setTimeout(()=>{this.qrcodeText=`text updated: `+new Date().getTime(),this.qrcodeStatus=void 0},1e3)}},{default:()=>[n(`更新二维码内容`)]}),t(o,{onClick:()=>{this.rayQRCodeRef?.downloadQRCode()}},{default:()=>[n(`下载二维码`)]})]}),t(c,null,{default:()=>[t(a,{text:this.qrcodeText,status:this.qrcodeStatus,logoImage:i,ref:`rayQRCodeRef`},null),n(`当前二维码内容:`),this.qrcodeText]})]})]})]})}});export{l as default};

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