Merge branch 'dev' into next

This commit is contained in:
chenjiahan
2022-03-13 16:27:20 +08:00
32 changed files with 176 additions and 33 deletions

View File

@@ -1,5 +1,9 @@
# Changelog
## v1.3.6
- Fix missing VisibilityState type
## v1.3.5
- Fix useChildren missing subTree when flattening vnodes

View File

@@ -1,6 +1,6 @@
{
"name": "@vant/use",
"version": "1.3.5",
"version": "1.3.6",
"description": "Vant Composition API",
"main": "dist/index.cjs.js",
"module": "dist/index.esm.js",

View File

@@ -1,6 +1,8 @@
import { ref, Ref } from 'vue';
import { inBrowser } from '../utils';
type VisibilityState = 'hidden' | 'visible';
let visibility: Ref<VisibilityState>;
export function usePageVisibility() {