refactor: 组件就近迁移、操作菜单组件化并统一页面命名
- 组件文件统一 PascalCase 并就近迁入所属目录 - 操作菜单抽为 ActionSheet 组件,危险操作确认拆为 useConfirmAction - 导航栏测量拆为 useNavbarMetrics 并收缩对外接口 - 页面方法按动词约定重命名,show 前缀与 handle 误用一并修正 - 通知与菜单接口类型改用字面量联合并修正取值注释 - 多行空壳注释收回单行
This commit is contained in:
1 parent
1e3954ce0c
commit
cb1a1e349f
63 files changed
+1653
-1423
No files matched your search
+3
-2
@@ -21,9 +21,10 @@
|
||||
"plugins": ["@uni-helper/uni-types/volar-plugin"],
|
||||
// 禁用原生组件严格类型检查(uni-app 原生组件与 Volar 的兼容性问题)
|
||||
"nativeTags": ["block", "component", "template", "slot"],
|
||||
// 忽略 slot props 隐式 any 类型错误(递归组件 slot 转发的已知限制)
|
||||
// 模板类型检查在 vue-tsc 默认工程里关闭:@wot-ui/ui 内部 SFC 模板(canvas id / inputmode
|
||||
// 等原生属性写法)在严格模板模式下报错,工程无法只针对自有文件开启。
|
||||
// 自有文件的模板检查走 tsconfig.templates.json + scripts/check-templates.mjs。
|
||||
"strictTemplates": false,
|
||||
// Wot UI 的 SFC 模板类型与当前 uni 类型存在兼容问题,脚本类型仍保留检查
|
||||
"skipTemplateCodegen": true
|
||||
},
|
||||
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
|
||||
|
||||
Reference in new issue
Block a user