mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-09 04:31:35 +08:00
doc(steps): use radio-button in place of button
This commit is contained in:
parent
3dabb371b7
commit
931dd4fc67
@ -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'
|
||||
}
|
||||
},
|
||||
|
@ -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'
|
||||
}
|
||||
},
|
||||
|
@ -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'
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user