feat: 提交多个新UI组件模块spec和相关属性设定,包括卡片封装、渐变卡片、列式布局组件等,重写了readme.md,用于AI Coding
Some checks are pending
Call HTTPS API / build (push) Waiting to run
Some checks are pending
Call HTTPS API / build (push) Waiting to run
This commit is contained in:
21
AI-Coding/openspec-lite/modules/mock.yaml
Normal file
21
AI-Coding/openspec-lite/modules/mock.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
# Module Spec(示例):mock
|
||||
|
||||
module:
|
||||
id: mock
|
||||
name: 本地 Mock(devServer 中间件)
|
||||
entrypoints:
|
||||
- mock/index.js
|
||||
- mock/controller
|
||||
|
||||
public_api:
|
||||
concept:
|
||||
- "route object: { url, type, response }"
|
||||
|
||||
usage_examples:
|
||||
- "在 mock/controller/<domain>.js 增加路由对象,devServer 会自动注册"
|
||||
|
||||
acceptance:
|
||||
- "启动开发服务器后,请求命中 mock 并返回 mockjs 数据"
|
||||
|
||||
pitfalls:
|
||||
- "路由匹配会自动拼 baseURL 前缀(来自 src/config)"
|
||||
Reference in New Issue
Block a user