docs: 统一规范文档示例格式,使用三级标题 Example 和四级标题 Good/Bad 展示代码示例

This commit is contained in:
Lyda
2026-04-13 13:00:57 +08:00
parent dae54e90b6
commit f34b31f542
8 changed files with 141 additions and 71 deletions
+4 -2
View File
@@ -6,7 +6,9 @@
必须使用大驼峰命名并且使用的时候也是,并且至少两个单词。
### Good
### Example: 自定义组件命名
#### Good: 使用大驼峰且至少两个单词
```vue
<!-- UserInfo.vue -->
@@ -22,7 +24,7 @@ export default {
</script>
```
### Bad
#### Bad: 使用全小写或单词不足
```vue
<!-- userinfo.vue -->