tiny-vue_version0/examples/sites/demos/pc/app/slider/slider-slot-composition-api...

15 lines
311 B
Vue

<template>
<tiny-slider v-model="value" :show-input="true">
<template #default="slotScope">
<b>{{ slotScope.slotScope }}%</b>
</template>
</tiny-slider>
</template>
<script setup>
import { ref } from 'vue'
import { Slider as TinySlider } from '@opentiny/vue'
const value = ref(40)
</script>