mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
docs: update style guide (#8677)
This commit is contained in:
parent
a69fb5f1eb
commit
4391f86aa8
@ -135,12 +135,14 @@ export default {
|
|||||||
export default {
|
export default {
|
||||||
name: '',
|
name: '',
|
||||||
|
|
||||||
mixins: [],
|
|
||||||
|
|
||||||
components: {},
|
components: {},
|
||||||
|
|
||||||
props: {},
|
props: {},
|
||||||
|
|
||||||
|
emits: [],
|
||||||
|
|
||||||
|
setup() {},
|
||||||
|
|
||||||
data() {},
|
data() {},
|
||||||
|
|
||||||
computed: {},
|
computed: {},
|
||||||
@ -151,7 +153,7 @@ export default {
|
|||||||
|
|
||||||
mounted() {},
|
mounted() {},
|
||||||
|
|
||||||
destroyed() {},
|
unmounted() {},
|
||||||
|
|
||||||
methods: {},
|
methods: {},
|
||||||
};
|
};
|
||||||
@ -190,9 +192,7 @@ export default {
|
|||||||
单文件组件应该总是让顶级标签的顺序保持一致,且标签之间留有空行。
|
单文件组件应该总是让顶级标签的顺序保持一致,且标签之间留有空行。
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<template>
|
<template> ... </template>
|
||||||
...
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/* ... */
|
/* ... */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user