vue-3-slider-component
Version:
A highly customized slider component for Vue 3
43 lines (37 loc) • 880 B
text/typescript
import { StoryFn, Meta } from '@storybook/vue3'
import { ref } from 'vue'
import VueSlider from '../../../lib'
export default {
title: 'props/stepActiveStyle',
parameters: {
docs: {
description: {
component: `
- **Type**: \`Object\`
- **Default**: \`null\`
- **Usage**:
The style of the step activation state.
`,
},
},
},
} as Meta
export const stepActiveStyle: StoryFn = args => ({
components: { VueSlider },
setup() {
const value = ref(50)
const marks = [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100]
return { value, marks, args }
},
template: `
<VueSlider v-model="value" :stepActiveStyle="args.stepActiveStyle" :marks="marks" />
`,
})
stepActiveStyle.storyName = 'stepActiveStyle'
stepActiveStyle.args = {
stepActiveStyle: {
display: 'block',
height: '10px',
backgroundColor: 'gray',
},
}