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:
29
AI-Coding/openspec-lite/modules/vab-nav.yaml
Normal file
29
AI-Coding/openspec-lite/modules/vab-nav.yaml
Normal file
@@ -0,0 +1,29 @@
|
||||
# Module Spec:vab-nav(顶部导航条聚合)
|
||||
|
||||
module:
|
||||
id: vab-nav
|
||||
name: VabNav(顶部导航条)
|
||||
type: ui
|
||||
entrypoints:
|
||||
- library/components/VabNav/index.vue
|
||||
|
||||
public_api:
|
||||
concept:
|
||||
- "顶部导航聚合:左侧(Fold + Tabs/Breadcrumb),右侧(ErrorLog/Lock/Search/Notice/FullScreen/Language/Theme/Refresh/Avatar)"
|
||||
|
||||
dependency_closure:
|
||||
runtime:
|
||||
- "store-routes:tab/tabMenu/routes"
|
||||
- "vue-router:useRouter"
|
||||
- "utils/validate:isExternal"
|
||||
- "config:openFirstMenu"
|
||||
- "i18n:translate()"
|
||||
- "Element Plus:el-row/el-col/el-tabs/el-tab-pane"
|
||||
- "Components:VabFold/VabBreadcrumb/VabErrorLog/VabLock/VabSearch/VabNotice/VabFullScreen/VabLanguage/VabTheme/VabRefresh/VabAvatar"
|
||||
|
||||
acceptance:
|
||||
- "layout='comprehensive' 时显示顶部 tabs,否则显示面包屑(hidden-xs-only)"
|
||||
- "点击 tab:外链 window.open;否则(openFirstMenu=true)跳 redirect 或自身"
|
||||
|
||||
pitfalls:
|
||||
- "强依赖多组件与 routesStore 输出结构;抽取时必须把依赖组件闭包一起带走"
|
||||
Reference in New Issue
Block a user