tiny-vue_version0/examples/sites/demos/pc/app/pager/hide-on-single-page-composi...

14 lines
327 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="isHide"></tiny-switch>
<tiny-pager :hide-on-single-page="isHide" :total="1"></tiny-pager>
</div>
</template>
<script setup>
import { ref } from 'vue'
import { Pager as TinyPager, Switch as TinySwitch } from '@opentiny/vue'
const isHide = ref(false)
</script>