Comparing version 0.5.11 to 0.5.12
@@ -67,2 +67,8 @@ 'use strict'; | ||
// 设置滚动高度 | ||
setScrollTop: function setScrollTop(element, value) { | ||
'scrollTop' in element ? element.scrollTop = value : element.scrollTo(element.scrollX, value); | ||
}, | ||
// 获取元素距离顶部高度 | ||
@@ -69,0 +75,0 @@ getElementTop: function getElementTop(element) { |
@@ -347,2 +347,8 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
// 设置滚动高度 | ||
setScrollTop: function setScrollTop(element, value) { | ||
'scrollTop' in element ? element.scrollTop = value : element.scrollTo(element.scrollX, value); | ||
}, | ||
// 获取元素距离顶部高度 | ||
@@ -349,0 +355,0 @@ getElementTop: function getElementTop(element) { |
{ | ||
"name": "vant", | ||
"version": "0.5.11", | ||
"version": "0.5.12", | ||
"description": "有赞vue wap组件库", | ||
@@ -5,0 +5,0 @@ "main": "lib/vant.js", |
{ | ||
"name": "vant-css", | ||
"version": "0.5.11", | ||
"version": "0.5.12", | ||
"description": "vant css.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.css", |
@@ -84,3 +84,3 @@ import Button from '../packages/button/index.js'; | ||
install, | ||
version: '0.5.11', | ||
version: '0.5.12', | ||
Button, | ||
@@ -87,0 +87,0 @@ Switch, |
@@ -58,2 +58,7 @@ export default { | ||
// 设置滚动高度 | ||
setScrollTop(element, value) { | ||
'scrollTop' in element ? element.scrollTop = value : element.scrollTo(element.scrollX, value); | ||
}, | ||
// 获取元素距离顶部高度 | ||
@@ -60,0 +65,0 @@ getElementTop(element) { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1288473
29102