Skip to content

Commit 97012c2

Browse files
committed
docs(space): update #2687
1 parent 23fcdce commit 97012c2

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

src/packages/__VUE/space/doc.en-US.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Sets the spacing between elements. Available in `NutUI` >= 4.2.0.
66

77
### Install
88

9-
```javascript
9+
```js
1010
import { createApp } from 'vue';
1111
import { Space } from '@nutui/nutui';
1212

@@ -20,7 +20,7 @@ The Space component sets a certain spacing between the subcomponents, the defaul
2020

2121
:::demo
2222

23-
```html
23+
```vue
2424
<template>
2525
<nut-space>
2626
<nut-button type="primary">Button</nut-button>
@@ -39,7 +39,7 @@ By setting the direction property to vertical, you can set the spacing of the ve
3939

4040
:::demo
4141

42-
```html
42+
```vue
4343
<template>
4444
<nut-space direction="vertical" fill>
4545
<nut-button type="primary" block>Button</nut-button>
@@ -59,7 +59,7 @@ You can also set css variables -nut-space-gap control, priority: gutter>css Vari
5959

6060
:::demo
6161

62-
```html
62+
```vue
6363
<template>
6464
<!-- gutter -->
6565
<nut-space :gutter="20">
@@ -88,7 +88,7 @@ In horizontal mode, the wrap property controls whether child elements are wrappe
8888

8989
:::demo
9090

91-
```html
91+
```vue
9292
<template>
9393
<nut-space wrap>
9494
<nut-button type="primary" block>Button</nut-button>
@@ -127,8 +127,8 @@ In horizontal mode, the wrap property controls whether child elements are wrappe
127127
### CSS Variables
128128

129129
The component provides the following CSS variables, which can be used to customize styles. Please refer
130-
to [ConfigProvider component](#/zh-CN/component/configprovider)
130+
to [ConfigProvider component](#/en-US/component/configprovider)
131131

132132
| Name | Default | Description |
133133
| --- | --- | --- |
134-
| \--nutui-space-gap | `8px` | Spacing size |
134+
| \--nut-space-gap | `8px` | Spacing size |

src/packages/__VUE/space/doc.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
### 安装
88

9-
```javascript
9+
```js
1010
import { createApp } from 'vue';
1111
import { Space } from '@nutui/nutui';
1212

@@ -20,7 +20,7 @@ Space 组件会在各个子组件之间设置一定的间距,默认间距为 8
2020

2121
:::demo
2222

23-
```html
23+
```vue
2424
<template>
2525
<nut-space>
2626
<nut-button type="primary">按钮</nut-button>
@@ -39,7 +39,7 @@ Space 组件会在各个子组件之间设置一定的间距,默认间距为 8
3939

4040
:::demo
4141

42-
```html
42+
```vue
4343
<template>
4444
<nut-space direction="vertical" fill>
4545
<nut-button type="primary" block>按钮</nut-button>
@@ -59,7 +59,7 @@ Space 组件会在各个子组件之间设置一定的间距,默认间距为 8
5959

6060
:::demo
6161

62-
```html
62+
```vue
6363
<template>
6464
<!-- gutter控制 -->
6565
<nut-space :gutter="20">
@@ -88,7 +88,7 @@ Space 组件会在各个子组件之间设置一定的间距,默认间距为 8
8888

8989
:::demo
9090

91-
```html
91+
```vue
9292
<template>
9393
<nut-space wrap>
9494
<nut-button type="primary" block>按钮</nut-button>
@@ -130,4 +130,4 @@ Space 组件会在各个子组件之间设置一定的间距,默认间距为 8
130130

131131
| 名称 | 默认值 | 描述 |
132132
| --- | --- | --- |
133-
| \--nutui-space-gap | `8px` | 间距大小 |
133+
| \--nut-space-gap | `8px` | 间距大小 |

src/packages/__VUE/space/doc.taro.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
### 安装
88

9-
```javascript
9+
```js
1010
import { createApp } from 'vue';
1111
import { Space } from '@nutui/nutui-taro';
1212

@@ -20,7 +20,7 @@ Space 组件会在各个子组件之间设置一定的间距,默认间距为 8
2020

2121
:::demo
2222

23-
```html
23+
```vue
2424
<template>
2525
<nut-space>
2626
<nut-button type="primary">按钮</nut-button>
@@ -39,7 +39,7 @@ Space 组件会在各个子组件之间设置一定的间距,默认间距为 8
3939

4040
:::demo
4141

42-
```html
42+
```vue
4343
<template>
4444
<nut-space direction="vertical" fill>
4545
<nut-button type="primary" block>按钮</nut-button>
@@ -59,7 +59,7 @@ Space 组件会在各个子组件之间设置一定的间距,默认间距为 8
5959

6060
:::demo
6161

62-
```html
62+
```vue
6363
<template>
6464
<!-- gutter控制 -->
6565
<nut-space :gutter="20">
@@ -88,7 +88,7 @@ Space 组件会在各个子组件之间设置一定的间距,默认间距为 8
8888

8989
:::demo
9090

91-
```html
91+
```vue
9292
<template>
9393
<nut-space wrap>
9494
<nut-button type="primary" block>按钮</nut-button>
@@ -130,4 +130,4 @@ Space 组件会在各个子组件之间设置一定的间距,默认间距为 8
130130

131131
| 名称 | 默认值 | 描述 |
132132
| --- | --- | --- |
133-
| \--nutui-space-gap | `8px` | 间距大小 |
133+
| \--nut-space-gap | `8px` | 间距大小 |

0 commit comments

Comments
 (0)