docs: 统一规范文档示例格式,使用三级标题 Example 和四级标题 Good/Bad 展示代码示例
This commit is contained in:
@@ -6,7 +6,9 @@
|
||||
|
||||
必须使用大驼峰命名并且使用的时候也是,并且至少两个单词。
|
||||
|
||||
### Good
|
||||
### Example: 自定义组件命名
|
||||
|
||||
#### Good: 使用大驼峰且至少两个单词
|
||||
|
||||
```vue
|
||||
<!-- UserInfo.vue -->
|
||||
@@ -22,7 +24,7 @@ export default {
|
||||
</script>
|
||||
```
|
||||
|
||||
### Bad
|
||||
#### Bad: 使用全小写或单词不足
|
||||
|
||||
```vue
|
||||
<!-- userinfo.vue -->
|
||||
|
||||
Reference in New Issue
Block a user