55 lines
1.1 KiB
Vue
55 lines
1.1 KiB
Vue
<script>
|
|
import BaseComponent from 'primevue/basecomponent';
|
|
import SliderStyle from 'primevue/slider/style';
|
|
|
|
export default {
|
|
name: 'BaseSlider',
|
|
extends: BaseComponent,
|
|
props: {
|
|
modelValue: [Number, Array],
|
|
min: {
|
|
type: Number,
|
|
default: 0
|
|
},
|
|
max: {
|
|
type: Number,
|
|
default: 100
|
|
},
|
|
orientation: {
|
|
type: String,
|
|
default: 'horizontal'
|
|
},
|
|
step: {
|
|
type: Number,
|
|
default: null
|
|
},
|
|
range: {
|
|
type: Boolean,
|
|
default: false
|
|
},
|
|
disabled: {
|
|
type: Boolean,
|
|
default: false
|
|
},
|
|
tabindex: {
|
|
type: Number,
|
|
default: 0
|
|
},
|
|
'aria-labelledby': {
|
|
type: String,
|
|
default: null
|
|
},
|
|
'aria-label': {
|
|
type: String,
|
|
default: null
|
|
}
|
|
},
|
|
style: SliderStyle,
|
|
provide() {
|
|
return {
|
|
$parentInstance: this
|
|
};
|
|
}
|
|
};
|
|
</script>
|