tiny-vue/examples/sites/demos/pc/app/pager/pager-mode-composition-api.vue

29 lines
738 B
Vue
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<div class="content">
显示模式
<tiny-radio-group v-model="mode">
<tiny-radio-button label="number"></tiny-radio-button>
<tiny-radio-button label="simple"></tiny-radio-button>
<tiny-radio-button label="complete"></tiny-radio-button>
<tiny-radio-button label="fixed"></tiny-radio-button>
</tiny-radio-group>
<tiny-pager :mode="mode" :total="100"></tiny-pager>
</div>
</template>
<script setup>
import { ref } from 'vue'
import { Pager as TinyPager, RadioButton as TinyRadioButton, RadioGroup as TinyRadioGroup } from '@opentiny/vue'
const mode = ref('number')
</script>
<style scoped>
.content {
margin-bottom: 20px;
}
.tiny-radio-group {
margin-bottom: 10px;
}
</style>