forked from opentiny/tiny-vue
24 lines
488 B
Vue
24 lines
488 B
Vue
<template>
|
|
<tiny-button-group :data="groupData" :border="false" v-model="checkedVal"></tiny-button-group>
|
|
</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>
|