mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-05-21 13:59:15 +08:00
chore(@vant/use): export types
This commit is contained in:
parent
7966183af1
commit
b541226cdc
@ -58,7 +58,7 @@
|
||||
"dependencies": {
|
||||
"@babel/runtime": "7.x",
|
||||
"@vant/icons": "1.3.0",
|
||||
"@vant/use": "^0.0.4",
|
||||
"@vant/use": "^0.0.5",
|
||||
"vue-lazyload": "1.2.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
@ -1,9 +1,9 @@
|
||||
export { useRect } from './useRect';
|
||||
export { useToggle } from './useToggle';
|
||||
export { useClickAway } from './useClickAway';
|
||||
export { useWindowSize } from './useWindowSize';
|
||||
export { useScrollParent } from './useScrollParent';
|
||||
export { useEventListener } from './useEventListener';
|
||||
export { usePageVisibility } from './usePageVisibility';
|
||||
export { useParent, useChildren } from './useRelation';
|
||||
export * from './useRect';
|
||||
export * from './useToggle';
|
||||
export * from './useClickAway';
|
||||
export * from './useWindowSize';
|
||||
export * from './useScrollParent';
|
||||
export * from './useEventListener';
|
||||
export * from './usePageVisibility';
|
||||
export * from './useRelation';
|
||||
export * from './utils';
|
||||
|
@ -28,7 +28,7 @@ const MINUTE = 60 * SECOND;
|
||||
const HOUR = 60 * MINUTE;
|
||||
const DAY = 24 * HOUR;
|
||||
|
||||
export function parseTime(time: number): CurrentTime {
|
||||
function parseTime(time: number): CurrentTime {
|
||||
const days = Math.floor(time / DAY);
|
||||
const hours = Math.floor((time % DAY) / HOUR);
|
||||
const minutes = Math.floor((time % HOUR) / MINUTE);
|
||||
|
@ -11,7 +11,7 @@ function isElement(node: Element) {
|
||||
|
||||
// http://w3help.org/zh-cn/causes/SD9013
|
||||
// http://stackoverflow.com/questions/17016740/onscroll-function-is-not-working-for-chrome
|
||||
export function getScrollParent(el: Element, root: ScrollElement = window) {
|
||||
function getScrollParent(el: Element, root: ScrollElement = window) {
|
||||
let node = el;
|
||||
|
||||
while (node && node !== root && isElement(node)) {
|
||||
|
@ -2175,10 +2175,10 @@
|
||||
resolved "https://registry.yarnpkg.com/@vant/touch-emulator/-/touch-emulator-1.2.0.tgz#486300b23e57db9ce9231a04e0a0c621c68692d8"
|
||||
integrity sha512-sJ97zU85zOq51qoi7+CpBEcOyH3CitjP1KC7/GQwqaurUJni+EP7/F9n0HMnAh8GXMjgtgDBNJ5z48x+coNKYQ==
|
||||
|
||||
"@vant/use@^0.0.4":
|
||||
version "0.0.4"
|
||||
resolved "https://registry.npmjs.org/@vant/use/-/use-0.0.4.tgz#c02fb1b4cec53135efc85b1a7479ab186c0e5e73"
|
||||
integrity sha512-beX+RH6SCyOIZ9nyod2nIK1/bNSPAAZoOvXQ2OZ0Dv9Dd55MyVnDTBZ1WCgE8Hf/PjgSOuIMp715ekEncSHoEg==
|
||||
"@vant/use@^0.0.5":
|
||||
version "0.0.5"
|
||||
resolved "https://registry.npmjs.org/@vant/use/-/use-0.0.5.tgz#64ff89ffc50e73c315d469a805379a41ce3c06ae"
|
||||
integrity sha512-Wak1vLAF+SuqY+NTyanYexu+WV9pAjllRHGbtZtBBJc+G7QHC3xIUEQYkZJjbBR4iJmLPgA4R6OLwqM8eb6xZg==
|
||||
|
||||
"@vue/babel-helper-vue-transform-on@^1.0.0-rc.2":
|
||||
version "1.0.0-rc.2"
|
||||
|
Loading…
x
Reference in New Issue
Block a user