tiny-vue/examples/sites/demos/pc/app/pager/show-total-loading-composit...

20 lines
433 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>
加载中<tiny-switch v-model="totalLoading"></tiny-switch>
<tiny-pager
:page-size="10"
layout="total, sizes, prev, pager, next"
:total="100"
:show-total-loading="totalLoading"
>
</tiny-pager>
</div>
</template>
<script setup>
import { ref } from 'vue'
import { Pager as TinyPager, Switch as TinySwitch } from '@opentiny/vue'
const totalLoading = ref(true)
</script>