Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
unidocs-zh
提交
7e0eaf88
unidocs-zh
项目概览
DCloud
/
unidocs-zh
通知
3182
Star
105
Fork
807
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
93
列表
看板
标记
里程碑
合并请求
69
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
unidocs-zh
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
93
Issue
93
列表
看板
标记
里程碑
合并请求
69
合并请求
69
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
7e0eaf88
编写于
9月 22, 2023
作者:
D
DCloud_LXH
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: uts vue 内置组件、指令等
上级
0a5e5b7a
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
33 addition
and
1 deletion
+33
-1
docs/.vuepress/utils/vueJson.json
docs/.vuepress/utils/vueJson.json
+1
-1
docs/uni-app-x/vue/api.md
docs/uni-app-x/vue/api.md
+32
-0
未找到文件。
docs/.vuepress/utils/vueJson.json
浏览文件 @
7e0eaf88
{
"application"
:{
"compatibility"
:
"| | 安卓系统版本 | 安卓 uni-app | 安卓 uni-app-x | iOS 系统版本 | iOS uni-app | iOS uni-app-x |
\n
| :- | :- | :- | :- | :- | :- | :- |
\n
| app.component() | 5.0 | √ | √ | 10.0 | √ | x |
\n
| app.directive() | 5.0 | √ | x | 10.0 | √ | x |
\n
| app.use() | 5.0 | √ | x | 10.0 | √ | x |
\n
| app.mixin() | 5.0 | √ | x | 10.0 | √ | x |
\n
| app.provide() | 5.0 | √ | x | 10.0 | √ | x |
\n
| app.config | 5.0 | √ | √ | 10.0 | √ | x |
\n
| app.config.errorHandler | 5.0 | √ | x | 10.0 | √ | x |
\n
| app.config.warnHandler | 5.0 | √ | x | 10.0 | √ | x |
\n
| app.config.performance | 5.0 | √ | x | 10.0 | √ | x |
\n
| app.config.globalProperties | 5.0 | √ | x | 10.0 | √ | x |
\n
| app.config.optionMergeStrategies | 5.0 | √ | x | 10.0 | √ | x |"
},
"general"
:{
"compatibility"
:
"| | 安卓系统版本 | 安卓 uni-app | 安卓 uni-app-x | iOS 系统版本 | iOS uni-app | iOS uni-app-x |
\n
| :- | :- | :- | :- | :- | :- | :- |
\n
| nextTick() | 5.0 | x | √ | 10.0 | x | x |
\n
| defineComponent() | 5.0 | x | x | 10.0 | x | x |
\n
| defineAsyncComponent() | 5.0 | x | x | 10.0 | x | x |"
},
"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 | 5.0 | √ | √ | 10.0 | √ | x |"
},
"options_rendering"
:{
"compatibility"
:
"| | 安卓系统版本 | 安卓 uni-app | 安卓 uni-app-x | iOS 系统版本 | iOS uni-app | iOS uni-app-x |
\n
| :- | :- | :- | :- | :- | :- | :- |
\n
| template | 5.0 | x | x | 10.0 | x | x |
\n
| render | 5.0 | x | x | 10.0 | x | x |"
},
"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 | 5.0 | √ | x | 10.0 | √ | x |
\n
| renderTracked | 5.0 | √ | x | 10.0 | √ | x |
\n
| renderTriggered | 5.0 | √ | x | 10.0 | √ | x |
\n
| activated | 5.0 | √ | x | 10.0 | √ | x |
\n
| deactivated | 5.0 | √ | x | 10.0 | √ | x |"
},
"options_composition"
:{
"compatibility"
:
"| | 安卓系统版本 | 安卓 uni-app | 安卓 uni-app-x | iOS 系统版本 | iOS uni-app | iOS uni-app-x |
\n
| :- | :- | :- | :- | :- | :- | :- |
\n
| provide | 5.0 | √ | x | 10.0 | √ | x |
\n
| inject | 5.0 | √ | x | 10.0 | √ | x |
\n
| mixins | 5.0 | √ | x | 10.0 | √ | x |
\n
| extends | 5.0 | √ | x | 10.0 | √ | x |"
},
"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 | 5.0 | √ | √ | 10.0 | √ | x |
\n
| components | 5.0 | √ | √ | 10.0 | √ | x |
\n
| directives | 5.0 | √ | x | 10.0 | √ | x |"
},
"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 | 5.0 | √ | √ | 10.0 | √ | x |
\n
| $parent | 5.0 | √ | √ | 10.0 | √ | x |
\n
| $root | 5.0 | √ | √ | 10.0 | √ | x |
\n
| $slots | 5.0 | x | √ | 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 | √ | x | 10.0 | √ | x |
\n
| $nextTick | 5.0 | √ | √ | 10.0 | √ | x |"
},
"render_function"
:{
"compatibility"
:
"| | 安卓系统版本 | 安卓 uni-app | 安卓 uni-app-x | iOS 系统版本 | iOS uni-app | iOS uni-app-x |
\n
| :- | :- | :- | :- | :- | :- | :- |
\n
| h() | 5.0 | x | x | 10.0 | x | x |
\n
| resolveComponent() | 5.0 | x | √ | 10.0 | x | x |
\n
| resolveDirective() | 5.0 | x | x | 10.0 | x | x |
\n
| withDirectives() | 5.0 | x | √ | 10.0 | x | x |"
}}
\ No newline at end of file
{
"application"
:{
"compatibility"
:
"| | 安卓系统版本 | 安卓 uni-app | 安卓 uni-app-x | iOS 系统版本 | iOS uni-app | iOS uni-app-x |
\n
| :- | :- | :- | :- | :- | :- | :- |
\n
| app.component() | 5.0 | √ | √ | 10.0 | √ | x |
\n
| app.directive() | 5.0 | √ | x | 10.0 | √ | x |
\n
| app.use() | 5.0 | √ | x | 10.0 | √ | x |
\n
| app.mixin() | 5.0 | √ | x | 10.0 | √ | x |
\n
| app.provide() | 5.0 | √ | x | 10.0 | √ | x |
\n
| app.config | 5.0 | √ | √ | 10.0 | √ | x |
\n
| app.config.errorHandler | 5.0 | √ | x | 10.0 | √ | x |
\n
| app.config.warnHandler | 5.0 | √ | x | 10.0 | √ | x |
\n
| app.config.performance | 5.0 | √ | x | 10.0 | √ | x |
\n
| app.config.globalProperties | 5.0 | √ | x | 10.0 | √ | x |
\n
| app.config.optionMergeStrategies | 5.0 | √ | x | 10.0 | √ | x |"
},
"general"
:{
"compatibility"
:
"| | 安卓系统版本 | 安卓 uni-app | 安卓 uni-app-x | iOS 系统版本 | iOS uni-app | iOS uni-app-x |
\n
| :- | :- | :- | :- | :- | :- | :- |
\n
| nextTick() | 5.0 | x | √ | 10.0 | x | x |
\n
| defineComponent() | 5.0 | x | x | 10.0 | x | x |
\n
| defineAsyncComponent() | 5.0 | x | x | 10.0 | x | x |"
},
"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() | 5.0 | √ | x | 10.0 | √ | x |
\n
| watchEffect() | 5.0 | √ | x | 10.0 | √ | x |
\n
| watch() | 5.0 | √ | x | 10.0 | √ | x |"
},
"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
| toRef() | 5.0 | √ | x | 10.0 | √ | x |
\n
| toRefs() | 5.0 | √ | x | 10.0 | √ | x |
\n
| isProxy() | 5.0 | √ | x | 10.0 | √ | x |
\n
| isReactive() | 5.0 | √ | x | 10.0 | √ | x |
\n
| isReadonly() | 5.0 | √ | x | 10.0 | √ | x |"
},
"reactivity_advanced"
:{
"compatibility"
:
"| | 安卓系统版本 | 安卓 uni-app | 安卓 uni-app-x | iOS 系统版本 | iOS uni-app | iOS uni-app-x |
\n
| :- | :- | :- | :- | :- | :- | :- |
\n
| shallowRef() | 5.0 | √ | x | 10.0 | √ | x |
\n
| triggerRef() | 5.0 | √ | x | 10.0 | √ | x |
\n
| customRef() | 5.0 | √ | x | 10.0 | √ | x |
\n
| shallowReactive() | 5.0 | √ | x | 10.0 | √ | x |
\n
| shallowReadonly() | 5.0 | √ | x | 10.0 | √ | x |
\n
| toRaw() | 5.0 | √ | x | 10.0 | √ | x |
\n
| markRaw() | 5.0 | √ | x | 10.0 | √ | x |"
},
"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 | 5.0 | √ | √ | 10.0 | √ | x |"
},
"options_rendering"
:{
"compatibility"
:
"| | 安卓系统版本 | 安卓 uni-app | 安卓 uni-app-x | iOS 系统版本 | iOS uni-app | iOS uni-app-x |
\n
| :- | :- | :- | :- | :- | :- | :- |
\n
| template | 5.0 | x | x | 10.0 | x | x |
\n
| render | 5.0 | x | x | 10.0 | x | x |"
},
"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 | 5.0 | √ | x | 10.0 | √ | x |
\n
| renderTracked | 5.0 | √ | x | 10.0 | √ | x |
\n
| renderTriggered | 5.0 | √ | x | 10.0 | √ | x |
\n
| activated | 5.0 | √ | x | 10.0 | √ | x |
\n
| deactivated | 5.0 | √ | x | 10.0 | √ | x |"
},
"options_composition"
:{
"compatibility"
:
"| | 安卓系统版本 | 安卓 uni-app | 安卓 uni-app-x | iOS 系统版本 | iOS uni-app | iOS uni-app-x |
\n
| :- | :- | :- | :- | :- | :- | :- |
\n
| provide | 5.0 | √ | x | 10.0 | √ | x |
\n
| inject | 5.0 | √ | x | 10.0 | √ | x |
\n
| mixins | 5.0 | √ | x | 10.0 | √ | x |
\n
| extends | 5.0 | √ | x | 10.0 | √ | x |"
},
"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 | 5.0 | √ | √ | 10.0 | √ | x |
\n
| components | 5.0 | √ | √ | 10.0 | √ | x |
\n
| directives | 5.0 | √ | x | 10.0 | √ | x |"
},
"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 | 5.0 | √ | √ | 10.0 | √ | x |
\n
| $parent | 5.0 | √ | √ | 10.0 | √ | x |
\n
| $root | 5.0 | √ | √ | 10.0 | √ | x |
\n
| $slots | 5.0 | x | √ | 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 | √ | x | 10.0 | √ | x |
\n
| $nextTick | 5.0 | √ | √ | 10.0 | √ | x |"
},
"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 | √ | x | 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 | √ | x | 10.0 | √ | x |
\n
| v-once | 5.0 | √ | x | 10.0 | √ | x |
\n
| v-memo | 5.0 | x | x | 10.0 | x | x |
\n
| v-cloak | 5.0 | x | x | 10.0 | x | x |"
},
"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 |"
},
"special_elements"
:{
"compatibility"
:
"| | 安卓系统版本 | 安卓 uni-app | 安卓 uni-app-x | iOS 系统版本 | iOS uni-app | iOS uni-app-x |
\n
| :- | :- | :- | :- | :- | :- | :- |
\n
|
\\
<component
\\
> | 5.0 | √ | x | 10.0 | √ | x |
\n
|
\\
<slot
\\
> | 5.0 | √ | √ | 10.0 | √ | x |
\n
|
\\
<template
\\
> | 5.0 | √ | √ | 10.0 | √ | x |"
},
"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 | √ | x | 10.0 | √ | x |"
},
"render_function"
:{
"compatibility"
:
"| | 安卓系统版本 | 安卓 uni-app | 安卓 uni-app-x | iOS 系统版本 | iOS uni-app | iOS uni-app-x |
\n
| :- | :- | :- | :- | :- | :- | :- |
\n
| h() | 5.0 | x | x | 10.0 | x | x |
\n
| resolveComponent() | 5.0 | x | √ | 10.0 | x | x |
\n
| resolveDirective() | 5.0 | x | x | 10.0 | x | x |
\n
| withDirectives() | 5.0 | x | √ | 10.0 | x | x |"
}}
\ No newline at end of file
docs/uni-app-x/vue/api.md
浏览文件 @
7e0eaf88
...
...
@@ -12,6 +12,20 @@
<!-- VUEJSON.general.compatibility -->
## 响应式兼容性
### 响应式: 核心
<!-- VUEJSON.reactivity_core.compatibility -->
### 响应式: 工具
<!-- VUEJSON.reactivity_utilities.compatibility -->
### 响应式: 进阶
<!-- VUEJSON.reactivity_advanced.compatibility -->
## 选项式 API兼容性
### 状态选项
...
...
@@ -38,6 +52,24 @@
<!-- VUEJSON.component_instance.compatibility -->
## 内置内容兼容性
### 指令
<!-- VUEJSON.directives.compatibility -->
### 组件
<!-- VUEJSON.components.compatibility -->
### 特殊元素
<!-- VUEJSON.special_elements.compatibility -->
### 特殊 Attributes
<!-- VUEJSON.special_attributes.compatibility -->
## 进阶 API兼容性
### 渲染函数
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录