Skip to content

Commit

Permalink
chore: story for value flip
Browse files Browse the repository at this point in the history
  • Loading branch information
asvae committed Sep 12, 2023
1 parent bda138d commit f4fff5a
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions packages/ui/src/components/va-slider/VaSlider.stories.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,27 @@
import { defineComponent } from 'vue'
import VaSlider from './VaSlider.demo.vue'
import { VaSlider } from '../va-slider'
import { VaButton } from '../va-button'
import VaSliderDemo from './VaSlider.demo.vue'

export default {
title: 'VaSlider',
component: VaSlider,
}

export const Default = defineComponent({
components: { VaSlider },
template: '<VaSlider/>',
export const Old = defineComponent({
components: { VaSliderDemo },
// template: '<va-alert description="Message" />',
template: 'banana',
// template: '<va-slider-demo/>',
})

export const FlipValues = () => defineComponent({
components: { VaSlider, VaButton },
data: () => ({
value: [70, 30],
}),
template: `
<va-slider :modelValue="value" range/>
<va-button @click="value.reverse()">Flip values</va-button>
`,
})

0 comments on commit f4fff5a

Please sign in to comment.