forked from opentiny/tiny-vue
33 lines
611 B
Vue
33 lines
611 B
Vue
<template>
|
||
<div>
|
||
<tiny-button-group :data="groupData" v-model="checkedVal"></tiny-button-group>
|
||
<div class="mt-12">当前选中值:{{ checkedVal }}</div>
|
||
</div>
|
||
</template>
|
||
|
||
<script>
|
||
import { ButtonGroup } from '@opentiny/vue'
|
||
|
||
export default {
|
||
components: {
|
||
TinyButtonGroup: ButtonGroup
|
||
},
|
||
data() {
|
||
return {
|
||
checkedVal: 'Button1',
|
||
groupData: [
|
||
{ text: 'Button1', value: 'Button1' },
|
||
{ text: 'Button2', value: 'Button2' },
|
||
{ text: 'Button3', value: 'Button3' }
|
||
]
|
||
}
|
||
}
|
||
}
|
||
</script>
|
||
|
||
<style scoped>
|
||
.mt-12 {
|
||
margin-top: 12px;
|
||
}
|
||
</style>
|