mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-20 08:13:40 +09:00
first
This commit is contained in:
42
documentation/plugins/slider/slider-squared-documentation.md
Normal file
42
documentation/plugins/slider/slider-squared-documentation.md
Normal file
@@ -0,0 +1,42 @@
|
||||
---
|
||||
state:
|
||||
value: 36
|
||||
---
|
||||
|
||||
### Squared tooltip
|
||||
|
||||
Use the `has-squared-tooltip` class on the `<VField />` component to show a
|
||||
square shaped tooltip. Supports bigger values than the rounded tooltip.
|
||||
|
||||
<!--code-->
|
||||
|
||||
```vue
|
||||
<script setup lang="ts">
|
||||
|
||||
const value = ref(0)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<VField v-slot="{ id }" class="has-squared-tooltip">
|
||||
<VControl>
|
||||
<Slider :id="id" v-model="value" />
|
||||
</VControl>
|
||||
</VField>
|
||||
</template>
|
||||
```
|
||||
|
||||
<!--/code-->
|
||||
|
||||
<!--example-->
|
||||
|
||||
<div class="columns mt-2">
|
||||
<div class="column is-6">
|
||||
<VField v-slot="{ id }" class="pt-5 px-4 has-squared-tooltip">
|
||||
<VControl>
|
||||
<Slider :id="id" v-model="frontmatter.state.value" />
|
||||
</VControl>
|
||||
</VField>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--/example-->
|
||||
Reference in New Issue
Block a user