vueJson.json 11.2 KB
Newer Older
D
DCloud_LXH 已提交
1
{
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
  "application": {
    "compatibility": "|  | 安卓系统版本 | 安卓 | iOS 系统版本 | iOS | web |\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": "|  | 安卓系统版本 | 安卓 | iOS 系统版本 | iOS | web |\n| :- | :- | :- | :- | :- | :- |\n| version | - | - | - | - | - |\n| nextTick() | - | - | - | - | - |\n| defineComponent() | - | - | - | - | - |\n| defineAsyncComponent() | - | - | - | - | - |\n| defineCustomElement() | - | - | - | - | - |",
    "example": ""
  },
  "reactivity_core": {
    "compatibility": "|  | 安卓系统版本 | 安卓 | iOS 系统版本 | iOS | web |\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": "|  | 安卓系统版本 | 安卓 | iOS 系统版本 | iOS | web |\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": "|  | 安卓系统版本 | 安卓 | iOS 系统版本 | iOS | web |\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": "|  | 安卓系统版本 | 安卓 | iOS 系统版本 | iOS | web |\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": "|  | 安卓系统版本 | 安卓 | iOS 系统版本 | iOS | web |\n| :- | :- | :- | :- | :- | :- |\n| template | - | - | - | - | - |\n| render | - | - | - | - | - |\n| compilerOptions | - | - | - | - | - |\n| slots | - | - | - | - | - |",
    "example": "#### 渲染选项 示例\n- [指令示例](https://gitcode.net/dcloud/hello-uvue/-/tree/master//pages/rendering)"
  },
  "options_lifecycle": {
    "compatibility": "|  | 安卓系统版本 | 安卓 | iOS 系统版本 | iOS | web |\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 | - | - | - | - | - |\n| deactivated | - | - | - | - | - |\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": "|  | 安卓系统版本 | 安卓 | iOS 系统版本 | iOS | web |\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": "|  | 安卓系统版本 | 安卓 | iOS 系统版本 | iOS | web |\n| :- | :- | :- | :- | :- | :- |\n| name | 5.0 | √ | 10.0 | x | - |\n| inheritAttrs | - | - | - | - | - |\n| components | 5.0 | √ | 10.0 | x | - |\n| directives | - | - | - | - | - |",
    "example": ""
  },
  "component_instance": {
    "compatibility": "|  | 安卓系统版本 | 安卓 | iOS 系统版本 | iOS | web |\n| :- | :- | :- | :- | :- | :- |\n| $data | 5.0 | √ | 10.0 | x | - |\n| $props | 5.0 | √ | 10.0 | x | - |\n| $el | 5.0 | √ | 10.0 | 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 | √ | 10.0 | x | - |",
    "example": "#### 组件实例 示例\n- [组件实例示例](https://gitcode.net/dcloud/hello-uvue/-/tree/master//pages/component-instance)"
  },
  "directives": {
    "compatibility": "|  | 安卓系统版本 | 安卓 | iOS 系统版本 | iOS | web |\n| :- | :- | :- | :- | :- | :- |\n| v-text | 5.0 | √ | 10.0 | x | x |\n| v-html | 5.0 | 3.99 | 10.0 | x | x |\n| v-show | 5.0 | √ | 10.0 | x | x |\n| v-if | 5.0 | √ | 10.0 | x | x |\n| v-else | 5.0 | √ | 10.0 | x | x |\n| v-else-if | 5.0 | √ | 10.0 | x | x |\n| v-for | 5.0 | √ | 10.0 | x | x |\n| v-on | 5.0 | √ | 10.0 | x | x |\n| v-bind | 5.0 | √ | 10.0 | x | x |\n| v-model | 5.0 | √ | 10.0 | x | x |\n| v-slot | 5.0 | √ | 10.0 | x | x |\n| v-pre | 5.0 | 3.99 | 10.0 | x | x |\n| v-once | 5.0 | 3.99 | 10.0 | x | x |\n| v-memo | 5.0 | 3.99 | 10.0 | x | x |\n| v-cloak | 5.0 | x | 10.0 | x | x |",
    "example": "#### 指令 示例\n- [指令示例](https://gitcode.net/dcloud/hello-uvue/-/tree/master//pages/directive)"
  },
  "components": {
    "compatibility": "|  | 安卓系统版本 | 安卓 | iOS 系统版本 | iOS | web |\n| :- | :- | :- | :- | :- | :- |\n| \\<Transition> | 5.0 | x | 10.0 | x | x |\n| \\<TransitionGroup> | 5.0 | x | 10.0 | x | x |\n| \\<KeepAlive> | 5.0 | 4.0 | 10.0 | x | 4.0 |\n| \\<Teleport> | 5.0 | 4.0 | 10.0 | x | 4.0 |\n| \\<Suspense> | - | - | - | - | - |",
    "example": ""
  },
  "special_elements": {
    "compatibility": "|  | 安卓系统版本 | 安卓 | iOS 系统版本 | iOS | web |\n| :- | :- | :- | :- | :- | :- |\n| \\<component> | 5.0 | 3.99 | 10.0 | x | x |\n| \\<slot> | 5.0 | √ | 10.0 | x | x |\n| \\<template> | 5.0 | √ | 10.0 | x | - |",
    "example": ""
  },
  "special_attributes": {
    "compatibility": "|  | 安卓系统版本 | 安卓 | iOS 系统版本 | iOS | web |\n| :- | :- | :- | :- | :- | :- |\n| key | 5.0 | √ | 10.0 | x | x |\n| ref | 5.0 | √ | 10.0 | x | x |\n| is | 5.0 | 3.99 | 10.0 | x | x |",
    "example": ""
  },
  "render_function": {
    "compatibility": "|  | 安卓系统版本 | 安卓 | iOS 系统版本 | iOS | web |\n| :- | :- | :- | :- | :- | :- |\n| h() | - | - | - | - | - |\n| mergeProps() | - | - | - | - | - |\n| cloneVNode() | - | - | - | - | - |\n| isVNode() | - | - | - | - | - |\n| resolveComponent() | - | - | - | - | - |\n| resolveDirective() | - | - | - | - | - |\n| withDirectives() | 5.0 | √ | 10.0 | x | - |\n| withModifiers() | - | - | - | - | - |",
    "example": ""
  }
D
DCloud_LXH 已提交
66
}