{"application":{"compatibility":"| | 安卓系统版本 | 安卓 uni-app | 安卓 uni-app-x | iOS 系统版本 | iOS uni-app | iOS uni-app-x |\n| :- | :- | :- | :- | :- | :- | :- |\n| createApp() | - | - | - | - | - | - |\n| createSSRApp() | - | - | - | - | - | - |\n| app.mount() | - | - | - | - | - | - |\n| app.unmount() | - | - | - | - | - | - |\n| app.component() | - | - | - | - | - | - |\n| app.directive() | - | - | - | - | - | - |\n| app.use() | 5.0 | √ | 3.99 | 10.0 | √ | x |\n| app.mixin() | 5.0 | √ | 3.99 | 10.0 | √ | x |\n| app.provide() | 5.0 | √ | 3.99 | 10.0 | √ | x |\n| app.runWithContext() | - | - | - | - | - | - |\n| app.version | - | - | - | - | - | - |\n| app.config | - | - | - | - | - | - |\n| app.config.errorHandler | - | - | - | - | - | - |\n| app.config.warnHandler | - | - | - | - | - | - |\n| app.config.performance | - | - | - | - | - | - |\n| app.config.compilerOptions | - | - | - | - | - | - |\n| app.config.globalProperties | 5.0 | √ | 3.99 | 10.0 | √ | x |\n| app.config.optionMergeStrategies | - | - | - | - | - | - |","example":""},"general":{"compatibility":"| | 安卓系统版本 | 安卓 uni-app | 安卓 uni-app-x | iOS 系统版本 | iOS uni-app | iOS uni-app-x |\n| :- | :- | :- | :- | :- | :- | :- |\n| version | - | - | - | - | - | - |\n| nextTick() | - | - | - | - | - | - |\n| defineComponent() | 5.0 | x | x | 10.0 | x | x |\n| defineAsyncComponent() | - | - | - | - | - | - |\n| defineCustomElement() | - | - | - | - | - | - |","example":""},"reactivity_core":{"compatibility":"| | 安卓系统版本 | 安卓 uni-app | 安卓 uni-app-x | iOS 系统版本 | iOS uni-app | iOS uni-app-x |\n| :- | :- | :- | :- | :- | :- | :- |\n| ref() | 5.0 | √ | √ | 10.0 | √ | x |\n| computed() | 5.0 | √ | x | 10.0 | √ | x |\n| reactive() | 5.0 | √ | √ | 10.0 | √ | x |\n| readonly() | - | - | - | - | - | - |\n| watchEffect() | 5.0 | √ | x | 10.0 | √ | x |\n| watch() | 5.0 | √ | x | 10.0 | √ | x |\n| watchPostEffect() | - | - | - | - | - | - |\n| watchSyncEffect() | - | - | - | - | - | - |","example":""},"reactivity_utilities":{"compatibility":"| | 安卓系统版本 | 安卓 uni-app | 安卓 uni-app-x | iOS 系统版本 | iOS uni-app | iOS uni-app-x |\n| :- | :- | :- | :- | :- | :- | :- |\n| isRef() | 5.0 | √ | x | 10.0 | √ | x |\n| unref() | 5.0 | √ | x | 10.0 | √ | x |\n| isReactive() | 5.0 | √ | x | 10.0 | √ | x |\n| isReadonly() | 5.0 | √ | x | 10.0 | √ | x |\n| toRef() | - | - | - | - | - | - |\n| toValue() | - | - | - | - | - | - |\n| toRefs() | - | - | - | - | - | - |\n| isProxy() | - | - | - | - | - | - |","example":""},"reactivity_advanced":{"compatibility":"| | 安卓系统版本 | 安卓 uni-app | 安卓 uni-app-x | iOS 系统版本 | iOS uni-app | iOS uni-app-x |\n| :- | :- | :- | :- | :- | :- | :- |\n| shallowReactive() | 5.0 | √ | x | 10.0 | √ | x |\n| shallowRef() | 5.0 | √ | x | 10.0 | √ | x |\n| toRaw() | 5.0 | √ | x | 10.0 | √ | x |\n| triggerRef() | - | - | - | - | - | - |\n| customRef() | - | - | - | - | - | - |\n| shallowReadonly() | - | - | - | - | - | - |\n| markRaw() | - | - | - | - | - | - |\n| effectScope() | - | - | - | - | - | - |\n| getCurrentScope() | - | - | - | - | - | - |\n| onScopeDispose() | - | - | - | - | - | - |","example":""},"options_state":{"compatibility":"| | 安卓系统版本 | 安卓 uni-app | 安卓 uni-app-x | iOS 系统版本 | iOS uni-app | iOS uni-app-x |\n| :- | :- | :- | :- | :- | :- | :- |\n| data | 5.0 | √ | √ | 10.0 | √ | x |\n| props | 5.0 | √ | √ | 10.0 | √ | x |\n| computed | 5.0 | √ | √ | 10.0 | √ | x |\n| methods | 5.0 | √ | √ | 10.0 | √ | x |\n| watch | 5.0 | √ | √ | 10.0 | √ | x |\n| emits | - | - | - | - | - | - |\n| expose | - | - | - | - | - | - |","example":"#### 状态选项 示例\n- [选项式 API 示例](https:/gitcode.net/dcloud/hello-uvue/-/tree/master/pages/state)"},"options_rendering":{"compatibility":"| | 安卓系统版本 | 安卓 uni-app | 安卓 uni-app-x | iOS 系统版本 | iOS uni-app | iOS uni-app-x |\n| :- | :- | :- | :- | :- | :- | :- |\n| template | - | - | - | - | - | - |\n| render | - | - | - | - | - | - |\n| compilerOptions | - | - | - | - | - | - |\n| slots | - | - | - | - | - | - |","example":"#### 渲染选项 示例\n- [指令示例](https:/gitcode.net/dcloud/hello-uvue/-/tree/master/pages/rendering)"},"options_lifecycle":{"compatibility":"| | 安卓系统版本 | 安卓 uni-app | 安卓 uni-app-x | iOS 系统版本 | iOS uni-app | iOS uni-app-x |\n| :- | :- | :- | :- | :- | :- | :- |\n| beforeCreate | 5.0 | √ | √ | 10.0 | √ | x |\n| created | 5.0 | √ | √ | 10.0 | √ | x |\n| beforeMount | 5.0 | √ | √ | 10.0 | √ | x |\n| mounted | 5.0 | √ | √ | 10.0 | √ | x |\n| beforeUpdate | 5.0 | √ | √ | 10.0 | √ | x |\n| updated | 5.0 | √ | √ | 10.0 | √ | x |\n| beforeUnmount | 5.0 | √ | √ | 10.0 | √ | x |\n| unmounted | 5.0 | √ | √ | 10.0 | √ | x |\n| errorCaptured | - | - | - | - | - | - |\n| renderTracked | - | - | - | - | - | - |\n| renderTriggered | - | - | - | - | - | - |\n| activated | 5.0 | √ | 4.0 | 10.0 | √ | x |\n| deactivated | 5.0 | √ | 4.0 | 10.0 | √ | x |\n| serverPrefetch | - | - | - | - | - | - |","example":"#### 页面生命周期示例 示例 \n> [hello uvue](https:/gitcode.net/dcloud/hello-uvue/-/tree/master/pages/lifecycle/page/page.uvue) \n ```html\n<template>\r\n <!-- #ifdef APP -->\r\n <scroll-view style=\"flex: 1\">\r\n <!-- #endif -->\r\n <view class=\"page container\">\r\n <text>page lifecycle</text>\r\n <button class=\"uni-common-mt\" @click=\"scrollToBottom\">scrollToBottom</button>\r\n </view>\r\n <!-- #ifdef APP -->\r\n </scroll-view>\r\n <!-- #endif -->\r\n</template>\r\n\r\n<script lang=\"uts\">\r\nimport { State, state, setLifeCycleNum } from '@/store/index.uts'\r\n\r\nexport default {\r\n data() {\r\n return {\r\n isScrolled: false,\r\n }\r\n },\r\n onLoad(_ : OnLoadOptions) {\r\n // 自动化测试\r\n setLifeCycleNum(state.lifeCycleNum + 100)\r\n },\r\n onShow() {\r\n // 自动化测试\r\n setLifeCycleNum(state.lifeCycleNum + 10)\r\n },\r\n onReady() {\r\n // 自动化测试\r\n setLifeCycleNum(state.lifeCycleNum + 10)\r\n },\r\n onPullDownRefresh() {\r\n // 自动化测试\r\n setLifeCycleNum(state.lifeCycleNum + 10)\r\n },\r\n onPageScroll(_) {\r\n // 自动化测试\r\n this.isScrolled = true\r\n },\r\n onReachBottom() {\r\n // 自动化测试\r\n setLifeCycleNum(state.lifeCycleNum + 10)\r\n },\r\n onBackPress(_ : OnBackPressOptions) : boolean | null {\r\n // 自动化测试\r\n setLifeCycleNum(state.lifeCycleNum - 10)\r\n return null\r\n },\r\n onHide() {\r\n // 自动化测试\r\n setLifeCycleNum(state.lifeCycleNum - 10)\r\n },\r\n onUnload() {\r\n // 自动化测试\r\n setLifeCycleNum(state.lifeCycleNum - 100)\r\n },\r\n methods: {\r\n // 自动化测试\r\n getLifeCycleNum() : number {\r\n return state.lifeCycleNum\r\n },\r\n // 自动化测试\r\n setLifeCycleNum(num : number) {\r\n setLifeCycleNum(num)\r\n },\r\n pullDownRefresh() {\r\n uni.startPullDownRefresh({\r\n success() {\r\n setTimeout(() => {\r\n uni.stopPullDownRefresh()\r\n }, 1000)\r\n },\r\n })\r\n },\r\n scrollToBottom() {\r\n uni.pageScrollTo({\r\n scrollTop: 2000,\r\n })\r\n },\r\n },\r\n}\r\n</script>\r\n\r\n<style>\r\n.container {\r\n height: 1200px;\r\n}\r\n</style>\r\n\n```\n#### 组件生命周期示例 示例 \n> [hello uvue](https:/gitcode.net/dcloud/hello-uvue/-/tree/master/pages/lifecycle/component/component.uvue) \n ```html\n<template>\r\n <view class=\"page\">\r\n <text>component lifecycle</text>\r\n <component-lifecycle class=\"component-lifecycle\" />\r\n </view>\r\n</template>\r\n\r\n<script>\r\nimport ComponentLifecycle from '@/components/Lifecycle.uvue'\r\nimport { State, state } from '@/store/index.uts'\r\nexport default {\r\n components: { ComponentLifecycle },\r\n data(){\r\n return {\r\n _state: state as State\r\n }\r\n },\r\n methods: {\r\n // 自动化测试\r\n getLifeCycleNum(): number {\r\n return state.lifeCycleNum\r\n },\r\n },\r\n}\r\n</script>\r\n\n```"},"options_composition":{"compatibility":"| | 安卓系统版本 | 安卓 uni-app | 安卓 uni-app-x | iOS 系统版本 | iOS uni-app | iOS uni-app-x |\n| :- | :- | :- | :- | :- | :- | :- |\n| provide | 5.0 | √ | 3.99 | 10.0 | √ | x |\n| inject | 5.0 | √ | 3.99 | 10.0 | √ | x |\n| mixins | 5.0 | √ | 3.99 | 10.0 | √ | x |\n| extends | - | - | - | - | - | - |","example":""},"options_misc":{"compatibility":"| | 安卓系统版本 | 安卓 uni-app | 安卓 uni-app-x | iOS 系统版本 | iOS uni-app | iOS uni-app-x |\n| :- | :- | :- | :- | :- | :- | :- |\n| name | 5.0 | √ | √ | 10.0 | √ | x |\n| inheritAttrs | - | - | - | - | - | - |\n| components | 5.0 | √ | √ | 10.0 | √ | x |\n| directives | - | - | - | - | - | - |","example":""},"component_instance":{"compatibility":"| | 安卓系统版本 | 安卓 uni-app | 安卓 uni-app-x | iOS 系统版本 | iOS uni-app | iOS uni-app-x |\n| :- | :- | :- | :- | :- | :- | :- |\n| $data | 5.0 | √ | √ | 10.0 | √ | x |\n| $props | 5.0 | √ | √ | 10.0 | √ | x |\n| $el | 5.0 | x | √ | 10.0 | x | x |\n| $options | - | - | - | - | - | - |\n| $parent | - | - | - | - | - | - |\n| $root | - | - | - | - | - | - |\n| $slots | 5.0 | √ | √ | 10.0 | √ | x |\n| $refs | 5.0 | √ | √ | 10.0 | √ | x |\n| $attrs | 5.0 | √ | √ | 10.0 | √ | x |\n| $watch() | 5.0 | √ | √ | 10.0 | √ | x |\n| $emit | 5.0 | √ | √ | 10.0 | √ | x |\n| $forceUpdate | 5.0 | √ | √ | 10.0 | √ | x |\n| $nextTick | 5.0 | √ | √ | 10.0 | √ | x |\n| $callMethod | 5.0 | x | √ | 10.0 | x | x |","example":"#### 组件实例 示例\n- [组件实例示例](https:/gitcode.net/dcloud/hello-uvue/-/tree/master/pages/component-instance)"},"directives":{"compatibility":"| | 安卓系统版本 | 安卓 uni-app | 安卓 uni-app-x | iOS 系统版本 | iOS uni-app | iOS uni-app-x |\n| :- | :- | :- | :- | :- | :- | :- |\n| v-text | 5.0 | √ | √ | 10.0 | √ | x |\n| v-html | 5.0 | √ | 3.99 | 10.0 | √ | x |\n| v-show | 5.0 | √ | √ | 10.0 | √ | x |\n| v-if | 5.0 | √ | √ | 10.0 | √ | x |\n| v-else | 5.0 | √ | √ | 10.0 | √ | x |\n| v-else-if | 5.0 | √ | √ | 10.0 | √ | x |\n| v-for | 5.0 | √ | √ | 10.0 | √ | x |\n| v-on | 5.0 | √ | √ | 10.0 | √ | x |\n| v-bind | 5.0 | √ | √ | 10.0 | √ | x |\n| v-model | 5.0 | √ | √ | 10.0 | √ | x |\n| v-slot | 5.0 | √ | √ | 10.0 | √ | x |\n| v-pre | 5.0 | √ | 3.99 | 10.0 | √ | x |\n| v-once | 5.0 | √ | 3.99 | 10.0 | √ | x |\n| v-memo | 5.0 | x | 3.99 | 10.0 | x | x |\n| v-cloak | 5.0 | x | x | 10.0 | x | x |","example":"#### 指令 示例\n- [指令示例](https:/gitcode.net/dcloud/hello-uvue/-/tree/master/pages/directive)"},"components":{"compatibility":"| | 安卓系统版本 | 安卓 uni-app | 安卓 uni-app-x | iOS 系统版本 | iOS uni-app | iOS uni-app-x |\n| :- | :- | :- | :- | :- | :- | :- |\n| \\<Transition> | 5.0 | x | x | 10.0 | x | x |\n| \\<TransitionGroup> | 5.0 | x | x | 10.0 | x | x |\n| \\<KeepAlive> | 5.0 | x | x | 10.0 | x | x |\n| \\<Teleport> | 5.0 | x | x | 10.0 | x | x |\n| \\<Suspense> | - | - | - | - | - | - |","example":""},"special_elements":{"compatibility":"| | 安卓系统版本 | 安卓 uni-app | 安卓 uni-app-x | iOS 系统版本 | iOS uni-app | iOS uni-app-x |\n| :- | :- | :- | :- | :- | :- | :- |\n| \\<component> | 5.0 | √ | 3.99 | 10.0 | √ | x |\n| \\<slot> | 5.0 | √ | √ | 10.0 | √ | x |\n| \\<template> | 5.0 | √ | √ | 10.0 | √ | x |","example":""},"special_attributes":{"compatibility":"| | 安卓系统版本 | 安卓 uni-app | 安卓 uni-app-x | iOS 系统版本 | iOS uni-app | iOS uni-app-x |\n| :- | :- | :- | :- | :- | :- | :- |\n| key | 5.0 | √ | √ | 10.0 | √ | x |\n| ref | 5.0 | √ | √ | 10.0 | √ | x |\n| is | 5.0 | √ | 3.99 | 10.0 | √ | x |","example":""},"render_function":{"compatibility":"| | 安卓系统版本 | 安卓 uni-app | 安卓 uni-app-x | iOS 系统版本 | iOS uni-app | iOS uni-app-x |\n| :- | :- | :- | :- | :- | :- | :- |\n| h() | - | - | - | - | - | - |\n| mergeProps() | - | - | - | - | - | - |\n| cloneVNode() | - | - | - | - | - | - |\n| isVNode() | - | - | - | - | - | - |\n| resolveComponent() | - | - | - | - | - | - |\n| resolveDirective() | - | - | - | - | - | - |\n| withDirectives() | 5.0 | x | √ | 10.0 | x | x |\n| withModifiers() | - | - | - | - | - | - |","example":""}}