Skip to content

Commit

Permalink
fix: slider type warning, close #5289
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjinzhou committed Feb 24, 2022
1 parent 04baae5 commit 5edc8ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions components/vc-slider/src/Range.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ const Range = defineComponent({
ariaLabelledByGroupForHandles: [],
ariaValueTextFormatterGroupForHandles: [],
}),
emits: ['beforeChange', 'afterChange', 'change'],
displayName: 'Range',
data() {
const { count, min, max } = this;
Expand Down
1 change: 1 addition & 0 deletions components/vc-slider/src/Slider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5edc8ca

Please sign in to comment.