diff --git a/src/VueAdmin.ts b/src/VueAdmin.ts index cc51f9f..85e7fbd 100644 --- a/src/VueAdmin.ts +++ b/src/VueAdmin.ts @@ -57,8 +57,11 @@ export interface ShrimpAdminOptions { // ============== 源注册表 ============== // -// 唯一约定:消费侧把 .vue 源放进 `sources`,框架按文件路径后缀解析。 -// 框架内部对可覆盖的 .vue 也用 resolveVue 解析(而不是静态 import),保证 consumer 覆盖在框架内部使用点也生效。 +// 框架在 3 个入口点用消费侧 sources 覆盖内置(按路径后缀同后缀覆盖): +// 1. router: components/{layout,login,404}.vue +// 2. registerRoute: module/.vue 等业务模块 +// 3. fieldRegistry: components/fields/Field.vue (按文件名导出的字段类型) +// 框架内 .vue 之间的 peer 引用是硬编码静态 import,override 颗粒度就停在上面这些"入口"。 const internalSources = import.meta.glob('./{components,module}/**/*.vue') const externalSources: Record = {} diff --git a/src/components/ShrimpTable.vue b/src/components/ShrimpTable.vue index 478ac94..9c8fc1b 100644 --- a/src/components/ShrimpTable.vue +++ b/src/components/ShrimpTable.vue @@ -78,22 +78,21 @@