mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-20 06:23:41 +09:00
916 B
916 B
state
| state | ||
|---|---|---|
|
Tooltip format
The <Slider /> component allows to pass a formatting function to its format
property. You can return the tooltip value with the format that you want.
<script setup lang="ts">
const value = ref(54)
const format = (value) => {
return `${value}%`
}
</script>
<template>
<VField v-slot="{ id }" class="has-curved-tooltip">
<VControl>
<Slider
:id="id"
v-model="value"
:format="format"
/>
</VControl>
</VField>
</template>