mirror of
https://github.com/XiaoDaiGua-Ray/ray-template.git
synced 2026-11-17 16:13:36 +08:00
2 lines
2.0 KiB
JavaScript
2 lines
2.0 KiB
JavaScript
import{_ as t,o as a,c as r,a3 as o}from"./chunks/framework.D8G7yXPy.js";const f=JSON.parse('{"title":"工具函数","description":"","frontmatter":{},"headers":[],"relativePath":"reference/utils.md","filePath":"reference/utils.md"}'),d={name:"reference/utils.md"};function c(s,e,i,l,n,h){return a(),r("div",null,[...e[0]||(e[0]=[o('<h1 id="工具函数" tabindex="-1">工具函数 <a class="header-anchor" href="#工具函数" aria-label="Permalink to "工具函数""></a></h1><p><code>@/utils</code> 汇总模板公开工具。应用初始化或底层模块可以按职责从 <code>@/utils/core</code>、<code>@/utils/cache</code>、<code>@/utils/files</code> 等入口导入,避免加载无关依赖。历史 <code>basic.ts</code> 和 <code>c/</code> 仍作为转发入口。</p><table tabindex="0"><thead><tr><th>主题</th><th>API</th></tr></thead><tbody><tr><td><a href="./utils/core.html">基础、日期与数值</a></td><td>类型判断、PromiseLike、随机标识、错误处理、对象更新、日期范围、定点运算</td></tr><tr><td><a href="./utils/storage.html">缓存与兼容加密</a></td><td>Local / Session Storage、前缀、历史 AES JSON</td></tr><tr><td><a href="./utils/browser.html">Vue 与浏览器</a></td><td>ref / DOM 解包、样式、查询、下载、截图打印、侧栏定位</td></tr></tbody></table><p>下载和打印需要在浏览器执行,响应式 DOM 工具应在 Vue 作用域内创建。缓存和文件 API 的泛型不校验外部数据结构;跨信任边界时先验证输入。</p><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/19ac1805a52f7ebe7387cceb56215da24f4a2e17/apps/admin/src/utils/index.ts" target="_blank" rel="noreferrer">公开导出</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/19ac1805a52f7ebe7387cceb56215da24f4a2e17/apps/admin/src/utils/README.md" target="_blank" rel="noreferrer">实现与回归索引</a></p>',5)])])}const p=t(d,[["render",c]]);export{f as __pageData,p as default};
|