71 Commits

Author SHA1 Message Date
neverland
6b7ae0f6a0
types(@vant/use): improve useEventListener typing (#10952) 2022-08-21 17:49:48 +08:00
neverland
31ac5faa3a
feat(@vant/use): useClickAway support multiple targets (#10948) 2022-08-21 10:55:18 +08:00
chenjiahan
7879fd6395 chore: update repo links 2022-07-23 22:10:20 +08:00
AmazingPromise
e61d85a890 fix(List): element with overflow: overlay style should be considered a scroll container (#10743) 2022-06-25 12:36:27 +08:00
neverland
b0849c03e5
types: fix missing VisibilityState after typescript 4.6.0 (#10370) 2022-03-09 18:43:08 +08:00
neverland
969f0a7b41
chore: prettier all codes (#10240) 2022-01-25 14:42:35 +08:00
neverland
760fcbb424
fix(@vant/use): missing subTree when flattening vnodes (#10235) 2022-01-25 10:59:04 +08:00
chenjiahan
2a95498569 chore(@vant/use): fix circular dependency 2021-11-18 15:06:32 +08:00
neverland
0f4e9aed48
fix(@vant/use): useClickAway failed in SSR (#9899) 2021-11-18 15:00:11 +08:00
neverland
a0b368f1b4
perf(@vant/use): reduce usePageVisibility event binding (#9835)
* perf(@vant/use): reduce usePageVisibility event binding

* chore: update
2021-11-11 17:25:48 +08:00
neverland
a9ce9096e4
fix(@vant/use): allow to call useWindowSize outside setup (#9834) 2021-11-11 16:54:04 +08:00
chenjiahan
74bc0879c4 build: using rollup-plugin-esbuild 2021-11-11 11:08:02 +08:00
neverland
2008982ff9
perf(@vant/use): reduce event listener of useWindowSize (#9658)
* perf(@vant/use): reduce event listener of useWindowSize

* chore: update
2021-10-11 20:47:29 +08:00
neverland
8d9ccfd8c7
fix(@vant/use): keep forward compatible (#9592) 2021-09-29 18:24:31 +08:00
neverland
ec5067ce7d
perf: remove passive event polyfill (#9590) 2021-09-29 17:36:50 +08:00
neverland
b6cd212a77
perf(@vant/use): remove raf polyfill (#9544) 2021-09-22 16:16:48 +08:00
neverland
a4a2a3cb0f
feat(@vant/use): add useCustomFieldValue (#9200)
* feat(@vant/use): add useCustomFieldValue

* chore: upd
2021-08-07 16:01:11 +08:00
neverland
f550c634e3
fix(@vant/use): invalid watch source (#9095) 2021-07-22 19:53:16 +08:00
neverland
f536bd683a
feat(@vant/use): watch target change (#9077)
* feat(@vant/use): watch target change

* types: TargetRef
2021-07-21 16:11:12 +08:00
neverland
f0a5931b6e
types(@vant/use): useRelation support InjectionKey (#9015) 2021-07-12 20:40:30 +08:00
chenjiahan
1000724826 chore(@vant/use): remove vuepress 2021-06-04 17:55:21 +08:00
chenjiahan
2fa7b10b35 docs: migrate vant-use document to vant 2021-06-04 17:55:21 +08:00
neverland
1203b29720
fix(@vant/use): useScrollParent ssr (#8603) 2021-04-22 19:43:30 +08:00
chenjiahan
7bfceb508e chore(@vant/use): remove @babel/runtime 2021-04-14 09:35:08 +08:00
neverland
ace4c9b60b
chore(@vant/use): fix some lint issues (#8462) 2021-04-06 20:03:26 +08:00
chenjiahan
d2e00ac275 types(@vant/use): useRect should awalys return DOMRect 2021-02-13 21:01:12 +08:00
chenjiahan
a746ded63e Revert "fix(@vant/use): useRect should always return DOMRect (#8147)"
This reverts commit 0d0310d34e230115a0cd3389835a0fdd2109c66d.
2021-02-13 20:59:27 +08:00
neverland
0d0310d34e
fix(@vant/use): useRect should always return DOMRect (#8147) 2021-02-13 20:57:06 +08:00
neverland
6ed34d2629
types(@vant/use): useChldren support generics (#8136) 2021-02-12 11:33:31 +08:00
neverland
4ba646f2b6
feat(@vant/use): useParent always return index (#8120) 2021-02-10 11:03:36 +08:00
chenjiahan
a94c479196 types(@vant/use): fix useToggle typing #7843 2021-01-01 11:36:46 +08:00
chenjiahan
c114a0ef47 fix(Popup): lockScroll not work #7738 2020-12-27 21:13:07 +08:00
chenjiahan
7a6aafedb9 chore(@vant/use): export supportsPassive 2020-12-27 21:02:53 +08:00
chenjiahan
596c111a57 chore(@vant/use): export getScrollParent method 2020-12-27 21:00:23 +08:00
chenjiahan
037b6b8c10 Merge branch '2.x' into dev 2020-12-26 15:52:18 +08:00
Sun
e4297bcbb6
docs(@vant/use): fix demo (#7763) 2020-12-18 16:55:50 +08:00
chenjiahan
75c296f0a8 test: update test cases of utils 2020-11-28 18:42:38 +08:00
chenjiahan
71def44061 Merge branch '2.x' into dev 2020-11-15 15:38:22 +08:00
chenjiahan
91f46d615c chore(@vant/use): use onMountedOrActivated 2020-11-11 20:44:32 +08:00
chenjiahan
6db84d7c2b feat(@vant/use): add onMountedOrActivated 2020-11-11 20:43:24 +08:00
chenjiahan
f2bedef285 types(@vant/use): useEventListener target ref can be undefined 2020-10-09 20:39:11 +08:00
chenjiahan
14d2826cc7 types(@vant/use): improve Ref param typing 2020-10-09 20:32:31 +08:00
chenjiahan
767ca80499 types(@vant/use): useScrollParent el can be undefined 2020-10-09 20:27:51 +08:00
chenjiahan
a334bb45e6 types(@vant/use): linkChildren param is optional 2020-10-09 19:53:00 +08:00
chenjiahan
6d483a8da5 fix(@vant/use): reset method param should be optional 2020-10-06 10:59:25 +08:00
chenjiahan
a236004288 docs(@vant/use): add useCountDown document 2020-10-06 10:58:17 +08:00
chenjiahan
c6bd04b8d2 fix(@vant/use): should export useCountDown 2020-10-06 09:55:00 +08:00
chenjiahan
b541226cdc chore(@vant/use): export types 2020-10-06 09:49:17 +08:00
chenjiahan
6334d6a7a7 feat(@vant/use): add useCountDown 2020-10-06 09:41:12 +08:00
chenjiahan
8d4135a690 feat(@vant/use): add useRect 2020-10-05 11:13:22 +08:00