Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
uni-app
提交
1729a464
U
uni-app
项目概览
DCloud
/
uni-app
3 个月 前同步成功
通知
725
Star
38705
Fork
3642
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
7
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
7
Issue
7
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
1729a464
编写于
6月 25, 2021
作者:
fxy060608
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore(app): remove unnecessary async
上级
7990d816
变更
5
展开全部
显示空白变更内容
内联
并排
Showing
5 changed file
with
21981 addition
and
18876 deletion
+21981
-18876
packages/uni-app-plus/dist/uni-app-service.es.js
packages/uni-app-plus/dist/uni-app-service.es.js
+1
-1
packages/uni-app-plus/dist/uni-app-view.umd.js
packages/uni-app-plus/dist/uni-app-view.umd.js
+62
-7
packages/uni-app-plus/src/helpers/plus.ts
packages/uni-app-plus/src/helpers/plus.ts
+1
-1
packages/uni-app-vue/dist/service.runtime.esm.js
packages/uni-app-vue/dist/service.runtime.esm.js
+10827
-9305
packages/uni-app-vue/dist/view.runtime.esm.js
packages/uni-app-vue/dist/view.runtime.esm.js
+11090
-9562
未找到文件。
packages/uni-app-plus/dist/uni-app-service.es.js
浏览文件 @
1729a464
...
...
@@ -1813,7 +1813,7 @@ var serviceContext = (function () {
}));
};
}
async
function
callApiSync
(
api
,
args
,
resolve
,
reject
)
{
function
callApiSync
(
api
,
args
,
resolve
,
reject
)
{
api
(
args
)
.
then
(()
=>
{
resolve
();
...
...
packages/uni-app-plus/dist/uni-app-view.umd.js
浏览文件 @
1729a464
...
...
@@ -1683,7 +1683,11 @@
}
const
appErrorHandler
=
instance
.
appContext
.
config
.
errorHandler
;
if
(
appErrorHandler
)
{
callWithErrorHandling
(
appErrorHandler
,
null
,
10
,
[
err
,
exposedInstance
,
errorInfo
]);
callWithErrorHandling
(
appErrorHandler
,
null
,
10
,
[
err
,
exposedInstance
,
errorInfo
]);
return
;
}
}
...
...
@@ -1972,7 +1976,23 @@
accessedAttrs
=
true
;
}
function
renderComponentRoot
(
instance
)
{
const
{
type
:
Component
,
vnode
,
proxy
,
withProxy
,
props
:
props2
,
propsOptions
:
[
propsOptions
],
slots
,
attrs
,
emit
:
emit2
,
render
,
renderCache
,
data
,
setupState
,
ctx
,
inheritAttrs
}
=
instance
;
const
{
type
:
Component
,
vnode
,
proxy
,
withProxy
,
props
:
props2
,
propsOptions
:
[
propsOptions
],
slots
,
attrs
,
emit
:
emit2
,
render
,
renderCache
,
data
,
setupState
,
ctx
,
inheritAttrs
}
=
instance
;
let
result
;
const
prev
=
setCurrentRenderingInstance
(
instance
);
try
{
...
...
@@ -2608,7 +2628,11 @@
function
resolveMergedOptions
(
instance
)
{
const
base
=
instance
.
type
;
const
{
mixins
,
extends
:
extendsOptions
}
=
base
;
const
{
mixins
:
globalMixins
,
optionsCache
:
cache
,
config
:
{
optionMergeStrategies
}
}
=
instance
.
appContext
;
const
{
mixins
:
globalMixins
,
optionsCache
:
cache
,
config
:
{
optionMergeStrategies
}
}
=
instance
.
appContext
;
const
cached
=
cache
.
get
(
base
);
let
resolved
;
if
(
cached
)
{
...
...
@@ -2733,7 +2757,11 @@
instance
.
attrs
=
attrs
;
}
function
updateProps
(
instance
,
rawProps
,
rawPrevProps
,
optimized
)
{
const
{
props
:
props2
,
attrs
,
vnode
:
{
patchFlag
}
}
=
instance
;
const
{
props
:
props2
,
attrs
,
vnode
:
{
patchFlag
}
}
=
instance
;
const
rawCurrentProps
=
toRaw
(
props2
);
const
[
options
]
=
instance
.
propsOptions
;
let
hasAttrsChanged
=
false
;
...
...
@@ -3203,7 +3231,22 @@
return
baseCreateRenderer
(
options
);
}
function
baseCreateRenderer
(
options
,
createHydrationFns
)
{
const
{
insert
:
hostInsert
,
remove
:
hostRemove
,
patchProp
:
hostPatchProp
,
forcePatchProp
:
hostForcePatchProp
,
createElement
:
hostCreateElement
,
createText
:
hostCreateText
,
createComment
:
hostCreateComment
,
setText
:
hostSetText
,
setElementText
:
hostSetElementText
,
parentNode
:
hostParentNode
,
nextSibling
:
hostNextSibling
,
setScopeId
:
hostSetScopeId
=
NOOP
,
cloneNode
:
hostCloneNode
,
insertStaticContent
:
hostInsertStaticContent
}
=
options
;
const
{
insert
:
hostInsert
,
remove
:
hostRemove
,
patchProp
:
hostPatchProp
,
forcePatchProp
:
hostForcePatchProp
,
createElement
:
hostCreateElement
,
createText
:
hostCreateText
,
createComment
:
hostCreateComment
,
setText
:
hostSetText
,
setElementText
:
hostSetElementText
,
parentNode
:
hostParentNode
,
nextSibling
:
hostNextSibling
,
setScopeId
:
hostSetScopeId
=
NOOP
,
cloneNode
:
hostCloneNode
,
insertStaticContent
:
hostInsertStaticContent
}
=
options
;
const
patch
=
(
n1
,
n2
,
container
,
anchor
=
null
,
parentComponent
=
null
,
parentSuspense
=
null
,
isSVG
=
false
,
slotScopeIds
=
null
,
optimized
=
false
)
=>
{
if
(
n1
&&
!
isSameVNodeType
(
n1
,
n2
))
{
anchor
=
getNextHostNode
(
n1
);
...
...
@@ -3813,7 +3856,16 @@
}
};
const
unmount
=
(
vnode
,
parentComponent
,
parentSuspense
,
doRemove
=
false
,
optimized
=
false
)
=>
{
const
{
type
,
props
:
props2
,
ref
:
ref2
,
children
,
dynamicChildren
,
shapeFlag
,
patchFlag
,
dirs
}
=
vnode
;
const
{
type
,
props
:
props2
,
ref
:
ref2
,
children
,
dynamicChildren
,
shapeFlag
,
patchFlag
,
dirs
}
=
vnode
;
if
(
ref2
!=
null
)
{
setRef
(
ref2
,
null
,
parentSuspense
,
vnode
,
true
);
}
...
...
@@ -4444,7 +4496,10 @@
const
setupContext
=
instance
.
setupContext
=
setup
.
length
>
1
?
createSetupContext
(
instance
)
:
null
;
currentInstance
=
instance
;
pauseTracking
();
const
setupResult
=
callWithErrorHandling
(
setup
,
instance
,
0
,
[
instance
.
props
,
setupContext
]);
const
setupResult
=
callWithErrorHandling
(
setup
,
instance
,
0
,
[
instance
.
props
,
setupContext
]);
resetTracking
();
currentInstance
=
null
;
if
(
isPromise
(
setupResult
))
{
...
...
packages/uni-app-plus/src/helpers/plus.ts
浏览文件 @
1729a464
...
...
@@ -64,7 +64,7 @@ export function warpPlusMethod(
}
}
export
async
function
callApiSync
<
T
extends
(...
args
:
any
)
=>
any
>
(
export
function
callApiSync
<
T
extends
(...
args
:
any
)
=>
any
>
(
api
:
T
,
args
:
Parameters
<
T
>
[
0
],
resolve
:
Function
,
...
...
packages/uni-app-vue/dist/service.runtime.esm.js
浏览文件 @
1729a464
此差异已折叠。
点击以展开。
packages/uni-app-vue/dist/view.runtime.esm.js
浏览文件 @
1729a464
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录