fix: slider type warning, close #5289
parent
04baae5a57
commit
5edc8cadca
|
@ -66,6 +66,7 @@ const Range = defineComponent({
|
||||||
ariaLabelledByGroupForHandles: [],
|
ariaLabelledByGroupForHandles: [],
|
||||||
ariaValueTextFormatterGroupForHandles: [],
|
ariaValueTextFormatterGroupForHandles: [],
|
||||||
}),
|
}),
|
||||||
|
emits: ['beforeChange', 'afterChange', 'change'],
|
||||||
displayName: 'Range',
|
displayName: 'Range',
|
||||||
data() {
|
data() {
|
||||||
const { count, min, max } = this;
|
const { count, min, max } = this;
|
||||||
|
|
|
@ -24,6 +24,7 @@ const Slider = defineComponent({
|
||||||
ariaValueTextFormatterForHandle: String,
|
ariaValueTextFormatterForHandle: String,
|
||||||
startPoint: Number,
|
startPoint: Number,
|
||||||
},
|
},
|
||||||
|
emits: ['beforeChange', 'afterChange', 'change'],
|
||||||
data() {
|
data() {
|
||||||
const defaultValue = this.defaultValue !== undefined ? this.defaultValue : this.min;
|
const defaultValue = this.defaultValue !== undefined ? this.defaultValue : this.min;
|
||||||
const value = this.value !== undefined ? this.value : defaultValue;
|
const value = this.value !== undefined ? this.value : defaultValue;
|
||||||
|
|
Loading…
Reference in New Issue