refactor(unocss): 迁移至@uni-helper/unocss-preset-uni预设并优化配置
- 使用@uni-helper/unocss-preset-uni替代原有小程序预设配置 - 移除unocss-applet依赖及相关自定义规则 - 更新vite配置中UnoCSS的异步导入方式 - 添加fg-*组件自动导入规则 - 更新about页面导航栏标题 - 调整package.json依赖版本 ``` 这个提交消息: 1. 使用`refactor`类型,因为这是对CSS配置体系的重构 2. 添加`unocss`作用域明确修改范围 3. 简明描述主要变更内容 4. 使用中文符合要求 5. 通过条目列出重要修改点,避免重复描述
This commit is contained in:
8
src/types/async-component.d.ts
vendored
Normal file
8
src/types/async-component.d.ts
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/* eslint-disable */
|
||||
/* prettier-ignore */
|
||||
// @ts-nocheck
|
||||
// Generated by @uni-ku/bundle-optimizer
|
||||
declare module '*?async' {
|
||||
const component: any
|
||||
export = component
|
||||
}
|
||||
13
src/types/async-import.d.ts
vendored
Normal file
13
src/types/async-import.d.ts
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
/* eslint-disable */
|
||||
/* prettier-ignore */
|
||||
// @ts-nocheck
|
||||
// Generated by @uni-ku/bundle-optimizer
|
||||
export {}
|
||||
|
||||
interface ModuleMap {
|
||||
[path: string]: any
|
||||
}
|
||||
|
||||
declare global {
|
||||
function AsyncImport<T extends keyof ModuleMap>(arg: T): Promise<ModuleMap[T]>
|
||||
}
|
||||
Reference in New Issue
Block a user