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:
Yorksh1re 2022-07-26 10:22:52 +08:00 committed by GitHub
parent a1d4297c92
commit 729e283ab5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 11 deletions

View File

@ -31,22 +31,22 @@ app.use(Button);
### Plain ### Plain
```html ```html
<van-button plain type="primary">Primary</van-button> <van-button plain type="primary">Plain</van-button>
<van-button plain type="primary">Danger</van-button> <van-button plain type="success">Plain</van-button>
``` ```
### Hairline ### Hairline
```html ```html
<van-button plain hairline type="primary">Hairline</van-button> <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 ### Disabled
```html ```html
<van-button disabled type="primary">Disabled</van-button> <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 ### Loading
@ -54,14 +54,14 @@ app.use(Button);
```html ```html
<van-button loading type="primary" /> <van-button loading type="primary" />
<van-button loading type="primary" loading-type="spinner" /> <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 ### Shape
```html ```html
<van-button square type="primary">Square</van-button> <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 ### Icon

View File

@ -36,7 +36,7 @@ app.use(Button);
```html ```html
<van-button plain type="primary">朴素按钮</van-button> <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 ```html
<van-button plain hairline type="primary">细边框按钮</van-button> <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 ```html
<van-button disabled type="primary">禁用状态</van-button> <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 ```html
<van-button loading type="primary" /> <van-button loading type="primary" />
<van-button loading type="primary" loading-type="spinner" /> <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 ```html
<van-button square type="primary">方形按钮</van-button> <van-button square type="primary">方形按钮</van-button>
<van-button round type="primary">圆形按钮</van-button> <van-button round type="success">圆形按钮</van-button>
``` ```
### 图标按钮 ### 图标按钮