This commit is contained in:
XiaoDaiGua-Ray 2026-11-06 09:22:32 +00:00
parent d413c32328
commit 06b952e314
378 changed files with 1938 additions and 1919 deletions

Binary file not shown.

View File

@ -159,9 +159,14 @@
<path fill="currentColor" d="M613.797647 321.355294a26.352941 26.352941 0 0 1 30.027294 43.188706l-2.710588 1.897412-222.448941 134.77647a26.352941 26.352941 0 0 1-30.027294-43.218823l2.710588-1.867294 222.448941-134.776471zM382.313412 558.682353a26.352941 26.352941 0 0 1 33.129412-10.782118l2.981647 1.505883 234.345411 138.511058a26.352941 26.352941 0 0 1-23.853176 46.863059l-2.95153-1.505882-234.375529-138.480941a26.352941 26.352941 0 0 1-9.276235-36.111059z"/>
<path fill="currentColor" d="M715.294118 641.264941a114.206118 114.206118 0 1 0 0 228.382118 114.206118 114.206118 0 0 0 0-228.382118z m0 52.705883a61.500235 61.500235 0 1 1 0 122.970352 61.500235 61.500235 0 0 1 0-122.970352z"/>
</g>
</symbol><use href="#icon-action/shared" width="824" height="824" y="21056"/><view id="icon-action/shared-view" viewBox="0 21056 824 824"/><symbol id="icon-action/upload" viewBox="100 100 824 824">
</symbol><use href="#icon-action/shared" width="824" height="824" y="21056"/><view id="icon-action/shared-view" viewBox="0 21056 824 824"/><symbol id="icon-action/table-bordered" viewBox="0 0 24 24">
<path d="M3 3h18v18H3zM3 9h18M3 15h18M9 3v18M15 3v18" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linejoin="round"/>
</symbol><use href="#icon-action/table-bordered" width="24" height="24" y="21880"/><view id="icon-action/table-bordered-view" viewBox="0 21880 24 24"/><symbol id="icon-action/table-striped" viewBox="0 0 24 24">
<path d="M3 4h18v4H3zM3 16h18v4H3z" fill="currentColor"/>
<path d="M3 12h18" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round"/>
</symbol><use href="#icon-action/table-striped" width="24" height="24" y="21904"/><view id="icon-action/table-striped-view" viewBox="0 21904 24 24"/><symbol id="icon-action/upload" viewBox="100 100 824 824">
<!-- IconPark by ByteDance (Apache-2.0) via Iconfont #43963752; adapted for contrast and optical sizing. -->
<g stroke="currentColor" stroke-width="14" stroke-linejoin="round">
<path fill="currentColor" d="M828.235294 485.647059c13.432471 0 24.515765 10.059294 26.142118 23.04l0.210823 3.312941v316.235294a26.352941 26.352941 0 0 1-23.04 26.142118l-3.312941 0.210823h-632.470588a26.352941 26.352941 0 0 1-26.142118-23.04l-0.210823-3.312941V512.150588a26.352941 26.352941 0 0 1 52.495059-3.312941l0.210823 3.312941v289.731765h579.764706V512c0-13.432471 10.059294-24.515765 23.04-26.142118l3.312941-0.210823z m-315.211294-316.235294h-1.174588a26.593882 26.593882 0 0 1 16.082823 5.360941l2.710589 2.349176 158.117647 158.117647a26.352941 26.352941 0 0 1-34.575059 39.634824l-2.710588-2.349177-113.272471-113.302588v393.336471a26.352941 26.352941 0 0 1-52.495059 3.312941l-0.210823-3.312941V259.523765l-112.971295 113.001411a26.352941 26.352941 0 0 1-34.575058 2.349177l-2.710589-2.349177a26.352941 26.352941 0 0 1-2.349176-34.575058l2.349176-2.710589 156.461177-156.461176a26.292706 26.292706 0 0 1 21.323294-9.336471z"/>
</g>
</symbol><use href="#icon-action/upload" width="824" height="824" y="21880"/><view id="icon-action/upload-view" viewBox="0 21880 824 824"/></svg>
</symbol><use href="#icon-action/upload" width="824" height="824" y="21928"/><view id="icon-action/upload-view" viewBox="0 21928 824 824"/></svg>

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
import{R as p}from"./chunks/theme.B8Or0Yt3.js";import{R as s,ar as i,as as u,at as c,au as l,av as f,aw as d,ax as m,ay as h,az as A,aA as g,d as v,u as w,v as y,s as C,aB as R,aC as P,aD as b,a2 as E}from"./chunks/framework.D8G7yXPy.js";function r(e){if(e.extends){const a=r(e.extends);return{...a,...e,async enhanceApp(t){a.enhanceApp&&await a.enhanceApp(t),e.enhanceApp&&await e.enhanceApp(t)}}}return e}const n=r(p),S=v({name:"VitePressApp",setup(){const{site:e,lang:a,dir:t}=w();return y(()=>{C(()=>{document.documentElement.lang=a.value,document.documentElement.dir=t.value})}),e.value.router.prefetchLinks&&R(),P(),b(),n.setup&&n.setup(),()=>E(n.Layout)}});async function T(){globalThis.__VITEPRESS__=!0;const e=x(),a=D();a.provide(u,e);const t=c(e.route);return a.provide(l,t),a.component("Content",f),a.component("ClientOnly",d),Object.defineProperties(a.config.globalProperties,{$frontmatter:{get(){return t.frontmatter.value}},$params:{get(){return t.page.value.params}}}),n.enhanceApp&&await n.enhanceApp({app:a,router:e,siteData:m}),{app:a,router:e,data:t}}function D(){return g(S)}function x(){let e=s;return h(a=>{let t=A(a),o=null;return t&&(e&&(t=t.replace(/\.js$/,".lean.js")),o=import(t)),s&&(e=!1),o},n.NotFound)}s&&T().then(({app:e,router:a,data:t})=>{a.go().then(()=>{i(a.route,t.site),e.mount("#app")})});export{T as createApp};
import{R as p}from"./chunks/theme.jIEdD8pU.js";import{R as s,ar as i,as as u,at as c,au as l,av as f,aw as d,ax as m,ay as h,az as A,aA as g,d as v,u as w,v as y,s as C,aB as R,aC as P,aD as b,a2 as E}from"./chunks/framework.D8G7yXPy.js";function r(e){if(e.extends){const a=r(e.extends);return{...a,...e,async enhanceApp(t){a.enhanceApp&&await a.enhanceApp(t),e.enhanceApp&&await e.enhanceApp(t)}}}return e}const n=r(p),S=v({name:"VitePressApp",setup(){const{site:e,lang:a,dir:t}=w();return y(()=>{C(()=>{document.documentElement.lang=a.value,document.documentElement.dir=t.value})}),e.value.router.prefetchLinks&&R(),P(),b(),n.setup&&n.setup(),()=>E(n.Layout)}});async function T(){globalThis.__VITEPRESS__=!0;const e=x(),a=D();a.provide(u,e);const t=c(e.route);return a.provide(l,t),a.component("Content",f),a.component("ClientOnly",d),Object.defineProperties(a.config.globalProperties,{$frontmatter:{get(){return t.frontmatter.value}},$params:{get(){return t.page.value.params}}}),n.enhanceApp&&await n.enhanceApp({app:a,router:e,siteData:m}),{app:a,router:e,data:t}}function D(){return g(S)}function x(){let e=s;return h(a=>{let t=A(a),o=null;return t&&(e&&(t=t.replace(/\.js$/,".lean.js")),o=import(t)),s&&(e=!1),o},n.NotFound)}s&&T().then(({app:e,router:a,data:t})=>{a.go().then(()=>{i(a.route,t.site),e.mount("#app")})});export{T as createApp};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
import{p as gt,a as D,e as G,c as me,u as Me,g as B,n as O,h as De,j as lt,k as ue,B as On,z as zn,D as ye,d as de,q as Qe,t as Jt,_ as Tn,L as mr,a8 as Ge,a6 as br,E as rn,A as pr,y as yr}from"./light.BQgF5P5u.js";import{b as Mn,e as St,r as ot,i as Qt,g as $n,h as ut,j as wr,l as xr,P as Bn,u as Nt,V as Cr,m as on,n as kr,B as Sr,a as Rr,p as Fr,o as _n,f as $t,c as an}from"./Dropdown.5gd1V6-R.js";import{y as Pr,m as Be,z as Ir,r as tt,u as It,a as $e,A as ln,h as jt,C as Or,D as zr,E as Tr,l as An,G as Mr,H as En,I as $r,j as Br,J as _r,X as sn}from"./DemoFrame.vue_vue_type_script_setup_true_lang.BibqOSJQ.js";import{a as Ft,u as en,C as Ar,S as Er,I as Vr}from"./Flex.COpi4oCF.js";import{V as dn,c as Lr,r as Bt,S as qr,W as Dr,a as Ht,g as Wr,o as cn}from"./Icon.CEJcCL76.js";import{d as Te,j as Se,o as v,c as P,F as Pe,b as ie,N as He,h as _,p as L,X as nt,L as Ye,a2 as Ee,K as Ue,v as st,al as Nr,am as jr,ad as we,P as Ot,r as Hr,ae as Ur,q as qe,$ as tn,T as nn,s as Kr,E as Vn,a5 as Gr,aj as Yr}from"./framework.D8G7yXPy.js";import{d as Ut,p as dt,g as it}from"./element.mIVMEYq_.js";import{u as Xr}from"./use-compitable.BN_sOfeF.js";function _t(e){return Object.keys(e)}var Zr=Te({name:"Empty",render(){return(()=>{const e=gt("15c1a247ae156450");return e[0]||(e[0]=Se("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Se("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),Se("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"})],-1))})()}}),Jr=D("empty",`
import{p as gt,a as D,e as G,c as me,u as Me,g as B,n as O,h as De,j as lt,k as ue,B as On,z as zn,D as ye,d as de,q as Qe,t as Jt,_ as Tn,L as mr,a8 as Ge,a6 as br,E as rn,A as pr,y as yr}from"./light.BQgF5P5u.js";import{b as Mn,e as St,r as ot,i as Qt,g as $n,h as ut,j as wr,l as xr,P as Bn,u as Nt,V as Cr,m as on,n as kr,B as Sr,a as Rr,p as Fr,o as _n,f as $t,c as an}from"./Dropdown.n_ZgEzUa.js";import{y as Pr,m as Be,z as Ir,r as tt,u as It,a as $e,A as ln,h as jt,C as Or,D as zr,E as Tr,l as An,G as Mr,H as En,I as $r,j as Br,J as _r,X as sn}from"./DemoFrame.vue_vue_type_script_setup_true_lang.BibqOSJQ.js";import{a as Ft,u as en,C as Ar,S as Er,I as Vr}from"./Flex.CP8YxQjX.js";import{V as dn,c as Lr,r as Bt,S as qr,W as Dr,a as Ht,g as Wr,o as cn}from"./Icon.GjDzw7hq.js";import{d as Te,j as Se,o as v,c as P,F as Pe,b as ie,N as He,h as _,p as L,X as nt,L as Ye,a2 as Ee,K as Ue,v as st,al as Nr,am as jr,ad as we,P as Ot,r as Hr,ae as Ur,q as qe,$ as tn,T as nn,s as Kr,E as Vn,a5 as Gr,aj as Yr}from"./framework.D8G7yXPy.js";import{d as Ut,p as dt,g as it}from"./element.mIVMEYq_.js";import{u as Xr}from"./use-compitable.BN_sOfeF.js";function _t(e){return Object.keys(e)}var Zr=Te({name:"Empty",render(){return(()=>{const e=gt("15c1a247ae156450");return e[0]||(e[0]=Se("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Se("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),Se("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"})],-1))})()}}),Jr=D("empty",`
display: flex;
flex-direction: column;
align-items: center;

View File

@ -1,4 +1,4 @@
import{S as Wt,e as Gt,a as Ye,V as _o,R as Yt}from"./Icon.CEJcCL76.js";import{a as Je,u as Po}from"./index.DNzt2uky.js";import{A as Io,z as Qt,x as zt,t as qe,a as R,d as L,u as ze,g as D,n as H,a9 as Xt,h as Xe,j as Ze,e as p,c as K,q as Ae,p as gt,D as Eo,s as kt,L as Ao,I as To,k as Pe}from"./light.BQgF5P5u.js";import{s as No,a as re,m as st,F as $o,w as Bo,x as Fo,q as et,r as Ie,l as Oo,B as Zt,_ as Mo}from"./DemoFrame.vue_vue_type_script_setup_true_lang.BibqOSJQ.js";import{d as J,o as w,c as j,N as ve,b as G,K as pe,h as S,p as te,X as ge,j as Z,F as de,L as ae,ad as Ue,a2 as $e,s as _t,q as dt,$ as Ho,E as k,G as De,a as Jt,a9 as Vo,k as se,aR as Lo,a8 as Ko,ae as Do,P as eo,v as jo,w as Se,n as Uo,t as tt,B as qo,e as Wo,_ as Go}from"./framework.D8G7yXPy.js";import{f as Yo,k as pt,T as Qo,V as Xo,F as Zo,a as Ve,S as Jo,I as Pt}from"./InputNumber.BZdsfOd3.js";import{a as to,F as en}from"./Flex.COpi4oCF.js";import{p as ot,d as ye}from"./element.mIVMEYq_.js";import"./manifest.BYArtw7Y.js";import{C as tn,f as nt,r as Be,D as on,k as rt,c as nn,a as it}from"./Dropdown.5gd1V6-R.js";import{u as rn}from"./use-compitable.BN_sOfeF.js";import"./isSymbol.rCNNreax.js";function ln(e,t){const o=n=>{var r;return n.fullPath===t||!!((r=n.children)!=null&&r.some(o))};return e.find(n=>n.show!==!1&&o(n))}function oo(e){var t;if(e.show!==!1){if(!((t=e.children)!=null&&t.length))return e;for(const o of e.children){const n=oo(o);if(n)return n}}}function an(e){const{baseColor:t,textColor2:o,bodyColor:n,cardColor:r,dividerColor:a,actionColor:s,scrollbarColor:u,scrollbarColorHover:l,invertedColor:f}=e;return{textColor:o,textColorInverted:"#FFF",color:n,colorEmbedded:s,headerColor:r,headerColorInverted:f,footerColor:s,footerColorInverted:f,headerBorderColor:a,headerBorderColorInverted:f,footerBorderColor:a,footerBorderColorInverted:f,siderBorderColor:a,siderBorderColorInverted:f,siderColor:r,siderColorInverted:f,siderToggleButtonBorder:`1px solid ${a}`,siderToggleButtonColor:t,siderToggleButtonIconColor:o,siderToggleButtonIconColorInverted:o,siderToggleBarColor:zt(n,u),siderToggleBarColorHover:zt(n,l),__invertScrollbar:"true"}}const no=Io({name:"Layout",common:Qt,peers:{Scrollbar:No},self:an}),ro=qe("n-layout-sider"),io={type:String,default:"static"};var cn=R("layout",`
import{S as Wt,e as Gt,a as Ye,V as _o,R as Yt}from"./Icon.GjDzw7hq.js";import{a as Je,u as Po}from"./index.DNzt2uky.js";import{A as Io,z as Qt,x as zt,t as qe,a as R,d as L,u as ze,g as D,n as H,a9 as Xt,h as Xe,j as Ze,e as p,c as K,q as Ae,p as gt,D as Eo,s as kt,L as Ao,I as To,k as Pe}from"./light.BQgF5P5u.js";import{s as No,a as re,m as st,F as $o,w as Bo,x as Fo,q as et,r as Ie,l as Oo,B as Zt,_ as Mo}from"./DemoFrame.vue_vue_type_script_setup_true_lang.BibqOSJQ.js";import{d as J,o as w,c as j,N as ve,b as G,K as pe,h as S,p as te,X as ge,j as Z,F as de,L as ae,ad as Ue,a2 as $e,s as _t,q as dt,$ as Ho,E as k,G as De,a as Jt,a9 as Vo,k as se,aR as Lo,a8 as Ko,ae as Do,P as eo,v as jo,w as Se,n as Uo,t as tt,B as qo,e as Wo,_ as Go}from"./framework.D8G7yXPy.js";import{f as Yo,k as pt,T as Qo,V as Xo,F as Zo,a as Ve,S as Jo,I as Pt}from"./InputNumber.sEhyCGw4.js";import{a as to,F as en}from"./Flex.CP8YxQjX.js";import{p as ot,d as ye}from"./element.mIVMEYq_.js";import"./manifest.BoLhpUE-.js";import{C as tn,f as nt,r as Be,D as on,k as rt,c as nn,a as it}from"./Dropdown.n_ZgEzUa.js";import{u as rn}from"./use-compitable.BN_sOfeF.js";import"./isSymbol.rCNNreax.js";function ln(e,t){const o=n=>{var r;return n.fullPath===t||!!((r=n.children)!=null&&r.some(o))};return e.find(n=>n.show!==!1&&o(n))}function oo(e){var t;if(e.show!==!1){if(!((t=e.children)!=null&&t.length))return e;for(const o of e.children){const n=oo(o);if(n)return n}}}function an(e){const{baseColor:t,textColor2:o,bodyColor:n,cardColor:r,dividerColor:a,actionColor:s,scrollbarColor:u,scrollbarColorHover:l,invertedColor:f}=e;return{textColor:o,textColorInverted:"#FFF",color:n,colorEmbedded:s,headerColor:r,headerColorInverted:f,footerColor:s,footerColorInverted:f,headerBorderColor:a,headerBorderColorInverted:f,footerBorderColor:a,footerBorderColorInverted:f,siderBorderColor:a,siderBorderColorInverted:f,siderColor:r,siderColorInverted:f,siderToggleButtonBorder:`1px solid ${a}`,siderToggleButtonColor:t,siderToggleButtonIconColor:o,siderToggleButtonIconColorInverted:o,siderToggleBarColor:zt(n,u),siderToggleBarColorHover:zt(n,l),__invertScrollbar:"true"}}const no=Io({name:"Layout",common:Qt,peers:{Scrollbar:No},self:an}),ro=qe("n-layout-sider"),io={type:String,default:"static"};var cn=R("layout",`
color: var(--n-text-color);
background-color: var(--n-color);
box-sizing: border-box;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -142,14 +142,14 @@ const l=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="49 49 906 906">
<path fill="currentColor" d="M512 154.352941c14.546824 0 26.352941 11.806118 26.352941 26.352941v210.82353a26.352941 26.352941 0 0 1-26.352941 26.352941h-210.823529A26.352941 26.352941 0 0 1 274.823529 391.529412 237.176471 237.176471 0 0 1 512 154.352941z m-26.352941 54.573177l-0.301177 0.060235a184.591059 184.591059 0 0 0-155.888941 155.888941l-0.060235 0.301177h156.250353V208.926118z" />
</g>
</svg>
`,y=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="115 115 824 824">
`,b=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="115 115 824 824">
<!-- IconPark by ByteDance (Apache-2.0) via Iconfont #43963748; adapted for contrast and optical sizing. -->
<g stroke="currentColor" stroke-width="14" stroke-linejoin="round">
<path fill="currentColor" d="M526.908235 184.470588a26.352941 26.352941 0 0 1 3.312941 52.495059l-3.312941 0.210824h-289.731764v579.764705H527.058824c13.432471 0 24.515765 10.059294 26.142117 23.04l0.210824 3.312942a26.352941 26.352941 0 0 1-23.04 26.142117l-3.312941 0.210824H210.823529a26.352941 26.352941 0 0 1-26.142117-23.04L184.470588 843.294118V210.823529c0-13.432471 10.059294-24.515765 23.04-26.142117L210.823529 184.470588h316.084706zM666.533647 350.298353a26.352941 26.352941 0 0 1 34.575059-2.349177l2.710588 2.349177 158.117647 158.117647c9.426824 9.456941 10.24 24.244706 2.349177 34.575059l-2.349177 2.710588-158.117647 158.117647a26.352941 26.352941 0 0 1-39.634823-34.575059l2.349176-2.710588 139.504941-139.474823-139.504941-139.474824a26.352941 26.352941 0 0 1-2.349176-34.575059l2.349176-2.710588z" />
<path fill="currentColor" d="M843.294118 500.555294a26.352941 26.352941 0 0 1 3.312941 52.495059l-3.312941 0.210823H386.499765a26.352941 26.352941 0 0 1-3.312941-52.495058l3.312941-0.210824H843.294118z" />
</g>
</svg>
`,b=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="49 49 906 906">
`,y=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="49 49 906 906">
<!-- IconPark by ByteDance (Apache-2.0) via Iconfont #43963390; adapted for contrast and optical sizing. -->
<g stroke="currentColor" stroke-width="14" stroke-linejoin="round">
<path fill="currentColor" d="M730.352941 616.146824c14.546824 0 26.352941 11.806118 26.352941 26.352941v210.823529a26.352941 26.352941 0 0 1-26.352941 26.352941H273.558588a26.352941 26.352941 0 0 1-26.352941-26.352941v-210.823529c0-14.546824 11.806118-26.352941 26.352941-26.352941H730.352941z m-26.383059 52.705882H299.911529v158.117647h404.058353v-158.117647z" />
@ -186,13 +186,20 @@ const l=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="49 49 906 906">
<path fill="currentColor" d="M715.294118 641.264941a114.206118 114.206118 0 1 0 0 228.382118 114.206118 114.206118 0 0 0 0-228.382118z m0 52.705883a61.500235 61.500235 0 1 1 0 122.970352 61.500235 61.500235 0 0 1 0-122.970352z" />
</g>
</svg>
`,V=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="100 100 824 824">
`,V=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path d="M3 3h18v18H3zM3 9h18M3 15h18M9 3v18M15 3v18" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linejoin="round" />
</svg>
`,j=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path d="M3 4h18v4H3zM3 16h18v4H3z" fill="currentColor" />
<path d="M3 12h18" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" />
</svg>
`,D=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="100 100 824 824">
<!-- IconPark by ByteDance (Apache-2.0) via Iconfont #43963752; adapted for contrast and optical sizing. -->
<g stroke="currentColor" stroke-width="14" stroke-linejoin="round">
<path fill="currentColor" d="M828.235294 485.647059c13.432471 0 24.515765 10.059294 26.142118 23.04l0.210823 3.312941v316.235294a26.352941 26.352941 0 0 1-23.04 26.142118l-3.312941 0.210823h-632.470588a26.352941 26.352941 0 0 1-26.142118-23.04l-0.210823-3.312941V512.150588a26.352941 26.352941 0 0 1 52.495059-3.312941l0.210823 3.312941v289.731765h579.764706V512c0-13.432471 10.059294-24.515765 23.04-26.142118l3.312941-0.210823z m-315.211294-316.235294h-1.174588a26.593882 26.593882 0 0 1 16.082823 5.360941l2.710589 2.349176 158.117647 158.117647a26.352941 26.352941 0 0 1-34.575059 39.634824l-2.710588-2.349177-113.272471-113.302588v393.336471a26.352941 26.352941 0 0 1-52.495059 3.312941l-0.210823-3.312941V259.523765l-112.971295 113.001411a26.352941 26.352941 0 0 1-34.575058 2.349177l-2.710589-2.349177a26.352941 26.352941 0 0 1-2.349176-34.575058l2.349176-2.710589 156.461177-156.461176a26.292706 26.292706 0 0 1 21.323294-9.336471z" />
</g>
</svg>
`,j=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="82 82 865 865">
`,P=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="82 82 865 865">
<!-- IconPark by ByteDance (Apache-2.0) via Iconfont #43963418; adapted for contrast and optical sizing. -->
<g stroke="currentColor" stroke-width="14" stroke-linejoin="round">
<path fill="currentColor" d="M848.323765 154.352941c14.546824 0 26.352941 11.806118 26.352941 26.352941v667.617883a26.352941 26.352941 0 0 1-26.352941 26.352941H180.705882a26.352941 26.352941 0 0 1-26.352941-26.352941V496.941176c0-14.546824 11.806118-26.352941 26.352941-26.352941h289.882353V180.705882c0-13.432471 10.059294-24.515765 23.04-26.142117l3.312941-0.210824h351.382589z m-26.383059 52.705883h-298.646588V496.941176a26.352941 26.352941 0 0 1-23.04 26.142118l-3.312942 0.210824H207.058824v298.646588h614.881882V207.058824z" />
@ -200,33 +207,33 @@ const l=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="49 49 906 906">
<path fill="currentColor" d="M372.886588 583.710118a26.352941 26.352941 0 1 1 37.285647 37.285647l-51.651764 51.621647 51.651764 51.651764c9.426824 9.426824 10.24 24.244706 2.349177 34.575059l-2.349177 2.710589a26.352941 26.352941 0 0 1-37.285647 0l-70.26447-70.294589a26.352941 26.352941 0 0 1 0-37.255529l70.26447-70.294588z" />
</g>
</svg>
`,D=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="178 193 668 668">
`,L=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="178 193 668 668">
<!-- IconPark by ByteDance (Apache-2.0) via Iconfont #43963753; adapted for contrast and optical sizing. -->
<g stroke="currentColor" stroke-width="14" stroke-linejoin="round">
<path fill="currentColor" d="M704.180706 403.004235a26.352941 26.352941 0 0 1 39.634823 34.575059l-2.349176 2.710588-210.823529 210.82353a26.352941 26.352941 0 0 1-34.575059 2.349176l-2.710589-2.349176-210.823529-210.82353a26.352941 26.352941 0 0 1 34.575059-39.634823l2.710588 2.349176L512 595.215059l192.180706-192.210824z" />
</g>
</svg>
`,P=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="85 100 824 824">
`,S=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="85 100 824 824">
<!-- IconPark by ByteDance (Apache-2.0) via Iconfont #43963808; adapted for contrast and optical sizing. -->
<g stroke="currentColor" stroke-width="14" stroke-linejoin="round">
<path fill="currentColor" d="M813.176471 485.647059a26.352941 26.352941 0 0 1 3.312941 52.495059l-3.312941 0.210823H180.705882a26.352941 26.352941 0 0 1-3.312941-52.495059l3.312941-0.210823h632.470589z" />
<path fill="currentColor" d="M372.886588 282.533647a26.352941 26.352941 0 0 1 39.634824 34.575059l-2.349177 2.710588L217.961412 512l192.210823 192.180706c9.426824 9.456941 10.209882 24.244706 2.349177 34.575059l-2.349177 2.710588a26.352941 26.352941 0 0 1-34.575059 2.349176l-2.710588-2.349176-210.823529-210.823529a26.352941 26.352941 0 0 1-2.349177-34.575059l2.349177-2.710589 210.823529-210.823529z" />
</g>
</svg>
`,L=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="112 112 822 822">
`,Z=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="112 112 822 822">
<!-- IconPark by ByteDance (Apache-2.0) via Iconfont #43970706; adapted for contrast and optical sizing. -->
<g stroke="currentColor" stroke-width="14" stroke-linejoin="round">
<path fill="currentColor" d="M839.529412 180.705882c13.432471 0 24.515765 10.059294 26.142117 23.04l0.210824 3.312942v632.470588a26.352941 26.352941 0 0 1-52.495059 3.312941l-0.210823-3.312941v-632.470588c0-14.546824 11.806118-26.352941 26.352941-26.352942zM364.122353 434.386824a26.352941 26.352941 0 0 1 39.604706 34.575058l-2.349177 2.710589-51.651764 51.621647 51.651764 51.651764c9.426824 9.426824 10.24 24.214588 2.349177 34.544942l-2.349177 2.710588a26.352941 26.352941 0 0 1-34.575058 2.349176l-2.710589-2.349176-70.26447-70.264471a26.352941 26.352941 0 0 1-2.349177-34.575059l2.349177-2.710588 70.294588-70.26447z m281.088 0a26.352941 26.352941 0 0 1 34.575059-2.349177l2.710588 2.349177 70.264471 70.26447c9.426824 9.456941 10.24 24.244706 2.349176 34.575059l-2.349176 2.710588-70.294589 70.264471a26.352941 26.352941 0 0 1-39.604706-34.575059l2.349177-2.710588 51.621647-51.621647-51.621647-51.651765a26.352941 26.352941 0 0 1-2.349177-34.544941l2.349177-2.710588zM523.294118 180.705882c13.432471 0 24.515765 10.059294 26.142117 23.04l0.210824 3.312942v632.470588a26.352941 26.352941 0 0 1-52.495059 3.312941l-0.210824-3.312941v-632.470588c0-14.546824 11.806118-26.352941 26.352942-26.352942z m-316.235294 0c13.432471 0 24.515765 10.059294 26.142117 23.04l0.210824 3.312942v632.470588a26.352941 26.352941 0 0 1-52.495059 3.312941L180.705882 839.529412v-632.470588C180.705882 192.512 192.512 180.705882 207.058824 180.705882z" />
</g>
</svg>
`,S=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="115 100 824 824">
`,q=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="115 100 824 824">
<!-- IconPark by ByteDance (Apache-2.0) via Iconfont #43963720; adapted for contrast and optical sizing. -->
<g stroke="currentColor" stroke-width="14" stroke-linejoin="round">
<path fill="currentColor" d="M843.294118 485.647059a26.352941 26.352941 0 0 1 3.312941 52.495059l-3.312941 0.210823H210.823529a26.352941 26.352941 0 0 1-3.312941-52.495059l3.312941-0.210823h632.470589z" />
<path fill="currentColor" d="M613.827765 282.533647a26.352941 26.352941 0 0 1 34.575059-2.349176l2.710588 2.349176 210.823529 210.823529c9.426824 9.456941 10.24 24.244706 2.349177 34.575059l-2.349177 2.710589-210.823529 210.823529a26.352941 26.352941 0 0 1-39.634824-34.575059l2.349177-2.710588L806.038588 512l-192.210823-192.180706a26.352941 26.352941 0 0 1-2.349177-34.575059l2.349177-2.710588z" />
</g>
</svg>
`,Z=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="112 112 822 822">
`,F=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="112 112 822 822">
<!-- IconPark by ByteDance (Apache-2.0) via Iconfont #43970709; adapted for contrast and optical sizing. -->
<g stroke="currentColor" stroke-width="14" stroke-linejoin="round">
<path fill="currentColor" d="M786.823529 180.705882h-527.058823A79.058824 79.058824 0 0 0 180.705882 259.764706v527.058823a79.058824 79.058824 0 0 0 79.058824 79.058824h527.058823a79.058824 79.058824 0 0 0 79.058824-79.058824v-527.058823A79.058824 79.058824 0 0 0 786.823529 180.705882z m-527.058823 52.705883h527.058823c14.546824 0 26.352941 11.806118 26.352942 26.352941v527.058823a26.352941 26.352941 0 0 1-26.352942 26.352942h-527.058823a26.352941 26.352941 0 0 1-26.352941-26.352942v-527.058823c0-14.546824 11.806118-26.352941 26.352941-26.352941z" />
@ -234,7 +241,7 @@ const l=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="49 49 906 906">
<path fill="currentColor" d="M716.559059 813.176471a26.352941 26.352941 0 0 1 3.312941 52.495058l-3.312941 0.210824h-105.411765a26.352941 26.352941 0 0 1-3.312941-52.495059l3.312941-0.210823h105.411765zM716.559059 180.705882a26.352941 26.352941 0 0 1 3.312941 52.495059l-3.312941 0.210824h-105.411765a26.352941 26.352941 0 0 1-3.312941-52.495059l3.312941-0.210824h105.411765z" />
</g>
</svg>
`,q=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="112 112 822 822">
`,O=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="112 112 822 822">
<!-- IconPark by ByteDance (Apache-2.0) via Iconfont #43970682; adapted for contrast and optical sizing. -->
<g stroke="currentColor" stroke-width="14" stroke-linejoin="round">
<path fill="currentColor" d="M786.823529 180.705882h-527.058823A79.058824 79.058824 0 0 0 180.705882 259.764706v527.058823a79.058824 79.058824 0 0 0 79.058824 79.058824h527.058823a79.058824 79.058824 0 0 0 79.058824-79.058824v-527.058823A79.058824 79.058824 0 0 0 786.823529 180.705882z m-527.058823 52.705883h527.058823c14.546824 0 26.352941 11.806118 26.352942 26.352941v527.058823a26.352941 26.352941 0 0 1-26.352942 26.352942h-527.058823a26.352941 26.352941 0 0 1-26.352941-26.352942v-527.058823c0-14.546824 11.806118-26.352941 26.352941-26.352941z" />
@ -242,28 +249,28 @@ const l=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="49 49 906 906">
<path fill="currentColor" d="M435.440941 813.176471a26.352941 26.352941 0 0 1 3.312941 52.495058l-3.312941 0.210824h-105.411765a26.352941 26.352941 0 0 1-3.312941-52.495059l3.312941-0.210823h105.411765zM435.440941 180.705882a26.352941 26.352941 0 0 1 3.312941 52.495059l-3.312941 0.210824h-105.411765a26.352941 26.352941 0 0 1-3.312941-52.495059l3.312941-0.210824h105.411765z" />
</g>
</svg>
`,F=`<svg t="1670221189479" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1642" width="64" height="64">
`,$=`<svg t="1670221189479" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1642" width="64" height="64">
<path fill="currentColor" d="M810.666667 648.533333V298.666667c0-46.933333-38.4-85.333333-85.333334-85.333334h-85.333333V85.333333l-170.666667 170.666667 170.666667 170.666667V298.666667h85.333333v349.866666c-51.2 17.066667-85.333333 64-85.333333 119.466667 0 72.533333 55.466667 128 128 128s128-55.466667 128-128c0-55.466667-34.133333-102.4-85.333333-119.466667zM768 810.666667c-25.6 0-42.666667-17.066667-42.666667-42.666667s17.066667-42.666667 42.666667-42.666667 42.666667 17.066667 42.666667 42.666667-17.066667 42.666667-42.666667 42.666667zM384 256c0-72.533333-55.466667-128-128-128S128 183.466667 128 256c0 55.466667 34.133333 102.4 85.333333 119.466667v268.8c-51.2 17.066667-85.333333 64-85.333333 119.466666 0 72.533333 55.466667 128 128 128s128-55.466667 128-128c0-55.466667-34.133333-102.4-85.333333-119.466666V375.466667C349.866667 358.4 384 311.466667 384 256zM256 810.666667c-25.6 0-42.666667-17.066667-42.666667-42.666667s17.066667-42.666667 42.666667-42.666667 42.666667 17.066667 42.666667 42.666667-17.066667 42.666667-42.666667 42.666667zM256 298.666667c-25.6 0-42.666667-17.066667-42.666667-42.666667s17.066667-42.666667 42.666667-42.666667 42.666667 17.066667 42.666667 42.666667-17.066667 42.666667-42.666667 42.666667z" p-id="1643"></path>
</svg>`,O=`<svg t="1669170696481" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1372" width="200" height="200">
</svg>`,E=`<svg t="1669170696481" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1372" width="200" height="200">
<path d="M512 0C229.283787 0 0.142041 234.942803 0.142041 524.867683c0 231.829001 146.647305 428.553077 350.068189 497.952484 25.592898 4.819996 34.976961-11.38884 34.976961-25.294314 0-12.45521-0.469203-45.470049-0.725133-89.276559-142.381822 31.735193-172.453477-70.380469-172.453477-70.380469-23.246882-60.569859-56.816233-76.693384-56.816234-76.693385-46.493765-32.58829 3.540351-31.948468 3.540351-31.948467 51.356415 3.71097 78.356923 54.086324 78.356923 54.086324 45.683323 80.19108 119.817417 57.072162 148.993321 43.593236 4.649376-33.91059 17.915029-57.029508 32.50298-70.167195-113.675122-13.222997-233.151301-58.223843-233.1513-259.341366 0-57.285437 19.919806-104.163095 52.678715-140.846248-5.246544-13.265652-22.820334-66.626844 4.990615-138.884127 0 0 42.996069-14.076094 140.760939 53.787741 40.863327-11.644769 84.627183-17.445825 128.177764-17.6591 43.465272 0.213274 87.271782 6.014331 128.135109 17.6591 97.679561-67.906489 140.59032-53.787741 140.59032-53.787741 27.938914 72.257282 10.407779 125.618474 5.118579 138.884127 32.844219 36.683154 52.593405 83.560812 52.593405 140.846248 0 201.586726-119.646798 245.990404-233.663158 258.957473 18.341577 16.208835 34.721032 48.199958 34.721032 97.210357 0 70.167195-0.639822 126.7275-0.639823 143.960051 0 14.033439 9.213443 30.370239 35.190235 25.209005 203.250265-69.527373 349.769606-266.123484 349.769605-497.867175C1023.857959 234.942803 794.673558 0 512 0" fill="currentColor" p-id="1373"></path>
</svg>`,$=`<svg t="1680416935795" class="icon" viewBox="0 0 1024 1024" version="1.1"
</svg>`,G=`<svg t="1680416935795" class="icon" viewBox="0 0 1024 1024" version="1.1"
xmlns="http://www.w3.org/2000/svg" p-id="7487" width="64" height="64">
<path
d="M746.666667 597.333333a235.093333 235.093333 0 0 1-192 167.68 262.4 262.4 0 0 1-298.666667-232.533333A256 256 0 0 1 512 256a261.12 261.12 0 0 1 96.853333 18.773333 21.333333 21.333333 0 0 0 27.306667-8.96l61.44-113.066666a22.186667 22.186667 0 0 0-9.813333-29.866667A426.666667 426.666667 0 0 0 85.333333 524.373333 431.786667 431.786667 0 0 0 493.653333 938.666667 426.666667 426.666667 0 0 0 938.666667 534.186667v-85.333334a21.76 21.76 0 0 0-21.333334-21.333333h-384a21.333333 21.333333 0 0 0-21.333333 21.333333v128a21.333333 21.333333 0 0 0 21.333333 21.333334h213.333334"
p-id="7488" fill="currentColor"></path>
</svg>`,E=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
</svg>`,J=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
<rect width="64" height="64" rx="16" fill="#182436"/>
<path d="M31 21c1-6 6-10 13-10-1 6-6 10-13 10Z" fill="#D5F367"/>
<path d="M10 26h44v3a22 22 0 0 1-44 0Z" fill="#D5F367"/>
<ellipse cx="25" cy="35" rx="2.5" ry="4" fill="#182436"/>
<ellipse cx="39" cy="35" rx="2.5" ry="4" fill="#182436"/>
</svg>
`,G=`<svg t="1680416858125" class="icon" viewBox="0 0 1024 1024" version="1.1"
`,K=`<svg t="1680416858125" class="icon" viewBox="0 0 1024 1024" version="1.1"
xmlns="http://www.w3.org/2000/svg" p-id="5646" width="64" height="64">
<path
d="M919.759462 318.994613c0-9.605475-0.184234-19.102577-0.608696-28.534655 41.060787-30.595551 76.68666-68.894629 104.863684-112.720738a403.247526 403.247526 0 0 1-120.68436 33.017692c43.401647-26.708567 76.68666-69.423851 92.415219-120.68436-40.638132 24.645865-85.589515 42.265535-133.383889 51.446549-38.295465-43.575045-92.944441-71.329413-153.358869-72.360764-116.027926-1.918205-210.084998 96.132418-210.084999 218.973404 0 17.460724 1.826088 34.394031 5.451171 50.745736-174.722834-11.243716-329.55016-102.190479-433.116978-239.293373-18.071226 32.847907-28.438925 71.237296-28.438925 112.377556 0 77.811934 37.090717 146.970271 93.44657 187.779994-34.500598-1.560574-66.819283-12.009553-95.166091-29.141545v2.85744c0 108.752474 72.440238 199.870827 168.560013 221.13003-17.621477 5.012259-36.207475 7.62044-55.322696 7.526516a191.542349 191.542349 0 0 1-39.500214-4.325895c26.708567 89.120675 104.332655 154.231274 196.231295 156.400543-71.923659 59.635948-162.525433 95.258208-260.892145 95.00895-16.960401 0-33.720311-1.137918-50.15149-3.200621 93.011271 63.80109 203.418242 100.960443 322.104923 100.960443 386.350343 0.092117 597.636477-336.191629 597.636477-627.962902z"
fill="currentColor" p-id="5647"></path>
</svg>`,J=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="49 49 906 906">
</svg>`,N=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="49 49 906 906">
<!-- IconPark by ByteDance (Apache-2.0) via Iconfont #43967447; adapted for contrast and optical sizing. -->
<g stroke="currentColor" stroke-width="14" stroke-linejoin="round">
<path fill="currentColor" d="M361.411765 124.235294c13.432471 0 24.515765 10.059294 26.142117 23.04l0.210824 3.312941v279.190589l288.527059-288.466824 8.252235-8.794353a26.352941 26.352941 0 0 1 35.087059-2.981647l2.740706 2.409412 149.323294 149.353412c9.456941 9.426824 10.24 24.214588 2.379294 34.544941l-2.379294 2.710588-297.592471 297.592471h279.220706c13.432471 0 24.545882 10.059294 26.172235 23.070117l0.180706 3.312941v210.82353a26.352941 26.352941 0 0 1-23.04 26.142117l-3.312941 0.180706-601.6-0.060235-6.565647-0.361412-5.933176-0.63247-6.324706-0.963765-6.415059-1.295059a128.602353 128.602353 0 0 1-12.137412-3.403294l-6.625882-2.409412a130.620235 130.620235 0 0 1-11.595294-5.210353l-7.649883-4.21647-4.969411-3.132236-7.168-5.12-6.174118-4.969411-2.710588-2.409412a131.433412 131.433412 0 0 1-43.068236-91.196235l-0.150588-6.384942V150.588235c0-13.432471 10.059294-24.515765 23.04-26.142117L150.588235 124.235294h210.82353z m465.558588 544.617412H521.396706l-158.147765 158.117647h463.721412v-158.117647zM335.058824 176.941176h-158.117648v570.970353c0 20.178824 7.529412 38.550588 19.937883 52.525177l3.222588 3.373176 5.12 4.728471 4.367059 3.373176 4.367059 2.981647 4.517647 2.620236 4.246588 2.138353c1.897412 0.903529 3.824941 1.686588 5.782588 2.409411l4.608 1.566118 2.861177 0.783059 6.354823 1.385412 4.668236 0.662588c3.493647 0.421647 6.987294 0.572235 10.480941 0.512l5.24047-0.301177 5.270589-0.602352 6.746352-1.325177 2.43953-0.602353 2.409412-0.752941c1.957647-0.602353 3.855059-1.264941 5.722353-2.017882l3.945411-1.716706 4.306824-2.108236 2.258823-1.295058 4.216471-2.650353 4.126118-2.981647c1.355294-1.024 2.650353-2.108235 3.915294-3.222589l3.824941-3.584 3.222588-3.373176c11.354353-12.8 18.672941-29.334588 19.787294-47.525647l0.150589-4.99953V176.941176z m480.737882 122.970353l-111.796706-111.796705-316.235294 316.205176v223.623529L815.796706 299.911529z" />
@ -273,25 +280,25 @@ const l=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="49 49 906 906">
<path fill="currentColor" d="M361.411765 124.235294H150.588235A26.352941 26.352941 0 0 0 124.235294 150.588235v597.323294a131.764706 131.764706 0 0 0 263.529412 0V150.588235A26.352941 26.352941 0 0 0 361.411765 124.235294z m-184.470589 52.705882h158.117648v570.970353A79.058824 79.058824 0 0 1 256 826.970353l-4.999529-0.150588a79.058824 79.058824 0 0 1-74.059295-78.908236V176.941176z" />
</g>
</svg>
`,K=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="48 73 901 901">
`,Q=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="48 73 901 901">
<!-- IconPark by ByteDance (Apache-2.0) via Iconfont #43967617; adapted for contrast and optical sizing. -->
<g stroke="currentColor" stroke-width="10" stroke-linejoin="round">
<path fill="currentColor" d="M849.558588 426.676706a26.352941 26.352941 0 0 1 3.312941 52.495059l-3.312941 0.210823H146.823529a26.352941 26.352941 0 0 1-3.312941-52.525176l3.312941-0.180706h702.735059zM181.970824 180.705882c13.432471 0 24.515765 10.059294 26.142117 23.04l0.210824 3.312942v140.559058a26.352941 26.352941 0 0 1-52.525177 3.312942l-0.180706-3.312942V207.058824c0-14.546824 11.776-26.352941 26.352942-26.352942z m0 351.292236c13.432471 0 24.515765 10.059294 26.142117 23.04l0.210824 3.312941v210.883765a26.352941 26.352941 0 0 1-52.525177 3.312941l-0.180706-3.312941V558.381176c0-14.546824 11.776-26.352941 26.352942-26.352941zM434.959059 180.705882c13.432471 0 24.515765 10.059294 26.142117 23.04l0.210824 3.312942v140.559058a26.352941 26.352941 0 0 1-52.525176 3.312942l-0.180706-3.312942V207.058824c0-14.546824 11.776-26.352941 26.352941-26.352942z m0 351.382589c13.432471 0 24.515765 10.029176 26.142117 23.04l0.210824 3.312941v281.088a26.352941 26.352941 0 0 1-52.525176 3.312941l-0.180706-3.312941v-281.088c0-14.576941 11.776-26.352941 26.352941-26.352941zM687.947294 180.705882c13.432471 0 24.515765 10.059294 26.142118 23.04l0.210823 3.312942v140.559058a26.352941 26.352941 0 0 1-52.525176 3.312942l-0.180706-3.312942V207.058824c0-14.546824 11.776-26.352941 26.352941-26.352942z m126.494118 0c13.432471 0 24.515765 10.059294 26.142117 23.04l0.210824 3.312942v140.559058a26.352941 26.352941 0 0 1-52.525177 3.312942l-0.180705-3.312942V207.058824c0-14.546824 11.776-26.352941 26.352941-26.352942z m-126.494118 351.382589c13.432471 0 24.515765 10.029176 26.142118 23.04l0.210823 3.312941v140.528941a26.352941 26.352941 0 0 1-52.525176 3.312941l-0.180706-3.312941v-140.528941c0-14.576941 11.776-26.352941 26.352941-26.352941zM308.464941 180.705882c13.432471 0 24.515765 10.059294 26.142118 23.04l0.210823 3.312942v140.559058a26.352941 26.352941 0 0 1-52.525176 3.312942l-0.180706-3.312942V207.058824c0-14.546824 11.776-26.352941 26.352941-26.352942z m0 351.382589c13.432471 0 24.515765 10.029176 26.142118 23.04l0.210823 3.312941v140.528941a26.352941 26.352941 0 0 1-52.525176 3.312941l-0.180706-3.312941v-140.528941c0-14.576941 11.776-26.352941 26.352941-26.352941zM561.453176 180.705882c13.432471 0 24.515765 10.059294 26.142118 23.04l0.210824 3.312942v140.559058a26.352941 26.352941 0 0 1-52.525177 3.312942l-0.180706-3.312942V207.058824c0-14.546824 11.776-26.352941 26.352941-26.352942z m0 351.382589c13.432471 0 24.515765 10.029176 26.142118 23.04l0.210824 3.312941v140.528941a26.352941 26.352941 0 0 1-52.525177 3.312941l-0.180706-3.312941v-140.528941c0-14.576941 11.776-26.352941 26.352941-26.352941z m252.988236 0c13.432471 0 24.515765 10.029176 26.142117 23.04l0.210824 3.312941v210.823529a26.352941 26.352941 0 0 1-52.525177 3.312941l-0.180705-3.312941v-210.823529c0-14.576941 11.776-26.352941 26.352941-26.352941z" />
</g>
</svg>
`,N=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="45 45 906 906">
`,R=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="45 45 906 906">
<!-- IconPark by ByteDance (Apache-2.0) via Iconfont #43970685; adapted for contrast and optical sizing. -->
<g stroke="currentColor" stroke-width="14" stroke-linejoin="round">
<path fill="currentColor" d="M479.563294 128.180706L356.592941 251.181176a26.352941 26.352941 0 0 0 0 37.25553l122.970353 122.970353a26.352941 26.352941 0 0 0 37.25553 0l123.00047-122.970353a26.352941 26.352941 0 0 0 0-37.25553L516.818824 128.180706a26.352941 26.352941 0 0 0-37.25553 0z m18.612706 55.898353l85.714824 85.714823-85.714824 85.684706-85.684706-85.684706 85.684706-85.714823zM707.945412 374.151529l-122.970353 122.970353a26.352941 26.352941 0 0 0 0 37.285647l122.970353 122.970353a26.352941 26.352941 0 0 0 37.285647 0l122.970353-122.970353a26.352941 26.352941 0 0 0 0-37.285647l-122.970353-122.970353a26.352941 26.352941 0 0 0-37.285647 0z m18.642823 55.898353l85.714824 85.714824-85.714824 85.714823-85.714823-85.714823 85.714823-85.714824zM479.563294 584.975059l-122.970353 122.970353a26.352941 26.352941 0 0 0 0 37.285647l122.970353 122.970353a26.352941 26.352941 0 0 0 37.25553 0l123.00047-122.970353a26.352941 26.352941 0 0 0 0-37.285647l-123.00047-122.970353a26.352941 26.352941 0 0 0-37.25553 0z m18.612706 55.898353l85.714824 85.684706-85.714824 85.714823-85.684706-85.684706 85.684706-85.714823zM251.181176 356.592941l-123.00047 122.970353a26.352941 26.352941 0 0 0 0 37.25553l123.00047 123.00047a26.352941 26.352941 0 0 0 37.25553 0l122.970353-123.00047a26.352941 26.352941 0 0 0 0-37.25553L288.436706 356.592941a26.352941 26.352941 0 0 0-37.25553 0z m18.612706 55.898353l85.684706 85.684706-85.684706 85.714824-85.714823-85.714824 85.714823-85.684706z" />
</g>
</svg>
`,Q=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="114 116 781 781">
`,T=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="114 116 781 781">
<!-- IconPark by ByteDance (Apache-2.0) via Iconfont #43970703; adapted for contrast and optical sizing. -->
<g stroke="currentColor" stroke-width="14" stroke-linejoin="round">
<path fill="currentColor" d="M690.206118 180.705882a140.559059 140.559059 0 1 0 0 281.088 140.559059 140.559059 0 0 0 0-281.088z m0 52.705883a87.853176 87.853176 0 1 1 0 175.676235 87.853176 87.853176 0 0 1 0-175.676235zM690.206118 549.647059a140.559059 140.559059 0 1 0 0 281.088 140.559059 140.559059 0 0 0 0-281.088z m0 52.705882a87.853176 87.853176 0 1 1 0 175.676235 87.853176 87.853176 0 0 1 0-175.676235zM321.264941 180.705882a140.559059 140.559059 0 1 0 0 281.088 140.559059 140.559059 0 0 0 0-281.088z m0 52.705883a87.853176 87.853176 0 1 1 0 175.676235 87.853176 87.853176 0 0 1 0-175.676235zM321.264941 549.647059a140.559059 140.559059 0 1 0 0 281.088 140.559059 140.559059 0 0 0 0-281.088z m0 52.705882a87.853176 87.853176 0 1 1 0 175.676235 87.853176 87.853176 0 0 1 0-175.676235z" />
</g>
</svg>
`,R=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="49 56 906 906">
`,U=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="49 56 906 906">
<!-- IconPark by ByteDance (Apache-2.0) via Iconfont #43964067; adapted for contrast and optical sizing. -->
<g stroke="currentColor" stroke-width="14" stroke-linejoin="round">
<path fill="currentColor" d="M677.647059 272.323765c13.432471 0 24.515765 10.029176 26.142117 23.04l0.210824 3.312941v158.117647a26.352941 26.352941 0 0 1-26.352941 26.352941 148.871529 148.871529 0 0 0-111.134118 49.573647A148.660706 148.660706 0 0 0 528.323765 632.470588c0 8.583529 0.722824 17.076706 2.108235 25.389177a149.504 149.504 0 0 0 73.667765 104.628706 26.352941 26.352941 0 0 1-5.360941 48.128c-50.778353 15.36-115.832471 23.883294-184.621177 23.883294-6.415059 0-12.739765-0.060235-19.064471-0.210824l-18.703058-0.602353-18.371765-1.024c-6.023529-0.391529-12.047059-0.873412-17.950118-1.415529l-17.498353-1.807059a652.348235 652.348235 0 0 1-25.359058-3.433412l-16.26353-2.770823-15.661176-3.132236c-81.889882-17.679059-137.547294-50.898824-140.860236-95.563294l-0.150588-4.21647v-421.647059a26.352941 26.352941 0 0 1 52.495059-3.312941l0.210823 3.312941v421.647059c0 12.137412 22.949647 26.292706 60.717177 37.948235l11.745882 3.433412c4.065882 1.084235 8.252235 2.168471 12.589177 3.222588l13.402353 3.041882 14.125176 2.800942 14.817883 2.56 7.649882 1.204705 15.751529 2.108236 8.131765 0.903529 16.564706 1.626353 17.106823 1.264941c14.456471 0.903529 29.334588 1.355294 44.574118 1.355294 35.930353 0 70.625882-2.469647 102.219294-7.107764l15.390118-2.499765-4.156235-4.427294a201.697882 201.697882 0 0 1-47.49553-92.882824l-1.566118-8.131764A203.264 203.264 0 0 1 475.617882 632.470588c0-50.507294 18.612706-98.183529 51.681883-134.987294a201.577412 201.577412 0 0 1 116.043294-64.150588l7.951059-1.174588V298.676706c0-13.432471 10.059294-24.545882 23.04-26.172235l3.312941-0.180706z" />
@ -299,7 +306,7 @@ const l=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="49 49 906 906">
<path fill="currentColor" d="M150.588235 553.411765c13.432471 0 24.515765 10.059294 26.142118 23.04l0.210823 3.312941c0 10.330353 16.564706 22.106353 44.754824 32.557176l10.390588 3.614118 5.571765 1.807059 11.745882 3.403294c4.065882 1.114353 8.252235 2.198588 12.589177 3.252706l13.402353 3.011765c2.288941 0.512 4.608 0.993882 6.957176 1.445647l14.486588 2.710588c4.939294 0.843294 9.999059 1.626353 15.149177 2.409412l15.751529 2.108235 16.353883 1.807059 16.865882 1.415529c17.076706 1.264941 34.876235 1.957647 53.157647 1.957647 30.147765 0 59.542588-1.746824 87.190588-5.12a26.352941 26.352941 0 1 1 6.354824 52.314353c-29.756235 3.614118-61.289412 5.511529-93.545412 5.51153-160.015059 0-289.882353-43.309176-289.882353-114.206118 0-14.546824 11.806118-26.352941 26.352941-26.352941zM150.588235 412.852706c13.432471 0 24.515765 10.059294 26.142118 23.070118l0.210823 3.312941c0 7.860706 9.697882 16.624941 26.864942 24.997647l8.432941 3.794823c5.963294 2.529882 12.619294 4.999529 19.877647 7.378824l11.294118 3.493647c1.957647 0.602353 3.975529 1.144471 5.993411 1.686588l12.589177 3.252706 6.625882 1.536 13.733647 2.921412 7.168 1.385412 14.817883 2.56c10.089412 1.596235 20.630588 3.011765 31.503058 4.21647l16.594824 1.626353c19.666824 1.686588 40.357647 2.620235 61.680941 2.620235 45.688471 0 89.479529-4.005647 127.759059-11.444706a26.352941 26.352941 0 1 1 10.059294 51.712c-41.652706 8.131765-88.847059 12.438588-137.818353 12.438589-160.015059 0-289.882353-43.279059-289.882353-114.206118 0-14.546824 11.806118-26.352941 26.352941-26.352941zM664.455529 539.376941l-60.837647 35.147294a26.352941 26.352941 0 0 0-13.191529 22.799059v70.294588c0 9.396706 5.029647 18.100706 13.191529 22.799059l60.837647 35.147294c8.161882 4.698353 18.221176 4.698353 26.383059 0l60.837647-35.147294a26.352941 26.352941 0 0 0 13.19153-22.799059v-70.294588a26.352941 26.352941 0 0 0-13.19153-22.799059l-60.837647-35.147294a26.352941 26.352941 0 0 0-26.383059 0z m13.161412 53.248l34.514824 19.907765v39.845647l-34.484706 19.907765-34.514824-19.907765v-39.845647l34.484706-19.907765z" />
</g>
</svg>
`,T=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="70 49 906 906">
`,W=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="70 49 906 906">
<!-- IconPark by ByteDance (Apache-2.0) via Iconfont #43968045; adapted for contrast and optical sizing. -->
<g stroke="currentColor" stroke-width="14" stroke-linejoin="round">
<path fill="currentColor" d="M627.440941 124.235294c14.576941 0 26.352941 11.806118 26.352941 26.352941v149.323294h149.353412c13.432471 0 24.515765 10.059294 26.142118 23.070118l0.210823 3.312941v491.91153a61.500235 61.500235 0 0 1-61.500235 61.470117H276.088471a61.500235 61.500235 0 0 1-61.500236-61.470117v-632.470589c0-33.972706 27.527529-61.500235 61.500236-61.500235h351.35247z m-26.352941 52.705882H276.088471a8.794353 8.794353 0 0 0-8.794353 8.794353v632.470589c0 4.818824 3.915294 8.764235 8.794353 8.764235H768c4.848941 0 8.794353-3.915294 8.794353-8.764235l-0.030118-465.588706h-149.323294a26.352941 26.352941 0 0 1-26.142117-23.04l-0.210824-3.312941V176.941176z" />
@ -307,14 +314,14 @@ const l=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="49 49 906 906">
<path fill="currentColor" d="M627.440941 440.470588a26.352941 26.352941 0 1 1 0 52.705883h-210.823529a26.352941 26.352941 0 0 1 0-52.705883h210.823529z" />
</g>
</svg>
`,U=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="115 115 824 824">
`,X=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="115 115 824 824">
<!-- IconPark by ByteDance (Apache-2.0) via Iconfont #43964136; adapted for contrast and optical sizing. -->
<g stroke="currentColor" stroke-width="14" stroke-linejoin="round">
<path fill="currentColor" d="M210.823529 184.470588c13.432471 0 24.515765 10.059294 26.142118 23.04l0.210824 3.312941v606.117647H843.294118c13.432471 0 24.515765 10.059294 26.142117 23.04l0.210824 3.312942a26.352941 26.352941 0 0 1-23.04 26.142117l-3.312941 0.210824H210.823529a26.352941 26.352941 0 0 1-26.142117-23.04L184.470588 843.294118V210.823529c0-14.546824 11.806118-26.352941 26.352941-26.352941z" />
<path fill="currentColor" d="M351.382588 606.117647c13.432471 0 24.515765 10.059294 26.142118 23.04l0.210823 3.312941v70.264471a26.352941 26.352941 0 0 1-52.525176 3.312941l-0.180706-3.312941V632.470588c0-14.546824 11.776-26.352941 26.352941-26.352941zM491.911529 465.558588c13.432471 0 24.545882 10.059294 26.172236 23.070118l0.180706 3.312941v210.823529a26.352941 26.352941 0 0 1-52.495059 3.312942l-0.210824-3.312942v-210.823529c0-14.576941 11.806118-26.383059 26.352941-26.383059zM632.470588 184.470588c13.432471 0 24.515765 10.059294 26.142118 23.04l0.210823 3.312941v491.91153a26.352941 26.352941 0 0 1-52.495058 3.312941l-0.210824-3.312941V210.823529c0-14.546824 11.806118-26.352941 26.352941-26.352941zM773.029647 325.029647c13.432471 0 24.515765 10.029176 26.142118 23.04l0.210823 3.312941v351.352471a26.352941 26.352941 0 0 1-52.525176 3.312941l-0.180706-3.312941V351.382588c0-14.576941 11.776-26.352941 26.352941-26.352941z" />
</g>
</svg>
`,W=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="115 115 824 824">
`,Y=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="115 115 824 824">
<!-- IconPark by ByteDance (Apache-2.0) via Iconfont #43963967; adapted for contrast and optical sizing. -->
<g stroke="currentColor" stroke-width="14" stroke-linejoin="round">
<path fill="currentColor" d="M281.088 430.441412a96.617412 96.617412 0 1 0 0 193.234823 96.617412 96.617412 0 0 0 0-193.234823z m0 52.705882a43.911529 43.911529 0 1 1 0 87.823059 43.911529 43.911529 0 0 1 0-87.823059zM773.029647 184.470588a96.617412 96.617412 0 1 0 0 193.264941 96.617412 96.617412 0 0 0 0-193.264941z m0 52.705883a43.911529 43.911529 0 1 1 0 87.853176 43.911529 43.911529 0 0 1 0-87.853176zM773.029647 430.441412a96.617412 96.617412 0 1 0 0 193.234823 96.617412 96.617412 0 0 0 0-193.234823z m0 52.705882a43.911529 43.911529 0 1 1 0 87.823059 43.911529 43.911529 0 0 1 0-87.823059zM773.029647 676.382118a96.617412 96.617412 0 1 0 0 193.264941 96.617412 96.617412 0 0 0 0-193.264941z m0 52.705882a43.911529 43.911529 0 1 1 0 87.853176 43.911529 43.911529 0 0 1 0-87.853176z" />
@ -322,7 +329,7 @@ const l=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="49 49 906 906">
<path fill="currentColor" d="M702.735059 500.705882a26.352941 26.352941 0 0 1 3.312941 52.495059l-3.312941 0.210824H351.382588a26.352941 26.352941 0 0 1-3.312941-52.495059l3.312941-0.210824h351.352471z" />
</g>
</svg>
`,X=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="45 70 906 906">
`,n2=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="45 70 906 906">
<!-- IconPark by ByteDance (Apache-2.0) via Iconfont #43970427; adapted for contrast and optical sizing. -->
<g stroke="currentColor" stroke-width="14" stroke-linejoin="round">
<path fill="currentColor" d="M849.558588 496.941176a26.352941 26.352941 0 0 1 3.312941 52.495059l-3.312941 0.210824h-421.647059a26.352941 26.352941 0 0 1-3.312941-52.495059l3.312941-0.210824h421.647059z" />
@ -330,14 +337,14 @@ const l=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="49 49 906 906">
<path fill="currentColor" d="M849.558588 250.970353a26.352941 26.352941 0 0 1 3.312941 52.525176l-3.312941 0.180706h-421.647059a26.352941 26.352941 0 0 1-3.312941-52.495059l3.312941-0.210823h421.647059zM287.382588 672.617412H146.823529a26.352941 26.352941 0 0 0-26.352941 26.352941v140.559059c0 14.546824 11.806118 26.352941 26.352941 26.352941h140.559059a26.352941 26.352941 0 0 0 26.352941-26.352941v-140.559059a26.352941 26.352941 0 0 0-26.352941-26.352941z m-26.383059 52.705882V813.176471H173.176471v-87.853177h87.823058zM287.382588 426.676706H146.823529a26.352941 26.352941 0 0 0-26.352941 26.352941v140.528941c0 14.576941 11.806118 26.352941 26.352941 26.352941h140.559059a26.352941 26.352941 0 0 0 26.352941-26.352941v-140.528941a26.352941 26.352941 0 0 0-26.352941-26.352941z m-26.383059 52.675765v87.853176H173.176471v-87.853176h87.823058zM287.382588 180.705882H146.823529A26.352941 26.352941 0 0 0 120.470588 207.058824v140.559058c0 14.546824 11.806118 26.352941 26.352941 26.352942h140.559059a26.352941 26.352941 0 0 0 26.352941-26.352942V207.058824A26.352941 26.352941 0 0 0 287.382588 180.705882z m-26.383059 52.705883v87.823059H173.176471V233.411765h87.823058z" />
</g>
</svg>
`,Y=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="115 115 824 824">
`,o2=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="115 115 824 824">
<!-- IconPark by ByteDance (Apache-2.0) via Iconfont #43970516; adapted for contrast and optical sizing. -->
<g stroke="currentColor" stroke-width="14" stroke-linejoin="round">
<path fill="currentColor" d="M790.588235 184.470588H263.529412A79.058824 79.058824 0 0 0 184.470588 263.529412v527.058823a79.058824 79.058824 0 0 0 79.058824 79.058824h527.058823a79.058824 79.058824 0 0 0 79.058824-79.058824V263.529412a79.058824 79.058824 0 0 0-79.058824-79.058824z m-527.058823 52.705883h527.058823c14.546824 0 26.352941 11.806118 26.352941 26.352941v527.058823a26.352941 26.352941 0 0 1-26.352941 26.352941H263.529412a26.352941 26.352941 0 0 1-26.352941-26.352941V263.529412c0-14.546824 11.806118-26.352941 26.352941-26.352941z" />
<path fill="currentColor" d="M474.352941 307.440941h-140.559059a26.352941 26.352941 0 0 0-26.352941 26.352941v140.559059c0 14.546824 11.806118 26.352941 26.352941 26.352941h140.559059a26.352941 26.352941 0 0 0 26.352941-26.352941v-140.559059a26.352941 26.352941 0 0 0-26.352941-26.352941z m-26.352941 52.705883v87.853176h-87.853176v-87.853176h87.853176zM720.323765 307.440941H579.764706a26.352941 26.352941 0 0 0-26.352941 26.352941v140.559059c0 14.546824 11.806118 26.352941 26.352941 26.352941h140.559059a26.352941 26.352941 0 0 0 26.352941-26.352941v-140.559059a26.352941 26.352941 0 0 0-26.352941-26.352941z m-26.383059 52.705883v87.853176h-87.823059v-87.853176h87.823059zM474.352941 553.411765h-140.559059a26.352941 26.352941 0 0 0-26.352941 26.352941v140.559059c0 14.546824 11.806118 26.352941 26.352941 26.352941h140.559059a26.352941 26.352941 0 0 0 26.352941-26.352941V579.764706a26.352941 26.352941 0 0 0-26.352941-26.352941z m-26.352941 52.705882v87.823059h-87.853176v-87.823059h87.853176zM720.323765 553.411765H579.764706a26.352941 26.352941 0 0 0-26.352941 26.352941v140.559059c0 14.546824 11.806118 26.352941 26.352941 26.352941h140.559059a26.352941 26.352941 0 0 0 26.352941-26.352941V579.764706a26.352941 26.352941 0 0 0-26.352941-26.352941z m-26.383059 52.705882v87.823059h-87.823059v-87.823059h87.823059z" />
</g>
</svg>
`,n2=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="94 85 824 824">
`,a2=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="94 85 824 824">
<!-- IconPark by ByteDance (Apache-2.0) via Iconfont #43970373; adapted for contrast and optical sizing. -->
<g stroke="currentColor" stroke-width="14" stroke-linejoin="round">
<path fill="currentColor" d="M769.264941 154.352941h-527.058823A79.058824 79.058824 0 0 0 163.147294 233.411765v527.058823a79.058824 79.058824 0 0 0 79.058824 79.058824h527.058823a79.058824 79.058824 0 0 0 79.058824-79.058824V233.411765a79.058824 79.058824 0 0 0-79.058824-79.058824z m-527.058823 52.705883h527.058823c14.546824 0 26.352941 11.806118 26.352941 26.352941v527.058823a26.352941 26.352941 0 0 1-26.352941 26.352941h-527.058823a26.352941 26.352941 0 0 1-26.352942-26.352941V233.411765c0-14.546824 11.776-26.352941 26.352942-26.352941z" />
@ -346,39 +353,39 @@ const l=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="49 49 906 906">
<path fill="currentColor" d="M698.970353 786.823529a26.352941 26.352941 0 0 1 3.312941 52.495059l-3.312941 0.210824h-105.411765a26.352941 26.352941 0 0 1-3.312941-52.495059l3.312941-0.210824h105.411765z" />
</g>
</svg>
`,o2=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="128 128 786 786">
`,t2=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="128 128 786 786">
<!-- IconPark by ByteDance (Apache-2.0) via Iconfont #43971756; adapted for contrast and optical sizing. -->
<g stroke="currentColor" stroke-width="14" stroke-linejoin="round">
<path fill="currentColor" d="M803.147294 283.617882a26.352941 26.352941 0 0 1 3.312941 52.495059l-3.312941 0.210824H240.941176a26.352941 26.352941 0 0 1-3.312941-52.525177L240.941176 283.617882h562.206118zM803.147294 494.441412a26.352941 26.352941 0 0 1 3.312941 52.495059l-3.312941 0.210823H240.941176a26.352941 26.352941 0 0 1-3.312941-52.525176l3.312941-0.180706h562.206118zM803.147294 705.264941a26.352941 26.352941 0 0 1 3.312941 52.495059l-3.312941 0.210824H240.941176a26.352941 26.352941 0 0 1-3.312941-52.525177l3.312941-0.180706h562.206118z" />
</g>
</svg>
`,a2=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="45 60 906 906">
`,l2=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="45 60 906 906">
<!-- IconPark by ByteDance (Apache-2.0) via Iconfont #43971760; adapted for contrast and optical sizing. -->
<g stroke="currentColor" stroke-width="14" stroke-linejoin="round">
<path fill="currentColor" d="M392.794353 135.529412h-210.823529A61.500235 61.500235 0 0 0 120.470588 197.029647v210.823529c0 33.942588 27.527529 61.470118 61.500236 61.470118h210.823529a61.500235 61.500235 0 0 0 61.470118-61.470118v-210.823529A61.500235 61.500235 0 0 0 392.794353 135.529412z m-210.823529 52.705882h210.823529c4.818824 0 8.764235 3.915294 8.764235 8.794353v210.823529c0 4.818824-3.915294 8.764235-8.764235 8.764236h-210.823529a8.794353 8.794353 0 0 1-8.794353-8.764236v-210.823529c0-4.848941 3.915294-8.794353 8.794353-8.794353zM392.794353 557.176471h-210.823529A61.500235 61.500235 0 0 0 120.470588 618.676706v210.823529c0 33.942588 27.527529 61.470118 61.500236 61.470118h210.823529a61.500235 61.500235 0 0 0 61.470118-61.470118v-210.823529a61.500235 61.500235 0 0 0-61.470118-61.500235z m-210.823529 52.705882h210.823529c4.818824 0 8.764235 3.915294 8.764235 8.794353v210.823529c0 4.818824-3.915294 8.764235-8.764235 8.764236h-210.823529a8.794353 8.794353 0 0 1-8.794353-8.764236v-210.823529c0-4.848941 3.915294-8.794353 8.794353-8.794353zM814.441412 135.529412h-210.82353A61.500235 61.500235 0 0 0 542.117647 197.029647v210.823529c0 33.942588 27.527529 61.470118 61.500235 61.470118h210.82353a61.500235 61.500235 0 0 0 61.470117-61.470118v-210.823529A61.500235 61.500235 0 0 0 814.441412 135.529412z m-210.82353 52.705882h210.82353c4.818824 0 8.764235 3.915294 8.764235 8.794353v210.823529c0 4.818824-3.915294 8.764235-8.764235 8.764236h-210.82353a8.794353 8.794353 0 0 1-8.794353-8.764236v-210.823529c0-4.848941 3.915294-8.794353 8.794353-8.794353zM849.558588 557.176471a26.352941 26.352941 0 0 1 3.312941 52.495058l-3.312941 0.210824h-281.088a26.352941 26.352941 0 0 1-3.312941-52.495059l3.312941-0.210823h281.088zM849.558588 697.735529a26.352941 26.352941 0 0 1 3.312941 52.495059l-3.312941 0.210824h-140.528941a26.352941 26.352941 0 0 1-3.312941-52.525177l3.312941-0.180706h140.528941zM849.558588 838.264471a26.352941 26.352941 0 0 1 3.312941 52.525176l-3.312941 0.180706h-281.088a26.352941 26.352941 0 0 1-3.312941-52.495059l3.312941-0.210823h281.088z" />
</g>
</svg>
`,t2=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="88 118 819 819">
`,r2=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="88 118 819 819">
<!-- IconPark by ByteDance (Apache-2.0) via Iconfont #43967582; adapted for contrast and optical sizing. -->
<g stroke="currentColor" stroke-width="10" stroke-linejoin="round">
<path fill="currentColor" d="M426.676706 184.470588H180.705882A26.352941 26.352941 0 0 0 154.352941 210.823529v245.970824c0 14.546824 11.806118 26.352941 26.352941 26.352941h245.970824a26.352941 26.352941 0 0 0 26.352941-26.352941V210.823529a26.352941 26.352941 0 0 0-26.352941-26.352941z m-26.383059 52.705883v193.234823H207.058824V237.176471h193.234823zM426.676706 570.970353H180.705882a26.352941 26.352941 0 0 0-26.352941 26.352941V843.294118c0 14.546824 11.806118 26.352941 26.352941 26.352941h245.970824a26.352941 26.352941 0 0 0 26.352941-26.352941v-245.970824a26.352941 26.352941 0 0 0-26.352941-26.352941z m-26.383059 52.705882v193.264941H207.058824v-193.264941h193.234823zM813.176471 184.470588h-245.970824a26.352941 26.352941 0 0 0-26.352941 26.352941v245.970824c0 14.546824 11.806118 26.352941 26.352941 26.352941H813.176471a26.352941 26.352941 0 0 0 26.352941-26.352941V210.823529A26.352941 26.352941 0 0 0 813.176471 184.470588z m-26.352942 52.705883v193.234823h-193.264941V237.176471h193.264941zM584.794353 570.970353c13.432471 0 24.515765 10.059294 26.142118 23.070118l0.210823 3.312941V843.294118a26.352941 26.352941 0 0 1-52.525176 3.312941l-0.180706-3.312941v-245.970824c0-14.546824 11.776-26.352941 26.352941-26.352941zM795.617882 570.970353c13.432471 0 24.515765 10.059294 26.142118 23.070118l0.210824 3.312941V843.294118a26.352941 26.352941 0 0 1-52.525177 3.312941l-0.180706-3.312941v-245.970824c0-14.546824 11.776-26.352941 26.352941-26.352941z" />
</g>
</svg>
`,l2=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="49 49 906 906">
`,c2=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="49 49 906 906">
<!-- IconPark by ByteDance (Apache-2.0) via Iconfont #43963954; adapted for contrast and optical sizing. -->
<g stroke="currentColor" stroke-width="14" stroke-linejoin="round">
<path fill="currentColor" d="M746.857412 659.004235a26.352941 26.352941 0 0 1 34.575059-2.349176l2.710588 2.349176 87.823059 87.853177c9.426824 9.426824 10.24 24.244706 2.349176 34.575059l-2.349176 2.710588-87.853177 87.823059a26.352941 26.352941 0 0 1-39.604706-34.575059l2.349177-2.710588 69.180235-69.210353-69.180235-69.180236a26.352941 26.352941 0 0 1-2.349177-34.575058l2.349177-2.710589zM220.852706 124.235294a96.617412 96.617412 0 1 0 0 193.264941 96.617412 96.617412 0 0 0 0-193.264941z m0 52.705882a43.911529 43.911529 0 1 1 0 87.853177 43.911529 43.911529 0 0 1 0-87.853177z" />
<path fill="currentColor" d="M431.676235 194.499765c51.531294 0 93.665882 40.357647 96.496941 91.166117l0.150589 5.481412v404.058353c0 22.829176 17.408 41.592471 39.695059 43.730824l4.21647 0.210823h281.088a26.352941 26.352941 0 0 1 3.312941 52.495059l-3.312941 0.210823H572.235294a96.647529 96.647529 0 0 1-96.466823-91.166117l-0.150589-5.481412V291.147294c0-22.829176-17.438118-41.592471-39.695058-43.730823l-4.216471-0.210824H291.117176a26.352941 26.352941 0 0 1-3.312941-52.495059l3.312941-0.210823h140.528942z" />
</g>
</svg>
`,r2=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="52 49 906 906">
`,e2=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="52 49 906 906">
<!-- IconPark by ByteDance (Apache-2.0) via Iconfont #43963960; adapted for contrast and optical sizing. -->
<g stroke="currentColor" stroke-width="14" stroke-linejoin="round">
<path fill="currentColor" d="M697.735529 124.235294a96.617412 96.617412 0 1 0 0 193.264941 96.617412 96.617412 0 0 0 0-193.264941z m0 52.705882a43.911529 43.911529 0 1 1 0 87.853177 43.911529 43.911529 0 0 1 0-87.853177zM311.205647 124.235294a96.617412 96.617412 0 1 0 0 193.264941 96.617412 96.617412 0 0 0 0-193.264941z m0 52.705882a43.911529 43.911529 0 1 1 0 87.853177 43.911529 43.911529 0 0 1 0-87.853177zM311.205647 686.441412a96.617412 96.617412 0 1 0 0 193.234823 96.617412 96.617412 0 0 0 0-193.234823z m0 52.705882a43.911529 43.911529 0 1 1 0 87.823059 43.911529 43.911529 0 0 1 0-87.823059z" />
<path fill="currentColor" d="M697.735529 264.794353c13.432471 0 24.515765 10.029176 26.142118 23.04l0.210824 3.312941V361.411765c0 53.549176-26.383059 86.226824-98.243765 123.783529l-14.034824 7.107765-15.088941 7.258353-16.233412 7.439059-17.377882 7.68-18.552471 7.951058-49.302588 20.449883-17.950117 7.589647-16.655059 7.258353-15.450353 6.987294c-2.469647 1.144471-4.909176 2.258824-7.258353 3.403294l-13.673412 6.595765-12.559059 6.354823c-7.981176 4.186353-15.209412 8.222118-21.775059 12.197647l-9.33647 5.872941c-29.304471 19.425882-41.833412 37.044706-42.947765 57.615059l-0.090353 3.132236v52.705882c0 33.822118-48.850824 35.087059-52.495059 3.734588l-0.210823-3.734588v-421.647059a26.352941 26.352941 0 0 1 52.525176-3.312941l0.180706 3.312941v272.685177l4.728471-3.312942c17.648941-12.257882 39.905882-24.395294 67.493647-37.436235l19.184941-8.854588c3.343059-1.505882 6.746353-3.011765 10.24-4.517647l21.624471-9.336471 23.311058-9.758117 20.118589-8.282353 18.55247-7.770353 25.47953-11.023059 15.450353-6.957177 7.258353-3.403294 13.673411-6.595764 12.559059-6.354824c3.975529-2.108235 7.800471-4.156235 11.444706-6.204235l10.330353-6.02353c36.020706-21.775059 51.049412-40.839529 52.284235-63.488l0.090353-3.102117V291.147294c0-14.576941 11.776-26.352941 26.352941-26.352941z" />
</g>
</svg>
`,c2=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="49 74 906 906">
`,i2=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="49 74 906 906">
<!-- IconPark by ByteDance (Apache-2.0) via Iconfont #43963947; adapted for contrast and optical sizing. -->
<g fill="currentColor" stroke="currentColor" stroke-width="14" stroke-linejoin="round">
<path d="M818.206118 184.470588h-632.470589a61.500235 61.500235 0 0 0-61.500235 61.500236v562.176c0 33.972706 27.527529 61.500235 61.500235 61.500235h632.470589a61.500235 61.500235 0 0 0 61.470117-61.500235V245.970824a61.500235 61.500235 0 0 0-61.470117-61.500236z m-632.470589 52.705883h632.470589c4.818824 0 8.764235 3.915294 8.764235 8.794353v562.176c0 4.848941-3.915294 8.794353-8.764235 8.794352h-632.470589a8.794353 8.794353 0 0 1-8.794353-8.794352V245.970824c0-4.848941 3.915294-8.794353 8.794353-8.794353z" />
@ -388,13 +395,13 @@ const l=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="49 49 906 906">
<path d="M853.323294 219.617882c13.432471 0 24.545882 10.029176 26.172235 23.04l0.180706 3.312942v562.176a61.500235 61.500235 0 0 1-56.892235 61.319529l-4.577882 0.180706h-632.470589a61.500235 61.500235 0 0 1-61.319529-56.922353l-0.180706-4.577882V245.970824a26.352941 26.352941 0 0 1 52.495059-3.312942l0.210823 3.312942v562.176c0 4.156235 2.891294 7.649882 6.776471 8.553411l2.017882 0.240941h632.470589a8.794353 8.794353 0 0 0 8.553411-6.77647l0.210824-2.017882V245.970824c0-14.576941 11.806118-26.352941 26.352941-26.352942z" />
</g>
</svg>
`,e2=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="49 70 906 906">
`,s2=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="49 70 906 906">
<!-- IconPark by ByteDance (Apache-2.0) via Iconfont #44567174; adapted for contrast and optical sizing. -->
<g stroke="currentColor" stroke-width="14" stroke-linejoin="round">
<path fill="currentColor" d="M879.676235 750.441412a79.058824 79.058824 0 0 1-79.058823 79.058823H203.294118a79.058824 79.058824 0 0 1-79.058824-79.058823V293.647059A79.058824 79.058824 0 0 1 203.294118 214.588235h597.323294a79.058824 79.058824 0 0 1 79.058823 79.058824v456.794353z m-52.705882-272.323765H176.941176v272.323765c0 14.546824 11.806118 26.352941 26.352942 26.352941h597.323294a26.352941 26.352941 0 0 0 26.352941-26.352941v-272.323765zM256 311.205647a35.147294 35.147294 0 1 0 0 70.294588 35.147294 35.147294 0 0 0 0-70.294588z m105.411765 0a35.147294 35.147294 0 1 0 0 70.294588 35.147294 35.147294 0 0 0 0-70.294588z" />
</g>
</svg>
`,i2=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="49 49 906 906">
`,v2=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="49 49 906 906">
<!-- IconPark by ByteDance (Apache-2.0) via Iconfont #43971709; adapted for contrast and optical sizing. -->
<g fill="currentColor" stroke="currentColor" stroke-width="14" stroke-linejoin="round">
<path d="M501.970824 124.235294C293.345882 124.235294 124.235294 293.345882 124.235294 501.970824c0 208.594824 169.110588 377.705412 377.73553 377.705411 208.594824 0 377.705412-169.110588 377.705411-377.705411 0-208.624941-169.110588-377.735529-377.705411-377.73553z m0 52.705882c179.501176 0 324.999529 145.528471 324.999529 325.029648s-145.498353 324.999529-324.999529 324.999529S176.941176 681.472 176.941176 501.970824 322.469647 176.941176 501.970824 176.941176z" />
@ -402,7 +409,7 @@ const l=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="49 49 906 906">
<path d="M383.939765 383.939765a26.352941 26.352941 0 0 1 34.575059-2.349177l2.710588 2.349177 198.77647 198.77647a26.352941 26.352941 0 0 1-34.605176 39.634824l-2.710588-2.379294-198.746353-198.776471a26.352941 26.352941 0 0 1 0-37.255529z" />
</g>
</svg>
`,s2=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="49 49 906 906">
`,g2=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="49 49 906 906">
<!-- IconPark by ByteDance (Apache-2.0) via Iconfont #43971699; adapted for contrast and optical sizing. -->
<g stroke="currentColor" stroke-width="14" stroke-linejoin="round">
<path fill="currentColor" d="M501.970824 124.235294c-101.526588 0-196.728471 40.267294-267.113412 110.622118a376.560941 376.560941 0 0 0-110.622118 267.113412c0 101.496471 40.267294 196.728471 110.622118 267.083294a376.560941 376.560941 0 0 0 267.113412 110.622117c101.496471 0 196.728471-40.267294 267.083294-110.622117a376.560941 376.560941 0 0 0 110.622117-267.083294c0-101.526588-40.267294-196.728471-110.622117-267.113412a376.560941 376.560941 0 0 0-267.083294-110.622118z m0 52.705882c87.401412 0 169.261176 34.635294 229.797647 95.171765a323.855059 323.855059 0 0 1 95.201882 229.857883c0 87.401412-34.635294 169.261176-95.171765 229.797647a323.855059 323.855059 0 0 1-229.827764 95.201882c-87.401412 0-169.261176-34.635294-229.827765-95.171765a323.855059 323.855059 0 0 1-95.201883-229.827764c0-87.401412 34.635294-169.261176 95.171765-229.827765a323.855059 323.855059 0 0 1 229.857883-95.201883z" />
@ -410,14 +417,14 @@ const l=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="49 49 906 906">
<path fill="currentColor" d="M501.970824 741.315765a43.911529 43.911529 0 1 0 0-87.823059 43.911529 43.911529 0 0 0 0 87.823059z" />
</g>
</svg>
`,v2=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="49 49 906 906">
`,h2=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="49 49 906 906">
<!-- IconPark by ByteDance (Apache-2.0) via Iconfont #43971726; adapted for contrast and optical sizing. -->
<g fill="currentColor" stroke="currentColor" stroke-width="14" stroke-linejoin="round">
<path d="M501.970824 124.235294c-101.526588 0-196.728471 40.267294-267.113412 110.622118a376.560941 376.560941 0 0 0-110.622118 267.113412c0 101.496471 40.267294 196.728471 110.622118 267.083294a376.560941 376.560941 0 0 0 267.113412 110.622117c101.496471 0 196.728471-40.267294 267.083294-110.622117a376.560941 376.560941 0 0 0 110.622117-267.083294c0-101.526588-40.267294-196.728471-110.622117-267.113412a376.560941 376.560941 0 0 0-267.083294-110.622118z m0 52.705882c87.401412 0 169.261176 34.635294 229.797647 95.171765a323.855059 323.855059 0 0 1 95.201882 229.857883c0 87.401412-34.635294 169.261176-95.171765 229.797647a323.855059 323.855059 0 0 1-229.827764 95.201882c-87.401412 0-169.261176-34.635294-229.827765-95.171765a323.855059 323.855059 0 0 1-95.201883-229.827764c0-87.401412 34.635294-169.261176 95.171765-229.827765a323.855059 323.855059 0 0 1 229.857883-95.201883z" />
<path d="M659.004235 377.916235a26.352941 26.352941 0 0 1 39.634824 34.575059l-2.349177 2.710588-210.823529 210.82353a26.352941 26.352941 0 0 1-34.575059 2.349176l-2.710588-2.379294-105.411765-105.411765a26.352941 26.352941 0 0 1 34.575059-39.604705l2.710588 2.349176 86.768941 86.768941 192.180706-192.180706z" />
</g>
</svg>
`,g2=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="49 49 906 906">
`,d2=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="49 49 906 906">
<!-- IconPark by ByteDance (Apache-2.0) via Iconfont #43971723; adapted for contrast and optical sizing. -->
<g stroke="currentColor" stroke-width="14" stroke-linejoin="round">
<path fill="currentColor" d="M501.970824 124.235294c-101.526588 0-196.728471 40.267294-267.113412 110.622118a376.560941 376.560941 0 0 0-110.622118 267.113412c0 101.496471 40.267294 196.728471 110.622118 267.083294a376.560941 376.560941 0 0 0 267.113412 110.622117c101.496471 0 196.728471-40.267294 267.083294-110.622117a376.560941 376.560941 0 0 0 110.622117-267.083294c0-101.526588-40.267294-196.728471-110.622117-267.113412a376.560941 376.560941 0 0 0-267.083294-110.622118z m0 52.705882c87.401412 0 169.261176 34.635294 229.797647 95.171765a323.855059 323.855059 0 0 1 95.201882 229.857883c0 87.401412-34.635294 169.261176-95.171765 229.797647a323.855059 323.855059 0 0 1-229.827764 95.201882c-87.401412 0-169.261176-34.635294-229.827765-95.171765a323.855059 323.855059 0 0 1-95.201883-229.827764c0-87.401412 34.635294-169.261176 95.171765-229.827765a323.855059 323.855059 0 0 1 229.857883-95.201883z" />
@ -425,26 +432,26 @@ const l=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="49 49 906 906">
<path fill="currentColor" d="M501.970824 264.794353c13.432471 0 24.515765 10.029176 26.142117 23.04l0.210824 3.312941V572.235294a26.352941 26.352941 0 0 1-52.525177 3.312941l-0.180706-3.312941V291.147294c0-14.576941 11.776-26.352941 26.352942-26.352941z" />
</g>
</svg>
`,h2=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="49 49 906 906">
`,w2=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="49 49 906 906">
<!-- IconPark by ByteDance (Apache-2.0) via Iconfont #43964184; adapted for contrast and optical sizing. -->
<g stroke="currentColor" stroke-width="14" stroke-linejoin="round">
<path fill="currentColor" d="M501.970824 124.235294C293.345882 124.235294 124.235294 293.345882 124.235294 501.970824c0 208.594824 169.110588 377.705412 377.73553 377.705411 208.594824 0 377.705412-169.110588 377.705411-377.705411 0-25.901176-2.590118-51.501176-7.740235-76.498824-5.632-27.346824-44.272941-28.340706-51.320471-1.355294a197.270588 197.270588 0 1 1-240.790588-240.790588c26.985412-7.047529 25.961412-45.718588-1.355294-51.320471-24.997647-5.150118-50.597647-7.770353-76.498823-7.770353z m-27.286589 53.820235l-3.162353 2.590118a249.976471 249.976471 0 0 0 158.238118 443.512471l7.920941-0.150589a249.976471 249.976471 0 0 0 185.615059-91.587764l2.529882-3.222589-0.63247 7.04753c-17.136941 163.388235-155.316706 290.725647-323.222588 290.725647-179.501176 0-325.029647-145.498353-325.029648-324.999529 0-167.936 127.337412-306.115765 290.725648-323.252706l7.017411-0.662589z" />
</g>
</svg>
`,d2=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="49 49 906 906">
`,p2=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="49 49 906 906">
<!-- IconPark by ByteDance (Apache-2.0) via Iconfont #43963919; adapted for contrast and optical sizing. -->
<g stroke="currentColor" stroke-width="14" stroke-linejoin="round">
<path fill="currentColor" d="M501.970824 124.235294C293.345882 124.235294 124.235294 293.345882 124.235294 501.970824c0 208.594824 169.110588 377.705412 377.73553 377.705411 208.594824 0 377.705412-169.110588 377.705411-377.705411 0-208.624941-169.110588-377.735529-377.705411-377.73553z m0 52.705882c179.501176 0 324.999529 145.528471 324.999529 325.029648s-145.498353 324.999529-324.999529 324.999529S176.941176 681.472 176.941176 501.970824 322.469647 176.941176 501.970824 176.941176z" />
<path fill="currentColor" d="M581.782588 138.179765a26.352941 26.352941 0 0 1 29.545412 39.424l-1.114353 1.505882v1.144471c0 2.078118 0.090353 4.457412 0.301177 7.168l0.903529 9.005176c0.180706 1.656471 0.391529 3.373176 0.662588 5.180235l1.807059 11.715765 1.114353 6.505412c1.957647 10.842353 4.939294 15.600941 12.348235 20.781176l4.156236 2.650353 5.421176 3.252706c27.858824 16.685176 39.333647 36.623059 33.370353 74.812235-6.656 42.676706-27.256471 56.169412-68.065882 59.994353l-17.227295 1.41553-5.421176 0.662588-4.517647 0.843294c-0.752941 0.150588-1.505882 0.301176-2.228706 0.512a41.411765 41.411765 0 0 0-17.980235 9.065412c-4.577882 4.005647-6.445176 10.480941-5.782588 25.238588l0.602352 8.884706c0.150588 1.656471 0.301176 3.343059 0.512 5.12l1.987765 16.956235c6.836706 55.567059 0.722824 86.377412-38.249412 108.122353a79.631059 79.631059 0 0 1-43.550117 10.149647c-21.353412-1.084235-38.942118-8.131765-64.632471-23.732706l-28.370823-17.859764-11.384471-6.806588-5.933176-3.252706-4.758589-2.349177a53.669647 53.669647 0 0 0-1.987764-0.843294l-3.312942-1.144471c-2.349176-0.602353-3.855059-0.542118-4.909176 0-5.722353 3.132235-9.396706 10.541176-12.077176 26.895059l-1.385412 9.818353-3.041883 31.021177c-3.674353 33.731765-8.854588 49.182118-25.238588 64.12047-29.485176 26.895059-72.824471 26.895059-127.427765 4.99953a26.352941 26.352941 0 1 1 19.606589-48.941177c37.888 15.209412 61.138824 15.209412 72.282353 4.99953 1.807059-1.626353 3.312941-4.367059 4.608-8.944942l1.234823-5.210352 1.174588-6.595765 1.084236-8.131765 1.054117-9.818353 0.963765-10.480941c4.457412-49.543529 12.378353-73.878588 41.953882-89.991529 22.558118-12.288 37.315765-11.444706 66.288942 4.547764l10.24 5.903059 11.444705 7.04753 12.890353 8.192c3.945412 2.56 7.649882 4.879059 11.083295 6.987294l9.637647 5.632c13.552941 7.529412 22.949647 10.872471 31.623529 11.324235a27.015529 27.015529 0 0 0 15.149176-3.553882c12.047059-6.716235 15.329882-16.926118 12.890353-43.971765l-3.523764-30.960941c-4.367059-42.556235-0.602353-62.885647 22.678588-83.124706 11.806118-10.300235 24.997647-16.775529 39.845647-20.48l7.047529-1.566118 7.077647-1.114353 8.192-0.873412 17.980236-1.385411 5.782588-0.602353c7.378824-1.024 9.517176-2.831059 10.842353-8.192l1.204706-6.656 0.903529-6.354824c0.903529-7.077647 0.120471-9.065412-4.818823-12.348235l-11.926589-7.228235c-21.383529-13.372235-34.213647-29.906824-39.273411-58.127059l-3.222589-19.034353-1.596235-11.203765c-4.728471-37.285647-0.180706-53.910588 23.491765-60.717176zM633.163294 559.134118c55.024941-28.852706 122.187294 0.813176 202.24 80.414117a26.352941 26.352941 0 0 1-37.135059 37.345883c-65.415529-64.993882-112.549647-85.835294-140.649411-71.077647-14.305882 7.499294-21.805176 14.576941-25.208471 21.534117-2.168471 4.427294-2.951529 8.704-2.921412 17.106824l0.210824 8.31247c0.722824 17.709176 0.331294 25.509647-3.794824 36.623059a73.607529 73.607529 0 0 1-18.974117 28.822588l-9.035295 8.432942c-1.656471 1.505882-2.951529 2.800941-4.126117 4.035764-6.023529 6.324706-10.24 13.342118-14.034824 25.268706-5.812706 18.191059 2.499765 40.146824 29.274353 67.553883a26.352941 26.352941 0 1 1-37.677176 36.833882c-39.092706-39.996235-54.482824-80.685176-41.833412-120.380235 6.264471-19.636706 14.637176-33.641412 26.142118-45.688471l3.011764-3.041882 8.432941-7.890824c5.842824-5.360941 7.770353-7.860706 9.396706-12.257882a9.878588 9.878588 0 0 0 0.481883-1.957647l0.271059-3.011765v-4.517647l-0.210824-6.686118c-0.903529-22.588235 0.240941-34.785882 8.011294-50.688 8.734118-17.889882 24.485647-32.707765 48.128-45.086117z" />
</g>
</svg>
`,w2=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="48 48 942 942">
`,z2=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="48 48 942 942">
<!-- IconPark by ByteDance (Apache-2.0) via Iconfont #43964181; adapted for contrast and optical sizing. -->
<g stroke="currentColor" stroke-width="10" stroke-linejoin="round">
<path fill="currentColor" d="M240.007529 240.037647a26.352941 26.352941 0 0 1 34.575059-2.379294l2.710588 2.349176 39.122824 39.152942a26.352941 26.352941 0 0 1-34.575059 39.604705l-2.710588-2.349176-39.122824-39.152941a26.352941 26.352941 0 0 1 0-37.25553zM205.944471 493.176471a26.352941 26.352941 0 0 1 3.312941 52.495058l-3.312941 0.210824H150.588235a26.352941 26.352941 0 0 1-3.312941-52.495059l3.312941-0.210823h55.356236zM279.130353 722.642824a26.352941 26.352941 0 0 1 39.634823 34.575058l-2.349176 2.710589-39.152941 39.122823a26.352941 26.352941 0 0 1-39.604706-34.575059l2.349176-2.710588 39.152942-39.122823zM722.642824 722.642824a26.352941 26.352941 0 0 1 34.575058-2.349177l2.710589 2.349177 39.122823 39.152941a26.352941 26.352941 0 0 1-34.575059 39.604706l-2.710588-2.349177-39.122823-39.152941a26.352941 26.352941 0 0 1 0-37.255529zM888.470588 493.176471a26.352941 26.352941 0 0 1 3.312941 52.495058l-3.312941 0.210824h-55.356235a26.352941 26.352941 0 0 1-3.312941-52.495059l3.312941-0.210823H888.470588zM761.765647 240.037647a26.352941 26.352941 0 0 1 39.634824 34.544941l-2.349177 2.710588-39.152941 39.152942a26.352941 26.352941 0 0 1-39.604706-34.605177l2.349177-2.710588 39.152941-39.122824zM519.529412 124.235294c13.432471 0 24.515765 10.059294 26.142117 23.04l0.210824 3.312941v55.356236a26.352941 26.352941 0 0 1-52.495059 3.312941l-0.210823-3.312941V150.588235c0-14.546824 11.806118-26.352941 26.352941-26.352941zM519.529412 282.352941a237.176471 237.176471 0 1 0 0 474.352941 237.176471 237.176471 0 0 0 0-474.352941z m0 52.705883a184.470588 184.470588 0 1 1 0 368.941176 184.470588 184.470588 0 0 1 0-368.941176zM519.529412 806.791529c13.432471 0 24.515765 10.029176 26.142117 23.04l0.210824 3.312942V888.470588a26.352941 26.352941 0 0 1-52.495059 3.312941l-0.210823-3.312941v-55.326117c0-14.576941 11.806118-26.352941 26.352941-26.352942z" />
</g>
</svg>
`,p2=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="82 94 865 865">
`,_2=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="82 94 865 865">
<!-- IconPark by ByteDance (Apache-2.0) via Iconfont #43963546; adapted for contrast and optical sizing. -->
<g stroke="currentColor" stroke-width="14" stroke-linejoin="round">
<path fill="currentColor" d="M813.176471 184.470588c33.972706 0 61.500235 27.527529 61.500235 61.500236v421.647058A61.500235 61.500235 0 0 1 813.176471 729.088H215.853176a61.500235 61.500235 0 0 1-61.500235-61.470118v-421.647058c0-33.972706 27.527529-61.500235 61.500235-61.500236H813.176471z m0 52.705883H215.853176a8.794353 8.794353 0 0 0-8.794352 8.794353v421.647058c0 4.818824 3.915294 8.764235 8.794352 8.764236H813.176471c4.848941 0 8.794353-3.915294 8.794353-8.764236v-421.647058A8.794353 8.794353 0 0 0 813.176471 237.176471z" />
@ -453,7 +460,7 @@ const l=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="49 49 906 906">
<path fill="currentColor" d="M628.254118 678.068706a26.352941 26.352941 0 0 1 33.91247 15.420235l52.705883 140.559059a26.352941 26.352941 0 0 1-24.696471 35.599059H338.823529a26.352941 26.352941 0 0 1-24.69647-35.599059l52.705882-140.559059a26.352941 26.352941 0 1 1 49.392941 18.522353l-39.393882 104.899765h275.335529l-39.363764-104.899765a26.352941 26.352941 0 0 1 12.40847-32.587294l3.011765-1.355294z" />
</g>
</svg>
`,z2=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="49 57 906 906">
`,u2=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="49 57 906 906">
<!-- IconPark by ByteDance (Apache-2.0) via Iconfont #43970747; adapted for contrast and optical sizing. -->
<g stroke="currentColor" stroke-width="14" stroke-linejoin="round">
<path fill="currentColor" d="M730.352941 734.027294a70.264471 70.264471 0 0 0 70.264471-70.26447c0-25.871059-23.401412-61.018353-70.264471-105.411765-46.863059 44.393412-70.264471 79.540706-70.26447 105.411765a70.264471 70.264471 0 0 0 70.26447 70.26447z" />
@ -462,4 +469,4 @@ const l=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="49 49 906 906">
<path fill="currentColor" d="M266.089412 428.423529a26.352941 26.352941 0 0 1 30.087529-17.648941l3.192471 0.843294 297.984 97.972706a26.352941 26.352941 0 0 1-13.251765 50.898824l-3.222588-0.813177-297.984-97.972706a26.352941 26.352941 0 0 1-16.805647-33.28zM853.323294 813.086118a26.352941 26.352941 0 0 1 3.312941 52.525176l-3.312941 0.180706H150.588235a26.352941 26.352941 0 0 1-3.312941-52.495059l3.312941-0.210823h702.735059z" />
</g>
</svg>
`,_2=Object.assign({"./action/add.svg":l,"./action/adjustment.svg":r,"./action/close.svg":c,"./action/close_all.svg":e,"./action/close_left.svg":i,"./action/close_other.svg":s,"./action/close_right.svg":v,"./action/copy-image.svg":g,"./action/copy.svg":h,"./action/delete.svg":d,"./action/download.svg":w,"./action/draggable.svg":p,"./action/edit.svg":z,"./action/external-link.svg":_,"./action/filter.svg":u,"./action/fullscreen.svg":f,"./action/fullscreen_fold.svg":k,"./action/link.svg":M,"./action/lock.svg":C,"./action/more.svg":m,"./action/mouse.svg":x,"./action/out.svg":y,"./action/print.svg":b,"./action/reload.svg":B,"./action/search.svg":I,"./action/setting.svg":A,"./action/shared.svg":H,"./action/upload.svg":V,"./directional/enter.svg":j,"./directional/expanded.svg":D,"./directional/left_arrow.svg":P,"./directional/resize_h.svg":L,"./directional/right_arrow.svg":S,"./directional/row_end.svg":Z,"./directional/row_head.svg":q,"./logo/axios.svg":F,"./logo/github.svg":O,"./logo/google.svg":$,"./logo/ray.svg":E,"./logo/twitter.svg":G,"./navigation/appearance.svg":J,"./navigation/barcode.svg":K,"./navigation/components.svg":N,"./navigation/dashboard.svg":Q,"./navigation/database.svg":R,"./navigation/document.svg":T,"./navigation/echart.svg":U,"./navigation/flow.svg":W,"./navigation/form.svg":X,"./navigation/icons.svg":Y,"./navigation/layout.svg":n2,"./navigation/menu.svg":o2,"./navigation/other.svg":a2,"./navigation/qr_code.svg":t2,"./navigation/rely.svg":l2,"./navigation/routing.svg":r2,"./navigation/table.svg":c2,"./navigation/window.svg":e2,"./status/error.svg":i2,"./status/question.svg":s2,"./status/success.svg":v2,"./status/warning.svg":g2,"./system/dark.svg":h2,"./system/language.svg":d2,"./system/light.svg":w2,"./system/system_os.svg":p2,"./system/watermark.svg":z2});function u2(t){var a;const n=_2[`./${t}.svg`],o=n==null?void 0:n.match(/<svg\b([^>]*)>([\s\S]*)<\/svg>/i);if(o)return{viewBox:(a=o[1].match(/viewBox=["']([^"']+)["']/i))==null?void 0:a[1],body:o[2]}}export{u2 as getIconAsset};
`,f2=Object.assign({"./action/add.svg":l,"./action/adjustment.svg":r,"./action/close.svg":c,"./action/close_all.svg":e,"./action/close_left.svg":i,"./action/close_other.svg":s,"./action/close_right.svg":v,"./action/copy-image.svg":g,"./action/copy.svg":h,"./action/delete.svg":d,"./action/download.svg":w,"./action/draggable.svg":p,"./action/edit.svg":z,"./action/external-link.svg":_,"./action/filter.svg":u,"./action/fullscreen.svg":f,"./action/fullscreen_fold.svg":k,"./action/link.svg":M,"./action/lock.svg":C,"./action/more.svg":m,"./action/mouse.svg":x,"./action/out.svg":b,"./action/print.svg":y,"./action/reload.svg":B,"./action/search.svg":I,"./action/setting.svg":A,"./action/shared.svg":H,"./action/table-bordered.svg":V,"./action/table-striped.svg":j,"./action/upload.svg":D,"./directional/enter.svg":P,"./directional/expanded.svg":L,"./directional/left_arrow.svg":S,"./directional/resize_h.svg":Z,"./directional/right_arrow.svg":q,"./directional/row_end.svg":F,"./directional/row_head.svg":O,"./logo/axios.svg":$,"./logo/github.svg":E,"./logo/google.svg":G,"./logo/ray.svg":J,"./logo/twitter.svg":K,"./navigation/appearance.svg":N,"./navigation/barcode.svg":Q,"./navigation/components.svg":R,"./navigation/dashboard.svg":T,"./navigation/database.svg":U,"./navigation/document.svg":W,"./navigation/echart.svg":X,"./navigation/flow.svg":Y,"./navigation/form.svg":n2,"./navigation/icons.svg":o2,"./navigation/layout.svg":a2,"./navigation/menu.svg":t2,"./navigation/other.svg":l2,"./navigation/qr_code.svg":r2,"./navigation/rely.svg":c2,"./navigation/routing.svg":e2,"./navigation/table.svg":i2,"./navigation/window.svg":s2,"./status/error.svg":v2,"./status/question.svg":g2,"./status/success.svg":h2,"./status/warning.svg":d2,"./system/dark.svg":w2,"./system/language.svg":p2,"./system/light.svg":z2,"./system/system_os.svg":_2,"./system/watermark.svg":u2});function k2(t){var a;const n=f2[`./${t}.svg`],o=n==null?void 0:n.match(/<svg\b([^>]*)>([\s\S]*)<\/svg>/i);if(o)return{viewBox:(a=o[1].match(/viewBox=["']([^"']+)["']/i))==null?void 0:a[1],body:o[2]}}export{k2 as getIconAsset};

View File

@ -1 +0,0 @@
const t=["action/add","action/adjustment","action/close","action/close_all","action/close_left","action/close_other","action/close_right","action/copy","action/copy-image","action/delete","action/download","action/draggable","action/edit","action/external-link","action/filter","action/fullscreen","action/fullscreen_fold","action/link","action/lock","action/more","action/mouse","action/out","action/print","action/reload","action/search","action/setting","action/shared","action/upload","directional/enter","directional/expanded","directional/left_arrow","directional/resize_h","directional/right_arrow","directional/row_end","directional/row_head","logo/axios","logo/github","logo/google","logo/ray","logo/twitter","navigation/appearance","navigation/barcode","navigation/components","navigation/dashboard","navigation/database","navigation/document","navigation/echart","navigation/flow","navigation/form","navigation/icons","navigation/layout","navigation/menu","navigation/other","navigation/qr_code","navigation/rely","navigation/routing","navigation/table","navigation/window","status/error","status/question","status/success","status/warning","system/dark","system/language","system/light","system/system_os","system/watermark"],i={action:"/__spritemap-action",directional:"/__spritemap-directional",logo:"/__spritemap-logo",navigation:"/__spritemap-navigation",status:"/__spritemap-status",system:"/__spritemap-system"},o=new Set(t),n=a=>typeof a=="string"&&o.has(a);export{i as a,n as i};

View File

@ -0,0 +1 @@
const t=["action/add","action/adjustment","action/close","action/close_all","action/close_left","action/close_other","action/close_right","action/copy","action/copy-image","action/delete","action/download","action/draggable","action/edit","action/external-link","action/filter","action/fullscreen","action/fullscreen_fold","action/link","action/lock","action/more","action/mouse","action/out","action/print","action/reload","action/search","action/setting","action/shared","action/table-bordered","action/table-striped","action/upload","directional/enter","directional/expanded","directional/left_arrow","directional/resize_h","directional/right_arrow","directional/row_end","directional/row_head","logo/axios","logo/github","logo/google","logo/ray","logo/twitter","navigation/appearance","navigation/barcode","navigation/components","navigation/dashboard","navigation/database","navigation/document","navigation/echart","navigation/flow","navigation/form","navigation/icons","navigation/layout","navigation/menu","navigation/other","navigation/qr_code","navigation/rely","navigation/routing","navigation/table","navigation/window","status/error","status/question","status/success","status/warning","system/dark","system/language","system/light","system/system_os","system/watermark"],i={action:"/__spritemap-action",directional:"/__spritemap-directional",logo:"/__spritemap-logo",navigation:"/__spritemap-navigation",status:"/__spritemap-status",system:"/__spritemap-system"},o=new Set(t),n=a=>typeof a=="string"&&o.has(a);export{i as a,n as i};

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
import{_ as a,o as t,c as s,a3 as d}from"./chunks/framework.D8G7yXPy.js";const m=JSON.parse('{"title":"v6 Monorepo 架构","description":"","frontmatter":{},"headers":[],"relativePath":"guide/architecture.md","filePath":"guide/architecture.md"}'),o={name:"guide/architecture.md"};function r(p,e,i,n,c,l){return t(),s("div",null,[...e[0]||(e[0]=[d("",17)])])}const u=a(o,[["render",r]]);export{m as __pageData,u as default};

View File

@ -1,8 +1,8 @@
import{_ as a,o as t,c as s,a3 as d}from"./chunks/framework.D8G7yXPy.js";const m=JSON.parse('{"title":"v6 Monorepo 架构","description":"","frontmatter":{},"headers":[],"relativePath":"guide/architecture.md","filePath":"guide/architecture.md"}'),o={name:"guide/architecture.md"};function r(p,e,i,n,c,l){return t(),s("div",null,[...e[0]||(e[0]=[d(`<h1 id="v6-monorepo-架构" tabindex="-1">v6 Monorepo 架构 <a class="header-anchor" href="#v6-monorepo-架构" aria-label="Permalink to &quot;v6 Monorepo 架构&quot;">​</a></h1><p>Ray Template 6.0.0 把后台应用、官网文档和共享能力放到同一个 pnpm workspace。<strong>Ray Admin</strong> 是完整后台,官网则按页加载同一套组件和工具做交互示例。</p><div class="language-text vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">text</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span>ray-template/</span></span>
import{_ as e,o as t,c as s,a3 as d}from"./chunks/framework.D8G7yXPy.js";const m=JSON.parse('{"title":"v6 Monorepo 架构","description":"","frontmatter":{},"headers":[],"relativePath":"guide/architecture.md","filePath":"guide/architecture.md"}'),o={name:"guide/architecture.md"};function r(p,a,i,n,c,l){return t(),s("div",null,[...a[0]||(a[0]=[d(`<h1 id="v6-monorepo-架构" tabindex="-1">v6 Monorepo 架构 <a class="header-anchor" href="#v6-monorepo-架构" aria-label="Permalink to &quot;v6 Monorepo 架构&quot;">​</a></h1><p>Ray Template 6.0.0 把后台应用、官网文档和共享能力放到同一个 pnpm workspace。<strong>Ray Admin</strong> 是完整后台,官网则按页加载同一套组件和工具做交互示例。</p><div class="language-text vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">text</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span>ray-template/</span></span>
<span class="line"><span>├── apps/</span></span>
<span class="line"><span>│ ├── admin/ # Ray Admin:登录、会话、路由和业务页面</span></span>
<span class="line"><span>│ └── docs/ # VitePress:指南、API 与交互示例</span></span>
<span class="line"><span>├── packages/ # 两个应用共用的八个私有 workspace 包</span></span>
<span class="line"><span>├── harness/ # 任务入口与验收命令</span></span>
<span class="line"><span>└── pnpm-lock.yaml # 工作区共用锁文件</span></span></code></pre></div><h2 id="各包负责什么" tabindex="-1">各包负责什么 <a class="header-anchor" href="#各包负责什么" aria-label="Permalink to &quot;各包负责什么&quot;">​</a></h2><table tabindex="0"><thead><tr><th>包</th><th>公开能力与使用方式</th></tr></thead><tbody><tr><td><code>@ray-template/utils</code></td><td>精度运算、对象和类型处理、文件工具、接收存储实现的 JSON 工具。精度运算从 <code>/precision</code> 导入。</td></tr><tr><td><code>@ray-template/composables</code></td><td>设备宽度、元素全屏、截图、打印和其他独立 Vue Hooks,例如 <code>/useElementFullscreen</code>。</td></tr><tr><td><code>@ray-template/directives</code></td><td>复制、防抖、节流、省略、水波纹等指令,可单独导入或统一注册。</td></tr><tr><td><code>@ray-template/icons</code></td><td>SVG 资源、图标名称类型和资源查找。组件和路由配置使用同一套名称。</td></tr><tr><td><code>@ray-template/ui</code></td><td>组件、样式、主题与类型。通过 <code>/table-pro</code>、<code>/barcode</code> 或 <code>/chart</code> 等入口按需导入。</td></tr><tr><td><code>@ray-template/http</code></td><td><code>createHttpClient</code> 创建实例与独立的取消器。宿主提供地址、请求头和拦截器。</td></tr><tr><td><code>@ray-template/routing</code></td><td>路由 Schema、配置校验、路由展开和菜单处理。宿主提供页面注册表。</td></tr><tr><td><code>@ray-template/admin-shell</code></td><td>布局、顶部导航、标签、设置和路由过渡。宿主提供菜单、选中状态、偏好和内容。</td></tr></tbody></table><p>共享包通过 <code>package.json</code> 的 <code>exports</code> 暴露入口,只依赖自己声明的包。<code>pnpm packages:check</code> 检查跨包导入和依赖循环。应用的登录、路由守卫、业务 API、Pinia 实例和语言加载由 <code>apps/admin</code> 负责。</p><h2 id="ray-admin-怎么组装" tabindex="-1">Ray Admin 怎么组装 <a class="header-anchor" href="#ray-admin-怎么组装" aria-label="Permalink to &quot;Ray Admin 怎么组装&quot;">​</a></h2><p><code>apps/admin/src/main.ts</code> 安装 Pinia、国际化、路由和指令。应用入口为组件提供主题、翻译、图标和列偏好存储,路由层把注册的页面交给后台外壳。登录、角色和会话由应用处理,真实业务的服务端负责接口授权。</p><p>以 TablePro 为例,组件负责展示、搜索、分页与请求状态。后台传入业务查询,文档传入可取消的模拟查询。两边从同一个入口导入:</p><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">import</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> { RTablePro } </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">from</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &#39;@ray-template/ui/table-pro&#39;</span></span>
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">import</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> { add } </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">from</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &#39;@ray-template/utils/precision&#39;</span></span></code></pre></div><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/apps/admin/src/main.ts" target="_blank" rel="noreferrer">后台应用入口</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/apps/admin/src/App.tsx" target="_blank" rel="noreferrer">应用组装</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/docs/architecture.md" target="_blank" rel="noreferrer">完整工程地图</a></p><h2 id="文档怎样运行组件" tabindex="-1">文档怎样运行组件 <a class="header-anchor" href="#文档怎样运行组件" aria-label="Permalink to &quot;文档怎样运行组件&quot;">​</a></h2><p><code>apps/docs/examples</code> 保存实际运行的 Vue 示例。Markdown 引用同一个文件展示源码。TablePro 使用本地数据或可控的模拟请求;布局实验在独立预览框内运行,使用自己的内存路由和主题状态。</p><p><a href="./../reference/utils/core.html#交互示例">精度运算</a> · <a href="./../reference/components/barcode.html#交互示例">RBarcode</a> · <a href="./../reference/table-pro.html#交互示例">TablePro</a> · <a href="./layout.html#在线布局实验">布局实验</a></p><h2 id="构建与部署" tabindex="-1">构建与部署 <a class="header-anchor" href="#构建与部署" aria-label="Permalink to &quot;构建与部署&quot;">​</a></h2><p><code>pnpm dev</code> 启动后台,<code>pnpm docs:dev</code> 启动文档。<code>pnpm build</code> 输出后台,<code>pnpm docs:build</code> 输出文档,<code>pnpm pages:build</code> 组装两者到 <code>dist/pages</code>。官方部署地址分别是 <code>/ray-template/</code> 和 <code>/ray-template/docs/</code>。<a href="./tooling.html">构建与部署指南</a></p><p>如果当前项目基于 v5,请先看<a href="./../migration.html">版本分界</a>,再决定是否接入 v6。</p>`,17)])])}const u=a(o,[["render",r]]);export{m as __pageData,u as default};
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">import</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> { add } </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">from</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &#39;@ray-template/utils/precision&#39;</span></span></code></pre></div><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/apps/admin/src/main.ts" target="_blank" rel="noreferrer">后台应用入口</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/apps/admin/src/App.tsx" target="_blank" rel="noreferrer">应用组装</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/docs/architecture.md" target="_blank" rel="noreferrer">完整工程地图</a></p><h2 id="文档怎样运行组件" tabindex="-1">文档怎样运行组件 <a class="header-anchor" href="#文档怎样运行组件" aria-label="Permalink to &quot;文档怎样运行组件&quot;">​</a></h2><p><code>apps/docs/examples</code> 保存实际运行的 Vue 示例。Markdown 引用同一个文件展示源码。TablePro 使用本地数据或可控的模拟请求;布局实验在独立预览框内运行,使用自己的内存路由和主题状态。</p><p><a href="./../reference/utils/core.html#交互示例">精度运算</a> · <a href="./../reference/components/barcode.html#交互示例">RBarcode</a> · <a href="./../reference/table-pro.html#交互示例">TablePro</a> · <a href="./layout.html#在线布局实验">布局实验</a></p><h2 id="构建与部署" tabindex="-1">构建与部署 <a class="header-anchor" href="#构建与部署" aria-label="Permalink to &quot;构建与部署&quot;">​</a></h2><p><code>pnpm dev</code> 启动后台,<code>pnpm docs:dev</code> 启动文档。<code>pnpm build</code> 输出后台,<code>pnpm docs:build</code> 输出文档,<code>pnpm pages:build</code> 组装两者到 <code>dist/pages</code>。官方部署地址分别是 <code>/ray-template/</code> 和 <code>/ray-template/docs/</code>。<a href="./tooling.html">构建与部署指南</a></p><p>如果当前项目基于 v5,请先看<a href="./../migration.html">版本分界</a>,再决定是否接入 v6。</p>`,17)])])}const b=e(o,[["render",r]]);export{m as __pageData,b as default};

View File

@ -0,0 +1 @@
import{_ as e,o as t,c as s,a3 as d}from"./chunks/framework.D8G7yXPy.js";const m=JSON.parse('{"title":"v6 Monorepo 架构","description":"","frontmatter":{},"headers":[],"relativePath":"guide/architecture.md","filePath":"guide/architecture.md"}'),o={name:"guide/architecture.md"};function r(p,a,i,n,c,l){return t(),s("div",null,[...a[0]||(a[0]=[d("",17)])])}const b=e(o,[["render",r]]);export{m as __pageData,b as default};

View File

@ -190,4 +190,4 @@ import{o as a,c as n,a3 as i,j as h,k,g as l}from"./chunks/framework.D8G7yXPy.js
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> contentWidth: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;fixed&#39;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">,</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> contentMaxWidth: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">1200</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">,</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> contentPadding: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">16</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">,</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">})</span></span></code></pre></div><p>最大宽度范围是 640–2560px,间距为 0–48px。顶栏和页脚可固定或随内容滚动。旧设置补齐默认值,布局恢复默认只重置 <code>layoutConfig</code>。</p><h2 id="菜单图标" tabindex="-1">菜单图标 <a class="header-anchor" href="#菜单图标" aria-label="Permalink to &quot;菜单图标&quot;">​</a></h2><p>展开侧栏、移动端抽屉和顶部导航默认使用 20 px 的图标;折叠侧栏默认 22 px,方便只凭图形辨认菜单。线性图标跟随菜单状态和明暗主题变色。可在「偏好设置 → 菜单」调整「图标尺寸」与「折叠图标尺寸」,修改即时生效。</p><h2 id="替换布局区域" tabindex="-1">替换布局区域 <a class="header-anchor" href="#替换布局区域" aria-label="Permalink to &quot;替换布局区域&quot;">​</a></h2><p><code>RLayout</code> 提供 <code>header</code>、<code>sidebar</code>、<code>tabs</code>、<code>footer</code> 和 <code>default</code> 插槽。模式和显隐开关仍生效,例如顶部导航模式不会渲染侧栏。替换 <code>default</code> 内容时,需要自行接入所需的路由缓存和请求取消。</p><h2 id="状态放在哪里" tabindex="-1">状态放在哪里 <a class="header-anchor" href="#状态放在哪里" aria-label="Permalink to &quot;状态放在哪里&quot;">​</a></h2><table tabindex="0"><thead><tr><th>状态</th><th>入口</th><th>刷新后的行为</th></tr></thead><tbody><tr><td>加载、移动抽屉、内容最大化、重载</td><td><code>useRuntimeGetters</code> / <code>useRuntimeActions</code></td><td>运行态,不持久化</td></tr><tr><td>布局、主题、语言等偏好</td><td><code>useSettingGetters</code> / <code>useSettingActions</code></td><td>沿用设置缓存;旧值补默认配置</td></tr><tr><td>锁屏</td><td>锁屏 Store</td><td>保留历史布尔值格式和跨标签同步</td></tr></tbody></table><p>新增共享状态按职责放到 <code>apps/admin/src/store/modules</code>,对外用 Store hooks。持久化使用 <code>pick</code> / <code>omit</code> 选择字段;检查历史 key 和序列化格式再变更。</p><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/apps/admin/src/layout/README.md" target="_blank" rel="noreferrer">布局说明与插槽</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/apps/admin/src/store/README.md" target="_blank" rel="noreferrer">状态实现与持久化</a></p><p>更细的状态字段与更新动作见 <a href="./../reference/store/setting.html">Setting Store</a>、<a href="./../reference/store/runtime.html">Runtime Store</a> 和 <a href="./../reference/hooks/layout.html">布局 Hooks</a>。</p><h2 id="最近访问和收藏" tabindex="-1">最近访问和收藏 <a class="header-anchor" href="#最近访问和收藏" aria-label="Permalink to &quot;最近访问和收藏&quot;">​</a></h2><p>桌面搜索支持 Ctrl/Command + K。输入页面名称查找,点击星标收藏;空关键词时显示收藏与最近访问,方向键、回车和 Tab 可操作。记录按会话用户 id 隔离,刷新后恢复;清空记录保留收藏。缓存只存菜单路径,展示时重新依据当前菜单和权限筛选,语言切换沿用当前翻译。窄屏继续使用导航抽屉。</p><p>内容页需要撑满工作区时,先复用布局的 <code>--layout-content-height</code>、<code>RTablePro autoHeight</code> 和 <code>--r-table-height</code>,以及 Naive UI 的 <code>NCard contentScrollable</code> / <code>NScrollbar</code>。父容器提供确定高度,Flex/Grid 子项设置 <code>min-block-size: 0</code> 后再承载内部滚动;单纯填充与滚动无需新增通用组件。用户管理页展示了左右独立滚动与窄屏上下排布。</p>`,16))]))}});export{r as __pageData,g as default};
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">})</span></span></code></pre></div><p>最大宽度范围是 640–2560px,间距为 0–48px。顶栏和页脚可固定或随内容滚动。旧设置补齐默认值,布局恢复默认只重置 <code>layoutConfig</code>。</p><h2 id="菜单图标" tabindex="-1">菜单图标 <a class="header-anchor" href="#菜单图标" aria-label="Permalink to &quot;菜单图标&quot;">​</a></h2><p>展开侧栏、移动端抽屉和顶部导航默认使用 20 px 的图标;折叠侧栏默认 22 px,方便只凭图形辨认菜单。线性图标跟随菜单状态和明暗主题变色。可在「偏好设置 → 菜单」调整「图标尺寸」与「折叠图标尺寸」,修改即时生效。</p><h2 id="替换布局区域" tabindex="-1">替换布局区域 <a class="header-anchor" href="#替换布局区域" aria-label="Permalink to &quot;替换布局区域&quot;">​</a></h2><p><code>RLayout</code> 提供 <code>header</code>、<code>sidebar</code>、<code>tabs</code>、<code>footer</code> 和 <code>default</code> 插槽。模式和显隐开关仍生效,例如顶部导航模式不会渲染侧栏。替换 <code>default</code> 内容时,需要自行接入所需的路由缓存和请求取消。</p><h2 id="状态放在哪里" tabindex="-1">状态放在哪里 <a class="header-anchor" href="#状态放在哪里" aria-label="Permalink to &quot;状态放在哪里&quot;">​</a></h2><table tabindex="0"><thead><tr><th>状态</th><th>入口</th><th>刷新后的行为</th></tr></thead><tbody><tr><td>加载、移动抽屉、内容最大化、重载</td><td><code>useRuntimeGetters</code> / <code>useRuntimeActions</code></td><td>运行态,不持久化</td></tr><tr><td>布局、主题、语言等偏好</td><td><code>useSettingGetters</code> / <code>useSettingActions</code></td><td>沿用设置缓存;旧值补默认配置</td></tr><tr><td>锁屏</td><td>锁屏 Store</td><td>保留历史布尔值格式和跨标签同步</td></tr></tbody></table><p>新增共享状态按职责放到 <code>apps/admin/src/store/modules</code>,对外用 Store hooks。持久化使用 <code>pick</code> / <code>omit</code> 选择字段;检查历史 key 和序列化格式再变更。</p><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/apps/admin/src/layout/README.md" target="_blank" rel="noreferrer">布局说明与插槽</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/apps/admin/src/store/README.md" target="_blank" rel="noreferrer">状态实现与持久化</a></p><p>更细的状态字段与更新动作见 <a href="./../reference/store/setting.html">Setting Store</a>、<a href="./../reference/store/runtime.html">Runtime Store</a> 和 <a href="./../reference/hooks/layout.html">布局 Hooks</a>。</p><h2 id="最近访问和收藏" tabindex="-1">最近访问和收藏 <a class="header-anchor" href="#最近访问和收藏" aria-label="Permalink to &quot;最近访问和收藏&quot;">​</a></h2><p>桌面搜索支持 Ctrl/Command + K。输入页面名称查找,点击星标收藏;空关键词时显示收藏与最近访问,方向键、回车和 Tab 可操作。记录按会话用户 id 隔离,刷新后恢复;清空记录保留收藏。缓存只存菜单路径,展示时重新依据当前菜单和权限筛选,语言切换沿用当前翻译。窄屏继续使用导航抽屉。</p><p>内容页需要撑满工作区时,先复用布局的 <code>--layout-content-height</code>、<code>RTablePro autoHeight</code> 和 <code>--r-table-height</code>,以及 Naive UI 的 <code>NCard contentScrollable</code> / <code>NScrollbar</code>。父容器提供确定高度,Flex/Grid 子项设置 <code>min-block-size: 0</code> 后再承载内部滚动;单纯填充与滚动无需新增通用组件。用户管理页展示了左右独立滚动与窄屏上下排布。</p>`,16))]))}});export{r as __pageData,g as default};

View File

@ -166,11 +166,11 @@ import{_ as a}from"./chunks/AdminExample.vue_vue_type_script_setup_true_lang.wPc
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> signal,</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> cancelConfig: { cancel: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">false</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> },</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> })</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">}</span></span></code></pre></div><p>默认取消器按 URL、方法、参数和请求体识别重复请求,默认布局在路由更新前取消受管理的请求。示例将信号交给 TablePro 管理,所以关闭模板的默认注入;否则默认取消器会替换调用方传入的 signal。后台任务禁用默认取消后,需要自行管理生命周期。</p><h2 id="配置与拦截器" tabindex="-1">配置与拦截器 <a class="header-anchor" href="#配置与拦截器" aria-label="Permalink to &quot;配置与拦截器&quot;">​</a></h2><ul><li><code>apps/admin/src/app-config/request-config.ts</code>:统一修改 <code>baseURL</code>、超时和默认 headers。</li><li><code>apps/admin/src/axios/axios-interceptor/{request,response}/provider.ts</code>:登记插件;请求头、鉴权响应等放入对应的 <code>plugins</code>。</li><li><code>useRequest</code> 包装同一请求实例,放在有效的 Vue effect 作用域内使用。</li></ul><h2 id="从演示切到真实服务" tabindex="-1">从演示切到真实服务 <a class="header-anchor" href="#从演示切到真实服务" aria-label="Permalink to &quot;从演示切到真实服务&quot;">​</a></h2><p>开发、生产预览和 GitHub Pages 共用 MSW HTTP Mock。登录、用户、路由、人员表格、路由示例详情、搜索业务选项、图表与请求示例都通过 API 层发送请求,在线演示由应用 base 下的 Service Worker 响应;不再在生产环境直接调用本地数据函数。选择本地筛选的表格示例,也先通过接口取得数据,再由组件完成本地排序、分页与筛选。请求/响应类型与运行时 Schema 统一放在 <code>@ray-template/api-contracts</code>,HTTP 传输能力由 <code>@ray-template/http</code> 提供。</p><p>设置 <code>VITE_API_MOCK=false</code> 和 <code>VITE_API_BASE_URL</code> 后,请求直达自己的服务端。完整请求/响应结构、错误码、会话、权限码及可下载 OpenAPI 见<a href="./backend.html">服务端接入指南</a>。Mock 持久化仅属于当前浏览器,多用户共享数据和正式会话由真实后端负责。</p><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/apps/admin/src/axios/instance.ts" target="_blank" rel="noreferrer">请求实例</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/apps/admin/src/api/admin/index.ts" target="_blank" rel="noreferrer">业务 API</a></p><h2 id="userequest-与手动执行" tabindex="-1">useRequest 与手动执行 <a class="header-anchor" href="#userequest-与手动执行" aria-label="Permalink to &quot;useRequest 与手动执行&quot;">​</a></h2><p><code>useRequest&lt;Response&gt;(fetchOptions, options?)</code> 从 <code>@/axios</code> 导入,使用模板 Axios 实例执行同一份配置。<code>options</code> 传给 vue-hooks-plus,例如 <code>manual</code>、成功和失败回调。返回的数据、错误、加载状态与运行方法来自上游 Hook。应用在 <code>setup</code> 或有效 effect scope 内创建它。</p><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">import</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> { useRequest } </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">from</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &#39;@/axios&#39;</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">}</span></span></code></pre></div><p>默认取消器按 URL、方法、参数和请求体识别重复请求,默认布局在路由更新前取消受管理的请求。示例将信号交给 TablePro 管理,所以关闭模板的默认注入;否则默认取消器会替换调用方传入的 signal。后台任务禁用默认取消后,需要自行管理生命周期。</p><h2 id="配置与拦截器" tabindex="-1">配置与拦截器 <a class="header-anchor" href="#配置与拦截器" aria-label="Permalink to &quot;配置与拦截器&quot;">​</a></h2><ul><li><code>apps/admin/src/app-config/request-config.ts</code>:统一修改 <code>baseURL</code>、超时和默认 headers。</li><li><code>apps/admin/src/axios/axios-interceptor/{request,response}/provider.ts</code>:登记插件;请求头、鉴权响应等放入对应的 <code>plugins</code>。</li><li><code>useRequest</code> 包装同一请求实例,放在有效的 Vue effect 作用域内使用。</li></ul><h2 id="从演示切到真实服务" tabindex="-1">从演示切到真实服务 <a class="header-anchor" href="#从演示切到真实服务" aria-label="Permalink to &quot;从演示切到真实服务&quot;">​</a></h2><p>开发、生产预览和 GitHub Pages 共用 MSW HTTP Mock。登录、用户、路由、人员表格、路由示例详情、搜索业务选项、图表与请求示例都通过 API 层发送请求,在线演示由应用 base 下的 Service Worker 响应;不再在生产环境直接调用本地数据函数。选择本地筛选的表格示例,也先通过接口取得数据,再由组件完成本地排序、分页与筛选。请求/响应类型与运行时 Schema 统一放在 <code>@ray-template/api-contracts</code>,HTTP 传输能力由 <code>@ray-template/http</code> 提供。</p><p>设置 <code>VITE_API_MOCK=false</code> 和 <code>VITE_API_BASE_URL</code> 后,请求直达自己的服务端。完整请求/响应结构、错误码、会话、权限码及可下载 OpenAPI 见<a href="./backend.html">服务端接入指南</a>。Mock 持久化仅属于当前浏览器,多用户共享数据和正式会话由真实后端负责。</p><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/apps/admin/src/axios/instance.ts" target="_blank" rel="noreferrer">请求实例</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/apps/admin/src/api/admin/index.ts" target="_blank" rel="noreferrer">业务 API</a></p><h2 id="userequest-与手动执行" tabindex="-1">useRequest 与手动执行 <a class="header-anchor" href="#userequest-与手动执行" aria-label="Permalink to &quot;useRequest 与手动执行&quot;">​</a></h2><p><code>useRequest&lt;Response&gt;(fetchOptions, options?)</code> 从 <code>@/axios</code> 导入,使用模板 Axios 实例执行同一份配置。<code>options</code> 传给 vue-hooks-plus,例如 <code>manual</code>、成功和失败回调。返回的数据、错误、加载状态与运行方法来自上游 Hook。应用在 <code>setup</code> 或有效 effect scope 内创建它。</p><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">import</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> { useRequest } </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">from</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &#39;@/axios&#39;</span></span>
<span class="line"></span>
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">export</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> function</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> useOrderSummary</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">() {</span></span>
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> return</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> useRequest</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&lt;{ </span><span style="--shiki-light:#E36209;--shiki-dark:#FFAB70;">total</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">:</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> number</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> }&gt;(</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> { url: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;/api/orders/summary&#39;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, method: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;get&#39;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> },</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> { manual: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">true</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> },</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> )</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">}</span></span></code></pre></div><p>调用 <code>run()</code> 触发手动加载。这个包装的请求函数从 <code>fetchOptions</code> 读取配置,不会把 <code>run(...)</code> 参数自动映射成请求体或 query;需要动态 service 时用同入口导出的 <code>useHookPlusRequest(service, options?)</code>,在 service 中调用 <code>request</code>。错误提示由业务配置或响应拦截器负责,当前默认拦截器不消费 <code>responseSuccessMessage</code> / <code>responseErrorMessage</code> 两个类型字段。</p><p>默认仅向已配置的 API 基址注入 <code>Authorization: Bearer &lt;token&gt;</code>,不覆盖调用方提供的认证头。模板 Axios 实例用来请求自己的业务接口;第三方地址使用明确配置的独立客户端。</p><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/apps/admin/src/axios/index.ts" target="_blank" rel="noreferrer">请求 Hook</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/packages/http/src/types.ts" target="_blank" rel="noreferrer">请求配置类型</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/apps/admin/src/axios/axios-interceptor/request/plugins/request-headers.ts" target="_blank" rel="noreferrer">头注入实现</a></p>`,16))]))}});export{r as __pageData,d as default};
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">}</span></span></code></pre></div><p>调用 <code>run()</code> 触发手动加载。这个包装的请求函数从 <code>fetchOptions</code> 读取配置,不会把 <code>run(...)</code> 参数自动映射成请求体或 query;需要动态 service 时用同入口导出的 <code>useHookPlusRequest(service, options?)</code>,在 service 中调用 <code>request</code>。错误提示由业务配置或响应拦截器负责,当前默认拦截器不消费 <code>responseSuccessMessage</code> / <code>responseErrorMessage</code> 两个类型字段。</p><p>默认仅向已配置的 API 基址注入 <code>Authorization: Bearer &lt;token&gt;</code>,不覆盖调用方提供的认证头。模板 Axios 实例用来请求自己的业务接口;第三方地址使用明确配置的独立客户端。</p><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/apps/admin/src/axios/index.ts" target="_blank" rel="noreferrer">请求 Hook</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/packages/http/src/types.ts" target="_blank" rel="noreferrer">请求配置类型</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/apps/admin/src/axios/axios-interceptor/request/plugins/request-headers.ts" target="_blank" rel="noreferrer">头注入实现</a></p>`,16))]))}});export{r as __pageData,d as default};

File diff suppressed because one or more lines are too long

View File

@ -5,4 +5,4 @@ import{_ as s,o as i,c as e,a3 as t}from"./chunks/framework.D8G7yXPy.js";const c
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">npm</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> install</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> --global</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> pnpm@12.16.1</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">pnpm</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> install</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> --frozen-lockfile</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">pnpm</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> env:check</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">pnpm</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> dev</span></span></code></pre></div><p>打开 <a href="http://127.0.0.1:9527/ray-template/" target="_blank" rel="noreferrer">http://127.0.0.1:9527/ray-template/</a>,如果端口被占用,以 Vite 输出的地址为准。使用预填表单登录,再打开「表格 → 远端查询与分页」或「布局实验室」。也可直接体验<a href="https://xiaodaigua-ray.github.io/ray-template/" target="_blank" rel="noreferrer">在线演示</a>。</p><div class="warning custom-block"><p class="custom-block-title">演示与真实业务</p><p>预填表单、会话和 Mock 用于展示前端工作流。对外部署真实业务前,接入自己的认证、服务端权限校验和 API。</p></div><h2 id="启动文档" tabindex="-1">启动文档 <a class="header-anchor" href="#启动文档" aria-label="Permalink to &quot;启动文档&quot;">​</a></h2><p>在同一个工作区运行 <code>pnpm docs:dev</code>。按终端地址打开 <code>/ray-template/docs/</code>,可以直接操作 TablePro、条码和布局示例。</p><h2 id="相关文档" tabindex="-1">相关文档 <a class="header-anchor" href="#相关文档" aria-label="Permalink to &quot;相关文档&quot;">​</a></h2><p><a href="./first-page.html">第一个业务页面</a> · <a href="./../migration.html">v5 与 v6 的版本分界</a> · <a href="./tooling.html">工程检查与部署</a></p><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/package.json" target="_blank" rel="noreferrer">运行时与依赖清单</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/docs/architecture.md" target="_blank" rel="noreferrer">项目目录与启动链路</a></p>`,12)])])}const F=s(n,[["render",l]]);export{c as __pageData,F as default};
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">pnpm</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> dev</span></span></code></pre></div><p>打开 <a href="http://127.0.0.1:9527/ray-template/" target="_blank" rel="noreferrer">http://127.0.0.1:9527/ray-template/</a>,如果端口被占用,以 Vite 输出的地址为准。使用预填表单登录,再打开「表格 → 远端查询与分页」或「布局实验室」。也可直接体验<a href="https://xiaodaigua-ray.github.io/ray-template/" target="_blank" rel="noreferrer">在线演示</a>。</p><div class="warning custom-block"><p class="custom-block-title">演示与真实业务</p><p>预填表单、会话和 Mock 用于展示前端工作流。对外部署真实业务前,接入自己的认证、服务端权限校验和 API。</p></div><h2 id="启动文档" tabindex="-1">启动文档 <a class="header-anchor" href="#启动文档" aria-label="Permalink to &quot;启动文档&quot;">​</a></h2><p>在同一个工作区运行 <code>pnpm docs:dev</code>。按终端地址打开 <code>/ray-template/docs/</code>,可以直接操作 TablePro、条码和布局示例。</p><h2 id="相关文档" tabindex="-1">相关文档 <a class="header-anchor" href="#相关文档" aria-label="Permalink to &quot;相关文档&quot;">​</a></h2><p><a href="./first-page.html">第一个业务页面</a> · <a href="./../migration.html">v5 与 v6 的版本分界</a> · <a href="./tooling.html">工程检查与部署</a></p><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/package.json" target="_blank" rel="noreferrer">运行时与依赖清单</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/docs/architecture.md" target="_blank" rel="noreferrer">项目目录与启动链路</a></p>`,12)])])}const F=s(n,[["render",l]]);export{c as __pageData,F as default};

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
import{_ as t,o as d,c as o,a3 as c}from"./chunks/framework.D8G7yXPy.js";const m=JSON.parse('{"title":"工程检查与部署","description":"","frontmatter":{},"headers":[],"relativePath":"guide/tooling.md","filePath":"guide/tooling.md"}'),a={name:"guide/tooling.md"};function r(p,e,n,i,s,l){return d(),o("div",null,[...e[0]||(e[0]=[c("",13)])])}const f=t(a,[["render",r]]);export{m as __pageData,f as default};
import{_ as t,o as d,c as o,a3 as c}from"./chunks/framework.D8G7yXPy.js";const m=JSON.parse('{"title":"工程检查与部署","description":"","frontmatter":{},"headers":[],"relativePath":"guide/tooling.md","filePath":"guide/tooling.md"}'),a={name:"guide/tooling.md"};function r(p,e,n,i,s,l){return d(),o("div",null,[...e[0]||(e[0]=[c("",13)])])}const b=t(a,[["render",r]]);export{m as __pageData,b as default};

View File

@ -1 +1 @@
import{d as y,o as i,c as o,j as e,t as l,k as s,g as r,a3 as p,F as d,B as m,E as u}from"./chunks/framework.D8G7yXPy.js";import{v as f}from"./chunks/theme.B8Or0Yt3.js";const v={class:"ray-home"},g={class:"ray-hero"},b={class:"ray-lead"},M={class:"ray-actions"},w=["href"],k=["href"],x={class:"ray-map","aria-labelledby":"ray-map-title"},T=["href"],B={class:"ray-paths","aria-labelledby":"ray-paths-title"},z=["href","aria-labelledby","aria-describedby"],P={class:"ray-path-icon",viewBox:"0 0 24 24","aria-hidden":"true"},S=["d"],A=["id"],N=["id"],R={class:"ray-showcase","aria-labelledby":"ray-showcase-title"},V={class:"ray-showcase-links"},$=["href"],C=["href"],H=["src"],D=y({__name:"RayHome",setup(_){const n=[{title:"Ray Admin",name:"apps/admin",href:"/guide/layout.html"},{title:"共享包",name:"packages",href:"/guide/architecture.html"},{title:"页内交互",name:"apps/docs",href:"/reference/table-pro.html"}],c=[{title:"第一个业务页面",summary:"添加订单列表、路由和菜单。",href:"/guide/first-page.html",icon:"M6 3.5h8l4 4v13H6z M14 3.5v4h4 M9 12h6 M9 16h6"},{title:"组件与 Hooks",summary:"查找表单、弹窗和常用组合式函数。",href:"/reference/components.html",icon:"M3.5 3.5h7v7h-7z M13.5 3.5h7v7h-7z M3.5 13.5h7v7h-7z M13.5 13.5h7v7h-7z"},{title:"构建与部署",summary:"检查项目并部署到站点子路径。",href:"/guide/tooling.html",icon:"M4 8.5h16v11H4z M4 8.5l3-4h10l3 4 M12 16v-4 M10 14l2-2 2 2"}];return(j,t)=>(i(),o("main",v,[e("header",g,[e("div",null,[t[0]||(t[0]=e("h1",null,"Ray Template",-1)),e("p",b," v"+l(s(f))+" 将 Ray Admin、官网文档和共享包放在同一个工作区。可在文档里直接体验真实组件。 ",1),e("div",M,[e("a",{class:"ray-start",href:s(r)("/guide/start.html")},"快速开始",8,w),e("a",{class:"ray-migrate",href:s(r)("/migration.html")},"v5 与 v6 的版本分界",8,k)])]),e("section",x,[t[1]||(t[1]=p('<h2 id="ray-map-title">v6 工作区</h2><svg class="ray-orbit" viewBox="0 0 200 200" aria-hidden="true"><circle cx="100" cy="100" r="65"></circle><circle cx="100" cy="100" r="89" stroke-dasharray="3 6"></circle><path d="M100 0v200M0 100h200M29 29l142 142m0-142L29 171"></path><circle cx="100" cy="100" r="7" fill="currentColor"></circle></svg>',2)),e("ul",null,[(i(),o(d,null,m(n,a=>e("li",{key:a.href},[e("a",{href:s(r)(a.href)},[e("span",null,l(a.title),1),e("code",null,l(a.name),1)],8,T)])),64))])])]),e("section",B,[t[3]||(t[3]=e("h2",{id:"ray-paths-title"},"常用文档",-1)),e("ul",null,[(i(),o(d,null,m(c,(a,h)=>e("li",{key:a.href},[e("a",{class:"ray-path",href:s(r)(a.href),"aria-labelledby":`ray-path-title-${h}`,"aria-describedby":`ray-path-summary-${h}`},[e("article",null,[(i(),o("svg",P,[e("path",{d:a.icon},null,8,S)])),e("h3",{id:`ray-path-title-${h}`},l(a.title),9,A),e("p",{id:`ray-path-summary-${h}`},l(a.summary),9,N),t[2]||(t[2]=e("svg",{class:"ray-path-arrow",viewBox:"0 0 24 24","aria-hidden":"true"},[e("path",{d:"M5 12h13m-5-5 5 5-5 5"})],-1))])],8,z)])),64))])]),e("section",R,[e("div",null,[t[4]||(t[4]=e("h2",{id:"ray-showcase-title"},"TablePro 自适应高度",-1)),t[5]||(t[5]=e("p",null,"表格填满可用高度,数据在表内滚动。",-1)),e("div",V,[e("a",{href:s(r)("/reference/table-pro.html")},"TablePro 用法",8,$),e("a",{href:s(r)("/reference/table-pro-examples.html#自适应高度与虚拟滚动")},"在线示例",8,C)])]),e("img",{src:s(r)("/assets/tablepro-auto-height.png"),width:"1440",height:"820",loading:"lazy",alt:"TablePro 自适应高度示例,虚拟滚动已开启,分页位于表格底部"},null,8,H)])]))}}),L=JSON.parse('{"title":"开发者文档","description":"","frontmatter":{"title":"开发者文档","layout":"home","markdownStyles":false},"headers":[],"relativePath":"index.md","filePath":"index.md"}'),E={name:"index.md"},O=Object.assign(E,{setup(_){return(n,c)=>(i(),o("div",null,[u(D)]))}});export{L as __pageData,O as default};
import{d as y,o as i,c as o,j as e,t as l,k as s,g as r,a3 as p,F as d,B as m,E as u}from"./chunks/framework.D8G7yXPy.js";import{v as f}from"./chunks/theme.jIEdD8pU.js";const v={class:"ray-home"},g={class:"ray-hero"},b={class:"ray-lead"},M={class:"ray-actions"},w=["href"],k=["href"],x={class:"ray-map","aria-labelledby":"ray-map-title"},T=["href"],B={class:"ray-paths","aria-labelledby":"ray-paths-title"},z=["href","aria-labelledby","aria-describedby"],P={class:"ray-path-icon",viewBox:"0 0 24 24","aria-hidden":"true"},S=["d"],A=["id"],N=["id"],R={class:"ray-showcase","aria-labelledby":"ray-showcase-title"},V={class:"ray-showcase-links"},$=["href"],C=["href"],H=["src"],D=y({__name:"RayHome",setup(_){const n=[{title:"Ray Admin",name:"apps/admin",href:"/guide/layout.html"},{title:"共享包",name:"packages",href:"/guide/architecture.html"},{title:"页内交互",name:"apps/docs",href:"/reference/table-pro.html"}],c=[{title:"第一个业务页面",summary:"添加订单列表、路由和菜单。",href:"/guide/first-page.html",icon:"M6 3.5h8l4 4v13H6z M14 3.5v4h4 M9 12h6 M9 16h6"},{title:"组件与 Hooks",summary:"查找表单、弹窗和常用组合式函数。",href:"/reference/components.html",icon:"M3.5 3.5h7v7h-7z M13.5 3.5h7v7h-7z M3.5 13.5h7v7h-7z M13.5 13.5h7v7h-7z"},{title:"构建与部署",summary:"检查项目并部署到站点子路径。",href:"/guide/tooling.html",icon:"M4 8.5h16v11H4z M4 8.5l3-4h10l3 4 M12 16v-4 M10 14l2-2 2 2"}];return(j,t)=>(i(),o("main",v,[e("header",g,[e("div",null,[t[0]||(t[0]=e("h1",null,"Ray Template",-1)),e("p",b," v"+l(s(f))+" 将 Ray Admin、官网文档和共享包放在同一个工作区。可在文档里直接体验真实组件。 ",1),e("div",M,[e("a",{class:"ray-start",href:s(r)("/guide/start.html")},"快速开始",8,w),e("a",{class:"ray-migrate",href:s(r)("/migration.html")},"v5 与 v6 的版本分界",8,k)])]),e("section",x,[t[1]||(t[1]=p('<h2 id="ray-map-title">v6 工作区</h2><svg class="ray-orbit" viewBox="0 0 200 200" aria-hidden="true"><circle cx="100" cy="100" r="65"></circle><circle cx="100" cy="100" r="89" stroke-dasharray="3 6"></circle><path d="M100 0v200M0 100h200M29 29l142 142m0-142L29 171"></path><circle cx="100" cy="100" r="7" fill="currentColor"></circle></svg>',2)),e("ul",null,[(i(),o(d,null,m(n,a=>e("li",{key:a.href},[e("a",{href:s(r)(a.href)},[e("span",null,l(a.title),1),e("code",null,l(a.name),1)],8,T)])),64))])])]),e("section",B,[t[3]||(t[3]=e("h2",{id:"ray-paths-title"},"常用文档",-1)),e("ul",null,[(i(),o(d,null,m(c,(a,h)=>e("li",{key:a.href},[e("a",{class:"ray-path",href:s(r)(a.href),"aria-labelledby":`ray-path-title-${h}`,"aria-describedby":`ray-path-summary-${h}`},[e("article",null,[(i(),o("svg",P,[e("path",{d:a.icon},null,8,S)])),e("h3",{id:`ray-path-title-${h}`},l(a.title),9,A),e("p",{id:`ray-path-summary-${h}`},l(a.summary),9,N),t[2]||(t[2]=e("svg",{class:"ray-path-arrow",viewBox:"0 0 24 24","aria-hidden":"true"},[e("path",{d:"M5 12h13m-5-5 5 5-5 5"})],-1))])],8,z)])),64))])]),e("section",R,[e("div",null,[t[4]||(t[4]=e("h2",{id:"ray-showcase-title"},"TablePro 自适应高度",-1)),t[5]||(t[5]=e("p",null,"表格填满可用高度,数据在表内滚动。",-1)),e("div",V,[e("a",{href:s(r)("/reference/table-pro.html")},"TablePro 用法",8,$),e("a",{href:s(r)("/reference/table-pro-examples.html#自适应高度与虚拟滚动")},"在线示例",8,C)])]),e("img",{src:s(r)("/assets/tablepro-auto-height.png"),width:"1440",height:"820",loading:"lazy",alt:"TablePro 自适应高度示例,虚拟滚动已开启,分页位于表格底部"},null,8,H)])]))}}),L=JSON.parse('{"title":"开发者文档","description":"","frontmatter":{"title":"开发者文档","layout":"home","markdownStyles":false},"headers":[],"relativePath":"index.md","filePath":"index.md"}'),E={name:"index.md"},O=Object.assign(E,{setup(_){return(n,c)=>(i(),o("div",null,[u(D)]))}});export{L as __pageData,O as default};

View File

@ -1 +1 @@
import{d as y,o as i,c as o,j as e,t as l,k as s,g as r,a3 as p,F as d,B as m,E as u}from"./chunks/framework.D8G7yXPy.js";import{v as f}from"./chunks/theme.B8Or0Yt3.js";const v={class:"ray-home"},g={class:"ray-hero"},b={class:"ray-lead"},M={class:"ray-actions"},w=["href"],k=["href"],x={class:"ray-map","aria-labelledby":"ray-map-title"},T=["href"],B={class:"ray-paths","aria-labelledby":"ray-paths-title"},z=["href","aria-labelledby","aria-describedby"],P={class:"ray-path-icon",viewBox:"0 0 24 24","aria-hidden":"true"},S=["d"],A=["id"],N=["id"],R={class:"ray-showcase","aria-labelledby":"ray-showcase-title"},V={class:"ray-showcase-links"},$=["href"],C=["href"],H=["src"],D=y({__name:"RayHome",setup(_){const n=[{title:"Ray Admin",name:"apps/admin",href:"/guide/layout.html"},{title:"共享包",name:"packages",href:"/guide/architecture.html"},{title:"页内交互",name:"apps/docs",href:"/reference/table-pro.html"}],c=[{title:"第一个业务页面",summary:"添加订单列表、路由和菜单。",href:"/guide/first-page.html",icon:"M6 3.5h8l4 4v13H6z M14 3.5v4h4 M9 12h6 M9 16h6"},{title:"组件与 Hooks",summary:"查找表单、弹窗和常用组合式函数。",href:"/reference/components.html",icon:"M3.5 3.5h7v7h-7z M13.5 3.5h7v7h-7z M3.5 13.5h7v7h-7z M13.5 13.5h7v7h-7z"},{title:"构建与部署",summary:"检查项目并部署到站点子路径。",href:"/guide/tooling.html",icon:"M4 8.5h16v11H4z M4 8.5l3-4h10l3 4 M12 16v-4 M10 14l2-2 2 2"}];return(j,t)=>(i(),o("main",v,[e("header",g,[e("div",null,[t[0]||(t[0]=e("h1",null,"Ray Template",-1)),e("p",b," v"+l(s(f))+" 将 Ray Admin、官网文档和共享包放在同一个工作区。可在文档里直接体验真实组件。 ",1),e("div",M,[e("a",{class:"ray-start",href:s(r)("/guide/start.html")},"快速开始",8,w),e("a",{class:"ray-migrate",href:s(r)("/migration.html")},"v5 与 v6 的版本分界",8,k)])]),e("section",x,[t[1]||(t[1]=p("",2)),e("ul",null,[(i(),o(d,null,m(n,a=>e("li",{key:a.href},[e("a",{href:s(r)(a.href)},[e("span",null,l(a.title),1),e("code",null,l(a.name),1)],8,T)])),64))])])]),e("section",B,[t[3]||(t[3]=e("h2",{id:"ray-paths-title"},"常用文档",-1)),e("ul",null,[(i(),o(d,null,m(c,(a,h)=>e("li",{key:a.href},[e("a",{class:"ray-path",href:s(r)(a.href),"aria-labelledby":`ray-path-title-${h}`,"aria-describedby":`ray-path-summary-${h}`},[e("article",null,[(i(),o("svg",P,[e("path",{d:a.icon},null,8,S)])),e("h3",{id:`ray-path-title-${h}`},l(a.title),9,A),e("p",{id:`ray-path-summary-${h}`},l(a.summary),9,N),t[2]||(t[2]=e("svg",{class:"ray-path-arrow",viewBox:"0 0 24 24","aria-hidden":"true"},[e("path",{d:"M5 12h13m-5-5 5 5-5 5"})],-1))])],8,z)])),64))])]),e("section",R,[e("div",null,[t[4]||(t[4]=e("h2",{id:"ray-showcase-title"},"TablePro 自适应高度",-1)),t[5]||(t[5]=e("p",null,"表格填满可用高度,数据在表内滚动。",-1)),e("div",V,[e("a",{href:s(r)("/reference/table-pro.html")},"TablePro 用法",8,$),e("a",{href:s(r)("/reference/table-pro-examples.html#自适应高度与虚拟滚动")},"在线示例",8,C)])]),e("img",{src:s(r)("/assets/tablepro-auto-height.png"),width:"1440",height:"820",loading:"lazy",alt:"TablePro 自适应高度示例,虚拟滚动已开启,分页位于表格底部"},null,8,H)])]))}}),L=JSON.parse('{"title":"开发者文档","description":"","frontmatter":{"title":"开发者文档","layout":"home","markdownStyles":false},"headers":[],"relativePath":"index.md","filePath":"index.md"}'),E={name:"index.md"},O=Object.assign(E,{setup(_){return(n,c)=>(i(),o("div",null,[u(D)]))}});export{L as __pageData,O as default};
import{d as y,o as i,c as o,j as e,t as l,k as s,g as r,a3 as p,F as d,B as m,E as u}from"./chunks/framework.D8G7yXPy.js";import{v as f}from"./chunks/theme.jIEdD8pU.js";const v={class:"ray-home"},g={class:"ray-hero"},b={class:"ray-lead"},M={class:"ray-actions"},w=["href"],k=["href"],x={class:"ray-map","aria-labelledby":"ray-map-title"},T=["href"],B={class:"ray-paths","aria-labelledby":"ray-paths-title"},z=["href","aria-labelledby","aria-describedby"],P={class:"ray-path-icon",viewBox:"0 0 24 24","aria-hidden":"true"},S=["d"],A=["id"],N=["id"],R={class:"ray-showcase","aria-labelledby":"ray-showcase-title"},V={class:"ray-showcase-links"},$=["href"],C=["href"],H=["src"],D=y({__name:"RayHome",setup(_){const n=[{title:"Ray Admin",name:"apps/admin",href:"/guide/layout.html"},{title:"共享包",name:"packages",href:"/guide/architecture.html"},{title:"页内交互",name:"apps/docs",href:"/reference/table-pro.html"}],c=[{title:"第一个业务页面",summary:"添加订单列表、路由和菜单。",href:"/guide/first-page.html",icon:"M6 3.5h8l4 4v13H6z M14 3.5v4h4 M9 12h6 M9 16h6"},{title:"组件与 Hooks",summary:"查找表单、弹窗和常用组合式函数。",href:"/reference/components.html",icon:"M3.5 3.5h7v7h-7z M13.5 3.5h7v7h-7z M3.5 13.5h7v7h-7z M13.5 13.5h7v7h-7z"},{title:"构建与部署",summary:"检查项目并部署到站点子路径。",href:"/guide/tooling.html",icon:"M4 8.5h16v11H4z M4 8.5l3-4h10l3 4 M12 16v-4 M10 14l2-2 2 2"}];return(j,t)=>(i(),o("main",v,[e("header",g,[e("div",null,[t[0]||(t[0]=e("h1",null,"Ray Template",-1)),e("p",b," v"+l(s(f))+" 将 Ray Admin、官网文档和共享包放在同一个工作区。可在文档里直接体验真实组件。 ",1),e("div",M,[e("a",{class:"ray-start",href:s(r)("/guide/start.html")},"快速开始",8,w),e("a",{class:"ray-migrate",href:s(r)("/migration.html")},"v5 与 v6 的版本分界",8,k)])]),e("section",x,[t[1]||(t[1]=p("",2)),e("ul",null,[(i(),o(d,null,m(n,a=>e("li",{key:a.href},[e("a",{href:s(r)(a.href)},[e("span",null,l(a.title),1),e("code",null,l(a.name),1)],8,T)])),64))])])]),e("section",B,[t[3]||(t[3]=e("h2",{id:"ray-paths-title"},"常用文档",-1)),e("ul",null,[(i(),o(d,null,m(c,(a,h)=>e("li",{key:a.href},[e("a",{class:"ray-path",href:s(r)(a.href),"aria-labelledby":`ray-path-title-${h}`,"aria-describedby":`ray-path-summary-${h}`},[e("article",null,[(i(),o("svg",P,[e("path",{d:a.icon},null,8,S)])),e("h3",{id:`ray-path-title-${h}`},l(a.title),9,A),e("p",{id:`ray-path-summary-${h}`},l(a.summary),9,N),t[2]||(t[2]=e("svg",{class:"ray-path-arrow",viewBox:"0 0 24 24","aria-hidden":"true"},[e("path",{d:"M5 12h13m-5-5 5 5-5 5"})],-1))])],8,z)])),64))])]),e("section",R,[e("div",null,[t[4]||(t[4]=e("h2",{id:"ray-showcase-title"},"TablePro 自适应高度",-1)),t[5]||(t[5]=e("p",null,"表格填满可用高度,数据在表内滚动。",-1)),e("div",V,[e("a",{href:s(r)("/reference/table-pro.html")},"TablePro 用法",8,$),e("a",{href:s(r)("/reference/table-pro-examples.html#自适应高度与虚拟滚动")},"在线示例",8,C)])]),e("img",{src:s(r)("/assets/tablepro-auto-height.png"),width:"1440",height:"820",loading:"lazy",alt:"TablePro 自适应高度示例,虚拟滚动已开启,分页位于表格底部"},null,8,H)])]))}}),L=JSON.parse('{"title":"开发者文档","description":"","frontmatter":{"title":"开发者文档","layout":"home","markdownStyles":false},"headers":[],"relativePath":"index.md","filePath":"index.md"}'),E={name:"index.md"},O=Object.assign(E,{setup(_){return(n,c)=>(i(),o("div",null,[u(D)]))}});export{L as __pageData,O as default};

View File

@ -1,2 +1,2 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chunks/ShellDemo.Bq7lX_OH.js","assets/chunks/Icon.CEJcCL76.js","assets/chunks/light.BQgF5P5u.js","assets/chunks/framework.D8G7yXPy.js","assets/chunks/isSymbol.rCNNreax.js","assets/chunks/element.mIVMEYq_.js","assets/chunks/DemoFrame.vue_vue_type_script_setup_true_lang.BibqOSJQ.js","assets/chunks/index.DNzt2uky.js","assets/chunks/InputNumber.BZdsfOd3.js","assets/chunks/Dropdown.5gd1V6-R.js","assets/chunks/use-compitable.BN_sOfeF.js","assets/chunks/Flex.COpi4oCF.js","assets/chunks/manifest.BYArtw7Y.js"])))=>i.map(i=>d[i]);
import{o as a,c as t,E as l,k as o,a7 as r,V as s}from"./chunks/framework.D8G7yXPy.js";const p=JSON.parse('{"title":"","description":"","frontmatter":{"layout":"page","navbar":false,"sidebar":false,"footer":false},"headers":[],"relativePath":"playground/shell.md","filePath":"playground/shell.md"}'),n={name:"playground/shell.md"},f=Object.assign(n,{setup(_){const e=r(()=>s(()=>import("./chunks/ShellDemo.Bq7lX_OH.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12])));return(d,c)=>(a(),t("div",null,[l(o(e))]))}});export{p as __pageData,f as default};
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chunks/ShellDemo.CnI2pg2K.js","assets/chunks/Icon.GjDzw7hq.js","assets/chunks/light.BQgF5P5u.js","assets/chunks/framework.D8G7yXPy.js","assets/chunks/isSymbol.rCNNreax.js","assets/chunks/element.mIVMEYq_.js","assets/chunks/DemoFrame.vue_vue_type_script_setup_true_lang.BibqOSJQ.js","assets/chunks/index.DNzt2uky.js","assets/chunks/InputNumber.sEhyCGw4.js","assets/chunks/Dropdown.n_ZgEzUa.js","assets/chunks/use-compitable.BN_sOfeF.js","assets/chunks/Flex.CP8YxQjX.js","assets/chunks/manifest.BoLhpUE-.js"])))=>i.map(i=>d[i]);
import{o as a,c as t,E as l,k as o,a7 as r,V as s}from"./chunks/framework.D8G7yXPy.js";const p=JSON.parse('{"title":"","description":"","frontmatter":{"layout":"page","navbar":false,"sidebar":false,"footer":false},"headers":[],"relativePath":"playground/shell.md","filePath":"playground/shell.md"}'),n={name:"playground/shell.md"},f=Object.assign(n,{setup(_){const e=r(()=>s(()=>import("./chunks/ShellDemo.CnI2pg2K.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12])));return(d,c)=>(a(),t("div",null,[l(o(e))]))}});export{p as __pageData,f as default};

View File

@ -1,2 +1,2 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chunks/ShellDemo.Bq7lX_OH.js","assets/chunks/Icon.CEJcCL76.js","assets/chunks/light.BQgF5P5u.js","assets/chunks/framework.D8G7yXPy.js","assets/chunks/isSymbol.rCNNreax.js","assets/chunks/element.mIVMEYq_.js","assets/chunks/DemoFrame.vue_vue_type_script_setup_true_lang.BibqOSJQ.js","assets/chunks/index.DNzt2uky.js","assets/chunks/InputNumber.BZdsfOd3.js","assets/chunks/Dropdown.5gd1V6-R.js","assets/chunks/use-compitable.BN_sOfeF.js","assets/chunks/Flex.COpi4oCF.js","assets/chunks/manifest.BYArtw7Y.js"])))=>i.map(i=>d[i]);
import{o as a,c as t,E as l,k as o,a7 as r,V as s}from"./chunks/framework.D8G7yXPy.js";const p=JSON.parse('{"title":"","description":"","frontmatter":{"layout":"page","navbar":false,"sidebar":false,"footer":false},"headers":[],"relativePath":"playground/shell.md","filePath":"playground/shell.md"}'),n={name:"playground/shell.md"},f=Object.assign(n,{setup(_){const e=r(()=>s(()=>import("./chunks/ShellDemo.Bq7lX_OH.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12])));return(d,c)=>(a(),t("div",null,[l(o(e))]))}});export{p as __pageData,f as default};
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chunks/ShellDemo.CnI2pg2K.js","assets/chunks/Icon.GjDzw7hq.js","assets/chunks/light.BQgF5P5u.js","assets/chunks/framework.D8G7yXPy.js","assets/chunks/isSymbol.rCNNreax.js","assets/chunks/element.mIVMEYq_.js","assets/chunks/DemoFrame.vue_vue_type_script_setup_true_lang.BibqOSJQ.js","assets/chunks/index.DNzt2uky.js","assets/chunks/InputNumber.sEhyCGw4.js","assets/chunks/Dropdown.n_ZgEzUa.js","assets/chunks/use-compitable.BN_sOfeF.js","assets/chunks/Flex.CP8YxQjX.js","assets/chunks/manifest.BoLhpUE-.js"])))=>i.map(i=>d[i]);
import{o as a,c as t,E as l,k as o,a7 as r,V as s}from"./chunks/framework.D8G7yXPy.js";const p=JSON.parse('{"title":"","description":"","frontmatter":{"layout":"page","navbar":false,"sidebar":false,"footer":false},"headers":[],"relativePath":"playground/shell.md","filePath":"playground/shell.md"}'),n={name:"playground/shell.md"},f=Object.assign(n,{setup(_){const e=r(()=>s(()=>import("./chunks/ShellDemo.CnI2pg2K.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12])));return(d,c)=>(a(),t("div",null,[l(o(e))]))}});export{p as __pageData,f as default};

View File

@ -1 +1 @@
import{_ as e,o,c as d,a3 as r}from"./chunks/framework.D8G7yXPy.js";const f=JSON.parse('{"title":"组件","description":"","frontmatter":{},"headers":[],"relativePath":"reference/components.md","filePath":"reference/components.md"}'),a={name:"reference/components.md"};function c(n,t,p,s,m,l){return o(),d("div",null,[...t[0]||(t[0]=[r('<h1 id="组件" tabindex="-1">组件 <a class="header-anchor" href="#组件" aria-label="Permalink to &quot;组件&quot;">​</a></h1><p>通用组件从 <code>@ray-template/ui</code> 导入,也可用 <code>/table-pro</code>、<code>/barcode</code> 等子路径按需加载。Ray Admin 内可以使用 <code>@/components</code>。路由过渡位于 <code>@ray-template/admin-shell</code>,由应用接入当前路由和缓存状态。许多组件包装 Naive UI:本文列出模板添加、改写或消费的属性、插槽和事件,原始控件的其余能力以锁定依赖的类型为准。</p><table tabindex="0"><thead><tr><th>组件</th><th>Props 类型</th><th>主要用途</th></tr></thead><tbody><tr><td><a href="./table-pro.html">RTablePro</a></td><td><code>TableProProps</code></td><td>纯表格、远端查询、自适应高度、列设置、导出及可选打印</td></tr><tr><td><a href="./components/form.html">RForm</a></td><td><code>FormProps</code></td><td>表单加载、校验、重置和键盘提交</td></tr><tr><td><a href="./components/modal.html">RModal</a></td><td><code>ModalProps</code></td><td>受控弹窗、预设宽度和全屏卡片</td></tr><tr><td><a href="./components/chart.html">RChart</a></td><td><code>ChartProps</code></td><td>ECharts 初始化、主题和导出</td></tr><tr><td><a href="./components/flow.html">RFlow</a></td><td><code>FlowProps</code></td><td>LogicFlow 流程图与只读切换</td></tr><tr><td><a href="./components/collapse-grid.html">RCollapseGrid</a></td><td><code>CollapseGridProps</code></td><td>可折叠筛选区及操作列</td></tr><tr><td><a href="./components/segment.html">RSegment</a></td><td><code>SegmentProps</code></td><td>分段选项、图标和提示</td></tr><tr><td><a href="./components/more-dropdown.html">RMoreDropdown</a></td><td><code>MoreDropdownProps</code></td><td>图标菜单、行操作</td></tr><tr><td><a href="./components/iframe.html">RIframe</a></td><td><code>IframeProps</code></td><td>外部页面与加载状态</td></tr><tr><td><a href="./components/barcode.html">RBarcode</a></td><td><code>BarcodeProps</code></td><td>Canvas / SVG 条码</td></tr><tr><td><a href="./components/draggable-card.html">RDraggableCard</a></td><td><code>DefaultPosition</code>(位置类型)</td><td>可拖动卡片与拖动边界</td></tr><tr><td><a href="./components/route-transition.html">RTransitionComponent</a></td><td><code>TransitionComponentProps</code></td><td>路由过渡与 KeepAlive</td></tr><tr><td><a href="./icons.html#ricon-api">RIcon</a></td><td><code>IconProps</code></td><td>类型化 SVG 雪碧图</td></tr></tbody></table><p><a href="./components/app.html">应用组件与 Provider</a> 使用模板的状态、主题或路由,按文件导入。<a href="./components/qr-code.html">二维码</a> 使用 <code>vue3-next-qrcode</code>,不属于 <code>@/components</code> 的导出。</p><p>组件实现、样式和类型放在同一个组件目录。组件属性对象也有具名导出,例如 <code>formProps</code>、<code>modalProps</code>、<code>chartProps</code>;业务代码通常直接使用组件和公开 Props 类型。<code>TablePro</code> 统一使用组件 ref 获取实例,<code>RForm</code>、<code>RChart</code>、<code>RFlow</code> 使用各自的 <code>onRegister</code> 契约。</p><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/packages/ui/src/index.ts" target="_blank" rel="noreferrer">公开导出</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/apps/admin/src/components/README.md" target="_blank" rel="noreferrer">组件约定</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/tree/22c9f55f27f137ce4afe6989497739285f20f7d3/apps/admin/src/views/demo" target="_blank" rel="noreferrer">示例源码</a></p>',6)])])}const i=e(a,[["render",c]]);export{f as __pageData,i as default};
import{_ as e,o,c as d,a3 as r}from"./chunks/framework.D8G7yXPy.js";const f=JSON.parse('{"title":"组件","description":"","frontmatter":{},"headers":[],"relativePath":"reference/components.md","filePath":"reference/components.md"}'),a={name:"reference/components.md"};function c(n,t,p,s,m,l){return o(),d("div",null,[...t[0]||(t[0]=[r('<h1 id="组件" tabindex="-1">组件 <a class="header-anchor" href="#组件" aria-label="Permalink to &quot;组件&quot;">​</a></h1><p>通用组件从 <code>@ray-template/ui</code> 导入,也可用 <code>/table-pro</code>、<code>/barcode</code> 等子路径按需加载。Ray Admin 内可以使用 <code>@/components</code>。路由过渡位于 <code>@ray-template/admin-shell</code>,由应用接入当前路由和缓存状态。许多组件包装 Naive UI:本文列出模板添加、改写或消费的属性、插槽和事件,原始控件的其余能力以锁定依赖的类型为准。</p><table tabindex="0"><thead><tr><th>组件</th><th>Props 类型</th><th>主要用途</th></tr></thead><tbody><tr><td><a href="./table-pro.html">RTablePro</a></td><td><code>TableProProps</code></td><td>纯表格、远端查询、自适应高度、列设置、导出及可选打印</td></tr><tr><td><a href="./components/form.html">RForm</a></td><td><code>FormProps</code></td><td>表单加载、校验、重置和键盘提交</td></tr><tr><td><a href="./components/modal.html">RModal</a></td><td><code>ModalProps</code></td><td>受控弹窗、预设宽度和全屏卡片</td></tr><tr><td><a href="./components/chart.html">RChart</a></td><td><code>ChartProps</code></td><td>ECharts 初始化、主题和导出</td></tr><tr><td><a href="./components/flow.html">RFlow</a></td><td><code>FlowProps</code></td><td>LogicFlow 流程图与只读切换</td></tr><tr><td><a href="./components/collapse-grid.html">RCollapseGrid</a></td><td><code>CollapseGridProps</code></td><td>可折叠筛选区及操作列</td></tr><tr><td><a href="./components/segment.html">RSegment</a></td><td><code>SegmentProps</code></td><td>分段选项、图标和提示</td></tr><tr><td><a href="./components/more-dropdown.html">RMoreDropdown</a></td><td><code>MoreDropdownProps</code></td><td>图标菜单、行操作</td></tr><tr><td><a href="./components/iframe.html">RIframe</a></td><td><code>IframeProps</code></td><td>外部页面与加载状态</td></tr><tr><td><a href="./components/barcode.html">RBarcode</a></td><td><code>BarcodeProps</code></td><td>Canvas / SVG 条码</td></tr><tr><td><a href="./components/draggable-card.html">RDraggableCard</a></td><td><code>DefaultPosition</code>(位置类型)</td><td>可拖动卡片与拖动边界</td></tr><tr><td><a href="./components/route-transition.html">RTransitionComponent</a></td><td><code>TransitionComponentProps</code></td><td>路由过渡与 KeepAlive</td></tr><tr><td><a href="./icons.html#ricon-api">RIcon</a></td><td><code>IconProps</code></td><td>类型化 SVG 雪碧图</td></tr></tbody></table><p><a href="./components/app.html">应用组件与 Provider</a> 使用模板的状态、主题或路由,按文件导入。<a href="./components/qr-code.html">二维码</a> 使用 <code>vue3-next-qrcode</code>,不属于 <code>@/components</code> 的导出。</p><p>组件实现、样式和类型放在同一个组件目录。组件属性对象也有具名导出,例如 <code>formProps</code>、<code>modalProps</code>、<code>chartProps</code>;业务代码通常直接使用组件和公开 Props 类型。<code>TablePro</code> 统一使用组件 ref 获取实例,<code>RForm</code>、<code>RChart</code>、<code>RFlow</code> 使用各自的 <code>onRegister</code> 契约。</p><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/packages/ui/src/index.ts" target="_blank" rel="noreferrer">公开导出</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/apps/admin/src/components/README.md" target="_blank" rel="noreferrer">组件约定</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/tree/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/apps/admin/src/views/demo" target="_blank" rel="noreferrer">示例源码</a></p>',6)])])}const i=e(a,[["render",c]]);export{f as __pageData,i as default};

View File

@ -1,4 +1,4 @@
import{_ as a}from"./chunks/AdminExample.vue_vue_type_script_setup_true_lang.wPcM-fsm.js";import{o as n,c as h,a3 as i,E as k}from"./chunks/framework.D8G7yXPy.js";const r=JSON.parse('{"title":"应用组件与 Provider","description":"","frontmatter":{},"headers":[],"relativePath":"reference/components/app.md","filePath":"reference/components/app.md"}'),p={name:"reference/components/app.md"},d=Object.assign(p,{setup(l){return(t,s)=>(n(),h("div",null,[s[0]||(s[0]=i('<h1 id="应用组件与-provider" tabindex="-1">应用组件与 Provider <a class="header-anchor" href="#应用组件与-provider" aria-label="Permalink to &quot;应用组件与 Provider&quot;">​</a></h1><p>这些组件按文件默认导入,例如 <code>import AppPageHeader from &#39;@/app-components/app/AppPageHeader&#39;</code>。它们依赖应用 Store、路由或 DOM,按默认 <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/apps/admin/src/App.tsx" target="_blank" rel="noreferrer">App 挂载顺序</a>集成。</p><h2 id="后台上下文示例" tabindex="-1">后台上下文示例 <a class="header-anchor" href="#后台上下文示例" aria-label="Permalink to &quot;后台上下文示例&quot;">​</a></h2><p>这个预览运行后台的工作台和布局。在侧栏进入「模板 Hooks」,可以切换主题、水印、布局加载和菜单状态。版本提示、请求取消等 Provider 属于应用初始化流程,接入顺序见下表。</p>',4)),k(a,{path:"/dashboard",title:"后台工作台、布局与 Provider",layout:""}),s[1]||(s[1]=i(`<details class="details custom-block"><summary>查看预览入口与工作台源码</summary><div class="language-tsx vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">tsx</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">import</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &#39;./styles/entry&#39;</span></span>
import{_ as a}from"./chunks/AdminExample.vue_vue_type_script_setup_true_lang.wPcM-fsm.js";import{o as n,c as h,a3 as i,E as k}from"./chunks/framework.D8G7yXPy.js";const r=JSON.parse('{"title":"应用组件与 Provider","description":"","frontmatter":{},"headers":[],"relativePath":"reference/components/app.md","filePath":"reference/components/app.md"}'),p={name:"reference/components/app.md"},d=Object.assign(p,{setup(l){return(t,s)=>(n(),h("div",null,[s[0]||(s[0]=i('<h1 id="应用组件与-provider" tabindex="-1">应用组件与 Provider <a class="header-anchor" href="#应用组件与-provider" aria-label="Permalink to &quot;应用组件与 Provider&quot;">​</a></h1><p>这些组件按文件默认导入,例如 <code>import AppPageHeader from &#39;@/app-components/app/AppPageHeader&#39;</code>。它们依赖应用 Store、路由或 DOM,按默认 <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/apps/admin/src/App.tsx" target="_blank" rel="noreferrer">App 挂载顺序</a>集成。</p><h2 id="后台上下文示例" tabindex="-1">后台上下文示例 <a class="header-anchor" href="#后台上下文示例" aria-label="Permalink to &quot;后台上下文示例&quot;">​</a></h2><p>这个预览运行后台的工作台和布局。在侧栏进入「模板 Hooks」,可以切换主题、水印、布局加载和菜单状态。版本提示、请求取消等 Provider 属于应用初始化流程,接入顺序见下表。</p>',4)),k(a,{path:"/dashboard",title:"后台工作台、布局与 Provider",layout:""}),s[1]||(s[1]=i(`<details class="details custom-block"><summary>查看预览入口与工作台源码</summary><div class="language-tsx vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">tsx</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">import</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &#39;./styles/entry&#39;</span></span>
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">import</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> { apiMockEnabled } </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">from</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &#39;@/api/admin/client&#39;</span></span>
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">import</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> AppNaiveGlobalProvider </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">from</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &#39;@/app-components/provider/AppNaiveGlobalProvider&#39;</span></span>
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">import</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> AppStyleProvider </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">from</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &#39;@/app-components/provider/AppStyleProvider&#39;</span></span>
@ -342,4 +342,4 @@ import{_ as a}from"./chunks/AdminExample.vue_vue_type_script_setup_true_lang.wPc
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> 新建订单</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> &lt;/</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">NButton</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&gt;</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> &lt;/</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">AppPageHeader</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&gt;</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">)</span></span></code></pre></div><h2 id="provider" tabindex="-1">Provider <a class="header-anchor" href="#provider" aria-label="Permalink to &quot;Provider&quot;">​</a></h2><table tabindex="0"><thead><tr><th>Provider</th><th>职责与调用时机</th></tr></thead><tbody><tr><td><code>AppNaiveGlobalProvider</code></td><td>包裹默认插槽并同步明暗、主题覆盖、UI locale 和日期 locale。提供 Message、Dialog、Modal、Notification、LoadingBar 等上下文,并建立 <code>window.$message</code>、<code>$dialog</code>、<code>$notification</code>、<code>$loadingBar</code>。离散 API 在 Provider 初始化后可用,卸载时释放;不要在模块顶层提前调用。</td></tr><tr><td><code>AppStyleProvider</code></td><td>同步 HTML 明暗类、CSS 主色和窗口尺寸变量,结束首屏加载动画。应用主题应通过设置方法更新。</td></tr><tr><td><code>AppVersionProvider</code></td><td>启动时比较构建版本与本地版本。第一次写入缓存,变化时提示,确认会走退出并刷新;取消关闭提示。</td></tr><tr><td><code>AppWatermarkProvider</code></td><td>按设置渲染全屏 Naive UI 水印;独立页面如需局部水印可自行在目标区域使用 <code>NWatermark</code>。</td></tr><tr><td><code>AppRequestCancelerProvider</code></td><td>默认布局内容的路由更新钩子会取消模板管理的请求。替换内容插槽时,根据实际导航方式保留取消行为。</td></tr></tbody></table><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/apps/admin/src/app-components/README.md" target="_blank" rel="noreferrer">应用组件说明</a> · <a href="./../../guide/layout.html">布局配置</a> · <a href="./../store.html">Store</a> · <a href="./../../guide/requests.html">请求取消</a></p>`,7))]))}});export{r as __pageData,d as default};
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">)</span></span></code></pre></div><h2 id="provider" tabindex="-1">Provider <a class="header-anchor" href="#provider" aria-label="Permalink to &quot;Provider&quot;">​</a></h2><table tabindex="0"><thead><tr><th>Provider</th><th>职责与调用时机</th></tr></thead><tbody><tr><td><code>AppNaiveGlobalProvider</code></td><td>包裹默认插槽并同步明暗、主题覆盖、UI locale 和日期 locale。提供 Message、Dialog、Modal、Notification、LoadingBar 等上下文,并建立 <code>window.$message</code>、<code>$dialog</code>、<code>$notification</code>、<code>$loadingBar</code>。离散 API 在 Provider 初始化后可用,卸载时释放;不要在模块顶层提前调用。</td></tr><tr><td><code>AppStyleProvider</code></td><td>同步 HTML 明暗类、CSS 主色和窗口尺寸变量,结束首屏加载动画。应用主题应通过设置方法更新。</td></tr><tr><td><code>AppVersionProvider</code></td><td>启动时比较构建版本与本地版本。第一次写入缓存,变化时提示,确认会走退出并刷新;取消关闭提示。</td></tr><tr><td><code>AppWatermarkProvider</code></td><td>按设置渲染全屏 Naive UI 水印;独立页面如需局部水印可自行在目标区域使用 <code>NWatermark</code>。</td></tr><tr><td><code>AppRequestCancelerProvider</code></td><td>默认布局内容的路由更新钩子会取消模板管理的请求。替换内容插槽时,根据实际导航方式保留取消行为。</td></tr></tbody></table><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/apps/admin/src/app-components/README.md" target="_blank" rel="noreferrer">应用组件说明</a> · <a href="./../../guide/layout.html">布局配置</a> · <a href="./../store.html">Store</a> · <a href="./../../guide/requests.html">请求取消</a></p>`,7))]))}});export{r as __pageData,d as default};

View File

@ -102,4 +102,4 @@ import{o as n,c as t,a3 as i,E as h,k,a7 as l,V as p}from"./chunks/framework.D8G
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> options</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">{{ displayValue: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">true</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, height: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">60</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> }}</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> onError</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">{(</span><span style="--shiki-light:#E36209;--shiki-dark:#FFAB70;">error</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">) </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=&gt;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> console.</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">error</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;条码格式无效&#39;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, error)}</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> /&gt;</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">)</span></span></code></pre></div><table tabindex="0"><thead><tr><th>属性</th><th>默认</th><th>说明</th></tr></thead><tbody><tr><td><code>text</code></td><td>无</td><td>条码文本。留空或传入不符合格式的值时可能渲染失败。</td></tr><tr><td><code>format</code></td><td><code>&#39;CODE128&#39;</code></td><td>条码制式,覆盖 <code>options.format</code>。</td></tr><tr><td><code>barcodeRender</code></td><td><code>&#39;canvas&#39;</code></td><td><code>canvas</code> 或 <code>svg</code>。</td></tr><tr><td><code>options</code></td><td><code>{}</code></td><td>JsBarcode options,如 <code>displayValue</code>、<code>lineColor</code>、<code>margin</code>、条宽和条高。</td></tr><tr><td><code>width</code> / <code>height</code></td><td><code>&#39;auto&#39;</code></td><td>显示尺寸,数字按像素。与 <code>options</code> 中条码自身的条宽、条高不同。</td></tr><tr><td><code>responsive</code></td><td><code>false</code></td><td>监听容器尺寸;用 <code>width=&quot;responsive&quot;</code> 或 <code>height=&quot;responsive&quot;</code> 让对应尺寸随容器调整。</td></tr><tr><td><code>watchText</code></td><td><code>true</code></td><td>文本变化时重绘。<code>format</code>、<code>options</code>(包括响应式嵌套字段)、尺寸和渲染介质变化也会自动重绘,无需更换 <code>key</code>。</td></tr><tr><td><code>loading</code></td><td><code>false</code></td><td>控制 Spin;调用方负责开关。</td></tr></tbody></table><p><code>onSuccess(text, format, options)</code>、<code>onError(error)</code>、<code>onFinally()</code> 支持函数或回调数组。成功回调收到原始 options;组件响应式调整的条宽和条高不写回该对象。绘制异常通过 <code>onError</code> 通知,业务代码可据此提示或清理旧预览。</p><p>支持 <code>CODE39</code>、<code>CODE128</code> 及 <code>A/B/C</code> 变体、<code>EAN13/EAN8/EAN5/EAN2</code>、<code>UPC</code>、<code>ITF14/ITF</code>、<code>MSI/MSI10/MSI11/MSI1010/MSI1110</code>、<code>pharmacode</code>、<code>codabar</code>。使用 EAN 或 UPC 前验证输入长度和校验位。打印后是否可扫取决于设备和成品尺寸。</p><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/packages/ui/src/RBarcode/src/Barcode.tsx" target="_blank" rel="noreferrer">组件实现</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/packages/ui/src/RBarcode/src/types.ts" target="_blank" rel="noreferrer">制式和选项类型</a></p>`,7))]))}});export{g as __pageData,y as default};
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">)</span></span></code></pre></div><table tabindex="0"><thead><tr><th>属性</th><th>默认</th><th>说明</th></tr></thead><tbody><tr><td><code>text</code></td><td>无</td><td>条码文本。留空或传入不符合格式的值时可能渲染失败。</td></tr><tr><td><code>format</code></td><td><code>&#39;CODE128&#39;</code></td><td>条码制式,覆盖 <code>options.format</code>。</td></tr><tr><td><code>barcodeRender</code></td><td><code>&#39;canvas&#39;</code></td><td><code>canvas</code> 或 <code>svg</code>。</td></tr><tr><td><code>options</code></td><td><code>{}</code></td><td>JsBarcode options,如 <code>displayValue</code>、<code>lineColor</code>、<code>margin</code>、条宽和条高。</td></tr><tr><td><code>width</code> / <code>height</code></td><td><code>&#39;auto&#39;</code></td><td>显示尺寸,数字按像素。与 <code>options</code> 中条码自身的条宽、条高不同。</td></tr><tr><td><code>responsive</code></td><td><code>false</code></td><td>监听容器尺寸;用 <code>width=&quot;responsive&quot;</code> 或 <code>height=&quot;responsive&quot;</code> 让对应尺寸随容器调整。</td></tr><tr><td><code>watchText</code></td><td><code>true</code></td><td>文本变化时重绘。<code>format</code>、<code>options</code>(包括响应式嵌套字段)、尺寸和渲染介质变化也会自动重绘,无需更换 <code>key</code>。</td></tr><tr><td><code>loading</code></td><td><code>false</code></td><td>控制 Spin;调用方负责开关。</td></tr></tbody></table><p><code>onSuccess(text, format, options)</code>、<code>onError(error)</code>、<code>onFinally()</code> 支持函数或回调数组。成功回调收到原始 options;组件响应式调整的条宽和条高不写回该对象。绘制异常通过 <code>onError</code> 通知,业务代码可据此提示或清理旧预览。</p><p>支持 <code>CODE39</code>、<code>CODE128</code> 及 <code>A/B/C</code> 变体、<code>EAN13/EAN8/EAN5/EAN2</code>、<code>UPC</code>、<code>ITF14/ITF</code>、<code>MSI/MSI10/MSI11/MSI1010/MSI1110</code>、<code>pharmacode</code>、<code>codabar</code>。使用 EAN 或 UPC 前验证输入长度和校验位。打印后是否可扫取决于设备和成品尺寸。</p><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/packages/ui/src/RBarcode/src/Barcode.tsx" target="_blank" rel="noreferrer">组件实现</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/packages/ui/src/RBarcode/src/types.ts" target="_blank" rel="noreferrer">制式和选项类型</a></p>`,7))]))}});export{g as __pageData,y as default};

View File

@ -1,4 +1,4 @@
import{g as cs,c as R}from"./chunks/element.mIVMEYq_.js";import{c as n,a as r,b as gs,d as y,e as d,i as ys,f as Fs,u as $,n as E,g as u,h as us,j as ms,k as z}from"./chunks/light.BQgF5P5u.js";import{r as v,e as B,c as Cs,u as fs,a as bs,B as vs,_ as Bs}from"./chunks/DemoFrame.vue_vue_type_script_setup_true_lang.BibqOSJQ.js";import{C as Ds,F as xs,I as As}from"./chunks/Flex.COpi4oCF.js";import{S as _s,R as Ss}from"./chunks/Icon.CEJcCL76.js";import{d as G,o as F,b as S,w as C,c as m,N as D,j as q,h as x,E as c,K as zs,p as N,s as qs,u as Ns,k as _,F as Gs,B as Rs,a as Is,t as I,a8 as Ts,C as ws,a3 as T}from"./chunks/framework.D8G7yXPy.js";import{g as $s,G as Ps,a as P}from"./chunks/Grid.DS32iAPb.js";import"./chunks/isSymbol.rCNNreax.js";const w=r("card-content",`
import{g as cs,c as R}from"./chunks/element.mIVMEYq_.js";import{c as n,a as r,b as gs,d as y,e as d,i as ys,f as Fs,u as $,n as E,g as u,h as us,j as ms,k as z}from"./chunks/light.BQgF5P5u.js";import{r as v,e as B,c as Cs,u as fs,a as bs,B as vs,_ as Bs}from"./chunks/DemoFrame.vue_vue_type_script_setup_true_lang.BibqOSJQ.js";import{C as Ds,F as xs,I as As}from"./chunks/Flex.CP8YxQjX.js";import{S as _s,R as Ss}from"./chunks/Icon.GjDzw7hq.js";import{d as G,o as F,b as S,w as C,c as m,N as D,j as q,h as x,E as c,K as zs,p as N,s as qs,u as Ns,k as _,F as Gs,B as Rs,a as Is,t as I,a8 as Ts,C as ws,a3 as T}from"./chunks/framework.D8G7yXPy.js";import{g as $s,G as Ps,a as P}from"./chunks/Grid.B1c9i2c6.js";import"./chunks/isSymbol.rCNNreax.js";const w=r("card-content",`
flex: 1;
min-width: 0;
box-sizing: border-box;
@ -214,4 +214,4 @@ import{g as cs,c as R}from"./chunks/element.mIVMEYq_.js";import{c as n,a as r,b
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> &lt;/</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">RCollapseGrid</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&gt;</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> )</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> },</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">})</span></span></code></pre></div><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/packages/ui/src/RCollapseGrid/src/index.tsx" target="_blank" rel="noreferrer">组件实现</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/packages/ui/src/RCollapseGrid/src/props.ts" target="_blank" rel="noreferrer">Props</a></p>`,6))])}}});export{ti as __pageData,ei as default};
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">})</span></span></code></pre></div><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/packages/ui/src/RCollapseGrid/src/index.tsx" target="_blank" rel="noreferrer">组件实现</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/packages/ui/src/RCollapseGrid/src/props.ts" target="_blank" rel="noreferrer">Props</a></p>`,6))])}}});export{ti as __pageData,ei as default};

View File

@ -1,4 +1,4 @@
import{g as cs,c as R}from"./chunks/element.mIVMEYq_.js";import{c as n,a as r,b as gs,d as y,e as d,i as ys,f as Fs,u as $,n as E,g as u,h as us,j as ms,k as z}from"./chunks/light.BQgF5P5u.js";import{r as v,e as B,c as Cs,u as fs,a as bs,B as vs,_ as Bs}from"./chunks/DemoFrame.vue_vue_type_script_setup_true_lang.BibqOSJQ.js";import{C as Ds,F as xs,I as As}from"./chunks/Flex.COpi4oCF.js";import{S as _s,R as Ss}from"./chunks/Icon.CEJcCL76.js";import{d as G,o as F,b as S,w as C,c as m,N as D,j as q,h as x,E as c,K as zs,p as N,s as qs,u as Ns,k as _,F as Gs,B as Rs,a as Is,t as I,a8 as Ts,C as ws,a3 as T}from"./chunks/framework.D8G7yXPy.js";import{g as $s,G as Ps,a as P}from"./chunks/Grid.DS32iAPb.js";import"./chunks/isSymbol.rCNNreax.js";const w=r("card-content",`
import{g as cs,c as R}from"./chunks/element.mIVMEYq_.js";import{c as n,a as r,b as gs,d as y,e as d,i as ys,f as Fs,u as $,n as E,g as u,h as us,j as ms,k as z}from"./chunks/light.BQgF5P5u.js";import{r as v,e as B,c as Cs,u as fs,a as bs,B as vs,_ as Bs}from"./chunks/DemoFrame.vue_vue_type_script_setup_true_lang.BibqOSJQ.js";import{C as Ds,F as xs,I as As}from"./chunks/Flex.CP8YxQjX.js";import{S as _s,R as Ss}from"./chunks/Icon.GjDzw7hq.js";import{d as G,o as F,b as S,w as C,c as m,N as D,j as q,h as x,E as c,K as zs,p as N,s as qs,u as Ns,k as _,F as Gs,B as Rs,a as Is,t as I,a8 as Ts,C as ws,a3 as T}from"./chunks/framework.D8G7yXPy.js";import{g as $s,G as Ps,a as P}from"./chunks/Grid.B1c9i2c6.js";import"./chunks/isSymbol.rCNNreax.js";const w=r("card-content",`
flex: 1;
min-width: 0;
box-sizing: border-box;

View File

@ -99,4 +99,4 @@ import{_ as a}from"./chunks/AdminExample.vue_vue_type_script_setup_true_lang.wPc
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> &gt;</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> 拖动标题可移动此卡片</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> &lt;/</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">RDraggableCard</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&gt;</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">)</span></span></code></pre></div><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/packages/ui/src/RDraggableCard/DraggableCard.tsx" target="_blank" rel="noreferrer">组件源码</a></p>`,3))]))}});export{d as __pageData,r as default};
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">)</span></span></code></pre></div><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/packages/ui/src/RDraggableCard/DraggableCard.tsx" target="_blank" rel="noreferrer">组件源码</a></p>`,3))]))}});export{d as __pageData,r as default};

View File

@ -121,4 +121,4 @@ import{_ as a}from"./chunks/AdminExample.vue_vue_type_script_setup_true_lang.wPc
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> onRegister</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">{(</span><span style="--shiki-light:#E36209;--shiki-dark:#FFAB70;">instance</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">) </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=&gt;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> instance.</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">render</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(graph)}</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> /&gt;</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> ),</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">})</span></span></code></pre></div><table tabindex="0"><thead><tr><th>属性</th><th>默认</th><th>说明</th></tr></thead><tbody><tr><td><code>width</code> / <code>height</code></td><td><code>&#39;100%&#39;</code></td><td>容器尺寸,需要可计算的高度。</td></tr><tr><td><code>data</code></td><td>无</td><td>首次挂载和后续引用变化时渲染,清空为 <code>undefined</code> 时恢复空图;嵌套原地修改不触发。</td></tr><tr><td><code>watchData</code></td><td><code>true</code></td><td>是否监听传入数据。关闭后可从实例控制重绘。</td></tr><tr><td><code>readonly</code></td><td><code>false</code></td><td>启用 LogicFlow 静默模式;退出时恢复进入前的交互和键盘配置,不会强行打开调用方禁用的能力。</td></tr><tr><td><code>options</code></td><td>网格开、<code>partial: false</code>、键盘开</td><td>LogicFlow 初始化配置,包括尺寸、背景、键盘、边、交互、历史和插件等。<code>container</code> 由组件管理。</td></tr><tr><td><code>use</code></td><td>无</td><td>每个组件初始化前注册自己的 LogicFlow 全局插件列表,由库按名称去重。实例级插件可用 <code>options.plugins</code>。</td></tr><tr><td><code>onRegister(instance)</code></td><td>无</td><td>挂载后取得 LogicFlow,支持回调数组。</td></tr></tbody></table><p><code>FlowOptions</code> 支持的字段按用途分组:</p><ul><li>画布与布局:<code>width</code>、<code>height</code>、<code>background</code>、<code>grid</code>、<code>partial</code>、<code>style</code>、<code>overlapMode</code>。</li><li>交互:<code>keyboard</code>、<code>adjustEdge</code>、<code>allowRotate</code>、<code>allowResize</code>、<code>isSilentMode</code>、<code>stopScrollGraph</code>、<code>stopZoomGraph</code>、<code>stopMoveGraph</code>、<code>textEdit</code>、<code>textMode</code>、<code>edgeTextMode</code>、<code>nodeTextMode</code>、<code>guards</code>。</li><li>边和渲染:<code>edgeType</code>、<code>customTrajectory</code>、<code>animation</code>、<code>history</code>、<code>outline</code>、<code>snapline</code>。</li><li>扩展:<code>plugins</code>、<code>pluginsOptions</code>、<code>disabledPlugins</code>、<code>disabledTools</code>、<code>idGenerator</code>、<code>edgeGenerator</code>。</li></ul><p><code>FlowGraphData</code> 用于包装组件的 Props。直接调用底层 <code>instance.render</code> 时,使用 <code>Parameters&lt;LogicFlow[&#39;render&#39;]&gt;[0]</code> 保留 LogicFlow 所要求的节点类型、坐标和连线字段。</p><p><code>useFlow()</code> 返回 <code>[register, { getFlowInstance }]</code>,将 <code>register</code> 传给 <code>onRegister</code>。首次图数据可直接通过 <code>data</code> 提供;注册之前或组件卸载后调用 <code>getFlowInstance()</code> 会抛错。组件卸载时销毁 LogicFlow 实例;程序化编辑、导入和事件监听走该实例,接入方仍需清理自己创建的外部资源。</p><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/packages/ui/src/RFlow/src/Flow.tsx" target="_blank" rel="noreferrer">组件实现</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/packages/ui/src/RFlow/src/types.ts" target="_blank" rel="noreferrer">图和选项类型</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/packages/ui/src/RFlow/src/hooks/useFlow.ts" target="_blank" rel="noreferrer">实例 Hook</a></p>`,8))]))}});export{d as __pageData,r as default};
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">})</span></span></code></pre></div><table tabindex="0"><thead><tr><th>属性</th><th>默认</th><th>说明</th></tr></thead><tbody><tr><td><code>width</code> / <code>height</code></td><td><code>&#39;100%&#39;</code></td><td>容器尺寸,需要可计算的高度。</td></tr><tr><td><code>data</code></td><td>无</td><td>首次挂载和后续引用变化时渲染,清空为 <code>undefined</code> 时恢复空图;嵌套原地修改不触发。</td></tr><tr><td><code>watchData</code></td><td><code>true</code></td><td>是否监听传入数据。关闭后可从实例控制重绘。</td></tr><tr><td><code>readonly</code></td><td><code>false</code></td><td>启用 LogicFlow 静默模式;退出时恢复进入前的交互和键盘配置,不会强行打开调用方禁用的能力。</td></tr><tr><td><code>options</code></td><td>网格开、<code>partial: false</code>、键盘开</td><td>LogicFlow 初始化配置,包括尺寸、背景、键盘、边、交互、历史和插件等。<code>container</code> 由组件管理。</td></tr><tr><td><code>use</code></td><td>无</td><td>每个组件初始化前注册自己的 LogicFlow 全局插件列表,由库按名称去重。实例级插件可用 <code>options.plugins</code>。</td></tr><tr><td><code>onRegister(instance)</code></td><td>无</td><td>挂载后取得 LogicFlow,支持回调数组。</td></tr></tbody></table><p><code>FlowOptions</code> 支持的字段按用途分组:</p><ul><li>画布与布局:<code>width</code>、<code>height</code>、<code>background</code>、<code>grid</code>、<code>partial</code>、<code>style</code>、<code>overlapMode</code>。</li><li>交互:<code>keyboard</code>、<code>adjustEdge</code>、<code>allowRotate</code>、<code>allowResize</code>、<code>isSilentMode</code>、<code>stopScrollGraph</code>、<code>stopZoomGraph</code>、<code>stopMoveGraph</code>、<code>textEdit</code>、<code>textMode</code>、<code>edgeTextMode</code>、<code>nodeTextMode</code>、<code>guards</code>。</li><li>边和渲染:<code>edgeType</code>、<code>customTrajectory</code>、<code>animation</code>、<code>history</code>、<code>outline</code>、<code>snapline</code>。</li><li>扩展:<code>plugins</code>、<code>pluginsOptions</code>、<code>disabledPlugins</code>、<code>disabledTools</code>、<code>idGenerator</code>、<code>edgeGenerator</code>。</li></ul><p><code>FlowGraphData</code> 用于包装组件的 Props。直接调用底层 <code>instance.render</code> 时,使用 <code>Parameters&lt;LogicFlow[&#39;render&#39;]&gt;[0]</code> 保留 LogicFlow 所要求的节点类型、坐标和连线字段。</p><p><code>useFlow()</code> 返回 <code>[register, { getFlowInstance }]</code>,将 <code>register</code> 传给 <code>onRegister</code>。首次图数据可直接通过 <code>data</code> 提供;注册之前或组件卸载后调用 <code>getFlowInstance()</code> 会抛错。组件卸载时销毁 LogicFlow 实例;程序化编辑、导入和事件监听走该实例,接入方仍需清理自己创建的外部资源。</p><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/packages/ui/src/RFlow/src/Flow.tsx" target="_blank" rel="noreferrer">组件实现</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/packages/ui/src/RFlow/src/types.ts" target="_blank" rel="noreferrer">图和选项类型</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/packages/ui/src/RFlow/src/hooks/useFlow.ts" target="_blank" rel="noreferrer">实例 Hook</a></p>`,8))]))}});export{d as __pageData,r as default};

View File

@ -255,4 +255,4 @@ import{_ as a}from"./chunks/AdminExample.vue_vue_type_script_setup_true_lang.wPc
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> &lt;/</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">DemoPage</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&gt;</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> )</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> },</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">})</span></span></code></pre></div></details><h2 id="属性与事件" tabindex="-1">属性与事件 <a class="header-anchor" href="#属性与事件" aria-label="Permalink to &quot;属性与事件&quot;">​</a></h2><p>继承 <code>NForm</code> 的公开属性和 <code>onSubmit</code> 事件,默认插槽传给 <code>NForm</code>。</p><table tabindex="0"><thead><tr><th>属性</th><th>默认</th><th>说明</th></tr></thead><tbody><tr><td><code>loading</code></td><td><code>false</code></td><td>外层 Spin 状态,由调用方开关。</td></tr><tr><td><code>loadingDescription</code></td><td>无</td><td>加载说明。</td></tr><tr><td><code>autocomplete</code></td><td><code>&#39;off&#39;</code></td><td>挂载时写到表单 DOM。</td></tr><tr><td><code>submitWhenEnter</code></td><td><code>false</code></td><td>可动态启用单行输入的 Enter 提交;校验成功后调用 <code>onFinish</code>,加载中或上次提交未结束时忽略重复提交。</td></tr><tr><td><code>onFinish</code></td><td>无</td><td>Enter 校验完成回调。自定义提交按钮要自行调用 <code>validate()</code> 并执行提交。</td></tr><tr><td><code>onRegister(inst)</code></td><td>无</td><td>挂载后传出 Naive UI Form 实例。接受单函数或回调数组。</td></tr></tbody></table><p>输入法确认、多行换行、组合框、按钮、修饰键和已被控件 <code>preventDefault()</code> 的 Enter 保留原生行为。键盘提交的校验失败由表单展示;<code>onFinish</code> 的异常交给 Vue 的错误处理。调用 <code>useForm.validate()</code> 仍需处理其 Promise 拒绝。组件没有把 Form 方法直接暴露为模板 ref。</p><h2 id="useform" tabindex="-1">useForm <a class="header-anchor" href="#useform" aria-label="Permalink to &quot;useForm&quot;">​</a></h2><p><code>useForm(model?, rules?)</code> 返回 <code>[register, actions]</code>,把 <code>register</code> 绑定给 <code>onRegister</code>。初始化值和规则可用对象或工厂;对象会深拷贝,工厂结果直接使用,建议每次创建新对象。</p><table tabindex="0"><thead><tr><th>返回项</th><th>行为</th></tr></thead><tbody><tr><td><code>formConditionRef</code></td><td>响应式模型,传给 <code>RForm.model</code> 并用于输入绑定。</td></tr><tr><td><code>formModel()</code> / <code>formRules()</code></td><td>重新取得初始模型和规则。</td></tr><tr><td><code>getFormInstance()</code></td><td>获取已注册实例,未注册或已卸载时抛错。</td></tr><tr><td><code>validate(callback?, shouldRuleBeApplied?)</code></td><td>透传 Naive UI 校验;失败要处理 Promise 拒绝。</td></tr><tr><td><code>validateTargetField(key)</code></td><td>按规则对象的唯一 <code>key</code> 筛选规则,<code>key</code> 不等同于 <code>NFormItem.path</code>。</td></tr><tr><td><code>restoreValidation()</code></td><td>清除当前校验状态,保留输入。</td></tr><tr><td><code>updateFormCondition(values)</code></td><td>浅合并当前模型,不改初始值。</td></tr><tr><td><code>reset(values?)</code></td><td>合并初始值和覆盖值,然后清除校验。动态新增字段不会被自动删除。</td></tr></tbody></table><p>实例相关方法要在表单挂载并注册后调用。可空字段应在初始模型中显式声明,并为所用输入选用合适的空值。修改嵌套字段时注意更新是浅合并。</p><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/packages/ui/src/RForm/src/Form.tsx" target="_blank" rel="noreferrer">组件源码</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/packages/ui/src/RForm/src/hooks/useForm.ts" target="_blank" rel="noreferrer">useForm 源码</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/apps/admin/src/views/demo/form/index.tsx" target="_blank" rel="noreferrer">表单示例</a></p>`,10))]))}});export{r as __pageData,d as default};
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">})</span></span></code></pre></div></details><h2 id="属性与事件" tabindex="-1">属性与事件 <a class="header-anchor" href="#属性与事件" aria-label="Permalink to &quot;属性与事件&quot;">​</a></h2><p>继承 <code>NForm</code> 的公开属性和 <code>onSubmit</code> 事件,默认插槽传给 <code>NForm</code>。</p><table tabindex="0"><thead><tr><th>属性</th><th>默认</th><th>说明</th></tr></thead><tbody><tr><td><code>loading</code></td><td><code>false</code></td><td>外层 Spin 状态,由调用方开关。</td></tr><tr><td><code>loadingDescription</code></td><td>无</td><td>加载说明。</td></tr><tr><td><code>autocomplete</code></td><td><code>&#39;off&#39;</code></td><td>挂载时写到表单 DOM。</td></tr><tr><td><code>submitWhenEnter</code></td><td><code>false</code></td><td>可动态启用单行输入的 Enter 提交;校验成功后调用 <code>onFinish</code>,加载中或上次提交未结束时忽略重复提交。</td></tr><tr><td><code>onFinish</code></td><td>无</td><td>Enter 校验完成回调。自定义提交按钮要自行调用 <code>validate()</code> 并执行提交。</td></tr><tr><td><code>onRegister(inst)</code></td><td>无</td><td>挂载后传出 Naive UI Form 实例。接受单函数或回调数组。</td></tr></tbody></table><p>输入法确认、多行换行、组合框、按钮、修饰键和已被控件 <code>preventDefault()</code> 的 Enter 保留原生行为。键盘提交的校验失败由表单展示;<code>onFinish</code> 的异常交给 Vue 的错误处理。调用 <code>useForm.validate()</code> 仍需处理其 Promise 拒绝。组件没有把 Form 方法直接暴露为模板 ref。</p><h2 id="useform" tabindex="-1">useForm <a class="header-anchor" href="#useform" aria-label="Permalink to &quot;useForm&quot;">​</a></h2><p><code>useForm(model?, rules?)</code> 返回 <code>[register, actions]</code>,把 <code>register</code> 绑定给 <code>onRegister</code>。初始化值和规则可用对象或工厂;对象会深拷贝,工厂结果直接使用,建议每次创建新对象。</p><table tabindex="0"><thead><tr><th>返回项</th><th>行为</th></tr></thead><tbody><tr><td><code>formConditionRef</code></td><td>响应式模型,传给 <code>RForm.model</code> 并用于输入绑定。</td></tr><tr><td><code>formModel()</code> / <code>formRules()</code></td><td>重新取得初始模型和规则。</td></tr><tr><td><code>getFormInstance()</code></td><td>获取已注册实例,未注册或已卸载时抛错。</td></tr><tr><td><code>validate(callback?, shouldRuleBeApplied?)</code></td><td>透传 Naive UI 校验;失败要处理 Promise 拒绝。</td></tr><tr><td><code>validateTargetField(key)</code></td><td>按规则对象的唯一 <code>key</code> 筛选规则,<code>key</code> 不等同于 <code>NFormItem.path</code>。</td></tr><tr><td><code>restoreValidation()</code></td><td>清除当前校验状态,保留输入。</td></tr><tr><td><code>updateFormCondition(values)</code></td><td>浅合并当前模型,不改初始值。</td></tr><tr><td><code>reset(values?)</code></td><td>合并初始值和覆盖值,然后清除校验。动态新增字段不会被自动删除。</td></tr></tbody></table><p>实例相关方法要在表单挂载并注册后调用。可空字段应在初始模型中显式声明,并为所用输入选用合适的空值。修改嵌套字段时注意更新是浅合并。</p><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/packages/ui/src/RForm/src/Form.tsx" target="_blank" rel="noreferrer">组件源码</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/packages/ui/src/RForm/src/hooks/useForm.ts" target="_blank" rel="noreferrer">useForm 源码</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/apps/admin/src/views/demo/form/index.tsx" target="_blank" rel="noreferrer">表单示例</a></p>`,10))]))}});export{r as __pageData,d as default};

View File

@ -60,4 +60,4 @@ import{_ as n}from"./chunks/AdminExample.vue_vue_type_script_setup_true_lang.wPc
<span class="line"></span>
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">export</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> const</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> renderReport</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> =</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> (</span><span style="--shiki-light:#E36209;--shiki-dark:#FFAB70;">url</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">:</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> string</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">) </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=&gt;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> (</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> &lt;</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">RIframe</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> src</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">{url} </span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">title</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&quot;库存报表&quot;</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> height</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">{</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">460</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">} </span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">lazy</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&quot;eager&quot;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> /&gt;</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">)</span></span></code></pre></div><table tabindex="0"><thead><tr><th>属性</th><th>默认</th><th>说明</th></tr></thead><tbody><tr><td><code>src</code></td><td>必填</td><td>iframe 地址。接收用户输入时应由业务限制可嵌入来源。</td></tr><tr><td><code>width</code> / <code>height</code></td><td><code>&#39;100%&#39;</code></td><td>CSS 尺寸。百分比高度依赖父级。</td></tr><tr><td><code>frameborder</code></td><td><code>0</code></td><td>模板边框样式变量。</td></tr><tr><td><code>iframeWrapperClass</code> / <code>iframeClass</code></td><td>无</td><td>外层容器与原生 iframe 的类名。</td></tr><tr><td><code>title</code> / <code>name</code> / <code>allow</code></td><td>无</td><td>原生 iframe 属性。<code>title</code> 用于辅助技术识别。</td></tr><tr><td><code>lazy</code></td><td><code>true</code></td><td><code>true</code> / <code>&#39;lazy&#39;</code> 延迟加载,<code>false</code> / <code>&#39;eager&#39;</code> 主动加载。</td></tr><tr><td><code>customSpinProps</code></td><td><code>{}</code></td><td>NSpin 配置,<code>show</code> 由组件内状态覆盖。</td></tr></tbody></table><p><code>onSuccess(iframe, event)</code> 和 <code>onError(event)</code> 支持函数或回调数组。每次 <code>src</code> 变化都会重新显示 Spin,在 <code>load</code> / <code>error</code> 后关闭。组件 ref 上的 <code>iframe</code> 和兼容别名 <code>iframeInst</code> 都是原生 DOM 元素(尚未挂载时为 <code>null</code>);Vue 已自动解包,无需再访问 <code>.value</code>。额外插槽交给 Spin,但默认内容始终为 iframe。</p><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/packages/ui/src/RIframe/src/Iframe.tsx" target="_blank" rel="noreferrer">组件实现</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/packages/ui/src/RIframe/src/props.ts" target="_blank" rel="noreferrer">Props</a></p>`,5))]))}});export{g as __pageData,y as default};
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">)</span></span></code></pre></div><table tabindex="0"><thead><tr><th>属性</th><th>默认</th><th>说明</th></tr></thead><tbody><tr><td><code>src</code></td><td>必填</td><td>iframe 地址。接收用户输入时应由业务限制可嵌入来源。</td></tr><tr><td><code>width</code> / <code>height</code></td><td><code>&#39;100%&#39;</code></td><td>CSS 尺寸。百分比高度依赖父级。</td></tr><tr><td><code>frameborder</code></td><td><code>0</code></td><td>模板边框样式变量。</td></tr><tr><td><code>iframeWrapperClass</code> / <code>iframeClass</code></td><td>无</td><td>外层容器与原生 iframe 的类名。</td></tr><tr><td><code>title</code> / <code>name</code> / <code>allow</code></td><td>无</td><td>原生 iframe 属性。<code>title</code> 用于辅助技术识别。</td></tr><tr><td><code>lazy</code></td><td><code>true</code></td><td><code>true</code> / <code>&#39;lazy&#39;</code> 延迟加载,<code>false</code> / <code>&#39;eager&#39;</code> 主动加载。</td></tr><tr><td><code>customSpinProps</code></td><td><code>{}</code></td><td>NSpin 配置,<code>show</code> 由组件内状态覆盖。</td></tr></tbody></table><p><code>onSuccess(iframe, event)</code> 和 <code>onError(event)</code> 支持函数或回调数组。每次 <code>src</code> 变化都会重新显示 Spin,在 <code>load</code> / <code>error</code> 后关闭。组件 ref 上的 <code>iframe</code> 和兼容别名 <code>iframeInst</code> 都是原生 DOM 元素(尚未挂载时为 <code>null</code>);Vue 已自动解包,无需再访问 <code>.value</code>。额外插槽交给 Spin,但默认内容始终为 iframe。</p><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/packages/ui/src/RIframe/src/Iframe.tsx" target="_blank" rel="noreferrer">组件实现</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/packages/ui/src/RIframe/src/props.ts" target="_blank" rel="noreferrer">Props</a></p>`,5))]))}});export{g as __pageData,y as default};

View File

@ -140,4 +140,4 @@ import{_ as a}from"./chunks/AdminExample.vue_vue_type_script_setup_true_lang.wPc
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> &lt;/</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">DemoPage</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&gt;</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> )</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> },</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">})</span></span></code></pre></div></details><h2 id="命令式弹窗" tabindex="-1">命令式弹窗 <a class="header-anchor" href="#命令式弹窗" aria-label="Permalink to &quot;命令式弹窗&quot;">​</a></h2><p><code>@/components</code> 的 <code>useModal()</code> 已弃用,兼容代码仍可通过 <code>create(options)</code> 和 <code>destroyAll()</code> 调用。<code>create</code> 返回 Naive UI 弹窗句柄,支持 <code>fullscreen</code>、<code>width</code>、<code>cardWidth</code>、<code>dialogWidth</code> 等兼容配置。新代码从 <code>naive-ui</code> 导入 <code>useModal</code>,在 <code>NModalProvider</code> 的后代调用;需要模板专用全屏样式时用声明式 <code>RModal</code>。提示用户确认危险操作时也可以用全局 <a href="./app.html">Dialog Provider</a>。</p><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/packages/ui/src/RModal/src/Modal.tsx" target="_blank" rel="noreferrer">组件源码</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/packages/ui/src/RModal/src/hooks/useModal.ts" target="_blank" rel="noreferrer">兼容 Hook</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/__test__/components/modal.spec.ts" target="_blank" rel="noreferrer">回归用例</a></p>`,4))]))}});export{d as __pageData,r as default};
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">})</span></span></code></pre></div></details><h2 id="命令式弹窗" tabindex="-1">命令式弹窗 <a class="header-anchor" href="#命令式弹窗" aria-label="Permalink to &quot;命令式弹窗&quot;">​</a></h2><p><code>@/components</code> 的 <code>useModal()</code> 已弃用,兼容代码仍可通过 <code>create(options)</code> 和 <code>destroyAll()</code> 调用。<code>create</code> 返回 Naive UI 弹窗句柄,支持 <code>fullscreen</code>、<code>width</code>、<code>cardWidth</code>、<code>dialogWidth</code> 等兼容配置。新代码从 <code>naive-ui</code> 导入 <code>useModal</code>,在 <code>NModalProvider</code> 的后代调用;需要模板专用全屏样式时用声明式 <code>RModal</code>。提示用户确认危险操作时也可以用全局 <a href="./app.html">Dialog Provider</a>。</p><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/packages/ui/src/RModal/src/Modal.tsx" target="_blank" rel="noreferrer">组件源码</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/packages/ui/src/RModal/src/hooks/useModal.ts" target="_blank" rel="noreferrer">兼容 Hook</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/__test__/components/modal.spec.ts" target="_blank" rel="noreferrer">回归用例</a></p>`,4))]))}});export{d as __pageData,r as default};

View File

@ -1,4 +1,4 @@
import{B as c,_ as C}from"./chunks/DemoFrame.vue_vue_type_script_setup_true_lang.BibqOSJQ.js";import{d as E,D}from"./chunks/Dropdown.5gd1V6-R.js";import{R as B,u as A}from"./chunks/Icon.CEJcCL76.js";import{d as F,E as n,K as f,a9 as _,u as b,o as u,b as v,w as k,j as r,k as d,a as w,t as o,h as g,p as S,C as q,c as R,a3 as y}from"./chunks/framework.D8G7yXPy.js";import"./chunks/light.BQgF5P5u.js";import"./chunks/isSymbol.rCNNreax.js";import"./chunks/use-compitable.BN_sOfeF.js";import"./chunks/element.mIVMEYq_.js";function N(i,a){const s=i??(a==null?void 0:a.defaultElement)??null;return typeof s=="function"?s:()=>s}const M={...E,placement:{...E.placement,default:"bottom-start"},icon:{type:String,default:"action/more"},iconSize:{type:Number},triggerLabel:String,cursor:{type:String,default:"inherit"}};function x(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Object]"&&!_(i)}const T=F({name:"RMoreDropdown",props:M,setup(){return{translate:A().translate}},render(){var l;let i;const{iconSize:a,cursor:s,icon:t}=this,{default:h}=this.$slots;return n(D,f(this.$props,this.$attrs),x(i=N(h,{defaultElement:n(c,{text:!0,"aria-label":this.triggerLabel??((l=this.translate)==null?void 0:l.call(this,"appComponents.moreActions"))??"More actions"},{default:()=>[n(B,{name:t,size:a,cursor:s},null)]})}))?i:{default:()=>[i]})}}),P={class:"ray-demo"},I={class:"ray-demo-result"},V=F({__name:"MoreDropdownDemo",setup(i){const{lang:a}=b(),s=g(()=>a.value.startsWith("en")?{edit:"Edit",copy:"Duplicate",archive:"Archive",more:"More actions",hint:"Select an action."}:{edit:"编辑",copy:"复制",archive:"归档",more:"更多操作",hint:"请选择一项操作"}),t=g(()=>[{key:"edit",label:s.value.edit},{key:"copy",label:s.value.copy},{key:"archive",label:s.value.archive,disabled:!0}]),h=S(""),l=e=>{var p;h.value=((p=t.value.find(m=>m.key===e))==null?void 0:p.label)??""};return(e,p)=>(u(),v(C,null,{default:k(()=>[r("div",P,[n(d(T),{trigger:"click",options:t.value,onSelect:l},{default:k(()=>[n(d(c),null,{default:k(()=>[w(o(s.value.more),1)]),_:1})]),_:1},8,["options"]),r("output",I,o(h.value||s.value.hint),1)])]),_:1}))}}),J=JSON.parse('{"title":"RMoreDropdown","description":"","frontmatter":{},"headers":[],"relativePath":"reference/components/more-dropdown.md","filePath":"reference/components/more-dropdown.md"}'),O={name:"reference/components/more-dropdown.md"},K=Object.assign(O,{setup(i){return(a,s)=>{const t=q("ClientOnly");return u(),R("div",null,[s[0]||(s[0]=y('<h1 id="rmoredropdown" tabindex="-1">RMoreDropdown <a class="header-anchor" href="#rmoredropdown" aria-label="Permalink to &quot;RMoreDropdown&quot;">​</a></h1><p>包装 <code>NDropdown</code>,为行操作提供默认的更多图标。<code>options</code>、<code>trigger</code>、<code>placement</code>、<code>onSelect(key, option)</code>、受控显隐等沿用 Naive UI Dropdown。</p><h2 id="交互示例" tabindex="-1">交互示例 <a class="header-anchor" href="#交互示例" aria-label="Permalink to &quot;交互示例&quot;">​</a></h2>',3)),n(t,null,{default:k(()=>[n(V)]),_:1}),s[1]||(s[1]=y(`<details class="details custom-block"><summary>查看示例源码</summary><div class="language-vue vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">vue</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&lt;</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">template</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&gt;</span></span>
import{B as c,_ as C}from"./chunks/DemoFrame.vue_vue_type_script_setup_true_lang.BibqOSJQ.js";import{d as E,D}from"./chunks/Dropdown.n_ZgEzUa.js";import{R as B,u as A}from"./chunks/Icon.GjDzw7hq.js";import{d as F,E as n,K as f,a9 as b,u as _,o as u,b as v,w as k,j as r,k as d,a as w,t as o,h as g,p as S,C as q,c as R,a3 as y}from"./chunks/framework.D8G7yXPy.js";import"./chunks/light.BQgF5P5u.js";import"./chunks/isSymbol.rCNNreax.js";import"./chunks/use-compitable.BN_sOfeF.js";import"./chunks/element.mIVMEYq_.js";function N(i,a){const s=i??(a==null?void 0:a.defaultElement)??null;return typeof s=="function"?s:()=>s}const M={...E,placement:{...E.placement,default:"bottom-start"},icon:{type:String,default:"action/more"},iconSize:{type:Number},triggerLabel:String,cursor:{type:String,default:"inherit"}};function x(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Object]"&&!b(i)}const T=F({name:"RMoreDropdown",props:M,setup(){return{translate:A().translate}},render(){var l;let i;const{iconSize:a,cursor:s,icon:t}=this,{default:h}=this.$slots;return n(D,f(this.$props,this.$attrs),x(i=N(h,{defaultElement:n(c,{text:!0,"aria-label":this.triggerLabel??((l=this.translate)==null?void 0:l.call(this,"appComponents.moreActions"))??"More actions"},{default:()=>[n(B,{name:t,size:a,cursor:s},null)]})}))?i:{default:()=>[i]})}}),P={class:"ray-demo"},I={class:"ray-demo-result"},V=F({__name:"MoreDropdownDemo",setup(i){const{lang:a}=_(),s=g(()=>a.value.startsWith("en")?{edit:"Edit",copy:"Duplicate",archive:"Archive",more:"More actions",hint:"Select an action."}:{edit:"编辑",copy:"复制",archive:"归档",more:"更多操作",hint:"请选择一项操作"}),t=g(()=>[{key:"edit",label:s.value.edit},{key:"copy",label:s.value.copy},{key:"archive",label:s.value.archive,disabled:!0}]),h=S(""),l=e=>{var p;h.value=((p=t.value.find(m=>m.key===e))==null?void 0:p.label)??""};return(e,p)=>(u(),v(C,null,{default:k(()=>[r("div",P,[n(d(T),{trigger:"click",options:t.value,onSelect:l},{default:k(()=>[n(d(c),null,{default:k(()=>[w(o(s.value.more),1)]),_:1})]),_:1},8,["options"]),r("output",I,o(h.value||s.value.hint),1)])]),_:1}))}}),J=JSON.parse('{"title":"RMoreDropdown","description":"","frontmatter":{},"headers":[],"relativePath":"reference/components/more-dropdown.md","filePath":"reference/components/more-dropdown.md"}'),O={name:"reference/components/more-dropdown.md"},K=Object.assign(O,{setup(i){return(a,s)=>{const t=q("ClientOnly");return u(),R("div",null,[s[0]||(s[0]=y('<h1 id="rmoredropdown" tabindex="-1">RMoreDropdown <a class="header-anchor" href="#rmoredropdown" aria-label="Permalink to &quot;RMoreDropdown&quot;">​</a></h1><p>包装 <code>NDropdown</code>,为行操作提供默认的更多图标。<code>options</code>、<code>trigger</code>、<code>placement</code>、<code>onSelect(key, option)</code>、受控显隐等沿用 Naive UI Dropdown。</p><h2 id="交互示例" tabindex="-1">交互示例 <a class="header-anchor" href="#交互示例" aria-label="Permalink to &quot;交互示例&quot;">​</a></h2>',3)),n(t,null,{default:k(()=>[n(V)]),_:1}),s[1]||(s[1]=y(`<details class="details custom-block"><summary>查看示例源码</summary><div class="language-vue vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">vue</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&lt;</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">template</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&gt;</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> &lt;</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">DemoFrame</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&gt;</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> &lt;</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> class</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&quot;ray-demo&quot;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&gt;</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> &lt;</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">RMoreDropdown</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> trigger</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&quot;click&quot;</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> :options</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&quot;options&quot;</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> @select</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&quot;onSelect&quot;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&gt;</span></span>
@ -63,4 +63,4 @@ import{B as c,_ as C}from"./chunks/DemoFrame.vue_vue_type_script_setup_true_lang
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> &lt;</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">RIcon</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> name</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&quot;action/more&quot;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> /&gt;</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> &lt;/</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">NButton</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&gt;</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> &lt;/</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">RMoreDropdown</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&gt;</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">)</span></span></code></pre></div><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/packages/ui/src/RMoreDropdown/src/MoreDropdown.tsx" target="_blank" rel="noreferrer">组件实现</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/packages/ui/src/RMoreDropdown/src/props.ts" target="_blank" rel="noreferrer">Props</a></p>`,5))])}}});export{J as __pageData,K as default};
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">)</span></span></code></pre></div><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/packages/ui/src/RMoreDropdown/src/MoreDropdown.tsx" target="_blank" rel="noreferrer">组件实现</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/packages/ui/src/RMoreDropdown/src/props.ts" target="_blank" rel="noreferrer">Props</a></p>`,5))])}}});export{J as __pageData,K as default};

View File

@ -1 +1 @@
import{B as c,_ as C}from"./chunks/DemoFrame.vue_vue_type_script_setup_true_lang.BibqOSJQ.js";import{d as E,D}from"./chunks/Dropdown.5gd1V6-R.js";import{R as B,u as A}from"./chunks/Icon.CEJcCL76.js";import{d as F,E as n,K as f,a9 as _,u as b,o as u,b as v,w as k,j as r,k as d,a as w,t as o,h as g,p as S,C as q,c as R,a3 as y}from"./chunks/framework.D8G7yXPy.js";import"./chunks/light.BQgF5P5u.js";import"./chunks/isSymbol.rCNNreax.js";import"./chunks/use-compitable.BN_sOfeF.js";import"./chunks/element.mIVMEYq_.js";function N(i,a){const s=i??(a==null?void 0:a.defaultElement)??null;return typeof s=="function"?s:()=>s}const M={...E,placement:{...E.placement,default:"bottom-start"},icon:{type:String,default:"action/more"},iconSize:{type:Number},triggerLabel:String,cursor:{type:String,default:"inherit"}};function x(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Object]"&&!_(i)}const T=F({name:"RMoreDropdown",props:M,setup(){return{translate:A().translate}},render(){var l;let i;const{iconSize:a,cursor:s,icon:t}=this,{default:h}=this.$slots;return n(D,f(this.$props,this.$attrs),x(i=N(h,{defaultElement:n(c,{text:!0,"aria-label":this.triggerLabel??((l=this.translate)==null?void 0:l.call(this,"appComponents.moreActions"))??"More actions"},{default:()=>[n(B,{name:t,size:a,cursor:s},null)]})}))?i:{default:()=>[i]})}}),P={class:"ray-demo"},I={class:"ray-demo-result"},V=F({__name:"MoreDropdownDemo",setup(i){const{lang:a}=b(),s=g(()=>a.value.startsWith("en")?{edit:"Edit",copy:"Duplicate",archive:"Archive",more:"More actions",hint:"Select an action."}:{edit:"编辑",copy:"复制",archive:"归档",more:"更多操作",hint:"请选择一项操作"}),t=g(()=>[{key:"edit",label:s.value.edit},{key:"copy",label:s.value.copy},{key:"archive",label:s.value.archive,disabled:!0}]),h=S(""),l=e=>{var p;h.value=((p=t.value.find(m=>m.key===e))==null?void 0:p.label)??""};return(e,p)=>(u(),v(C,null,{default:k(()=>[r("div",P,[n(d(T),{trigger:"click",options:t.value,onSelect:l},{default:k(()=>[n(d(c),null,{default:k(()=>[w(o(s.value.more),1)]),_:1})]),_:1},8,["options"]),r("output",I,o(h.value||s.value.hint),1)])]),_:1}))}}),J=JSON.parse('{"title":"RMoreDropdown","description":"","frontmatter":{},"headers":[],"relativePath":"reference/components/more-dropdown.md","filePath":"reference/components/more-dropdown.md"}'),O={name:"reference/components/more-dropdown.md"},K=Object.assign(O,{setup(i){return(a,s)=>{const t=q("ClientOnly");return u(),R("div",null,[s[0]||(s[0]=y("",3)),n(t,null,{default:k(()=>[n(V)]),_:1}),s[1]||(s[1]=y("",5))])}}});export{J as __pageData,K as default};
import{B as c,_ as C}from"./chunks/DemoFrame.vue_vue_type_script_setup_true_lang.BibqOSJQ.js";import{d as E,D}from"./chunks/Dropdown.n_ZgEzUa.js";import{R as B,u as A}from"./chunks/Icon.GjDzw7hq.js";import{d as F,E as n,K as f,a9 as b,u as _,o as u,b as v,w as k,j as r,k as d,a as w,t as o,h as g,p as S,C as q,c as R,a3 as y}from"./chunks/framework.D8G7yXPy.js";import"./chunks/light.BQgF5P5u.js";import"./chunks/isSymbol.rCNNreax.js";import"./chunks/use-compitable.BN_sOfeF.js";import"./chunks/element.mIVMEYq_.js";function N(i,a){const s=i??(a==null?void 0:a.defaultElement)??null;return typeof s=="function"?s:()=>s}const M={...E,placement:{...E.placement,default:"bottom-start"},icon:{type:String,default:"action/more"},iconSize:{type:Number},triggerLabel:String,cursor:{type:String,default:"inherit"}};function x(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Object]"&&!b(i)}const T=F({name:"RMoreDropdown",props:M,setup(){return{translate:A().translate}},render(){var l;let i;const{iconSize:a,cursor:s,icon:t}=this,{default:h}=this.$slots;return n(D,f(this.$props,this.$attrs),x(i=N(h,{defaultElement:n(c,{text:!0,"aria-label":this.triggerLabel??((l=this.translate)==null?void 0:l.call(this,"appComponents.moreActions"))??"More actions"},{default:()=>[n(B,{name:t,size:a,cursor:s},null)]})}))?i:{default:()=>[i]})}}),P={class:"ray-demo"},I={class:"ray-demo-result"},V=F({__name:"MoreDropdownDemo",setup(i){const{lang:a}=_(),s=g(()=>a.value.startsWith("en")?{edit:"Edit",copy:"Duplicate",archive:"Archive",more:"More actions",hint:"Select an action."}:{edit:"编辑",copy:"复制",archive:"归档",more:"更多操作",hint:"请选择一项操作"}),t=g(()=>[{key:"edit",label:s.value.edit},{key:"copy",label:s.value.copy},{key:"archive",label:s.value.archive,disabled:!0}]),h=S(""),l=e=>{var p;h.value=((p=t.value.find(m=>m.key===e))==null?void 0:p.label)??""};return(e,p)=>(u(),v(C,null,{default:k(()=>[r("div",P,[n(d(T),{trigger:"click",options:t.value,onSelect:l},{default:k(()=>[n(d(c),null,{default:k(()=>[w(o(s.value.more),1)]),_:1})]),_:1},8,["options"]),r("output",I,o(h.value||s.value.hint),1)])]),_:1}))}}),J=JSON.parse('{"title":"RMoreDropdown","description":"","frontmatter":{},"headers":[],"relativePath":"reference/components/more-dropdown.md","filePath":"reference/components/more-dropdown.md"}'),O={name:"reference/components/more-dropdown.md"},K=Object.assign(O,{setup(i){return(a,s)=>{const t=q("ClientOnly");return u(),R("div",null,[s[0]||(s[0]=y("",3)),n(t,null,{default:k(()=>[n(V)]),_:1}),s[1]||(s[1]=y("",5))])}}});export{J as __pageData,K as default};

View File

@ -141,4 +141,4 @@ import{_ as n}from"./chunks/AdminExample.vue_vue_type_script_setup_true_lang.wPc
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> &lt;/&gt;</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> )</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> },</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">})</span></span></code></pre></div><p><code>text</code> 设置内容,默认可随内容变化重绘。<code>logoImage</code>、<code>backgroundImage</code>、<code>gifBackgroundURL</code>、<code>dotScale</code>、<code>colorDark</code> 可调整样式。带背景的二维码要实际扫码检查清晰度,远程素材还受跨域和浏览器加载限制。</p><p><code>status</code> 可显示 <code>loading</code>、<code>error</code> 等状态,<code>onReload</code> 在重试时通知调用方。<code>downloadQRCode()</code> 等到实例挂载后调用。二维码只表达数据,生成成功与扫码认证成功是两回事;登录需要业务后端签发和验证对应凭据。</p><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/apps/admin/src/views/demo/qrcode/index.tsx" target="_blank" rel="noreferrer">二维码示例</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/apps/admin/src/views/login/components/QRCodeSigning/index.tsx" target="_blank" rel="noreferrer">登录页扫码入口</a></p>`,5))]))}});export{g as __pageData,y as default};
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">})</span></span></code></pre></div><p><code>text</code> 设置内容,默认可随内容变化重绘。<code>logoImage</code>、<code>backgroundImage</code>、<code>gifBackgroundURL</code>、<code>dotScale</code>、<code>colorDark</code> 可调整样式。带背景的二维码要实际扫码检查清晰度,远程素材还受跨域和浏览器加载限制。</p><p><code>status</code> 可显示 <code>loading</code>、<code>error</code> 等状态,<code>onReload</code> 在重试时通知调用方。<code>downloadQRCode()</code> 等到实例挂载后调用。二维码只表达数据,生成成功与扫码认证成功是两回事;登录需要业务后端签发和验证对应凭据。</p><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/apps/admin/src/views/demo/qrcode/index.tsx" target="_blank" rel="noreferrer">二维码示例</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/apps/admin/src/views/login/components/QRCodeSigning/index.tsx" target="_blank" rel="noreferrer">登录页扫码入口</a></p>`,5))]))}});export{g as __pageData,y as default};

View File

@ -14,4 +14,4 @@ import{_ as a}from"./chunks/AdminExample.vue_vue_type_script_setup_true_lang.wPc
<span class="line"></span>
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">export</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> const</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> renderPageOutlet</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> =</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> () </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=&gt;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> (</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> &lt;</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">RTransitionComponent</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> transitionPropName</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&quot;fade&quot;</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> transitionAppear</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">{</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">false</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">} /&gt;</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">)</span></span></code></pre></div><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/packages/admin-shell/src/RouteTransition.vue" target="_blank" rel="noreferrer">组件源码</a> · <a href="./../store/navigation.html#keepalive-store">缓存 Store</a> · <a href="./../../guide/routing.html#keepalive-排查">路由缓存排查</a></p>`,3))]))}});export{o as __pageData,d as default};
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">)</span></span></code></pre></div><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/packages/admin-shell/src/RouteTransition.vue" target="_blank" rel="noreferrer">组件源码</a> · <a href="./../store/navigation.html#keepalive-store">缓存 Store</a> · <a href="./../../guide/routing.html#keepalive-排查">路由缓存排查</a></p>`,3))]))}});export{o as __pageData,d as default};

View File

@ -117,4 +117,4 @@ import{_ as a}from"./chunks/AdminExample.vue_vue_type_script_setup_true_lang.wPc
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> /&gt;</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> )</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> },</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">})</span></span></code></pre></div><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/packages/ui/src/RSegment/src/Segment.tsx" target="_blank" rel="noreferrer">组件实现</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/packages/ui/src/RSegment/src/types.ts" target="_blank" rel="noreferrer">选项类型</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/packages/ui/src/RSegment/src/constant.ts" target="_blank" rel="noreferrer">不支持的 Tabs 属性</a></p>`,3))]))}});export{d as __pageData,r as default};
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">})</span></span></code></pre></div><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/packages/ui/src/RSegment/src/Segment.tsx" target="_blank" rel="noreferrer">组件实现</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/packages/ui/src/RSegment/src/types.ts" target="_blank" rel="noreferrer">选项类型</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/packages/ui/src/RSegment/src/constant.ts" target="_blank" rel="noreferrer">不支持的 Tabs 属性</a></p>`,3))]))}});export{d as __pageData,r as default};

View File

@ -1 +1 @@
import{_ as o,o as t,c as d,a3 as c}from"./chunks/framework.D8G7yXPy.js";const l=JSON.parse('{"title":"应用配置","description":"","frontmatter":{},"headers":[],"relativePath":"reference/configuration.md","filePath":"reference/configuration.md"}'),a={name:"reference/configuration.md"};function r(i,e,n,s,_,p){return t(),d("div",null,[...e[0]||(e[0]=[c('<h1 id="应用配置" tabindex="-1">应用配置 <a class="header-anchor" href="#应用配置" aria-label="Permalink to &quot;应用配置&quot;">​</a></h1><p>应用配置与站外文档配置分属两个仓库。这里说明 Ray Template 应用中的 <code>@/app-config</code>、Vite 配置和运行期设置。运行期保存的用户偏好可能覆盖源码默认值,验证默认设置时使用干净的浏览器存储。</p><table tabindex="0"><thead><tr><th>文件</th><th>配置</th></tr></thead><tbody><tr><td><code>apps/admin/src/app-config/app-config.ts</code></td><td><code>GLOBAL_CLASS_NAMES</code>(明暗类与 CSS 变量)、<code>MESSAGE_PROVIDER</code>(上下文消息,默认最多 5 条、不可关闭)、<code>LAYOUT_CONTENT_SPIN_WHEN_ROUTE_CHANGE</code>(默认关)、<code>APP_GLOBAL_LOADING</code>、<code>PRE_LOADING_CONFIG</code>、<code>APP_CATCH_KEY</code> / <code>APP_CATCH_KEY_PREFIX</code>、<code>CONTENT_TRANSITION_OPTIONS</code>。</td></tr><tr><td><code>apps/admin/src/app-config/design-config.ts</code></td><td><code>APP_THEME</code> 的候选色、构建品牌蓝 <code>#3b63d9</code>、现代化预设的明暗覆盖、ECharts 默认主题。四套预设在 <code>packages/ui/src/theme-presets.ts</code>。</td></tr><tr><td><code>apps/admin/src/app-config/local-config.ts</code></td><td><code>LOCAL_OPTIONS</code>、<code>SYSTEM_DEFAULT_LOCAL</code>、<code>SYSTEM_FALLBACK_LOCALE</code>、<code>DAYJS_LOCAL_MAP</code>、<code>DEFAULT_DAYJS_LOCAL</code>。默认与回退语言为 <code>zh-CN</code>。</td></tr><tr><td><code>apps/admin/src/app-config/request-config.ts</code></td><td><code>AXIOS_CONFIG</code>。默认同源相对地址、5 秒超时、<code>withCredentials: false</code>、JSON Content-Type。</td></tr><tr><td><code>apps/admin/src/app-config/router-config.ts</code></td><td><code>SETUP_ROUTER_ACTION</code>(加载条与守卫默认开)、<code>WHITE_ROUTES</code>(路由名白名单)、<code>SUPER_ADMIN</code>(默认空)、<code>LAYOUT_CONTENT_REF</code> / <code>LAYOUT_SIDER_REF</code>。</td></tr><tr><td><code>apps/admin/src/app-config/regex-config.ts</code></td><td><code>APP_REGEX</code>,模板 CSS 尺寸规则。</td></tr><tr><td><code>vite.custom.config.ts</code></td><td><code>base</code>、<code>server</code>、<code>buildOptions(mode)</code>、<code>alias</code>、<code>cdn</code>、<code>copyright</code>、Sass 注入和首屏加载配置。</td></tr></tbody></table><h2 id="选择改动入口" tabindex="-1">选择改动入口 <a class="header-anchor" href="#选择改动入口" aria-label="Permalink to &quot;选择改动入口&quot;">​</a></h2><ul><li>修改默认用户偏好(布局、菜单、标签、缓存)时看 <a href="./store/setting.html">Setting Store</a> 与 <code>apps/admin/src/store/modules/setting/constant.ts</code>。已有用户可在应用设置里恢复默认后检查效果。</li><li>修改主题或语言时看<a href="./../guide/appearance.html">主题和国际化</a>。新增语言同时维护翻译资源与 Day.js、Naive UI 对应关系。</li><li>修改访问控制时看<a href="./../guide/routing.html">路由指南</a>。白名单按区分大小写的字符串路由名判断,守卫先处理 token,再按白名单和角色处理导航。</li><li>修改 API 地址、认证头和失败策略时看<a href="./../guide/requests.html">接口与 Mock</a>。应用不会自动把任意 <code>VITE_*</code> 环境变量绑定到 Axios;需在配置中明确读取。</li><li>应用默认部署子路径 <code>/ray-template/</code>。部署子路径改变后重新构建并验证图标、代理和直达链接,见<a href="./../guide/tooling.html">工程与部署</a>。</li></ul><p><code>__APP_CFG__</code> 由 Vite 在构建时注入,用于应用包信息、版权与默认主色。任何注入到客户端的字段都可被浏览器读取。用于页面交互的运行态偏好走 Store,构建参数留在 Vite 配置。</p><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/tree/22c9f55f27f137ce4afe6989497739285f20f7d3/apps/admin/src/app-config" target="_blank" rel="noreferrer">应用配置源码</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/vite.custom.config.ts" target="_blank" rel="noreferrer">Vite 自定义配置</a></p>',7)])])}const A=o(a,[["render",r]]);export{l as __pageData,A as default};
import{_ as o,o as t,c as d,a3 as c}from"./chunks/framework.D8G7yXPy.js";const l=JSON.parse('{"title":"应用配置","description":"","frontmatter":{},"headers":[],"relativePath":"reference/configuration.md","filePath":"reference/configuration.md"}'),a={name:"reference/configuration.md"};function r(i,e,n,s,_,p){return t(),d("div",null,[...e[0]||(e[0]=[c('<h1 id="应用配置" tabindex="-1">应用配置 <a class="header-anchor" href="#应用配置" aria-label="Permalink to &quot;应用配置&quot;">​</a></h1><p>应用配置与站外文档配置分属两个仓库。这里说明 Ray Template 应用中的 <code>@/app-config</code>、Vite 配置和运行期设置。运行期保存的用户偏好可能覆盖源码默认值,验证默认设置时使用干净的浏览器存储。</p><table tabindex="0"><thead><tr><th>文件</th><th>配置</th></tr></thead><tbody><tr><td><code>apps/admin/src/app-config/app-config.ts</code></td><td><code>GLOBAL_CLASS_NAMES</code>(明暗类与 CSS 变量)、<code>MESSAGE_PROVIDER</code>(上下文消息,默认最多 5 条、不可关闭)、<code>LAYOUT_CONTENT_SPIN_WHEN_ROUTE_CHANGE</code>(默认关)、<code>APP_GLOBAL_LOADING</code>、<code>PRE_LOADING_CONFIG</code>、<code>APP_CATCH_KEY</code> / <code>APP_CATCH_KEY_PREFIX</code>、<code>CONTENT_TRANSITION_OPTIONS</code>。</td></tr><tr><td><code>apps/admin/src/app-config/design-config.ts</code></td><td><code>APP_THEME</code> 的候选色、构建品牌蓝 <code>#3b63d9</code>、现代化预设的明暗覆盖、ECharts 默认主题。四套预设在 <code>packages/ui/src/theme-presets.ts</code>。</td></tr><tr><td><code>apps/admin/src/app-config/local-config.ts</code></td><td><code>LOCAL_OPTIONS</code>、<code>SYSTEM_DEFAULT_LOCAL</code>、<code>SYSTEM_FALLBACK_LOCALE</code>、<code>DAYJS_LOCAL_MAP</code>、<code>DEFAULT_DAYJS_LOCAL</code>。默认与回退语言为 <code>zh-CN</code>。</td></tr><tr><td><code>apps/admin/src/app-config/request-config.ts</code></td><td><code>AXIOS_CONFIG</code>。默认同源相对地址、5 秒超时、<code>withCredentials: false</code>、JSON Content-Type。</td></tr><tr><td><code>apps/admin/src/app-config/router-config.ts</code></td><td><code>SETUP_ROUTER_ACTION</code>(加载条与守卫默认开)、<code>WHITE_ROUTES</code>(路由名白名单)、<code>SUPER_ADMIN</code>(默认空)、<code>LAYOUT_CONTENT_REF</code> / <code>LAYOUT_SIDER_REF</code>。</td></tr><tr><td><code>apps/admin/src/app-config/regex-config.ts</code></td><td><code>APP_REGEX</code>,模板 CSS 尺寸规则。</td></tr><tr><td><code>vite.custom.config.ts</code></td><td><code>base</code>、<code>server</code>、<code>buildOptions(mode)</code>、<code>alias</code>、<code>cdn</code>、<code>copyright</code>、Sass 注入和首屏加载配置。</td></tr></tbody></table><h2 id="选择改动入口" tabindex="-1">选择改动入口 <a class="header-anchor" href="#选择改动入口" aria-label="Permalink to &quot;选择改动入口&quot;">​</a></h2><ul><li>修改默认用户偏好(布局、菜单、标签、缓存)时看 <a href="./store/setting.html">Setting Store</a> 与 <code>apps/admin/src/store/modules/setting/constant.ts</code>。已有用户可在应用设置里恢复默认后检查效果。</li><li>修改主题或语言时看<a href="./../guide/appearance.html">主题和国际化</a>。新增语言同时维护翻译资源与 Day.js、Naive UI 对应关系。</li><li>修改访问控制时看<a href="./../guide/routing.html">路由指南</a>。白名单按区分大小写的字符串路由名判断,守卫先处理 token,再按白名单和角色处理导航。</li><li>修改 API 地址、认证头和失败策略时看<a href="./../guide/requests.html">接口与 Mock</a>。应用不会自动把任意 <code>VITE_*</code> 环境变量绑定到 Axios;需在配置中明确读取。</li><li>应用默认部署子路径 <code>/ray-template/</code>。部署子路径改变后重新构建并验证图标、代理和直达链接,见<a href="./../guide/tooling.html">工程与部署</a>。</li></ul><p><code>__APP_CFG__</code> 由 Vite 在构建时注入,用于应用包信息、版权与默认主色。任何注入到客户端的字段都可被浏览器读取。用于页面交互的运行态偏好走 Store,构建参数留在 Vite 配置。</p><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/tree/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/apps/admin/src/app-config" target="_blank" rel="noreferrer">应用配置源码</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/vite.custom.config.ts" target="_blank" rel="noreferrer">Vite 自定义配置</a></p>',7)])])}const A=o(a,[["render",r]]);export{l as __pageData,A as default};

View File

@ -1,4 +1,4 @@
import{_ as V}from"./chunks/AdminExample.vue_vue_type_script_setup_true_lang.wPcM-fsm.js";import{u as P}from"./chunks/index.DNzt2uky.js";import{l as B,r as G}from"./chunks/light.BQgF5P5u.js";import{i as L}from"./chunks/isSymbol.rCNNreax.js";import{B as M,_ as O}from"./chunks/DemoFrame.vue_vue_type_script_setup_true_lang.BibqOSJQ.js";import{d as W,o as m,b,w as N,j as _,a5 as X,k as x,a as j,t as H,p as U,c as K,a3 as C,E as q}from"./chunks/framework.D8G7yXPy.js";var J=/\s/;function z(s){for(var i=s.length;i--&&J.test(s.charAt(i)););return i}var Y=/^\s+/;function Q(s){return s&&s.slice(0,z(s)+1).replace(Y,"")}var T=NaN,Z=/^[-+]0x[0-9a-f]+$/i,ss=/^0b[01]+$/i,is=/^0o[0-7]+$/i,as=parseInt;function w(s){if(typeof s=="number")return s;if(L(s))return T;if(B(s)){var i=typeof s.valueOf=="function"?s.valueOf():s;s=B(i)?i+"":i}if(typeof s!="string")return s===0?s:+s;s=Q(s);var a=ss.test(s);return a||is.test(s)?as(s.slice(2),a?2:8):Z.test(s)?T:+s}var u=function(){return G.Date.now()},ns="Expected a function",hs=Math.max,ts=Math.min;function ls(s,i,a){var t,p,l,e,h,k,r=0,D=!1,d=!1,F=!0;if(typeof s!="function")throw new TypeError(ns);i=w(i)||0,B(a)&&(D=!!a.leading,d="maxWait"in a,l=d?hs(w(a.maxWait)||0,i):l,F="trailing"in a?!!a.trailing:F);function c(n){var E=t,g=p;return t=p=void 0,r=n,e=s.apply(g,E),e}function I(n){return r=n,h=setTimeout(y,i),D?c(n):e}function S(n){var E=n-k,g=n-r,A=i-E;return d?ts(A,l-g):A}function v(n){var E=n-k,g=n-r;return k===void 0||E>=i||E<0||d&&g>=l}function y(){var n=u();if(v(n))return f(n);h=setTimeout(y,S(n))}function f(n){return h=void 0,F&&t?c(n):(t=p=void 0,e)}function $(){h!==void 0&&clearTimeout(h),r=0,t=k=p=h=void 0}function R(){return h===void 0?e:f(u())}function o(){var n=u(),E=v(n);if(t=arguments,p=this,k=n,E){if(h===void 0)return I(k);if(d)return clearTimeout(h),h=setTimeout(y,i),c(k)}return h===void 0&&(h=setTimeout(y,i)),e}return o.cancel=$,o.flush=R,o}const ks=()=>{const s=new WeakMap;return{beforeMount:(i,{value:a})=>{const{func:t,trigger:p="click",wait:l=500,options:e}=a;if(typeof t!="function")throw new TypeError("debounce directive value must be a function");const h=ls(t,l,e),k=P(i,p,h);s.set(i,()=>{h.cancel(),k()})},beforeUnmount(i){var a;(a=s.get(i))==null||a(),s.delete(i)}}},ps={class:"ray-demo"},es={class:"ray-demo-result"},Es=W({__name:"DebounceDemo",setup(s){const i=ks(),a=U(0),t=()=>{a.value+=1};return(p,l)=>(m(),b(O,null,{default:N(()=>[_("div",ps,[X((m(),b(x(M),null,{default:N(()=>[...l[0]||(l[0]=[j(" 连续点击 / Click repeatedly ",-1)])]),_:1})),[[x(i),{wait:500,func:t}]]),_("output",es,"执行次数 / Calls: "+H(a.value),1)])]),_:1}))}}),Cs=JSON.parse('{"title":"指令","description":"","frontmatter":{},"headers":[],"relativePath":"reference/directives.md","filePath":"reference/directives.md"}'),rs={name:"reference/directives.md"},us=Object.assign(rs,{setup(s){return(i,a)=>(m(),K("div",null,[a[0]||(a[0]=C('<h1 id="指令" tabindex="-1">指令 <a class="header-anchor" href="#指令" aria-label="Permalink to &quot;指令&quot;">​</a></h1><p>应用在 <code>main.ts</code> 调用 <code>setupDirectives(app)</code>。注册器查找 <code>packages/directives/src/modules/&lt;name&gt;/index.ts</code>,调用默认导出的工厂,将返回的 Vue Directive 以目录名注册。SFC 中可直接用 <code>v-&lt;name&gt;</code>;从文件名和源码进入可查各指令的绑定类型。</p><h2 id="交互示例" tabindex="-1">交互示例 <a class="header-anchor" href="#交互示例" aria-label="Permalink to &quot;交互示例&quot;">​</a></h2><p>在同一示例操作复制、节流、防抖、文本省略、波纹与禁用。下方防抖小例可以快速对照计数。</p>',4)),q(V,{path:"/directive",title:"六种指令的交互示例",height:550}),a[1]||(a[1]=C(`<details class="details custom-block"><summary>查看完整指令示例源码</summary><div class="language-tsx vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">tsx</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">import</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> type</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> { ConditionalPick } </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">from</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &#39;@/types&#39;</span></span>
import{_ as V}from"./chunks/AdminExample.vue_vue_type_script_setup_true_lang.wPcM-fsm.js";import{u as P}from"./chunks/index.DNzt2uky.js";import{l as B,r as G}from"./chunks/light.BQgF5P5u.js";import{i as L}from"./chunks/isSymbol.rCNNreax.js";import{B as M,_ as O}from"./chunks/DemoFrame.vue_vue_type_script_setup_true_lang.BibqOSJQ.js";import{d as W,o as m,b as A,w as N,j as _,a5 as X,k as x,a as j,t as H,p as U,c as K,a3 as C,E as q}from"./chunks/framework.D8G7yXPy.js";var J=/\s/;function z(s){for(var i=s.length;i--&&J.test(s.charAt(i)););return i}var Y=/^\s+/;function Q(s){return s&&s.slice(0,z(s)+1).replace(Y,"")}var T=NaN,Z=/^[-+]0x[0-9a-f]+$/i,ss=/^0b[01]+$/i,is=/^0o[0-7]+$/i,as=parseInt;function w(s){if(typeof s=="number")return s;if(L(s))return T;if(B(s)){var i=typeof s.valueOf=="function"?s.valueOf():s;s=B(i)?i+"":i}if(typeof s!="string")return s===0?s:+s;s=Q(s);var a=ss.test(s);return a||is.test(s)?as(s.slice(2),a?2:8):Z.test(s)?T:+s}var u=function(){return G.Date.now()},ns="Expected a function",hs=Math.max,ts=Math.min;function ls(s,i,a){var t,p,l,e,h,k,r=0,D=!1,d=!1,F=!0;if(typeof s!="function")throw new TypeError(ns);i=w(i)||0,B(a)&&(D=!!a.leading,d="maxWait"in a,l=d?hs(w(a.maxWait)||0,i):l,F="trailing"in a?!!a.trailing:F);function c(n){var E=t,g=p;return t=p=void 0,r=n,e=s.apply(g,E),e}function I(n){return r=n,h=setTimeout(y,i),D?c(n):e}function S(n){var E=n-k,g=n-r,f=i-E;return d?ts(f,l-g):f}function b(n){var E=n-k,g=n-r;return k===void 0||E>=i||E<0||d&&g>=l}function y(){var n=u();if(b(n))return v(n);h=setTimeout(y,S(n))}function v(n){return h=void 0,F&&t?c(n):(t=p=void 0,e)}function $(){h!==void 0&&clearTimeout(h),r=0,t=k=p=h=void 0}function R(){return h===void 0?e:v(u())}function o(){var n=u(),E=b(n);if(t=arguments,p=this,k=n,E){if(h===void 0)return I(k);if(d)return clearTimeout(h),h=setTimeout(y,i),c(k)}return h===void 0&&(h=setTimeout(y,i)),e}return o.cancel=$,o.flush=R,o}const ks=()=>{const s=new WeakMap;return{beforeMount:(i,{value:a})=>{const{func:t,trigger:p="click",wait:l=500,options:e}=a;if(typeof t!="function")throw new TypeError("debounce directive value must be a function");const h=ls(t,l,e),k=P(i,p,h);s.set(i,()=>{h.cancel(),k()})},beforeUnmount(i){var a;(a=s.get(i))==null||a(),s.delete(i)}}},ps={class:"ray-demo"},es={class:"ray-demo-result"},Es=W({__name:"DebounceDemo",setup(s){const i=ks(),a=U(0),t=()=>{a.value+=1};return(p,l)=>(m(),A(O,null,{default:N(()=>[_("div",ps,[X((m(),A(x(M),null,{default:N(()=>[...l[0]||(l[0]=[j(" 连续点击 / Click repeatedly ",-1)])]),_:1})),[[x(i),{wait:500,func:t}]]),_("output",es,"执行次数 / Calls: "+H(a.value),1)])]),_:1}))}}),Cs=JSON.parse('{"title":"指令","description":"","frontmatter":{},"headers":[],"relativePath":"reference/directives.md","filePath":"reference/directives.md"}'),rs={name:"reference/directives.md"},us=Object.assign(rs,{setup(s){return(i,a)=>(m(),K("div",null,[a[0]||(a[0]=C('<h1 id="指令" tabindex="-1">指令 <a class="header-anchor" href="#指令" aria-label="Permalink to &quot;指令&quot;">​</a></h1><p>应用在 <code>main.ts</code> 调用 <code>setupDirectives(app)</code>。注册器查找 <code>packages/directives/src/modules/&lt;name&gt;/index.ts</code>,调用默认导出的工厂,将返回的 Vue Directive 以目录名注册。SFC 中可直接用 <code>v-&lt;name&gt;</code>;从文件名和源码进入可查各指令的绑定类型。</p><h2 id="交互示例" tabindex="-1">交互示例 <a class="header-anchor" href="#交互示例" aria-label="Permalink to &quot;交互示例&quot;">​</a></h2><p>在同一示例操作复制、节流、防抖、文本省略、波纹与禁用。下方防抖小例可以快速对照计数。</p>',4)),q(V,{path:"/directive",title:"六种指令的交互示例",height:550}),a[1]||(a[1]=C(`<details class="details custom-block"><summary>查看完整指令示例源码</summary><div class="language-tsx vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">tsx</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">import</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> type</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> { ConditionalPick } </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">from</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &#39;@/types&#39;</span></span>
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">import</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> {</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> NAlert,</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> NButton,</span></span>
@ -214,7 +214,7 @@ import{_ as V}from"./chunks/AdminExample.vue_vue_type_script_setup_true_lang.wPc
<span class="line"></span>
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">export</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> default</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> RDirective</span></span></code></pre></div></details><h2 id="v-copy" tabindex="-1">v-copy <a class="header-anchor" href="#v-copy" aria-label="Permalink to &quot;v-copy&quot;">​</a></h2><p>绑定要复制的字符串;绑定值改变时销毁并重建 ClipboardJS 实例,卸载时销毁。Ray Admin 注册时接入消息提示。独立使用 <code>createCopyDirective</code> 时可提供自己的结果回调。复制应由用户点击触发。数字等值请先显式转为字符串。</p><div class="language-vue vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">vue</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&lt;</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">template</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&gt;</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> &lt;</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">button</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> type</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&quot;button&quot;</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> v-copy</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&quot;&#39;ORD-001&#39;&quot;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&gt;复制订单号&lt;/</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">button</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&gt;</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&lt;/</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">template</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&gt;</span></span></code></pre></div><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/packages/directives/src/modules/copy/index.ts" target="_blank" rel="noreferrer">源码</a></p><h2 id="v-debounce-与-v-throttle" tabindex="-1">v-debounce 与 v-throttle <a class="header-anchor" href="#v-debounce-与-v-throttle" aria-label="Permalink to &quot;v-debounce 与 v-throttle&quot;">​</a></h2><p>连续点击按钮,停止 500ms 后,防抖只执行一次。</p>`,7)),q(Es),a[2]||(a[2]=C(`<details class="details custom-block"><summary>查看示例源码</summary><div class="language-vue vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">vue</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&lt;</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">template</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&gt;</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&lt;/</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">template</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&gt;</span></span></code></pre></div><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/packages/directives/src/modules/copy/index.ts" target="_blank" rel="noreferrer">源码</a></p><h2 id="v-debounce-与-v-throttle" tabindex="-1">v-debounce 与 v-throttle <a class="header-anchor" href="#v-debounce-与-v-throttle" aria-label="Permalink to &quot;v-debounce 与 v-throttle&quot;">​</a></h2><p>连续点击按钮,停止 500ms 后,防抖只执行一次。</p>`,7)),q(Es),a[2]||(a[2]=C(`<details class="details custom-block"><summary>查看示例源码</summary><div class="language-vue vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">vue</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&lt;</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">template</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&gt;</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> &lt;</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">DemoFrame</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&gt;</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> &lt;</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> class</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&quot;ray-demo&quot;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&gt;</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> &lt;</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">NButton</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> v-debounce</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&quot;{ wait: 500, func: increment }&quot;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&gt;</span></span>
@ -260,13 +260,13 @@ import{_ as V}from"./chunks/AdminExample.vue_vue_type_script_setup_true_lang.wPc
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> &lt;</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">button</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> type</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&quot;button&quot;</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> v-throttle</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&quot;{ func: countClick, wait: 1000 }&quot;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&gt;</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> 点击次数 {{ clicks }}</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> &lt;/</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">button</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&gt;</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&lt;/</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">template</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&gt;</span></span></code></pre></div><ul><li><code>options.leading</code> / <code>trailing</code> 决定在等待周期首尾是否执行;防抖还可设 <code>maxWait</code>。挂载时读取绑定值,更新不会重绑。若回调依赖变动数据,让原函数在执行时读取响应式值。</li><li>当前实现将监听器句柄保存在指令工厂闭包,多个绑定实例共用同一清理位置。需要同一指令同时绑多个元素或动态修改间隔时,在组件里单独创建防抖或节流函数并清理。</li><li>防抖和节流只约束事件触发,异步请求仍需独立处理取消、并发或幂等。</li></ul><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/packages/directives/src/modules/debounce/index.ts" target="_blank" rel="noreferrer">防抖源码</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/packages/directives/src/modules/throttle/index.ts" target="_blank" rel="noreferrer">节流源码</a></p><h2 id="v-ellipsis" tabindex="-1">v-ellipsis <a class="header-anchor" href="#v-ellipsis" aria-label="Permalink to &quot;v-ellipsis&quot;">​</a></h2><p><code>width</code> 必填,数字按像素;字符串可传 CSS 尺寸。<code>type: &#39;block&#39;</code> 做单行省略,<code>type: &#39;line&#39;</code> 使用 <code>line</code> 行截断,默认按单行处理。<code>popoverText: true</code> 把当前文本写入原生 <code>title</code>,不创建 Popover。挂载和更新时写入样式;切换模式或关掉悬浮文本不会自动删除上一次写入的样式或 <code>title</code>。经常切换的场景可以改用组件库的省略组件,或切换节点 <code>key</code>。</p><div class="language-vue vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">vue</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&lt;</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">template</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&gt;</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&lt;/</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">template</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&gt;</span></span></code></pre></div><ul><li><code>options.leading</code> / <code>trailing</code> 决定在等待周期首尾是否执行;防抖还可设 <code>maxWait</code>。挂载时读取绑定值,更新不会重绑。若回调依赖变动数据,让原函数在执行时读取响应式值。</li><li>当前实现将监听器句柄保存在指令工厂闭包,多个绑定实例共用同一清理位置。需要同一指令同时绑多个元素或动态修改间隔时,在组件里单独创建防抖或节流函数并清理。</li><li>防抖和节流只约束事件触发,异步请求仍需独立处理取消、并发或幂等。</li></ul><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/packages/directives/src/modules/debounce/index.ts" target="_blank" rel="noreferrer">防抖源码</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/packages/directives/src/modules/throttle/index.ts" target="_blank" rel="noreferrer">节流源码</a></p><h2 id="v-ellipsis" tabindex="-1">v-ellipsis <a class="header-anchor" href="#v-ellipsis" aria-label="Permalink to &quot;v-ellipsis&quot;">​</a></h2><p><code>width</code> 必填,数字按像素;字符串可传 CSS 尺寸。<code>type: &#39;block&#39;</code> 做单行省略,<code>type: &#39;line&#39;</code> 使用 <code>line</code> 行截断,默认按单行处理。<code>popoverText: true</code> 把当前文本写入原生 <code>title</code>,不创建 Popover。挂载和更新时写入样式;切换模式或关掉悬浮文本不会自动删除上一次写入的样式或 <code>title</code>。经常切换的场景可以改用组件库的省略组件,或切换节点 <code>key</code>。</p><div class="language-vue vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">vue</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&lt;</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">template</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&gt;</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> &lt;</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">p</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> v-ellipsis</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&quot;{ type: &#39;line&#39;, line: 2, width: 240, popoverText: true }&quot;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&gt;</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> 这里放较长的说明文字,超出两行后会被省略。</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> &lt;/</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">p</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&gt;</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&lt;/</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">template</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&gt;</span></span></code></pre></div><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/packages/directives/src/modules/ellipsis/index.ts" target="_blank" rel="noreferrer">源码</a></p><h2 id="v-ripple" tabindex="-1">v-ripple <a class="header-anchor" href="#v-ripple" aria-label="Permalink to &quot;v-ripple&quot;">​</a></h2><p>省略绑定值或传 <code>true</code> 启用,<code>false</code> 关闭。绑定对象 <code>{ class: &#39;...&#39; }</code> 可指定波纹样式。<code>.center</code> 从中心扩散,<code>.circle</code> 使用圆形计算。通过 pointer 事件渲染,属于视觉反馈,交互语义仍由外层按钮负责。</p><div class="language-vue vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">vue</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&lt;</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">template</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&gt;</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&lt;/</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">template</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&gt;</span></span></code></pre></div><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/packages/directives/src/modules/ellipsis/index.ts" target="_blank" rel="noreferrer">源码</a></p><h2 id="v-ripple" tabindex="-1">v-ripple <a class="header-anchor" href="#v-ripple" aria-label="Permalink to &quot;v-ripple&quot;">​</a></h2><p>省略绑定值或传 <code>true</code> 启用,<code>false</code> 关闭。绑定对象 <code>{ class: &#39;...&#39; }</code> 可指定波纹样式。<code>.center</code> 从中心扩散,<code>.circle</code> 使用圆形计算。通过 pointer 事件渲染,属于视觉反馈,交互语义仍由外层按钮负责。</p><div class="language-vue vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">vue</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&lt;</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">template</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&gt;</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> &lt;</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">button</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> type</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&quot;button&quot;</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> v-ripple.center.circle</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&gt;查看详情&lt;/</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">button</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&gt;</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&lt;/</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">template</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&gt;</span></span></code></pre></div><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/packages/directives/src/modules/ripple/index.ts" target="_blank" rel="noreferrer">源码</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/packages/directives/src/modules/ripple/utils.ts" target="_blank" rel="noreferrer">绑定与清理</a></p><h2 id="v-disabled" tabindex="-1">v-disabled <a class="header-anchor" href="#v-disabled" aria-label="Permalink to &quot;v-disabled&quot;">​</a></h2><p>接收布尔值并修改原生 <code>disabled</code> 属性和模板禁用样式。当前实现关闭禁用时仍会写入空的 <code>disabled</code> 属性,HTML 原生按钮将继续视为禁用。因此原生控件使用 <code>:disabled=&quot;busy&quot;</code>,Naive UI 使用对应 <code>disabled</code> prop。对自定义控件,要同时处理指针、键盘与可访问状态;样式不能取代业务权限检查。</p><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/packages/directives/src/modules/disabled/index.ts" target="_blank" rel="noreferrer">源码</a></p><h2 id="新增指令" tabindex="-1">新增指令 <a class="header-anchor" href="#新增指令" aria-label="Permalink to &quot;新增指令&quot;">​</a></h2><p>每个指令放在单独目录,工厂默认导出。可用 <code>CustomDirectiveFC&lt;HTMLElement, T&gt;</code> 标注绑定值。在 <code>mounted</code> 取得元素,在 <code>updated</code> 处理值更新,在 <code>beforeUnmount</code> 释放事件、计时器和第三方实例。多个元素需要独立数据时,把状态放在元素关联的 <code>WeakMap</code>,避免用单个变量保存全部实例的资源。</p><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">import</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> type</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> { CustomDirectiveFC } </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">from</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &#39;@/directives/types&#39;</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&lt;/</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">template</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&gt;</span></span></code></pre></div><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/packages/directives/src/modules/ripple/index.ts" target="_blank" rel="noreferrer">源码</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/packages/directives/src/modules/ripple/utils.ts" target="_blank" rel="noreferrer">绑定与清理</a></p><h2 id="v-disabled" tabindex="-1">v-disabled <a class="header-anchor" href="#v-disabled" aria-label="Permalink to &quot;v-disabled&quot;">​</a></h2><p>接收布尔值并修改原生 <code>disabled</code> 属性和模板禁用样式。当前实现关闭禁用时仍会写入空的 <code>disabled</code> 属性,HTML 原生按钮将继续视为禁用。因此原生控件使用 <code>:disabled=&quot;busy&quot;</code>,Naive UI 使用对应 <code>disabled</code> prop。对自定义控件,要同时处理指针、键盘与可访问状态;样式不能取代业务权限检查。</p><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/packages/directives/src/modules/disabled/index.ts" target="_blank" rel="noreferrer">源码</a></p><h2 id="新增指令" tabindex="-1">新增指令 <a class="header-anchor" href="#新增指令" aria-label="Permalink to &quot;新增指令&quot;">​</a></h2><p>每个指令放在单独目录,工厂默认导出。可用 <code>CustomDirectiveFC&lt;HTMLElement, T&gt;</code> 标注绑定值。在 <code>mounted</code> 取得元素,在 <code>updated</code> 处理值更新,在 <code>beforeUnmount</code> 释放事件、计时器和第三方实例。多个元素需要独立数据时,把状态放在元素关联的 <code>WeakMap</code>,避免用单个变量保存全部实例的资源。</p><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">import</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> type</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> { CustomDirectiveFC } </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">from</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &#39;@/directives/types&#39;</span></span>
<span class="line"></span>
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">const</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> focusWhen</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">:</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> CustomDirectiveFC</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&lt;</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">HTMLElement</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">boolean</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&gt; </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> () </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=&gt;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> ({</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> mounted</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(</span><span style="--shiki-light:#E36209;--shiki-dark:#FFAB70;">el</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, { </span><span style="--shiki-light:#E36209;--shiki-dark:#FFAB70;">value</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> }) {</span></span>
@ -277,4 +277,4 @@ import{_ as V}from"./chunks/AdminExample.vue_vue_type_script_setup_true_lang.wPc
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> },</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">})</span></span>
<span class="line"></span>
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">export</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> default</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> focusWhen</span></span></code></pre></div><p>将示例保存为 <code>packages/directives/src/modules/focus-when/index.ts</code>,在组件中用 <code>v-focus-when</code>。目录名按现有约定用单段小写 kebab-case。注册器要求默认导出函数,缺失会抛错。</p><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/packages/directives/src/index.ts" target="_blank" rel="noreferrer">注册入口</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/packages/directives/src/types.ts" target="_blank" rel="noreferrer">指令类型</a></p>`,21))]))}});export{Cs as __pageData,us as default};
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">export</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> default</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> focusWhen</span></span></code></pre></div><p>将示例保存为 <code>packages/directives/src/modules/focus-when/index.ts</code>,在组件中用 <code>v-focus-when</code>。目录名按现有约定用单段小写 kebab-case。注册器要求默认导出函数,缺失会抛错。</p><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/packages/directives/src/index.ts" target="_blank" rel="noreferrer">注册入口</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/packages/directives/src/types.ts" target="_blank" rel="noreferrer">指令类型</a></p>`,21))]))}});export{Cs as __pageData,us as default};

View File

@ -0,0 +1 @@
import{_ as V}from"./chunks/AdminExample.vue_vue_type_script_setup_true_lang.wPcM-fsm.js";import{u as P}from"./chunks/index.DNzt2uky.js";import{l as B,r as G}from"./chunks/light.BQgF5P5u.js";import{i as L}from"./chunks/isSymbol.rCNNreax.js";import{B as M,_ as O}from"./chunks/DemoFrame.vue_vue_type_script_setup_true_lang.BibqOSJQ.js";import{d as W,o as m,b as A,w as N,j as _,a5 as X,k as x,a as j,t as H,p as U,c as K,a3 as C,E as q}from"./chunks/framework.D8G7yXPy.js";var J=/\s/;function z(s){for(var i=s.length;i--&&J.test(s.charAt(i)););return i}var Y=/^\s+/;function Q(s){return s&&s.slice(0,z(s)+1).replace(Y,"")}var T=NaN,Z=/^[-+]0x[0-9a-f]+$/i,ss=/^0b[01]+$/i,is=/^0o[0-7]+$/i,as=parseInt;function w(s){if(typeof s=="number")return s;if(L(s))return T;if(B(s)){var i=typeof s.valueOf=="function"?s.valueOf():s;s=B(i)?i+"":i}if(typeof s!="string")return s===0?s:+s;s=Q(s);var a=ss.test(s);return a||is.test(s)?as(s.slice(2),a?2:8):Z.test(s)?T:+s}var u=function(){return G.Date.now()},ns="Expected a function",hs=Math.max,ts=Math.min;function ls(s,i,a){var t,p,l,e,h,k,r=0,D=!1,d=!1,F=!0;if(typeof s!="function")throw new TypeError(ns);i=w(i)||0,B(a)&&(D=!!a.leading,d="maxWait"in a,l=d?hs(w(a.maxWait)||0,i):l,F="trailing"in a?!!a.trailing:F);function c(n){var E=t,g=p;return t=p=void 0,r=n,e=s.apply(g,E),e}function I(n){return r=n,h=setTimeout(y,i),D?c(n):e}function S(n){var E=n-k,g=n-r,f=i-E;return d?ts(f,l-g):f}function b(n){var E=n-k,g=n-r;return k===void 0||E>=i||E<0||d&&g>=l}function y(){var n=u();if(b(n))return v(n);h=setTimeout(y,S(n))}function v(n){return h=void 0,F&&t?c(n):(t=p=void 0,e)}function $(){h!==void 0&&clearTimeout(h),r=0,t=k=p=h=void 0}function R(){return h===void 0?e:v(u())}function o(){var n=u(),E=b(n);if(t=arguments,p=this,k=n,E){if(h===void 0)return I(k);if(d)return clearTimeout(h),h=setTimeout(y,i),c(k)}return h===void 0&&(h=setTimeout(y,i)),e}return o.cancel=$,o.flush=R,o}const ks=()=>{const s=new WeakMap;return{beforeMount:(i,{value:a})=>{const{func:t,trigger:p="click",wait:l=500,options:e}=a;if(typeof t!="function")throw new TypeError("debounce directive value must be a function");const h=ls(t,l,e),k=P(i,p,h);s.set(i,()=>{h.cancel(),k()})},beforeUnmount(i){var a;(a=s.get(i))==null||a(),s.delete(i)}}},ps={class:"ray-demo"},es={class:"ray-demo-result"},Es=W({__name:"DebounceDemo",setup(s){const i=ks(),a=U(0),t=()=>{a.value+=1};return(p,l)=>(m(),A(O,null,{default:N(()=>[_("div",ps,[X((m(),A(x(M),null,{default:N(()=>[...l[0]||(l[0]=[j(" 连续点击 / Click repeatedly ",-1)])]),_:1})),[[x(i),{wait:500,func:t}]]),_("output",es,"执行次数 / Calls: "+H(a.value),1)])]),_:1}))}}),Cs=JSON.parse('{"title":"指令","description":"","frontmatter":{},"headers":[],"relativePath":"reference/directives.md","filePath":"reference/directives.md"}'),rs={name:"reference/directives.md"},us=Object.assign(rs,{setup(s){return(i,a)=>(m(),K("div",null,[a[0]||(a[0]=C("",4)),q(V,{path:"/directive",title:"六种指令的交互示例",height:550}),a[1]||(a[1]=C("",7)),q(Es),a[2]||(a[2]=C("",21))]))}});export{Cs as __pageData,us as default};

View File

@ -1 +0,0 @@
import{_ as V}from"./chunks/AdminExample.vue_vue_type_script_setup_true_lang.wPcM-fsm.js";import{u as P}from"./chunks/index.DNzt2uky.js";import{l as B,r as G}from"./chunks/light.BQgF5P5u.js";import{i as L}from"./chunks/isSymbol.rCNNreax.js";import{B as M,_ as O}from"./chunks/DemoFrame.vue_vue_type_script_setup_true_lang.BibqOSJQ.js";import{d as W,o as m,b,w as N,j as _,a5 as X,k as x,a as j,t as H,p as U,c as K,a3 as C,E as q}from"./chunks/framework.D8G7yXPy.js";var J=/\s/;function z(s){for(var i=s.length;i--&&J.test(s.charAt(i)););return i}var Y=/^\s+/;function Q(s){return s&&s.slice(0,z(s)+1).replace(Y,"")}var T=NaN,Z=/^[-+]0x[0-9a-f]+$/i,ss=/^0b[01]+$/i,is=/^0o[0-7]+$/i,as=parseInt;function w(s){if(typeof s=="number")return s;if(L(s))return T;if(B(s)){var i=typeof s.valueOf=="function"?s.valueOf():s;s=B(i)?i+"":i}if(typeof s!="string")return s===0?s:+s;s=Q(s);var a=ss.test(s);return a||is.test(s)?as(s.slice(2),a?2:8):Z.test(s)?T:+s}var u=function(){return G.Date.now()},ns="Expected a function",hs=Math.max,ts=Math.min;function ls(s,i,a){var t,p,l,e,h,k,r=0,D=!1,d=!1,F=!0;if(typeof s!="function")throw new TypeError(ns);i=w(i)||0,B(a)&&(D=!!a.leading,d="maxWait"in a,l=d?hs(w(a.maxWait)||0,i):l,F="trailing"in a?!!a.trailing:F);function c(n){var E=t,g=p;return t=p=void 0,r=n,e=s.apply(g,E),e}function I(n){return r=n,h=setTimeout(y,i),D?c(n):e}function S(n){var E=n-k,g=n-r,A=i-E;return d?ts(A,l-g):A}function v(n){var E=n-k,g=n-r;return k===void 0||E>=i||E<0||d&&g>=l}function y(){var n=u();if(v(n))return f(n);h=setTimeout(y,S(n))}function f(n){return h=void 0,F&&t?c(n):(t=p=void 0,e)}function $(){h!==void 0&&clearTimeout(h),r=0,t=k=p=h=void 0}function R(){return h===void 0?e:f(u())}function o(){var n=u(),E=v(n);if(t=arguments,p=this,k=n,E){if(h===void 0)return I(k);if(d)return clearTimeout(h),h=setTimeout(y,i),c(k)}return h===void 0&&(h=setTimeout(y,i)),e}return o.cancel=$,o.flush=R,o}const ks=()=>{const s=new WeakMap;return{beforeMount:(i,{value:a})=>{const{func:t,trigger:p="click",wait:l=500,options:e}=a;if(typeof t!="function")throw new TypeError("debounce directive value must be a function");const h=ls(t,l,e),k=P(i,p,h);s.set(i,()=>{h.cancel(),k()})},beforeUnmount(i){var a;(a=s.get(i))==null||a(),s.delete(i)}}},ps={class:"ray-demo"},es={class:"ray-demo-result"},Es=W({__name:"DebounceDemo",setup(s){const i=ks(),a=U(0),t=()=>{a.value+=1};return(p,l)=>(m(),b(O,null,{default:N(()=>[_("div",ps,[X((m(),b(x(M),null,{default:N(()=>[...l[0]||(l[0]=[j(" 连续点击 / Click repeatedly ",-1)])]),_:1})),[[x(i),{wait:500,func:t}]]),_("output",es,"执行次数 / Calls: "+H(a.value),1)])]),_:1}))}}),Cs=JSON.parse('{"title":"指令","description":"","frontmatter":{},"headers":[],"relativePath":"reference/directives.md","filePath":"reference/directives.md"}'),rs={name:"reference/directives.md"},us=Object.assign(rs,{setup(s){return(i,a)=>(m(),K("div",null,[a[0]||(a[0]=C("",4)),q(V,{path:"/directive",title:"六种指令的交互示例",height:550}),a[1]||(a[1]=C("",7)),q(Es),a[2]||(a[2]=C("",21))]))}});export{Cs as __pageData,us as default};

View File

@ -1 +1 @@
import{_ as o,o as t,c as a,a3 as d}from"./chunks/framework.D8G7yXPy.js";const k=JSON.parse('{"title":"Hooks","description":"","frontmatter":{},"headers":[],"relativePath":"reference/hooks.md","filePath":"reference/hooks.md"}'),r={name:"reference/hooks.md"};function s(c,e,h,n,f,l){return t(),a("div",null,[...e[0]||(e[0]=[d('<h1 id="hooks" tabindex="-1">Hooks <a class="header-anchor" href="#hooks" aria-label="Permalink to &quot;Hooks&quot;">​</a></h1><p>模板的公开 Hooks 从 <code>@/hooks</code> 导入。与具体组件一起使用的 <code>useForm</code>、<code>useModal</code>、<code>useChart</code>、<code>useFlow</code> 从 <code>@/components</code> 导入,请看对应组件页。<code>useRequest</code> 从 <code>@/axios</code> 导入。</p><table tabindex="0"><thead><tr><th>需求</th><th>API</th></tr></thead><tbody><tr><td>跳转页面,操作标签和菜单标记</td><td><a href="./hooks/navigation.html">导航与菜单</a></td></tr><tr><td>内容最大化、重载或滚动</td><td><a href="./hooks/layout.html">布局与滚动</a></td></tr><tr><td>主题、语言、水印</td><td><a href="./hooks/appearance.html">主题与国际化</a></td></tr><tr><td>分页与右键菜单</td><td><a href="./hooks/interaction.html">组件交互</a></td></tr><tr><td>窗口尺寸、元素全屏和日期</td><td><a href="./hooks/browser.html">窗口与日期</a></td></tr><tr><td>DOM 截图、打印</td><td><a href="./hooks/output.html">截图与打印</a></td></tr></tbody></table><p>需要订阅、事件或清理的 Hook 在 <code>setup()</code> 或有效的 Vue effect scope 中创建。在 DOM 挂载后或用户操作时执行截图、打印和全屏。<code>BasicTarget</code> 接受元素、ref 或 getter,解析规则和可用元素类型见<a href="./utils/browser.html#vue-目标解析">Vue 与 DOM 目标</a>。</p><p>项目保留 <code>@/hooks/web/useI18n</code>、<code>@/hooks/web/useVueRouter</code>、<code>@/hooks/web/usePagination</code> 作为兼容导入。新代码统一从 <code>@/hooks</code> 导入。实现和测试入口见<a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/apps/admin/src/hooks/README.md" target="_blank" rel="noreferrer">源码 Hooks 索引</a>。</p>',5)])])}const u=o(r,[["render",s]]);export{k as __pageData,u as default};
import{_ as o,o as t,c as a,a3 as d}from"./chunks/framework.D8G7yXPy.js";const k=JSON.parse('{"title":"Hooks","description":"","frontmatter":{},"headers":[],"relativePath":"reference/hooks.md","filePath":"reference/hooks.md"}'),r={name:"reference/hooks.md"};function s(c,e,h,n,l,f){return t(),a("div",null,[...e[0]||(e[0]=[d('<h1 id="hooks" tabindex="-1">Hooks <a class="header-anchor" href="#hooks" aria-label="Permalink to &quot;Hooks&quot;">​</a></h1><p>模板的公开 Hooks 从 <code>@/hooks</code> 导入。与具体组件一起使用的 <code>useForm</code>、<code>useModal</code>、<code>useChart</code>、<code>useFlow</code> 从 <code>@/components</code> 导入,请看对应组件页。<code>useRequest</code> 从 <code>@/axios</code> 导入。</p><table tabindex="0"><thead><tr><th>需求</th><th>API</th></tr></thead><tbody><tr><td>跳转页面,操作标签和菜单标记</td><td><a href="./hooks/navigation.html">导航与菜单</a></td></tr><tr><td>内容最大化、重载或滚动</td><td><a href="./hooks/layout.html">布局与滚动</a></td></tr><tr><td>主题、语言、水印</td><td><a href="./hooks/appearance.html">主题与国际化</a></td></tr><tr><td>分页与右键菜单</td><td><a href="./hooks/interaction.html">组件交互</a></td></tr><tr><td>窗口尺寸、元素全屏和日期</td><td><a href="./hooks/browser.html">窗口与日期</a></td></tr><tr><td>DOM 截图、打印</td><td><a href="./hooks/output.html">截图与打印</a></td></tr></tbody></table><p>需要订阅、事件或清理的 Hook 在 <code>setup()</code> 或有效的 Vue effect scope 中创建。在 DOM 挂载后或用户操作时执行截图、打印和全屏。<code>BasicTarget</code> 接受元素、ref 或 getter,解析规则和可用元素类型见<a href="./utils/browser.html#vue-目标解析">Vue 与 DOM 目标</a>。</p><p>项目保留 <code>@/hooks/web/useI18n</code>、<code>@/hooks/web/useVueRouter</code>、<code>@/hooks/web/usePagination</code> 作为兼容导入。新代码统一从 <code>@/hooks</code> 导入。实现和测试入口见<a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/apps/admin/src/hooks/README.md" target="_blank" rel="noreferrer">源码 Hooks 索引</a>。</p>',5)])])}const u=o(r,[["render",s]]);export{k as __pageData,u as default};

View File

@ -1 +1 @@
import{_ as o,o as t,c as a,a3 as d}from"./chunks/framework.D8G7yXPy.js";const k=JSON.parse('{"title":"Hooks","description":"","frontmatter":{},"headers":[],"relativePath":"reference/hooks.md","filePath":"reference/hooks.md"}'),r={name:"reference/hooks.md"};function s(c,e,h,n,f,l){return t(),a("div",null,[...e[0]||(e[0]=[d("",5)])])}const u=o(r,[["render",s]]);export{k as __pageData,u as default};
import{_ as o,o as t,c as a,a3 as d}from"./chunks/framework.D8G7yXPy.js";const k=JSON.parse('{"title":"Hooks","description":"","frontmatter":{},"headers":[],"relativePath":"reference/hooks.md","filePath":"reference/hooks.md"}'),r={name:"reference/hooks.md"};function s(c,e,h,n,l,f){return t(),a("div",null,[...e[0]||(e[0]=[d("",5)])])}const u=o(r,[["render",s]]);export{k as __pageData,u as default};

View File

@ -664,4 +664,4 @@ import{_ as a}from"./chunks/AdminExample.vue_vue_type_script_setup_true_lang.wPc
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> },</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> disable: hiddenWatermark,</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> }</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">}</span></span></code></pre></div><p>源码:<a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/apps/admin/src/hooks/template/useTheme.ts" target="_blank" rel="noreferrer">useTheme</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/apps/admin/src/hooks/template/useI18n.ts" target="_blank" rel="noreferrer">useI18n</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/apps/admin/src/hooks/template/useWatermark.ts" target="_blank" rel="noreferrer">useWatermark</a></p>`,8))]))}});export{d as __pageData,y as default};
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">}</span></span></code></pre></div><p>源码:<a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/apps/admin/src/hooks/template/useTheme.ts" target="_blank" rel="noreferrer">useTheme</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/apps/admin/src/hooks/template/useI18n.ts" target="_blank" rel="noreferrer">useI18n</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/apps/admin/src/hooks/template/useWatermark.ts" target="_blank" rel="noreferrer">useWatermark</a></p>`,8))]))}});export{d as __pageData,y as default};

View File

@ -385,4 +385,4 @@ import{_ as j}from"./chunks/AdminExample.vue_vue_type_script_setup_true_lang.wPc
<span class="line"></span>
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">const</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> day</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> =</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> useDayjs</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">()</span></span>
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">export</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> const</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> exportDate</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> =</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> day.</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">format</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;2026-11-03&#39;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, { format: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;YYYY-MM-DD&#39;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> })</span></span>
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">export</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> const</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> dayRange</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> =</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> day.</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">getStartAndEndOfDay</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">()</span></span></code></pre></div><p>源码:<a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/packages/composables/src/useDevice.ts" target="_blank" rel="noreferrer">useDevice</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/packages/composables/src/useElementFullscreen.ts" target="_blank" rel="noreferrer">useElementFullscreen</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/packages/composables/src/useDayjs.ts" target="_blank" rel="noreferrer">useDayjs</a></p>`,10))]))}});export{ps as __pageData,es as default};
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">export</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> const</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> dayRange</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> =</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> day.</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">getStartAndEndOfDay</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">()</span></span></code></pre></div><p>源码:<a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/packages/composables/src/useDevice.ts" target="_blank" rel="noreferrer">useDevice</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/packages/composables/src/useElementFullscreen.ts" target="_blank" rel="noreferrer">useElementFullscreen</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/packages/composables/src/useDayjs.ts" target="_blank" rel="noreferrer">useDayjs</a></p>`,10))]))}});export{ps as __pageData,es as default};

View File

@ -369,4 +369,4 @@ import{_ as n}from"./chunks/AdminExample.vue_vue_type_script_setup_true_lang.wPc
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> &lt;/</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&gt;</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> )</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> },</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">})</span></span></code></pre></div><p>源码:<a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/packages/composables/src/usePagination.ts" target="_blank" rel="noreferrer">usePagination</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/packages/composables/src/useContextmenuCoordinate.ts" target="_blank" rel="noreferrer">useContextmenuCoordinate</a></p>`,11))]))}});export{d as __pageData,y as default};
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">})</span></span></code></pre></div><p>源码:<a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/packages/composables/src/usePagination.ts" target="_blank" rel="noreferrer">usePagination</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/packages/composables/src/useContextmenuCoordinate.ts" target="_blank" rel="noreferrer">useContextmenuCoordinate</a></p>`,11))]))}});export{d as __pageData,y as default};

View File

@ -328,4 +328,4 @@ import{_ as a}from"./chunks/AdminExample.vue_vue_type_script_setup_true_lang.wPc
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> toTop</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: () </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=&gt;</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> scrollContent</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">0</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">0</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">),</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> toMenuTop</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: () </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=&gt;</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> scrollSider</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">0</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">0</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">),</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> }</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">}</span></span></code></pre></div><p>源码:<a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/apps/admin/src/hooks/template/useMaximize.ts" target="_blank" rel="noreferrer">useMaximize</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/apps/admin/src/hooks/template/useSpinning.ts" target="_blank" rel="noreferrer">useSpinning</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/apps/admin/src/hooks/template/useContentScroll.ts" target="_blank" rel="noreferrer">useContentScroll</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/apps/admin/src/hooks/template/useSiderScroll.ts" target="_blank" rel="noreferrer">useSiderScroll</a></p>`,15))]))}});export{r as __pageData,g as default};
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">}</span></span></code></pre></div><p>源码:<a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/apps/admin/src/hooks/template/useMaximize.ts" target="_blank" rel="noreferrer">useMaximize</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/apps/admin/src/hooks/template/useSpinning.ts" target="_blank" rel="noreferrer">useSpinning</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/apps/admin/src/hooks/template/useContentScroll.ts" target="_blank" rel="noreferrer">useContentScroll</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/apps/admin/src/hooks/template/useSiderScroll.ts" target="_blank" rel="noreferrer">useSiderScroll</a></p>`,15))]))}});export{r as __pageData,g as default};

View File

@ -670,4 +670,4 @@ import{_ as a}from"./chunks/AdminExample.vue_vue_type_script_setup_true_lang.wPc
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> const</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> path</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> =</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &#39;/tables/remote&#39;</span></span>
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> return</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> (</span><span style="--shiki-light:#E36209;--shiki-dark:#FFAB70;">count</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">:</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> number</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">) </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=&gt;</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> count </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">&gt;</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> 0</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> ?</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> show</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(path, { label: count, type: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;info&#39;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> }) </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">:</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> hidden</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(path)</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">}</span></span></code></pre></div><p>源码:<a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/apps/admin/src/hooks/template/useAppNavigation.ts" target="_blank" rel="noreferrer">useAppNavigation</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/apps/admin/src/hooks/template/useAppRoot.ts" target="_blank" rel="noreferrer">useAppRoot</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/apps/admin/src/hooks/template/useSiderBar.ts" target="_blank" rel="noreferrer">useSiderBar</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/apps/admin/src/hooks/template/useBadge.ts" target="_blank" rel="noreferrer">useBadge</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/apps/admin/src/hooks/template/useVueRouter.ts" target="_blank" rel="noreferrer">useVueRouter</a></p>`,21))]))}});export{r as __pageData,g as default};
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">}</span></span></code></pre></div><p>源码:<a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/apps/admin/src/hooks/template/useAppNavigation.ts" target="_blank" rel="noreferrer">useAppNavigation</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/apps/admin/src/hooks/template/useAppRoot.ts" target="_blank" rel="noreferrer">useAppRoot</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/apps/admin/src/hooks/template/useSiderBar.ts" target="_blank" rel="noreferrer">useSiderBar</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/apps/admin/src/hooks/template/useBadge.ts" target="_blank" rel="noreferrer">useBadge</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/apps/admin/src/hooks/template/useVueRouter.ts" target="_blank" rel="noreferrer">useVueRouter</a></p>`,21))]))}});export{r as __pageData,g as default};

View File

@ -357,4 +357,4 @@ import{_ as n}from"./chunks/AdminExample.vue_vue_type_script_setup_true_lang.wPc
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> documentTitle: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;库存报表&#39;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">,</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> })</span></span>
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> return</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> { report, print }</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">}</span></span></code></pre></div><p>TablePro 内置打印按当前页和可见列生成报表。要保留自定义业务排版,参考 <a href="./../table-pro.html#打印与-csv">TablePro 打印</a>。</p><p>源码:<a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/packages/composables/src/useDomToImage.ts" target="_blank" rel="noreferrer">useDomToImage</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/packages/composables/src/usePrint.ts" target="_blank" rel="noreferrer">usePrint</a></p>`,13))]))}});export{d as __pageData,y as default};
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">}</span></span></code></pre></div><p>TablePro 内置打印按当前页和可见列生成报表。要保留自定义业务排版,参考 <a href="./../table-pro.html#打印与-csv">TablePro 打印</a>。</p><p>源码:<a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/packages/composables/src/useDomToImage.ts" target="_blank" rel="noreferrer">useDomToImage</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/packages/composables/src/usePrint.ts" target="_blank" rel="noreferrer">usePrint</a></p>`,13))]))}});export{d as __pageData,y as default};

View File

@ -124,4 +124,4 @@ import{_ as a}from"./chunks/AdminExample.vue_vue_type_script_setup_true_lang.wPc
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> &lt;/</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">DemoPage</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&gt;</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> )</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> },</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">})</span></span></code></pre></div></details><h2 id="添加和生成" tabindex="-1">添加和生成 <a class="header-anchor" href="#添加和生成" aria-label="Permalink to &quot;添加和生成&quot;">​</a></h2><ol><li>选择现有分包(如 <code>action</code>、<code>navigation</code>、<code>system</code>),或按业务新建分包。路径段使用小写字母、数字、下划线或连字符,且以字母开头。</li><li>单色图标用 <code>currentColor</code>,留白用 <code>none</code>。品牌保留原色。</li><li>开发服务或 <code>pnpm icons:generate</code> 更新 <code>packages/icons/src/manifest.ts</code>;检查 <code>pnpm icons:check</code>,与 SVG 一起提交。不要手改联合类型。</li></ol><p>生产时每个顶层分包生成独立、带 hash 的雪碧图,资源随部署 base 加载。迁移时直接改旧代码的裸名称;旧缓存仅当文件名唯一时自动转换。</p><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/packages/icons/src/A_README.md" target="_blank" rel="noreferrer">图标流程与分包表</a></p><h2 id="ricon-api" tabindex="-1">RIcon API <a class="header-anchor" href="#ricon-api" aria-label="Permalink to &quot;RIcon API&quot;">​</a></h2><p><code>RIcon</code>、<code>IconProps</code>、<code>iconProps</code>、<code>IconName</code> 和 <code>IconPackage</code> 从 <code>@/components</code> 导出。也可从 <code>@/icons</code> 导入图标类型。</p><table tabindex="0"><thead><tr><th>属性</th><th>默认</th><th>说明</th></tr></thead><tbody><tr><td><code>name</code></td><td>必填</td><td>完整的分包路径,首段用于选择雪碧图。</td></tr><tr><td><code>size</code></td><td><code>20</code></td><td>基础宽高,数字按像素,也可传 CSS 尺寸。</td></tr><tr><td><code>width</code> / <code>height</code></td><td><code>0</code> / <code>0</code></td><td>分别覆盖基础尺寸,<code>0</code> 回退到 <code>size</code>。</td></tr><tr><td><code>color</code></td><td><code>&#39;currentColor&#39;</code></td><td>SVG 填充色;带原色的品牌不会全部被覆盖。</td></tr><tr><td><code>prefix</code></td><td><code>&#39;icon&#39;</code></td><td>symbol 前缀,须与生成配置一致。</td></tr><tr><td><code>customClassName</code></td><td>无</td><td>根元素的额外类名。</td></tr><tr><td><code>depth</code></td><td><code>1</code></td><td>图标透明层级。</td></tr><tr><td><code>cursor</code></td><td><code>&#39;inherit&#39;</code></td><td>默认继承所在控件的指针样式。</td></tr><tr><td><code>onClick(event)</code></td><td>无</td><td>支持函数或回调数组。</td></tr></tbody></table><p>图标内部 SVG 对读屏隐藏。如果用图标触发操作,把它放进具有可访问名称的按钮内,保留键盘操作和焦点。</p><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/packages/ui/src/RIcon/src/props.ts" target="_blank" rel="noreferrer">RIcon Props</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/packages/ui/src/RIcon/src/Icon.tsx" target="_blank" rel="noreferrer">雪碧图引用实现</a></p><h2 id="图标来源" tabindex="-1">图标来源 <a class="header-anchor" href="#图标来源" aria-label="Permalink to &quot;图标来源&quot;">​</a></h2><p>通用图标选自 <a href="https://www.iconfont.cn/collections/detail?cid=51731" target="_blank" rel="noreferrer">Iconfont 的 IconPark 线性合辑</a>。<a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/packages/icons/ICON-SOURCES.md" target="_blank" rel="noreferrer">来源清单</a>按用途列出包内名称和对应的 Iconfont ID。单色图标跟随文本颜色;Ray 和其他品牌标识保留各自原色。</p><p>已有图标名优先保留。三个退役资源的旧路由配置会在读取时迁移:<code>action/export_excel</code> → <code>action/download</code>、<code>logo/office</code> → <code>navigation/table</code>、<code>illustration/login_bg</code> → <code>navigation/other</code>。新代码直接使用新的完整名称。</p>`,13))]))}});export{r as __pageData,d as default};
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">})</span></span></code></pre></div></details><h2 id="添加和生成" tabindex="-1">添加和生成 <a class="header-anchor" href="#添加和生成" aria-label="Permalink to &quot;添加和生成&quot;">​</a></h2><ol><li>选择现有分包(如 <code>action</code>、<code>navigation</code>、<code>system</code>),或按业务新建分包。路径段使用小写字母、数字、下划线或连字符,且以字母开头。</li><li>单色图标用 <code>currentColor</code>,留白用 <code>none</code>。品牌保留原色。</li><li>开发服务或 <code>pnpm icons:generate</code> 更新 <code>packages/icons/src/manifest.ts</code>;检查 <code>pnpm icons:check</code>,与 SVG 一起提交。不要手改联合类型。</li></ol><p>生产时每个顶层分包生成独立、带 hash 的雪碧图,资源随部署 base 加载。迁移时直接改旧代码的裸名称;旧缓存仅当文件名唯一时自动转换。</p><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/packages/icons/src/A_README.md" target="_blank" rel="noreferrer">图标流程与分包表</a></p><h2 id="ricon-api" tabindex="-1">RIcon API <a class="header-anchor" href="#ricon-api" aria-label="Permalink to &quot;RIcon API&quot;">​</a></h2><p><code>RIcon</code>、<code>IconProps</code>、<code>iconProps</code>、<code>IconName</code> 和 <code>IconPackage</code> 从 <code>@/components</code> 导出。也可从 <code>@/icons</code> 导入图标类型。</p><table tabindex="0"><thead><tr><th>属性</th><th>默认</th><th>说明</th></tr></thead><tbody><tr><td><code>name</code></td><td>必填</td><td>完整的分包路径,首段用于选择雪碧图。</td></tr><tr><td><code>size</code></td><td><code>20</code></td><td>基础宽高,数字按像素,也可传 CSS 尺寸。</td></tr><tr><td><code>width</code> / <code>height</code></td><td><code>0</code> / <code>0</code></td><td>分别覆盖基础尺寸,<code>0</code> 回退到 <code>size</code>。</td></tr><tr><td><code>color</code></td><td><code>&#39;currentColor&#39;</code></td><td>SVG 填充色;带原色的品牌不会全部被覆盖。</td></tr><tr><td><code>prefix</code></td><td><code>&#39;icon&#39;</code></td><td>symbol 前缀,须与生成配置一致。</td></tr><tr><td><code>customClassName</code></td><td>无</td><td>根元素的额外类名。</td></tr><tr><td><code>depth</code></td><td><code>1</code></td><td>图标透明层级。</td></tr><tr><td><code>cursor</code></td><td><code>&#39;inherit&#39;</code></td><td>默认继承所在控件的指针样式。</td></tr><tr><td><code>onClick(event)</code></td><td>无</td><td>支持函数或回调数组。</td></tr></tbody></table><p>图标内部 SVG 对读屏隐藏。如果用图标触发操作,把它放进具有可访问名称的按钮内,保留键盘操作和焦点。</p><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/packages/ui/src/RIcon/src/props.ts" target="_blank" rel="noreferrer">RIcon Props</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/packages/ui/src/RIcon/src/Icon.tsx" target="_blank" rel="noreferrer">雪碧图引用实现</a></p><h2 id="图标来源" tabindex="-1">图标来源 <a class="header-anchor" href="#图标来源" aria-label="Permalink to &quot;图标来源&quot;">​</a></h2><p>通用图标选自 <a href="https://www.iconfont.cn/collections/detail?cid=51731" target="_blank" rel="noreferrer">Iconfont 的 IconPark 线性合辑</a>。<a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/packages/icons/ICON-SOURCES.md" target="_blank" rel="noreferrer">来源清单</a>按用途列出包内名称和对应的 Iconfont ID。单色图标跟随文本颜色;Ray 和其他品牌标识保留各自原色。</p><p>已有图标名优先保留。三个退役资源的旧路由配置会在读取时迁移:<code>action/export_excel</code> → <code>action/download</code>、<code>logo/office</code> → <code>navigation/table</code>、<code>illustration/login_bg</code> → <code>navigation/other</code>。新代码直接使用新的完整名称。</p>`,13))]))}});export{r as __pageData,d as default};

View File

@ -1 +1 @@
import{_ as t,o as a,c as r,a3 as o}from"./chunks/framework.D8G7yXPy.js";const p=JSON.parse('{"title":"文档与源码版本","description":"","frontmatter":{},"headers":[],"relativePath":"reference/source.md","filePath":"reference/source.md"}'),n={name:"reference/source.md"};function i(c,e,d,s,l,h){return a(),r("div",null,[...e[0]||(e[0]=[o('<h1 id="文档与源码版本" tabindex="-1">文档与源码版本 <a class="header-anchor" href="#文档与源码版本" aria-label="Permalink to &quot;文档与源码版本&quot;">​</a></h1><p>本站面向 <strong>Ray Template 6.0.1</strong>。Ray Admin、文档示例和共享包位于同一仓库。页内示例使用构建时同一工作区的包,发布构建的源码链接指向对应提交。</p><table tabindex="0"><thead><tr><th>版本</th><th>源码与说明</th></tr></thead><tbody><tr><td><strong>v6</strong></td><td><a href="https://github.com/XiaoDaiGua-Ray/ray-template/tree/22c9f55f27f137ce4afe6989497739285f20f7d3" target="_blank" rel="noreferrer">Ray Template 当前源码</a> · <a href="./../guide/architecture.html">Monorepo 架构</a> · <a href="./../migration.html">版本分界与接入说明</a></td></tr><tr><td><strong>v5</strong></td><td><a href="https://github.com/XiaoDaiGua-Ray/ray-template/tree/legacy/v5" target="_blank" rel="noreferrer">legacy/v5</a> 停在 <code>6f095b7</code>,已有 <a href="https://github.com/XiaoDaiGua-Ray/ray-template/tree/v5.2.4" target="_blank" rel="noreferrer">v5.2.4 标签</a>保留。</td></tr><tr><td><strong>旧文档历史</strong></td><td><a href="https://github.com/XiaoDaiGua-Ray/ray-template-doc" target="_blank" rel="noreferrer">旧文档仓库</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template-doc/tree/0cae0e4334b16df22d491401c190360af4819025" target="_blank" rel="noreferrer">旧版正文快照</a></td></tr></tbody></table><p>源码版本号、Git 标签和网站部署各有进度。需要重现行为时,请记录具体标签或提交。报告问题时请注明使用的是 v5 还是 v6,并附上页面或模块入口。<a href="https://github.com/XiaoDaiGua-Ray/ray-template/issues" target="_blank" rel="noreferrer">问题反馈</a></p>',4)])])}const m=t(n,[["render",i]]);export{p as __pageData,m as default};
import{_ as t,o as a,c as r,a3 as o}from"./chunks/framework.D8G7yXPy.js";const p=JSON.parse('{"title":"文档与源码版本","description":"","frontmatter":{},"headers":[],"relativePath":"reference/source.md","filePath":"reference/source.md"}'),n={name:"reference/source.md"};function c(i,e,d,s,l,h){return a(),r("div",null,[...e[0]||(e[0]=[o('<h1 id="文档与源码版本" tabindex="-1">文档与源码版本 <a class="header-anchor" href="#文档与源码版本" aria-label="Permalink to &quot;文档与源码版本&quot;">​</a></h1><p>本站面向 <strong>Ray Template 6.0.1</strong>。Ray Admin、文档示例和共享包位于同一仓库。页内示例使用构建时同一工作区的包,发布构建的源码链接指向对应提交。</p><table tabindex="0"><thead><tr><th>版本</th><th>源码与说明</th></tr></thead><tbody><tr><td><strong>v6</strong></td><td><a href="https://github.com/XiaoDaiGua-Ray/ray-template/tree/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7" target="_blank" rel="noreferrer">Ray Template 当前源码</a> · <a href="./../guide/architecture.html">Monorepo 架构</a> · <a href="./../migration.html">版本分界与接入说明</a></td></tr><tr><td><strong>v5</strong></td><td><a href="https://github.com/XiaoDaiGua-Ray/ray-template/tree/legacy/v5" target="_blank" rel="noreferrer">legacy/v5</a> 停在 <code>6f095b7</code>,已有 <a href="https://github.com/XiaoDaiGua-Ray/ray-template/tree/v5.2.4" target="_blank" rel="noreferrer">v5.2.4 标签</a>保留。</td></tr><tr><td><strong>旧文档历史</strong></td><td><a href="https://github.com/XiaoDaiGua-Ray/ray-template-doc" target="_blank" rel="noreferrer">旧文档仓库</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template-doc/tree/0cae0e4334b16df22d491401c190360af4819025" target="_blank" rel="noreferrer">旧版正文快照</a></td></tr></tbody></table><p>源码版本号、Git 标签和网站部署各有进度。需要重现行为时,请记录具体标签或提交。报告问题时请注明使用的是 v5 还是 v6,并附上页面或模块入口。<a href="https://github.com/XiaoDaiGua-Ray/ray-template/issues" target="_blank" rel="noreferrer">问题反馈</a></p>',4)])])}const m=t(n,[["render",c]]);export{p as __pageData,m as default};

View File

@ -1 +1 @@
import{_ as t,o as a,c as r,a3 as o}from"./chunks/framework.D8G7yXPy.js";const p=JSON.parse('{"title":"文档与源码版本","description":"","frontmatter":{},"headers":[],"relativePath":"reference/source.md","filePath":"reference/source.md"}'),n={name:"reference/source.md"};function i(c,e,d,s,l,h){return a(),r("div",null,[...e[0]||(e[0]=[o("",4)])])}const m=t(n,[["render",i]]);export{p as __pageData,m as default};
import{_ as t,o as a,c as r,a3 as o}from"./chunks/framework.D8G7yXPy.js";const p=JSON.parse('{"title":"文档与源码版本","description":"","frontmatter":{},"headers":[],"relativePath":"reference/source.md","filePath":"reference/source.md"}'),n={name:"reference/source.md"};function c(i,e,d,s,l,h){return a(),r("div",null,[...e[0]||(e[0]=[o("",4)])])}const m=t(n,[["render",c]]);export{p as __pageData,m as default};

View File

@ -1 +1 @@
import{_ as t,o,c as r,a3 as a}from"./chunks/framework.D8G7yXPy.js";const h=JSON.parse('{"title":"Store","description":"","frontmatter":{},"headers":[],"relativePath":"reference/store.md","filePath":"reference/store.md"}'),d={name:"reference/store.md"};function c(s,e,n,i,p,l){return o(),r("div",null,[...e[0]||(e[0]=[a('<h1 id="store" tabindex="-1">Store <a class="header-anchor" href="#store" aria-label="Permalink to &quot;Store&quot;">​</a></h1><p>模板使用 Pinia 管理跨页面状态。业务代码从 <code>@/store</code> 导入相应的 Getters / Actions,读取引用用 <code>.value</code>,修改走动作。只属于一个组件或页面的状态可以继续用本地 ref。</p><table tabindex="0"><thead><tr><th>Store</th><th>访问入口</th><th>持久化</th></tr></thead><tbody><tr><td><a href="./store/setting.html">Setting</a></td><td><code>useSettingGetters</code> / <code>useSettingActions</code></td><td>Local Storage <code>piniaSettingStore</code>,排除锁屏设置弹窗显隐;当前语言另外保存。</td></tr><tr><td><a href="./store/navigation.html#menu-store">Menu</a></td><td><code>useMenuGetters</code> / <code>useMenuActions</code></td><td>Local Storage 保存当前菜单和折叠状态;标签列表另存 Session Storage。</td></tr><tr><td><a href="./store/navigation.html#keepalive-store">KeepAlive</a></td><td><code>useKeepAliveGetters</code> / <code>useKeepAliveActions</code></td><td>Session Storage 保存可缓存组件名。</td></tr><tr><td><a href="./store/runtime.html#runtime-store">Runtime</a></td><td><code>useRuntimeGetters</code> / <code>useRuntimeActions</code></td><td>无;随当前 Pinia 实例释放。</td></tr><tr><td><a href="./store/runtime.html#lock-screen-store">Lock Screen</a></td><td><code>useLockScreenGetters</code> / <code>useLockScreenActions</code></td><td>Local Storage 的历史布尔值,支持跨标签同步。</td></tr><tr><td><a href="./store/signing.html">Signing</a></td><td><code>useSigningGetters</code> / <code>useSigningActions</code></td><td>Local Storage 持久化账号显示信息,路由守卫另读 token。</td></tr></tbody></table><h2 id="初始化与扩展" tabindex="-1">初始化与扩展 <a class="header-anchor" href="#初始化与扩展" aria-label="Permalink to &quot;初始化与扩展&quot;">​</a></h2><p><code>setupStore(app)</code> 安装 Pinia 与持久化插件,应用卸载时释放 Pinia 实例及作用域。模板入口已调用,业务代码无需再次注册。Menu 与 Signing 依赖 Router 注入,请在应用组件的有效 setup 中访问。</p><p>新增 Store 在 <code>apps/admin/src/store/modules</code> 按领域建目录并指定唯一 ID。需要持久化时使用 <code>pick</code> 或 <code>omit</code>,选定存储范围和稳定的 key,只保存可序列化的值。调用接口放到 <code>apps/admin/src/store/hooks</code>,再由 <code>apps/admin/src/store/index.ts</code> 导出。原始 <code>pinia…Store</code> 同样公开给模板内部,但页面使用 hooks 可以减少对实现字段的直接依赖。</p><p>缓存键和 JSON 结构是已有数据契约。换 key、拆字段或改变序列化格式时,要考虑旧数据的读取、迁移和回退。浏览器缓存不应保存服务端密钥。</p><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/apps/admin/src/store/index.ts" target="_blank" rel="noreferrer">初始化与公开导出</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/apps/admin/src/store/README.md" target="_blank" rel="noreferrer">Store 源码约定</a></p>',8)])])}const f=t(d,[["render",c]]);export{h as __pageData,f as default};
import{_ as t,o,c as r,a3 as a}from"./chunks/framework.D8G7yXPy.js";const h=JSON.parse('{"title":"Store","description":"","frontmatter":{},"headers":[],"relativePath":"reference/store.md","filePath":"reference/store.md"}'),d={name:"reference/store.md"};function c(s,e,n,i,p,l){return o(),r("div",null,[...e[0]||(e[0]=[a('<h1 id="store" tabindex="-1">Store <a class="header-anchor" href="#store" aria-label="Permalink to &quot;Store&quot;">​</a></h1><p>模板使用 Pinia 管理跨页面状态。业务代码从 <code>@/store</code> 导入相应的 Getters / Actions,读取引用用 <code>.value</code>,修改走动作。只属于一个组件或页面的状态可以继续用本地 ref。</p><table tabindex="0"><thead><tr><th>Store</th><th>访问入口</th><th>持久化</th></tr></thead><tbody><tr><td><a href="./store/setting.html">Setting</a></td><td><code>useSettingGetters</code> / <code>useSettingActions</code></td><td>Local Storage <code>piniaSettingStore</code>,排除锁屏设置弹窗显隐;当前语言另外保存。</td></tr><tr><td><a href="./store/navigation.html#menu-store">Menu</a></td><td><code>useMenuGetters</code> / <code>useMenuActions</code></td><td>Local Storage 保存当前菜单和折叠状态;标签列表另存 Session Storage。</td></tr><tr><td><a href="./store/navigation.html#keepalive-store">KeepAlive</a></td><td><code>useKeepAliveGetters</code> / <code>useKeepAliveActions</code></td><td>Session Storage 保存可缓存组件名。</td></tr><tr><td><a href="./store/runtime.html#runtime-store">Runtime</a></td><td><code>useRuntimeGetters</code> / <code>useRuntimeActions</code></td><td>无;随当前 Pinia 实例释放。</td></tr><tr><td><a href="./store/runtime.html#lock-screen-store">Lock Screen</a></td><td><code>useLockScreenGetters</code> / <code>useLockScreenActions</code></td><td>Local Storage 的历史布尔值,支持跨标签同步。</td></tr><tr><td><a href="./store/signing.html">Signing</a></td><td><code>useSigningGetters</code> / <code>useSigningActions</code></td><td>Local Storage 持久化账号显示信息,路由守卫另读 token。</td></tr></tbody></table><h2 id="初始化与扩展" tabindex="-1">初始化与扩展 <a class="header-anchor" href="#初始化与扩展" aria-label="Permalink to &quot;初始化与扩展&quot;">​</a></h2><p><code>setupStore(app)</code> 安装 Pinia 与持久化插件,应用卸载时释放 Pinia 实例及作用域。模板入口已调用,业务代码无需再次注册。Menu 与 Signing 依赖 Router 注入,请在应用组件的有效 setup 中访问。</p><p>新增 Store 在 <code>apps/admin/src/store/modules</code> 按领域建目录并指定唯一 ID。需要持久化时使用 <code>pick</code> 或 <code>omit</code>,选定存储范围和稳定的 key,只保存可序列化的值。调用接口放到 <code>apps/admin/src/store/hooks</code>,再由 <code>apps/admin/src/store/index.ts</code> 导出。原始 <code>pinia…Store</code> 同样公开给模板内部,但页面使用 hooks 可以减少对实现字段的直接依赖。</p><p>缓存键和 JSON 结构是已有数据契约。换 key、拆字段或改变序列化格式时,要考虑旧数据的读取、迁移和回退。浏览器缓存不应保存服务端密钥。</p><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/apps/admin/src/store/index.ts" target="_blank" rel="noreferrer">初始化与公开导出</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/apps/admin/src/store/README.md" target="_blank" rel="noreferrer">Store 源码约定</a></p>',8)])])}const m=t(d,[["render",c]]);export{h as __pageData,m as default};

View File

@ -1 +1 @@
import{_ as t,o,c as r,a3 as a}from"./chunks/framework.D8G7yXPy.js";const h=JSON.parse('{"title":"Store","description":"","frontmatter":{},"headers":[],"relativePath":"reference/store.md","filePath":"reference/store.md"}'),d={name:"reference/store.md"};function c(s,e,n,i,p,l){return o(),r("div",null,[...e[0]||(e[0]=[a("",8)])])}const f=t(d,[["render",c]]);export{h as __pageData,f as default};
import{_ as t,o,c as r,a3 as a}from"./chunks/framework.D8G7yXPy.js";const h=JSON.parse('{"title":"Store","description":"","frontmatter":{},"headers":[],"relativePath":"reference/store.md","filePath":"reference/store.md"}'),d={name:"reference/store.md"};function c(s,e,n,i,p,l){return o(),r("div",null,[...e[0]||(e[0]=[a("",8)])])}const m=t(d,[["render",c]]);export{h as __pageData,m as default};

View File

@ -4,4 +4,4 @@ import{_ as t,o as a,c as s,a3 as i}from"./chunks/framework.D8G7yXPy.js";const k
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> const</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> { </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">getMenuKey</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">getMenuTagOptions</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> } </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> useMenuGetters</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">()</span></span>
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> const</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> { </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">getKeepAliveInclude</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> } </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> useKeepAliveGetters</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">()</span></span>
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> return</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> { getMenuKey, getMenuTagOptions, getKeepAliveInclude }</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">}</span></span></code></pre></div><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/apps/admin/src/store/modules/menu/index.ts" target="_blank" rel="noreferrer">Menu 实现</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/apps/admin/src/store/hooks/useMenuStore.ts" target="_blank" rel="noreferrer">Menu Hooks</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/apps/admin/src/store/modules/keep-alive/index.ts" target="_blank" rel="noreferrer">KeepAlive 实现</a></p>`,12)])])}const u=t(n,[["render",o]]);export{k as __pageData,u as default};
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">}</span></span></code></pre></div><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/apps/admin/src/store/modules/menu/index.ts" target="_blank" rel="noreferrer">Menu 实现</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/apps/admin/src/store/hooks/useMenuStore.ts" target="_blank" rel="noreferrer">Menu Hooks</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/apps/admin/src/store/modules/keep-alive/index.ts" target="_blank" rel="noreferrer">KeepAlive 实现</a></p>`,12)])])}const u=t(n,[["render",o]]);export{k as __pageData,u as default};

View File

@ -10,4 +10,4 @@ import{_ as i,o as e,c as t,a3 as a}from"./chunks/framework.D8G7yXPy.js";const c
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> setRuntimeState</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;globalSpinning&#39;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">false</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">)</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> }</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> }</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">}</span></span></code></pre></div><p>全局状态是布尔值,不对并发任务计数。如果多个独立请求同时使用,先由调用方统一协调开关。</p><h2 id="lock-screen-store" tabindex="-1">Lock Screen Store <a class="header-anchor" href="#lock-screen-store" aria-label="Permalink to &quot;Lock Screen Store&quot;">​</a></h2><p><code>useLockScreenGetters().getLocked</code> 是实际锁屏状态。<code>useLockScreenActions().setLocked(value)</code> 写入同一个状态,默认 <code>false</code>,通过 <code>isAppLockScreen</code> 在 Local Storage 保存历史布尔格式并跨标签同步。</p><p>实际锁定与 <code>setting.lockScreenSwitch</code> 分开,后者只控制锁屏设置弹窗。默认锁屏组件处理本地口令和解锁逻辑;业务按钮应打开设置弹窗,直接写锁定布尔值不会为用户建立口令。它是本机界面遮挡,与服务端会话和授权独立。</p><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/apps/admin/src/store/modules/runtime/index.ts" target="_blank" rel="noreferrer">Runtime 实现</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/apps/admin/src/store/modules/lock-screen/index.ts" target="_blank" rel="noreferrer">Lock Screen 实现</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/22c9f55f27f137ce4afe6989497739285f20f7d3/apps/admin/src/app-components/app/AppLockScreen/components/LockScreen/index.tsx" target="_blank" rel="noreferrer">锁屏流程</a></p>`,11)])])}const E=i(n,[["render",l]]);export{c as __pageData,E as default};
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">}</span></span></code></pre></div><p>全局状态是布尔值,不对并发任务计数。如果多个独立请求同时使用,先由调用方统一协调开关。</p><h2 id="lock-screen-store" tabindex="-1">Lock Screen Store <a class="header-anchor" href="#lock-screen-store" aria-label="Permalink to &quot;Lock Screen Store&quot;">​</a></h2><p><code>useLockScreenGetters().getLocked</code> 是实际锁屏状态。<code>useLockScreenActions().setLocked(value)</code> 写入同一个状态,默认 <code>false</code>,通过 <code>isAppLockScreen</code> 在 Local Storage 保存历史布尔格式并跨标签同步。</p><p>实际锁定与 <code>setting.lockScreenSwitch</code> 分开,后者只控制锁屏设置弹窗。默认锁屏组件处理本地口令和解锁逻辑;业务按钮应打开设置弹窗,直接写锁定布尔值不会为用户建立口令。它是本机界面遮挡,与服务端会话和授权独立。</p><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/apps/admin/src/store/modules/runtime/index.ts" target="_blank" rel="noreferrer">Runtime 实现</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/apps/admin/src/store/modules/lock-screen/index.ts" target="_blank" rel="noreferrer">Lock Screen 实现</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/b5c24a612c0bb6dcf857f058aeaf610ebfcf2eb7/apps/admin/src/app-components/app/AppLockScreen/components/LockScreen/index.tsx" target="_blank" rel="noreferrer">锁屏流程</a></p>`,11)])])}const E=i(n,[["render",l]]);export{c as __pageData,E as default};

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