Compare commits

...

3 Commits

Author SHA1 Message Date
chenjiahan
d0260cf990 docs(changelog): 2.12.33 2021-11-16 13:28:53 +08:00
chenjiahan
f885a9d1cf chore: release 2.12.33 2021-11-16 13:27:57 +08:00
neverland
9c48a14649
fix(Picker): SSR broken (#9875) 2021-11-16 13:26:45 +08:00
4 changed files with 19 additions and 3 deletions

View File

@ -16,6 +16,14 @@ Vant follows [Semantic Versioning 2.0.0](https://semver.org/lang/zh-CN/).
## Details
### [v2.12.33](https://github.com/youzan/vant/compare/v2.12.32...v2.12.33)
`2021-11-16`
**Bug Fixes**
- Picker: SSR broken [#9875](https://github.com/youzan/vant/issues/9875)
### [v2.12.32](https://github.com/youzan/vant/compare/v2.12.31...v2.12.32)
`2021-11-15`

View File

@ -16,6 +16,14 @@ Vant 遵循 [Semver](https://semver.org/lang/zh-CN/) 语义化版本规范。
## 更新内容
### [v2.12.33](https://github.com/youzan/vant/compare/v2.12.32...v2.12.33)
`2021-11-16`
**Bug Fixes**
- Picker: 修复 SSR 报错的问题 [#9875](https://github.com/youzan/vant/issues/9875)
### [v2.12.32](https://github.com/youzan/vant/compare/v2.12.31...v2.12.32)
`2021-11-15`

View File

@ -1,6 +1,6 @@
{
"name": "vant",
"version": "2.12.32",
"version": "2.12.33",
"description": "Mobile UI Components built on Vue",
"main": "lib/index.js",
"module": "es/index.js",

View File

@ -1,5 +1,5 @@
import { deepClone } from '../utils/deep-clone';
import { createNamespace, isObject } from '../utils';
import { createNamespace, inBrowser, isObject } from '../utils';
import { range } from '../utils/format/number';
import { preventDefault, on, off } from '../utils/dom/event';
import { TouchMixin } from '../mixins/touch';
@ -27,7 +27,7 @@ function isOptionDisabled(option) {
}
// use standard WheelEvent:
// https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent
const supportMousewheel = 'onwheel' in window;
const supportMousewheel = inBrowser && 'onwheel' in window;
let mousewheelTimer = null;
export default createComponent({