Files
lgp-admin-plus-api/app/template/uniapp/PAGES_JSON_SNIPPET.md

37 lines
1.1 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 模板名称 — uniapp 粘贴说明C 端三页)
## 落点
`nl-admin-uniapp/src/pages-sub/my-gen/dashCase/`
## pages.json 片段
`subPackages``root: pages-sub/my-gen``pages` 追加:
```json
{ "path": "dashCase/pages/list", "style": { "navigationBarTitleText": "模板名称" } },
{ "path": "dashCase/pages/detail", "style": { "navigationBarTitleText": "模板名称详情" } },
{ "path": "dashCase/pages/form", "style": { "navigationBarTitleText": "编辑模板名称" } }
```
## features.ts 片段
```ts
{
key: 'dashCase',
title: '模板名称',
desc: '代码生成模块',
icon: '码',
category: 'gen',
path: '/pages-sub/my-gen/dashCase/pages/list',
keywords: ['模板名称'],
}
```
## 强制约定
- 兼容微信小程序 + App + H5
- 交互:列表 → 详情 → 全屏表单;**禁止**底部抽屉做主 CRUD
- 复用 `AppCardList` / `AppDetailHero` / `AppInfoGroup` / `AppBottomBar` / `AppPageForm`
- 列表页统一:`AppPageAtmosphere`(氛围底)+ `AppSkeleton`(首屏骨架)+ `AppFab`(新增悬浮按钮)