doc(steps): use radio-button in place of button

This commit is contained in:
07akioni 2019-12-13 17:55:26 +08:00
parent 3dabb371b7
commit 931dd4fc67
3 changed files with 46 additions and 46 deletions

View File

@ -37,20 +37,20 @@
</template>
</n-button>
</n-button-group>
<n-button-group>
<n-button @click="currentStatus='error'">
current error
</n-button>
<n-button @click="currentStatus='process'">
current process
</n-button>
<n-button @click="currentStatus='wait'">
current wait
</n-button>
<n-button @click="currentStatus='finish'">
current finish
</n-button>
</n-button-group>
<n-radio-group v-model="currentStatus" size="medium">
<n-radio-button value="error">
Error
</n-radio-button>
<n-radio-button value="process">
Process
</n-radio-button>
<n-radio-button value="wait">
Wait
</n-radio-button>
<n-radio-button value="finish">
Finish
</n-radio-button>
</n-radio-group>
```
```js
@ -64,7 +64,7 @@ export default {
},
data () {
return {
current: null,
current: 1,
currentStatus: 'error'
}
},

View File

@ -39,20 +39,20 @@ Steps has `small`, `medium` size.
</template>
</n-button>
</n-button-group>
<n-button-group>
<n-button @click="currentStatus='error'">
current error
</n-button>
<n-button @click="currentStatus='process'">
current process
</n-button>
<n-button @click="currentStatus='wait'">
current wait
</n-button>
<n-button @click="currentStatus='finish'">
current finish
</n-button>
</n-button-group>
<n-radio-group v-model="currentStatus" size="medium">
<n-radio-button value="error">
Error
</n-radio-button>
<n-radio-button value="process">
Process
</n-radio-button>
<n-radio-button value="wait">
Wait
</n-radio-button>
<n-radio-button value="finish">
Finish
</n-radio-button>
</n-radio-group>
```
```js
@ -66,7 +66,7 @@ export default {
},
data () {
return {
current: null,
current: 1,
currentStatus: 'error'
}
},

View File

@ -1,9 +1,9 @@
# Vertical
```html
<n-steps
vertical
:current="current"
:status="currentStatus"
vertical
>
<n-step
title="I Me Mine"
@ -38,20 +38,20 @@
</template>
</n-button>
</n-button-group>
<n-button-group>
<n-button @click="currentStatus='error'">
current error
</n-button>
<n-button @click="currentStatus='process'">
current process
</n-button>
<n-button @click="currentStatus='wait'">
current wait
</n-button>
<n-button @click="currentStatus='finish'">
current finish
</n-button>
</n-button-group>
<n-radio-group v-model="currentStatus" size="medium">
<n-radio-button value="error">
Error
</n-radio-button>
<n-radio-button value="process">
Process
</n-radio-button>
<n-radio-button value="wait">
Wait
</n-radio-button>
<n-radio-button value="finish">
Finish
</n-radio-button>
</n-radio-group>
```
```js
@ -65,7 +65,7 @@ export default {
},
data () {
return {
current: null,
current: 1,
currentStatus: 'error'
}
},