fix: slider docs demo bug (#5128)

示例中 value 值不对,导致编译出错
This commit is contained in:
xujiujiu 2022-12-05 11:09:04 +08:00 committed by GitHub
parent 5b96c7acb0
commit 9098f427bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,7 @@ Page({
添加 `range` 属性就可以开启双滑块模式,确保 `value` 的值是一个数组。 添加 `range` 属性就可以开启双滑块模式,确保 `value` 的值是一个数组。
```html ```html
<van-slider value="{{ 10, 50 }}" range @change="onChange" /> <van-slider value="{{ [10, 50] }}" range @change="onChange" />
``` ```
```js ```js