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