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/plugin-vab.yaml
Normal file
29
AI-Coding/openspec-lite/modules/plugin-vab.yaml
Normal file
@@ -0,0 +1,29 @@
|
||||
# Module Spec:plugin-vab(全局能力注入 + 事件总线)
|
||||
|
||||
module:
|
||||
id: plugin-vab
|
||||
name: Vab 插件(gp 全局方法 + mitt 事件总线)
|
||||
type: plugin
|
||||
entrypoints:
|
||||
- library/plugins/vab.ts
|
||||
|
||||
public_api:
|
||||
concept:
|
||||
- "通过 app.provide + app.config.globalProperties 注入 gp($baseLoading/$baseMessage/$baseAlert/$baseConfirm/$baseNotify/$baseTableHeight/$pub/$sub/$unsub)"
|
||||
- "内部使用 mitt 作为事件总线实现 $pub/$sub/$unsub"
|
||||
|
||||
dependency_closure:
|
||||
runtime:
|
||||
- "Element Plus:ElLoading / ElMessage / ElMessageBox / ElNotification"
|
||||
- "mitt"
|
||||
- "lodash"
|
||||
- "src/config(loadingText/messageDuration)"
|
||||
types:
|
||||
- "types/library.d.ts(globalPropertiesType)"
|
||||
|
||||
acceptance:
|
||||
- "安装插件后,可通过 inject('$pub')/this.$pub 发布事件"
|
||||
- "$baseMessage/$baseLoading 能正常工作"
|
||||
|
||||
pitfalls:
|
||||
- "生产环境存在授权/依赖检查逻辑,可能将 app.config.globalProperties 置空(不要在外部假设 gp 永远存在)"
|
||||
Reference in New Issue
Block a user