Skip to content

Commit

Permalink
docs: update slider demo1.tsx (#6529)
Browse files Browse the repository at this point in the history
demo中onchange方法参数value对应的ts类型与文档所写的不一致,一个是[number, number],一个是number[]
  • Loading branch information
Fun005 authored Feb 5, 2024
1 parent 5346557 commit 50ecb23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/slider/demos/demo1.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const marks = {
}

export default () => {
const toastValue = (value: number | number[]) => {
const toastValue = (value: number | [number, number]) => {
let text = ''
if (typeof value === 'number') {
text = `${value}`
Expand Down

0 comments on commit 50ecb23

Please sign in to comment.