refactor: 将代码规范文档从 specs 目录迁移至 references 目录

This commit is contained in:
Lyda
2026-01-22 14:00:04 +08:00
parent aa1fe39dad
commit fa70477264
6 changed files with 0 additions and 0 deletions

39
references/vue.base.md Normal file
View File

@@ -0,0 +1,39 @@
# Vue 基础代码 `[Vue.Base]`
> - includes `*.vue`
## Vue 自定义组件命名规则 `[Vue.Base.CustomComponentName]`
必须使用大驼峰命名并且使用的时候也是,并且至少两个单词。
### Good
```vue
<!-- UserInfo.vue -->
<template>
<div></div>
</template>
<script>
export default {
name: "UserInfo",
// ...
};
</script>
```
### Bad
```vue
<!-- userinfo.vue -->
<template>
<div></div>
</template>
<script>
export default {
name: "userinfo",
// ...
};
</script>
```