mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-05 05:42:44 +08:00
fix(docs): fix button example type in documentation (#10850)
* fix(docs): fix buttons type * Update README.md Co-authored-by: neverland <chenjiahan.jait@bytedance.com>
This commit is contained in:
parent
a1d4297c92
commit
729e283ab5
@ -31,22 +31,22 @@ app.use(Button);
|
||||
### Plain
|
||||
|
||||
```html
|
||||
<van-button plain type="primary">Primary</van-button>
|
||||
<van-button plain type="primary">Danger</van-button>
|
||||
<van-button plain type="primary">Plain</van-button>
|
||||
<van-button plain type="success">Plain</van-button>
|
||||
```
|
||||
|
||||
### Hairline
|
||||
|
||||
```html
|
||||
<van-button plain hairline type="primary">Hairline</van-button>
|
||||
<van-button plain hairline type="primary">Hairline</van-button>
|
||||
<van-button plain hairline type="success">Hairline</van-button>
|
||||
```
|
||||
|
||||
### Disabled
|
||||
|
||||
```html
|
||||
<van-button disabled type="primary">Disabled</van-button>
|
||||
<van-button disabled type="primary">Disabled</van-button>
|
||||
<van-button disabled type="success">Disabled</van-button>
|
||||
```
|
||||
|
||||
### Loading
|
||||
@ -54,14 +54,14 @@ app.use(Button);
|
||||
```html
|
||||
<van-button loading type="primary" />
|
||||
<van-button loading type="primary" loading-type="spinner" />
|
||||
<van-button loading type="primary" loading-text="Loading..." />
|
||||
<van-button loading type="success" loading-text="Loading..." />
|
||||
```
|
||||
|
||||
### Shape
|
||||
|
||||
```html
|
||||
<van-button square type="primary">Square</van-button>
|
||||
<van-button round type="primary">Round</van-button>
|
||||
<van-button round type="success">Round</van-button>
|
||||
```
|
||||
|
||||
### Icon
|
||||
|
@ -36,7 +36,7 @@ app.use(Button);
|
||||
|
||||
```html
|
||||
<van-button plain type="primary">朴素按钮</van-button>
|
||||
<van-button plain type="primary">朴素按钮</van-button>
|
||||
<van-button plain type="success">朴素按钮</van-button>
|
||||
```
|
||||
|
||||
### 细边框
|
||||
@ -45,7 +45,7 @@ app.use(Button);
|
||||
|
||||
```html
|
||||
<van-button plain hairline type="primary">细边框按钮</van-button>
|
||||
<van-button plain hairline type="primary">细边框按钮</van-button>
|
||||
<van-button plain hairline type="success">细边框按钮</van-button>
|
||||
```
|
||||
|
||||
### 禁用状态
|
||||
@ -54,7 +54,7 @@ app.use(Button);
|
||||
|
||||
```html
|
||||
<van-button disabled type="primary">禁用状态</van-button>
|
||||
<van-button disabled type="primary">禁用状态</van-button>
|
||||
<van-button disabled type="success">禁用状态</van-button>
|
||||
```
|
||||
|
||||
### 加载状态
|
||||
@ -64,7 +64,7 @@ app.use(Button);
|
||||
```html
|
||||
<van-button loading type="primary" />
|
||||
<van-button loading type="primary" loading-type="spinner" />
|
||||
<van-button loading type="primary" loading-text="加载中..." />
|
||||
<van-button loading type="success" loading-text="加载中..." />
|
||||
```
|
||||
|
||||
### 按钮形状
|
||||
@ -73,7 +73,7 @@ app.use(Button);
|
||||
|
||||
```html
|
||||
<van-button square type="primary">方形按钮</van-button>
|
||||
<van-button round type="primary">圆形按钮</van-button>
|
||||
<van-button round type="success">圆形按钮</van-button>
|
||||
```
|
||||
|
||||
### 图标按钮
|
||||
|
Loading…
x
Reference in New Issue
Block a user