feat: 提交多个新UI组件模块spec和相关属性设定,包括卡片封装、渐变卡片、列式布局组件等,重写了readme.md,用于AI Coding
Some checks are pending
Call HTTPS API / build (push) Waiting to run

This commit is contained in:
2025-12-27 15:42:57 +08:00
parent fc9c726de4
commit 55abf26cfa
78 changed files with 3024 additions and 103 deletions

16
AI-Coding/05-Store.md Normal file
View File

@@ -0,0 +1,16 @@
# 05. 状态管理Pinia Store
- `src/store/index.ts``createPinia()``app.use(pinia)`
- i18n 语言读取:`src/i18n/index.ts` 通过 `useSettingsStore(pinia)` 获取语言
## AI 提取/迁移注意
- 迁移 `src/store/index.ts` 时,通常也需要迁移:
- `src/store/modules/settings.ts`(见 `12-Settings-Store.md` / `openspec-lite/modules/store-settings.yaml`
- `src/store/modules` 下其它基础模块(见 `14-Store-Modules.md`
- 与其相关的类型(`types/`,即 `/#` 别名指向的目录)
## 验收点
- Store 能正常注入
- 关键 store如 settings能在不报错情况下读取