forked from opentiny/tiny-vue
35 lines
830 B
Vue
35 lines
830 B
Vue
<template>
|
|
<div class="button-group-demo">
|
|
<tiny-button-group size="medium" :data="groupData" v-model="checkedVal"></tiny-button-group>
|
|
<tiny-button-group size="small" :data="groupData" v-model="checkedVal"></tiny-button-group>
|
|
<tiny-button-group size="mini" :data="groupData" v-model="checkedVal"></tiny-button-group>
|
|
</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>
|
|
.button-group-demo .tiny-button-group {
|
|
margin-bottom: 20px;
|
|
display: block;
|
|
}
|
|
</style>
|