mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-20 20:39:55 +00:00
- 新增fastdocs文档工程,使用vitepress 2.0构建 - 将原frontend/docs下的文档资源迁移至fastdocs工程 - 优化nginx配置,支持多项目部署路由 - 更新README文档,调整图片引用路径 - 移除旧的start.sh脚本,新增更完善的deploy.sh部署脚本 - 调整docker-compose配置,支持多项目部署 - 修复fastapp中qiun-data-charts组件willReadFrequently属性问题 - 更新项目依赖版本,统一使用pnpm管理 - 优化项目结构,分离前端、小程序和文档工程
39 lines
1.3 KiB
TypeScript
39 lines
1.3 KiB
TypeScript
import presetWeapp from "unocss-preset-weapp";
|
|
import { extractorAttributify, transformerClass } from "unocss-preset-weapp/transformer";
|
|
|
|
const { presetWeappAttributify, transformerAttributify } = extractorAttributify();
|
|
|
|
export default {
|
|
presets: [
|
|
// https://github.com/MellowCo/unocss-preset-weapp
|
|
presetWeapp(),
|
|
// attributify autocomplete
|
|
presetWeappAttributify(),
|
|
],
|
|
shortcuts: [
|
|
{
|
|
"flex-center": "flex justify-center items-center flex-wrap",
|
|
"flex-start": "flex justify-start items-center",
|
|
"flex-end": "flex justify-end items-center",
|
|
"flex-between": "flex justify-between items-center",
|
|
"flex-around": "flex justify-around items-center",
|
|
"flex-evenly": "flex justify-evenly items-center",
|
|
"flex-stretch": "flex justify-stretch items-center",
|
|
"flex-baseline": "flex justify-baseline items-center",
|
|
"flex-column": "flex flex-col",
|
|
"flex-row": "flex flex-row",
|
|
|
|
// 垂直布局并居中对齐
|
|
"flex-col-center": "flex flex-col items-center",
|
|
},
|
|
],
|
|
|
|
transformers: [
|
|
// https://github.com/MellowCo/unocss-preset-weapp/tree/main/src/transformer/transformerAttributify
|
|
transformerAttributify(),
|
|
|
|
// https://github.com/MellowCo/unocss-preset-weapp/tree/main/src/transformer/transformerClass
|
|
transformerClass(),
|
|
],
|
|
};
|