Skip to content

Commit fb4884d

Browse files
committed
fix: format
1 parent 510c0ba commit fb4884d

File tree

2 files changed

+20
-24
lines changed

2 files changed

+20
-24
lines changed

docs/volar/setup-jsdoc.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ Define the component's JSDoc in the script setup block.
1010

1111
## Basic Usage
1212

13-
```vue twoslash
13+
````vue twoslash
1414
<script setup lang="tsx">
1515
/**
1616
* @example
1717
* ```vue
1818
* <Comp :foo="1" />
1919
* ```
20-
*/
20+
*/
2121
const Comp = () => <div />
2222
// ---cut---
2323
// @noErrors
@@ -28,26 +28,26 @@ import Comp from './Comp.vue'
2828
<template>
2929
<Comp />
3030
</template>
31-
```
31+
````
3232

3333
### There are two places to define
3434

3535
1. The first line of the script setup block.
3636

37-
```vue
37+
````vue
3838
<script setup lang="ts">
3939
/**
4040
* @example
4141
* ```vue
4242
* <Comp :foo="1" />
4343
* ```
44-
*/
44+
*/
4545
4646
defineProps<{
4747
foo: number
4848
}>()
4949
</script>
50-
```
50+
````
5151

5252
2. Above the `export default` expression.
5353

@@ -57,7 +57,7 @@ This feature depends on `exportRender`, and make sure `exportRender` is not disa
5757

5858
:::
5959

60-
```vue
60+
````vue
6161
<script setup lang="tsx">
6262
defineProps<{
6363
foo: number
@@ -68,12 +68,10 @@ defineProps<{
6868
* ```vue
6969
* <Comp :foo="1" />
7070
* ```
71-
*/
72-
export default (
73-
<div />
74-
)
71+
*/
72+
export default <div />
7573
</script>
76-
```
74+
````
7775

7876
## Volar Configuration
7977

docs/zh-CN/volar/setup-jsdoc.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010

1111
## 基本用法
1212

13-
```vue twoslash
13+
````vue twoslash
1414
<script setup lang="tsx">
1515
/**
1616
* @example
1717
* ```vue
1818
* <Comp :foo="1" />
1919
* ```
20-
*/
20+
*/
2121
const Comp = () => <div />
2222
// ---cut---
2323
// @noErrors
@@ -28,26 +28,26 @@ import Comp from './Comp.vue'
2828
<template>
2929
<Comp />
3030
</template>
31-
```
31+
````
3232

3333
### 有两个地方可以去定义
3434

3535
1. `script setup` 代码块的第一行.
3636

37-
```vue
37+
````vue
3838
<script setup lang="ts">
3939
/**
4040
* @example
4141
* ```vue
4242
* <Comp :foo="1" />
4343
* ```
44-
*/
44+
*/
4545
4646
defineProps<{
4747
foo: number
4848
}>()
4949
</script>
50-
```
50+
````
5151

5252
2.`export default` 表达式的上面.
5353

@@ -57,7 +57,7 @@ defineProps<{
5757

5858
:::
5959

60-
```vue
60+
````vue
6161
<script setup lang="tsx">
6262
defineProps<{
6363
foo: number
@@ -68,12 +68,10 @@ defineProps<{
6868
* ```vue
6969
* <Comp :foo="1" />
7070
* ```
71-
*/
72-
export default (
73-
<div />
74-
)
71+
*/
72+
export default <div />
7573
</script>
76-
```
74+
````
7775

7876
## Volar 配置
7977

0 commit comments

Comments
 (0)