split frontend detail

This commit is contained in:
Timi
2026-01-06 11:22:24 +08:00
parent 98b0c0027d
commit 4022cf56c8
9 changed files with 76 additions and 96 deletions

5
WebVue.md Normal file
View File

@ -0,0 +1,5 @@
## 前端 Vue 约束
- Vue 模板中如果要使用变量则应该使用 v-text 而不是插值符号以避免渲染延时,如果只是纯文本不要使用 v-text
- Vue Composition API 的代码应该按功能模块分组,相同的变量、函数等在一个片段,公共的在脚本头部,不同模块之间变量、函数不穿插
- 保持组件小而集中, 提取逻辑的可组合项