Skip to content

Commit 5edc8ca

Browse files
committed
fix: slider type warning, close #5289
1 parent 04baae5 commit 5edc8ca

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

components/vc-slider/src/Range.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ const Range = defineComponent({
6666
ariaLabelledByGroupForHandles: [],
6767
ariaValueTextFormatterGroupForHandles: [],
6868
}),
69+
emits: ['beforeChange', 'afterChange', 'change'],
6970
displayName: 'Range',
7071
data() {
7172
const { count, min, max } = this;

components/vc-slider/src/Slider.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const Slider = defineComponent({
2424
ariaValueTextFormatterForHandle: String,
2525
startPoint: Number,
2626
},
27+
emits: ['beforeChange', 'afterChange', 'change'],
2728
data() {
2829
const defaultValue = this.defaultValue !== undefined ? this.defaultValue : this.min;
2930
const value = this.value !== undefined ? this.value : defaultValue;

0 commit comments

Comments
 (0)